opyebPasskeyLab

Attestation formats and the BE/BS flags: none, packed, tpm, apple

Advanced · 8 min read

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

ConveyanceWhat the server getsTypical use
noneAn empty attStmt mapMost consumer services; the most common choice
indirectA format the server allowsAnonymised by policy
directWhatever the authenticator producedEnterprise and high-security deployments
enterpriseAdditional verification dataManaged devices

attStmt by format

fmtattStmt fieldsNotes
none(none)No proof; the decoder shows {}
packedalg, sig, (x5c, ecdaaKeyId)Without x5c it is self attestation
tpmver, alg, sig, x5c, pubArea, certInfoProves TPM PCRs and the key's public area
applex5cApple anonymous CA chain with a nonce extension
fido-u2fx5c, sigCompatibility 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

  1. With conveyance none, skip attStmt validation and verify the remaining fields.
  2. With direct, validate the x5c chain against a trust store and check the AAGUID against an allow list.
  3. Split the signCount policy by the BE flag.
  4. 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 decoder

Frequently 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