docx
Warn
Audited by Gen Agent Trust Hub on Sep 13, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill performs runtime compilation and library injection to enable functionality in restricted environments. In
scripts/office/soffice.py, the script contains C source code that is written to a temporary file, compiled usinggccinto a shared object (lo_socket_shim.so), and subsequently injected into thesofficeprocess using theLD_PRELOADenvironment variable. This is done to shimAF_UNIXsocket calls tosocketpaircalls. - [INDIRECT_PROMPT_INJECTION]: The skill possesses a significant attack surface for indirect injection via untrusted XML data. It unpacks
.docxfiles and parses the internal XML usinglxml.etree.parse()in various validation scripts such asscripts/office/validators/docx.pyandscripts/office/validators/base.py. Standardlxmlparsing is vulnerable to XML External Entity (XXE) attacks, which could be exploited by a malicious document to read local files or probe the internal network. - Ingestion points:
scripts/office/unpack.pyextracts XML; validator scripts inscripts/office/validators/parse this content. - Boundary markers: None present for document XML content.
- Capability inventory:
subprocess.run(executingsoffice,gcc,git) and filesystem write operations. - Sanitization: Inconsistent. The skill uses
defusedxmlfor some utility functions but relies on defaultlxmlparsing for its primary schema validation logic. - [COMMAND_EXECUTION]: The skill relies on several shell commands executed via
subprocess.run, includingsoffice(LibreOffice) for document conversion,gcc(compiler) for generating shims, andgitfor comparing document revisions in the redlining validator.
Audit Metadata