docx
Warn
Audited by Gen Agent Trust Hub on Jul 12, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [REMOTE_CODE_EXECUTION]: The script
scripts/office/soffice.pycontains a hardcoded C source string that is dynamically written to disk and compiled usinggccat runtime. The resulting shared object library is then injected into the execution environment ofsofficeusing theLD_PRELOADenvironment variable to intercept and modify system-level socket calls. - [COMMAND_EXECUTION]: Multiple scripts perform arbitrary command execution using the
subprocess.runfunction: scripts/office/soffice.pyexecutesgccto compile the runtime shim.scripts/accept_changes.pyexecutessoffice(LibreOffice) to process document changes.scripts/office/validators/redlining.pyexecutesgitto perform word-diff comparisons.- [EXTERNAL_DOWNLOADS]: The documentation in
SKILL.mdinstructs the agent to perform global software installations, specificallynpm install -g docx, which involves downloading and executing third-party code from external registries. - [REMOTE_CODE_EXECUTION]: The skill implements a persistence-like behavior by generating a StarBasic macro and writing it to a temporary LibreOffice profile at
/tmp/libreoffice_docx_profileto automate document cleanup tasks, which could be exploited for macro-based attacks.
Audit Metadata