User Risk and Sign-In Risk Investigation

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

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

Lesson: User Risk and Sign-In Risk Investigation in Microsoft Entra ID

Introduction: The Modern Identity Perimeter

In the modern digital landscape, the traditional network perimeter has effectively dissolved. With the rise of remote work, cloud-first architectures, and mobile device usage, the identity of the user has become the new primary security boundary. Organizations can no longer rely solely on firewalls or VPNs to keep their data safe; instead, they must verify the legitimacy of every access request. Microsoft Entra Identity Protection serves as the intelligent layer within this framework, providing automated detection and remediation of identity-based threats.

Understanding the distinction between User Risk and Sign-In Risk is fundamental to mastering identity security. While they sound similar, they serve different purposes within your security posture. Sign-In Risk focuses on the immediate context of a single authentication event, while User Risk looks at the historical and behavioral patterns associated with a specific identity over time. By investigating these risks effectively, security teams can move away from reactive, manual password resets and toward a proactive, automated defense strategy.

This lesson explores how to identify, analyze, and remediate these risks within the Microsoft Defender XDR and Entra admin portals. Whether you are a security administrator, an identity architect, or an incident responder, mastering these tools is essential to protecting your organization from credential theft, account takeover, and unauthorized access.


Not read yet

1. Defining the Core Concepts: Risk Types

To investigate risks, you must first understand what the system is looking for. Microsoft Entra Identity Protection uses machine learning and threat intelligence to score risk events. These events are categorized into two distinct buckets: Sign-In Risk and User Risk.

Sign-In Risk

Sign-In Risk represents the probability that a specific authentication request is compromised. It is evaluated in real-time during the login process. The system analyzes various signals—such as the user's IP address, device metadata, location, and known malicious patterns—to determine if the login attempt is legitimate. If the risk level exceeds your configured threshold, the system triggers a response, such as requiring Multi-Factor Authentication (MFA) or blocking access entirely.

User Risk

User Risk represents the probability that a specific user account has been compromised based on historical behavior and detected threats. Unlike Sign-In Risk, which is transient and specific to one event, User Risk is persistent. It accumulates over time. For example, if a user’s credentials were found on the dark web, their User Risk level will remain elevated until a remediation action is taken, regardless of whether their current login attempt seems normal.

Callout: Risk Attribution – Sign-In vs. User Risk Think of Sign-In Risk as a "snapshot" of a moment. It asks: "Does this specific login look suspicious right now?" Think of User Risk as a "biography" of the account. It asks: "Based on everything we know about this account's history, is this person likely a victim of an attacker?" Sign-In risks often contribute to the overall User Risk score, but they are not the same thing.


Not read yet

2. The Mechanics of Risk Detection

Microsoft Entra ID continuously monitors signals from across the Microsoft ecosystem. This includes data from Microsoft Defender for Cloud Apps, the Microsoft Threat Intelligence Center, and various telemetry points in the Azure and Office 365 environments.

Common Detection Signals

  • Anonymous IP Address: The login originated from an IP address identified as an anonymous proxy or Tor exit node.
  • Unfamiliar Sign-in Properties: The user is logging in from a location, device, or browser that they have not used before.
  • Leaked Credentials: The user's username and password have been identified by Microsoft as being part of a public data breach on the dark web.
  • Malware-linked IP Address: The login is coming from an IP address known to be infected with malware or associated with botnet activity.
  • Impossible Travel: The user logs in from two geographically distant locations within a time frame that would be physically impossible to travel between.

Tip: Always review the "Risk Detections" report in the Entra portal before taking action. This report provides the specific "why" behind the risk score, which is invaluable for distinguishing between a genuine threat and a false positive caused by a traveling employee.


Not read yet

3. Investigating Sign-In Risks

When a Sign-In Risk event is flagged, you need a systematic approach to investigation. You should not simply dismiss alerts; you must verify them.

Step-by-Step Investigation Workflow

  1. Navigate to the Portal: Go to the Microsoft Entra admin center, navigate to Protection, and then select Risky sign-ins.
  2. Filter and Sort: Use the filter functionality to view only "High" or "Medium" risk sign-ins. Focus on your high-risk alerts first, as these represent the most likely threats.
  3. Inspect the Details: Click on a specific sign-in event. You will see tabs for "Basic Info," "Location," "Device Info," and "Risk Details."
  4. Analyze the Risk Detail: Look at the "Risk detail" field. This tells you exactly why the system flagged it. For example, if it says "Impossible travel," check the two locations listed. If the user is a frequent traveler, this might be a false positive.
  5. Correlate with Other Logs: Use the "Sign-in logs" to see if this user has had other failed login attempts or successful logins from different locations recently.

Example Scenario: The "Impossible Travel" False Positive

An employee in New York logs in at 9:00 AM. At 10:30 AM, they log in from London. The system flags this as "Impossible Travel." Upon investigation, you realize the user is using a corporate VPN that routes traffic through a European gateway. Because you have documentation that this VPN is authorized, you can confirm this is a false positive and dismiss the risk.


Not read yet

4. Investigating User Risks

User Risk investigation is more investigative in nature because it implies a compromise has already occurred or is in progress.

The Remediation Process

When a user is flagged with high User Risk, the account is essentially "toxic." You must take action to restore trust.

  1. Identify the Source: Look at the user's risk history. Is the risk coming from a single massive breach, or is it a series of small, suspicious logins over several days?
  2. Verify with the User: Contact the user. Ask them about their recent activity. Did they travel? Did they use a new device? If they are unaware of the activity, you have a confirmed account takeover.
  3. Remediation Actions:
    • Password Reset: This is the most common action. Force a password change for the user.
    • Require MFA: If you haven't already, enforce MFA for this user.
    • Revoke Sessions: Use the "Revoke sessions" command in the Entra portal to force the user to re-authenticate on all devices. This clears any active tokens an attacker might be holding.
    • Block Account: If the threat is severe, temporarily disable the account while you perform a deeper audit of their mailbox and file access.

Warning: Never assume a user is lying when you contact them about suspicious activity. Security fatigue is real. If a user receives too many prompts for password resets or MFA, they may become complacent. Always explain why you are taking the action.


Not read yet

5. Automating Risk Mitigation

Manual investigation is not scalable for large organizations. The power of Entra Identity Protection lies in its ability to automate the response.

Configuring Risk Policies

You can configure "User Risk Policies" and "Sign-In Risk Policies" to trigger specific actions automatically.

  • Sign-In Risk Policy: You can set a rule that says: "If Sign-In Risk is Medium or High, require MFA." This forces the user to prove their identity, which an attacker usually cannot do.
  • User Risk Policy: You can set a rule that says: "If User Risk is High, force a password change." This ensures that if an account is compromised, the attacker is locked out immediately.

Best Practices for Automation

  • Start with "Report Only": Before enforcing policies, set them to "Report Only" mode. This allows you to see what would have happened without disrupting your users.
  • Exclude Break-Glass Accounts: Ensure your emergency access (break-glass) accounts are excluded from these policies to prevent total lockout during a configuration error.
  • Use Conditional Access: Always integrate Identity Protection with Conditional Access policies for a cohesive security strategy.

Not read yet

6. Practical Implementation: Using Microsoft Graph API

For advanced teams, you may want to automate the investigation process or integrate it into your SIEM (Security Information and Event Management) system. Microsoft Graph provides an API to interact with identity risks.

Code Example: Fetching Risky Users

The following PowerShell snippet uses the Microsoft Graph SDK to list users with a high-risk level.

# Connect to Microsoft Graph
Connect-MgGraph -Scopes "IdentityRiskyUser.Read.All"

# Get a list of users with High risk
$riskyUsers = Get-MgRiskyUser -Filter "riskLevel eq 'high'"

foreach ($user in $riskyUsers) {
    Write-Host "User: $($user.UserDisplayName) - Risk Level: $($user.RiskLevel)"
    # In a real scenario, you might trigger an email to the security team here
}

Explanation of the Code

  1. Connect-MgGraph: This initializes the connection to your Microsoft 365 tenant. The scope IdentityRiskyUser.Read.All is the minimum permission required.
  2. Get-MgRiskyUser: This cmdlet queries the identity protection store. We use the -Filter parameter to narrow the results to "high" risk users.
  3. Looping: The foreach loop iterates through the results, allowing you to perform custom actions like logging the event to a file or sending an alert to a Slack/Teams channel.

Not read yet

7. Common Pitfalls and How to Avoid Them

Even with the best tools, organizations often struggle with implementation. Here are the most common mistakes:

Ignoring the "False Positive" Ratio

If your security team ignores all alerts because "they are usually false," you are leaving the door open for a real attack.

  • Solution: Fine-tune your policies. If "Impossible Travel" is triggering too many alerts due to a specific VPN, add that VPN's IP range to your "Named Locations" in Entra ID to exclude it from the risk calculation.

Lack of User Education

Users are often the weakest link. They might click "Approve" on an MFA request they didn't initiate because they are annoyed by the prompt.

  • Solution: Implement "Number Matching" for MFA. This forces the user to enter a number shown on the login screen into their authenticator app, which prevents accidental approvals.

Over-Reliance on Automation

Automation is great, but it cannot replace human judgment.

  • Solution: Establish a "Security Operations Center" (SOC) process. Automate the low-level tasks (like forcing an MFA prompt), but reserve the high-level tasks (like account blocking or deep forensic audits) for human review.

Callout: The "Number Matching" Advantage Traditional MFA "push" notifications are vulnerable to "MFA fatigue" attacks, where an attacker spams a user with requests until they accidentally click "Approve." Number matching eliminates this because the user must have physical access to the login screen to see the correct number. This is a critical defense against modern credential theft.


Not read yet

8. Comparison Table: Manual vs. Automated Risk Management

Feature Manual Management Automated Management
Response Time Slow (hours/days) Instant (seconds)
Scalability Low High
Consistency Variable (human error) High (policy-driven)
User Experience Disruptive (account lockouts) Transparent (MFA prompts)
Security Posture Reactive Proactive

9. Industry Standards and Compliance

When managing identity risk, you are often working toward compliance frameworks like ISO 27001, NIST, or SOC2. These frameworks generally require:

  1. Continuous Monitoring: You must show that you are watching for unauthorized access.
  2. Access Review: You must periodically review who has access and why.
  3. Incident Response: You must have a defined process for when a breach is suspected.

Identity Protection covers the "Monitoring" and "Incident Response" pillars perfectly. Ensure that your logs for risk detections are exported to a central location (like Microsoft Sentinel) so they can be retained for audit purposes.


Not read yet

10. Deep Dive: The Anatomy of a Risk Detection Report

When you open a risk detection report in the Defender XDR portal, you are presented with a wealth of data. It is important to know which fields matter most.

Key Fields in the Risk Report

  • User Principal Name (UPN): The identity of the affected user.
  • Risk Level: Low, Medium, or High.
  • Risk State: "At risk," "Remediated," or "Dismissed."
  • Detection Timing: When the system first saw the suspicious behavior.
  • Source: Where the signal came from (e.g., Azure AD, Microsoft Defender for Cloud Apps).

If you see a "Remediated" state, it means the system took an action (like forcing a password reset) and the risk is now gone. If you see "At risk," the system is waiting for you to intervene. If you see "Dismissed," it means a human administrator looked at the alert and decided it was a false positive or not a threat.


11. Advanced Scenarios: Handling "Impossible Travel" at Scale

In a global organization, "Impossible Travel" is one of the most common alerts. It is often triggered by employees working from home, using cloud-based load balancers, or traveling.

Handling the Noise

If you have a global sales team that travels constantly, you might find that your alerts are 99% false positives. Instead of disabling the "Impossible Travel" detection, you should:

  1. Use Conditional Access Policies: Instead of blocking, set the policy to "Require MFA" for any sign-in that triggers an Impossible Travel alert. This provides security without stopping the user from working.
  2. Review Locations: Ensure your offices are correctly defined as "Named Locations" in the Entra portal. This helps the system understand that traffic coming from your office IP is "trusted," even if it appears to be moving fast.

Not read yet

12. Integrating with Microsoft Sentinel (SIEM)

While the Entra admin center is great for viewing individual risks, Microsoft Sentinel is the best place to see the "big picture."

Why Integrate?

  • Correlated Data: You can see if a high-risk user also downloaded a massive amount of data from SharePoint at the same time.
  • Long-term Retention: Entra logs have a limited retention period. Sentinel allows you to store logs for years.
  • Advanced Hunting: You can run KQL (Kusto Query Language) queries to hunt for patterns that aren't flagged as "risky" but might be suspicious.

Example KQL Query for Risky Sign-ins

SigninLogs
| where TimeGenerated > ago(7d)
| where RiskLevelDuringSignIn == "high"
| project TimeGenerated, UserDisplayName, IPAddress, Location, ResultType
| sort by TimeGenerated desc

This query gives you a clean list of all high-risk sign-ins from the last week, which is a great report to present during a weekly security sync.


Not read yet

13. Best Practices Summary

  • Implement MFA for Everyone: This is the single most effective way to reduce the impact of compromised credentials.
  • Review Risk Reports Weekly: Make it a habit. A few minutes every Monday morning can prevent a major incident.
  • Educate Users on "Why": If a user is locked out or asked for MFA, tell them it's for their security. Transparency builds trust.
  • Use Conditional Access for Everything: Don't just rely on the default settings. Customize your policies to fit your organization's risk tolerance.
  • Test Your Policies: Before you turn on a "Block" policy, test it with a small group of users to ensure you don't break business processes.

14. Common Questions (FAQ)

Q: Can I customize the risk scores? A: No, the risk scores are calculated by Microsoft's proprietary machine learning models. You cannot change how the score is calculated, but you can choose what action to take based on the score.

Q: What happens if I dismiss a risk? A: Dismissing a risk tells the Microsoft machine learning model that the event was not a true threat. This helps improve the accuracy of the system for your specific environment over time.

Q: Should I block all high-risk sign-ins? A: It depends on your business. For highly sensitive roles (like IT admins), yes. For general employees, it might be better to force MFA instead of blocking, to avoid productivity loss.

Q: How do I handle a compromised account that is a service principal? A: Service principals have their own risk detection. Treat them with the same care as user accounts. If a service principal is flagged, rotate its credentials (like the client secret or certificate) immediately.


Not read yet

15. Key Takeaways

  1. Identity is the New Perimeter: Protecting user accounts is now more critical than protecting network segments.
  2. Know the Difference: Sign-In Risk is an immediate event-based concern; User Risk is a historical, account-based concern.
  3. Automation is Essential: Use Identity Protection policies to automatically force MFA or password resets, rather than waiting for manual intervention.
  4. Verify Before You Block: Always investigate the "Risk Detail" field before marking a user as compromised or blocking their access.
  5. Use Number Matching: Always enable number matching for MFA to mitigate the risk of MFA fatigue and accidental approval.
  6. Integration is Key: Export your risk logs to a SIEM like Microsoft Sentinel for long-term auditing, correlation, and advanced threat hunting.
  7. Continuous Improvement: Regularly review your "False Positive" rates and tune your "Named Locations" and conditional access policies to keep your security posture relevant to your business needs.

By following these practices and maintaining a consistent investigation cycle, you ensure that your organization’s identity perimeter remains resilient against both automated bot attacks and targeted human threats. Identity Protection is not a "set it and forget it" feature; it is a living part of your security operations that grows more effective the more you engage with its signals and insights.

Not read yet

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