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 theBashtool 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.pyscript readsword/document.xmlfrom extracted.docxZIP packages and parses external.tsvor.jsonfiles 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
Bashtool. - Sanitization: Content from the comment data files is escaped using
xml.sax.saxutils.escapebefore being injected into the XML structure, reducing the risk of markup injection.
Audit Metadata