Zscaler - Forbidden countries
| Id | b3d112b4-3e1e-11ec-9bbc-0242ac130002 |
| Rulename | Zscaler - Forbidden countries |
| Description | Detects suspicious ZPA connections from forbidden countries. |
| Severity | High |
| Tactics | InitialAccess |
| Techniques | T1190 T1133 |
| Required data connectors | CustomLogsAma |
| 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/Zscaler Private Access (ZPA)/Analytic Rules/ZscalerUnexpectedCountries.yaml |
| Version | 1.0.2 |
| Arm template | b3d112b4-3e1e-11ec-9bbc-0242ac130002.json |
let bl_countries = dynamic(['CH', 'RU']); //List of countries from which you do not expect connections
ZPAEvent
| where DvcAction == 'open'
| where SrcGeoCountry in~ (bl_countries)
| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName
name: Zscaler - Forbidden countries
query: |
let bl_countries = dynamic(['CH', 'RU']); //List of countries from which you do not expect connections
ZPAEvent
| where DvcAction == 'open'
| where SrcGeoCountry in~ (bl_countries)
| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName
queryFrequency: 1h
triggerOperator: gt
requiredDataConnectors:
- datatypes:
- ZPA_CL
connectorId: CustomLogsAma
status: Available
entityMappings:
- entityType: Account
fieldMappings:
- identifier: Name
columnName: AccountCustomEntity
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
triggerThreshold: 0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Zscaler Private Access (ZPA)/Analytic Rules/ZscalerUnexpectedCountries.yaml
description: |
'Detects suspicious ZPA connections from forbidden countries.'
version: 1.0.2
id: b3d112b4-3e1e-11ec-9bbc-0242ac130002
kind: Scheduled
relevantTechniques:
- T1190
- T1133
severity: High
tactics:
- InitialAccess
queryPeriod: 1h