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_dcmreadfunction 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.pyperform 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.pyredact identifiers by default, andanonymize_dicom.pyprovides 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.pyvia_reject_path_textand_reject_symlink_components, which block parent directory traversal (..), URI schemes, and symlinks.
Audit Metadata