The security of record linkage reduces to key custody
Privacy-preserving record linkage works as a technique. Whether it should be deployed is a question about key custody, independent intermediaries and the value of the linked dataset to an attacker. A case study in why feasibility and deployment are separate decisions.
“The prudent man foreseeth the evil, and hideth himself; but the simple pass on, and are punished”
Organisations that serve the same people often want to know whether they are, in fact, serving the same people. Hospitals and registries want to follow patients across systems; researchers want to measure outcomes across programmes; ministries want to know whether someone who responded at one event later joined a church. The obvious method, sharing names and dates of birth, is unacceptable for sensitive data. Privacy-preserving record linkage (PPRL) promises an alternative: identify matching records across organisations without any of them disclosing identifiers.
The technique is real and well studied. The more interesting lesson is that a technique working is not the same as a system being safe to build, and the gap between the two is where most of the risk lives.
How the technique works
The standard approach encodes each identifier as a Bloom filter: a fixed-length bit array into which the fragments of a name or date are hashed. Picture a long row of light switches: each two-letter fragment of a name flips a few of them on, so “Jon Smith” and “John Smyth” leave almost the same pattern of lit switches, and the pattern can be compared without anyone reading the name. Two records for the same person, even with spelling variations or typing errors, produce similar bit arrays, so similarity can be measured without revealing the underlying values. Using keyed hashes, so that only the data custodians hold the key, prevents an outsider from simply encoding a dictionary of common names and comparing.
The usual deployment follows the three-party model used by population health linkage units. Each custodian encodes its own records locally under a shared key. A separate linkage unit, which never holds the key, compares encodings and returns project-specific link identifiers. Researchers receive de-identified data joined on those identifiers.
An open-source implementation, the pprl library, a Python toolkit for linking records through encodings of identifiers, tests this on synthetic data: 5,000 by 5,000 records with 2,500 true matches, thresholds calibrated on a separate data set, averaged over three seeds. The results confirm the case for the technique. At medium levels of data corruption, exact matching on a keyed hash of an identifier recovered 46.9 per cent of true matches; the Bloom-filter encodings recovered 88.0 per cent at 97.0 per cent precision. As an engineering question, error-tolerant linkage on encodings alone is feasible.
What the numbers also show
The same evaluation measures leakage. Against a frequency attack on family names, where an adversary aligns the most common encodings with the most common surnames, keyed hashes and field-level Bloom filters leaked equally, re-identifying 49.9 per cent of records on the synthetic vocabulary. Several published hardening techniques, including balancing, XOR folding and rule-90 transforms, made no difference to this attack, because they are deterministic. Salting by year of birth reduced it to 0.4 per cent and multi-field encodings to zero, but neither defeats stronger published attacks, and no formal guarantee bounds what Bloom-filter encodings leak. They leak similarity and structure by design.
That is a typical profile for an applied privacy technique: effective against specific, documented attacks, with unknown exposure to undocumented ones.
Where the security actually lives
The decisive analysis is about parties. Four structural conditions determine whether PPRL is safe in practice, and none is cryptographic.
Security reduces to key custody. It is the old problem of the master key: a building full of excellent locks is only as safe as the drawer where the master key is kept. Without the key, encodings resist dictionary attack. With it, every low-entropy field, such as date of birth, postcode, phone number or a common name, can be enumerated and every record re-identified. Someone must hold that key for the life of the project, and the protection of every record then depends on that party’s operational security, staff and future decisions. The cryptography does not remove trust; it concentrates it.
The intermediary must be genuinely independent. The three-party model assumes a linkage unit that never sees the key, never colludes with a custodian and keeps linkage separate from analysis. Health systems meet these assumptions with statutory linkage units, enabling legislation, ethics review and audit. A voluntary network of organisations has none of these, and an operator that is also a participant cannot be its own independent party.
The linked dataset is a target. A link map of sensitive participation is valuable to attackers and subject to compelled disclosure. Its value grows with every organisation that joins, so the incentive to attack it grows exactly as the network succeeds. Encryption withstands theft of encodings. It does not withstand compromise of the key holder, and it cannot make safe a dataset that should not exist.
No bound on leakage. Hardening raises the cost of known attacks without proving anything about unknown ones.
The decision not to deploy
This is why the architecture decision record 0013 of Always Foundation, a nonprofit building open infrastructure that helps ministries pass people to a local church, is a useful case study in institutional reasoning. The foundation had earlier designed a narrow form of linkage, a keyed hash of a phone number, to let ministries recognise the same consenting adult across organisations. On review, it ruled out any capability to link or reconstruct people’s religious activity across independent organisations, “whatever the technique”: hashing, encryption, pseudonymisation, federated or third-party matching. The reasoning was that the capability itself, however well protected, would make the foundation a high-value target, could be misused under future pressure or leadership, and would erode a person’s freedom to explore, change churches or leave without a persistent record.
The pprl library was built to answer the technical questions that decision left open, accuracy and leakage, and it reaches the same conclusion from the other direction. The technique works; the deployment conditions are the problem. For production use across independent organisations, the custody and independence requirements are too difficult to meet reliably. The library is published as a reference artefact, with minimum conditions for any research use: synthetic or ethics-approved data only, an independent linkage party, a per-study key held in a key management system and destroyed on a recorded date, aggregate outputs with small cells suppressed, and a fixed deletion date for link maps.
Feasibility is not a deployment decision
The general lesson extends well beyond linkage. Technical communities tend to treat “can it be done safely?” as a question about algorithms. In practice it is usually a question about institutions: who holds the keys, who can be compelled, what the system becomes worth to an attacker as it grows, and what a future operator might do with a capability a present one built in good faith.
Religious affiliation is special-category data under European law and dangerous data in much of the world. For data of that kind, the strongest privacy property available is absence. Proverbs commends the prudent person who sees the danger and hides from it. In systems design, the equivalent is recognising when the safest architecture for a capability is not to build it, and publishing the analysis so that others can see why.