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.pycontains hardcoded C source code for a socket shim. This code is written to a temporary directory with restricted permissions (0700), compiled usinggcc, and loaded viaLD_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.pydynamically 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.runto execute various system utilities includingsoffice(LibreOffice),pandoc,pdftoppm(Poppler),zip,unzip, andgit. These tools are used for document conversion, content extraction, and tracking changes. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted
.docxfiles 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.pyutility 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