docx

Warn

Audited by Gen Agent Trust Hub on Sep 28, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The script scripts/office/soffice.py performs runtime compilation and library injection. It defines C source code for a system-call interception shim, writes it to a temporary file, compiles it using gcc into a shared object, and loads it into the LibreOffice process using the LD_PRELOAD environment variable. This mechanism is used to shim socket calls to allow LibreOffice to run in environments where certain network operations are restricted.\n- [COMMAND_EXECUTION]: The skill executes several system commands via the subprocess module, including gcc for compiling its internal shim, soffice (LibreOffice) for document processing, and git for diffing content. These operations are directly tied to the primary functionality of document manipulation and conversion.\n- [INDIRECT_PROMPT_INJECTION]: The skill unzips and parses XML content from user-provided Office documents, which creates a surface for indirect prompt injection if the document contains instructions the agent might obey.\n
  • Ingestion points: Document XML files are processed in multiple scripts, including scripts/merge_runs.py and the document validators.\n
  • Boundary markers: No explicit markers are used to warn the agent to ignore instructions within the processed document text.\n
  • Capability inventory: The skill has powerful capabilities, including the ability to compile binary code and execute external document processors.\n
  • Sanitization: To mitigate risks, the skill uses the defusedxml library for all XML parsing and a safe_extract helper to prevent directory traversal attacks during the unzipping of archives.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Sep 28, 2026, 09:47 AM