pydicom

Pass

Audited by Gen Agent Trust Hub on Sep 8, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
  • [SAFE]: The skill demonstrates robust local security architecture. Shared logic in _common.py implements strict path validation via checked_input and checked_output functions, which enforce a local root directory and reject parent traversal (..), symlinks, and non-local URI schemes. The scripts also enforce configurable limits on input file sizes, data element counts, frame counts, and estimated decompressed memory to prevent resource exhaustion or denial-of-service when processing complex DICOM objects.
  • [EXTERNAL_DOWNLOADS]: The skill requires standard Python medical imaging and compression libraries, including pydicom, numpy, Pillow, pylibjpeg, and python-gdcm. These are well-known, established packages for processing DICOM pixel data and transfer syntaxes. The documentation recommends pinning exact versions and verifying artifacts from trusted sources before deployment.
  • [INDIRECT_PROMPT_INJECTION]: As a data processing tool, the skill is exposed to external DICOM files which could contain untrusted metadata. This surface is mitigated by the skill's design, which uses strict technical allowlists for data extraction and provides specialized auditing tools (deidentification_audit.py) to detect residual identifiers. The skill explicitly warns the agent and the user that DICOM data may contain Protected Health Information (PHI) and requires human expert verification for safety.
  • [COMMAND_EXECUTION]: The helper scripts use standard Python library calls for file system operations and subprocesses are limited to standard CLI tool initialization. No arbitrary command execution or shell injection vectors were identified.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 8, 2026, 04:42 AM