Analytic rule catalog
PRODAFT USTA - Compromised credential used in successful sign-in
Back
| Id | 5da571b5-54f6-42c2-8c3e-27edd987ceec |
| Rulename | PRODAFT USTA - Compromised credential used in successful sign-in |
| Description | Correlates corporate credentials exposed in PRODAFT USTA Account Takeover Prevention tickets with successful Microsoft Entra ID sign-ins for the same user. A successful sign-in by an account whose credentials are known to be compromised is a strong signal of account takeover. Requires the Microsoft Entra ID (SigninLogs) connector. Username matching is best-effort (case-insensitive) because USTA may record either an email or a bare username. |
| Severity | High |
| Tactics | CredentialAccess InitialAccess |
| Techniques | T1078 T1555 |
| Required data connectors | AzureActiveDirectory PRODAFTUstaATPCCPDefinition |
| Kind | Scheduled |
| Query frequency | 1h |
| Query period | 14d |
| Trigger threshold | 0 |
| Trigger operator | gt |
| Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PRODAFT%20USTA%20-%20Account%20Takeover%20Prevention/Analytic%20Rules/CompromisedCredentialUsedInSignin.yaml |
| Version | 1.0.0 |
| Arm template | 5da571b5-54f6-42c2-8c3e-27edd987ceec.json |
let lookback = 14d;
let detection = 1h;
let compromised =
PRODAFTUstaCompromisedCredentials
| where Created > ago(lookback)
| where IsCorporate == true
| where isnotempty(Username)
| extend MatchName = tolower(Username)
| summarize arg_max(TimeGenerated, TicketId, CompanyName, InfectionDate, Source) by MatchName;
SigninLogs
| where TimeGenerated > ago(detection)
| where ResultType == 0
| where isnotempty(UserPrincipalName)
| extend MatchName = tolower(UserPrincipalName)
| join kind=inner compromised on MatchName
| project
TimeGenerated,
UserPrincipalName,
IPAddress,
Location,
AppDisplayName,
ClientAppUsed,
TicketId,
CompanyName,
Source,
InfectionDate
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: UserPrincipalName
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPAddress
name: PRODAFT USTA - Compromised credential used in successful sign-in
kind: Scheduled
triggerOperator: gt
status: Available
queryPeriod: 14d
requiredDataConnectors:
- connectorId: PRODAFTUstaATPCCPDefinition
dataTypes:
- PRODAFTUstaCompromisedCredentials_CL
- connectorId: AzureActiveDirectory
dataTypes:
- SigninLogs
tactics:
- CredentialAccess
- InitialAccess
query: |
let lookback = 14d;
let detection = 1h;
let compromised =
PRODAFTUstaCompromisedCredentials
| where Created > ago(lookback)
| where IsCorporate == true
| where isnotempty(Username)
| extend MatchName = tolower(Username)
| summarize arg_max(TimeGenerated, TicketId, CompanyName, InfectionDate, Source) by MatchName;
SigninLogs
| where TimeGenerated > ago(detection)
| where ResultType == 0
| where isnotempty(UserPrincipalName)
| extend MatchName = tolower(UserPrincipalName)
| join kind=inner compromised on MatchName
| project
TimeGenerated,
UserPrincipalName,
IPAddress,
Location,
AppDisplayName,
ClientAppUsed,
TicketId,
CompanyName,
Source,
InfectionDate
description: |
'Correlates corporate credentials exposed in PRODAFT USTA Account Takeover Prevention
tickets with successful Microsoft Entra ID sign-ins for the same user. A successful
sign-in by an account whose credentials are known to be compromised is a strong signal
of account takeover. Requires the Microsoft Entra ID (SigninLogs) connector. Username
matching is best-effort (case-insensitive) because USTA may record either an email or a
bare username.'
severity: High
incidentConfiguration:
groupingConfiguration:
lookbackDuration: 1d
groupByEntities:
- Account
enabled: true
matchingMethod: Selected
reopenClosedIncident: false
createIncident: true
id: 5da571b5-54f6-42c2-8c3e-27edd987ceec
customDetails:
Ticket: TicketId
Company: CompanyName
Source: Source
triggerThreshold: 0
queryFrequency: 1h
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PRODAFT%20USTA%20-%20Account%20Takeover%20Prevention/Analytic%20Rules/CompromisedCredentialUsedInSignin.yaml
version: 1.0.0
relevantTechniques:
- T1078
- T1555
{
"$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/5da571b5-54f6-42c2-8c3e-27edd987ceec')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/5da571b5-54f6-42c2-8c3e-27edd987ceec')]",
"properties": {
"alertRuleTemplateName": "5da571b5-54f6-42c2-8c3e-27edd987ceec",
"customDetails": {
"Company": "CompanyName",
"Source": "Source",
"Ticket": "TicketId"
},
"description": "'Correlates corporate credentials exposed in PRODAFT USTA Account Takeover Prevention\ntickets with successful Microsoft Entra ID sign-ins for the same user. A successful\nsign-in by an account whose credentials are known to be compromised is a strong signal\nof account takeover. Requires the Microsoft Entra ID (SigninLogs) connector. Username\nmatching is best-effort (case-insensitive) because USTA may record either an email or a\nbare username.'\n",
"displayName": "PRODAFT USTA - Compromised credential used in successful sign-in",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "UserPrincipalName",
"identifier": "FullName"
}
]
},
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "IPAddress",
"identifier": "Address"
}
]
}
],
"incidentConfiguration": {
"createIncident": true,
"groupingConfiguration": {
"enabled": true,
"groupByEntities": [
"Account"
],
"lookbackDuration": "P1D",
"matchingMethod": "Selected",
"reopenClosedIncident": false
}
},
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PRODAFT%20USTA%20-%20Account%20Takeover%20Prevention/Analytic%20Rules/CompromisedCredentialUsedInSignin.yaml",
"query": "let lookback = 14d;\nlet detection = 1h;\nlet compromised =\n PRODAFTUstaCompromisedCredentials\n | where Created > ago(lookback)\n | where IsCorporate == true\n | where isnotempty(Username)\n | extend MatchName = tolower(Username)\n | summarize arg_max(TimeGenerated, TicketId, CompanyName, InfectionDate, Source) by MatchName;\nSigninLogs\n| where TimeGenerated > ago(detection)\n| where ResultType == 0\n| where isnotempty(UserPrincipalName)\n| extend MatchName = tolower(UserPrincipalName)\n| join kind=inner compromised on MatchName\n| project\n TimeGenerated,\n UserPrincipalName,\n IPAddress,\n Location,\n AppDisplayName,\n ClientAppUsed,\n TicketId,\n CompanyName,\n Source,\n InfectionDate\n",
"queryFrequency": "PT1H",
"queryPeriod": "P14D",
"severity": "High",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"CredentialAccess",
"InitialAccess"
],
"techniques": [
"T1078",
"T1555"
],
"templateVersion": "1.0.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}