docx
Warn
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill performs runtime compilation and process injection to ensure its dependencies function in restricted environments.
- The script
scripts/office/soffice.pydynamically writes a hardcoded C source string (_SHIM_SOURCE) to a temporary file and compiles it into a shared library (lo_socket_shim.so) usinggcc. - This library is then injected into the LibreOffice (
soffice) process using theLD_PRELOADenvironment variable to shim UNIX socket calls, which are often blocked in sandboxed execution environments. - The script
scripts/accept_changes.pyautomates the execution of a custom LibreOffice StarBasic macro to process document changes. - [COMMAND_EXECUTION]: The skill makes extensive use of system tools and subprocess calls to perform its tasks.
- Uses
subprocess.runto invoke thegcccompiler for its runtime shim and to controlsofficefor document conversion and macro execution. - Instructions in
SKILL.mdguide the agent to usezip,unzip,find,soffice, andpdftoppmfor managing document packages and generating previews. - [INDIRECT_PROMPT_INJECTION]: The skill has a surface for processing untrusted external data via Word document structures.
- Ingestion points: Untrusted
.docxfiles provided by users are unpacked usingunzipas part of the editing workflow (SKILL.md). - Boundary markers: The instructions explicitly include a security step to remove symlinks from unpacked archives (
find unpacked -type l -delete) to prevent directory traversal or file access outside the target path. - Capability inventory: The skill maintains the ability to write to the local filesystem and execute shell commands to modify document content and convert formats.
- Sanitization: The Python validation and manipulation logic (
scripts/merge_runs.py,scripts/comment.py, etc.) utilizes thedefusedxmllibrary to protect against XML-based attacks such as XML External Entity (XXE) vulnerabilities.
Audit Metadata