docx
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes potentially untrusted document data (.docx) provided by users, which creates a surface for indirect prompt injection if documents contain malicious instructions.
- Ingestion points:
ooxml/scripts/unpack.pyandscripts/document.pyread and parse OOXML files into the agent's context. - Capability inventory: The skill has filesystem write access and can execute specific system utilities (
soffice,git). - Sanitization: The skill implements strong security mitigations by using the
defusedxmllibrary for all XML parsing inscripts/utilities.pyandscripts/document.py, which protects against XML External Entity (XXE) and billion laughs attacks. - [COMMAND_EXECUTION]: System commands are executed via
subprocess.runto perform document validation and version comparisons. ooxml/scripts/pack.pyexecutessofficeto validate document integrity by performing a headless conversion to HTML.ooxml/scripts/validation/redlining.pyexecutesgit diffto provide character-level or word-level comparisons during tracked changes validation.- All executions use static command lists and do not invoke a shell, preventing command injection.
- [EXTERNAL_DOWNLOADS]: The skill documentation provides instructions for installing necessary system and language-specific dependencies from well-known repositories.
- System utilities:
pandoc,libreoffice, andpoppler-utilsvia the standard system package manager (apt-get). - JavaScript library:
docxvia the NPM registry. - Python library:
defusedxmlvia the PyPI registry.
Audit Metadata