• I have been recently contacted by a few people who are interested in hardening Conquest against malicious attacks.

    First of all: Conquest should never be run on an open internet connection. Its typical use is in research applications on an internal trusted network.

    To protect Conquest its web interface could be accessed through a VPN. Or it could be wrapped in a protective layer like Keycloak and Traefik.

    If not, malicious actors could use conquest to compromise its database or the computer it runs on.

    So the first protection is to keep malicious actors out.

    There is ongoing work to protect conquest, starting with its web interfaces.

    Marcel

    Marcel van Herk is developer of the Conquest DICOM server together with Lambert Zijp.

  • Hi Marcel,


    This is exactly the direction a few of us have been working in, and it lines up with your point precisely: keep malicious actors out and never expose the raw web interface.


    We built a complete, self-contained protective layer around Conquest, with the DICOM engine itself left untouched - everything wraps around it. In our setup Conquest sits behind:


    - Traefik as the single entry point - TLS everywhere, no service ports exposed;

    - Keycloak (OIDC) + oauth2-proxy in front of every web / DICOMweb route, with local accounts and optional Active Directory / LDAP federation;

    - capability-based access control (RBAC) - each group/role is granted specific capabilities, enforced server-side;

    - DICOMweb (QIDO/WADO/STOW) with per-user authorization and full access auditing (who / when / which study), shipped to Loki + Grafana;

    - bundled OHIF / Papaya viewers, plus one-click OsiriX / Weasis using short-lived tokens.


    It is packaged as a Docker Compose stack with a guided installer, aimed at deployments that need to meet NIS2 / GDPR-style requirements while still running on an internal, trusted network - not the open internet, as you rightly stress.


    The engine is unchanged; it is all a layer around it. We are considering releasing it and wanted to gauge interest first - would this be useful to others here? Happy to write up the architecture and answer questions.


    Marcin (DivNet)

  • SM1312 - happy to.

    The idea is that Conquest itself is not modified at all. It sits inside the stack exactly as it ships, and everything around it is what changes.

    Traefik is the only thing actually exposed. It terminates TLS and routes each request by host and path, and that is where the access rules live - one entry point instead of a handful of open ports.

    Keycloak, with its own small Postgres, provides the identity: per-user authentication, sessions and JWT tokens, which is what the medical-system guidance asks for - who is this user, audit, session control - without touching Conquest's code. oauth2-proxy sits in front of the browser app that has no native login of its own, so that app only sees a request once the user has authenticated.

    Conquest and its MariaDB run untouched: dgate for DIMSE, the Apache/PHP web layer, the web apps.

    Loki, Alloy and Grafana collect and display the logs - the audit-trail and monitoring side.

    docker-socket-proxy is a narrow allow-list in front of the Docker API. The management view needs to start and stop containers, and exposing the raw docker socket is root-level RCE, so it gets only the few endpoints it needs.

    Routing is split into three tiers by who the consumer is: the viewers and the main console are served inside the perimeter without a login; /app/newweb sits behind Keycloak SSO; /api/dicom requires a JWT, which is the DICOMweb path for machine clients such as OsiriX.

    On Windows, the honest answer is no: the stack is built for Docker on Linux. Two of the pieces it relies on are Linux kernel features - macvlan, so Conquest can hold its own address on the LAN, and host networking. Under Docker Desktop your Linux containers run inside a Linux VM, so the host is that VM rather than your desktop; I tested it and a container binding a port there was not reachable from outside the VM. It could be reworked to use published ports instead, but that is a change to the stack rather than a setting.

    If what you want is Conquest in Docker without the security layer, that part does run anywhere:

    Code
    https://github.com/DivNet-MakeIT/conquest-basic-mariadb

    Two containers, Conquest and MariaDB, with a second compose file for Docker Desktop that uses published ports instead of host networking. It has no authentication in front of the web interface, so it belongs on a trusted network - exactly as Marcel says above.

    Marcin

  • From version1.5.0g, many webserver functions (and server management functions) are by default restricted to a client running from the same server, e.g. opening http://127.0.0.1/app/newweb. To enable other users add a similar section to dicom.ini:

    Code
    # Configure IP based access control (first processes DeniedIPs than AllowedIPs)
    # default 127.0.0.1 only: Archive,Change,Move,Remote,Script,Status,Store,Wado,Zip,Stow,Delete
    # default all allowed: Cverification,Cfind,Cmove,Cget,Cstore,Cmovedest
    AllowedIPsStore = 192.168.0.*
    AllowedIPsMove = 192.168.0.*
    AllowedIPsZip = 192.168.0.*
    AllowedIPsChange = 192.168.0.*

    Each DeniedIPs OR AllowedIPs line can contain a comma separated list of IPv4 addresses or ranges
    and Ipv6 addresses or ranges (the latter only USED for the web interface). List entry forms accepted:

    Code
    1.2.3.4 		exact Ipv4
    192.168.1.* 	legacy IPv4 wildcard
    192.168.1.0/24 	IPv4 CIDR
    ::1 			exact IPv6, any notation, any case, any leading zeros
    2001:db8::/32 	IPv6 CIDR
    2001:db8:* 		iPv6 wildcard, cut on a group boundary
    * 				everything
    none 			nothing (kept for compatibility with the old default)

    Note that webservers depend on REMOTE_ADDR for filtering these requests. If you use a forwarder or proxy service, REMOTE_ADDR will show the address of that service. Install Apache module mod_remoteip, with RemoteIPHeader X-Forwarded-For and RemoteIPTrustedProxy set correctly to make sure the client address is used to filter requests.

    The IP filtering code was kindly provided by Marcin Makalowski (DivNet/MakeIT divinus)

    Marcel van Herk is developer of the Conquest DICOM server together with Lambert Zijp.

  • Hi Marcel

    Can you please share the sample dicom.ini file for example for these security changes. As in the new version of conquest by default everything is blocked.

    I am not using the web based portion of the application, only using the desktop part.

    So a sample dicom.ini how to configure will be very helpful.
    AllowedIPSstore =
    AllowedIPSmove =
    AllowedIPSzip =
    AllowedIPSchange =

    As at the moment i am facing this issue

    Calling IP: 192.168.100.24
    Calling Application Title : "EFILM "
    Called Application Title : "CONQUEST "
    Application Context : "1.2.840.10008.3.1.1.1"
    Presentation Context 0 "1.2.840.10008.1.1" 1
    *** C-Echo NOT ALLOWED from: 192.168.100.24

    and also

    Calling IP: 192.168.100.24
    Calling Application Title : "EFILM "
    Called Application Title : "CONQUEST "
    Application Context : "1.2.840.10008.3.1.1.1", PDU length: 16378
    Presentation Context 0 "1.2.840.10008.5.1.4.1.2.2.1" 1
    *** C-Find NOT ALLOWED from: 149.40.208.157
    ***Client Error: command ffff failed **
    *** Originated from: 192.168.100.24
    ***Connection Terminated


    My current dicom.ini looks like

    ;-----------------------------------------
    ; OPEN ACCESS CONFIGURATION
    ;-----------------------------------------

    AllowedIPs = *

    AllowedIPsArchive = *
    AllowedIPsChange = *
    AllowedIPsMove = *
    AllowedIPsRemote = *
    AllowedIPsScript = *
    AllowedIPsStatus = *
    AllowedIPsStore = *
    AllowedIPsWado = *
    AllowedIPsZip = *
    AllowedIPsStow = *
    AllowedIPsDelete = *

    AllowedIPsCMove = *
    AllowedIPsCStore = *
    AllowedIPsCGet = *
    AllowedIPsCVerification = *
    AllowedIPsCMoveDest = *

    DeniedIPs =
    DeniedIPsArchive =
    DeniedIPsChange =
    DeniedIPsMove =
    DeniedIPsRemote =
    DeniedIPsScript =
    DeniedIPsStatus =
    DeniedIPsStore =
    DeniedIPsWado =
    DeniedIPsZip =
    DeniedIPsStow =
    DeniedIPsDelete =
    DeniedIPsCMove =
    DeniedIPsCStore =
    DeniedIPsCGet =
    DeniedIPsCVerification =

    PLease guide


    --Dr Steve

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!