docx
Fail
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: HIGHDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/office/soffice.pyuses high-risk runtime code generation and process injection techniques. - It contains a C source code block (
_SHIM_SOURCE) that is written to a temporary file and compiled on the fly usinggccinto a shared object (.so). - This resulting library is then injected into the LibreOffice (
soffice) execution environment using theLD_PRELOADenvironment variable to shim networking functions. - [COMMAND_EXECUTION]: Multiple scripts execute external system binaries to perform document tasks.
scripts/office/soffice.pyinvokesgccfor compilation andsofficefor document operations.scripts/accept_changes.pyexecutessofficewith headless flags and custom installation paths.scripts/office/validators/redlining.pyinvokesgit diffto compare extracted text content.- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted Office Open XML (.docx/.dotx) files, presenting a vulnerability surface for indirect injection.
- Ingestion points: External document content is ingested via
unzipand parsed into the agent's context by scripts such asscripts/merge_runs.pyandscripts/office/validate.py. - Boundary markers: While
SKILL.mdcontains a manual warning to the agent that documents from external parties are untrusted, there are no programmatic delimiters or 'ignore' instructions wrapping the parsed content when it is processed. - Capability inventory: The skill possesses high-privilege capabilities including arbitrary file system writes, runtime compilation, and shell command execution, which could be leveraged if an ingested document successfully influences agent behavior.
- Sanitization: The skill uses
defusedxmlto protect against some XML-based attacks (like XXE), but it does not sanitize the natural language content extracted from the XML before it enters the LLM context.
Recommendations
- AI detected serious security threats
Audit Metadata