-
Notifications
You must be signed in to change notification settings - Fork 493
Expand file tree
/
Copy pathMulti-vector attack correlation.kql
More file actions
53 lines (52 loc) · 1.72 KB
/
Multi-vector attack correlation.kql
File metadata and controls
53 lines (52 loc) · 1.72 KB
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
45
46
47
48
49
50
51
52
53
// Author: fgravato
// Display name: Multi-Vector Attack Correlation
// Description: Identifies devices experiencing multiple threat types within 24 hours, indicating coordinated or sophisticated attacks targeting mobile devices.
// Categories: Security
// Resource types: Log Analytics workspaces
// Topic: Security
let timeWindow = 24h;
let threatEvents = LookoutEvents
| where TimeGenerated > ago(timeWindow)
| where EventType == "THREAT"
| where ThreatSeverity in ("CRITICAL", "HIGH")
| summarize
ThreatTypes = make_set(ThreatType),
ThreatCount = count(),
FirstThreat = min(TimeGenerated),
LastThreat = max(TimeGenerated),
ThreatClassifications = make_set(ThreatClassifications)
by DeviceGuid, DeviceEmailAddress, DevicePlatform;
let smishingEvents = LookoutEvents
| where TimeGenerated > ago(timeWindow)
| where EventType == "SMISHING_ALERT"
| where SmishingAlertSeverity in ("CRITICAL", "HIGH")
| summarize
SmishingTypes = make_set(SmishingAlertType),
SmishingCount = count(),
FirstSmishing = min(TimeGenerated)
by DeviceGuid;
threatEvents
| join kind=leftouter (smishingEvents) on DeviceGuid
| where ThreatCount >= 2 or SmishingCount >= 1
| extend AttackDuration = LastThreat - FirstThreat
| extend MultiVectorRisk = case(
ThreatCount >= 3 and SmishingCount >= 1, "Critical",
ThreatCount >= 2 and SmishingCount >= 1, "High",
ThreatCount >= 3, "High",
ThreatCount >= 2, "Medium",
"Low"
)
| project
DeviceGuid,
DeviceEmailAddress,
DevicePlatform,
ThreatTypes,
SmishingTypes,
ThreatCount,
SmishingCount,
AttackDuration,
MultiVectorRisk,
FirstThreat,
LastThreat,
ThreatClassifications
| order by MultiVectorRisk desc, ThreatCount desc