docx

Warn

Audited by Gen Agent Trust Hub on Sep 26, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The script scripts/office/soffice.py contains a hardcoded C source code string (_SHIM_SOURCE) that is written to a temporary file in /tmp and compiled into a shared object using gcc at runtime. The resulting library is then dynamically loaded into the LibreOffice process using the LD_PRELOAD environment variable to modify socket behavior.
  • [DYNAMIC_EXECUTION]: scripts/accept_changes.py dynamically writes and executes a LibreOffice StarBasic macro (ACCEPT_CHANGES_MACRO) to automate the acceptance of tracked changes in Word documents.
  • [INDIRECT_PROMPT_INJECTION]: This skill is designed to ingest and process external Word documents which may contain instructions intended to influence agent behavior.
  • Ingestion points: Files are parsed through scripts/office/unpack.py, scripts/office/validate.py, and pandoc commands.
  • Boundary markers: Not explicitly enforced in data processing scripts, though documentation suggests authorship conventions.
  • Capability inventory: The skill can execute arbitrary system commands via subprocess.run and perform file system operations on the host environment.
  • Sanitization: The skill demonstrates high security awareness by consistently using the defusedxml library to parse XML content, which mitigates XML External Entity (XXE) and billion laughs attacks.
  • [COMMAND_EXECUTION]: Multiple scripts (scripts/accept_changes.py, scripts/office/soffice.py, scripts/office/validators/redlining.py) use the subprocess module to execute system commands including soffice, gcc, git, and pdftoppm.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Sep 26, 2026, 12:33 PM