pydicom
Pass
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted DICOM files which could contain malicious text or instructions embedded in metadata or private elements.
- Ingestion points: DICOM datasets are parsed by multiple scripts including
extract_metadata.py,dicom_inventory.py, andanonymize_dicom.pyvia thesafe_dcmreadwrapper. - Boundary markers:
SKILL.mdincludes a "Mandatory safety boundary" section with explicit instructions to use allowlists and aggregate outputs to prevent unintended data exposure. - Capability inventory: The skill has the capability to write files to the local filesystem and generate image derivatives, but lacks network exfiltration capabilities in its scripts.
- Sanitization: The skill employs extensive sanitization via
scripts/_common.py, which validates input paths to prevent directory traversal and rejects remote URIs (e.g., http, s3, ssh). Metadata extraction is restricted to a narrow technical allowlist by default. - [EXTERNAL_DOWNLOADS]: The skill documentation provides instructions for installing well-known scientific and medical imaging libraries from the official Python package registry (PyPI). The libraries include
pydicom,numpy,Pillow, and standard transfer-syntax plugins likepylibjpegandpyjpegls. - [COMMAND_EXECUTION]: The skill uses local Python scripts to perform technical DICOM operations. These scripts incorporate internal safety checks for integer bounds, file sizes, element counts, and recursion depth to ensure the agent remains within safe resource limits during execution.
Audit Metadata