docx
Warn
Audited by Gen Agent Trust Hub on Sep 8, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/office/soffice.pycontains hardcoded C source code (_SHIM_SOURCE) that is written to a temporary file and compiled at runtime usinggcc. The resulting shared object is then injected into subprocesses via theLD_PRELOADenvironment variable to intercept and shim system socket calls (socket,listen,accept,close). While this is used to enable LibreOffice functionality in restricted environments, it represents a significant dynamic execution pattern. - [INDIRECT_PROMPT_INJECTION]: The skill has a large attack surface for indirect prompt injection as it is specifically designed to read and process external Word documents.
- Ingestion points: Document content enters the agent's context through
pandoctext extraction and raw XML unpacking (referenced inSKILL.md). - Boundary markers: The instructions do not define clear delimiters or warnings for the agent when processing extracted document text.
- Capability inventory: The skill has the ability to execute shell commands (via
soffice,pdftoppm,git, andgcc) and write files back to the system (referenced inscripts/accept_changes.py,scripts/render_docx.py, andscripts/office/pack.py). - Sanitization: The skill correctly utilizes
defusedxmlto mitigate standard XML-based attacks during parsing. - [COMMAND_EXECUTION]: Several components rely on executing system binaries through
subprocess.run. This includessofficefor document conversion,pdftoppmfor rendering images,gitfor generating document diffs inRedliningValidator, andgccfor compiling the socket shim. This creates a risk if the agent passes unvalidated user-supplied paths to these tools. - [EXTERNAL_DOWNLOADS]: The instructions in
SKILL.mddirect the user to install thedocxlibrary globally usingnpm install -g docx. While this is a standard dependency for the skill's JavaScript functionality, it involves downloading and installing third-party code from the public npm registry.
Audit Metadata