Risk Detection and Risk Policies

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 11 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Managing Microsoft Entra Identity Protection: Risk Detection and Risk Policies

Introduction: Why Identity is the New Perimeter

In the modern digital landscape, the traditional network perimeter—defined by firewalls and physical office locations—has effectively dissolved. With the rise of cloud computing, remote work, and mobile devices, the primary point of access for any organization is now the user identity. Because identities are the new front line of defense, attackers have shifted their focus toward compromising credentials rather than hacking servers. This is why Microsoft Entra Identity Protection is a critical component of any security strategy.

Microsoft Entra Identity Protection allows organizations to automate the detection and remediation of identity-based risks. Instead of relying on static passwords or manual monitoring, this tool continuously analyzes signals from millions of sign-ins to identify suspicious behavior. By understanding how users typically interact with your systems, it can flag anomalies and trigger automated responses. This lesson will guide you through the mechanics of risk detection, the configuration of risk policies, and the operational best practices required to secure your environment effectively.

Not read yet

Understanding the Anatomy of Identity Risk

To manage identity protection, you must first understand what constitutes a "risk." Microsoft Entra ID categorizes threats into two primary buckets: user risk and sign-in risk. While these terms are often used interchangeably in casual conversation, they represent distinct concepts that trigger different defensive mechanisms.

Sign-in Risk

Sign-in risk represents the probability that a specific authentication request is not authorized by the legitimate owner of the identity. This is a "point-in-time" calculation. When a user tries to sign in, Microsoft’s security engine evaluates the context of that specific request. Factors include the IP address, the device being used, the geographical location, and the time of day. If the system detects something out of the ordinary—such as a sign-in from a country the user has never visited or a login attempt from an anonymous proxy—it assigns a risk level of Low, Medium, or High to that specific event.

User Risk

User risk is a broader, persistent state. It represents the probability that a user’s account has been compromised over a period of time. This is calculated based on historical sign-in risks and other signals, such as leaked credentials found on the dark web. If a user’s credentials appear in a public database breach, their user risk level will increase because the likelihood of their account being compromised is now significantly higher. Unlike sign-in risk, which applies to a single event, user risk follows the account until the threat is remediated.

Callout: Risk Levels Explained Microsoft Entra Identity Protection assigns risk scores (0-100) to both sign-ins and users. These scores are translated into three levels: Low, Medium, and High. These levels are the building blocks for your automated policies. For instance, a "High" risk sign-in might trigger an immediate block, whereas a "Low" risk sign-in might only require a Multi-Factor Authentication (MFA) prompt.

Not read yet

Types of Risk Detections

Microsoft Entra ID uses advanced machine learning to detect various types of malicious activity. Understanding these detection types is essential for interpreting reports and tuning your security policies.

  • Atypical Travel: This detection occurs when a user signs in from two locations that are geographically distant within a timeframe that makes physical travel between them impossible. For example, a user logging in from New York and then from London thirty minutes later.
  • Unfamiliar Sign-in Properties: This is triggered when a user logs in from a device, browser, or location that they have not used recently. While this is often a false positive during travel or when a user buys a new laptop, it is a high-value signal for identifying account takeover attempts.
  • Anonymous IP Address: Attackers often use Tor browsers or VPNs to mask their true identity. A sign-in originating from an IP address identified as an anonymous proxy or exit node is automatically tagged as suspicious.
  • Malware Linked IP Address: This occurs when a sign-in originates from an IP address known to be actively involved in botnet communications or malware distribution.
  • Leaked Credentials: Microsoft continuously monitors public and private databases for credentials leaked in data breaches. If your user's username and password appear in one of these leaks, this detection is triggered.

Note: It is important to remember that these detections are not always definitive proof of an attack. They are signals that represent an increased probability of compromise. The goal of your configuration should be to balance security with user convenience, ensuring that legitimate users aren't locked out due to minor anomalies.

Not read yet

Configuring Risk Policies

Risk policies are the "if-then" rules that govern how your organization handles detected threats. There are three primary policies you should configure in the Microsoft Entra admin center: User Risk Policy, Sign-in Risk Policy, and Multi-Factor Authentication (MFA) Registration Policy.

1. User Risk Policy

The User Risk Policy is designed to protect accounts that have been deemed compromised. You should configure this to require a password reset when the user risk level reaches a certain threshold.

Step-by-Step Configuration:

  1. Sign in to the Microsoft Entra admin center.
  2. Navigate to Protection > Identity Protection > User risk policy.
  3. Under Assignments, select the users or groups to whom this policy applies. It is best practice to start with a pilot group before applying it to the entire organization.
  4. Under Conditions, select the risk level (e.g., High).
  5. Under Controls, select Allow access but check the box for Require password change.
  6. Set the policy to On and save.

2. Sign-in Risk Policy

The Sign-in Risk Policy addresses the risk associated with a specific authentication event. This policy is highly effective at stopping credential stuffing attacks.

Step-by-Step Configuration:

  1. Navigate to Protection > Identity Protection > Sign-in risk policy.
  2. Define the scope of users.
  3. Under Conditions, select the sign-in risk level (e.g., Medium or High).
  4. Under Controls, select Require multi-factor authentication. This ensures that even if an attacker has the correct password, they cannot complete the login without the second factor.
  5. Set the policy to On and save.

3. MFA Registration Policy

This policy is often overlooked, but it is the most critical for self-service remediation. If a user is flagged for risk and needs to perform an MFA challenge to unlock their account, they must already be registered for MFA. This policy forces users to register for MFA if they haven't already.

Tip: Always exclude your Break-Glass (Global Administrator) accounts from these policies during initial testing to ensure you don't lock yourself out of the tenant.

Not read yet

Practical Implementation: The "Block" vs. "MFA" Strategy

A common debate among security administrators is whether to block access entirely or simply require MFA when a risk is detected. The answer depends on your organization's risk tolerance and the sensitivity of the data being accessed.

The "MFA Challenge" Approach

This approach is user-friendly. It allows the user to prove their identity through a second factor, which serves as a friction point for attackers. If an attacker has compromised a password, they likely do not have access to the user's mobile device or hardware token. This is the recommended approach for most enterprise environments.

The "Block Access" Approach

This approach is more restrictive and is generally reserved for High risk events. If a sign-in is coming from a known malicious IP or shows multiple signs of compromise, blocking the access entirely is the safest path.

Risk Level Recommended Action Justification
Low None or MFA Low level risks are often false positives.
Medium MFA Required Provides a good balance of security and usability.
High Block or Mandatory Reset High risk indicates a high probability of compromise.

Not read yet

Handling False Positives and Tuning

No automated security system is perfect. You will inevitably encounter false positives, where a legitimate user is blocked or prompted for MFA because they are traveling or using a new device. Effectively managing these incidents is part of the job.

Investigating Alerts

When a user complains about being blocked, navigate to the Risky users or Risky sign-ins report in the Microsoft Entra admin center. You can view the specific detections that led to the risk score. If you determine the activity was legitimate, you can manually dismiss the risk.

To dismiss a risk:

  1. Go to the Risky users report.
  2. Select the user in question.
  3. Click on the Dismiss user risk button in the top menu.
  4. Provide a justification for the audit log (e.g., "User was traveling to a new office location").

Warning: Be cautious about dismissing risks too frequently. If you dismiss a risk without verifying the user's activity, you may inadvertently leave a compromised account active in your environment. Always perform a quick verification, such as a brief chat or phone call, before dismissing a high-risk alert.

Not read yet

Integration with Microsoft Defender XDR

Microsoft Entra Identity Protection does not operate in a vacuum. It is a core component of the broader Microsoft Defender XDR platform. When an identity risk is detected, that signal is shared across the entire security stack.

For example, if a user is flagged for high risk, Microsoft Defender for Endpoint might receive that signal and automatically isolate the user's laptop from the network. Similarly, Microsoft Defender for Cloud Apps can use that identity risk score to restrict access to sensitive SaaS applications like Salesforce or Microsoft 365. This cross-product correlation is what makes the platform powerful; a single signal from the identity layer can trigger a multi-layered defensive response.

Using Microsoft Graph API for Automation

For large organizations, manual management of every risk event is impossible. You can use the Microsoft Graph API to programmatically interact with identity risks. Below is a simple PowerShell example to list all users currently flagged as "High" risk:

# Install the Microsoft Graph module if not already installed
# Install-Module Microsoft.Graph -Scope CurrentUser

# Connect to the Graph API
Connect-MgGraph -Scopes "IdentityRiskEvent.Read.All", "IdentityRiskyUser.Read.All"

# Retrieve all users with a High risk level
$riskyUsers = Get-MgRiskyUser -Filter "riskLevel eq 'high'"

# Output the display names of the risky users
foreach ($user in $riskyUsers) {
    Write-Host "High risk user detected: $($user.UserDisplayName)"
}

This script can be scheduled to run as an Azure Function or an automated workflow, allowing your security operations center (SOC) to receive alerts directly in their ticketing system (like ServiceNow or Jira) rather than checking the admin console manually.

Not read yet

Best Practices for Identity Protection

To get the most out of Microsoft Entra Identity Protection, follow these industry-standard best practices:

  1. Start with "Report Only": When creating new policies, use the "Report Only" mode first. This allows you to see how many users would be affected by the policy without actually blocking them. Review the logs for a few days to ensure no legitimate business processes are interrupted.
  2. Enforce MFA for Everyone: Identity Protection is most effective when users are already enrolled in MFA. If a user isn't using MFA, the "Require MFA" control in your risk policy will effectively turn into a "Block" policy, as the user will have no way to satisfy the challenge.
  3. Regularly Review Risky Sign-ins: Set a cadence—perhaps weekly—to review the "Risky sign-ins" report. Look for patterns. Are there specific regions or device types that are consistently triggering false positives? You can use Conditional Access "Named Locations" to whitelist trusted offices or VPN gateways to reduce these false triggers.
  4. Prioritize High-Risk Users: If you have limited staff, focus your remediation efforts on High-risk users first. Use the "Risky users" report to sort by risk level and focus on those that pose the greatest threat to your organization.
  5. Educate Your Users: Identity protection works best when users understand why they are being prompted for MFA. Send out communications explaining that these prompts are a security feature designed to keep their accounts safe. When users know that a random MFA prompt might mean someone is trying to access their account, they are more likely to report it to IT rather than just "approving" the request to make the notification go away.

Not read yet

Common Mistakes and How to Avoid Them

Even experienced administrators can fall into traps when managing identity risk. Here are the most common mistakes:

  • Setting the Policy to "All Users" Immediately: Never apply a new, aggressive risk policy to "All Users" at once. Always use a test group. If you make a mistake in the configuration, you could accidentally lock out your entire workforce, causing a massive support ticket spike.
  • Ignoring the "Leaked Credentials" Detection: Many admins treat "Leaked Credentials" as a low-priority alert. This is a mistake. If a user's password has leaked, they are essentially an open door for an attacker. Always force a password reset for users with leaked credentials.
  • Neglecting Account Cleanup: If you have service accounts or legacy accounts that are no longer in use, they are perfect targets for attackers. These accounts often don't have MFA enabled. Ensure that all service accounts are either secured with modern authentication or disabled entirely.
  • Not Monitoring the Audit Logs: The audit logs in the Microsoft Entra admin center provide a trail of every change made to your policies. If a security policy is suddenly changed, you need to know who did it and why. Regularly review these logs to ensure policy integrity.

Callout: The "Break-Glass" Account Rule Always maintain at least two cloud-only accounts with Global Administrator privileges that are excluded from Conditional Access and Identity Protection policies. These accounts should have long, complex passwords stored in a secure, physical location (like a safe). If you misconfigure your policies and lock yourself out, these accounts are your only way back into the tenant.

Not read yet

Advanced Scenario: Orchestrating Remediation

In highly mature security environments, you might want to integrate Identity Protection with your Security Orchestration, Automation, and Response (SOAR) platform. For example, when a "High" risk user is detected, you could trigger a playbook that:

  1. Logs the event in your SIEM.
  2. Disables the user's account in Active Directory.
  3. Revokes all active refresh tokens for the user to force a re-authentication.
  4. Sends an automated message to the user via Microsoft Teams asking if they recognize the login.
  5. Only after the user confirms the activity is malicious, initiates a forced password reset.

This level of automation minimizes the "mean time to remediate" (MTTR) and allows your security team to focus on investigating the root cause rather than manually clicking through the admin portal.

Comparison: Entra ID Protection vs. Conditional Access

It is common to confuse Microsoft Entra Identity Protection with Conditional Access. While they work together, they have different roles.

Feature Microsoft Entra Identity Protection Conditional Access
Primary Focus Detecting compromised identities. Controlling access based on conditions.
Input Signals Risk scores, leaked credentials, behavior. Location, device state, app, user risk.
Function Triggers policies based on risk levels. Enforces rules like "Require MFA" or "Block."
Output Adjusts the "Risk" state of the user. Grants or denies access to a resource.

In essence, Identity Protection is the "intelligence" that calculates the risk, while Conditional Access is the "enforcer" that acts upon that risk. You use Identity Protection to identify the threat, and you use Conditional Access to block or challenge the user.

Not read yet

Summary: Key Takeaways for Success

To wrap up this lesson, here are the essential points you should carry forward in your role as a security administrator:

  1. Identity is the Perimeter: Assume that credentials will be compromised at some point. Your focus should be on detecting those compromises quickly and having automated policies in place to respond.
  2. Risk is Dynamic: Sign-in risk is a point-in-time check, while user risk is an ongoing state. Use both to build a defense-in-depth strategy.
  3. Automation is Essential: Manually reviewing every login is impossible. Use the built-in risk policies to automate the remediation of Low and Medium risk events, reserving manual intervention for High-risk scenarios.
  4. Registration is the Foundation: Your risk policies will fail if users are not registered for MFA. Make the MFA registration policy your first priority when deploying Identity Protection.
  5. Monitor, Tune, and Iterate: Security is not a "set and forget" process. Regularly review your reports for false positives, tune your exclusions, and stay updated on the latest detection capabilities provided by Microsoft.
  6. Protect the Admins: Always ensure your Global Administrators are excluded from automated policies until you have thoroughly tested them, and maintain emergency access accounts to prevent total lockout.
  7. Leverage the Ecosystem: Identity Protection is part of a larger whole. Ensure your identity signals are flowing into your SIEM or XDR platform to enable cross-product security orchestration.

By mastering these concepts, you transition from a reactive posture—where you wait for an incident to occur—to a proactive posture, where your environment is constantly defending itself against the most common and dangerous identity-based threats. Keep your policies clean, your logs audited, and your users educated, and you will significantly improve your organization's security posture.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.