-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPIKiterunnerDetection.yaml
44 lines (44 loc) · 1.31 KB
/
APIKiterunnerDetection.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
id: 421b38ec-4295-4aed-8299-c92e268ad663
name: API - Kiterunner detection
description: |
'42Crunch API protection against Kiterunner enumeration'
severity: Medium
requiredDataConnectors:
- connectorId: 42CrunchAPIProtection
dataTypes:
- apifirewall_log_1_CL
queryFrequency: 5m
queryPeriod: 5m
triggerOperator: gt
triggerThreshold: 0
eventGroupingSettings:
aggregationKind: SingleAlert
status: Available
tactics:
- Reconnaissance
- Discovery
relevantTechniques:
query: |
let discoveryRecords = apifirewall_log_1_CL
| where TimeGenerated >= ago(5m)
| project-away Non_blocking_mode_b, Source_Port_d, Destination_Port_d, Query_s, API_ID_g, Request_Header_s, Response_Header_s, Errors_s, Type, UUID_g
| where Status_d == 404 and Error_Message_s startswith "path not defined in OAS";
let discoveryCnt = (toscalar(discoveryRecords | count));
let recCount = iff((discoveryCnt > 500), 1, 0);
discoveryRecords | top recCount by Timestamp_t desc
customDetails:
entityMappings:
- entityType: IP
fieldMappings:
- identifier: Address
columnName: Source_IP_s
- entityType: Host
fieldMappings:
- identifier: HostName
columnName: Hostname_s
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: Instance_Name_s
version: 1.0.0
kind: Scheduled