docx

Warn

Audited by Gen Agent Trust Hub on Sep 30, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONPRIVILEGE_ESCALATIONPROMPT_INJECTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The script ooxml/scripts/unpack.py uses zipfile.ZipFile.extractall() without validating entry paths. This represents a 'Zip Slip' vulnerability where a crafted document could contain entries with directory traversal characters (e.g., ../../.ssh/authorized_keys) to overwrite sensitive files outside the intended directory.
  • [DATA_EXFILTRATION]: The validation logic in ooxml/scripts/validation/base.py and ooxml/scripts/validation/pptx.py employs lxml.etree.parse() on document components. By default, lxml is vulnerable to XML External Entity (XXE) attacks. A malicious document could define external entities that, when parsed, allow an attacker to read local system files or perform SSRF attacks.
  • [PRIVILEGE_ESCALATION]: The documentation in SKILL.md instructs the user or agent to run sudo apt-get install to install system dependencies like pandoc and libreoffice. These instructions promote the use of administrative privileges, which could lead to unauthorized system modifications if executed autonomously by an agent with shell access.
  • [PROMPT_INJECTION]: The SKILL.md file contains strong behavioral overrides using authoritative language, such as 'MANDATORY
  • READ ENTIRE FILE' and 'NEVER set any range limits'. These instructions attempt to override the model's standard context-handling efficiency protocols.
  • [INDIRECT_PROMPT_INJECTION]: The skill is designed to interpret data from untrusted Word documents, which is a significant vulnerability surface. Evidence chain:
  • Ingestion points: ooxml/scripts/unpack.py (binary ZIP data), ooxml/scripts/validation/base.py (XML components).
  • Boundary markers: Absent. The agent is not instructed to isolate or ignore instructions embedded within document text.
  • Capability inventory: Shell command execution via subprocess.run (in pack.py and redlining.py) and arbitrary file write capabilities via extractall and the Document.save() method.
  • Sanitization: Partial. While defusedxml is used in some script components, the core validation logic falls back to standard lxml and xml.etree.ElementTree, which are not secure against malicious XML content.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Sep 30, 2026, 09:33 AM