scientific-schematics
Pass
Audited by Gen Agent Trust Hub on Sep 8, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill makes network requests to the OpenRouter API (https://openrouter.ai/api/v1) to perform image generation and quality reviews. This is a well-known service for accessing various AI models.
- [COMMAND_EXECUTION]: The entry script (scripts/generate_schematic.py) executes an internal helper script (scripts/generate_schematic_ai.py) using subprocess.run(). The implementation follows security best practices by passing arguments as a list to prevent shell injection and by strictly controlling the environment variables forwarded to the child process.
- [INDIRECT_PROMPT_INJECTION]: The skill uses an iterative refinement loop that interpolates user-supplied diagram descriptions and AI-generated critiques into prompts for subsequent model calls. This architecture presents a potential surface for indirect prompt injection.
- Ingestion points: User input enters via the 'prompt' argument in scripts/generate_schematic.py and is passed to scripts/generate_schematic_ai.py.
- Boundary markers: The prompts use simple text headers (e.g., 'USER REQUEST:') to delimit user data, which provide minimal protection against adversarial instructions embedded within descriptions.
- Capability inventory: The skill can perform network requests to the OpenRouter API and write files to the local disk (diagram images and JSON review logs).
- Sanitization: User-provided descriptions are interpolated into prompts without explicit sanitization or structured validation.
Audit Metadata