docx
Warn
Audited by Gen Agent Trust Hub on Sep 21, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/office/soffice.pyperforms runtime compilation of a C library and uses library injection. - It writes a hardcoded C source string (
_SHIM_SOURCE) to a temporary file. - It invokes
gccto compile this source into a shared object file (.so). - It launches
sofficewith theLD_PRELOADenvironment variable set to the path of the compiled shared object. This shims the system socket API to allow LibreOffice to function in environments where Unix domain sockets are blocked. - [COMMAND_EXECUTION]: Multiple scripts execute external system commands using the
subprocessmodule: scripts/accept_changes.pyandscripts/office/soffice.pyexecutesoffice(LibreOffice).scripts/office/soffice.pyexecutesgccfor the socket shim compilation.scripts/office/validators/redlining.pyexecutesgit diffto compare text content between document versions.- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted document content, which creates a surface for indirect prompt injection attacks.
- Ingestion points: Untrusted DOCX files are unpacked in
scripts/office/unpack.pyand their XML content is read by various validators and scripts. - Boundary markers: The skill does not implement boundary markers or 'ignore' instructions when reading the document content into the agent's context.
- Capability inventory: The skill possesses extensive file system access (via
scripts/office/pack.pyandscripts/comment.py) and command execution capabilities (viasofficeandgit). - Sanitization: While the skill uses
defusedxmlto prevent some XML-based attacks, it does not sanitize the natural language content of the documents for embedded instructions that could hijack the agent's execution flow during the editing process. - [EXTERNAL_DOWNLOADS]: The skill's instructions in
SKILL.mdreference several third-party tools and packages required for full functionality: - It recommends
npm install -g docxfor document generation. - It relies on well-known services and tools including
pandoc(text extraction),LibreOffice(document conversion), andPopplerutilities (pdftoppm).
Audit Metadata