docx
Warn
Audited by Gen Agent Trust Hub on Apr 25, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill performs runtime compilation of system libraries and dynamic macro generation to handle Office document processing.
scripts/office/soffice.pydynamically writes a C source file to the temporary directory and compiles it into a shared library (.so) usinggcc. This library is subsequently loaded via theLD_PRELOADenvironment variable to shim system calls (socket,listen,accept, etc.) during the execution of LibreOffice.scripts/accept_changes.pydynamically generates a LibreOffice StarBasic macro, writes it to a configuration file within a temporary LibreOffice profile directory, and executes it via thesofficecommand-line interface.- Multiple components including
scripts/office/soffice.py,scripts/accept_changes.py, andscripts/office/validators/redlining.pyusesubprocess.runto execute external tools such asgcc,soffice,git,pandoc, andpdftoppm. - [PROMPT_INJECTION]: The skill provides an attack surface for indirect prompt injection as it processes complex XML data from Office documents.
- Ingestion points:
scripts/office/unpack.pyandscripts/accept_changes.pyread and unpack content from user-provided.docxand.docfiles. - Boundary markers: Absent. The instructions in
SKILL.mdfor manipulating XML do not include specific delimiters or warnings to ignore instructions embedded within the document data. - Capability inventory: High risk. The skill possesses the capability to execute shell commands and compile C code via
subprocess.runacross multiple scripts. - Sanitization: The skill uses the
defusedxmlandlxmllibraries for XML parsing, which provides protection against common XML-based attacks like XXE. - [EXTERNAL_DOWNLOADS]:
SKILL.mdprovides instructions to the user or agent to install the well-knowndocxpackage globally using the Node Package Manager (npm install -g docx).
Audit Metadata