docx
Warn
Audited by Gen Agent Trust Hub on Mar 31, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTIONNO_CODE
Full Analysis
- [DYNAMIC_EXECUTION]: The skill contains logic to compile a hardcoded C source file into a shared library at runtime using
gccand then injects this library into thesoffice(LibreOffice) process using theLD_PRELOADenvironment variable. This is implemented inscripts/office/soffice.pyas a technical workaround for environments where AF_UNIX sockets are restricted. - [COMMAND_EXECUTION]: Several scripts execute system-level commands through subprocesses to perform document conversion, text diffing, and image generation. Examples include
soffice,git diff, andpdftoppmacross files such asscripts/office/soffice.py,scripts/accept_changes.py, andscripts/office/validators/redlining.py. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from Office documents and provides the agent with capabilities to execute shell commands, creating a potential path for exploitation if documents contain malicious instructions.
- Ingestion points: The skill extracts XML content from user-supplied DOCX, PPTX, and XLSX files using
scripts/office/unpack.py. - Boundary markers: No instructions or delimiters are present to warn the agent to ignore potential instructions embedded within the document content.
- Capability inventory: The skill can execute multiple external binaries (
soffice,git,gcc) via subprocess calls. - Sanitization: The skill uses
defusedxmlandlxmlfor XML parsing, which provides protection against XML External Entity (XXE) attacks, though it does not filter natural language instructions.
Audit Metadata