logo svg
logo

November 2, 2026

Updated: November 2, 2026

Healthcare Penetration Testing: EHR, API and Device Guide

Scope, safety rules and methods for testing EHRs, FHIR APIs, identity and medical device networks.

Mohammed Khalil

Mohammed Khalil

Featured Image

Healthcare penetration testing is an authorized simulation of real attacks against the systems that store or move patient data and support clinical care. It covers EHR and clinical applications, patient portals and mobile apps, FHIR and HL7 interfaces, identity systems, cloud and telehealth services, third-party connections and, under strict safety rules, connected medical devices. The goal is to prove which weaknesses could expose protected health information or disrupt care, then give each owner a specific fix and retest it. Done well, it also produces evidence that supports HIPAA risk analysis without putting patients at risk.

What Is Healthcare Penetration Testing?

A penetration test goes beyond a vulnerability scan. Testers try to use weaknesses the way an attacker would, within an agreed scope, to show what could actually happen: a patient record read by the wrong person, a clinical system taken offline or a device network reached from the guest Wi-Fi.

In healthcare the same techniques apply, but the environment is different. Systems run around the clock, many devices are old and hard to patch, patient data flows through dozens of interfaces, and some assets are connected to patients. That changes what testers look at, how they test and what they are not allowed to touch.

If you are mainly asking whether the law requires a test, start with our HIPAA penetration testing requirements guide. This article focuses on how to test healthcare systems safely and usefully.

Why Healthcare Needs a Different Approach

Five things make healthcare testing harder than a typical corporate engagement.

  1. Patient safety comes first. A test that crashes an infusion pump gateway or locks out clinicians during a shift can cause real harm. Safety rules shape the whole plan.
  2. Patient data is everywhere. Electronic protected health information sits in EHRs, imaging archives, lab systems, billing platforms, backups, logs and integration engines.
  3. Legacy technology is common. Imaging workstations and medical devices often run operating systems or software that cannot be patched quickly because of vendor support or regulatory constraints.
  4. Interoperability multiplies entry points. FHIR APIs, HL7 interfaces, DICOM traffic and partner connections link systems that were built by different vendors.
  5. Many third parties have access. Device vendors, EHR providers, billing companies and telehealth platforms often hold remote access or shared credentials.

For current figures on breaches and attacks in the sector, see our healthcare cybersecurity statistics.

What Is in Scope

A healthcare test usually spans several asset classes. Use this table to agree scope and to decide where safety limits apply.

Asset classExamplesMain risks to testHow to test safely
EHR and clinical applicationsEHR web and desktop clients, lab and pharmacy systemsRole and record-level authorization, session handling, injectionUse test tenants and synthetic patients
Patient portals and mobile appsScheduling, messaging, results, telehealth appsAccount takeover, viewing other patients' data, weak password resetStaging or production with dedicated test accounts
FHIR APIs and interfacesSMART on FHIR apps, partner APIs, HL7 v2 feeds, integration enginesMissing authorization per patient, excessive scopes, data leakage in searchSandbox endpoints and synthetic records
Clinical workstations and thick clientsNursing stations, imaging viewers, admin consolesStored credentials, local privilege escalation, shared loginsLab images or non-clinical units
Medical devices and IoMTInfusion pumps, monitors, imaging modalities, device gatewaysUnpatched services, default credentials, unencrypted protocolsSpare or lab units with vendor involvement; never patient-connected devices
Imaging systemsPACS, DICOM nodes, viewersUnauthenticated DICOM access, exposed archivesOff-hours windows, read-only checks
Identity and networkActive Directory, Entra ID, SSO, VPN, Wi-Fi, segmentationLateral movement from IT or guest networks to clinical zonesAgreed windows, no account lockouts
Cloud and third partiesHosted EHR, telehealth platforms, vendor remote accessMisconfiguration, shared vendor accounts, over-broad remote accessOnly with the provider's written permission
Eight asset classes in a healthcare penetration test, from EHRs to medical device networks

Testing FHIR APIs and Interoperability

FHIR is now the main way health data moves between apps, and HL7 is clear that FHIR does not secure itself. The specification's security page states that FHIR is not a security protocol and defers authentication and authorization to standards such as OAuth and the SMART App Launch framework, while offering the AuditEvent and Provenance resources for tracking access.

That means the security of a FHIR service depends on how each implementation applies those controls. A focused test checks:

Older HL7 v2 interfaces and integration engines deserve attention too. In many environments they rely on network position rather than application-level authentication, so testers check who can reach them and what an attacker could send or read from that position. Our API penetration testing guide covers general API methods in more depth.

Medical Devices: Hospital-Side vs Manufacturer Testing

Medical device testing means two different things depending on who is asking.

Manufacturers test devices before and after they reach the market. In the United States, section 524B of the Federal Food, Drug, and Cosmetic Act applies to "cyber devices": devices that include sponsor-validated software, can connect to the internet and have characteristics that could be vulnerable to cybersecurity threats. Sponsors must submit a plan to monitor, identify and address postmarket vulnerabilities, including coordinated vulnerability disclosure; maintain processes that provide reasonable assurance the device and related systems are cybersecure, with regular and urgent updates and patches; and provide a software bill of materials (21 U.S.C. 360n-2). The section took effect 90 days after the law's December 29, 2022 enactment.

The FDA explains what it expects in premarket submissions in its final guidance Cybersecurity in Medical Devices: Quality Management System Considerations and Content of Premarket Submissions, issued in February 2026, which supersedes the June 2025 version. Industry groups such as the Medical Device Innovation Consortium have also published penetration testing best practices for manufacturers, covering scoping, execution, findings and documentation.

Hospitals and health systems do not usually test device firmware themselves. Their job is to understand how devices sit on the network and what an attacker could reach. A hospital-side test typically:

Comparison of manufacturer and hospital responsibilities in medical device security testing

Hospital-side testers should never run active tests against a device connected to a patient. For background on device risk, see our IoMT vulnerability statistics.

Clinical Safety Rules of Engagement

A healthcare test plan should be agreed with clinical engineering, IT operations and the privacy office, not only the security team. At a minimum, the rules of engagement should cover:

Our penetration testing scope guide explains how to turn these rules into a statement of work.

How Regulations and Frameworks Shape Healthcare Testing

Several rules and frameworks influence healthcare testing. They differ in who they apply to and whether they are mandatory.

FrameworkWho it applies toWhat it says about testing
HIPAA Security RuleCovered entities and business associatesRequires risk analysis and periodic technical evaluation; does not currently name penetration testing. An HHS proposal would add annual penetration testing but is not final.
HHS Healthcare and Public Health Cybersecurity Performance GoalsHealthcare organizations (voluntary)The enhanced goal "Cybersecurity Testing" includes penetration testing and attack simulation
HITRUST CSFOrganizations seeking HITRUST certificationUses penetration testing as evidence for technical controls
FDA section 524BManufacturers of cyber devicesRequires vulnerability monitoring plans, cybersecurity processes and an SBOM in premarket submissions

The HHS goals are published on the HHS cybersecurity performance goals page, which describes them as a voluntary subset of practices. For HITRUST specifics, see HITRUST certification and penetration testing.

How a Healthcare Penetration Test Runs

A typical engagement follows seven stages.

  1. Authorization and safety planning. Agree scope, exclusions, windows, stop conditions, contacts and data handling with security, IT, clinical engineering and privacy.
  2. Discovery and data-flow mapping. Identify where PHI is created, stored and sent, including interfaces, integration engines and third parties.
  3. External testing. Test internet-facing portals, APIs, VPNs, email and remote access.
  4. Application and API testing. Test EHR modules, portals, mobile apps and FHIR endpoints with accounts for each role: patient, clinician, administrator.
  5. Internal and segmentation testing. From an agreed starting point, test whether an attacker can move from user networks to clinical, imaging and device networks.
  6. Device and workstation review. Check device gateways, management interfaces and clinical workstations within the safety limits agreed in stage 1.
  7. Reporting and retest. Rank findings by likelihood, impact on patient data and impact on care, give a specific fix for each, then retest and record what was closed.

Common Findings in Healthcare Environments

The specifics vary, but these patterns appear often in healthcare assessments:

Clinical workstation software is often a thick client, which brings its own risks. See thick client penetration testing for how those applications are tested.

Illustrative Finding: One Patient's Token, Another Patient's Records

The following example is illustrative and simplified; it does not describe a specific client.

A clinic's patient portal uses a FHIR API. A test patient signs in and opens their lab results, which the app loads by calling the API with that patient's ID. Using a second synthetic patient account, the tester changes the ID in the request. The API returns the other patient's results, because it checks that the token is valid but not that the token belongs to the requested patient.

How Often Should Healthcare Organizations Test?

A common baseline is to test critical systems at least once a year and after significant changes, such as a new EHR module, a new patient portal or app, a cloud migration, a merger, or new device networks. Base the schedule on your HIPAA risk analysis rather than a fixed calendar alone. Vulnerability scanning and configuration checks can run more often, while penetration tests validate whether the remaining weaknesses can actually be used.

What a Healthcare Pentest Report Should Include

A healthcare report has more readers than most: security, IT, clinical engineering, privacy, compliance and sometimes vendors. Make sure it includes:

Avoid reports that only list scanner output. The value of a penetration test is the validated attack path and the business context around it.

How to Choose a Healthcare Penetration Testing Provider

Ask any provider these questions before you sign:

Frequently Asked Questions

What is healthcare penetration testing?

It is an authorized simulation of attacks against healthcare systems such as EHRs, patient portals, FHIR APIs, identity systems, networks and, within strict safety limits, medical device networks. It shows which weaknesses could expose patient data or disrupt care and how to fix them.

Does HIPAA require penetration testing?

Not explicitly today. The HIPAA Security Rule requires risk analysis and periodic technical evaluation, and penetration testing is a common way to provide that evidence. HHS has proposed requiring annual penetration testing, but as of November 2026 that rule is not final.

Can hospitals penetration test medical devices?

Hospitals should not actively test devices that are connected to patients. They can test the networks, gateways and management systems around devices, and test spare or lab units with the manufacturer's agreement. Deep firmware testing is usually the manufacturer's responsibility.

What is a cyber device under FDA rules?

Under section 524B of the Federal Food, Drug, and Cosmetic Act, a cyber device is a medical device that includes sponsor-validated software, can connect to the internet and has characteristics that could be vulnerable to cybersecurity threats. Manufacturers of cyber devices must provide vulnerability monitoring plans, cybersecurity processes and a software bill of materials.

How do you test FHIR APIs safely?

Use sandbox endpoints and synthetic patient records, create test accounts for each role, and check that every request is limited to the right patient and scope. Avoid bulk operations against production data unless they are explicitly approved.

Why do hackers target healthcare?

Health records contain identity, insurance and medical details that are valuable for fraud, and hospitals are under strong pressure to restore systems quickly, which attackers try to exploit with ransomware. Complex networks, legacy devices and many third-party connections also give attackers more ways in.

Next Step: Plan a Safe Healthcare Penetration Test

Healthcare security depends on proving that controls hold up without putting patients or clinicians at risk. A well-scoped penetration test does both: it shows where patient data and clinical operations are exposed and gives each owner a fix to verify.

If you are planning a healthcare assessment, contact DeepStrike to discuss scope, safety rules and retesting, or review our penetration testing services.

About The Author

Mohammed Khalil is a Cybersecurity Architect at DeepStrike, specializing in advanced penetration testing and offensive security operations. With certifications including CISSP, OSCP, and OSWE, he has led numerous red team engagements for Fortune 500 companies, focusing on cloud security, application vulnerabilities, and adversary emulation. His work involves dissecting complex attack chains and developing resilient defense strategies for clients in the finance, healthcare, and technology sectors.

Sources and References

background
Let's hack you before real hackers do

Stay secure with DeepStrike penetration testing services. Reach out for a quote or customized technical proposal today

Contact Us