docx

Pass

Audited by Gen Agent Trust Hub on Sep 8, 2026

Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The script scripts/office/soffice.py contains hardcoded C source code for a socket shim. This code is written to a temporary directory with restricted permissions (0700), compiled using gcc, and loaded via LD_PRELOAD. This is a sophisticated technical implementation used to allow LibreOffice to function correctly in restricted sandbox environments where AF_UNIX sockets are blocked.
  • [DYNAMIC_EXECUTION]: The script scripts/accept_changes.py dynamically generates a LibreOffice Basic macro (Module1.xba) within a temporary user profile. This macro is used to automate the 'Accept All Tracked Changes' functionality through the LibreOffice CLI.
  • [COMMAND_EXECUTION]: The skill uses subprocess.run to execute various system utilities including soffice (LibreOffice), pandoc, pdftoppm (Poppler), zip, unzip, and git. These tools are used for document conversion, content extraction, and tracking changes.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted .docx files provided by users. It includes a specific mitigation step in the instructions (find unpacked -type l -delete) to remove symbolic links from extracted document archives, preventing potential local file inclusion or path traversal attacks during XML editing.
  • [SAFE_PRACTICE]: The scripts/office/soffice.py utility implements an environment variable allowlist (FORWARDED_ENV_VARS). This ensures that only necessary system variables are passed to document processing subprocesses, preventing accidental exposure of agent API keys or other sensitive environment secrets.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 8, 2026, 04:42 AM