Modern Identity Providers Under Attack: Tactics, Techniques, Detections and Mitigations

Anurag Khanna (Director, Digital Forensics and Incident Response (APAC) · CrowdStrike)

BSides Canberra VIII (2025) · Day 1 · Off-Main Track

Overview

In an era where identity has become the new perimeter, understanding how modern identity providers (IdPs) are being targeted is paramount for cybersecurity professionals. This talk, delivered by Anurag Khanna, Director of Digital Forensics and Incident Response (APAC) at CrowdStrike, delves into the sophisticated tactics, techniques, and procedures (TTPs) that threat actors are employing to compromise and persist within these critical systems. Khanna emphasizes that these attacks often exploit "features, not vulnerabilities," leveraging the inherent functionalities and configuration complexities of IdPs like Entra ID (formerly Azure Active Directory), Okta, and AWS Identity and Access Management (IAM). The presentation focuses heavily on Entra ID due to its pervasive adoption across enterprises, highlighting attack vectors that are increasingly prevalent among both nation-state and advanced e-crime groups.

Watch on YouTube

Visual summary for Modern Identity Providers Under Attack: Tactics, Techniques, Detections and Mitigations by Anurag Khanna
Visual summary for Modern Identity Providers Under Attack: Tactics, Techniques, Detections and Mitigations by Anurag Khanna

Key moments

  1. 0:00 Modern identity providers under attack: focus on Entra ID
  2. 2:50 Novel attack techniques against identity providers
  3. 6:00 Bypassing Conditional Access Policies (CAPs)
  4. 14:30 The infamous Golden SAML attack
  5. 20:30 Storm-0558: OAuth token forgery and key theft
  6. 28:00 Multi-tenant OAuth app secrets compromise
  7. 36:00 Abusing Temporary Access Passes (TAPs) for persistence

Modern Identity Providers Under Attack: Tactics, Techniques, Detections and Mitigations

Speakers: Anurag Khanna, Director, Digital Forensics and Incident Response (APAC), CrowdStrike

Conference: BSides Canberra

YouTube: https://www.youtube.com/watch?v=FA5jkFNnXU0

Overview

In an era where identity has become the new perimeter, understanding how modern identity providers (IdPs) are being targeted is paramount for cybersecurity professionals. This talk, delivered by Anurag Khanna, Director of Digital Forensics and Incident Response (APAC) at CrowdStrike, delves into the sophisticated tactics, techniques, and procedures (TTPs) that threat actors are employing to compromise and persist within these critical systems. Khanna emphasizes that these attacks often exploit "features, not vulnerabilities," leveraging the inherent functionalities and configuration complexities of IdPs like Entra ID (formerly Azure Active Directory), Okta, and AWS Identity and Access Management (IAM). The presentation focuses heavily on Entra ID due to its pervasive adoption across enterprises, highlighting attack vectors that are increasingly prevalent among both nation-state and advanced e-crime groups.

Khanna's unique vantage point from leading incident response efforts provides deep insights into real-world attack patterns. He goes beyond common initial access methods like password spraying and MFA fatigue, focusing on novel and increasingly common techniques. The talk meticulously unpacks how adversaries bypass conditional access policies, forge SAML and OAuth tokens, abuse trusted relationships between tenants and applications, and exploit various IdP features for persistence and privilege escalation. This article will dissect these advanced TTPs, outlining the technical mechanisms behind them and providing actionable defensive strategies to protect modern identity infrastructure.

The core message of the presentation is a stark reminder that robust security for modern IdPs requires more than just enabling basic features. It necessitates a deep understanding of how these systems are designed, how they interact, and critically, how their intended functionalities can be subverted by cunning adversaries. Defenders must adopt a proactive, analytical stance, scrutinizing configurations, monitoring for anomalous activities, and prioritizing the protection of foundational trust mechanisms to withstand the evolving threat landscape.

Background

▶ Watch: Modern identity providers under attack: focus on Entra ID (0:00)

The evolution of enterprise IT infrastructure has seen a significant shift from traditional on-premises Active Directory (AD) and Kerberos-based authentication to cloud-based identity providers. Modern organizations increasingly rely on centralized IdPs such as Entra ID, Okta, and AWS IAM to manage user identities, access to applications, and enforce security policies. This transition, while offering enhanced flexibility and scalability, has also introduced new attack surfaces and complexities. No longer is the network perimeter the sole focus; instead, identity has become the primary control plane for accessing critical resources.

Historically, attacks on identity systems often revolved around exploiting vulnerabilities in Kerberos or gaining control of domain controllers. While these still occur, the modern threat landscape is characterized by adversaries exploiting the inherent design and configuration nuances of cloud IdPs. As Khanna points out, many of the techniques discussed are not "zero-days" but rather "living off the land" methods that abuse legitimate functionalities. This paradigm shift means that defenders must understand not just how to patch vulnerabilities, but how to secure complex federation trusts, application integrations, and delegated administrative privileges. The tension between usability and security, a perennial challenge, often leads to configurations that, while convenient for users and administrators, inadvertently create pathways for sophisticated threat actors. The talk serves as a critical update on the contemporary methods used by threat actors, moving beyond initial access to focus on how they maintain persistence, escalate privileges, and move laterally within cloud-centric environments.

Key Findings

▶ Watch: Bypassing Conditional Access Policies (CAPs) (6:00)

Anurag Khanna's presentation uncovers several critical findings regarding the compromise of modern identity providers, emphasizing that attackers are increasingly sophisticated in their methods:

  • Bypassing Conditional Access Policies (CAPs): Threat actors are actively circumventing CAPs by exploiting configuration gaps such as excluded "break glass" accounts, spoofing user agents for legacy authentication exceptions, and leveraging or creating "trusted locations" (IP addresses) for unfettered access. Token replay attacks are also prevalent.
  • Abuse of SAML Federation Trusts: Adversaries are exploiting the fundamental trust model of SAML. This includes the infamous Golden SAML attack, where attackers steal an IdP's token signing certificate to forge valid SAML tokens, and the lesser-known but equally dangerous technique of adding malicious federation trusts to an existing IdP configuration (e.g., Entra ID) to mint their own tokens.
  • OAuth 2.0 / OIDC Token Forgery: The compromise of signing keys for JSON Web Tokens (JWTs) used in OAuth/OIDC flows allows attackers to forge authentication tokens. The Storm-0558 incident, involving a consumer signing key used to access enterprise Microsoft 365 accounts, exemplifies this threat.
  • Exploitation of Trusted Relationships: A significant portion of modern attacks leverage pre-existing technical trusts between organizations or applications. This includes:
  • Multi-tenant OAuth Application Compromise: Stealing application registration secrets from a "home tenant" allows access to all customer tenants that have integrated the application.
  • Delegated Admin Permissions (DAP) Abuse: Compromising a Cloud Solution Provider (CSP) tenant grants access to all its downstream customer Entra ID environments.
  • Cross-Tenant Synchronization Abuse: Attackers can push malicious accounts into victim tenants or establish persistent backdoors via B2B synchronization relationships.
  • Persistence and Evasion via IdP Features: Attackers are not just gaining initial access but actively manipulating IdP features for persistent access and to bypass security controls:
  • Temporary Access Pass (TAP) Abuse: Creating TAPs allows bypassing MFA and password changes for continued access.
  • MFA Configuration Manipulation: Adversaries configure their own MFA devices on dormant or newly compromised accounts to maintain access even after an organization attempts eviction.
  • Self-Service Password Reset (SSPR) Subversion: Changing recovery methods (phone numbers, emails) or leveraging SIM swapping attacks to reset user passwords.

These findings collectively underscore a critical shift in the attack landscape: modern identity providers, despite their advanced security features, are increasingly becoming targets for sophisticated attacks that exploit design assumptions and configuration gaps rather than traditional software vulnerabilities.

Technical Deep Dive

▶ Watch: The infamous Golden SAML attack (14:30)

The technical core of Khanna's talk reveals how adversaries meticulously dissect and subvert the functionalities of modern identity providers.

Conditional Access Policies (CAPs) Bypass

Conditional Access Policies (CAPs) are Microsoft Entra ID's mechanism for enforcing granular access controls, acting like a "bouncer" checking identity and context before granting a token. However, threat actors bypass them in several ways:

  1. Exclusions and Gaps: Organizations often create exceptions for "break-glass" accounts or legacy systems, which may not require Multi-Factor Authentication (MFA). Attackers target these accounts, knowing they can gain access without MFA.
  2. User Agent Spoofing: CAPs can enforce MFA based on the client's user agent. Legacy clients might be exempted. Attackers simply spoof their user agent to mimic an exempted client, bypassing MFA requirements.
  3. Trusted Locations: Many organizations configure "trusted IP locations" (e.g., corporate office IPs) where MFA is not enforced for usability. Attackers exploit this by:
  • Compromising a system within a trusted IP range, then using it as a jump box.
  • Gaining high-level administrative access to Entra ID, then adding their own malicious IP addresses to the trusted locations list for persistence.
  1. Token Replay Attacks: Once a user is authenticated and receives a token, CAPs typically do not re-evaluate access. Attackers use phishing kits like Evilginx to steal these valid session tokens, which can then be replayed to access applications without triggering further CAP checks.

Defenses include rigorous review of CAPs, eliminating trusted IP locations where possible, enforcing MFA for all accounts (including break-glass), and enabling Continuous Access Evaluation (CAE) for supported Microsoft applications to re-evaluate token validity during a session.

SAML Authentication Abuse

Security Assertion Markup Language (SAML) is fundamental to modern federation, relying on cryptographic signatures to establish trust.

The basic flow involves a user requesting access from a relying party (service provider), which redirects the user to an identity provider (IdP) for authentication. Upon successful authentication, the IdP issues a signed SAML token to the user, who then presents it to the relying party. The relying party verifies the token's signature using a pre-established federation trust and the IdP's public key.

Chained SAML authentication adds complexity, where a primary IdP delegates authentication to another trusted IdP. The fundamental weakness, as Khanna highlights, is that "everyone is trusting those SAML tokens that are being signed." If an attacker can forge a valid signature, they control access.

  1. Golden SAML Attack: Inspired by the Golden Ticket Kerberos attack, this involves an attacker compromising an IdP (e.g., ADFS), stealing its token signing certificate (private key). With this key, they can forge any SAML token for any user, granting arbitrary access to relying parties that trust that IdP.
  2. Adding a Federation Trust: More subtle, this attack requires the adversary to gain highly privileged access (e.g., Global Administrator in Entra ID). They then add a malicious federation trust configuration to the primary IdP. This effectively tells the primary IdP to trust an attacker-controlled "delegated identity provider." The attacker doesn't need to spin up a full ADFS server; they simply provide the public key part of their own certificate, then use their corresponding private key to forge SAML tokens from their laptop, which the primary IdP will happily sign or trust. Scattered Spider is noted for using this technique.

Defensive measures for SAML include protecting token signing certificates with Hardware Security Modules (HSMs), rigorously monitoring federation settings for any unauthorized changes, and reviewing Entra ID audit logs for configuration modifications related to federation.

OAuth 2.0 and OIDC Compromise

OAuth 2.0 is an authorization framework, not an authentication protocol. OpenID Connect (OIDC) extends OAuth 2.0 to provide identity, using JSON Web Tokens (JWTs). JWTs are signed, and their integrity relies on the underlying private key.

  1. JWT Forgery (Storm-0558): The Storm-0558 incident, attributed to a Chinese nation-state actor (now known as Antique Typhoon), demonstrated a critical compromise. Attackers stole a consumer-level signing key from Microsoft. This key, intended for consumer accounts, unexpectedly also validated JWTs for enterprise Entra ID accounts. This allowed the attackers to forge JWTs, granting them access to Microsoft 365 services, including Outlook emails, for numerous government organizations. The precise method of key theft remains a mystery, highlighting the extreme importance of safeguarding all signing keys.

Detection of such sophisticated forgery often relies on security analysts creating custom rules, like the "big yellow taxi" SIEM rule mentioned, which detected anomalous logins from unexpected IP addresses, showcasing the irreplaceable value of human analysis and well-tuned detection logic.

Trusted Relationship Compromises

These attacks exploit pre-existing technical trusts between organizations or applications, akin to advanced supply chain attacks.

  1. OAuth Application (Multi-tenant App) Compromise:
  • Multi-tenant apps are registered in a "home tenant" (the vendor's tenant) as an application registration (blueprint, identified by a GUID/App ID). When a customer uses the app, a service principal (local representation, identity, with an object ID) is created in their "consumer tenant." The service principal defines the app's permissions within the consumer tenant.
  • Attack 1 (Application Secret Theft): If an attacker compromises the "home tenant" and steals the application registration secrets, they can then use these secrets to authenticate as the application's service principal in all consumer tenants that have integrated the app. This provides broad access across multiple customer environments. Murky Panda (a prolific Chinese nation-state actor) is known for this.
  • Attack 2 (Persistence via Secrets): An attacker with administrative access to either the home tenant or a consumer tenant can add their own malicious application secrets to an existing application registration or service principal. This establishes a persistent backdoor, allowing them to impersonate the app or service principal later.

Defenses include rigorously protecting application credentials (e.g., storing them securely, rotating them), demanding vendors protect their secrets, and monitoring Entra ID audit logs for changes to application registrations and service principals. Google/Mandiant's strategy of analyzing session IDs and IP changes for anomalous logins is also relevant here.

  1. Delegated Admin Permissions (DAP) Abuse:
  • Microsoft's Cloud Solution Provider (CSP) model allows partners to manage customer Entra ID environments using DAP roles. While Microsoft has moved towards Granular Delegated Admin Privileges (GDAP), these can still be abused.
  • Attack 1 (CSP Tenant Compromise): An attacker compromises a CSP partner's tenant (often due to lax security, e.g., missing MFA on CSP accounts). Once in, they gain access to all downstream consumer tenants that the CSP manages via DAP roles. Since DAP assignments often remain active indefinitely unless manually removed, this provides persistent, broad access.
  • Attack 2 (Malicious CSP Tenant - "Dream Scenario"): Khanna describes a hypothetical but plausible attack where an adversary creates their own CSP tenant (a process that Microsoft vets) and then establishes DAP relationships with victim organizations. This would create a widespread, persistent backdoor across multiple environments.

Defenses require enforcing strong security, including MFA, for CSP accounts. Organizations must also regularly review and limit DAP assignments, removing unnecessary ones, and monitor audit logs for DAP-related activities in their own tenants.

  1. Cross-Tenant Synchronization Abuse:
  • This Entra ID feature allows a source tenant to automatically provision accounts into a target tenant (B2B synchronization).
  • Attack 1 (Pushing Malicious Accounts): An attacker compromises a source tenant that has a cross-tenant synchronization relationship with a victim tenant. They can then push attacker-controlled accounts into the victim tenant, bypassing traditional account creation and gaining access.
  • Attack 2 (Backdooring Victim Tenants): An attacker who gains initial access to a victim tenant can establish a B2B synchronization relationship with an attacker-controlled tenant. This creates a persistent backdoor, allowing them to push accounts or maintain access later.

Temporary Access Pass (TAP) Abuse

Temporary Access Pass (TAP) is an Entra ID feature for user onboarding or recovery, allowing administrators to generate a temporary code that bypasses password and MFA requirements.

Attackers abuse TAPs by:

  • Gaining administrative access to an environment.
  • Creating TAPs for existing users (or themselves) to bypass MFA and password changes, ensuring persistent access. TAPs can be configured for single-use or multiple uses, and for varying durations.

Defenses involve restricting who can create TAPs, limiting TAP validity (e.g., one-time use, very short duration), and robust monitoring of TAP creation and usage logs.

MFA Configuration Abuse

This technique focuses on manipulating MFA settings for persistence:

  • Attackers, after gaining initial access with valid credentials (e.g., from password spraying), might encounter MFA prompts. They then target dormant or new accounts that haven't yet configured MFA.
  • Upon initial login to such an account, the system prompts for MFA setup. The attacker configures their own MFA device (e.g., phone, authenticator app) for that account.
  • This grants them persistent access, even if the organization later enforces MFA across all accounts or attempts an eviction event. The attacker's compromised account now has MFA, making it harder to spot in broad sweeps for non-MFA-enabled accounts.

Defenses include aggressively disabling dormant accounts, regularly auditing all MFA configurations to ensure they link to legitimate user devices (e.g., one phone number per user), and scrutinizing new MFA registrations.

Self-Service Password Reset (SSPR) Subversion

SSPR allows users to reset their passwords without IT help, typically by verifying identity via email or phone.

Attackers exploit SSPR through:

  • Changing Recovery Methods: Gaining access to a user's account (e.g., via phishing) and changing their SSPR recovery phone number or email to an attacker-controlled one.
  • SIM Swapping: This increasingly common attack (used by groups like Scattered Spider) involves convincing a mobile carrier to transfer a victim's phone number to an attacker-controlled SIM card. This allows the attacker to receive SMS-based MFA codes or SSPR verification codes, enabling password resets and account takeovers.

Khanna explicitly states that SMS as a second factor is no longer sufficient due to the prevalence of SIM swapping. Stronger MFA methods (e.g., FIDO2 security keys, authenticator apps) should be prioritized.

AWS and Okta Parallels

While the talk primarily focuses on Entra ID, Khanna acknowledges that similar attack patterns exist in other major identity providers like Okta and AWS IAM. The underlying principles of exploiting federation trusts, application integrations, and administrative features are universal across these platforms, requiring similar vigilance and defensive strategies.

Demo / Proof of Concept

▶ Watch: Multi-tenant OAuth app secrets compromise (28:00)

Anurag Khanna's presentation is a detailed technical exposition of attack methodologies rather than a live demonstration or proof-of-concept. He describes the attacks conceptually and illustrates them with high-level diagrams, relying on real-world incident response observations from CrowdStrike. The talk does not include any live demos of these attacks being performed, nor does it present specific code or scripts used in a PoC. Instead, the focus is on explaining the "how" of the attacks based on documented threat actor TTPs.

Defensive Implications

▶ Watch: Abusing Temporary Access Passes (TAPs) for persistence (36:00)

The insights from this talk provide a critical roadmap for defenders to strengthen their modern identity infrastructure against sophisticated attacks. The core message is to assume compromise and build layers of defense, focusing on rigorous configuration, continuous monitoring, and robust incident response capabilities.

  1. Enforce Ubiquitous Multi-Factor Authentication (MFA): This is non-negotiable. MFA must be enforced for all accounts, including administrative accounts, "break-glass" accounts, and those used by Cloud Solution Providers (CSPs). Relying on SMS for MFA is no longer sufficient due to SIM swapping attacks; prioritize stronger methods like FIDO2 security keys or authenticator apps.
  2. Continuous Monitoring and Auditing of IdP Configurations:
  • Conditional Access Policies (CAPs): Regularly review CAPs to eliminate exceptions (e.g., trusted IP locations, legacy authentication protocols), ensure comprehensive MFA coverage, and enable Continuous Access Evaluation (CAE) where supported.
  • SAML Federation Settings: Implement strict monitoring for any changes to federation trusts, token signing certificates, or the addition of new identity providers. Protect token signing certificates with Hardware Security Modules (HSMs).
  • OAuth Application Registrations and Service Principals: Monitor for the creation of new application registrations or service principals, changes to existing ones, and the addition of new application secrets or credentials. Implement robust protection for application secrets, including secure storage and regular rotation.
  • Delegated Admin Permissions (DAP): Regularly audit and limit DAP assignments, ensuring that CSPs only have the minimum necessary privileges for the shortest possible duration. Remove any unused or outdated DAP relationships. Enforce strong security controls on your CSPs, including MFA.
  • Cross-Tenant Synchronization: Monitor for the establishment of new B2B synchronization relationships and the provisioning of new accounts via cross-tenant sync.
  • Temporary Access Pass (TAP) Policies: Restrict who can create TAPs, limit their validity to single-use and short durations, and actively monitor TAP creation and usage logs.
  • MFA and SSPR Settings: Regularly audit MFA configurations for all users to ensure legitimate devices are registered. Disable dormant accounts and ensure that Self-Service Password Reset (SSPR) policies are robust, avoiding SMS as a primary recovery method and monitoring for changes to user recovery information.
  1. Protect Privileged Access: Implement Privileged Access Management (PAM) solutions for administrative accounts across all IdPs. This includes just-in-time access, session monitoring, and strong authentication.
  2. Assume Compromise and Enhance Detection: Given the "living off the land" nature of these attacks, prevention alone is insufficient. Organizations must invest in robust detection capabilities. This means:
  • Comprehensive Logging: Ensure all relevant audit logs from Entra ID, Okta, AWS IAM, and other IdPs are collected and centralized in a Security Information and Event Management (SIEM) system.
  • Anomaly Detection: Develop and deploy detection rules (like the "big yellow taxi" rule) to identify anomalous login patterns, unusual IP addresses, changes in user agents, or unexpected administrative actions.
  • Threat Hunting: Proactively hunt for indicators of compromise (IOCs) related to these attack techniques within your IdP logs.
  1. Secure the Supply Chain and Third-Party Relationships: Extend security requirements to third-party vendors and partners (e.g., CSPs, SaaS providers). Demand evidence of their security posture and monitor their access to your environment.
  2. Incident Response Preparedness: Have well-defined incident response plans specifically for IdP compromise, including steps for eviction, credential rotation, and forensic analysis.

By implementing these defensive strategies, organizations can significantly reduce their attack surface and improve their resilience against the sophisticated identity-based attacks seen in the wild.

Key Takeaways

  • Identity is the New Perimeter: Modern adversaries are consistently targeting identity providers by exploiting features, not just vulnerabilities, making identity security paramount.
  • Comprehensive MFA is Non-Negotiable: Enforce Multi-Factor Authentication for all accounts, including administrative and "break-glass" accounts, and move beyond SMS-based MFA due to SIM swapping risks.
  • Monitor IdP Configurations Relentlessly: Continuously audit and monitor all identity provider settings, including Conditional Access Policies, SAML federation trusts, OAuth application registrations, Delegated Admin Permissions, and cross-tenant synchronization, for any unauthorized or anomalous changes.
  • Protect Signing Keys and Application Secrets: Safeguard token signing certificates (e.g., with HSMs) and OAuth application secrets with extreme prejudice, as their compromise can lead to widespread access and token forgery.
  • Prioritize Detection and Anomaly Hunting: Assume compromise and invest heavily in logging and anomaly detection capabilities. Custom SIEM rules and proactive threat hunting are crucial for identifying sophisticated attacks that bypass traditional preventive controls.
  • Scrutinize Third-Party Trust: Carefully review and limit the access granted to third-party partners (e.g., CSPs) and integrated applications, ensuring they adhere to stringent security standards and that their access is regularly audited and minimized.

About the Speaker(s)

Anurag Khanna is the Director of Digital Forensics and Incident Response (APAC) at CrowdStrike. In this role, he leads a team of incident response consultants across Australia, Singapore, and India, collaborating closely with global counterparts. This position provides him with a unique and invaluable vantage point into the real-world tactics, techniques, and procedures (TTPs) being employed by threat actors, ranging from sophisticated nation-state groups to advanced e-crime organizations. Khanna is also an instructor for the SANS Institute, where he teaches cybersecurity courses and holds various certifications, reflecting his deep expertise in the field. His talk at BSides Canberra draws directly from his extensive experience in responding to and investigating modern identity provider compromises, offering practical and current insights into the evolving threat landscape.

Reviews

  • Heather Calloway (CISO) — MUST SEE ★★★★★

→ Top-rated talks at BSides Canberra VIII (2025)

All talks from BSides Canberra VIII (2025)