Security model
Nod's aim is to show, not just claim, that it is across the published attacks on identity systems. Every item it tracks has a file in [security/advisories](../../security/advisories). Each file records the attack, whether Nod is exposed, the test that runs the attack, and the deliberately broken build that test was shown to catch. [security/zitadel-triage.md](../../security/zitadel-triage.md) assesses every advisory Zitadel has published, a system shaped like Nod.
In short
- Tokens:
- Verification takes nothing from a token's header on trust. The key comes from the realm's own keys by
kid, the algorithm is that key's, andtyp,iss,aud,expandnbfare checked. alg: none, HMAC key confusion, embedded or fetched keys,critheaders and another realm's keys are all refused.
- Verification takes nothing from a token's header on trust. The key comes from the realm's own keys by
- The OAuth flows:
- Redirect URIs match exactly, and PKCE is S256 only, with downgrades refused.
- Codes are single-use, and a replay revokes what the code gave. Refresh tokens rotate, and reuse revokes the grant.
- Authorization responses carry
iss. Tokens for APIs carry exactly one audience and no more scope than was granted.
- Passkeys:
- Ceremonies are single-use, stored, and bound to their realm, site and purpose.
- Counters are re-checked in the transaction that saves them, and a credential registered to one user can't be registered to another.
- Unknown usernames get decoy sign-in options, so nobody can list accounts.
- Passwords and second factors:
- Passwords are Argon2id, every failure looks alike, and lockouts are counted transactionally.
- With an authenticator app, a password alone never yields a session.
- The browser:
- The session cookie is random, HttpOnly, SameSite=Lax and host-only, and is a new id on every sign-in.
- Every state-changing request must come from Nod's own origin.
- Pages run only their own nonce'd scripts, can't be framed, and escape everything.
- Outside providers:
- Flows are bound to the browser that started them, and the ID token is checked against that flow's provider only.
- Outbound requests go only to public https addresses.
- Isolation: realms share nothing. Tokens, ids, cookies, keys and management API calls are all realm-bound.
- At rest: signing keys and secrets are sealed under a key the database never holds.
- Standards: the OpenID Foundation's conformance suite passes the Basic OP plan (24 passed, 0 failed) and the Config OP plan (over https).
Reporting a vulnerability
A disclosure policy and contact are still to be published. Until then, tell the Nod maintainers directly, not in a public issue.