pydicom

Pass

Audited by Gen Agent Trust Hub on Oct 2, 2026

Risk Level: SAFE
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill processes external DICOM datasets, which constitutes an attack surface. However, it implements comprehensive mitigations:
  • Ingestion points: The safe_dcmread function is used across all scripts to load DICOM metadata.
  • Boundary markers: The skill enforces metadata-only reads (stop_before_pixels=True) and uses strict allowlists (e.g., TECHNICAL_KEYWORDS) to prevent the exposure of untrusted text to the agent.
  • Capability inventory: Capabilities are restricted to local file I/O (dcmwrite, atomic_write); no network or shell execution tools are present within the skill scripts.
  • Sanitization: Shared utilities in _common.py perform rigorous validation on all inputs, including size bounds, character set restrictions, and UID syntax verification.
  • [DATA_EXPOSURE]: While the skill handles sensitive medical data (PHI), it is explicitly designed to minimize exposure. Scripts like extract_metadata.py redact identifiers by default, and anonymize_dicom.py provides deterministic pseudonymization using HMAC-based UID derivation. The mandatory safety boundary requires authorized local-only access.
  • [COMMAND_EXECUTION]: The skill performs only local file operations. Path traversal is strictly prevented in _common.py via _reject_path_text and _reject_symlink_components, which block parent directory traversal (..), URI schemes, and symlinks.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 2, 2026, 05:01 PM