Plotting SOP

Pass

Audited by Gen Agent Trust Hub on Nov 12, 2026

Risk Level: SAFEDYNAMIC_EXECUTIONREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
  • [DYNAMIC_EXECUTION]: The skill generates Python and SVG code at runtime based on user requirements and executes it using the system.run tool (e.g., executing scripts saved to /tmp/rc_plot_{hash}.py). This is a core functional requirement but represents a dynamic code execution surface.
  • [REMOTE_CODE_EXECUTION]: The skill utilizes npx --yes @mermaid-js/mermaid-cli to render diagrams. This command dynamically fetches and executes the Mermaid CLI from the public npm registry at runtime.
  • [COMMAND_EXECUTION]: The skill performs shell operations for environment detection and dependency management, including running pip install and potentially executing a local setup script (bash scripts/setup-plotting-env.sh).
  • [INDIRECT_PROMPT_INJECTION]: The AI Image engine (§6) ingests user-provided figure descriptions and interpolates them directly into a prompt sent to an external API (OpenRouter/Gemini). This creates an attack surface where untrusted data could attempt to override instructions for the image generation model.
  • Ingestion points: Figure descriptions provided by the user in the request (SKILL.md §6).
  • Boundary markers: Absent in the Python requests payload template.
  • Capability inventory: system.run (executing Python network code), file writing to outputs/figures/.
  • Sanitization: No explicit sanitization or escaping of the {description} variable is described.
  • [DATA_EXFILTRATION]: The skill makes network requests to openrouter.ai to facilitate image generation. This process involves the transmission of a user-provided OpenRouter API key stored in the environment. While targeting a well-known service, it constitutes an external network operation involving sensitive credentials.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 12, 2026, 08:04 AM