docx

Pass

Audited by Gen Agent Trust Hub on Nov 2, 2026

Risk Level: SAFEDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The script scripts/office/soffice.py performs runtime compilation of a C-based shim and loads it via LD_PRELOAD. This is used to enable LibreOffice functionality in environments where Unix domain sockets are restricted. The implementation follows security best practices by using unpredictable temporary directories with restricted (0700) permissions to prevent local privilege escalation or file swapping.
  • [DYNAMIC_EXECUTION]: scripts/accept_changes.py dynamically generates and writes a LibreOffice Basic macro to the user profile. This is a functional requirement for programmatic control of the 'Accept Tracked Changes' feature in a headless environment.
  • [COMMAND_EXECUTION]: Multiple scripts utilize subprocess.run to execute system utilities including soffice, pandoc, pdftoppm, and git. These executions are sanitized via environment filtering (defined in scripts/office/soffice.py) to ensure that credentials or sensitive tokens from the agent's environment are not exposed to subprocesses.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external documents, creating a potential surface for indirect prompt injection.
  • Ingestion points: Document XML is read and parsed in scripts/merge_runs.py and scripts/comment.py; document content is extracted as Markdown using pandoc as described in SKILL.md.
  • Boundary markers: Instructions do not explicitly mandate delimiters or 'ignore' instructions when reading converted document content.
  • Capability inventory: The skill can execute document conversion tools, write to the filesystem, and compile code via gcc.
  • Sanitization: The skill performs extensive structural sanitization (e.g., stripping symlinks from ZIP archives and using safe XML parsers), but natural language content extracted from documents is not filtered for malicious instructions directed at the agent.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 2, 2026, 09:01 AM