docx
Warn
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill performs runtime compilation of system-level code.
- The script
scripts/soffice.pycontains a C source string (_SHIM_SOURCE) which is written to a temporary file and compiled usinggccinto a shared library. This library is used as anLD_PRELOADshim to bypass Unix socket restrictions in certain environments. scripts/accept_changes.pydynamically generates a LibreOffice StarBasic macro (ACCEPT_CHANGES_MACRO) and writes it to the user's LibreOffice profile to automate document changes.- [COMMAND_EXECUTION]: The skill relies heavily on executing external binaries and shell commands to perform its core functions.
scripts/soffice.pyandscripts/accept_changes.pyinvokesoffice(LibreOffice) to convert files and run macros.scripts/validators/redlining.pyandscripts/validate.pyinvokegitandpandocto perform diffs and text extraction.- The automated compilation in
scripts/soffice.pyinvokes thegcccompiler. - [INDIRECT_PROMPT_INJECTION]: The skill possesses a significant attack surface because it processes untrusted Word documents provided by users or external sources.
- Ingestion points: Documents are unpacked and their XML content is loaded into memory in
scripts/unpack.py,scripts/utilities.py, andscripts/document.py. - Boundary markers: There are no explicit instructions or delimiters used to separate extracted document text from agent instructions in the provided scripts.
- Capability inventory: The skill has extensive file system access (read/write), shell command execution capabilities, and the ability to modify document structure.
- Sanitization: The skill correctly uses the
defusedxmllibrary for all XML parsing, which effectively mitigates XML External Entity (XXE) and billion laughs attacks.
Audit Metadata