docx
Warn
Audited by Gen Agent Trust Hub on Aug 6, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/office/soffice.pyimplements a sophisticated workaround for socket restrictions by writing C source code to a temporary file, compiling it into a shared library usinggcc, and then injecting it into the LibreOffice process using theLD_PRELOADenvironment variable. - [COMMAND_EXECUTION]: Multiple scripts execute system commands via the
subprocessmodule to perform document conversion and validation: scripts/office/soffice.pyexecutesgccto compile shims andsofficefor document conversion.scripts/accept_changes.pyexecutessofficeto run specialized macros.scripts/office/validators/redlining.pyexecutesgit diffto analyze document changes.- [EXTERNAL_DOWNLOADS]: The skill instructions in
SKILL.mdsuggest usingnpm install docxif the preinstalled dependency is unavailable. - [PROMPT_INJECTION]: The skill is designed to process external Word documents, which represents an indirect prompt injection surface. The analysis found the following evidence chain:
- Ingestion points: Untrusted document content is ingested via
unzipand XML parsing inscripts/merge_runs.pyandscripts/office/validators/docx.py. - Boundary markers: Present.
SKILL.mdexplicitly labels docx files from external parties as "untrusted" and mandates the removal of symlink entries. - Capability inventory: The skill has significant capabilities including arbitrary command execution (
subprocess.run) and runtime compilation (gcc). - Sanitization: Strong measures are in place, including the use of
defusedxmlto prevent XXE attacks and asafe_extracthelper that validates zip entries against path traversal and symlink attacks.
Audit Metadata