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.runtool (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-clito 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 installand 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
requestspayload template. - Capability inventory:
system.run(executing Python network code), file writing tooutputs/figures/. - Sanitization: No explicit sanitization or escaping of the
{description}variable is described. - [DATA_EXFILTRATION]: The skill makes network requests to
openrouter.aito 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