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.py contains a hardcoded C source string that is dynamically written to disk and compiled using gcc at runtime. The resulting shared object library is then injected into the execution environment of soffice using the LD_PRELOAD environment variable to intercept and modify system-level socket calls.
  • [COMMAND_EXECUTION]: Multiple scripts perform arbitrary command execution using the subprocess.run function:
  • scripts/office/soffice.py executes gcc to compile the runtime shim.
  • scripts/accept_changes.py executes soffice (LibreOffice) to process document changes.
  • scripts/office/validators/redlining.py executes git to perform word-diff comparisons.
  • [EXTERNAL_DOWNLOADS]: The documentation in SKILL.md instructs the agent to perform global software installations, specifically npm 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_profile to automate document cleanup tasks, which could be exploited for macro-based attacks.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Jul 12, 2026, 03:13 PM