docx

Fail

Audited by Gen Agent Trust Hub on May 14, 2026

Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [REMOTE_CODE_EXECUTION]: Runtime compilation and binary injection via environment variables.\n
  • File: scripts/office/soffice.py.\n
  • The script contains a hardcoded C source string (_SHIM_SOURCE) that is written to a temporary file and compiled into a shared library using gcc.\n
  • This resulting library is injected into the execution of the soffice binary using the LD_PRELOAD environment variable to hook and modify system calls (e.g., socket, listen, accept).\n- [COMMAND_EXECUTION]: Direct execution of system binaries and wrappers.\n
  • Tools used: soffice (LibreOffice), gcc, git, pandoc, and pdftoppm.\n
  • Evidence: Found in scripts/accept_changes.py, scripts/office/soffice.py, and scripts/office/validators/redlining.py. These calls are triggered during document conversion and validation workflows.\n- [PROMPT_INJECTION]: Vulnerability to indirect prompt injection from processed document data.\n
  • Ingestion points: Untrusted XML data is extracted and parsed from Word documents in scripts/office/unpack.py and scripts/office/validators/docx.py.\n
  • Boundary markers: Absent; document text content is processed without isolation or delimiters to protect the agent's control flow.\n
  • Capability inventory: The skill possesses significant control over the host environment, including wrapping a C compiler (gcc) and the Office suite.\n
  • Sanitization: While the skill uses defusedxml to mitigate XML-level attacks like XXE, it lacks sanitization of extracted natural language text, allowing document-embedded instructions to potentially override agent behavior.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
May 14, 2026, 09:26 AM