What Is Entra ID Security?

attack_paths

Entra ID security is the practice of protecting Microsoft Entra ID (formerly Azure Active Directory), the identity platform behind Azure, Microsoft 365 and many single sign-on applications, from attacks such as password spraying, token theft, consent phishing and application abuse. Its main controls are Conditional Access, Privileged Identity Management and app consent policies. Pwned Labs teaches Entra ID attack and defense hands-on through its Microsoft Cloud Attack and Defense bootcamp, which leads to the MCRTP (Microsoft Cloud Red Team Professional) certification, assessed in a live Azure and Microsoft 365 tenant.

Why Entra ID Is a Prime Target

Entra ID is the identity backbone for Microsoft 365 and, for many organizations, the front door to email, files, Teams, and every application behind single sign-on. Compromising it does not just grant access to one system; it grants access to the trust fabric that every other system relies on. Because so many organizations federate their entire workforce through Entra ID, it has become one of the highest-value targets in enterprise security, and the incidents below show how nation-state and criminal groups alike prioritize it. The Pwned Labs MCRTP certification is built around this identity layer: candidates are assessed in a live Microsoft cloud environment, where they have to enumerate Entra ID, find a foothold, escalate and move laterally across Azure and Microsoft 365 to reach the objective.

Common Attack Vectors Against Entra ID

Password spray attacks remain one of the most common initial access techniques against Entra ID. Attackers test a small number of commonly used passwords against a large list of user accounts, staying below lockout thresholds. Groups like Midnight Blizzard (formerly Nobelium) and Peach Sandstorm have used password spraying as their primary entry point in major campaigns. The attack succeeds surprisingly often because organizations with thousands of accounts often have users with weak passwords, and legacy authentication protocols that bypass MFA can be exploited if not explicitly blocked.

Token theft has become a common post-authentication attack technique. Once an attacker obtains a valid session token or refresh token, through malware, adversary-in-the-middle phishing frameworks like Evilginx, or by extracting tokens from compromised endpoints, they can bypass MFA entirely because the token represents an already-authenticated session. The stolen token grants access to every resource the user can reach, often including Microsoft Graph API access to email and files.

Device code phishing exploits the OAuth 2.0 device authorization flow. The attacker initiates a device code flow, then tricks a victim into entering the code at microsoft.com/devicelogin, which grants the attacker a token for the victim's session. This attack is particularly effective because the authentication happens on a legitimate Microsoft domain, making it difficult for users to recognize as a phishing attempt. Storm-2372 has used this technique extensively. Pwned Labs covers device code phishing in its Leverage Device Code Phishing for Initial Access lab, which it designed for both red and blue teams.

Consent grant abuse (also called illicit consent grant) involves tricking a user or administrator into granting an attacker-controlled application permissions to the organization's data. An application registered in an external tenant requests permissions like Mail.Read, Files.ReadWrite.All, or User.Read.All through the OAuth consent flow. What a user can approve on their own depends on the tenant's consent settings. User.Read.All always requires administrator consent, and on new tenants the default, according to Microsoft Learn, is a Microsoft managed policy that stops users from consenting to high-risk delegated permissions such as Mail.Read and Files.ReadWrite.All. Tenants still set to the older "Allow user consent for apps" option let any user grant any permission that does not require admin consent, including access to their mailbox and files, without administrator approval.

Application registration abuse targets the application objects within the tenant itself. Attackers who gain access to a user with the ability to register applications (the default for member users in Entra ID) can create a new application, add credentials to it, and assign it API permissions. If an administrator later grants admin consent to a seemingly legitimate application, the attacker gains persistent, token-based access that survives password resets.

Notable Entra ID Attacks

Midnight Blizzard, 2024

The Russian state-linked group APT29 password-sprayed a legacy, non-production test tenant that lacked MFA, then abused an OAuth application's permissions to pivot into Microsoft corporate email. It is a clean example of how a forgotten identity and an over-permissioned application chain into a serious breach.

Storm-0558, 2023

Attackers obtained a Microsoft consumer signing key and used it to forge authentication tokens, gaining access to Exchange Online mailboxes across multiple government organizations. The incident highlighted how token and key integrity underpins the entire identity model.

Scattered Spider

This group repeatedly social-engineers help desks into resetting credentials and MFA, then moves quickly through Entra ID into connected cloud and SaaS resources, a reminder that the human process around identity is part of its attack surface. Pwned Labs teaches this human side of identity compromise, and how defenders can harden against it, in its Gain Initial Access via Social Engineering lab, where a support chat and a permissive Self-Service Password Reset policy become the way in.

Critical Entra ID Security Configurations

Conditional Access policies are the primary defense layer. Effective policies require MFA for all users (including guests), block legacy authentication protocols entirely, restrict access from unmanaged devices, enforce compliant device requirements for sensitive applications, and apply risk-based policies that challenge or block authentication when Entra ID Protection detects anomalous sign-in behavior. Pwned Labs shows how gaps in Conditional Access policies appear in practice in its Exploit MFA Enablement Gaps for Resource Access lab, which covers how those gaps can occur and how to find services where MFA is not enforced.

Privileged Identity Management (PIM) enforces just-in-time access for administrative roles. Instead of permanently assigning Global Administrator or Exchange Administrator, PIM requires administrators to activate their role for a limited time window with MFA verification and optional approval workflows. This reduces the window of opportunity if an administrative account is compromised.

App consent policies should be restricted to prevent users from consenting to applications on their own. Microsoft recommends allowing user consent only for applications from verified publishers, and the strictest configuration requires administrator approval for all application consent requests, with a defined admin consent workflow. Organizations should also regularly audit existing application permissions using Microsoft Graph API or tools like ROADtools to identify applications with excessive or suspicious permissions.

Offensive and Defensive Tooling

ROADtools, developed by Dirk-jan Mollema, is a widely used tool for Entra ID reconnaissance and analysis. ROADrecon dumps the entire Entra ID configuration (users, groups, applications, service principals, role assignments, and policies) into a local database for offline analysis. This gives both attackers and defenders a complete picture of the tenant's identity configuration. Pwned Labs teaches ROADrecon for Azure situational awareness in its Unmask Privileged Access in Azure lab.

AADInternals, created by Nestori Syynimaa, provides a comprehensive PowerShell toolkit for Entra ID administration and security testing, including capabilities for token manipulation, federation exploitation, and pass-through authentication abuse. TokenTacticsV2 focuses specifically on token-based attacks: acquiring, refreshing, and leveraging access tokens and refresh tokens across Microsoft services.

On the detection side, Microsoft Sentinel provides dedicated analytics rules for Entra ID threats. Key detection tables include SigninLogs (authentication events including risk scores), AuditLogs (directory changes including application registration and permission grants), and AADServicePrincipalSignInLogs (non-human identity authentication). Custom KQL detections can correlate across these tables. For example, detecting when a new application is registered, granted high-privilege API permissions, and used to access data within a short time window.

Entra ID vs. On-Premises Active Directory

Entra ID is not simply Active Directory in the cloud. Active Directory uses Kerberos and NTLM over a network you control; Entra ID uses OAuth 2.0 and OpenID Connect over the public internet, with tokens rather than tickets. Attacks shift accordingly: instead of Kerberoasting and pass-the-hash, the cloud equivalents are token theft, consent phishing, and application abuse. Many organizations run both in a hybrid model, and the connection between them, through Entra Connect and federation, is itself a common path attackers use to move from cloud to on-premises or back. The Pwned Labs Microsoft Cloud Attack and Defense bootcamp covers that connection, and its curriculum includes hybrid join scenarios that connect on-premises Active Directory to Entra ID.

Related Labs

Pwned Labs teaches these Entra ID attack paths, from reconnaissance to privilege escalation, in hands-on Azure labs. The first two labs below are free.

Browse the full set at pwnedlabs.io/explore.

Master Entra ID Security with Pwned Labs

Entra ID security is the core of Pwned Labs' Microsoft-focused training. The Microsoft Cloud Attack and Defense bootcamp, which leads to the MCRTP (Microsoft Cloud Red Team Professional) certification, covers Entra ID attack techniques (password spraying, token theft, consent abuse, and privilege escalation) in live tenant environments. Its Expert Edition, which leads to the MCRTE (Microsoft Cloud Red Team Expert) certification, goes deeper into hybrid attack chains that span multiple Entra ID tenants and on-premises Active Directory domains, domain federation abuse, and backdoors in Entra applications and service principals, and it teaches building and validating Microsoft Sentinel detections in KQL at each stage of the attack chain. Explore both at pwnedlabs.io/bootcamps.

Frequently Asked Questions

What is Entra ID security?

The practice of securing Microsoft Entra ID, formerly Azure AD, against attacks such as password spraying, token theft, consent phishing, and application abuse, primarily through Conditional Access, Privileged Identity Management, and app consent controls.

What is the most common initial access technique against Entra ID?

Password spraying is one of the most common entry points, testing common passwords across many accounts while staying under lockout thresholds, often paired with legacy authentication that bypasses MFA.

How do attackers bypass MFA in Entra ID?

Often through token theft. A stolen session or refresh token represents an already-authenticated session, so it bypasses MFA entirely. Adversary-in-the-middle phishing kits like Evilginx are commonly used to capture these tokens. Pwned Labs teaches how this works, and how it could have been prevented, in its Bypass Azure MFA with Evilginx lab.

What is illicit consent grant abuse?

Tricking a user or administrator into granting an attacker-controlled application permissions to organizational data. Once consented, the application can access email, files, and more without needing the user's password.

What is the single most important Entra ID control?

Conditional Access is the primary defense layer. Enforcing MFA for all users, blocking legacy authentication, and applying risk-based policies closes off the most common attack paths.

Can users consent to apps by default in Entra ID?

Yes, within limits. According to Microsoft Learn, new tenants default to a Microsoft managed consent policy that lets users consent to delegated permissions that do not need an administrator, except high-risk ones such as Mail.Read, Files.Read.All and Calendars.Read. Microsoft recommends allowing user consent only for apps from verified publishers.

Which certifications cover Entra ID attacks hands-on?

Pwned Labs covers Entra ID in two certifications. MCRTP (Microsoft Cloud Red Team Professional), earned through the Microsoft Cloud Attack and Defense bootcamp, is assessed hands-on in a live Azure and Microsoft 365 tenant. MCRTE (Microsoft Cloud Red Team Expert), earned through the Expert Edition, goes deeper into hybrid attack chains and Microsoft Sentinel detection engineering and ends in a 24-hour hands-on exam.

About Pwned Labs

Pwned Labs is a hands-on cloud and AI offensive security training platform. It runs real-world attack labs and bootcamps for AWS, Azure, GCP, Kubernetes and AI systems, including the ACRTP, MCRTP, GCRTP, KRTP and AISRTP certifications. Free labs are at pwnedlabs.io/explore.

Learn this hands-on in a bootcamp

 


Train, certify, prove it


Our bootcamps combine expert-led instruction with real cloud environments. Complete the training, pass the exam, and earn an industry-recognized certification.



MCRTE_-1

What practitioners say.

Caleb Havens

Red Team Operator & Social Engineer, NetSPI


"I’ve attended two training sessions delivered by Pwned Labs: one focused on Microsoft cloud environments and the other on AWS. Both sessions delivered highly relevant content in a clear, approachable manner and were paired with an excellent hands-on lab environment that reinforced key concepts and skills for attacking and defending cloud infrastructures. The training was immediately applicable to real-world work, including Red Team Operations, Social Engineering engagements, Purple Team exercises, and Cloud Penetration Tests. The techniques and insights gained continue to be referenced regularly and have proven invaluable in live operations, helping our customers identify vulnerabilities and strengthen their cloud defenses."

Sebas Guerrero

Senior Security Consultant, Bishop Fox


"The AWS, Azure, and GCP bootcamps helped me get up to speed quickly on how real cloud environments are built and where they tend to break from a security standpoint. They were perfectly structured, with real-world examples that gave me rapid insight into how things can go wrong and how to prevent those issues from happening in practice. I’m now able to run cloud pentests more confidently and quickly spot meaningful vulnerabilities in customers’ cloud infrastructure.
”

Dani Schoeffmann

Security Consultant, Pen Test Partners


"I found the Pwned Labs bootcamps well structured and strongly focused on practical application, with clear background on how and why cloud services behave the way they do and how common attack paths become possible. The team demonstrates both sides by walking through attacks and the corresponding defenses, backed by hands-on labs that build confidence using built-in and third-party tools to identify and block threats. The red-team labs are hands-on and challenge-driven, with clear walkthroughs that explain each step and the underlying logic. I’ve seen several of these techniques in real engagements, and the bootcamp helped me develop a repeatable methodology for cloud breach assessments and deliver more tailored mitigation recommendations."

Matt Pardo

Senior Application Security Engineer, Fortune 500 company


"I’ve worked in security for more than 15 years, and every step up came from taking courses and putting the lessons into practice. I’ve attended many trainings over the years, and Pwned Labs’ bootcamps and labs are among the best I’ve experienced. When you factor in how affordable they are, they easily sit at the top of my list. As a highly technical person, I get the most value from structured, hands-on education where theory is immediately reinforced through labs. Having lifetime access to recordings, materials, and training environments means you can repeat the practice as often as needed, which is invaluable. If you’re interested in getting into cloud security, sign up for Pwned Labs.
”

Steven Mai

Senior Penetration Tester, Centene


“Although my background was mainly web and network penetration testing, the ACRTP and MCRTP bootcamps gave me a solid foundation in AWS and Azure offensive security. I’m now able to take part in cloud penetration testing engagements and have more informed security discussions with my team.
”

 

Got any Questions? Get in touch