docx
Warn
Audited by Gen Agent Trust Hub on Oct 16, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/office/soffice.pycontains a hardcoded C source code string (_SHIM_SOURCE) that is written to a temporary file and compiled at runtime usinggcc. The resulting shared library is then injected into the execution environment via theLD_PRELOADenvironment variable to intercept and shim system calls related to networking and socket management. This technique is used to bypass system restrictions on UNIX sockets in sandboxed environments. - [DYNAMIC_EXECUTION]: The script
scripts/accept_changes.pydynamically generates a LibreOffice StarBasic macro (ACCEPT_CHANGES_MACRO) and writes it to a temporary profile directory to automate the process of accepting tracked changes within the application context. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process untrusted external files (.docx, .pptx, .xlsx) provided by users or retrieved from project directories. This content is converted to XML and processed by the agent, presenting a vector for hidden instructions.
- Ingestion points: The
scripts/office/unpack.pyscript extracts XML content from Office documents and merges runs for processing. - Boundary markers: No specific delimiters or "ignore instructions" warnings are used when processing the extracted text from these documents.
- Capability inventory: The skill has powerful capabilities including runtime compilation (
gcc), Office automation (soffice), and file system manipulation, which could be abused if malicious instructions are successfully injected via a document. - Sanitization: The skill correctly employs
defusedxmlto mitigate XML-based vulnerabilities like XXE, but it does not sanitize or filter the natural language content within the documents. - [COMMAND_EXECUTION]: Multiple scripts throughout the skill (including
soffice.py,accept_changes.py, andredlining.py) usesubprocess.runto execute system binaries likesoffice,gcc,git, andpdftoppmwith dynamically constructed arguments. - [EXTERNAL_DOWNLOADS]: The
SKILL.mdinstructions guide the agent to perform a global installation of thedocxpackage usingnpm install -g docxto enable document generation capabilities.
Audit Metadata