docx
Warn
Audited by Gen Agent Trust Hub on Aug 26, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: Runtime code compilation and process injection. The script
scripts/office/soffice.pywrites a C source string (_SHIM_SOURCE) to a temporary file, compiles it into a shared library usinggcc, and then sets theLD_PRELOADenvironment variable to inject this library into thesofficeprocess. This is designed to shim socket calls to bypass AF_UNIX restrictions. - [REMOTE_CODE_EXECUTION]: Dynamic macro generation. The script
scripts/accept_changes.pydynamically creates a LibreOffice Basic macro (ACCEPT_CHANGES_MACRO) and writes it to a temporary LibreOffice user profile before execution to automate document processing. - [COMMAND_EXECUTION]: Execution of system binaries. Multiple scripts utilize
subprocess.runto execute external tools, includinggccfor compilation,sofficefor document conversion,gitfor generating diffs during validation, andpdftoppmfor image extraction. - [EXTERNAL_DOWNLOADS]: External software and package dependencies.
SKILL.mdidentifies several system-level dependencies includingpandoc,LibreOffice, andPoppler. It also instructs users to perform a global installation of thedocxNode.js package vianpm install -g docx. - [PROMPT_INJECTION]: Indirect prompt injection vulnerability surface (Category 8).
- Ingestion points: Untrusted data enters the agent context through
.docxfiles processed byscripts/office/unpack.pyandpandoc(viaSKILL.mdinstructions). - Boundary markers: Absent. The skill does not implement specific delimiters or "ignore embedded instructions" warnings for the extracted document content.
- Capability inventory: The skill possesses powerful local capabilities, including arbitrary command execution (via
subprocess.runinsoffice.py,pack.py, andredlining.py) and file system writes across various scripts. - Sanitization: The skill effectively mitigates XML-level attacks (such as XXE) by using the
defusedxmllibrary for all XML parsing tasks, but lacks sanitization for the resulting natural language content.
Audit Metadata