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 using gcc into a shared object (lo_socket_shim.so), and subsequently injected into the soffice process using the LD_PRELOAD environment variable. This is done to shim AF_UNIX socket calls to socketpair calls.
  • [INDIRECT_PROMPT_INJECTION]: The skill possesses a significant attack surface for indirect injection via untrusted XML data. It unpacks .docx files and parses the internal XML using lxml.etree.parse() in various validation scripts such as scripts/office/validators/docx.py and scripts/office/validators/base.py. Standard lxml parsing 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.py extracts XML; validator scripts in scripts/office/validators/ parse this content.
  • Boundary markers: None present for document XML content.
  • Capability inventory: subprocess.run (executing soffice, gcc, git) and filesystem write operations.
  • Sanitization: Inconsistent. The skill uses defusedxml for some utility functions but relies on default lxml parsing for its primary schema validation logic.
  • [COMMAND_EXECUTION]: The skill relies on several shell commands executed via subprocess.run, including soffice (LibreOffice) for document conversion, gcc (compiler) for generating shims, and git for comparing document revisions in the redlining validator.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Sep 13, 2026, 10:38 AM