scientific-visualization

Pass

Audited by Gen Agent Trust Hub on Sep 28, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
  • [SAFE]: The skill is a comprehensive toolkit for scientific visualization, emphasizing data integrity and accessibility. It implements several security-hardened patterns for handling file inputs and generating exports.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes external data (images and scientific datasets) using tools like Matplotlib and Pillow, which presents a theoretical vulnerability surface. However, the skill includes significant mitigations:
  • Ingestion points: The scripts/image_metadata.py script reads and parses user-supplied image files (TIFF, PNG, SVG, PDF, EPS).
  • Boundary markers: The SKILL.md file defines explicit guardrails for scientific behavior and integrity, though it does not use specific markers for input data content.
  • Capability inventory: The skill uses Read, Write, and Bash tools to extract metadata, render figures, and manage exports.
  • Sanitization: The scripts/image_metadata.py script includes a regex-based pre-parser check that identifies and rejects SVG files containing <!ENTITY or <!DOCTYPE declarations, effectively mitigating XML External Entity (XXE) attacks. It also enforces a max_pixels limit to protect against decompression bomb (Zip Bomb) attacks in raster images.
  • [COMMAND_EXECUTION]: The skill documentation provides examples of using uv run to execute scripts with pinned dependencies (e.g., matplotlib==3.11.1). This is a secure practice for managing reproducible and isolated execution environments.
  • [SAFE]: File system operations in scripts/_common.py and scripts/figure_export.py follow defensive programming practices:
  • Input Validation: checked_input_file rejects symlinks and enforces strict file size limits (200MB default).
  • Atomic Writes: atomic_write_bytes uses temporary files and os.replace to prevent race conditions and partial file writes.
  • Deterministic JSON: emit_json ensures consistent, bounded reporting for the agent to consume.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 28, 2026, 09:46 AM