docx
Warn
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/office/soffice.pyperforms runtime compilation and library injection. It defines C source code for a system-call interception shim, writes it to a temporary file, compiles it usinggccinto a shared object, and loads it into the LibreOffice process using theLD_PRELOADenvironment variable. This mechanism is used to shim socket calls to allow LibreOffice to run in environments where certain network operations are restricted.\n- [COMMAND_EXECUTION]: The skill executes several system commands via thesubprocessmodule, includinggccfor compiling its internal shim,soffice(LibreOffice) for document processing, andgitfor diffing content. These operations are directly tied to the primary functionality of document manipulation and conversion.\n- [INDIRECT_PROMPT_INJECTION]: The skill unzips and parses XML content from user-provided Office documents, which creates a surface for indirect prompt injection if the document contains instructions the agent might obey.\n - Ingestion points: Document XML files are processed in multiple scripts, including
scripts/merge_runs.pyand the document validators.\n - Boundary markers: No explicit markers are used to warn the agent to ignore instructions within the processed document text.\n
- Capability inventory: The skill has powerful capabilities, including the ability to compile binary code and execute external document processors.\n
- Sanitization: To mitigate risks, the skill uses the
defusedxmllibrary for all XML parsing and asafe_extracthelper to prevent directory traversal attacks during the unzipping of archives.
Audit Metadata