Locking down the Orthanc DICOM server to known modalities

Stop unknown devices from storing or querying your Orthanc archive. This page covers which DICOM commands to restrict, how to check modality addresses and what to confirm before changing a live hospital network.

On this page

Restricting the Orthanc DICOM server to known modalities

This section is for teams whose Orthanc server accepts DICOM traffic from devices nobody has inventoried. The goal is to allow only registered modalities to store, query or retrieve images, and to refuse every other caller at the DICOM listener. The work covers four things: reviewing the C-ECHO and C-STORE behavior that Orthanc allows by default, checking the IP addresses and AE titles recorded for each modality against your asset inventory, setting per-modality permissions for each DICOM command, and turning DICOM off on cloud-hosted servers that do not need to receive images from modalities at all. Before changing anything, ask who owns each modality entry, because a stale entry will block a scanner that is still in clinical use.

Orthanc's security FAQ treats HTTP access and scripting routes separately, so this page covers only the DICOM listener. Keep that boundary in view: restricting modalities does not change who can call the REST API, and REST authentication does not limit which modalities can send images. The FAQ specifically warns that the script execution route can let a malicious user run system commands and that the export route can overwrite files, so both should stay disabled whatever DICOM rules you set. Check those settings in the same review, because a locked DICOM listener with an open REST route still leaves a path into the server.

Teams usually need this on flat hospital networks, where any workstation can reach the DICOM port, on shared VLANs that mix imaging equipment with unrelated devices, and on cloud-hosted archives with a public network path. Confirm which of these describes your setup before choosing controls, because network firewall rules and Orthanc's own modality list act on the same traffic and should agree with your inventory. The exact configuration keys depend on the Orthanc version you run, so confirm each key name, its default and its behavior in the configuration reference for your version before editing production settings. Test each change with a modality you control first, since a refused C-STORE often looks like a network fault to the device operator.

A DICOM request must clear each lockdown check before Orthanc answers

This conceptual flow traces an incoming DICOM association from a modality on the hospital network into the Orthanc host. The firewall and IP allowlist are checked first, at the trust boundary, so an unknown address is refused before any DICOM message is read. The calling AE title and address must then match a configured modality, and the requested command must fit that modality's permissions. Left enabled, the always-allowed C-ECHO and C-STORE paths skip that per-modality list, so review them first. Confirm the order of checks against the running Orthanc version.

Conceptual flow, to be confirmed against the running Orthanc version.

Which lockdown controls fit which environment

This table compares six lockdown controls for an Orthanc DICOM listener by what each stops, what it leaves open, and what it costs to run. Read the rows together, because the controls overlap and no single one identifies a device on its own. A common pattern is the registered modality list and network checks together, with TLS added for any link that leaves the site.

ControlWhat it stopsWhat it does not stopRunning cost and when it fits
Always-allowed C-ECHO and C-STORE turned offUnknown devices from verifying the server or pushing images without being registered.Registered devices sending studies, and any caller that copies a registered AE title.Low one-time change, but registered modalities must be listed first or valid uploads fail. Fits every archive with a known device fleet.
Registered modality list keyed by AE title, address and portDevices missing from the list, or sending from an unlisted AE title, host or port.AE title spoofing on a flat network, because the calling device sets its own AE title.Recurring upkeep as devices are replaced, re-addressed or added. Effort grows with fleet size. Fits any site with a documented device inventory.
IP checks at host or network firewallConnections from addresses outside the allowed range, before any DICOM association starts.Spoofed AE titles from an allowed address, or a compromised device inside the allowed range.Firewall rules owned by the network team, with reviews whenever devices move. Fits segmented imaging networks with stable device addresses.
Per-modality command permissions for store, query, retrieve and moveA registered modality from querying or pulling studies it has no clinical reason to reach.Misuse by a device that legitimately needs store rights, or spoofing of its AE title.Recurring review of the permission matrix. Confirm the exact settings for your Orthanc version in the Orthanc Book. Fits multi-vendor sites with send-only devices.
DICOM TLS for inter-site exchangeEavesdropping and tampering on DICOM traffic crossing networks between sites.Unlisted devices on the same site network. Peers still need the modality list and certificate checks.Certificate issuance, rotation and peer testing. Available starting with version 1.9.0, according to the Orthanc security FAQ. Fits any link leaving the site.
Turning off the DICOM listener on cloud serversAny DICOM connection to a cloud instance that has no need to receive images over DICOM.Abuse of the REST API or web viewers, which need their own authentication and HTTPS controls.Low running cost, but images need another arrival route, such as a gateway or the REST API. Fits viewer-only cloud archives.

Setting up a modality allowlist in Orthanc

This sequence limits an Orthanc server to the imaging devices and peers you name. Each step inventories a device, changes one setting, and ends with a check that shows the change works. The result is a documented allowlist that your security and imaging teams can review and retest.

  1. Inventory every device that exchanges images

    Imaging IT lists every scanner, PACS, teleradiology peer and viewer that sends or queries images, using the modality owner's documentation and the archive's current logs. For each device, record the AE title, IP address, port, and whether it stores, queries or retrieves. Ask each owner to confirm the address, since a changing DHCP lease can silently break a rule. Done when every row has an owner, a purpose and a confirmed address, and nothing is marked to be determined.

  2. Disable always-allowed echo and store

    Save a copy of the current configuration file and note the Orthanc version before you change anything, so the rollback is a file restore and a restart. Then turn off the settings that let any device send a C-ECHO or C-STORE without being listed, which are set by DicomAlwaysAllowEcho and DicomAlwaysAllowStore. Confirm the exact key names, defaults and file location for your version first. Expect approved devices to be refused until step 3 is complete, so schedule this change with the imaging team. Done when the server restarts cleanly with both settings disabled and the rollback steps are written down.

  3. Add each approved modality with minimum commands

    Add one entry per approved device to the modality list, using the AE title, IP address and port from step 1. The key for this list is DicomModalities in the configuration file, but confirm its format for your version. For each entry, allow only the commands that device needs: a scanner typically sends images, while a viewer typically queries and retrieves. Keep the file in version control so every change has a reviewer. Done when the server lists exactly the devices in your inventory, each with its permitted commands, and the list matches the signed-off table.

  4. Block the DICOM port for other sources

    At the network layer, allow the DICOM port only from the IP addresses in your inventory, and drop or reject traffic from every other source, including other hospital subnets and the Internet. Apply the rule on the host firewall, on the data center or cloud security group, and on any upstream firewall, and confirm each one is in place. Network refusals happen before Orthanc sees the connection, so they will not appear in Orthanc's logs. Done when a connection attempt from an unlisted address is blocked and the firewall rule set is saved with the allowlist.

  5. Test each rule from both sides

    From an approved device, send a C-ECHO and a C-STORE of a de-identified test file, and confirm both succeed. From an unlisted device, send the same two requests and confirm both are refused. A firewall refusal stops the connection before Orthanc sees it, so test the application rule from a host inside an allowed subnet that presents an unlisted AE title. Check the Orthanc logs for a refusal entry for that source, and confirm your log level captures it. Done when both results are recorded and each refusal matches a log line.

  6. Record the allowlist and schedule retests

    Save the final modality list, firewall rules, configuration file version and test results together as one change record, and name a reviewer for it. Repeat the step 5 tests after every Orthanc upgrade, configuration change, firewall change or new modality, because version changes can rename or move keys. Done when the change record is signed off, the test evidence is attached, and the next retest is on the calendar.

Why AE titles and IP addresses are weak identity on their own

AE titles and IP addresses should never be treated as proof of who is on the other end of a DICOM association. The calling AE title is a label the sender states during association setup, so any device that can reach the DICOM port can present a name that appears in your configuration. An IP address is a weaker anchor still. Addresses are reassigned by DHCP, can be shared through NAT, and on a flat network any host in the same subnet can send traffic that appears to come from a scanner's address. The entries in DicomModalities therefore filter which peers may connect, but they do not authenticate the modality. Treat them as one layer among several.

The controls work because they fail independently. Network segmentation limits which hosts can open a connection to Orthanc at all, so a compromised workstation on the general user network never reaches the port. An address allowlist, both at the firewall and in Orthanc, then limits which modality addresses are accepted. Per-command permissions in DicomModalities decide what each accepted peer may do: a scanner may need to store images, while a viewer may only need to query and retrieve them. Disabling the always-allowed behavior through DicomAlwaysAllowEcho and DicomAlwaysAllowStore removes the case where an unlisted device can verify connectivity or store images without any entry. Ask your network team to confirm which modality addresses are fixed and which VLAN each device sits on.

DICOM TLS addresses a different risk. Orthanc supports DICOM TLS for inter-site exchanges starting with version 1.9.0, and it protects the contents of an association from eavesdropping on the network. A TLS handshake also lets each side check a certificate, which gives peer authentication that an AE title cannot provide. TLS does not close a segmentation gap or shrink an overly broad permission list, so a TLS-enabled peer with excessive permissions is still too powerful. Mutual TLS has its own topic, but decide early whether modalities can present client certificates, because that determines whether your allowlist can rest on identity instead of address. Read the Orthanc security FAQ first, then validate the whole network design with your security team before go-live.

Security risks to close when DICOM is exposed

Each risk below lets a device reach the archive without being named in the Orthanc configuration. Work through them in the order a connection travels: the network path first, then the Orthanc settings, then the review habits that keep the modality list accurate.

Always-allowed echo and store

Orthanc can be configured to answer C-ECHO and accept C-STORE from calling devices that are missing from the modality list. That makes an unknown machine look like a working modality to anyone who can reach the port. Set DicomAlwaysAllowEcho and DicomAlwaysAllowStore to false, then confirm that each expected modality appears in DicomModalities with its AET, IP address and port. Test from a machine that is not listed and confirm the connection is refused.

Flat networks expose the DICOM port

On a flat hospital network, any workstation, printer or guest device that can route to the Orthanc host can attempt a DICOM association. The application-level list then becomes the only barrier. Place modalities and PACS peers on network segments that reach the Orthanc host, and allow the DICOM port only from those addresses. Confirm the rule with a scan from a device outside those segments, and record who approved the firewall change.

Cloud servers with DICOM open

A cloud instance can end up with an open inbound rule for the DICOM port because of a copied template or an earlier test. If users need only the web interface, that is the only path that should be reachable from outside. Set DicomServerEnabled to false on servers that do not receive images from modalities, publish the web interface over HTTPS behind a reverse proxy, and limit the security group to ports that are actually in use. Recheck inbound rules after every redeploy.

Script and export routes enabled

The Orthanc security FAQ warns that /tools/execute-script can let a malicious user run any system command, and that the export route can overwrite files. Both should stay disabled on any server that holds patient images. Confirm that no reverse proxy rule, plugin or deployment script forwards or re-enables these paths. Read the FAQ before accepting any Lua or Python script from an outside party.

Orthanc security FAQ

Refusals that hide scanning

Every refused C-ECHO, C-STORE or HTTP request is an early signal that something is probing the archive. Unlogged refusals make a scan look the same as a quiet network. Confirm that Orthanc logs refused calls at the level you need, decide where those logs go and how long they are kept, and name the person who reviews refused calling AETs and source addresses on a fixed schedule. Test by sending a request from an unlisted host and confirm the refusal appears where reviewers look.

Modality list changes go unreviewed

When a scanner is replaced, the new device often arrives with a different IP address, and the old DicomModalities entry may point at an address that now belongs to something else. Treat every modality entry change as a reviewed change. Record who requested it, the device serial number, the AET, the IP address and the port. Keep the configuration under version control, remove entries for retired devices, and compare the list with your asset inventory whenever hardware changes.

How the lockdown differs by deployment setting

A hospital archive usually has the most DICOM peers: CT, MR, ultrasound and X-ray modalities, a PACS or vendor neutral archive, a modality worklist source, and workstations that query or retrieve studies. The DICOM listener normally stays on, because modalities need it to store images, but it should accept only a short, known list of AE titles, host addresses and ports. Access should be decided per device, not by the network segment alone.

  • Modality inventory: Record each modality's AE title, IP address, port and location before editing DicomModalities, and remove any entry that nobody can account for.
  • Always-allowed commands: Turn off DicomAlwaysAllowEcho and DicomAlwaysAllowStore so that C-ECHO and C-STORE require a configured peer, and keep DicomCheckCalledAet enabled.
  • Per-modality permissions: Grant store, query and retrieve rights peer by peer, so a viewing workstation can query studies without being able to push images to the archive.
  • Segmentation: Restrict the DICOM port to the imaging VLAN and modality subnets, and block it from general user networks with firewall rules you can audit.
  • Address changes: Coordinate with biomedical engineering before DHCP leases or device replacements change addresses, because a changed IP can silently break storage and lockdown together.

Before each change, confirm with the imaging informatics team and each modality vendor which AE titles and ports the device uses, then test a C-STORE from every modality after each rule change.

Limits to confirm in your environment

The address list and command rules only hold if the surrounding setup matches what Orthanc assumes. Each card below is a question to answer in your own environment before you treat the lockdown as finished, and each points to a place where a gap can let an unknown device store or query images.

Settings for your exact version

Confirm the key names and default values for the Orthanc version you run, and do not copy them from older guides. Orthanc 1.13.0 was released on 2026-08-15 with a rewrite of storage-area access and DICOM parsing, so re-test the allow list and command permissions after every upgrade. Read the security guidance on always-allowed services before you change any default.

Security FAQ

AE title and port conventions

Each modality, workstation and PACS must send a calling AE title and port that match its entry in the Orthanc modality list. Check whether every device follows the same naming and port pattern, because an inconsistent pattern either blocks a legitimate device or makes a look-alike title easier to add. Record the title, address and port for each device in one inventory, then compare it line by line with the DicomModalities settings.

Vendor control of AE titles

Ask each scanner and PACS vendor whether a service engineer can change the AE title, through a remote session or a firmware update. A title that changes after a service visit can silently fail the allow list, or leave an old entry that another device could reuse. Confirm who may edit device settings, who approves a change, and how that change is recorded on the Orthanc side.

Enforcement outside Orthanc

The Orthanc allow list checks the address and title a device presents, and any host on the same network can present a known address and title. Confirm whether a firewall or network access control can restrict the DICOM port to the known address list, so an unlisted host cannot connect even if Orthanc is misconfigured. Test from an unlisted host on the same network segment, and from any segment that can reach the server.

Logs for refused associations

Confirm that refused association attempts appear in the Orthanc log with the calling AE title, address and time, and that the log is forwarded to a system the operations team reads. A silent rejection can make a misconfigured modality look like a network fault, and it hides an unknown device. Trigger a test rejection from an unlisted title and check the log line before you rely on it, and confirm retention with your security team.

Rules for each query and retrieve command

Confirm that your rules cover C-FIND, C-MOVE and C-GET separately, because a device allowed to store or query may still be able to retrieve studies. Each command needs its own decision, and C-MOVE also depends on which destination the requesting device names. List what each modality needs in each direction, then test every command from an allowed device and from an unlisted one, and record the results against the configuration version.

What does it cost to lock down an Orthanc DICOM server?

What drives the cost of locking down an Orthanc server?

The main cost drivers are how many modalities and peers the server talks to, how complex the network path is, and how much testing each device owner needs. Each modality on the allowlist has its own AE title, IP address and command permissions, so every device adds inventory, configuration and verification work. Flat networks, where modalities share segments with workstations and unrelated servers, take longer to reason about than segmented ones. Testing with each device owner, often a vendor or a biomedical engineering group, can set the pace because their availability is outside your control. Change windows and the number of environments also matter, since a lab, a test server and production each need the same steps and clinical imaging often limits when changes can happen. Ask any partner to price these drivers separately in the written scope.

Can our own IT team lock down Orthanc without a partner?

Yes, a small team can do it alone when the setup is small, well documented and has a test environment. That usually means a handful of known modalities, a current inventory of their AE titles and IP addresses, and a way to send test traffic before changing production. The work gets harder with many vendors, each with different DICOM conformance and its own change process, and with flat networks where modality addresses are not separated from other systems. In those cases the main risk is a missed device: a scanner left off the list stops working on the day of the change. Be honest about whether you can reach each device owner and schedule a rollback window. A partner can take on configuration, testing and documentation, but your team still owns change approval and clinical sign-off.

How long does an Orthanc modality lockdown take?

The duration depends on the number of devices to verify, how quickly each device owner can test, and how many change windows you have. Timing is usually set by people and calendars more than by the Orthanc commands themselves. Plan time to build the device inventory, agree a test plan, run tests in a non-production environment, and then apply the change in production during an approved window. Each step can wait on a vendor, a clinical schedule or an approval board. Flat networks may need the network team to confirm addresses, and firewall changes need their own review. Ask any partner to show the expected sequence, the dependencies on other teams and the points where the schedule could slip, and to tie the timeline to the written scope and the named devices.

What do we need to provide for an Orthanc lockdown project?

The work needs four things from your side, and gaps in any of them are the most common reason projects stall:

  • A device inventory with AE titles, IP addresses, ports and the DICOM commands each device uses
  • Network diagrams that show where modalities, Orthanc servers, peers and firewalls sit
  • Change approval from the owners of clinical systems and network changes
  • Access to the firewall rules and the Orthanc configuration, including the settings that define DICOM modalities and per-modality command permissions

Confirm access and approval timelines early, because they often set the pace of the project. If the inventory is incomplete, plan a discovery step that checks the traffic Orthanc actually receives before any rule is tightened.

Does Orthanc have a paid edition with commercial support?

No, Orthanc does not have a paid edition. The Orthanc Team website describes Orthanc Team SRL as selling deployment, configuration and development services around the open-source server, so the cost of a lockdown comes from the services and the work you commission. The core is licensed GPLv3 or later, and the scalability and cloud plugins are licensed AGPLv3 or later, so have your legal team review those terms if you plan to modify or redistribute the software. The licensing terms are set out in the Orthanc Book licensing FAQ, which is the right next read before any internal approval.

How can we buy pre-paid Orthanc support hours?

Orthanc Team SRL sells pre-paid dedicated support hours, and these hours are valid for 12 months. Pricing is quoted on request, so ask for a written quote that states the number of hours and what each block covers. Use the hours for a defined task, such as reviewing your allowlist or troubleshooting a modality that stops storing. Agree in writing whether the hours include testing with your devices or only remote help on configuration, and what happens to unused hours at the end of the 12 months. Pre-paid hours pay for the vendor's time only, so your team still carries the cost of its own staff, the device owners' time and any network or firewall work.

What should a written quote for Orthanc lockdown include?

A useful quote lists four items, each stated specifically enough that you can check it later:

  • Written scope: the Orthanc instances and environments covered, and which DICOM services are restricted, such as C-ECHO and C-STORE and any query or retrieve commands
  • Test plan: how each device is tested, which test traffic is sent before production, and who signs off each result
  • Rollback plan: the steps and timing for restoring previous access if a device stops working
  • Named devices: each modality and peer by AE title, IP address and owner, with anything out of scope listed

Also ask which costs are one-time and which recur, such as support hours or periodic reviews of the allowlist. Fixed-scope work is agreed in writing before it starts, and the quote follows from that scope.

What breaks when Orthanc starts refusing unknown devices?

The most common break is a legitimate device that was never on the list, such as a second console, a service laptop or a modality replaced with a new IP address. Check the logs for rejected associations before you change production, because a rejected association often appears as a failed transfer on the device side, not as an obvious error in Orthanc. Verify both directions, since Orthanc needs each device in its list to accept its traffic and also to send images back to it. Keep the previous configuration file and a rollback command ready before the change. Watch for devices behind NAT, where the address Orthanc sees differs from the one in your inventory. Confirm each change with a test from the device owner and record the result so the next audit has evidence.

How DeployOpen scopes and delivers a DICOM lockdown

DeployOpen approaches locking down the Orthanc DICOM server to known modalities as a fixed-scope engagement. We start by inventorying which devices talk to the server, then change the DICOM settings, test each modality's permissions and hand over the configuration with evidence. Each step is written into the agreed scope before work begins.

How we scope

  • The written scope lists every Orthanc server, modality, PACS peer and cloud host in the lockdown.
  • We agree which always-allowed echo and store behavior is disabled, and which clinical workflows must keep working.
  • Engagements are fixed-scope, with deliverables agreed in writing before work starts; ongoing support is available as a retainer.

How we build

  • Inventory each modality's AE title, IP address and allowed commands, and compare it with the configured list.
  • Remove always-allowed echo and store access, then grant each command per modality only where the workflow needs it.
  • Turn DICOM off on cloud hosts with no modality traffic, and match firewall rules to the allowed list.

How we hand over

  • Test each allowed and denied modality with a DICOM echo and a store from a device outside the list.
  • Deliver the settings file, the modality table, the test log and a short runbook for adding a new device.
  • Walk your team through the change process, so new modalities are approved before they reach the server.

How we support

  • Re-check the modality list after each Orthanc upgrade, and confirm the DICOM settings still behave as tested.
  • Retest when a modality is replaced, readdressed or added, using the same test set.
  • Ongoing support and periodic retesting are available as a retainer, quoted from the written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.