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.pycontains a hardcoded C source code string (_SHIM_SOURCE) that is written to a temporary file in/tmpand compiled into a shared object usinggccat runtime. The resulting library is then dynamically loaded into the LibreOffice process using theLD_PRELOADenvironment variable to modify socket behavior. - [DYNAMIC_EXECUTION]:
scripts/accept_changes.pydynamically 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, andpandoccommands. - 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.runand perform file system operations on the host environment. - Sanitization: The skill demonstrates high security awareness by consistently using the
defusedxmllibrary 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 thesubprocessmodule to execute system commands includingsoffice,gcc,git, andpdftoppm.
Audit Metadata