AI pentesting guides / By industry

Health tech

Healthcare application pentesting: portals, FHIR APIs and integrations

Healthcare application pentesting is the security testing of the software that patients, clinicians and partners use to reach health data: patient portals, telehealth platforms, scheduling and billing systems, and the APIs that connect them to EHRs, payers and labs. The most damaging findings are usually authorisation flaws that let one user read another person's records.

Health data is unusually sensitive and unusually interconnected. A single integration can expose records from many organisations, and breaches are costly to notify and remediate. Testing has to balance thoroughness with the reality that production systems contain real patient information and support care.

High-risk surfaces in health tech

  • Patient and member portals, including proxy access for carers and parents.
  • FHIR and other interoperability APIs, where resource IDs are predictable and scopes are complex.
  • Telehealth session handling, file uploads and messaging.
  • Admin and clinician back-office tools exposed to the internet.
  • Third-party integrations: e-prescribing, payments, labs and analytics.

Authorisation is the core problem

Health APIs often authenticate users correctly but fail to check whether the authenticated user may see a specific patient, encounter or document. Changing a patient ID in a request is the simplest attack and still one of the most common. Testing should use several accounts with different roles and relationships, such as two patients, a carer and a clinician, and check every object endpoint against each.

Regulatory context

In the US, the HIPAA Security Rule requires risk analysis and periodic evaluation; a January 2025 proposal would require pentests at least yearly but had not been finalised as of November 2026. Many health-tech vendors also pursue HITRUST or SOC 2 to satisfy hospital customers. In the UK and EU, GDPR treats health data as special category data, which raises expectations for security testing.

Testing without harming patients

Use staging environments with synthetic patient data wherever you can. If production testing is unavoidable, agree windows, exclude clinical workflows that affect care, and make sure every action is logged and reversible.

With Pentest-Swarm

How Pentest-Swarm helps health-tech teams

Pentest-Swarm can test portals and health APIs repeatedly with multiple user roles, and can run without sending anything to an external AI provider.

  • Run fully local models through Ollama or LM Studio so no request or response data leaves your infrastructure.
  • API security playbooks focus on BOLA, BFLA and excessive data exposure across REST and GraphQL APIs.
  • Findings include evidence, severity and CVSS, plus sandboxed Python proofs of concept that make fixes easy to verify.
  • Armur's managed service adds human-reviewed reports, HIPAA compliance-ready reporting and retests after fixes.

Where it falls short

Pentest-Swarm does not test medical devices, HL7 v2 interfaces on internal networks or clinical safety, and it is alpha software. Never point it at production systems with real patient data without authorisation and a plan. Hospital customers or assessors may still require an independent human pentest each year.

Questions

What should a healthcare pentest cover?

Patient and clinician portals, FHIR and other APIs, telehealth, file handling, admin tools and third-party integrations, with particular attention to authorisation between patients and roles.

Is penetration testing required for HIPAA?

Not explicitly under the current Security Rule, which requires risk analysis and evaluations. A 2025 proposal would make annual pentests explicit, but it was not final as of November 2026.

Can AI pentesting be used on systems with patient data?

It can, with care. Prefer staging with synthetic data, and if you use AI-driven tools, choose ones that can run on local models so data is not sent to outside providers.