Analytic rule catalog
Entra ID authentication strength change
Back
| Id | f59e08b0-c9c0-4af8-8065-f868f2e8a040 |
| Rulename | Entra ID authentication strength change |
| Description | Identifies when the allowed sign-in method combinations of a custom authentication strength are changed in Microsoft Entra ID. An authentication strength lists the method combinations that satisfy a Conditional Access policy, for example phishing-resistant methods only. An attacker with the Conditional Access Administrator role could add a weaker method to a strength that a policy already uses, so the policy stays in place but accepts weaker sign-ins. Creating or deleting a whole strength is not covered, and neither are the advanced options (AAGUIDs and certificate issuers). The alert shows the combinations before and after the change and the id of the strength. Ref: https://learn.microsoft.com/entra/identity/authentication/concept-authentication-strengths |
| Severity | Medium |
| Tactics | CredentialAccess DefenseEvasion Persistence |
| Techniques | T1556.006 T1556.009 |
| Required data connectors | AzureActiveDirectory |
| Kind | Scheduled |
| Query frequency | 1h |
| Query period | 2h |
| Trigger threshold | 0 |
| Trigger operator | gt |
| Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/AuthenticationStrengthChange.yaml |
| Version | 1.0.0 |
| Arm template | f59e08b0-c9c0-4af8-8065-f868f2e8a040.json |
AuditLogs
| where TimeGenerated > ago(2h)
| where ingestion_time() > ago(1h)
| where OperationName =~ "Authentication Strength Policy Update"
| where Result !~ "failure"
| extend InitiatingAppName = tostring(InitiatedBy.app.displayName)
| extend InitiatingUserPrincipalName = tostring(InitiatedBy.user.userPrincipalName)
| extend InitiatingAadUserId = tostring(InitiatedBy.user.id)
| extend InitiatingIPAddress = tostring(iff(isnotempty(InitiatedBy.user.ipAddress), InitiatedBy.user.ipAddress, InitiatedBy.app.ipAddress))
| extend InitiatingAccountName = tostring(split(InitiatingUserPrincipalName, "@")[0]), InitiatingAccountUPNSuffix = tostring(split(InitiatingUserPrincipalName, "@")[1])
| mv-apply Target = TargetResources on (
mv-expand Property = Target.modifiedProperties
| summarize PropertyBag = make_bag(bag_pack(tostring(Property.displayName), bag_pack("old", tostring(Property.oldValue), "new", tostring(Property.newValue))))
)
| extend CombinationsBefore = trim('"', tostring(PropertyBag.AllowedCombinations.old))
| extend CombinationsAfter = trim('"', tostring(PropertyBag.AllowedCombinations.new))
| extend StrengthId = trim('"', tostring(PropertyBag.Id.new))
| where isnotempty(CombinationsAfter)
| mv-apply Combination = split(CombinationsBefore, "|") to typeof(string) on (
extend Methods = strcat_array(array_sort_asc(split(replace_string(Combination, " ", ""), ",")), ",")
| where isnotempty(Methods)
| summarize NormalizedBefore = tostring(array_sort_asc(make_set(Methods)))
)
| mv-apply Combination = split(CombinationsAfter, "|") to typeof(string) on (
extend Methods = strcat_array(array_sort_asc(split(replace_string(Combination, " ", ""), ",")), ",")
| where isnotempty(Methods)
| summarize NormalizedAfter = tostring(array_sort_asc(make_set(Methods)))
)
| where NormalizedBefore != NormalizedAfter
| project-away NormalizedBefore, NormalizedAfter
| project-reorder TimeGenerated, OperationName, StrengthId, CombinationsBefore, CombinationsAfter, InitiatingUserPrincipalName, InitiatingAppName, InitiatingIPAddress
metadata:
categories:
domains:
- Security - Threat Protection
- Identity
author:
name: descambiado
source:
kind: Community
support:
tier: Community
customDetails:
CombinationsBefore: CombinationsBefore
Operation: OperationName
InitiatingApp: InitiatingAppName
StrengthId: StrengthId
CombinationsAfter: CombinationsAfter
severity: Medium
requiredDataConnectors:
- connectorId: AzureActiveDirectory
dataTypes:
- AuditLogs
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/AuthenticationStrengthChange.yaml
queryPeriod: 2h
queryFrequency: 1h
entityMappings:
- fieldMappings:
- identifier: FullName
columnName: InitiatingUserPrincipalName
- identifier: Name
columnName: InitiatingAccountName
- identifier: UPNSuffix
columnName: InitiatingAccountUPNSuffix
entityType: Account
- fieldMappings:
- identifier: AadUserId
columnName: InitiatingAadUserId
entityType: Account
- fieldMappings:
- identifier: Address
columnName: InitiatingIPAddress
entityType: IP
kind: Scheduled
relevantTechniques:
- T1556.006
- T1556.009
triggerOperator: gt
status: InPreview
query: |
AuditLogs
| where TimeGenerated > ago(2h)
| where ingestion_time() > ago(1h)
| where OperationName =~ "Authentication Strength Policy Update"
| where Result !~ "failure"
| extend InitiatingAppName = tostring(InitiatedBy.app.displayName)
| extend InitiatingUserPrincipalName = tostring(InitiatedBy.user.userPrincipalName)
| extend InitiatingAadUserId = tostring(InitiatedBy.user.id)
| extend InitiatingIPAddress = tostring(iff(isnotempty(InitiatedBy.user.ipAddress), InitiatedBy.user.ipAddress, InitiatedBy.app.ipAddress))
| extend InitiatingAccountName = tostring(split(InitiatingUserPrincipalName, "@")[0]), InitiatingAccountUPNSuffix = tostring(split(InitiatingUserPrincipalName, "@")[1])
| mv-apply Target = TargetResources on (
mv-expand Property = Target.modifiedProperties
| summarize PropertyBag = make_bag(bag_pack(tostring(Property.displayName), bag_pack("old", tostring(Property.oldValue), "new", tostring(Property.newValue))))
)
| extend CombinationsBefore = trim('"', tostring(PropertyBag.AllowedCombinations.old))
| extend CombinationsAfter = trim('"', tostring(PropertyBag.AllowedCombinations.new))
| extend StrengthId = trim('"', tostring(PropertyBag.Id.new))
| where isnotempty(CombinationsAfter)
| mv-apply Combination = split(CombinationsBefore, "|") to typeof(string) on (
extend Methods = strcat_array(array_sort_asc(split(replace_string(Combination, " ", ""), ",")), ",")
| where isnotempty(Methods)
| summarize NormalizedBefore = tostring(array_sort_asc(make_set(Methods)))
)
| mv-apply Combination = split(CombinationsAfter, "|") to typeof(string) on (
extend Methods = strcat_array(array_sort_asc(split(replace_string(Combination, " ", ""), ",")), ",")
| where isnotempty(Methods)
| summarize NormalizedAfter = tostring(array_sort_asc(make_set(Methods)))
)
| where NormalizedBefore != NormalizedAfter
| project-away NormalizedBefore, NormalizedAfter
| project-reorder TimeGenerated, OperationName, StrengthId, CombinationsBefore, CombinationsAfter, InitiatingUserPrincipalName, InitiatingAppName, InitiatingIPAddress
eventGroupingSettings:
aggregationKind: AlertPerResult
name: Entra ID authentication strength change
triggerThreshold: 0
version: 1.0.0
id: f59e08b0-c9c0-4af8-8065-f868f2e8a040
description: |
Identifies when the allowed sign-in method combinations of a custom authentication strength are changed in Microsoft Entra ID.
An authentication strength lists the method combinations that satisfy a Conditional Access policy, for example phishing-resistant methods only.
An attacker with the Conditional Access Administrator role could add a weaker method to a strength that a policy already uses, so the policy stays in place but accepts weaker sign-ins.
Creating or deleting a whole strength is not covered, and neither are the advanced options (AAGUIDs and certificate issuers).
The alert shows the combinations before and after the change and the id of the strength.
Ref: https://learn.microsoft.com/entra/identity/authentication/concept-authentication-strengths
tactics:
- CredentialAccess
- DefenseEvasion
- Persistence
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"apiVersion": "2024-01-01-preview",
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/f59e08b0-c9c0-4af8-8065-f868f2e8a040')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/f59e08b0-c9c0-4af8-8065-f868f2e8a040')]",
"properties": {
"alertRuleTemplateName": "f59e08b0-c9c0-4af8-8065-f868f2e8a040",
"customDetails": {
"CombinationsAfter": "CombinationsAfter",
"CombinationsBefore": "CombinationsBefore",
"InitiatingApp": "InitiatingAppName",
"Operation": "OperationName",
"StrengthId": "StrengthId"
},
"description": "Identifies when the allowed sign-in method combinations of a custom authentication strength are changed in Microsoft Entra ID.\nAn authentication strength lists the method combinations that satisfy a Conditional Access policy, for example phishing-resistant methods only.\nAn attacker with the Conditional Access Administrator role could add a weaker method to a strength that a policy already uses, so the policy stays in place but accepts weaker sign-ins.\nCreating or deleting a whole strength is not covered, and neither are the advanced options (AAGUIDs and certificate issuers).\nThe alert shows the combinations before and after the change and the id of the strength.\nRef: https://learn.microsoft.com/entra/identity/authentication/concept-authentication-strengths\n",
"displayName": "Entra ID authentication strength change",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "InitiatingUserPrincipalName",
"identifier": "FullName"
},
{
"columnName": "InitiatingAccountName",
"identifier": "Name"
},
{
"columnName": "InitiatingAccountUPNSuffix",
"identifier": "UPNSuffix"
}
]
},
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "InitiatingAadUserId",
"identifier": "AadUserId"
}
]
},
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "InitiatingIPAddress",
"identifier": "Address"
}
]
}
],
"eventGroupingSettings": {
"aggregationKind": "AlertPerResult"
},
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/AuthenticationStrengthChange.yaml",
"query": "AuditLogs\n| where TimeGenerated > ago(2h)\n| where ingestion_time() > ago(1h)\n| where OperationName =~ \"Authentication Strength Policy Update\"\n| where Result !~ \"failure\"\n| extend InitiatingAppName = tostring(InitiatedBy.app.displayName)\n| extend InitiatingUserPrincipalName = tostring(InitiatedBy.user.userPrincipalName)\n| extend InitiatingAadUserId = tostring(InitiatedBy.user.id)\n| extend InitiatingIPAddress = tostring(iff(isnotempty(InitiatedBy.user.ipAddress), InitiatedBy.user.ipAddress, InitiatedBy.app.ipAddress))\n| extend InitiatingAccountName = tostring(split(InitiatingUserPrincipalName, \"@\")[0]), InitiatingAccountUPNSuffix = tostring(split(InitiatingUserPrincipalName, \"@\")[1])\n| mv-apply Target = TargetResources on (\n mv-expand Property = Target.modifiedProperties\n | summarize PropertyBag = make_bag(bag_pack(tostring(Property.displayName), bag_pack(\"old\", tostring(Property.oldValue), \"new\", tostring(Property.newValue))))\n )\n| extend CombinationsBefore = trim('\"', tostring(PropertyBag.AllowedCombinations.old))\n| extend CombinationsAfter = trim('\"', tostring(PropertyBag.AllowedCombinations.new))\n| extend StrengthId = trim('\"', tostring(PropertyBag.Id.new))\n| where isnotempty(CombinationsAfter)\n| mv-apply Combination = split(CombinationsBefore, \"|\") to typeof(string) on (\n extend Methods = strcat_array(array_sort_asc(split(replace_string(Combination, \" \", \"\"), \",\")), \",\")\n | where isnotempty(Methods)\n | summarize NormalizedBefore = tostring(array_sort_asc(make_set(Methods)))\n )\n| mv-apply Combination = split(CombinationsAfter, \"|\") to typeof(string) on (\n extend Methods = strcat_array(array_sort_asc(split(replace_string(Combination, \" \", \"\"), \",\")), \",\")\n | where isnotempty(Methods)\n | summarize NormalizedAfter = tostring(array_sort_asc(make_set(Methods)))\n )\n| where NormalizedBefore != NormalizedAfter\n| project-away NormalizedBefore, NormalizedAfter\n| project-reorder TimeGenerated, OperationName, StrengthId, CombinationsBefore, CombinationsAfter, InitiatingUserPrincipalName, InitiatingAppName, InitiatingIPAddress\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT2H",
"severity": "Medium",
"status": "InPreview",
"subTechniques": [
"T1556.006",
"T1556.009"
],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"CredentialAccess",
"DefenseEvasion",
"Persistence"
],
"techniques": [
"T1556"
],
"templateVersion": "1.0.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}