CiscoDuo
| where EventType =~ 'authentication'
| where EventResult =~ 'success'
| where isnotempty(AuthDeviceCountry)
| summarize src_c = makeset(AuthDeviceCountry) by SrcIpAddr
| join (CiscoDuo
| where EventType =~ 'authentication'
| where EventResult =~ 'success') on SrcIpAddr
| where src_c !has AuthDeviceCountry
| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName
tactics:
- InitialAccess
query: |
CiscoDuo
| where EventType =~ 'authentication'
| where EventResult =~ 'success'
| where isnotempty(AuthDeviceCountry)
| summarize src_c = makeset(AuthDeviceCountry) by SrcIpAddr
| join (CiscoDuo
| where EventType =~ 'authentication'
| where EventResult =~ 'success') on SrcIpAddr
| where src_c !has AuthDeviceCountry
| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName
queryFrequency: 1h
entityMappings:
- fieldMappings:
- identifier: Address
columnName: IPCustomEntity
entityType: IP
- fieldMappings:
- identifier: Name
columnName: AccountCustomEntity
entityType: Account
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CiscoDuoSecurity/Analytic Rules/CiscoDuoNewAuthDeviceLocation.yaml
queryPeriod: 14d
kind: Scheduled
version: 1.0.0
triggerOperator: gt
status: Available
relevantTechniques:
- T1078
name: Cisco Duo - Authentication device new location
triggerThreshold: 0
severity: Medium
description: |
'Detects new location of authentication device.'
requiredDataConnectors:
- dataTypes:
- CiscoDuo
connectorId: CiscoDuoSecurity
id: 01df3abe-3dc7-40e2-8aa7-f00b402df6f0
{
"$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/01df3abe-3dc7-40e2-8aa7-f00b402df6f0')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/01df3abe-3dc7-40e2-8aa7-f00b402df6f0')]",
"properties": {
"alertRuleTemplateName": "01df3abe-3dc7-40e2-8aa7-f00b402df6f0",
"customDetails": null,
"description": "'Detects new location of authentication device.'\n",
"displayName": "Cisco Duo - Authentication device new location",
"enabled": true,
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "IPCustomEntity",
"identifier": "Address"
}
]
},
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "AccountCustomEntity",
"identifier": "Name"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CiscoDuoSecurity/Analytic Rules/CiscoDuoNewAuthDeviceLocation.yaml",
"query": "CiscoDuo\n| where EventType =~ 'authentication'\n| where EventResult =~ 'success'\n| where isnotempty(AuthDeviceCountry)\n| summarize src_c = makeset(AuthDeviceCountry) by SrcIpAddr\n| join (CiscoDuo\n | where EventType =~ 'authentication'\n | where EventResult =~ 'success') on SrcIpAddr\n| where src_c !has AuthDeviceCountry\n| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName\n",
"queryFrequency": "PT1H",
"queryPeriod": "P14D",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1078"
],
"templateVersion": "1.0.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}