Attestation formats and the BE/BS flags: none, packed, tpm, apple
In one line: How fmt changes attStmt, what each format proves, and how the BE and BS flags identify synced passkeys and should change server validation.
Attestation is the optional step that proves which authenticator created a credential. The format (fmt) decides the shape of attStmt and what a server can verify.
Conveyance and formats
| Conveyance | What the server gets | Typical use |
|---|---|---|
| none | An empty attStmt map | Most consumer services; the most common choice |
| indirect | A format the server allows | Anonymised by policy |
| direct | Whatever the authenticator produced | Enterprise and high-security deployments |
| enterprise | Additional verification data | Managed devices |
attStmt by format
| fmt | attStmt fields | Notes |
|---|---|---|
| none | (none) | No proof; the decoder shows {} |
| packed | alg, sig, (x5c, ecdaaKeyId) | Without x5c it is self attestation |
| tpm | ver, alg, sig, x5c, pubArea, certInfo | Proves TPM PCRs and the key's public area |
| apple | x5c | Apple anonymous CA chain with a nonce extension |
| fido-u2f | x5c, sig | Compatibility with older U2F keys |
// packed self attestation
{ "fmt": "packed",
"attStmt": { "alg": -7, "sig": h'3044…' },
"authData": h'…' }
// apple
{ "fmt": "apple",
"attStmt": { "x5c": [ h'3082…', h'3082…' ] },
"authData": h'…' }
The BE and BS flags
BE (Backup Eligibility, 0x08) and BS (Backup State, 0x10) say whether a credential can leave the device.
- BE=0, BS=0 — device-bound; usable only on that device.
- BE=1, BS=0 — eligible for backup but not backed up yet.
- BE=1, BS=1 — a synced passkey, for example in iCloud Keychain or Google Password Manager.
- BE=0, BS=1 — a specification violation; the decoder reports a failure.
Synced passkeys often keep signCount at 0, so servers relax the counter check when BE=1. In exchange, the policy has to assume the credential may be copied.
Attestation and privacy
Direct attestation tells the server about the authenticator model and its certificate chain. That is useful for an organisation enforcing device policy, but for a consumer service it becomes extra identifying information. Platform authenticators from Apple and Google provide anonymised attestation, and a browser that sees attestation: "none" returns an empty attStmt. If regulation or policy does not require attestation, requesting none and concentrating on the remaining checks keeps the design simpler.
What a server should do
- With conveyance none, skip attStmt validation and verify the remaining fields.
- With direct, validate the x5c chain against a trust store and check the AAGUID against an allow list.
- Split the signCount policy by the BE flag.
- If UV is mandatory, reject responses with UV=0.
What the flags change in your logs
Record BE and BS on every registration and assertion. When a support ticket says a passkey works on one device and not another, the flags immediately separate a device-bound credential from a synced one, which decides whether the user should re-register or wait for sync. Logging the AAGUID alongside them also makes it possible to spot a single authenticator model that misbehaves across many users.
Debugging tip
One user's credentials can report different AAGUIDs and flags on different devices. If registration works but another device cannot sign in, check BE=0 first. PasskeyLab's samples cover none, packed, apple and tpm so the attStmt differences are easy to compare side by side.
Decoding happens right in the browser. The payload you paste is not stored.
Open the PasskeyLab decoderFrequently asked questions
Do I have to verify attestation?
Most consumer services do not. Requesting none and verifying the public key, signature and origin is the common setup. Direct attestation is for enforcing device policy in an enterprise.
If the x5c certificate expires, does the passkey stop working?
No. The attestation certificate is only used at registration. Sign-in uses the credential's private key, so certificate expiry does not matter afterwards.
Is a BE=1 passkey less secure?
It means the credential may be copied, so the threat model changes. Recovery from a lost device is easier, but a compromised account can spread across devices, so add a second factor.
Sources
Read next
- The WebAuthn registration and authentication ceremoniesWhat the browser, server and authenticator each build and verify during create and get, field by field, and where implementations usually go wrong.
- The authenticatorData byte layout and flag bitsOffsets for the 37-byte header, AAGUID, credential ID, COSE key and extensions, with a worked hex example and the meaning of every flag.
- Reading CBOR and COSE public keys: ES256, RS256, Ed25519How the attestationObject CBOR map and the COSE key map (kty, alg, crv, x, y, n, e) are laid out, with byte-level examples and reconstruction steps.