docx
Warn
Audited by Gen Agent Trust Hub on Sep 20, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill uses runtime compilation and library injection to enable Office document processing in restricted environments.
scripts/office/soffice.pywrites C source code to a temporary file and compiles it into a shared library usinggccvia asubprocess.runcall.- The resulting library is loaded using the
LD_PRELOADenvironment variable to intercept socket-related system calls, a technique used to bypass sandbox restrictions onAF_UNIXsockets. scripts/accept_changes.pydynamically generates and writes a StarBasic macro (ACCEPT_CHANGES_MACRO) to the LibreOffice profile directory to be executed at runtime.- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted document content and XML metadata, providing a surface for indirect instructions to influence agent behavior.
- Ingestion points:
scripts/office/unpack.pyextracts XML files from untrusted.docx,.pptx, or.xlsxfiles usingzipfile.extractall.pandocis also used for text extraction from documents. - Boundary markers: Absent. There are no explicit delimiters or instructions to the agent to ignore potentially adversarial instructions embedded within the document content or XML tags.
- Capability inventory: The skill possesses high-privilege capabilities including arbitrary command execution via
subprocess.run(insoffice.py,accept_changes.py, andredlining.py), runtime compilation (gcc), and extensive file system write access. - Sanitization: Absent. Document content and metadata are passed directly into the agent's context without filtering, escaping, or instruction-trapping.
- [COMMAND_EXECUTION]: The skill executes several external CLI tools via the shell.
- In addition to the
gcccompiler, the skill invokesgit diffwith the--word-diffflag inscripts/office/validators/redlining.pyto compare document versions. - It heavily relies on
soffice(LibreOffice) for format conversion and change management.
Audit Metadata