Karnak: Open-Source DICOM De-identification Gateway
Karnak is a DICOM gateway for data de-identification and DICOM attribute normalization. It is distributed as a containerized and portable application, making it easy to deploy and use across various environments.
Karnak receives studies through a DICOM listener and forwards them to DICOM (C-STORE) or DICOMweb (STOW-RS) destinations.
Get started
New to Karnak? How Karnak works shows a typical deployment with a research repository outside the institution and the pipeline each study goes through.
- Install Karnak with Docker Compose on a server, or download the portable distribution to run it on a single machine without installation.
- Create a forward node with its sources and destinations.
- Create a project and assign it a de-identification profile.
Key Features
- DICOM Gateway: Acts as a proxy between DICOM modalities/workstations and PACS/Archives.
- Flexible Connectivity: Supports standard DICOM protocols (C-STORE) and DICOMweb (STOW-RS).
- De-identification: Based on the DICOM standard, with configurable actions in YAML profiles.
- Clean pixels: Remove burned-in annotations with hand-defined masks or automatically through OCR service.
- Pseudonymization: Apply pseudonyms from DICOM fields, by importing CSV, or with external web services.
- Tag Morphing: Normalizes DICOM attributes to ensure consistency across your workflow.
- Conditional Processing: Apply de-identification and tag morphing rules based on customizable conditions.
- Conformance Reports: Validate each study against the DICOM standard and email a conformance report, with optional report-only (virtual) destinations.
- Monitoring: Follow transfers in a destination, study and series tree, compare original and de-identified values, and export the activity as CSV.
- Notification System: Email notifications for successful transfers and errors.
- Diagnostic Tools: Test and probe DICOM nodes and DICOMweb endpoints — echo, capabilities, network and service checks.
- Project Management: Organize de-identification rules and secrets by project.
- Single Sign-On: Delegate the web portal login to an OpenID Connect provider such as Keycloak.
- Web Interface: User-friendly web portal for configuration, profile building and monitoring.
- Portable Distribution: Run Karnak as a portable application without installation.
Related project
Karnak de-identifies and forwards studies; it is not a viewer and not an archive. The companion DICOM viewer from the same project is Weasis, which reads the studies a Karnak destination receives — including from a DICOMweb archive.