Skip to content

Commit e34d0c3

Browse files
authored
Update multiple_alerts_from_different_modules_by_user.toml
1 parent 9f8f3fa commit e34d0c3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rules/cross-platform/multiple_alerts_from_different_modules_by_user.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ from .alerts-security.* metadata _id
2727
2828
// any alerts excluding low severity and the noisy ones
2929
| where kibana.alert.rule.name is not null and user.name 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") and
31-
not user.id in ("S-1-5-18", "S-1-5-19", "S-1-5-20")
30+
not kibana.alert.rule.type in ("threat_match", "machine_learning") and
31+
not user.id in ("S-1-5-18", "S-1-5-19", "S-1-5-20", "0")
3232
3333
// group alerts by user.name and extract values of interest for alert triage
3434
| stats Esql.event_module_distinct_count = COUNT_DISTINCT(event.module),
@@ -39,15 +39,15 @@ from .alerts-security.* metadata _id
3939
Esql.rule_name_values = VALUES(kibana.alert.rule.name),
4040
Esql.message_values = VALUES(message),
4141
Esql.event_category_values = VALUES(event.category),
42+
Esql.event_action_values = VALUES(event.action),
4243
Esql.source_ip_values = VALUES(source.ip),
4344
Esql.destination_ip_values = VALUES(destination.ip),
4445
Esql.host_id_values = VALUES(host.id),
4546
Esql.agent_id_values = VALUES(agent.id),
46-
Esql.user_id_values = VALUES(user.id),
47-
Esql.rule_severity_values = VALUES(kibana.alert.risk_score) by user.name
47+
Esql.rule_severity_values = VALUES(kibana.alert.risk_score) by user.name, user.id
4848
4949
// filter for alerts from same destination.ip reported by different integrations with unique categories and with different severity levels
50-
| where Esql.event_module_distinct_count >= 2 and Esql.event_category_distinct_count >= 2 and Esql.rule_severity_distinct_count >= 2
50+
| 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)
5151
| keep user.name, Esql.*
5252
'''
5353
note = """## Triage and analysis

0 commit comments

Comments
 (0)