docx

Pass

Audited by Gen Agent Trust Hub on Sep 5, 2026

Risk Level: SAFEDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The skill performs runtime compilation and script generation. The script scripts/office/soffice.py contains a hardcoded C source string (_SHIM_SOURCE) that is compiled into a shared object via gcc and loaded into the soffice process using LD_PRELOAD to work around environment-specific socket restrictions. Additionally, scripts/accept_changes.py writes a LibreOffice Basic macro (ACCEPT_CHANGES_MACRO) to a temporary user profile at runtime to automate the acceptance of tracked changes.
  • [COMMAND_EXECUTION]: The skill relies on several external binaries executed via subprocess calls, including gcc for shim compilation, soffice (LibreOffice) for document processing, pandoc for reading document content, pdftoppm for rendering verification, and git for performing diffs during validation. These commands are executed using argument lists, which prevents standard shell injection.
  • [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process untrusted Word documents (.docx, .dotx). While binary document formats have a high attack surface, the skill implements significant defensive measures to mitigate this risk, such as using the defusedxml library to prevent XML-based attacks and verifying archive integrity.
  • [SAFE]: The skill demonstrates strong security-conscious development practices. The safe_extract function in scripts/office/helpers/__init__.py explicitly prevents ZipSlip (path traversal) and symlink attacks by resolving paths and verifying they remain within the target directory. The instructions in SKILL.md also advise the agent to proactively remove symlinks from unpacked documents to further reduce the risk from untrusted files.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 5, 2026, 02:40 PM