← All articles

ARTICLE · DATA LEAK ACTIVE TESTING

Healthcare data leakage: testing exfiltration in hospitals and HDS hosting

  • Sector
  • 6 min read
  • Updated
Glowing shield and padlock on an electronic circuit board, an image of healthcare data protectionWithout touching a single patient record

Testing hospital egress

  • A healthcare data leak is the unauthorised exit of patient information outside the scope of the organisation or its hosting provider.
  • In a hospital, start with email, USB and personal cloud; at a hosting provider, with server egress, DNS and admin access.
  • A test with synthetic files carrying fake hospital and national identifiers shows which channel lets a file out, without touching a patient record.

A junior doctor emails a discharge letter to a personal mailbox to finish it at home: that is healthcare data leakage, and it is the case to test first. The email DLP rule looks for a national identifier, the letter carries only a local hospital number, and nothing fires. Nobody on the ward would call it a leak.

Why healthcare data gets out so easily

Diagram · the legitimate flows of a hospital

The legitimate flows leaving a hospital information systemThe hospital information system, with the patient record, imaging, laboratory and billing, exchanges constantly with community doctors, health insurers, regulators and vendors providing remote maintenance. Each of these legitimate flows is a potential egress path.Hospital ISPatient recordImagingLaboratoryBillingCommunity doctorsHealth insurersRegulatorsVendorsremote maintenance

Hundreds of business applications (patient record, imaging, lab, billing), shared workstations, biomedical vendors maintaining kit remotely, constant traffic with GPs, insurers and regulators: each legitimate flow is a possible way out.

Healthcare data has two awkward properties. It lasts (a medical history cannot be “reset” like a password) and it sells well, which makes it a classic target for double extortion ransomware operations. If your board wants a figure, CERT Santé, the health sector CERT run by the French Digital Health Agency, publishes an annual report on the incidents declared by healthcare organisations, ransomware included.

The framework: GDPR, the French Public Health Code and HDS certification

What the regulation says

  • GDPR, Article 9: data concerning health belongs to the special categories of data, whose processing is prohibited in principle, subject to exceptions.
  • GDPR, Article 32: the controller must implement measures appropriate to the risk and a process for regularly testing, assessing and evaluating their effectiveness.
  • French Public Health Code, Article L1111-8: any hosting of personal health data on behalf of a third party must be carried out by a certified host (or an approved one for paper-based hosting).
  • Outside France: UK GDPR Article 32 and the NHS Data Security and Protection Toolkit raise the same question; in the US, so does the HIPAA Security Rule’s evaluation standard (45 CFR 164.308(a)(8)).

What HDS certification covers

HDS certification is run by the French Digital Health Agency (ANS). It is based on the ISO/IEC 27001 standard, supplemented by healthcare-specific requirements. The current framework dates from 2024, with a transition period for hosts already certified; the order approving it and the HDS page on the ANS website give the cut-off date. Among other things, it tightens the requirements on where data is located and on transparency towards customers.

You need both: one checks the organisation, the other checks what leaves. The logic is close to that of ISO 27001 control 8.12 on data leakage prevention.

Hospital or HDS host: different leakage surfaces

Context Typical egress channels to test Controls often in place
Healthcare organisation Outbound email (outside the secure health messaging system), USB sticks and disc burners, printing and scanning to email, personal cloud, web upload, generative AI tools Email DLP, device blocking, web proxy, antivirus
HDS host (infrastructure) Outbound server flows, DNS, HTTPS to uncontrolled destinations, administration and support access Firewall, segmentation, bastion, logging
HDS host (managed services, SaaS) Application exports, APIs, object storage sharing, service accounts, backups IAM, CASB, encryption, cloud-native controls
Vendors and remote maintenance Remote sessions, file transfers from biomedical equipment Dedicated VPN, contract, access review

In a hospital, the main risk often comes from the trusted user in a hurry, such as the medical secretary who drops a letter on a consumer file-sharing service because the attachment is too big for email. These are everyday leaks, without malice, but with the same legal consequences. At a hosting provider, the focus moves to the network, privileged accounts and subcontractors.

Testing without touching a single patient record

A medium-sized hospital has email DLP, a web proxy and a USB blocking policy. The board asks the CISO whether a patient file could get out.

  1. Build realistic decoys. Synthetic files that look like the real thing: fictitious names, invalid NIR-format numbers (the French social security number), fake local patient numbers, template reports, CSV exports of stays. Use the identifiers your systems carry; in France, the INS (mandatory since 2021) and the local IPP. No real data is involved, as with any use of synthetic data in production.
  2. Choose representative workstations. A shared care workstation, a medical secretary’s workstation, an administrative workstation, an application server.
  3. Try each channel in turn. Sending by email to an external address, dropping on a personal cloud, copying to removable media, web upload, typing into a generative AI assistant, network egress through less monitored protocols.
  4. Record three outcomes per channel. For each send, note what was attempted, what left and what arrived, then find it in the proxy, mail gateway and DLP console logs: blocked, allowed but detected (alert to the SOC or managed service provider), or passed without a trace. Worry about the last.
  5. Prioritise. Rank the gaps by the volume exposed, the ease of exploitation and the cost of the fix.

Before you read a silence as a gap: if your rule validates check digits (the NIR key is computed modulo 97; an NHS number ends in a modulus 11 check digit), invalid decoys will never trigger it. Read the rule definition first.

Next step

Hosting patient data? Test DNS and HTTPS egress first

A 30-minute guided demo on pre-built results comes first, nowhere near patient systems: a campaign across the 8 channels, DNS and HTTPS among them, with nothing to install and no access to your environment. A quick POC, usually free, then runs one standard scenario with synthetic data from a machine on your network, a server segment if you host patient data, through your real egress controls. If you choose, a paid pilot follows on a limited part of your production.

Checks before testing in a healthcare organisation

  • Written approval from management, the CISO and the DPO, with a clearly defined scope.
  • The SOC or managed service provider informed, or a deliberate decision to also test detection without their knowledge.
  • Explicit exclusion of critical biomedical equipment and workstations in operating theatres.
  • Exclusively synthetic data, identifiable as such if discovered.
  • Egress destinations defined with the test team during scoping.
  • Test windows compatible with care activity.
  • Success criteria defined before the test: what must be blocked, what must be detected.

Retest whenever the hospital changes

A hospital’s IT estate never stands still: a teleconsultation app, a DLP agent update, an email migration, a new remote-maintenance vendor. After each change, retest the channels it touches; don’t wait for the annual audit. Dated results help the DPO with the regulator (CNIL in France, ICO in the UK) and the host with its HDS auditor. They cover only the workstations and channels you tried: the ultrasound PC set up by another vendor needs its own test. For the general method, see our page on data exfiltration testing.

Frequently asked questions

Does HDS certification protect against data leaks?

It imposes an audited security framework, based on ISO/IEC 27001 and healthcare-specific requirements. It says nothing about a given channel: to know whether an export leaves by email or a personal cloud, you have to try it.

Does a hospital have to be HDS certified?

In principle no, if it hosts its own data: Article L1111-8 of the French Public Health Code targets hosting on behalf of a third party. If it outsources, it must use a certified host. Ask your DPO to confirm.

Can exfiltration be tested without breaching the GDPR?

Yes, if the test files are entirely synthetic: no patient data is processed. Have the DPO sign off the scope and keep a record of how the decoys were generated.

What should you do if a real leak is found?

Under the GDPR and UK GDPR (Article 33), a breach must in principle be notified to the regulator within 72 hours if it presents a risk to individuals. In France, healthcare organisations also report serious information security incidents to their regional health agency without delay (Public Health Code, Article L1111-8-2).

Decoy patient files, real egress controls

We push decoy files out through your real exit paths, one scenario at a time, and show you what got through. Then we go through the findings with you and agree the order of fixes.