docx
Warn
Audited by Gen Agent Trust Hub on Nov 14, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/office/soffice.pycontains a function_ensure_shimthat writes a C source string to a temporary file and compiles it into a shared object usinggcc. This library is then used via theLD_PRELOADenvironment variable to shim system calls (socket,listen,accept,close,read) in thesoffice(LibreOffice) process. This is used to redirect Unix domain socket communication to pipes/socketpairs to adapt to sandboxed environments. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and extract content from untrusted
.docxfiles viapandocand XML parsing. - Ingestion points: Document content is extracted in
SKILL.mdusingpandocand XML files are unpacked inscripts/office/unpack.py. - Boundary markers: The instructions do not consistently use delimiters or explicit warnings for the agent to ignore instructions contained within the extracted document text.
- Capability inventory: The skill has broad capabilities including arbitrary shell command execution via
subprocess.run(to callsoffice,pandoc,git,pdftoppm) and file system write access. - Sanitization: While the skill uses
defusedxmlto prevent XML-based attacks (XXE), it does not sanitize the resulting text content for potential prompt injection patterns before passing it to the agent context. - [COMMAND_EXECUTION]: Multiple scripts utilize
subprocess.runto execute external binaries: scripts/accept_changes.pyandscripts/office/soffice.pyexecutesofficefor document conversion.scripts/office/soffice.pyexecutesgccfor runtime compilation.scripts/office/validators/redlining.pyexecutesgit difffor change validation.- Instructions in
SKILL.mdguide the agent to usepdftoppmandpandocvia the shell.
Audit Metadata