tei-xml
Warn
Audited by Gen Agent Trust Hub on Oct 7, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
transform_tei_xsltfunction inSKILL.mdinvokes the Saxon-HE Java processor viasubprocess.run. This provides the agent with the capability to execute external binary commands. - [DYNAMIC_EXECUTION]: In the
transform_tei_xsltfunction, command-line arguments for the XSLT processor are dynamically generated from theextra_paramsdictionary usingf"{k}={v}". The implementation lacks validation or escaping for these keys and values, which may allow for command-line argument injection into the Java process. - [INDIRECT_PROMPT_INJECTION]: The skill provides functions for parsing and extracting data from external TEI XML files, which presents a surface for indirect prompt injection attacks.
- Ingestion points: Functions such as
extract_named_entitiesandextract_critical_apparatusingestetreeelements parsed from external files (e.g.,etree.parsein Example 2). - Boundary markers: No delimiters or instructions are used to distinguish between the TEI markup and data content.
- Capability inventory: The skill has the ability to write files (CSV, XML, TXT) and execute subprocesses (XSLT transformation).
- Sanitization: Extracted textual content from XML elements is used directly without escaping or filtering.
Audit Metadata