ms-office-word-python

Pass

Audited by Gen Agent Trust Hub on Sep 28, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill is primarily a documentation and reference guide for Python-based Word document manipulation. It focuses on well-known libraries and provides defensive coding patterns.
  • [INDIRECT_PROMPT_INJECTION]: The skill identifies the risk of processing untrusted Word documents (OOXML). It proactively provides security hardening guidance to mitigate these risks, including:
  • Mandatory use of defusedxml to prevent XXE (XML External Entity) attacks when parsing OOXML files.
  • Implementation of a 'HARD-RULE' to prevent silent macro stripping in .docm files without explicit user consent.
  • Recommendation to parse untrusted documents in sandboxed containers or subprocesses to prevent 'billion-laughs' or 'zip-bomb' denial-of-service attacks.
  • Instructions to strip PII and internal metadata from core properties before external publication.
  • [COMMAND_EXECUTION]: Provides standard system administration commands for environment setup (e.g., sudo apt install, sudo dnf install, and pip install). These are routine installation steps for the libraries discussed.
  • [DYNAMIC_EXECUTION]: Discusses the use of pywin32 for Word automation on Windows via COM. While this is dynamic execution, it is presented as a legacy/niche solution with appropriate warnings about fidelity and OS limitations.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 28, 2026, 12:51 PM