PaloAlto - Forbidden countries
Id | 9fcc7734-4d1b-11ec-81d3-0242ac130003 |
Rulename | PaloAlto - Forbidden countries |
Description | Detects suspicious connections from forbidden countries. |
Severity | Medium |
Tactics | InitialAccess |
Techniques | T1190 T1133 |
Required data connectors | CefAma |
Kind | Scheduled |
Query frequency | 1h |
Query period | 1h |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PaloAltoCDL/Analytic Rules/PaloAltoCDLUnexpectedCountries.yaml |
Version | 1.0.4 |
Arm template | 9fcc7734-4d1b-11ec-81d3-0242ac130003.json |
let bl_countries = dynamic(['CH', 'RU']);
PaloAltoCDLEvent
| where EventResourceId =~ 'TRAFFIC'
| where MaliciousIPCountry in (bl_countries)
| summarize count() by DstUsername, SrcIpAddr
| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUsername
relevantTechniques:
- T1190
- T1133
name: PaloAlto - Forbidden countries
requiredDataConnectors:
- dataTypes:
- CommonSecurityLog
connectorId: CefAma
entityMappings:
- fieldMappings:
- identifier: Name
columnName: AccountCustomEntity
entityType: Account
- fieldMappings:
- identifier: Address
columnName: IPCustomEntity
entityType: IP
triggerThreshold: 0
id: 9fcc7734-4d1b-11ec-81d3-0242ac130003
tactics:
- InitialAccess
version: 1.0.4
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PaloAltoCDL/Analytic Rules/PaloAltoCDLUnexpectedCountries.yaml
queryPeriod: 1h
kind: Scheduled
queryFrequency: 1h
severity: Medium
status: Available
description: |
'Detects suspicious connections from forbidden countries.'
query: |
let bl_countries = dynamic(['CH', 'RU']);
PaloAltoCDLEvent
| where EventResourceId =~ 'TRAFFIC'
| where MaliciousIPCountry in (bl_countries)
| summarize count() by DstUsername, SrcIpAddr
| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUsername
triggerOperator: gt
{
"$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/9fcc7734-4d1b-11ec-81d3-0242ac130003')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/9fcc7734-4d1b-11ec-81d3-0242ac130003')]",
"properties": {
"alertRuleTemplateName": "9fcc7734-4d1b-11ec-81d3-0242ac130003",
"customDetails": null,
"description": "'Detects suspicious connections from forbidden countries.'\n",
"displayName": "PaloAlto - Forbidden countries",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "AccountCustomEntity",
"identifier": "Name"
}
]
},
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "IPCustomEntity",
"identifier": "Address"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PaloAltoCDL/Analytic Rules/PaloAltoCDLUnexpectedCountries.yaml",
"query": "let bl_countries = dynamic(['CH', 'RU']);\nPaloAltoCDLEvent \n| where EventResourceId =~ 'TRAFFIC'\n| where MaliciousIPCountry in (bl_countries)\n| summarize count() by DstUsername, SrcIpAddr \n| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUsername\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1133",
"T1190"
],
"templateVersion": "1.0.4",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}