pydicom
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes DICOM files from external sources, creating a potential surface for indirect prompt injection. Malicious instructions could be embedded within DICOM metadata tags (such as PatientName, StudyDescription, or PatientComments) that an AI agent might interpret as instructions rather than data when processing the file metadata.
- Ingestion points: Untrusted data enters the agent context via
pydicom.dcmread()calls found inSKILL.md,scripts/extract_metadata.py,scripts/anonymize_dicom.py, andscripts/dicom_to_image.py. - Boundary markers: The provided scripts do not utilize specific delimiters or boundary instructions to signal to the agent that extracted metadata strings should not be treated as executable instructions.
- Capability inventory: The skill possesses the capability to write files to the local system (
ds.save_as) and perform image transformations, which could be misused if an agent is successfully manipulated. - Sanitization: The
format_valuefunction inscripts/extract_metadata.pyhandles basic data type conversion and byte decoding (usingerrors='ignore'), but does not provide content-level sanitization or filtering for prompt injection patterns.
Audit Metadata