Azure Active Directory High Risk Sign-in
Identifies high risk Azure Active Directory (AD) sign-ins by leveraging Microsoft's Identity Protection machine learning and heuristics. Identity Protection categorizes risk into three tiers: low, medium, and high. While Microsoft does not provide specific details about how risk is calculated, each level brings higher confidence that the user or sign-in is compromised.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2021/01/04"
3integration = ["azure"]
4maturity = "production"
5updated_date = "2024/05/21"
6
7[rule]
8author = ["Elastic", "Willem D'Haese"]
9description = """
10Identifies high risk Azure Active Directory (AD) sign-ins by leveraging Microsoft's Identity Protection machine learning
11and heuristics. Identity Protection categorizes risk into three tiers: low, medium, and high. While Microsoft does not
12provide specific details about how risk is calculated, each level brings higher confidence that the user or sign-in is
13compromised.
14"""
15from = "now-25m"
16index = ["filebeat-*", "logs-azure*"]
17language = "kuery"
18license = "Elastic License v2"
19name = "Azure Active Directory High Risk Sign-in"
20note = """## Triage and analysis
21
22### Investigating Azure Active Directory High Risk Sign-in
23
24Microsoft Identity Protection is an Azure AD security tool that detects various types of identity risks and attacks.
25
26This rule identifies events produced by Microsoft Identity Protection with high risk levels or high aggregated risk level.
27
28#### Possible investigation steps
29
30- Identify the Risk Detection that triggered the event. A list with descriptions can be found [here](https://docs.microsoft.com/en-us/azure/active-directory/identity-protection/concept-identity-protection-risks#risk-types-and-detection).
31- Identify the user account involved and validate whether the suspicious activity is normal for that user.
32 - Consider the source IP address and geolocation for the involved user account. Do they look normal?
33 - Consider the device used to sign in. Is it registered and compliant?
34- Investigate other alerts associated with the user account during the past 48 hours.
35- Contact the account owner and confirm whether they are aware of this activity.
36- Check if this operation was approved and performed according to the organization's change management policy.
37- If you suspect the account has been compromised, scope potentially compromised assets by tracking servers, services, and data accessed by the account in the last 24 hours.
38
39### False positive analysis
40
41If this rule is noisy in your environment due to expected activity, consider adding exceptions — preferably with a combination of user and device conditions.
42
43### Response and remediation
44
45- Initiate the incident response process based on the outcome of the triage.
46- Disable or limit the account during the investigation and response.
47- Identify the possible impact of the incident and prioritize accordingly; the following actions can help you gain context:
48 - Identify the account role in the cloud environment.
49 - Assess the criticality of affected services and servers.
50 - Work with your IT team to identify and minimize the impact on users.
51 - Identify if the attacker is moving laterally and compromising other accounts, servers, or services.
52 - Identify any regulatory or legal ramifications related to this activity.
53- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords or delete API keys as needed to revoke the attacker's access to the environment. Work with your IT teams to minimize the impact on business operations during these actions.
54- Check if unauthorized new users were created, remove unauthorized new accounts, and request password resets for other IAM users.
55- Consider enabling multi-factor authentication for users.
56- Follow security best practices [outlined](https://docs.microsoft.com/en-us/azure/security/fundamentals/identity-management-best-practices) by Microsoft.
57- Determine the initial vector abused by the attacker and take action to prevent reinfection via the same vector.
58- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
59
60## Setup
61
62The Azure Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.
63
64Note that details for `azure.signinlogs.properties.risk_level_during_signin` and `azure.signinlogs.properties.risk_level_aggregated`
65are only available for Azure AD Premium P2 customers. All other customers will be returned `hidden`.
66"""
67references = [
68 "https://docs.microsoft.com/en-us/azure/active-directory/conditional-access/howto-conditional-access-policy-risk",
69 "https://docs.microsoft.com/en-us/azure/active-directory/identity-protection/overview-identity-protection",
70 "https://docs.microsoft.com/en-us/azure/active-directory/identity-protection/howto-identity-protection-investigate-risk",
71]
72risk_score = 73
73rule_id = "37994bca-0611-4500-ab67-5588afe73b77"
74severity = "high"
75tags = [
76 "Domain: Cloud",
77 "Data Source: Azure",
78 "Use Case: Identity and Access Audit",
79 "Resources: Investigation Guide",
80 "Tactic: Initial Access",
81]
82timestamp_override = "event.ingested"
83type = "query"
84
85query = '''
86event.dataset:azure.signinlogs and
87 (azure.signinlogs.properties.risk_level_during_signin:high or azure.signinlogs.properties.risk_level_aggregated:high) and
88 event.outcome:(success or Success)
89'''
90
91
92[[rule.threat]]
93framework = "MITRE ATT&CK"
94[[rule.threat.technique]]
95id = "T1078"
96name = "Valid Accounts"
97reference = "https://attack.mitre.org/techniques/T1078/"
98
99
100[rule.threat.tactic]
101id = "TA0001"
102name = "Initial Access"
103reference = "https://attack.mitre.org/tactics/TA0001/"
Triage and analysis
Investigating Azure Active Directory High Risk Sign-in
Microsoft Identity Protection is an Azure AD security tool that detects various types of identity risks and attacks.
This rule identifies events produced by Microsoft Identity Protection with high risk levels or high aggregated risk level.
Possible investigation steps
- Identify the Risk Detection that triggered the event. A list with descriptions can be found here.
- Identify the user account involved and validate whether the suspicious activity is normal for that user.
- Consider the source IP address and geolocation for the involved user account. Do they look normal?
- Consider the device used to sign in. Is it registered and compliant?
- Investigate other alerts associated with the user account during the past 48 hours.
- Contact the account owner and confirm whether they are aware of this activity.
- Check if this operation was approved and performed according to the organization's change management policy.
- If you suspect the account has been compromised, scope potentially compromised assets by tracking servers, services, and data accessed by the account in the last 24 hours.
False positive analysis
If this rule is noisy in your environment due to expected activity, consider adding exceptions — preferably with a combination of user and device conditions.
Response and remediation
- Initiate the incident response process based on the outcome of the triage.
- Disable or limit the account during the investigation and response.
- Identify the possible impact of the incident and prioritize accordingly; the following actions can help you gain context:
- Identify the account role in the cloud environment.
- Assess the criticality of affected services and servers.
- Work with your IT team to identify and minimize the impact on users.
- Identify if the attacker is moving laterally and compromising other accounts, servers, or services.
- Identify any regulatory or legal ramifications related to this activity.
- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords or delete API keys as needed to revoke the attacker's access to the environment. Work with your IT teams to minimize the impact on business operations during these actions.
- Check if unauthorized new users were created, remove unauthorized new accounts, and request password resets for other IAM users.
- Consider enabling multi-factor authentication for users.
- Follow security best practices outlined by Microsoft.
- Determine the initial vector abused by the attacker and take action to prevent reinfection via the same vector.
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
Setup
The Azure Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.
Note that details for azure.signinlogs.properties.risk_level_during_signin
and azure.signinlogs.properties.risk_level_aggregated
are only available for Azure AD Premium P2 customers. All other customers will be returned hidden
.
References
Related rules
- Azure Active Directory High Risk User Sign-in Heuristic
- Azure Active Directory PowerShell Sign-in
- Possible Consent Grant Attack via Azure-Registered Application
- AWS Management Console Root Login
- Azure External Guest User Invitation