diagram-generator

Pass

Audited by Gen Agent Trust Hub on May 14, 2026

Risk Level: SAFEPROMPT_INJECTION
Full Analysis
  • [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection as it processes user-controlled text within its prompt generation logic without adequate isolation.
  • Ingestion points: The topic command-line argument in scripts/generate_diagram.py serves as the entry point for untrusted user data.
  • Boundary markers: Absent. The user input is interpolated directly into the meta_prompt string using f-strings without the use of delimiters (like XML tags or triple quotes) or instructions to ignore embedded commands.
  • Capability inventory: The skill possesses the capability to write files to the local filesystem using the Pillow library's save method in scripts/generate_diagram.py.
  • Sanitization: Absent. No validation, escaping, or filtering is applied to the user-supplied topic before it is included in the prompt sent to the Gemini API.
Audit Metadata
Risk Level
SAFE
Analyzed
May 14, 2026, 05:58 AM
Security Audit — agent-trust-hub — diagram-generator