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 | PaloAltoCDL |
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.1 |
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
requiredDataConnectors:
- connectorId: PaloAltoCDL
dataTypes:
- PaloAltoCDLEvent
triggerOperator: gt
queryFrequency: 1h
name: PaloAlto - Forbidden countries
status: Available
queryPeriod: 1h
id: 9fcc7734-4d1b-11ec-81d3-0242ac130003
description: |
'Detects suspicious connections from forbidden countries.'
severity: Medium
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
version: 1.0.1
kind: Scheduled
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PaloAltoCDL/Analytic Rules/PaloAltoCDLUnexpectedCountries.yaml
entityMappings:
- entityType: Account
fieldMappings:
- identifier: Name
columnName: AccountCustomEntity
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
relevantTechniques:
- T1190
- T1133
tactics:
- InitialAccess
triggerThreshold: 0
{
"$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/9fcc7734-4d1b-11ec-81d3-0242ac130003')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/9fcc7734-4d1b-11ec-81d3-0242ac130003')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "PaloAlto - Forbidden countries",
"description": "'Detects suspicious connections from forbidden countries.'\n",
"severity": "Medium",
"enabled": true,
"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",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1190",
"T1133"
],
"alertRuleTemplateName": "9fcc7734-4d1b-11ec-81d3-0242ac130003",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"identifier": "Name",
"columnName": "AccountCustomEntity"
}
],
"entityType": "Account"
},
{
"fieldMappings": [
{
"identifier": "Address",
"columnName": "IPCustomEntity"
}
],
"entityType": "IP"
}
],
"templateVersion": "1.0.1",
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PaloAltoCDL/Analytic Rules/PaloAltoCDLUnexpectedCountries.yaml",
"status": "Available"
}
}
]
}