Risky User Detection

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 10 read · keep scrolling

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

Lesson: Risky User Detection in Microsoft Entra Identity Protection

Introduction: The Changing Face of Identity Security

In the modern digital landscape, the traditional perimeter-based security model—where we rely on firewalls to keep attackers out—is no longer sufficient. Today, users access corporate resources from various locations, devices, and networks, often utilizing cloud-based applications that exist outside the physical office. This shift means that identity has become the new primary control plane for security. When an attacker compromises a user account, they effectively bypass traditional network defenses, gaining authorized access to your systems as if they were a legitimate user.

Microsoft Entra Identity Protection (formerly Azure AD Identity Protection) is a tool designed to address this specific threat. At its heart, it focuses on "Risky User Detection." This process involves continuously monitoring sign-in patterns, user behavior, and threat intelligence feeds to identify accounts that might have been compromised. By assigning a "risk level" to each user and sign-in event, organizations can move away from static, one-size-fits-all security policies toward dynamic, risk-aware access controls.

Understanding how to manage and respond to risky user detections is critical for any identity administrator. Without these automated systems, identifying a compromised account often relies on manual logs review or waiting for a user to report suspicious activity—both of which are usually too late to prevent a data breach. This lesson will guide you through the mechanics of how Microsoft Entra identifies risk, how you can configure automated responses, and the best practices for maintaining a secure identity environment.

Not read yet

Understanding the Mechanics of Risk Detection

To manage risk effectively, you must first understand the two distinct types of risk monitored by Microsoft Entra: Sign-in risk and User risk. While they are often mentioned together, they serve different purposes in your security architecture.

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 real-time assessment performed at the moment of sign-in. The system evaluates factors such as the IP address, the device, the browser, and the geographical location against historical patterns for that specific user. For example, if a user typically signs in from New York during business hours, a login attempt from a known malicious IP address in a different country at 3:00 AM will trigger a high sign-in risk score.

User Risk

User risk represents the probability that a user account has been compromised. Unlike sign-in risk, which looks at a single event, user risk is an aggregate score based on the history of suspicious activities associated with that account. If a user triggers multiple sign-in risks over a period of time, or if their credentials have been leaked on the dark web, the user risk score will increase. This score persists until the administrator or the user takes action to remediate the risk, such as resetting the password.

Callout: Real-Time vs. Aggregate Risk Sign-in risk is ephemeral; it applies to a single session and is evaluated at the point of entry. User risk is persistent; it reflects the cumulative security posture of an identity over time. Effective security policies must leverage both: blocking high-risk sign-ins in real-time while requiring remediation for users with elevated aggregate risk scores.

Not read yet

How Microsoft Entra Identifies Risks

Microsoft uses a combination of machine learning, heuristic analysis, and massive data sets to identify suspicious activity. Because Microsoft processes trillions of signals daily across its global infrastructure, it can identify patterns that would be invisible to an individual organization.

Key Detection Signals

  • Anonymous IP Address: Sign-ins from services known to hide the user's true location, such as Tor browsers or VPNs used for obfuscation.
  • Atypical Travel: Sign-ins from geographically distant locations within a timeframe that makes physical travel between those locations impossible.
  • Malware-Linked IP Address: Sign-ins originating from IP addresses known to be infected with malware or involved in botnet activity.
  • Leaked Credentials: Microsoft actively monitors the dark web and public databases for leaked username and password pairs. If it finds a match for an account in your directory, it flags the account as high risk.
  • Unfamiliar Sign-in Properties: Sign-ins that feature properties (like a new device or a browser) that the user has not used recently or ever before.

Note: Detection signals are constantly updated. Microsoft does not disclose the exact weight of every signal in its risk calculation to prevent attackers from gaming the system. Always assume the system is learning from global patterns, not just your specific tenant.

Not read yet

Implementing Risk-Based Conditional Access

The true power of Identity Protection is realized when you integrate risk detections with Conditional Access policies. Instead of simply logging the risk, you can force the system to take action.

Step-by-Step: Creating a Risk-Based Policy

  1. Navigate to the Entra Admin Center: Log in to the portal and head to "Protection" > "Identity Protection" > "User risk policies" or "Sign-in risk policies."
  2. Define Assignments: Select the users or groups to which this policy will apply. It is best practice to start with a pilot group before deploying to the entire organization.
  3. Configure Risk Levels: Choose the risk level threshold (Low, Medium, or High). Most organizations choose "Medium" or "High" to balance security with user friction.
  4. Set Controls:
    • Access: Allow access, require Multi-Factor Authentication (MFA), or block access entirely.
    • Remediation: If the user is flagged, you can require a password reset to clear the risk.
  5. Enable the Policy: Toggle the policy state to "On."

Practical Example: Blocking High-Risk Sign-ins

Imagine you want to ensure that no user can sign in if their risk level is "High." You would create a Sign-in Risk policy:

  • Assignment: All Users.
  • Condition: Sign-in risk level = High.
  • Access Control: Block access.

In this scenario, if an attacker attempts to use stolen credentials that have been flagged as leaked on the dark web, the system will instantly block the attempt, regardless of whether the attacker has the correct password.

Not read yet

Managing and Remediating Risky Users

Once a user is flagged as "at risk," they appear in the "Risky users" report within the Entra Identity Protection dashboard. As an administrator, you are responsible for investigating these users and ensuring they are remediated.

Investigation Workflow

When you see a user flagged as risky:

  1. Review the Risk History: Click on the user to see the specific events that triggered the risk. Was it an anonymous IP? Was it a leaked credential?
  2. Verify with the User: Reach out to the user via an out-of-band communication channel (like a phone call or a secure team chat) to ask if they recognize the login activity.
  3. Take Action: If the activity is confirmed as malicious, you must compromise the account. If the activity is a false positive (e.g., a developer using a VPN for legitimate testing), you can dismiss the risk.

Remediation Options

  • User Self-Remediation: If you have enabled self-service password reset (SSPR), the user can clear their own risk by changing their password. This is the most efficient way to handle common risks.
  • Administrator Remediation: You can manually reset the password, require MFA, or dismiss the user risk if you determine it is a false positive.

Warning: Do not automatically dismiss risks without investigation. Attackers often test accounts with "low" risk activity to see if they are monitored before launching a full-scale attack. Dismissing these signals can blind your security team to the "reconnaissance" phase of a breach.

Not read yet

Best Practices and Strategic Recommendations

Effectively managing identity risk is not a "set it and forget it" task. It requires an ongoing commitment to monitoring and policy refinement.

1. Adopt a Phased Rollout

Never apply a blocking policy to your entire organization at once. Start with a small IT group, then move to a broader set of users. This allows you to identify false positives—such as legitimate business tools that might look like "malware-linked IPs"—before they disrupt productivity.

2. Prioritize Self-Service

The goal of modern identity management is to empower users to secure their own accounts. Ensure that SSPR and MFA are registered for all users. When the system detects a risk, it can prompt the user to perform a password reset immediately, which resolves the issue without needing an administrator ticket.

3. Integrate with SIEM/SOAR

Microsoft Entra Identity Protection should not live in a vacuum. Export your risk logs to a Security Information and Event Management (SIEM) system like Microsoft Sentinel. This allows you to correlate identity risks with other security logs, such as endpoint activity or cloud application usage, providing a holistic view of the threat.

4. Regularly Review False Positives

Create a monthly cadence to review the "Dismissed" user list. If you find that a specific application or network location is consistently triggering false positives, you may need to update your Conditional Access exclusions or investigate if the application is behaving in a way that mimics malicious activity.

5. Monitor "Risky Sign-ins" vs. "Risky Users"

Focus your daily operational energy on "Risky Users" for remediation, but use "Risky Sign-ins" for threat hunting. If you notice a spike in risky sign-ins from a specific region, it might indicate a broader campaign targeting your industry, even if no individual user has yet crossed the threshold into a "Risky User" status.

Not read yet

Common Pitfalls and How to Avoid Them

Even experienced administrators can fall into traps when managing Identity Protection. Here are the most frequent mistakes:

  • Ignoring "Low" Risk: Many admins only focus on "High" risk. However, attackers often move slowly. A series of "Low" risk events is often a precursor to a "High" risk event. Set up alerts for "Medium" and "High" risk, and occasionally audit the "Low" risk reports.
  • Over-relying on Default Policies: While Microsoft provides default policies, they are generic. You should customize them based on your organization's risk appetite. For example, a bank should have much stricter policies than a small non-profit.
  • Failing to Educate Users: If users don't understand why they are being prompted for MFA or why their account is locked, they will find ways to bypass security (like sharing passwords). Explain the importance of these protections to your staff.
  • Stale Account Management: Sometimes, high risk is triggered by service accounts or legacy accounts that are no longer used. These accounts are prime targets for attackers. Regularly audit and disable unused accounts to reduce your attack surface.

Callout: The Role of MFA Multi-Factor Authentication (MFA) is the single most effective defense against identity-based attacks. Even if an attacker has a valid password (perhaps from a phishing site), they cannot bypass MFA. Identity Protection is the "intelligence" that decides when to demand that extra layer of security.

Not read yet

Comparing Risk Responses

Scenario Recommended Policy Rationale
Leaked Credentials Force Password Reset The password is known to be compromised; changing it is the only way to regain security.
Impossible Travel Require MFA This could be a false positive (VPN) or an attacker. MFA provides the necessary validation.
Anonymous IP Block Access There is rarely a legitimate business reason to hide one's IP address when accessing corporate resources.
Unfamiliar Sign-in Require MFA Validates that the user has physical possession of their registered device.

Scripting and Automation: The Graph API

While the portal is excellent for manual management, you will eventually need to automate your response to risk. Microsoft provides the Microsoft Graph API, which allows you to query risk data and trigger remediation actions programmatically.

Example: Querying Risky Users via PowerShell

You can use the Microsoft Graph PowerShell SDK to list all users currently flagged as "High" risk. This is useful for creating custom reports or sending alerts to a ticketing system.

# Connect to Microsoft Graph with necessary permissions
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 name and risk detail of the flagged users
foreach ($user in $riskyUsers) {
    Write-Host "User: $($user.UserDisplayName) | Risk Level: $($user.RiskLevel)"
}

Explanation of the code:

  • Connect-MgGraph: Establishes the connection to your tenant. Note that you need specific permissions (IdentityRiskEvent.Read.All) to access this data.
  • Get-MgRiskyUser: This cmdlet pulls the list of users currently tagged as risky. By using the -Filter parameter, we narrow the results to only those with a "high" status, keeping our data focused.
  • foreach loop: This allows you to iterate through the results and perform further actions, such as sending an email to the security team or adding the user to a "restricted" security group in another system.

Not read yet

Advanced Threat Hunting Scenarios

Once you have your policies in place, you can move toward proactive threat hunting. This involves looking for signs of an attack before the automated systems have triggered a full block.

Example: Identifying "Low-and-Slow" Attacks

Attackers sometimes perform "password spraying"—trying a common password against many accounts—at a very slow rate to avoid triggering mass-account-lockout policies. You can monitor the "Risky Sign-ins" report specifically for "Unfamiliar sign-in properties" across multiple user accounts within a short window. If you see 20 different users from the same unusual IP address (even if they are all "Low" risk), you are likely under a coordinated attack.

Example: Compromised Service Accounts

Service accounts are often neglected. If a service account is flagged for "Leaked Credentials," it is often because that account's credentials were hard-coded in an old script or a public GitHub repository. When you see a service account flagged, do not just reset the password; investigate where that account is being used and rotate the credentials in the source code or configuration file.

Not read yet

Key Takeaways

  1. Identity is the Perimeter: In modern cloud computing, protecting the identity is the primary way to stop attackers. Microsoft Entra Identity Protection provides the intelligence required to secure these identities.
  2. Risk is Multi-Dimensional: Use both sign-in risk (real-time) and user risk (aggregate) to build a layered defense. One protects the individual session, while the other protects the account history.
  3. Automation is Essential: Manually reviewing every login is impossible. Configure Conditional Access policies to automatically require MFA or block access based on risk levels to stop attacks in milliseconds.
  4. Remediation Must Be User-Centric: Enable Self-Service Password Reset (SSPR) so users can remediate their own low-level risks, reducing the burden on your help desk and improving security response times.
  5. Investigation is Required: Automated tools are not perfect. Always investigate high-risk incidents to ensure they are not part of a larger, more sophisticated attack, and keep an eye out for false positives that might be impacting productivity.
  6. Continuous Improvement: Review your policies regularly. As your business changes—for example, if you adopt a new work-from-home policy or integrate new cloud apps—your risk thresholds and exclusion lists will need to be updated.
  7. Data Integration: Use the Microsoft Graph API and SIEM integrations to feed identity risk data into your broader security operations. Identity risk is a critical signal that should be correlated with other security events across your entire organization.

By following these practices, you can effectively manage risky user detections, significantly reducing the likelihood of a successful account compromise. Remember that the goal is not to create a restrictive environment, but to build a smart, responsive security layer that protects your users while they remain productive. Security, when done correctly, should be invisible to the legitimate user and highly obstructive to the attacker.

Not read yet

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