pptx

Warn

Audited by Gen Agent Trust Hub on Nov 7, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONMETADATA_POISONING
Full Analysis
  • [DYNAMIC_EXECUTION]: The script scripts/office/soffice.py generates and compiles C source code (lo_socket_shim.c) at runtime using gcc. The resulting shared object is then injected into the LibreOffice process via the LD_PRELOAD environment variable.
  • Evidence: Found in scripts/office/soffice.py within the _ensure_shim function, which executes subprocess.run(['gcc', '-shared', '-fPIC', ...]).
  • Intent: The code contains detailed documentation explaining that this shim is necessary to bypass AF_UNIX socket restrictions in sandboxed environments, and it uses tempfile.mkdtemp (0700 permissions) to prevent local privilege escalation or pre-planting attacks.
  • [COMMAND_EXECUTION]: Multiple scripts execute external system binaries to fulfill the skill's functionality.
  • Evidence: scripts/thumbnail.py and scripts/office/soffice.py use subprocess.run to call pdftoppm (for image conversion), gcc (for compilation), and soffice (LibreOffice).
  • Evidence: scripts/office/validators/redlining.py calls the system git binary to perform word-level diffing between document versions.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user-supplied .pptx and .potx files and exposes a significant attack surface to indirect prompt injection through subsequent processing.
  • Ingestion points: Untrusted slide content enters the agent context via markitdown extraction in SKILL.md.
  • Boundary markers: Uses <!-- Slide number: N --> markers to separate slide content.
  • Capability inventory: The skill has high-privilege capabilities including arbitrary file system writes (zipfile), subprocess execution (soffice, gcc, git), and dynamic library injection.
  • Sanitization: Employs defusedxml in scripts like scripts/clean.py and scripts/office/validators/base.py to prevent XML External Entity (XXE) attacks.
  • [METADATA_POISONING]: There is a potential provenance mismatch between the stated author and the technical context.
  • Evidence: SKILL.md identifies the author as 'Anthropic, PBC' and points to a source repository at github.com/anthropics/skills, while the environment context identifies the skill author as 'khkreddy'. This could mislead users regarding the official support or security audit status of the code.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 7, 2026, 12:21 PM