Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Google Online Security Blog 4 min read Announcement easyNovice

Protecting Cookies with Device Bound Session Credentials

Device Bound Session Credentials (DBSC) is now publicly available in Chrome 146 on Windows, with macOS support coming in a later release. DBSC binds authentication sessions to a non-exportable key pair held in a TPM or the Secure Enclave, so the server issues short-lived cookies only after the browser proves possession of the private key. Cookies stolen by infostealer malware therefore expire quickly and stop working. Sites adopt it by adding registration and refresh endpoints to their backend while keeping their existing cookie-based frontend. Each session uses its own key to avoid cross-site tracking. Planned extensions cover federated SSO bindings, binding to existing key material such as mTLS certificates, and software keys for devices without secure hardware.

Assumes: HTTP cookies and sessionspublic-key cryptography basics

Related posts

  • Catching Compromised Cookies

    Slack Engineering mediumAdept

    Slack detects stolen session cookies by spotting session forking: a last-access timestamp is stored in both the cookie and the database, and a mismatch on a later request means more than one copy of the cookie is in use. Early false positives from clients that never received refreshed cookies were cut by matching IP addresses and by a two-phase, idempotent "session candidate" cookie that is promoted only after the client proves it stored the new value. In-flight request races are handled by ignoring timestamps right after an update. Database reads are skipped while a cookie is freshly issued. High-risk detections, scored using device and network signals, go to the audit log for customers' SIEMs.

  • Automatic CLI login

    Supabase mediumAdept

    Supabase CLI 1.114.0 replaces the manual copy-paste token flow with a browser-based automatic login. `supabase login` generates a session UUID, a token name and an ephemeral P-256 ECDH key pair, then opens a dashboard URL carrying the public key. The Management API mints an access token, encrypts it with an ECDH-derived shared secret using its own one-time key pair, and stores only the ciphertext. The CLI polls by session ID, decrypts the token with its in-memory private key and saves it to the OS keychain, while flags still allow manual tokens, environment variables or no browser.

  • Private analytics via zero-trust aggregation

    Google Research hardMaster

    Google's private analytics service now layers a new lattice-based, one-shot secure aggregation protocol on top of TEE execution, so individual device data is never decrypted in server memory even if the enclave is compromised by side-channel attacks. Clients send a single message whose ciphertexts aggregate both the values and the encryption keys; small rotating client committees hold hints that unlock only the aggregate, which is masked with differential privacy noise. TEE attestation gives verifiable proof that the published aggregation code is what actually runs. The system is being used to measure real-world effectiveness of Android SafetyCore's on-device safety classifiers without exposing user content.

  • A Synchronized Start for Linked Devices

    Signal mediumAdept

    Signal now lets users transfer message history and the last 45 days of media when linking a new Desktop or iPad, without exposing data to the server. Linking starts with a QR code containing a temporary provisioning address and a Curve25519 public key. The primary device replies with an encrypted provisioning message carrying shared keys, a one-time linking token, and a new one-time 256-bit AES key that encrypts a compressed history archive uploaded as an attachment. Media isn't re-uploaded: the archive holds pointers to existing encrypted attachments, which the server already deletes 45 days after upload, so the archive is mostly text and compresses to a few megabytes.

  • Online Identity Verification with the Digital Credentials API

    WebKit mediumAdept

    Safari 26 on macOS, iOS and iPadOS adds support for the W3C Digital Credentials API, letting websites request mobile IDs (ISO/IEC 18013-5/-7 mdocs) from Apple Wallet and third-party wallets instead of photo-and-selfie ID uploads. The flow has the server build and sign a document request with a ReaderAuth structure, call navigator.credentials.get with the org-iso-mdoc protocol from a user gesture, and route through an OS wallet picker and consent sheet. Cross-device flows from Mac, iPad or non-Apple platforms use a nearby iPhone or QR code via FIDO CTAP. Servers must decrypt the response and validate IssuerAuth, per-element hash digests and DeviceAuth. The protocol supports data minimization, end-to-end encryption and device binding.

The quest for software engineering knowledge.

Look:
Layout: