docx

Warn

Audited by Gen Agent Trust Hub on Mar 31, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTIONNO_CODE
Full Analysis
  • [DYNAMIC_EXECUTION]: The skill contains logic to compile a hardcoded C source file into a shared library at runtime using gcc and then injects this library into the soffice (LibreOffice) process using the LD_PRELOAD environment variable. This is implemented in scripts/office/soffice.py as a technical workaround for environments where AF_UNIX sockets are restricted.
  • [COMMAND_EXECUTION]: Several scripts execute system-level commands through subprocesses to perform document conversion, text diffing, and image generation. Examples include soffice, git diff, and pdftoppm across files such as scripts/office/soffice.py, scripts/accept_changes.py, and scripts/office/validators/redlining.py.
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from Office documents and provides the agent with capabilities to execute shell commands, creating a potential path for exploitation if documents contain malicious instructions.
  • Ingestion points: The skill extracts XML content from user-supplied DOCX, PPTX, and XLSX files using scripts/office/unpack.py.
  • Boundary markers: No instructions or delimiters are present to warn the agent to ignore potential instructions embedded within the document content.
  • Capability inventory: The skill can execute multiple external binaries (soffice, git, gcc) via subprocess calls.
  • Sanitization: The skill uses defusedxml and lxml for XML parsing, which provides protection against XML External Entity (XXE) attacks, though it does not filter natural language instructions.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Mar 31, 2026, 02:51 PM