skills/anthropics/skills/docx/Gen Agent Trust Hub

docx

Pass

Audited by Gen Agent Trust Hub on Nov 7, 2026

Risk Level: SAFEDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • Runtime Compilation and Library Injection: The soffice.py script contains embedded C source code that is written to a temporary directory and compiled using gcc at runtime. The resulting shared library is then loaded into the process space using the LD_PRELOAD environment variable. This mechanism is used to shim network socket calls, allowing document conversion tools to function in environments where AF_UNIX sockets are restricted. While this serves a functional purpose for document processing, runtime compilation and injection techniques are significant capabilities that warrant awareness.
  • Subprocess Command Execution: The skill frequently utilizes the subprocess module to execute external tools, including soffice (LibreOffice), gcc, and git. These tools are used for document format conversion, technical workarounds, and version comparison (diffing). The use of system-level utilities is standard for document processing tasks but increases the overall capability profile of the skill.
  • Indirect Prompt Injection Surface: The skill is designed to ingest and manipulate complex Word document formats (.docx, .dotx). These files can contain hidden data, metadata, or XML structures that may influence the behavior of an AI agent. The skill implements security best practices to mitigate these risks, such as using the defusedxml library for safe XML parsing and validating archive members during extraction to prevent directory traversal attacks.
  • Temporary File Path Usage: Some scripts use fixed filenames within the system's temporary directory (e.g., /tmp/lo_socket_shim.so). In shared multi-user systems, the use of predictable paths in global temporary locations can present minor security considerations, though this is typical for technical shims in isolated execution environments.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 7, 2026, 09:27 PM