Join our Newsletter — 33% off our NHI Course
Home› Guides› Identity Provider and SSO Security Guide
Guide Identity & Access Management (IAM)

Identity Provider and SSO Security Guide

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 24 October 2026 14 min read
On this page

The identity provider (IdP) is the front door to almost everything, and whoever controls it can sign in as anyone. Single sign-on (SSO) means one login grants access to hundreds of applications, which is good for users and for control, and makes the IdP one of the most valuable targets an attacker can reach. A compromised administrator, a stolen session token, a forged assertion or a rogue federation trust can turn one foothold into access across the enterprise. This guide explains how SSO and federation work, how identity providers are attacked, and how to harden the IdP's administrators, authentication, sessions, recovery, integrations and monitoring. It is written for IAM engineers, IdP administrators, security architects and the detection teams who watch identity logs.

Key takeaways

  • The IdP is a tier-zero system. Protect its administrators, signing keys, federation settings and policies as carefully as domain controllers, because each one can mint access to every connected application.
  • Attackers target sessions, recovery and trust, not just passwords. Adversary-in-the-middle phishing, cookie theft, MFA fatigue, help desk resets and added federation trusts all bypass a strong password.
  • Phishing resistance is now the baseline. NIST SP 800-63B-4 requires verifiers to offer at least one phishing-resistant option at AAL2 and requires phishing resistance at AAL3; start with administrators.
  • Relying parties share the risk. Applications must validate issuer, audience, signature and replay protections; the Storm-0558 investigation found a mail system that skipped issuer and scope validation.
  • Machine and agent identities live in the IdP too. App registrations, SCIM tokens, service accounts and AI agents need owners, least privilege and monitoring, because attackers use them for persistence.

How SSO and federation work

In SSO the IdP authenticates the user once and then vouches for them to each relying party (RP), usually a SaaS or internal application. Each protocol has different trust anchors and failure modes.

MechanismWhat it doesWhat an attacker wants
OpenID Connect (OIDC)IdP issues a signed ID token; the RP validates iss, aud, signature, expiry and nonceStolen tokens, weak redirect URI handling, RPs that skip validation
SAML 2.0IdP sends a signed XML assertion to the service providerThe token-signing certificate, or a new trust they control (Golden SAML)
OAuth 2.0Delegated access tokens and refresh tokens for APIsLong-lived refresh tokens, over-broad consented scopes
Federation trustsOne IdP accepts authentication from another (partner, subsidiary, on-premises)An attacker-controlled source IdP that can assert any user
SCIM provisioningCreates, updates and removes accounts in applicationsThe SCIM bearer token, which can create privileged accounts
SessionsCookies and refresh tokens at the IdP and each app avoid repeated loginsSession cookies that can be replayed from another device

OIDC Core states that the issuer identifier "MUST exactly match" the iss claim and that the client must check that aud contains its client_id. The OAuth 2.0 Security Best Current Practice (RFC 9700) says public clients must use PKCE, clients should not use the implicit grant, and refresh tokens for public clients must be sender-constrained or rotated. NIST SP 800-63C-4 defines federation assurance levels: at FAL2 the assertion must be strongly protected from injection and audience-restricted to a single RP; at FAL3 the RP also verifies a holder-of-key assertion or bound authenticator, which "protects against the possibility of a compromised IdP". See the OAuth 2.0 and OpenID Connect Guide, the SAML Security Guide and the Federation and Trust Guide.

How identity providers are attacked

TechniqueMITRE ATT&CKIllustrationPrimary control
Help desk social engineeringSocial engineering, not a single techniqueOkta reported callers persuading service desks to reset all MFA factors of Super AdministratorsStrong verification for resets; phishing-resistant recovery
MFA fatigueT1621 Multi-Factor Authentication Request GenerationUber said a contractor was flooded with 2FA requests until one was acceptedNumber matching, then phishing-resistant MFA
Adversary-in-the-middle phishing and cookie theftT1539 Steal Web Session CookieProxy frameworks such as Evilginx2 capture cookies after MFAFIDO2 or passkeys; token binding
Rogue federation trustT1484.002 Trust ModificationScattered Spider added a federated IdP with automatic account linking (CISA)Restrict IdP creation; alert on trust changes
Forged SAML tokensT1606.002 Forge Web Credentials: SAML TokensGolden SAML after AD FS compromise (CISA AA21-008A)Protect signing keys in HSMs; correlate SP logins with IdP events
Signing key theft and weak validationT1606Storm-0558 forged tokens with a consumer signing keyKey isolation; RP issuer and scope validation
Hybrid identity and policy tamperingT1556.007 Hybrid Identity, T1556.009 Conditional Access PoliciesOkta saw attackers remove second-factor requirements from policiesProtected admin actions; policy change alerts

Incidents show how these play out:

  • Help desk resets: in the MGM Resorts Breach 2023, the attackers claimed (via vx-underground, as reported by SecurityWeek) that they found an employee on LinkedIn and called the help desk. In the Caesars Entertainment Breach 2023, Caesars confirmed social engineering of an outside IT vendor. See the Account Recovery and Help Desk Security Guide.
  • MFA fatigue: the Uber Breach 2022 began with a contractor's stolen password and repeated push prompts.
  • Signing key theft: in the Microsoft Storm-0558 Key Breach 2023, Microsoft's leading hypothesis is that key material left the signing environment in a crash dump and was taken from a compromised engineer's account; the mail system then accepted tokens because developers "did not add the required issuer/scope validation".
  • Vendor support compromise: in the Okta Support System Breach 2023, Okta says files associated with 134 customers, some of them HAR files containing session tokens, were accessed through a service account whose credentials had been saved to an employee's personal Google profile.
  • Platform flaws: the Entra ID Actor Token Flaw 2025 (CVE-2025-55241) let a researcher impersonate any user, including Global Admins, in other tenants; the tokens were not subject to Conditional Access and requesting them generated no logs.
  • Golden SAML: in the SolarWinds Supply Chain Compromise, CISA described forged authentication tokens used to add credentials to service principals in Microsoft cloud tenants.

Hardening the IdP

Administrators

  • Keep IdP administrators few; use scoped custom admin roles rather than Super Administrator or Global Administrator for daily work.
  • Use separate, cloud-only admin accounts with phishing-resistant MFA (FIDO2 security keys or device-bound passkeys) from managed devices.
  • Make privileged roles just-in-time with approval; Okta recommends "dual authorization for JIT" access to more privileged roles. See the JIT Access Guide.
  • Require re-authentication for sensitive admin actions (for example Okta Protected Actions) and restrict who can create identity providers.
  • Constrain help desk roles so they cannot reset factors on administrator groups.
  • Maintain tested break-glass accounts outside normal policies. See the Break-Glass Account Guide.

Authentication

  • Enforce MFA for all users and block legacy protocols that bypass it.
  • Move to phishing-resistant authenticators. CISA calls phishing-resistant MFA "the gold standard"; NIST SP 800-63B-4 (final, July 2025) states that OTP and out-of-band methods are not phishing-resistant. See the Phishing-Resistant MFA Guide and the Passwordless and Passkeys Guide.
  • Where push remains, use number matching, which CISA recommends as an interim control against push bombing.
  • Use risk-based policies: device compliance, network, impossible travel and sign-in risk.

Sessions and tokens

Level (NIST SP 800-63B-4)Overall reauthentication timeoutInactivity timeoutPhishing resistance
AAL2Should be no more than 24 hoursShould be no more than 1 hourAt least one option must be offered
AAL3Shall be no more than 12 hoursShould be no more than 15 minutesRequired, with a non-exportable private key
  • Shorten sessions for admin consoles and sensitive applications; Okta advises admin console policies requiring re-authentication "at every sign-in".
  • Bind sessions to devices or networks: Microsoft Entra Token Protection accepts only device-bound sign-in session tokens for supported apps, and Okta offers ASN and IP session binding for admin apps.
  • Use continuous access evaluation so that password resets, account disablement and network changes revoke access in near real time rather than at token expiry.
  • Revoke sessions on password reset, factor change and suspicious activity. See the Token and Session Security Guide.

Recovery and help desk

  • Require strong verification for factor resets and recovery: visual or video verification, manager confirmation or in-person checks for privileged users.
  • Start self-service recovery with the strongest available authenticator and limit it to trusted networks, as Okta recommends.
  • Notify users of new devices and factor changes, and alert when a reset is followed by a sign-in from a new device or proxy.

Federation, keys and applications

  • Inventory federation trusts, signing certificates and application integrations; remove unused ones.
  • Store signing keys in hardware where possible; NIST SP 800-63C-4 requires federal IdPs at FAL2 or higher to protect signing keys with FIPS 140 validated mechanisms.
  • Alert on any change to federation settings, token lifetimes or signing certificates.
  • Limit which apps can request which scopes; review admin-consented apps. See the SaaS and OAuth App Governance Guide.

Non-human identities and AI agents in the IdP

The IdP also holds machine identities that are as powerful as admins and far less watched: app registrations with client secrets or certificates, SCIM provisioning tokens, API tokens for automation and service accounts used by integrations. The Okta support breach turned on one such service account. Treat each as a privileged identity with an owner, a purpose, least-privilege scopes, short-lived credentials where supported and alerts on new credentials. See the SCIM Provisioning Guide.

AI agents add a new class. The OpenID Foundation's 2025 whitepaper on agentic AI identity finds that existing SSO and user management tools can support today's simple agents, but that more autonomous agents acting across organisational boundaries will strain current frameworks. Vendors are adding agent-specific constructs: Microsoft Entra Agent ID, for example, gives agents identities to which Conditional Access, risk detection and lifecycle governance can apply. Practical rules: register each agent as its own identity, never let it reuse a human session, prefer delegated tokens that record both user and agent, and keep agent token lifetimes short. See the Agentic AI Identity Guide.

Detection and monitoring

Stream IdP system and audit logs to your SIEM and ITDR tooling, retain them long enough for investigations, and alert on the events below. Okta's own investigation of its support breach found a 14-day detection gap because file downloads produced a different log event type than expected, so test that every alert fires on real events.

EventWhy it mattersExample source
All MFA factors reset for a user, especially an adminHelp desk social engineering patternOkta user.mfa.factor.reset_all
New identity provider or federation trust created or modifiedPersistence and impersonation of any userOkta system.idp.lifecycle.*; AD FS event 307 with 510
SP logins with no matching IdP authenticationPossible forged SAML tokensCISA AA21-008A Detection Method 1
Admin console access from a new IP and new device, or via anonymising proxyHijacked or social-engineered adminIdP sign-on policy evaluation logs
Session used from a different network or deviceCookie or token replayOkta security.session.detect_client_roaming; Entra risk detections
Admin role assignment, policy change, new app credentialPrivilege escalation and persistenceIdP audit log

See the ITDR Guide.

Framework mapping

This is an indicative NHI Mgmt Group alignment, not an official mapping. Control IDs were checked against NIST CSWP 29 (CSF 2.0), the NIST SP 800-53 Rev. 5 OSCAL catalogue, the CIS Controls assessment specification and a published ISO/IEC 27001:2022 Annex A list.

Control areaNIST CSF 2.0NIST SP 800-53 Rev. 5ISO/IEC 27001:2022 Annex ACIS Controls v8.1
IdP administrator protectionPR.AA-05AC-2(7), AC-6(5), IA-2(1)A.8.2, A.8.55, 6
Phishing-resistant authenticationPR.AA-03IA-2, IA-2(8)A.8.56
Assertions, federation and signing keysPR.AA-04IA-8, SC-12, SC-23A.5.17, A.8.246
Sessions and reauthenticationPR.AA-03AC-12, IA-11A.8.54, 6
Recovery and help desk verificationPR.AA-02IA-5, IA-12A.5.175
Integrations and non-human identitiesPR.AA-01IA-9, AC-6A.5.16, A.5.185, 6
Identity monitoringDE.CM-03AU-6, AC-2(12), SI-4A.8.15, A.8.168

Common failure patterns

  • Strong login, weak recovery: phishing-resistant MFA at sign-in, but a help desk can reset it after a phone call. This is the Scattered Spider pattern CISA describes.
  • Admins on ordinary accounts: Super Administrator rights on a user's everyday identity, signed in from unmanaged devices.
  • Federation nobody watches: the ability to add an identity provider is unrestricted and generates no alert, so an attacker can quietly assert any user.
  • Relying parties trusting too much: apps that accept any validly signed token without checking issuer, audience or scope, as in Storm-0558.
  • Bearer sessions everywhere: long-lived cookies and refresh tokens with no device binding, so one stolen HAR file or infostealer log is enough.
  • Logs that miss the path used: detections tuned to one event type while the attacker generates another, as in Okta's 14-day gap.
  • Integration credentials without owners: SCIM tokens and app secrets created years ago with broad scopes and no rotation.

Metrics that show progress

MetricWhat it showsTarget direction
Administrators using phishing-resistant MFA from managed devicesTier-zero protectionUp, to 100%
Users enrolled in phishing-resistant authenticatorsExposure to AiTM and push fatigueUp
Standing Super Administrator or Global Administrator assignmentsAttack surface of the IdPDown
Privileged factor resets with documented strong verificationHelp desk resilienceUp, to 100%
Federation trusts and app integrations with a named owner, reviewed in 12 monthsTrust hygieneUp
Applications on legacy authentication or without SSOGaps outside IdP policyDown
Median time from factor reset or trust change to analyst reviewDetection speedDown

Implementation roadmap

PhaseActionsExit criteria
First 30 daysInventory admins, federation trusts, signing certificates, app registrations and SCIM tokens; move admins to separate accounts with FIDO2; restrict IdP creation; turn on alerts for factor resets and trust changesAll admins phishing-resistant; tier-zero alerts live and tested
Days 31 to 90Harden help desk verification; enable number matching; block legacy authentication; bind admin sessions; enable continuous access evaluation; JIT for top rolesNo standing top-level admin except break-glass; recovery flow documented and tested
Days 91 to 180Roll out passkeys or FIDO2 to all users; review relying party validation; assign owners to integrations and agents; rotate or remove stale app credentials; run a help desk social engineering exerciseMetrics trending; integrations owned; exercise findings closed

Practitioner checklist

  • Treat the IdP as tier zero; minimise, separate and scope admin accounts.
  • Enforce phishing-resistant MFA for administrators now and plan it for all users.
  • Block legacy authentication; use number matching wherever push remains.
  • Require strong verification for factor resets and limit help desk roles over admins.
  • Restrict who can create identity providers and alert on every trust change.
  • Protect signing keys in hardware and alert on certificate or token lifetime changes.
  • Check that relying parties validate issuer, audience, signature and replay protections.
  • Shorten and bind sessions; enable continuous access evaluation.
  • Give every app registration, SCIM token and AI agent an owner and least-privilege scopes.
  • Stream IdP logs to detection tooling and test each identity alert.
  • Maintain tested break-glass access.

Standards and references

Related NHI Mgmt Group resources: Workforce Identity Security Guide · IAM and IGA Basics · IAM and IdP Buyer's Guide · Active Directory and Entra ID Hardening Guide · Okta Security Hardening Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 24 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.