docx
Warn
Audited by Gen Agent Trust Hub on Jun 15, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill performs dynamic code generation and execution. Specifically,
scripts/office/soffice.pycontains hardcoded C source code that is written to a temporary file and compiled withgccinto a shared library. This library is then injected into thesofficeprocess using theLD_PRELOADenvironment variable to hook socket-related system calls. Additionally,scripts/accept_changes.pygenerates and writes a StarBasic macro to the LibreOffice application profile to facilitate automated document editing tasks. - [COMMAND_EXECUTION]: Several scripts, including
scripts/office/soffice.py,scripts/accept_changes.py, andscripts/office/validators/redlining.py, utilize thesubprocessmodule to invoke external binaries such assoffice,pandoc,pdftoppm, and thegcccompiler. This grants the skill the ability to execute arbitrary system commands and compilers on the host system. - [EXTERNAL_DOWNLOADS]: The skill documentation specifies the installation of the
docxlibrary from the global Node package manager registry (npm install -g docx). This is an expected external dependency for the skill's document generation functionality. - [PROMPT_INJECTION]: The skill possesses an attack surface for indirect prompt injection due to its processing of untrusted content from external Word documents.
- Ingestion points: Document text and XML content are extracted and processed via
pandocand thescripts/office/unpack.pyscript. - Boundary markers: The instructions lack delimiters or explicit warnings to the agent to disregard instructions embedded within the ingested document data.
- Capability inventory: The skill can execute shell commands, compile and run C code, and perform file system operations.
- Sanitization: While the skill uses
defusedxmlfor some XML operations,lxmlis also employed for parsing and validation without explicit security hardening, potentially exposing the agent to XML-based vulnerabilities if processing malicious files.
Audit Metadata