Investigate and Remediate Risks
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② 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
Mastering Identity Security: Investigating and Remediating Risks in Microsoft Entra
Introduction: The Modern Identity Perimeter
In the modern digital landscape, the traditional network perimeter—the firewall—has effectively dissolved. With the rise of cloud services, remote work, and mobile devices, the new perimeter is identity. When an attacker gains control of a user's credentials, they do not need to "break in" through a digital door; they simply walk through it as a trusted entity. This shift makes identity management the most critical component of your organization's security posture.
Microsoft Entra Identity Protection is a toolset designed to address this exact reality. It uses machine learning to analyze trillions of signals daily, identifying patterns that suggest an account has been compromised. Rather than relying on static rules or simple password changes, Identity Protection provides a dynamic, risk-based approach to security. In this lesson, we will explore how to investigate these signals, understand the logic behind them, and take decisive action to remediate risks before they turn into full-scale security incidents.
Understanding this topic is not just about checking boxes for compliance; it is about protecting your organization's data and reputation. By learning how to interpret risk levels and automate remediation, you move from being a reactive administrator who responds to alerts after the fact, to a proactive architect who builds resilient identity defenses.
Not read yet
Understanding Risk Signals and Categories
To effectively manage identity risk, you must first understand what Entra ID is actually tracking. Risk signals are categorized into two primary buckets: User Risk and Sign-in Risk. While they sound similar, they serve different purposes in your security workflow.
User Risk
User risk represents the probability that a given user account has been compromised. It is calculated based on historical activity and the accumulation of various risk events over time. If a user’s credentials appear on a known dark web list, or if the system detects unusual behavior patterns across multiple sessions, the user risk level (Low, Medium, or High) increases. This level persists until the user performs a secure password reset or an administrator manually dismisses the risk.
Sign-in Risk
Sign-in risk is a point-in-time assessment. It looks at a specific authentication attempt and asks, "How likely is it that this specific sign-in is not authorized by the legitimate user?" This assessment happens in real-time. If the sign-in originates from an anonymous IP address (like a Tor browser) or an impossible travel scenario—where a user logs in from New York and then from London three minutes later—the sign-in risk is flagged immediately.
Callout: User Risk vs. Sign-in Risk Think of user risk as the "health" of the account, while sign-in risk is the "integrity" of the specific event. User risk is cumulative and stays with the account until resolved, whereas sign-in risk is ephemeral and applies only to that specific login attempt. A high sign-in risk can contribute to an increase in user risk, but they are tracked and remediated through different mechanisms.
Common Risk Detection Types
- Anonymous IP Address: The user is connecting from a known proxy, VPN, or Tor node, which is often used to mask malicious activity.
- Atypical Travel: An impossible travel scenario where the distance between two sign-ins cannot be traveled in the time elapsed between them.
- Malware Linked IP Address: The sign-in originated from an IP address known to be infected with malware that communicates with botnet command-and-control servers.
- Unfamiliar Sign-in Properties: The user has not recently performed a sign-in with these specific characteristics, such as a new device, browser, or location.
- Leaked Credentials: Microsoft has identified that the user's username and password pair has been released publicly on the dark web or other forums.
Not read yet
Investigating Risk Events: The Administrator Workflow
When an alert lands in your inbox or appears on the Entra dashboard, your first task is investigation. You must determine if the event is a true positive (an actual attack) or a false positive (a legitimate user doing something unusual).
Step-by-Step Investigation Process
- Navigate to the Risk Report: In the Microsoft Entra admin center, go to "Protection" and then "Risky users" or "Risky sign-ins."
- Filter and Sort: Use the filter options to view only "High" risk events first. Focus your attention on these, as they present the most immediate threat.
- Analyze User Details: Click on the specific user to view their activity timeline. Look for patterns. Does the location match where the user lives? Is the device type consistent with their role?
- Cross-Reference with Logs: Use the "Sign-in logs" to compare the flagged event with the user's normal behavior. Check if the user has recently authenticated from a known, safe location to see if the "impossible travel" alert makes sense.
- Direct Communication: If you are unsure, reach out to the user. Ask them if they were traveling or if they recently started using a new VPN service.
Tip: The Human Element Never underestimate the value of a quick chat with the user. Often, a high-risk alert is simply a user who decided to use a personal VPN for the first time or logged in while on vacation in a different country. A quick conversation can turn a "security investigation" into a "user education moment."
Not read yet
Remediating Risks: Options and Strategies
Once you have investigated the risk, you must decide on a remediation action. You have three primary ways to handle these risks: allowing the user to self-remediate, manually intervening, or dismissing the risk.
Self-Remediation
The most efficient way to manage risk is to empower users to fix it themselves. By configuring Conditional Access policies that require Multi-Factor Authentication (MFA) or a password change upon a high-risk sign-in, you automate the security process. If the user successfully completes the MFA challenge or resets their password, the risk is automatically mitigated by the system.
Manual Intervention
If you determine that an account is truly compromised, you must take manual action. This includes:
- Resetting the Password: Force the user to change their password immediately to invalidate the stolen credentials.
- Revoking Sessions: Use the "Revoke all sessions" feature to force the user to re-authenticate everywhere. This is crucial because even after a password change, an attacker with a stolen session token can still maintain access.
- Disabling the Account: If the activity is highly suspicious and the user is unavailable, disabling the account is the safest way to prevent further data exfiltration.
Risk Dismissal
If you determine that a risk flag was a false positive, you can manually dismiss the risk. This updates the status of the risk event and prevents it from contributing to the user's overall risk score. Be cautious with this; if you dismiss too many alerts, you may be ignoring legitimate patterns of malicious behavior.
Not read yet
Implementing Conditional Access for Automated Protection
The goal of modern identity management is to move away from manual intervention as much as possible. This is where Conditional Access policies come into play. By integrating Identity Protection with Conditional Access, you create a system that reacts to threats in real-time.
Creating a Risk-Based Policy
To implement this, follow these steps:
- Go to Protection -> Conditional Access -> Policies.
- Create a new policy and name it something descriptive, like "Require MFA for Medium and High Risk Sign-ins."
- Under Users, select the scope (usually "All users," but you may want to exclude break-glass accounts).
- Under Target resources, select "All cloud apps."
- Under Conditions, select Sign-in risk and choose "Medium" and "High."
- Under Grant, choose "Grant access" and check the box "Require multi-factor authentication."
Warning: The "Break-Glass" Account Rule Always exclude at least two emergency access (break-glass) accounts from your Conditional Access policies. If your MFA provider goes down or you misconfigure a policy that locks everyone out, these accounts remain accessible via password only, allowing you to regain entry to the system.
Not read yet
Code-Based Automation: Managing Risk via Microsoft Graph
For organizations with large user bases, manual management in the GUI is not scalable. You can use the Microsoft Graph API to automate the investigation and remediation process. This allows you to integrate risk data into your existing Security Information and Event Management (SIEM) systems.
Example: Retrieving Risky Users with PowerShell
You can use the Microsoft Graph PowerShell SDK to list all users currently flagged with a "High" risk level.
# Connect to Microsoft Graph with necessary permissions
Connect-MgGraph -Scopes "IdentityRiskEvent.Read.All", "User.Read.All"
# Get a list of all users with high risk
$riskyUsers = Get-MgRiskyUser -Filter "riskLevel eq 'high'"
# Output the user details to a readable format
$riskyUsers | Select-Object UserPrincipalName, RiskLevel, RiskState, RiskDetail
Example: Remediating a User Risk
If you have confirmed a compromise, you can use the API to dismiss the risk or confirm it.
# To confirm a user is compromised (which helps train the AI model)
Update-MgRiskyUser -RiskyUserId "user-object-id-here" -ConfirmedUserCompromised
# To dismiss a risk that was a false positive
Update-MgRiskyUser -RiskyUserId "user-object-id-here" -DismissedBy "AdminName" -RiskDetail "AdminConfirmedSafe"
Explanation of the code:
Connect-MgGraph: This establishes the session. You must ensure your application or user account has theIdentityRiskEvent.Read.AllandUser.Read.Allpermissions granted in Entra ID.Get-MgRiskyUser: This queries the identity protection service. The-Filterparameter is highly efficient, as it processes the query on the server side rather than pulling all data into your local memory.Update-MgRiskyUser: This is the primary tool for remediation. By setting theConfirmedUserCompromisedflag, you help Microsoft's machine learning models improve their detection accuracy for your specific organization.
Not read yet
Best Practices for Identity Protection
Maintaining a secure identity environment requires consistency and a clear strategy. Follow these industry-standard practices to keep your environment resilient.
1. Enable Security Defaults or Conditional Access
If you are a smaller organization, "Security Defaults" provides a baseline of protection. However, for most enterprises, custom Conditional Access policies are preferred because they allow for granular control, such as requiring MFA only when the risk is high, rather than for every single sign-in.
2. Monitor the "Risky Users" Report Regularly
Do not wait for a major incident to look at your risk reports. Make it a part of your weekly or daily administrative routine to review the "Risky users" and "Risky sign-ins" dashboards. Early detection is the most effective way to prevent a breach from escalating.
3. Use Identity Protection with SIEM Integration
Stream your sign-in and risk logs to a SIEM like Microsoft Sentinel. This allows you to correlate identity risks with other events in your infrastructure, such as unusual file access in SharePoint or suspicious PowerShell activity on a workstation.
4. Educate Your Users
Often, the best defense is an informed user. If a user receives an MFA prompt they didn't trigger, they should know exactly what that means. Implement a policy where users are trained to report suspicious MFA prompts immediately to the IT helpdesk.
Callout: The "Impossible Travel" Nuance Be aware that "Impossible Travel" can occasionally trigger false positives for users who utilize "split-tunneling" VPNs. In these configurations, some traffic goes through a corporate VPN (location A) while other traffic goes directly to the internet (location B). If you see frequent impossible travel alerts for specific users, investigate their network configuration before assuming an account compromise.
Not read yet
Common Pitfalls and How to Avoid Them
Pitfall 1: Over-Reliance on Automation
While automation is excellent, relying on it entirely can lead to "alert fatigue." If your policies are too aggressive, you will lock out legitimate users constantly, leading to a flood of helpdesk tickets. Start with "Report-only" mode in your Conditional Access policies to see how they would impact users before you enforce them.
Pitfall 2: Ignoring the "Risk Detail" Field
Many administrators look only at the "Risk Level" and ignore the "Risk Detail." The detail field tells you why the system flagged the user (e.g., "Leaked credentials"). Knowing the "why" is essential for remediation. If the risk is "Leaked credentials," you must force a password reset. If the risk is "Unfamiliar sign-in properties," a simple MFA verification might suffice.
Pitfall 3: Not Protecting Service Accounts
Service accounts are often the most overlooked aspect of identity protection. Attackers frequently target these accounts because they often have high privileges and do not have MFA enabled. Ensure that any service account that can be protected by Conditional Access is included, or use managed identities/workload identities to eliminate the need for static credentials entirely.
Pitfall 4: Failing to Revoke Sessions
As mentioned earlier, changing a password is not enough. If an attacker has an active session token, they can continue to access resources even after the password is changed. Always remember to perform the "Revoke all sessions" action when dealing with a confirmed compromise.
Not read yet
Comparison Table: Risk Response Actions
| Action | When to Use | Result |
|---|---|---|
| Require MFA | Medium risk or suspicious activity | Forces user to prove identity; stops automated attacks. |
| Password Reset | High risk or confirmed leak | Invalidates current password; requires user to create a new one. |
| Revoke Sessions | Confirmed compromise | Kicks the attacker out of all active sessions immediately. |
| Disable Account | Severe, ongoing attack | Stops all access; requires admin intervention to restore. |
| Dismiss Risk | False positive | Clears the alert and resets the user's risk score. |
Quick Reference: The Identity Protection Lifecycle
- Detection: The Entra ID system monitors for signals (IPs, travel, leaks, etc.).
- Assessment: The system assigns a risk level (Low, Medium, High).
- Policy Enforcement: Conditional Access triggers based on the risk level (e.g., MFA challenge).
- Remediation: The user resolves the challenge, or an admin intervenes.
- Feedback Loop: The system learns from the outcome, improving future detection accuracy.
Not read yet
Frequently Asked Questions
Q: Can I use Identity Protection without an Entra ID P2 license?
A: No, Microsoft Entra Identity Protection is a feature that requires an Entra ID P2 license. While basic security defaults are available for all, the advanced risk-based policies and granular reporting require the P2 tier.
Q: Does Identity Protection work for guest users?
A: Yes, Identity Protection applies to guest users as well. If you have guests in your tenant, their sign-ins are evaluated against the same risk detection logic as your internal users.
Q: What should I do if a user has a "High" risk level but claims they did nothing wrong?
A: Do not dismiss the risk immediately. Check the sign-in logs for that user. Look for the "User Agent" string, the IP address, and the location. Even if the user claims innocence, the system might have detected "Leaked credentials." In such cases, it is safer to force a password reset regardless of the user's claims.
Q: How long does it take for a user's risk level to decrease after a password reset?
A: Once a user successfully performs a secure password reset (e.g., via SSPR), the risk level is typically reduced to "None" within a few minutes. If it does not clear, check if the user has other active risk events that were not addressed by the password reset.
Not read yet
Conclusion: Building a Culture of Identity Security
Managing identity risk is not a one-time configuration; it is an ongoing process of monitoring, analyzing, and refining. Microsoft Entra Identity Protection provides the heavy lifting, using massive data sets to flag threats, but the human element remains vital. You are the final arbiter who decides whether a signal is a genuine threat or a benign anomaly.
By adopting the strategies outlined in this lesson—using risk-based Conditional Access, automating remediation through APIs, and maintaining a disciplined investigation workflow—you significantly raise the bar for any attacker attempting to gain unauthorized access to your environment. Remember that security is not about achieving a state of "perfect safety," but about creating a system that is resilient, responsive, and difficult to exploit.
Key Takeaways
- Identity is the New Perimeter: Treat identity security as your primary defense mechanism in a cloud-first environment.
- Understand the Signals: Know the difference between User Risk (cumulative health) and Sign-in Risk (event-based integrity).
- Automate Where Possible: Use Conditional Access policies to enforce MFA or password resets based on risk levels, reducing the burden on your IT team.
- Always Revoke Sessions: A password reset alone is insufficient if an attacker has stolen a session token; always revoke all active sessions during a compromise.
- Investigate Before Dismissing: Never dismiss a high-risk alert without performing due diligence, such as checking logs and communicating with the user.
- Protect Service Accounts: Ensure that non-human accounts are subject to security policies, or transition them to managed identities to remove the risk of leaked credentials.
- Continuous Improvement: Use the feedback loop provided by the Entra ID platform to refine your policies and stay ahead of evolving threat patterns.
By following these principles, you ensure that your organization remains protected against the most common and damaging forms of identity-based attacks. Keep your policies updated, your logs reviewed, and your users educated; these are the foundational pillars of a secure and modern identity management strategy.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Introduction to Microsoft Entra ID
- Introduction to Microsoft Entra ID Quiz5q
- Configure Tenant Settings
- Configure Tenant Settings Quiz5q
- Custom Domain Names
- Custom Domain Names Quiz5q
- Device Identity and Registration
- Device Identity and Registration Quiz5q
- Company Branding Configuration
- Company Branding Configuration Quiz5q
- Create and Manage User Accounts
- Create and Manage User Accounts Quiz5q
- Bulk User Operations
- Bulk User Operations Quiz5q
- Create and Manage Groups
- Create and Manage Groups Quiz5q
- Dynamic Group Membership
- Dynamic Group Membership Quiz5q
- Administrative Units
- Administrative Units Quiz5q
- License Assignment and Management
- License Assignment and Management Quiz5q
- External Collaboration Settings
- External Collaboration Settings Quiz5q
- Invite External Users
- Invite External Users Quiz5q
- B2B Collaboration and Direct Connect
- B2B Collaboration and Direct Connect Quiz5q
- Cross-Tenant Access Settings
- Cross-Tenant Access Settings Quiz5q
- Identity Provider Configuration
- Identity Provider Configuration Quiz5q
- Microsoft Entra Connect Overview
- Microsoft Entra Connect Overview Quiz5q
- Password Hash Synchronization
- Password Hash Synchronization Quiz5q
- Pass-Through Authentication
- Pass-Through Authentication Quiz5q
- Federation with AD FS
- Federation with AD FS Quiz5q
- Entra Connect Cloud Sync
- Entra Connect Cloud Sync Quiz5q
- Authentication Methods Overview
- Authentication Methods Overview Quiz5q
- Passwordless Authentication
- Passwordless Authentication Quiz5q
- Self-Service Password Reset
- Self-Service Password Reset Quiz5q
- Password Protection and Smart Lockout
- Password Protection and Smart Lockout Quiz5q
- FIDO2 Security Keys
- FIDO2 Security Keys Quiz5q
- Microsoft Authenticator App
- Microsoft Authenticator App Quiz5q
- Conditional Access Overview
- Conditional Access Overview Quiz5q
- Create Conditional Access Policies
- Create Conditional Access Policies Quiz5q
- Named Locations and Terms of Use
- Named Locations and Terms of Use Quiz5q
- Session Controls and App Controls
- Session Controls and App Controls Quiz5q
- Authentication Strength Policies
- Authentication Strength Policies Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock SC-300 exam-style practice questions.
Practice for SC-300