Decoy User Account Authentication Attempt
Id | a4dbc292-87eb-11ec-a8a3-0242ac120002 |
Rulename | Decoy User Account Authentication Attempt |
Description | The query detects authentication attempts from a decoy user account. A decoy user account is explicitly created and monitored to alert the SOC, indicating a malicious activity when the account is in use. Ref: https://fidelissecurity.com/threatgeek/deception/best-deception-protection-for-active-directory |
Tactics | LateralMovement |
Techniques | T1021 |
Required data connectors | SecurityEvents WindowsSecurityEvents |
Kind | Scheduled |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Windows Security Events/Hunting Queries/DecoyUserAccountAuthenticationAttempt.yaml |
Version | 2.0.1 |
Arm template | a4dbc292-87eb-11ec-a8a3-0242ac120002.json |
// Enter a reference list of decoy users (usernames) "Case Sensitive"
let DecoyUserNameList = dynamic (["DecoyUser1","DecoyUser2"]);
SecurityEvent
| where TargetUserName in (DecoyUserNameList)
| where EventID in (4624,4625)
| summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by EventID, Computer, TargetUserName, LogonTypeName, IpAddress
| extend Account_0_Name = TargetUserName
| extend Host_0_HostName = Computer
| extend IP_0_Address = IpAddress
version: 2.0.1
id: a4dbc292-87eb-11ec-a8a3-0242ac120002
query: |
// Enter a reference list of decoy users (usernames) "Case Sensitive"
let DecoyUserNameList = dynamic (["DecoyUser1","DecoyUser2"]);
SecurityEvent
| where TargetUserName in (DecoyUserNameList)
| where EventID in (4624,4625)
| summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by EventID, Computer, TargetUserName, LogonTypeName, IpAddress
| extend Account_0_Name = TargetUserName
| extend Host_0_HostName = Computer
| extend IP_0_Address = IpAddress
tactics:
- LateralMovement
name: Decoy User Account Authentication Attempt
kind: Scheduled
description: |
'The query detects authentication attempts from a decoy user account.
A decoy user account is explicitly created and monitored to alert the SOC, indicating a malicious activity when the account is in use.
Ref: https://fidelissecurity.com/threatgeek/deception/best-deception-protection-for-active-directory'
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Windows Security Events/Hunting Queries/DecoyUserAccountAuthenticationAttempt.yaml
requiredDataConnectors:
- connectorId: SecurityEvents
dataTypes:
- SecurityEvent
- connectorId: WindowsSecurityEvents
dataTypes:
- SecurityEvent
relevantTechniques:
- T1021
entityMappings:
- entityType: Account
fieldMappings:
- identifier: Name
columnName: TargetUserName
- entityType: Host
fieldMappings:
- identifier: HostName
columnName: Computer
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IpAddress
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/a4dbc292-87eb-11ec-a8a3-0242ac120002')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/a4dbc292-87eb-11ec-a8a3-0242ac120002')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "Decoy User Account Authentication Attempt",
"description": "'The query detects authentication attempts from a decoy user account. \nA decoy user account is explicitly created and monitored to alert the SOC, indicating a malicious activity when the account is in use.\nRef: https://fidelissecurity.com/threatgeek/deception/best-deception-protection-for-active-directory'\n",
"enabled": true,
"query": "// Enter a reference list of decoy users (usernames) \"Case Sensitive\"\n let DecoyUserNameList = dynamic ([\"DecoyUser1\",\"DecoyUser2\"]);\nSecurityEvent\n | where TargetUserName in (DecoyUserNameList)\n | where EventID in (4624,4625)\n | summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by EventID, Computer, TargetUserName, LogonTypeName, IpAddress\n | extend Account_0_Name = TargetUserName\n | extend Host_0_HostName = Computer\n | extend IP_0_Address = IpAddress \n",
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"LateralMovement"
],
"techniques": [
"T1021"
],
"alertRuleTemplateName": "a4dbc292-87eb-11ec-a8a3-0242ac120002",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"identifier": "Name",
"columnName": "TargetUserName"
}
],
"entityType": "Account"
},
{
"fieldMappings": [
{
"identifier": "HostName",
"columnName": "Computer"
}
],
"entityType": "Host"
},
{
"fieldMappings": [
{
"identifier": "Address",
"columnName": "IpAddress"
}
],
"entityType": "IP"
}
],
"templateVersion": "2.0.1",
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Windows Security Events/Hunting Queries/DecoyUserAccountAuthenticationAttempt.yaml"
}
}
]
}