docx
Fail
Audited by Gen Agent Trust Hub on May 11, 2026
Risk Level: HIGHCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill frequently executes shell commands through Python's
subprocess.runmodule to perform its tasks. scripts/accept_changes.pyexecutessofficeto process documents.scripts/office/soffice.pyexecutesgccto compile a shared library from source code at runtime.scripts/office/validators/redlining.pyexecutesgit diffto compare text content.- [DYNAMIC_EXECUTION]:
scripts/office/soffice.pygenerates and executes code dynamically at runtime. - It contains a C source code string (
_SHIM_SOURCE) which is written to a temporary file (lo_socket_shim.c). - It compiles this source into a shared object file (
lo_socket_shim.so) usinggccat runtime. - It uses the
LD_PRELOADenvironment variable to inject this compiled shim into thesofficeprocess, hooking system calls likesocket,listen, andaccept. - [EXTERNAL_DOWNLOADS]:
SKILL.mdprovides instructions for the user to install external dependencies required for the skill's operation. - Recommends installing the
docxJavaScript library globally usingnpm install -g docx. - [PROMPT_INJECTION]: The skill has a significant attack surface for indirect prompt injection (Category 8).
- Ingestion points: The skill reads and processes untrusted
.docxfiles provided by users viascripts/office/unpack.py. - Boundary markers: There are no explicit markers or instructions to ignore potential commands embedded within the document XML.
- Capability inventory: The skill possesses extensive capabilities including file system access, arbitrary shell command execution, and runtime code compilation.
- Sanitization: While the skill uses
defusedxmlto prevent XML-based attacks (XXE), the extracted text is processed by an LLM which may follow instructions embedded in the document text.
Recommendations
- AI detected serious security threats
Audit Metadata