docx
Warn
Audited by Gen Agent Trust Hub on Apr 3, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/office/soffice.pyperforms dynamic execution by writing C source code to a temporary file and compiling it at runtime usinggcc. The resulting shared library is injected into thesofficeprocess using theLD_PRELOADenvironment variable to shim socket-related system calls, a technique used to bypass environment constraints. - [COMMAND_EXECUTION]: The script
scripts/accept_changes.pygenerates a StarBasic macro and writes it to a temporary LibreOffice profile directory. This macro is then automatically executed by thesofficebinary to perform document manipulations. - [COMMAND_EXECUTION]: The skill uses
subprocess.runto execute multiple external system binaries, includingsoffice,pandoc,pdftoppm, andgit, across several utility scripts. - [PROMPT_INJECTION]: The skill possesses a surface for indirect prompt injection (Category 8). Ingestion points: Word documents processed by
scripts/office/unpack.pyandpandoc. Boundary markers: Absent. Capability inventory: Use ofsubprocess.runfor document conversion and system interactions. Sanitization: Employsdefusedxmlfor XML parsing. Malicious instructions embedded in processed documents could potentially influence the agent's behavior because the instructions do not specify any isolation or disregard mechanisms for content read from external files.
Audit Metadata