pydicom

Pass

Audited by Gen Agent Trust Hub on Sep 24, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
  • [SAFE]: The skill implements excellent security engineering practices for handling sensitive data. All helper scripts use strict path validation (via checked_input, checked_output, and checked_root in scripts/_common.py) to prevent path traversal and symbolic link attacks. Secret keys for UID remapping are created with owner-only permissions (0600) and the tools explicitly avoid network access.
  • [EXTERNAL_DOWNLOADS]: The skill references standard, well-known Python packages for DICOM processing (such as pydicom, numpy, Pillow, and pylibjpeg) to be installed from the official Python Package Index (PyPI). These are standard dependencies for the declared medical imaging functionality.
  • [COMMAND_EXECUTION]: The skill provides a set of local helper scripts for processing DICOM data. These scripts are invoked via standard command-line interfaces and are restricted to local authorized data, performing technical inventory and pseudonymization without executing untrusted code.
  • [INDIRECT_PROMPT_INJECTION]: The skill manages a surface for indirect injection by ingesting untrusted DICOM datasets. It mitigates this risk by utilizing strict metadata allowlists (TECHNICAL_KEYWORDS), capping recursion depth (MAX_SEQUENCE_DEPTH), and enforcing byte-size limits for both metadata and pixel payloads. There is no evidence of data being interpolated into system prompts in an unsafe manner.
  • [DYNAMIC_EXECUTION]: The transfer_syntax_inspector.py script uses importlib.metadata for library version introspection, and the codec inspection relies on pydicom's built-in plugin discovery mechanism. These are standard and safe introspection patterns for verifying the execution environment.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 24, 2026, 02:28 PM