docx

Warn

Audited by Gen Agent Trust Hub on Nov 22, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The skill performs runtime compilation and process injection to ensure its dependencies function in restricted environments.
  • The script scripts/office/soffice.py dynamically writes a hardcoded C source string (_SHIM_SOURCE) to a temporary file and compiles it into a shared library (lo_socket_shim.so) using gcc.
  • This library is then injected into the LibreOffice (soffice) process using the LD_PRELOAD environment variable to shim UNIX socket calls, which are often blocked in sandboxed execution environments.
  • The script scripts/accept_changes.py automates the execution of a custom LibreOffice StarBasic macro to process document changes.
  • [COMMAND_EXECUTION]: The skill makes extensive use of system tools and subprocess calls to perform its tasks.
  • Uses subprocess.run to invoke the gcc compiler for its runtime shim and to control soffice for document conversion and macro execution.
  • Instructions in SKILL.md guide the agent to use zip, unzip, find, soffice, and pdftoppm for managing document packages and generating previews.
  • [INDIRECT_PROMPT_INJECTION]: The skill has a surface for processing untrusted external data via Word document structures.
  • Ingestion points: Untrusted .docx files provided by users are unpacked using unzip as part of the editing workflow (SKILL.md).
  • Boundary markers: The instructions explicitly include a security step to remove symlinks from unpacked archives (find unpacked -type l -delete) to prevent directory traversal or file access outside the target path.
  • Capability inventory: The skill maintains the ability to write to the local filesystem and execute shell commands to modify document content and convert formats.
  • Sanitization: The Python validation and manipulation logic (scripts/merge_runs.py, scripts/comment.py, etc.) utilizes the defusedxml library to protect against XML-based attacks such as XML External Entity (XXE) vulnerabilities.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 22, 2026, 08:03 PM