ai-full-figure
Pass
Audited by Gen Agent Trust Hub on Jun 22, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [SAFE]: Indirect Prompt Injection Risk Assessment.
- Ingestion points:
scripts/generate_figure.pyaccepts a user-providedpromptfor image generation.scripts/overlay_labels.pyingests label text and coordinates via CLI arguments or JSON files. - Boundary markers: The skill does not use explicit boundary markers for the prompt, but it enforces a hardcoded "no text/no labels" instruction appended to all substrate generation requests to minimize model hallucination.
- Capability inventory: The skill can execute the
codexCLI tool viasubprocess.run(with sandbox flags) and perform local file writes for PNG and SVG images. - Sanitization:
scripts/overlay_labels.pyproperly sanitizes input by performing XML entity escaping on all label text and using strict hexadecimal regex validation for CSS color values, effectively preventing attribute or script injection in the generated SVG files. - [COMMAND_EXECUTION]: The skill uses
subprocess.runto interact with thecodexcommand-line interface for image generation and to execute internal Python scripts for figure composition. These executions are performed using argument lists rather than raw shell strings, which significantly reduces the risk of command injection.
Audit Metadata