Passkin

Signals: Google tells Passkin when an account was taken over

Status: receiving built (2026-10-05). Tests: apps/auth-broker/tests/signals.test.ts. Google's Cross-Account Protection is a promise to every app that signs people in with Google: if a Google account is hijacked, or the person asks Google to sign them out everywhere, Google tells the app — as a Security Event Token (SET) pushed to an address the app registered (the RISC profile of the OpenID Shared Signals Framework, RFC 8935). Passkin receives them for the people who sign in to Passkin with Google: their Passkin sessions end, everywhere, at once. A person who has to sign in again is a small cost; a thief who does not is not.

What happens

POST https://auth.passk.in/ssf/google receives the SET as the body. There is no cookie and no key: the token's own signature is the authentication, and it is believed only if

  • it is signed (RS256) by a key in Google's published key set (read from https://accounts.google.com/.well-known/risc-configuration, cached an hour, read again once when a key Google has just rotated in is not in the cache),
  • its issuer is Google,
  • its audience is a Google OAuth client this service signs people in with — Passkin's shared app, its shards, or a project's own app (BYOC),
  • it is fresh (issued within a week, not in the future) and has a jti Passkin has not seen: each delivery is acted on once — Google retries, and a repeat is accepted and does nothing more.

Anything else is refused with the error RFC 8935 §2.4 names: 400 { "err": "invalid_request" | "invalid_key" | "invalid_issuer" | "invalid_audience" | "authentication_failed", "description": … }. A valid token is answered 202, whether or not it said anything about anyone here (a person Passkin does not know is not an error).

Event What Passkin does
sessions-revoked, tokens-revoked, account-disabled (any reason), account-credential-change-required, account-purged ends every session the person has: their Passkin ID sign-ins (the browser cookies) and every site session in every project, each with its refresh tokens and its back-channel logout notice
account-enabled, token-revoked (one token), unknown event types, verification noted, nothing ended — Passkin holds no Google token to revoke, and an account turned back on is no reason to sign anyone out

The person sees it on their Passkin ID activity ("Google reported a problem with your Google account: you were signed out everywhere", in their language); each affected project's audit log has session.revoked_by_signal with the source and event (and no personal data beyond the id), so it is in the SIEM stream too (AUDIT-LOGS.md).

Applies to people who signed in with Google: a Google account is matched by its stable sub, never its email.

Switching it on (an operator, once)

Google sends nothing until a receiver is registered. In Google Cloud, create a service account with the RISC Configuration Admin role and a key; give its JSON to the broker as GOOGLE_RISC_SERVICE_ACCOUNT_JSON (it is read from the environment when you register, never stored, never logged, never returned). Then, as an operator:

GET  /v1/manage/operator/risc             # configured?, the receiver address, the Google client ids it will accept, the events it asks for
POST /v1/manage/operator/risc/register    # sets the push address and events at Google, then asks it to send a verification event (verify: false to skip)

Registration signs a short-lived token as the service account for Google's RISC management API (stream:update, stream:verify) and reports each step's HTTP status. Operators only (PASSKIN_OPERATOR_EMAILS); an API key never reaches it.

Transmitting: Passkin tells your security systems

The other direction. When something happens to a person in a project — a session ends, an account is switched off, back on, or deleted — Passkin can push it, as a signed Security Event Token (RFC 8417, delivered per RFC 8935 — the push profile of the Shared Signals Framework), to the systems you point it at: a zero-trust gateway, a SIEM, a custom service that must cut access now instead of when a token expires. It is the same pipe as webhooks — queued, signed, retried (30 s, 2 min, 10 min, 1 h, 6 h, 24 h), switched off when a receiver keeps failing — carrying a different body.

Passkin event Signal Event type
session.revoked a session ended (initiating_entity: user when the person ended it, admin otherwise) CAEP https://schemas.openid.net/secevent/caep/event-type/session-revoked
user.banned the account was switched off (its sessions ended) RISC …/risc/event-type/account-disabled
user.unbanned switched back on RISC …/account-enabled
user.deleted the account is gone RISC …/account-purged
a test the verification event: a state and no person, to prove the stream works SSF …/ssf/event-type/verification

Nothing else goes down a stream — not sign-ins, not the audit log, not profile changes — and a token carries no personal data: the person is the issuer's sub, the same id the project's tokens carry, never an email or a name.

POST <your receiver>
Content-Type: application/secevent+jwt
Accept: application/json
Authorization: Bearer <the token you gave Passkin>        (when you gave one)

eyJhbGciOiJSUzI1NiIsInR5cCI6InNlY2V2ZW50K2p3dCIsImtpZCI6Ii4uLiJ9.…
// the payload
{
  "iss": "https://auth.passk.in/p/pk_live_…",          // the project's issuer
  "aud": "https://gateway.example.com",                 // what you set as the audience; by default the receiver address's origin
  "iat": 1791201600,
  "jti": "evt_…",                                        // the event's id: a receiver can drop a repeat
  "sub_id": { "format": "iss_sub", "iss": "https://auth.passk.in/p/pk_live_…", "sub": "user_…" },
  "events": {
    "https://schemas.openid.net/secevent/risc/event-type/account-disabled": {
      "subject": { "format": "iss_sub", "iss": "…", "sub": "user_…" },   // RISC and early CAEP receivers read it here; SSF 1.0 at the top. The same fact.
      "event_timestamp": 1791201600
    }
  }
}

The receiver verifies it with the project's own key — the one that signs its ID tokens — from https://auth.passk.in/p/<pk>/jwks.json (header typ: secevent+jwt, alg: RS256): signature, iss, aud, then act on events. The project's transmitter metadata is at https://auth.passk.in/.well-known/ssf-configuration/p/<pk> (SSF 1.0 §7.2.1): issuer, jwks_uri, delivery_methods_supported (push), events_supported, subject_formats_supported (iss_sub). A receiver answers 202 (any 2xx counts).

Setting a stream up

Dashboard: Project → Activity → Security signals → Add a receiver. Management API (MANAGEMENT-API.md):

POST   /v1/manage/projects/:pid/signal-streams        { "url": "https://gateway.example.com/ssf/push", "audience": "zt-gateway", "token": "…", "events": ["session.revoked", "user.banned"], "description": "…" }
GET    /v1/manage/projects/:pid/signal-streams        # the streams, the signals Passkin can send, and the transmitter metadata
PATCH  /v1/manage/projects/:pid/signal-streams/:sid   # url, audience, events, token, enabled
DELETE /v1/manage/projects/:pid/signal-streams/:sid
POST   /v1/manage/projects/:pid/signal-streams/:sid/test   # sends the verification event, says what the receiver answered

The address must be public https (no private networks, no redirects: the same rule as webhooks). The token is accepted and never returned; at most five streams a project; changes are in the audit log (signal_stream.created/updated/deleted).

Limits

  • Covers the Google OAuth clients this service uses. A project that brought its own Google app is covered only if its client id is registered with a stream whose receiver is this address (one Google Cloud project per stream); registering per-project streams is not automated.
  • Transmitting is push, to receivers you register. Not built: the SSF stream management API (a receiver creating and changing its own stream with an access token — here a developer registers the receiver), poll delivery (RFC 8936), subject management (add/remove subjects: a stream carries every person of the project), CAEP credential-change and assurance-level-change events (Passkin ID's password and passkey changes are not project events), token-claims-change, and a receiver authenticating with something other than a bearer token (a signed Authorization header you set is what it gets).
  • Passkin sends signals about people of a project. A person's Passkin ID (account) events are the person's own activity page, not a stream.
  • Only Google. Apple, Microsoft and others publish no equivalent push today.
  • A person signed out this way signs back in with Google as usual; Passkin does not (yet) require a second factor on that next sign-in.

Ready to try it?

Create a project — the dashboard fills these snippets in with your own keys.

Open the dashboard