Raw, Masked or De-Identified: A DataSecOps Comparison

Healthcare Technology

A cardiac registry is the ideal specimen for comparing protection strategies, because it concentrates every hard case in one table: imagine forty thousand patients, each with a name, a medical record number, a home ZIP code, an ECG trace, a diagnosis history and an echo of demographics precise enough to re-identify anyone. Hospitals get asked to use that table for research, quality dashboards, vendor pilots and partner studies — and each request implies a different level of protection, chosen more by habit than by analysis. DataSecOps, the discipline that got its name from Ben Herzberg of Satori Cyber in August 2021, built for securing data amid constant change, treats this as a comparison problem rather than a buying problem, which is why it insists on the same question for every option: what does this state actually stop? Below, three protection states are compared on the criteria that matter — what each stops, what each fails to stop, where each permits data to travel, and the practical verdict for a cardiology service deciding between them on a real budget.

Contender one: the raw table behind encryption at rest — the DataSecOps baseline

What it is. The registry sits on disks and backups that are encrypted, keys stored properly. Access is “whoever has database credentials”, which in practice means the entire IT roster and a handful of vendor accounts.

What it stops. A stolen laptop, a misplaced backup drive, a ransomware crew exfiltrating unreadable blobs — physical and off-line theft, mostly.

What it fails to stop. Any legitimate login reading the whole table, and any misuse of credentials. Capital One’s 2019 breach remains the canonical demonstration: about 100 million people across the United States affected through a misconfigured firewall and over-generous server roles, on encrypted infrastructure, with an $80 million penalty from the OCC at the end of it. Encryption guarded the disk; nobody guarded the query, and the query is where the harm happened.

Where data may travel. Anywhere a credentialed user sends it, which is the problem.

Verdict. Necessary, never sufficient. Treat it as the floor, not the strategy — and audit it annually, because key management drifts quietly. A registry that relies on this state alone is one shared password away from the Capital One pattern repeating with different logos on the breach letter.

Contender two: masking and tokenisation — the DataSecOps middle path

What it is. Values are hidden in place or swapped for stand-ins. The demo environment shows fictitious names; the analytics copy carries tokens where MRNs used to be; format-preserving encryption (the FF1 scheme, available in HashiCorp Vault’s Transform engine) keeps card- and record-shaped fields shaped correctly so applications keep running.

What it stops. Casual exposure in non-production environments, vendor demos, training sessions and spreadsheets — the places where most real leakages actually begin.

What it fails to stop. Re-identification through the remaining columns, if the masking was shallow — a birth date plus a rare diagnosis plus a ZIP code is a person, whatever the name column says. And it absolutely fails when teams assume hashed or tokenised identifiers are anonymous: a deterministic token can be matched against a table of guesses, which makes hashed data pseudonymous at best. The EU’s Court of Justice drew this line squarely in September 2025’s EDPS v SRB ruling (C-413/23 P): pseudonymised data is not personal for a recipient who truly cannot re-identify it, but the key-holder’s copy stays personal throughout — so the hospital keeping the token vault holds personal data, whatever the research partner’s contract claims.

Where data may travel. Internally, and to vendors under agreement — with masked copies, never raw rows.

Verdict. The working default for everything except production care delivery. Pair with query-time rules — row-level policies filtering who sees which rows and columns — so masking is enforced by the engine rather than by hope.

Contender three: the de-identified release — the DataSecOps exit lane

What it is. A derivative dataset built for sharing: identifiers stripped per a documented standard, small cells pooled, dates generalised, and the residual re-identification risk measured before anything ships.

What it stops. Re-identification by the recipient — provided the maths was done honestly.

What it fails to stop. Optimistic de-identification. HIPAA’s Safe Harbor method lists eighteen identifier categories to remove, and its small-cell rules exist for good reason: ZIP codes collapse to 000 in districts of 20,000 people or fewer, and everyone aged 89 or older is aggregated into one bracket, because a 90-year-old in a small county is findable from those two facts alone. The classic warning predates all of this — 87% of Americans proved unique on just ZIP code, gender and birth date in the study that founded the field’s caution. NIST’s SP 800-188 frames de-identification as a release decision with residual risk measured, not a checkbox.

Where data may travel. To researchers, registries and partners — this is the only state that should cross the wall.

Verdict. Reserved for genuine releases, built by people who have actually read the standards, with the measurement archived alongside the file and revisited whenever the dataset changes shape.

The DataSecOps verdict, and how to run the comparison yourself

Score the three contenders on any criterion you like and the same conclusion emerges: they are not competitors but stations on one pipeline, and a hospital that treats any one station as the whole journey gets caught by the next:

  • Production keeps the raw table under query-time rules, so credential holders see only the rows and columns their role requires.
  • Every non-production copy is masked or tokenised at birth, enforced by the engine rather than by a script that ran once.
  • Nothing crosses to an external partner except through the de-identification lane, with its measurement archived beside the file.
  • A quarterly review retires whatever the quarter has outlived, from vendor pilot accounts to departed analyst grants.

Operators who run this pipeline report it in numbers — the published worked example finds 1,085 protected columns out of 1,240, an 87.5% coverage rate, alongside 16.3% of grants dormant past ninety days — and the ladder behind those numbers tops out at “adaptive”: new sensitive tables arrive already gated, every time, without a meeting to decide it. The full method, loop by loop, is documented in the DataSecOps entry of xOps School’s Ops Atlas, and it is the document to give whoever chairs the next data-governance meeting.

For a cardiology service, the comparison ends in policy, not products. Write the registry’s rules down: production keeps row and column controls, everything non-production gets masked at birth, nothing leaves except through the de-identification lane, and a quarterly review retires what the quarter has outlived. That document, more than any tool, is what a partner’s security team is really asking to see. Hospitals that publish their standards elsewhere — as our guides to advanced heart monitoring technology and preventive cardiac screening show for equipment and programmes — can extend the same transparency to data practice. And the ward-level reason sits in our cardiac ICU guidelines for families: trust is the therapy’s co-administered drug, and a registry handled with this much care is trust made auditable.