Why a National ID Number Can Never Be a Secret, and What to Authenticate With Instead
Security Intermediate 6 min read

Why a National ID Number Can Never Be a Secret, and What to Authenticate With Instead

Identifiers and authenticators have opposite requirements. Why knowledge-based verification fails for lifetime ID numbers, and how to move to device-bound and out-of-band factors.

Published: October 5, 2026 • Updated: October 5, 2026
authenticationidentityknowledge-based authenticationmitidpasskeys

On 5 October 2026 Denmark confirmed that the names, addresses and CPR numbers of about 8.8 million people had been extracted from its Central Person Register through a private company's lawful lookup access. The official guidance that followed was blunt: no new CPR numbers will be issued, citizens should rely on MitID for identification, and a caller who knows your CPR number should be given no more trust than one who does not.

That guidance is correct, and it exposes a design flaw that is not Danish at all. Every country with a national identity number, and every organisation that uses one, has at some point treated knowledge of the number as evidence of identity. This article explains why that was always wrong, why a breach like Denmark's only makes it visible, and what to authenticate with instead.

Identifiers and authenticators are different things

An identifier answers the question "which record are we talking about?" An authenticator answers "is the person in front of me the owner of that record?" The two have opposite requirements. An identifier needs to be stable, unique and widely shared so that systems can agree on who someone is. An authenticator needs to be secret, revocable and ideally bound to a device or a body so that it cannot be replayed by anyone who learns it.

A national identity number is a near-perfect identifier and a near-useless authenticator. It is issued once, never changes, and is handed to employers, banks, doctors, landlords, insurers, utilities and government agencies throughout a person's life. Each of those parties stores it. Each of them is a potential leak. The Danish CPR number appears on health cards and tax documents; the US Social Security number is on tax forms and credit applications. A value that is printed, mailed and stored in thousands of databases cannot be a secret, and a value that cannot be a secret cannot authenticate anyone.

Organisations know this in principle and ignore it in practice, because asking for the number is cheap and feels like a check. The industry term is knowledge-based authentication, and it fails the moment the knowledge becomes common.

A structured identifier is guessable even before it leaks

The CPR extraction reportedly relied on a very large number of automated searches to identify valid numbers. That worked because the number is structured: ten digits beginning with the date of birth, leaving four digits to distinguish everyone born on the same day. An attacker who knows a target's birthday has at most ten thousand candidates, and a lookup service that confirms which one is valid does the rest. Why Third-Party Lookup Access Is an Enumeration Oracle Waiting to Be Abused goes through that mechanism in detail.

The same is true of most national numbers. Social Security numbers were historically assigned by geography and date, and researchers demonstrated in 2009 that a substantial fraction could be predicted from public birth records alone. Even without a breach, a structured identifier offers an attacker a small search space. The breach simply removes the search.

That matters for planning. Organisations tend to treat a national-number leak as a one-off emergency that will fade. In reality the identifiers were weak before the leak and are worthless as secrets after it, permanently. Denmark's statement that no new CPR numbers will be issued is not a failure of response; it is an acknowledgement of what the number is.

What the breach changes operationally

For the roughly 8.8 million people affected, three categories of fraud become easier. Targeted phishing and vishing, because the attacker can open a conversation with correct personal details and sound like the bank. Account takeover at any service that still uses CPR number plus name plus address as a recovery or verification path. And synthetic or impersonated applications for credit, benefits or accounts wherever those checks are knowledge-based.

For organisations that serve those people, a whole class of verification controls has silently stopped working. Any process that accepts "state your CPR number and address" as proof of identity now accepts a value criminals hold for most of the population: help desk password resets, telephone banking identification, change-of-address requests, and web forms that pre-authenticate with national number and date of birth.

The required response is not to add more knowledge questions. Mother's maiden name, first school and previous address are in the same category and often in the same leaked datasets. It is to stop using knowledge as an authenticator and move the weight onto factors that a registry breach cannot compromise.

What to authenticate with instead

Strong authentication rests on possession and inherence rather than knowledge, and ideally on a binding between them.

A national digital identity scheme. Denmark's answer is MitID, and the government's post-breach guidance was to make it the primary means of identification. Schemes of this kind issue a credential bound to a device or a hardware token, verified through a government-run identity provider, and usable by both public and private services. The identifier is still the CPR number, but the proof of ownership is cryptographic, not recited. For organisations operating in a country with such a scheme, integrating with it is the single highest-value change available.

Device-bound credentials. Where no national scheme applies, passkeys and other FIDO-based credentials bind authentication to hardware the user holds. They cannot be phished by a caller who knows personal details, because there is nothing to recite.

Out-of-band confirmation for high-risk actions. Changes of address, payee additions and credential resets should trigger a confirmation on a previously enrolled channel, pushed to the user rather than requested from the caller. The point is that the person initiating the request cannot complete it alone.

Verification against a trusted source without disclosure. Where you must confirm a person's identity details, do it through a service that returns a match or mismatch for the claimed attributes rather than one that returns the record. This is the same design principle that limits enumeration on the lookup side, and it means your own verification flow is not another copy of the dataset waiting to leak.

Each of these pushes the identity number back to its proper role: a key for finding a record, never a password for unlocking it.

Planning the transition

Treat this as a programme, not a patch. Inventory every process, human and automated, that accepts a national identifier as an authentication factor. Call centre scripts and help desk runbooks are usually the largest and least documented population. Rank them by the damage a successful impersonation could do, and replace the highest-risk ones first with one of the factors above.

Rewrite verification scripts so that staff are explicitly told that a correct national number, name and address prove nothing. Denmark's official advice to its citizens makes the same point from the other direction: never share passwords or codes, regardless of how much the caller already knows about you. Internal staff need the mirror image of that instruction.

Then put detection around the processes you cannot change quickly. If a recovery flow must remain knowledge-based for the next quarter, instrument it for velocity, unusual geography and repeat attempts across accounts, and treat a spike in successful knowledge-based verifications as an incident rather than a good day for the help desk. How to Detect Bulk Enumeration Through a Partner's API Credentials Before It Finishes describes the same baseline-and-alert approach applied to the data side.

The Danish register will be reviewed, and the debate about whether the CPR system itself should be replaced has already begun. Neither outcome changes what any organisation should do this month. A lifetime identifier that is known to thousands of parties was never a secret. Build authentication as if it had already leaked, because somewhere, for someone, it has.