Most organisations run five authentication protocols at once, and architects often choose between them by habit rather than by who is authenticating and what the credential is worth if stolen. Kerberos still authenticates Windows domains, SAML 2.0 and OpenID Connect carry workforce and customer single sign-on, mutual TLS authenticates services at the connection layer, and SPIFFE gives workloads a portable identity. This guide compares them on the questions that matter for design: human or workload, credential type, trust anchor, lifetime and the main ways each is attacked. It is for identity architects and platform engineers deciding which protocol fits a new system, how to combine them and how to move away from legacy patterns. For a deeper look at the two federation protocols alone, see the SAML vs OIDC Guide.
Key takeaways
- Pick by subject first. SAML and OIDC are built for people signing in through a browser; mTLS and SPIFFE are built for workloads; Kerberos serves both inside one administrative realm.
- Bearer versus proof of possession is the biggest risk divider. A stolen SAML assertion, OIDC token or JWT-SVID can be replayed until it expires; an mTLS session or X.509 SVID needs the private key as well.
- The trust anchor is the crown jewel. The krbtgt key, the SAML token-signing certificate, the OIDC provider's signing keys and the CA or SPIFFE trust bundle can each mint valid identities if stolen.
- Short lifetimes do most of the work. Kerberos tickets typically last hours, OIDC ID tokens minutes, and SPIFFE implementations rotate SVIDs automatically; the long-lived risk sits in the keys behind them.
- Combining is normal. A typical estate uses OIDC for users, SPIFFE or cloud workload identity for services, mTLS as the transport, and Kerberos only where Windows needs it.
The protocols at a glance
| Protocol | Specification and status | Primary subject | What it proves |
|---|---|---|---|
| Kerberos V5 | IETF RFC 4120, Proposed Standard, July 2005 (updated by later RFCs) | Users and services in one realm or trusted realms | The client holds a session key issued by the Key Distribution Center (KDC) |
| SAML 2.0 | OASIS Standard, 15 March 2005 (Core, Bindings, Profiles) | People, browser single sign-on | An identity provider asserts who the user is and how they authenticated |
| OpenID Connect | OpenID Connect Core 1.0 incorporating errata set 2, Final, 15 December 2023 | People (web, mobile, native apps); also used to federate workloads via signed tokens | An OpenID Provider asserts the end user's identity in a signed ID Token |
| Mutual TLS | TLS (RFC 8446 for TLS 1.3) with client certificates; RFC 8705 for OAuth, Proposed Standard, February 2020 | Services, devices, API clients | Each side holds the private key for an X.509 certificate a trusted CA issued |
| SPIFFE | SPIFFE specifications (SPIFFE ID, X.509-SVID, JWT-SVID, Trust Domain and Bundle), CNCF project | Workloads | A workload holds a short-lived SVID naming its SPIFFE ID, issued within a trust domain |
Kerberos
Kerberos V5 is a ticket protocol built on symmetric keys. Every principal shares a secret key with the KDC, which has two services: the Authentication Service (AS) issues a ticket-granting ticket (TGT), and the Ticket-Granting Service (TGS) issues service tickets. A ticket carries the client identity and a session key sealed with the target service's key; the client proves possession with an authenticator, a timestamped record encrypted under the session key. RFC 4120 expects loosely synchronised clocks, with an allowable skew that is configurable and typically around five minutes. Realms trust each other through shared inter-realm keys, and tickets record the transited realms. Kerberos runs on port 88.
- Trust anchor: the KDC and its keys. In Active Directory the krbtgt account key signs every TGT.
- Lifetime: tickets carry start and end times set by policy, with optional renewal limits.
- Main threats: service tickets for accounts with weak passwords can be cracked offline (Kerberoasting, ATT&CK T1558.003); stolen tickets can be reused (Pass the Ticket, T1550.003); a stolen krbtgt key lets an attacker forge tickets (part of T1558). RFC 4120 itself notes Kerberos does not defend against password guessing and provides no authorisation.
- NHI suitability: fine for Windows service accounts and services inside the domain, but service account passwords are long-lived and often over-privileged. Use group managed service accounts, AES-only encryption types and strict delegation. See the Kerberos Security Guide and Kerberos RC4 Deprecation.
SAML 2.0
SAML 2.0 exchanges XML assertions between an identity provider (IdP) and a service provider (SP), usually through the user's browser. An assertion names its Issuer and Subject, carries Conditions with NotBefore and NotOnOrAfter times and an AudienceRestriction, and contains statements such as an AuthnStatement (when and how the user authenticated) and an AttributeStatement. Integrity comes from XML Signature: if a signature is present the relying party must verify it, and must not rely on the assertion if verification fails.
- Trust anchor: the IdP's token-signing certificate, exchanged in metadata and pinned by each SP.
- Lifetime: assertion validity windows are set by the IdP, normally a few minutes; the SP session that follows is controlled by the SP.
- Main threats: theft of the token-signing key enables forged assertions (Golden SAML, ATT&CK T1606.002); XML signature wrapping in weak SP libraries; missing audience or time checks; assertion replay. See the Golden SAML and Federation Trust Abuse Defence Guide.
- NHI suitability: poor. SAML assumes an interactive browser and has no widely used non-interactive profile for services; workloads should use OIDC-based federation, mTLS or SPIFFE instead.
OpenID Connect
OpenID Connect is an identity layer on OAuth 2.0. The OpenID Provider (OP) issues an ID Token, a JSON Web Token that must contain iss, sub, aud, exp and iat claims and must be signed with JWS. The core specification prohibits the "none" algorithm except in a narrow case where no ID Token is returned from the authorisation endpoint, and recommends that keys are distributed through discovery and registration rather than token headers. The authorisation code flow keeps tokens off the browser and lets the client authenticate to the token endpoint; the nonce binds the token to the client session and mitigates replay, and must carry enough entropy. Clients can authenticate with a shared secret or with an asymmetric key (private_key_jwt), and RFC 8705 adds mTLS client authentication.
- Trust anchor: the OP's signing keys published at its JWKS endpoint. See the JSON Web Key Sets (JWKS) and Signing Key Rotation Guide.
- Lifetime: ID tokens and access tokens are short-lived (minutes); refresh tokens can last much longer and are the higher-value secret.
- Main threats: stolen bearer tokens reused from another host (Application Access Token, T1550.001); weak redirect URI matching; missing audience, issuer or nonce validation; leaked client secrets.
- NHI suitability: good when used as signed workload tokens in federation: CI systems and Kubernetes issue OIDC-format tokens that cloud providers exchange for short-lived credentials. Scope the trust to exact subject claims. See the GitHub Actions OIDC Federation Hardening Guide.
Mutual TLS
In mutual TLS both client and server present X.509 certificates during the handshake and prove possession of the matching private keys. The identity is whatever the verifier reads from the certificate, usually a subject alternative name. RFC 8705 defines two OAuth client authentication methods, tls_client_auth (CA-validated chain plus a registered subject name) and self_signed_tls_client_auth (certificate matched against keys the client registered), and certificate-bound access tokens that carry a SHA-256 certificate thumbprint in the cnf claim (x5t#S256). The RFC states the purpose plainly: binding a token to the client certificate prevents use of stolen access tokens.
- Trust anchor: the issuing CA, or the registered certificate in the self-signed method.
- Lifetime: whatever the certificate says. Long-lived certificates issued by hand are common and are the main weakness.
- Main threats: theft of private keys from disk (Private Keys, T1552.004); overly broad CAs that any service can obtain certificates from; TLS termination at a proxy that forwards identity in an unprotected header; expired certificates causing outages that push teams to disable verification.
- NHI suitability: strong for service-to-service and device authentication when certificates are issued automatically and rotated. See the mTLS Guide and mTLS vs Signed Tokens for Service Authentication.
SPIFFE
SPIFFE standardises workload identity rather than a new wire protocol. A SPIFFE ID is a URI of the form spiffe://trust-domain/path, with no query or fragment. It is delivered in an SPIFFE Verifiable Identity Document (SVID). An X.509-SVID must contain exactly one URI SAN, and validators must reject certificates with more than one; leaf SVIDs must have cA set to false and must not be used to sign. A JWT-SVID must carry sub (the SPIFFE ID), aud and exp, and validators must reject tokens missing aud or exp; the specification restricts the allowed alg values and header parameters to avoid known JWT pitfalls. Trust is distributed as a trust bundle per trust domain, which can be federated between domains.
- Trust anchor: the trust domain's signing keys and bundle (in SPIRE, the server's CA).
- Lifetime: SVIDs are designed to be short-lived and rotated automatically by the workload API, so no secret is provisioned by hand.
- Main threats: weak workload attestation that issues SVIDs to the wrong process; JWT-SVIDs used as bearer tokens with broad audiences (the specification recommends limiting aud to one value); trust domain name collisions, since names are self-chosen with no registry.
- NHI suitability: designed for it, especially across clusters and clouds. See the SPIFFE and SPIRE Guide and SPIFFE vs Cloud-Native Workload Identity.
Comparison table
| Question | Kerberos | SAML 2.0 | OpenID Connect | Mutual TLS | SPIFFE |
|---|---|---|---|---|---|
| Human or workload | Both, within a realm | Human | Human; workload via federated tokens | Workload and device | Workload |
| Credential | Ticket plus session key (symmetric) | Signed XML assertion | Signed JWT (ID Token), OAuth tokens | X.509 certificate and private key | X.509-SVID or JWT-SVID |
| Bearer or proof of possession | Ticket usable by whoever holds it with its session key | Bearer (holder-of-key exists but is rare) | Bearer unless bound (RFC 8705, DPoP) | Proof of possession | X.509-SVID: possession; JWT-SVID: bearer |
| Trust anchor | KDC keys (krbtgt) | IdP token-signing certificate | OP JWKS signing keys | Issuing CA | Trust domain bundle |
| Typical lifetime | Hours, policy set | Minutes for the assertion | Minutes for ID and access tokens; refresh tokens longer | As issued; often months to years if manual | Short, rotated automatically |
| Network dependency | KDC reachable on port 88; clock sync | Browser redirects; metadata | HTTPS to OP; discovery | TLS handshake only | Local workload API; bundle distribution |
| Main threats | Kerberoasting, ticket reuse, forged tickets | Forged assertions, signature wrapping | Token theft, redirect and validation flaws | Key theft, broad CAs, header spoofing at proxies | Weak attestation, broad JWT audiences |
The bearer row is the one to dwell on. The DPoP Guide covers sender-constraining OAuth tokens where mTLS is impractical.
Choosing and combining
Decision guidance
- New workforce or customer web app: OpenID Connect with the authorisation code flow and PKCE. Use SAML only where the application or partner supports nothing else.
- Legacy enterprise SaaS: SAML is acceptable; harden signature and audience validation, and rotate the token-signing certificate on a schedule. See How to rotate a SAML signing certificate in Entra ID without breaking SSO.
- Windows domain services: Kerberos, with NTLM reduced and RC4 disabled. Do not extend Kerberos to cloud-native workloads.
- Service mesh or internal APIs: mTLS with automatically issued certificates, ideally carrying SPIFFE IDs so the identity format is the same across platforms.
- Workloads crossing clouds or clusters: SPIFFE federation, or cloud workload identity federation using OIDC tokens. See the Cloud Workload Identity Guide.
- Small organisations: rely on the identity provider and cloud platform's built-in OIDC and workload identity rather than running a CA or SPIRE; the operational cost of PKI is the deciding factor.
Migration paths
- Inventory: list every application and service by protocol, subject type, trust anchor and credential lifetime. Flag static secrets and long-lived certificates.
- SAML to OIDC: move applications as they are upgraded, running both against the same IdP; test claim mapping in a pilot group and keep the SAML trust until sign-in logs show no traffic, then remove it.
- Kerberos service accounts to workload identity: for services leaving the domain, replace password-based service accounts with managed identities or federated tokens; keep the account disabled for a rollback window before deletion.
- Static secrets to mTLS or SPIFFE: introduce automatic issuance alongside the existing API key, switch the client, then revoke the key. Run verification in permissive mode first where the mesh supports it, then enforce.
- Bearer to bound tokens: for high-value APIs, require certificate-bound (RFC 8705) or DPoP-bound tokens once clients support it.
Detection and measurement
- Kerberos: watch service ticket requests using RC4 and unusual ticket volume per account (Windows event ID 4769) and TGT requests (4768).
- SAML and OIDC: alert on changes to federation trusts, token-signing certificates and client registrations; flag tokens whose issuer or audience does not match the expected values.
- mTLS and SPIFFE: log certificate and SVID issuance with the attested selectors, and alert on issuance to unexpected workloads.
| Metric | Target direction |
|---|---|
| Share of service-to-service calls authenticated with proof-of-possession credentials | Rising |
| Applications still on SAML or password-based service accounts with no migration date | Falling |
| Median workload credential lifetime | Falling, ideally hours |
| Trust anchors (signing keys, CAs) with documented rotation in the last 12 months | 100% |
| Kerberos tickets issued with RC4 | Zero |
Framework mapping
| Area | Mapping |
|---|---|
| Authenticating users | NIST SP 800-53 IA-2, IA-8; NIST CSF 2.0 PR.AA-03 |
| Authenticating services and devices | NIST SP 800-53 IA-9 Service Identification and Authentication, IA-3 Device Identification and Authentication |
| Managing keys, certificates and secrets | NIST SP 800-53 IA-5 Authenticator Management; NIST CSF 2.0 PR.AA-01 |
| Session and transport protection | NIST SP 800-53 SC-23 Session Authenticity, SC-8 Transmission Confidentiality and Integrity |
| Threats to watch | ATT&CK T1558, T1558.003, T1550.003, T1606.002, T1550.001, T1552.004 |
Practitioner checklist
- Record each system's protocol, subject type, trust anchor and credential lifetime in one inventory.
- Use OIDC with the authorisation code flow for new human-facing applications.
- Never use SAML or interactive flows for workloads; use federated OIDC tokens, mTLS or SPIFFE.
- Validate issuer, audience, expiry and signature on every SAML assertion, ID Token and JWT-SVID.
- Protect and rotate every trust anchor: krbtgt, token-signing certificates, JWKS keys, CAs and trust bundles.
- Automate certificate and SVID issuance; ban hand-issued long-lived service certificates.
- Bind tokens for high-value APIs with mTLS (RFC 8705) or DPoP.
- Disable RC4 for Kerberos and move domain service accounts to managed accounts.
Standards and references
- IETF: RFC 4120 The Kerberos Network Authentication Service (V5)
- OASIS: Assertions and Protocols for the OASIS Security Assertion Markup Language (SAML) V2.0
- OpenID Foundation: OpenID Connect Core 1.0
- IETF: RFC 8705 OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens
- SPIFFE: SPIFFE Identity and Verifiable Identity Document
- SPIFFE: The X.509 SPIFFE Verifiable Identity Document
- SPIFFE: The JWT SPIFFE Verifiable Identity Document
- NIST: SP 800-53 Rev. 5, Security and Privacy Controls
Related NHI Mgmt Group resources: SAML vs OIDC Guide, LDAP vs SAML vs OIDC, Mutual TLS vs TLS, SPIFFE and SPIRE Guide, Federation and Trust Relationships Guide.