docx
Warn
Audited by Gen Agent Trust Hub on Jun 16, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The script
scripts/office/soffice.pydynamically compiles a C compatibility shim usinggccand injects it into the environment via theLD_PRELOADmechanism. This is designed to bypass AF_UNIX socket restrictions in sandboxed environments but involves runtime code generation and process manipulation. - [REMOTE_CODE_EXECUTION]: The script
scripts/accept_changes.pygenerates and writes a LibreOffice Basic macro file (Module1.xba) at runtime to automate the 'Accept All Tracked Changes' functionality. - [COMMAND_EXECUTION]: Several components use the
subprocessmodule to execute system commands, includinggccfor compilation,git difffor word-level document comparison inscripts/office/validators/redlining.py, andsofficefor core document conversion tasks. - [EXTERNAL_DOWNLOADS]: Documentation in
SKILL.mdinstructs the installation of thedocxlibrary vianpm install -g docxas a necessary dependency for generating new documents. - [PROMPT_INJECTION]: The skill processes untrusted external data in the form of
.docxfiles (viascripts/office/unpack.py). While it usesdefusedxmlfor secure XML parsing, the ingestion of untrusted content alongside the skill's command execution capabilities constitutes a surface for indirect prompt injection.
Audit Metadata