let threshold = 10;
PaloAltoCDLEvent
| where EventResourceId =~ 'TRAFFIC'
| where isnotempty(DstPortNumber) and isnotempty(SrcIpAddr)
| summarize PortSet = make_set(DstPortNumber) by SrcIpAddr, bin(TimeGenerated, 5m)
| where array_length(PortSet) > threshold
| extend IPCustomEntity = SrcIpAddr
entityMappings:
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
tactics:
- Reconnaissance
requiredDataConnectors:
- dataTypes:
- CommonSecurityLog
connectorId: CefAma
id: 3575a9c0-51c9-11ec-bf63-0242ac130002
severity: High
status: Available
query: |
let threshold = 10;
PaloAltoCDLEvent
| where EventResourceId =~ 'TRAFFIC'
| where isnotempty(DstPortNumber) and isnotempty(SrcIpAddr)
| summarize PortSet = make_set(DstPortNumber) by SrcIpAddr, bin(TimeGenerated, 5m)
| where array_length(PortSet) > threshold
| extend IPCustomEntity = SrcIpAddr
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PaloAltoCDL/Analytic Rules/PaloAltoCDLPossiblePortScan.yaml
kind: Scheduled
queryPeriod: 1h
version: 1.0.4
name: PaloAlto - Possible port scan
queryFrequency: 1h
triggerThreshold: 0
relevantTechniques:
- T1595
description: |
'Detects possible port scan.'
triggerOperator: gt