Attestation and authenticator models
A passkeyA credential that your phone, computer or password manager creates for one website and keeps for you, unlocked with a fingerprint, face or PIN. Nothing you could type is sent, and it works only for the site it was made for, which helps it resist phishing. sign-in proves that the right private keyThe half of a key pair that its owner keeps to themselves and uses to create signatures or decrypt data. Anyone who obtains it can act as its owner. signed. It says nothing about the device holding that key. Attestation is how an authenticatorSomething a person controls and uses to prove control of an account, such as a memorized password, an app that generates one-time codes, or a security key. It counts only after it has been registered to that account. can say what model it is, with its manufacturer's signatureA value made with a private key that lets anyone holding the matching public key check that a message came from the key's holder and has not been changed. It proves origin and integrity; it does not hide the message. behind the claim, and this lesson follows what a relying partyAn application that accepts and relies on a sign-in from another service, the name used in OpenID Connect and for passkeys. SAML calls the same role a service provider. must check before that claim is worth anything.
Which device made the credential
Ava signs in to the photo service with whatever passkey her phone offers, and that suits the photo service well. Its administrators are different. They can restore deleted accounts and change sign-in settings for every customer, so the photo service has issued each of them a certified hardware security keyA small physical device, plugged in or held near a phone or computer, that holds credentials and uses them to prove you have it. It is an authenticator that resists phishing., and for the administrators' console it wants to accept only those keys. A successful sign-in cannot tell it that. The assertion from The authentication ceremony proves that some private key signed the challenge, not where that key lives or who made the device.
Attestation is how an authenticator can say what it is. At registration, alongside the new credential, it can include a statement signed by an attestation key that its manufacturer put into that model, with a certificateA signed statement that a public key belongs to a name, such as a website's hostname, for stated purposes and a limited period. A certificate authority signs it, so software that trusts the authority can connect the key to the name. chain leading back to the manufacturer. Chains work as Certificate authorities and chains described for websites: each certificate is signed by the one above it, up to a root the checker already trusts. If the chain checks out against a root the photo service trusts for that model, the photo service learns the model with the manufacturer's word behind it. It can tie that knowledge to the new credential, because the statement signs the same authenticator data that carries the credential's public keyThe half of a key pair that can be shared freely. It checks signatures made with the matching private key and can encrypt data that only that private key can decrypt..
The model is identified by its AAGUID, the 16 bytes at the start of the attested credential data that The registration ceremony called the authenticator model's identifier. On its own the AAGUID is only a claim. Any software can write any AAGUID into its own authenticator data, so the claim is worth relying on only when a verified attestation statement stands behind it.
fmt none
- Statement
- Empty
- Signed by
- Nobody
- Chain to root
- None
- AAGUID
- Approved model
On its own the AAGUID is only a claim.
packed, self
- Statement
- alg and sig
- Signed by
- The credential's own new key
- Chain to root
- None
- AAGUID
- Approved model
On its own the AAGUID is only a claim.
packed, basic
- Statement
- alg, sig and x5c
- Signed by
- The model's attestation key
- Chain to root
- Reaches the model's root
- AAGUID
- Approved model
The model, with the manufacturer's word behind it.
Attestation says what the device is. It does not say who the person is.
Asking for attestation
The attestation member of the creation options is a preference, called the attestation conveyance preference:
| Value | What the relying party is asking for |
|---|---|
none | No attestation. The default, and the right choice for most sign-in. |
indirect | Some attestation, but the browser may replace it with an anonymized one to protect privacy. |
direct | The statement exactly as the authenticator made it. |
enterprise | A statement that can identify the individual device, for organizations that manage their own devices. Browsers allow it only for relying parties configured by policy. |
A preference is not a guarantee, and the photo service must read what actually comes back. The browser may ask the person's permission before passing on identifying attestation, and they may decline. A synced passkey, one that a password manager or platform account copies to the person's other devices, usually comes with none whatever was requested, because one credential on many devices has no single device to vouch for. Asking for direct and receiving fmt: "none" is normal, and the policy has to say what happens then.
Formats and statements
With attestation: "direct", an administrator's security key returns an attestation object like this one, shown in the same CBOR text notation as the registration lesson, with long values shortened:
{
"fmt": "packed",
"attStmt": {
"alg": -7,
"sig": h'3045022100c3...',
"x5c": [ h'308202bd308201a5...' ]
},
"authData": h'6ddf25aa...3c58bfea 45 00000001 cb69481e8ff7403993ec0a2729a154a8 0040 ...'
}fmt names the format, here packed, the general format FIDO2The FIDO Alliance and W3C standards for signing in with public-key credentials: WebAuthn between a website and the browser, and CTAP between the browser and an authenticator such as a security key. Passkeys are FIDO2 credentials. authenticators use. sig is a signature, made with the attestation key, over the authenticator data followed by the hashTurning data into a short, fixed-size value called a hash, in a way that cannot be reversed and where changing one character changes the result completely. Services store password hashes instead of passwords, and signatures are made over a hash. of clientDataJSON, the same pair an assertion signs. x5c holds the attestation certificate first, then any intermediate certificates. alg says how sig was made, here -7, ES256. The authenticator data inside carries the same flags, counter and AAGUID as any registration, plus the new credential.
Other formats exist because different platforms build attestation differently. tpm comes from a computer's TPM, the security chip built into many laptops and desktops. android-key comes from Android's hardware keystore, and apple from Apple devices. fido-u2f comes from older security keys built for U2F, the earlier FIDO standard that used a key only as a second step after a password. Then there is none. The latest edition of the WebAuthnThe W3C browser API that lets a website register and use public-key credentials, such as passkeys and security keys. The site sends a challenge, and the authenticator signs it with a key scoped to that site. specification, Level 3, adds compound, which carries several statements at once. Each format has its own verification procedure in the specification.
Statements also differ in how much they reveal, which the specification calls the attestation type. A basic statement is signed by a key shared across a batch of at least 100,000 devices of one model, so it names the model without singling out the device. A self statement is signed by the credential's own new key, which proves the authenticator holds that key but says nothing about the model. An anonymization CA is a certificate authority that issues a fresh attestation certificate for each credential, so two registrations cannot be linked. Self attestation, like none, cannot satisfy a policy that names approved models.
Checking against the metadata service
Verifying the signature with the key in x5c is not enough, because anyone can make a certificate. The photo service has to know which root certificates belong to which models. The FIDO Alliance, the industry group that publishes the FIDO standards and certifies authenticators, provides that knowledge through the FIDO Metadata Service. It is a single signed JSON Web TokenA JSON Web Token: a compact token made of Base64url-encoded parts that carries claims and is usually signed. Anyone holding it can decode and read the claims, so the signature shows who issued it but hides nothing., called the metadata BLOB, holding one entry per certified model:
{
"aaguid": "cb69481e-8ff7-4039-93ec-0a2729a154a8",
"metadataStatement": {
"description": "Example Security Key Series 5",
"attestationTypes": ["basic_full"],
"userVerificationDetails": [[{ "userVerificationMethod": "presence_internal" },
{ "userVerificationMethod": "passcode_external" }]],
"keyProtection": ["hardware", "secure_element"],
"attestationRootCertificates": ["MIICHjCCAaSgAwIBAgIJAOX..."]
},
"statusReports": [
{ "status": "FIDO_CERTIFIED_L2", "effectiveDate": "2025-03-14" }
],
"timeOfLastStatusChange": "2025-03-14"
}The entry describes the model. attestationTypes says it makes basic statements. userVerificationDetails lists how it can check the person: a touch on the key itself, and a PIN typed on the computer. keyProtection says its keys live in hardware, in a secure element, a tamper-resistant chip that uses keys without ever letting them out. attestationRootCertificates holds the roots the model's attestation certificates chain to. FIDO_CERTIFIED_L2 is a certification level: level 1 tests that the authenticator follows the protocol, and higher levels also test how well it protects its keys against attack.
The photo service checks the BLOB's own signature against the FIDO Alliance's root, as for any signed token from Inside a JWT, and the BLOB's nextUpdate date, which says when a newer copy is due, so it does not keep using a stale one. At registration it looks up the AAGUID, builds a chain from the x5c certificates to one of that entry's attestationRootCertificates, and confirms that the attestation certificate's details match the model. Only then can the policy compare the model with its approved list. If the metadata cannot be fetched or has expired, a policy that depends on it should refuse new registrations of that kind rather than quietly treat the model as fine.
Model status has a lifecycle
The statusReports list changes over time. A model certified today can later be reported as USER_VERIFICATION_BYPASS, when someone finds a way to skip its PIN check, or ATTESTATION_KEY_COMPROMISE, when its batch attestation key leaks and any statement signed with it becomes worthless, or REVOKED. The photo service has to decide in advance what each report means for it. A compromise of the attestation key may only stop new registrations of that model, because existing credentials were checked while the key was still trustworthy. A verification bypass may require the administrators to enroll replacement keys and remove the old ones.
Keep the subjects apart, too. Attestation says what the device is. It does not say who the person is; that is identity proofing. It does not say what they may do; that is authorization. An approved key gives the administrators' console a stronger authenticator, not a stronger role.
Privacy and what to require
Attestation has a cost. It tells a website which device a person owns, and an enterprise statement can identify the device itself. That is why browsers mediate it and why most consumer sites ask for none. A broad population such as the photo service's customers is better served by accepting every passkey and protecting recovery well than by refusing the devices people already have.
The backup flags are sometimes mistaken for a cheaper substitute. BE and BS tell the photo service whether a credential can be, and is, copied by its provider. A credential with BE clear stays on one authenticator, but that bit comes from the authenticator itself, so it is not evidence of a certified secure element, a particular model or hardware that cannot be copied. A policy that needs those facts needs verified attestation.
For the administrators, the complete design is direct attestation, a list of approved AAGUIDs with chains checked against the metadata service, a decision for each status change, and an enrollment and recovery process that issues and replaces keys in person. Ava and the other customers keep none.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- Refuse a passkey by model, decode its attestation, and read what it provesWatch a model policy refuse a passkey, decode the attestation statement your authenticator sent, correct only the policy, and see a metadata requirement refuse unattested passkeys.