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_xslt function in SKILL.md invokes the Saxon-HE Java processor via subprocess.run. This provides the agent with the capability to execute external binary commands.
  • [DYNAMIC_EXECUTION]: In the transform_tei_xslt function, command-line arguments for the XSLT processor are dynamically generated from the extra_params dictionary using f"{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_entities and extract_critical_apparatus ingest etree elements parsed from external files (e.g., etree.parse in 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
Risk Level
MEDIUM
Analyzed
Oct 7, 2026, 07:18 AM