docx
Pass
Audited by Gen Agent Trust Hub on Sep 26, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to unpack and analyze .docx files, which involves reading and processing their XML content. This creates a surface for indirect prompt injection where malicious instructions embedded in a document could influence the agent's behavior during analysis.
- Ingestion points:
ooxml/scripts/unpack.py,scripts/document.py, andscripts/utilities.pyall ingest and parse XML content from external documents (e.g., document.xml). - Boundary markers: While the skill documentation suggests using pandoc to convert documents to Markdown for text extraction to help preserve structure, the primary editing workflows use raw XML access.
- Capability inventory: The skill can execute shell commands (soffice, git), perform file system operations, and generate/manipulate document files.
- Sanitization: The skill uses the
defusedxmllibrary for its core editing functionality, which effectively mitigates common XML vulnerabilities. - [DATA_EXFILTRATION]: There is a potential data access risk in the validation scripts (
ooxml/scripts/validation/base.py,ooxml/scripts/validation/docx.py) which use the standardlxmllibrary for schema validation. - The use of
lxml.etree.parsewithout explicitly disabling external entity resolution could potentially allow a maliciously crafted document to trigger an XML External Entity (XXE) attack, enabling the reading of local sensitive files if the validation process is run on untrusted content. - [COMMAND_EXECUTION]: The skill executes external binaries (
sofficefor document conversion/validation andgitfor diffing) viasubprocess.runinooxml/scripts/pack.pyandooxml/scripts/validation/redlining.py. - These calls are implemented using argument lists rather than shell strings, which mitigates the risk of command injection through metacharacters or argument splitting. The parameters are mostly constrained by system-generated paths or hardcoded configuration values.
Audit Metadata