You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rules/cross-platform/multiple_alerts_from_different_modules_by_dstip.toml
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,8 @@ type = "esql"
25
25
query = '''
26
26
from .alerts-security.* metadata _id
27
27
28
-
// any alerts excluding low severity and the noisy ones
29
-
| where kibana.alert.rule.name is not null and destination.ip is not null and kibana.alert.risk_score > 21 and
30
-
not kibana.alert.rule.name in ("Threat Intel IP Address Indicator Match", "Threat Intel Indicator Match", "Agent Spoofing - Mismatched Agent ID")
28
+
// any alerts excluding low severity, threat_match and machine_learning rules
29
+
| where kibana.alert.rule.name is not null and destination.ip is not null and kibana.alert.risk_score > 21 and not kibana.alert.rule.type in ("threat_match", "machine_learning")
31
30
32
31
// group alerts by destination.ip and extract values of interest for alert triage
@@ -44,8 +43,8 @@ from .alerts-security.* metadata _id
44
43
Esql.user_name_values = VALUES(user.name),
45
44
Esql.rule_severity_values = VALUES(kibana.alert.risk_score) by destination.ip
46
45
47
-
// filter for alerts from same destination.ip reported by different integrations with unique categories and with different severity levels
48
-
| where Esql.event_module_distinct_count >= 2 and Esql.event_category_distinct_count >= 2 and Esql.rule_severity_distinct_count >= 2
46
+
// filter for alerts from same destination.ip reported by different integrations with unique categories and with different severity levels or presence of high severity alerts
47
+
| where Esql.event_module_distinct_count >= 2 and Esql.event_category_distinct_count >= 2 and (Esql.rule_risk_score_distinct_count >= 2 or Esql.rule_severity_values == 73)
0 commit comments