Zscaler - ZPA connections outside operational hours
Id | 2859ad22-46c8-4cc7-ad7b-80ce0cba0af3 |
Rulename | Zscaler - ZPA connections outside operational hours |
Description | Detects ZAP connections outside operational hours. |
Severity | Medium |
Tactics | InitialAccess |
Techniques | T1190 T1133 |
Required data connectors | CustomLogsAma ZscalerPrivateAccess |
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/ZscalerZPAConnectionsOutsideOperationalHours.yaml |
Version | 1.0.1 |
Arm template | 2859ad22-46c8-4cc7-ad7b-80ce0cba0af3.json |
ZPAEvent
| where DvcAction == 'open'
| where datetime_part("Hour", todatetime(LogTimestamp)) between (datetime_part("Hour", todatetime('19:01:00.7654321')) .. datetime_part("Hour", todatetime('08:01:00.7654321')))
| summarize count() by DstUserName
| project DstUserName
| extend AccountCustomEntity = DstUserName
queryFrequency: 1h
description: |
'Detects ZAP connections outside operational hours.'
name: Zscaler - ZPA connections outside operational hours
relevantTechniques:
- T1190
- T1133
triggerThreshold: 0
status: Available
id: 2859ad22-46c8-4cc7-ad7b-80ce0cba0af3
requiredDataConnectors:
- dataTypes:
- ZPAEvent
connectorId: ZscalerPrivateAccess
- datatypes:
- ZPA_CL
connectorId: CustomLogsAma
entityMappings:
- entityType: Account
fieldMappings:
- identifier: Name
columnName: AccountCustomEntity
queryPeriod: 1h
query: |
ZPAEvent
| where DvcAction == 'open'
| where datetime_part("Hour", todatetime(LogTimestamp)) between (datetime_part("Hour", todatetime('19:01:00.7654321')) .. datetime_part("Hour", todatetime('08:01:00.7654321')))
| summarize count() by DstUserName
| project DstUserName
| extend AccountCustomEntity = DstUserName
kind: Scheduled
severity: Medium
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Zscaler Private Access (ZPA)/Analytic Rules/ZscalerZPAConnectionsOutsideOperationalHours.yaml
version: 1.0.1
triggerOperator: gt
tactics:
- InitialAccess
{
"$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/2859ad22-46c8-4cc7-ad7b-80ce0cba0af3')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/2859ad22-46c8-4cc7-ad7b-80ce0cba0af3')]",
"properties": {
"alertRuleTemplateName": "2859ad22-46c8-4cc7-ad7b-80ce0cba0af3",
"customDetails": null,
"description": "'Detects ZAP connections outside operational hours.'\n",
"displayName": "Zscaler - ZPA connections outside operational hours",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "AccountCustomEntity",
"identifier": "Name"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Zscaler Private Access (ZPA)/Analytic Rules/ZscalerZPAConnectionsOutsideOperationalHours.yaml",
"query": "ZPAEvent \n| where DvcAction == 'open'\n| where datetime_part(\"Hour\", todatetime(LogTimestamp)) between (datetime_part(\"Hour\", todatetime('19:01:00.7654321')) .. datetime_part(\"Hour\", todatetime('08:01:00.7654321')))\n| summarize count() by DstUserName \n| project DstUserName\n| extend AccountCustomEntity = DstUserName\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1133",
"T1190"
],
"templateVersion": "1.0.1",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}