Blog

    Mirth Connect Security Hardening for HIPAA Compliance: Admin Access, TLS and Channel Logs

    By GauravAugust 13, 20269 mins read
    On this page

    Mirth Connect security hardening for HIPAA compliance comes down to four controls on the host before the first live channel: who may log in, TLS on every hop, an audit of configuration changes, and an engine log that holds no message body.

    Digital health founders and hospital CTOs putting a Mirth host on a live feed get the control list, a pre-go-live check and the everyday changes that quietly undo it.

    What is Mirth Connect security hardening?

    Mirth Connect security hardening is the set of host controls that must be on before a Mirth server carries PHI: named access, TLS on every hop, an audit of who changed a channel, and an engine log that stores no message body. A scanner finding or a library patch is one input, not the list.

    Putting a Mirth host on a live feed?

    We turn on access, TLS, audit, and a log without a message body before the first live channel.

    Agnotic Technologies refuses the first live channel until those four controls are on. Each one maps to a HIPAA Security Rule safeguard.

    45 CFR 164.312(a)(1) requires a covered entity to implement technical policies and procedures for electronic information systems that maintain electronic protected health information to allow access only to those persons or software programs that have been granted access rights.

    45 CFR 164.312(e)(1) requires a covered entity to implement technical security measures to guard against unauthorized access to electronic protected health information that is transmitted over an electronic communications network.

    45 CFR 164.312(b) requires mechanisms that record and examine activity in systems that contain or use electronic protected health information.

    • Access: named accounts. Shared admin is off. Remote admin is on a private path.
    • TLS: every listener and every destination that leaves the host.
    • Audit: who deployed or edited a channel, with the time.
    • Log: channel name, status, and size. Not the HL7 or FHIR body.

    A Java CVE such as the Log4j flaw may force a library patch. The patch closes one hole on one day, while the four controls stay on after it, whatever the next advisory says.

    What stays out of the engine log?

    The engine log stays free of MRN, order id, and payload text. Agnotic keeps those in the message store with access control, not in the log file.

    • Allowed in the log: channel, connector, status, byte length, error class.
    • Forbidden: PID, OBR identifiers tied to a person, raw segments.

    Who should be able to log in to the Mirth Administrator?

    Only named people with a reason to change channels should log in to the Mirth Administrator, and each one gets their own account. Agnotic removes the default admin login before the host sees a live message, and gives support staff a narrower role where the edition in use allows it.

    A named account is what lets the audit say who did something. With a shared login, the record can only say that somebody did.

    • Integration engineer: named account, may edit and deploy channels in the environment they own.
    • Support analyst: named account, may view the dashboard and message status, not edit code.
    • Deploy pipeline: a service credential that promotes exported channels and never signs in interactively.
    • Break-glass account: sealed, held by the security owner, and reviewed every time it is opened.

    When someone leaves the project, their account is disabled the same day. A shared password that three contractors once knew is the usual way a hardened host stops being hardened.

    How do you keep the admin interface off the public network?

    Keep the admin interface reachable only from a private path, such as a VPN or a jump host, and never from the open internet. The ports that receive clinical messages are a separate decision from the port that lets someone redeploy a channel.

    • Admin port: bound to a private interface, with a firewall rule that names the jump host or VPN range.
    • Inbound listeners: open only to the sending systems that use them, one rule per sender.
    • Engine database: reachable from the Mirth host alone, not from analyst laptops.
    • Outside scan: run from a network outside the hospital, and it must find the admin port closed.

    Agnotic writes the firewall rules into the same change record as the channel list, so a new listener cannot appear without someone also deciding who may reach it.

    Which hops need TLS, and where do the certificates live?

    Every hop that carries PHI needs TLS, including traffic that never leaves the hospital network. The certificates for those hops live in a keystore per environment, each with an owner and a recorded expiry date.

    • Inbound MLLP: TLS on the listener, or a TLS terminator on the same host where the edition in use does not provide it.
    • HTTP and FHIR listeners: HTTPS only, with plain HTTP switched off rather than redirected.
    • Outbound senders: HTTPS to FHIR servers, and SFTP in place of FTP for file drops.
    • Message store: an encrypted connection between Mirth and its database.

    Test certificates are never copied into production. When a sending system cannot speak TLS, Agnotic records that gap with the owner who accepted it, instead of quietly leaving one listener in plain text.

    What should the audit record of a channel change contain?

    The audit record of a channel change should name the user, the time, the channel, the action and the version before and after. Without the before and after, an audit says that something changed but not what.

    • Who: the named account, never a shared login.
    • When: a server time that agrees with the time on the message store.
    • What: deploy, undeploy, edit, import, or a change to global scripts and code templates.
    • Diff: the exported channel definition kept in version control, so the change can be read line by line.

    A record nobody reads is not a control. Someone outside the integration team should review the change history on a fixed schedule and sign that they did.

    Agnotic ships the engine's event records to a store the Mirth host cannot edit. A person with admin rights on the engine should not also be able to erase the record of what they did there.

    Where does PHI leak into the engine log?

    PHI usually leaks into the engine log through code someone wrote to debug a channel, not through the engine's defaults. A transformer that prints the whole message during testing keeps printing it in production.

    • Transformer and filter scripts: a logger call that prints the message or a patient field.
    • Alert emails: an error template that pastes the message body into the email.
    • Stack traces: a parser error that echoes the segment it failed on.
    • Verbose levels: debug logging switched on during an incident and never switched back.

    Agnotic treats a logger call with message content as a failed code review. Support staff find a message by its id in the message store, where access is controlled and retention is set, instead of reading it in a log file that ends up pasted into a ticket.

    How do teams harden a Mirth host step by step?

    Teams harden a Mirth host with a short, repeatable pre-go-live check, a list that a second engineer runs against the host before the first live channel is deployed. Each step leaves evidence that is filed with the go-live record.

    • Step 1, accounts: export the user list and confirm every account is named and the default login is gone.
    • Step 2, network: run the outside scan and confirm the admin port is unreachable.
    • Step 3, TLS: try a plain connection to every listener and confirm it is refused.
    • Step 4, audit: deploy a dummy channel and confirm the event reaches the off-host store.
    • Step 5, log: send a synthetic message with a marker value and search the whole log directory for that marker.
    • Step 6, sign-off: the security owner reviews the evidence and signs the record.

    Step 5 catches the most. If the marker shows up anywhere in the logs, a script is printing message content.

    A worked example: an ADT feed onto a new host

    A worked example: a hospital moves its ADT feed from an old interface server onto a new Mirth host. The channel logic is copied across, including a transformer that logs the full PID segment.

    The pre-go-live check sends a synthetic admit with an invented surname as its marker. The marker appears in the engine log, so the channel is held while the logger line is removed and the shared code template is fixed for every channel that uses it.

    The same check finds the admin port open to the hospital guest network. The firewall rule is narrowed to the jump host, the outside scan runs again, and only then does the ADT channel go live.

    What are the common mistakes with Mirth Connect security hardening?

    The common mistakes are ordinary changes made under time pressure, not attacks. The host passed at go-live and drifted afterwards.

    • A vendor asks for temporary access to test a feed, and the firewall rule stays.
    • A certificate expires and someone switches the listener to plain TCP to bring the feed back.
    • A new channel is cloned from an old one that still carries a debug logger line.
    • A contractor's admin account is shared with the rest of their team.

    Agnotic adds each of these to the change checklist, so the person approving a channel change also answers whether it touched access, TLS, audit or logging.

    What does hardening mean for your build plan?

    For the build plan, each control needs a named owner at the hospital or the vendor, or it lapses without anyone noticing. The integration team usually owns the channels, but not every control on the host.

    • Accounts: the integration lead approves new logins, and the security owner reviews the list.
    • Network: the infrastructure team owns the firewall rules and the outside scan.
    • Certificates: one named person tracks expiry dates and renews before them.
    • Logs and audit: the integration lead keeps scripts clean, and the security owner reviews the audit store.

    How do you tell the controls are still working?

    You tell the controls are still working by collecting the same evidence on a schedule and comparing it with the last run. A control with no recent evidence should be treated as off.

    • Account list: compared with the last export, with every new name traced to an approval.
    • Certificate dates: none inside the renewal window without an open ticket.
    • Log search: the marker test repeated, plus a search for segment headers such as MSH and PID.
    • Audit store: event counts that rise when channels are deployed, never a silent week after a release.

    If the log search finds a segment header, Agnotic treats it as an incident to fix and record, not a cleanup task for later.

    How can Agnotic help with Mirth Connect security hardening?

    Agnotic hardens the client's Mirth host before go-live: it applies the four controls, runs the pre-go-live check with a second engineer, and proves a test message still leaves the host once the controls are on.

    Four controls, then the first live channel

    Named access, TLS, audit, and a log without a body.

    Sources

    Frequently Asked Questions

    Any team that runs a Mirth Connect host carrying PHI, whether a hospital interface team or a vendor hosting feeds for clients. It matters most before the first live channel, when changes are cheapest.

    Talk to an engineer about your project

    Show us the host. We will put named access, TLS, audit, and a log without a body on it before the first live channel.