docx-comment-injection

Pass

Audited by Gen Agent Trust Hub on Nov 13, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [SAFE]: No malicious code or suspicious patterns were detected. The skill is designed for offline document processing and does not interact with external networks or unauthorized file paths.
  • [COMMAND_EXECUTION]: The skill invokes a local Python script (inject_comments.py) through the Bash tool to process document files. The script is provided within the skill package and uses only Python standard libraries.
  • [INDIRECT_PROMPT_INJECTION]: The skill possesses an indirect prompt injection surface due to the processing of external document and data files.
  • Ingestion points: The inject_comments.py script reads word/document.xml from extracted .docx ZIP packages and parses external .tsv or .json files for comment data.
  • Boundary markers: There are no explicit delimiters or warnings to the agent to ignore instructions embedded within the document content.
  • Capability inventory: The skill has capabilities for file system read/write and script execution via the Bash tool.
  • Sanitization: Content from the comment data files is escaped using xml.sax.saxutils.escape before being injected into the XML structure, reducing the risk of markup injection.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 13, 2026, 11:03 PM