Skip to content

Commit a1e40de

Browse files
SamirbousMikaayensonw0rk3r
authored
[New] Alerts From Multiple Integrations by Entity (#5460)
* [New] Alerts From Multiple Integrations by Entity IP Higher-Order Rules that trigger on different integrations with different event.category (e.g. authentication with endpoint, email with network etc.) for the same entity (user, IP) in an interval of 4 hours. rule is set to run every 1h. - Alerts From Multiple Integrations by Source Address - Alerts From Multiple Integrations by Destination IP - Alerts From Multiple Integrations by User Name * ++ * ++ * ++ * ++ * Update rules/cross-platform/multiple_alerts_from_different_modules_by_dstip.toml Co-authored-by: Mika Ayenson, PhD <[email protected]> * Update rules/cross-platform/multiple_alerts_from_different_modules_by_user.toml Co-authored-by: Mika Ayenson, PhD <[email protected]> * Update rules/cross-platform/multiple_alerts_from_different_modules_by_user.toml Co-authored-by: Mika Ayenson, PhD <[email protected]> * Update rules/cross-platform/multiple_alerts_from_different_modules_by_srcip.toml Co-authored-by: Mika Ayenson, PhD <[email protected]> * Update rules/cross-platform/multiple_alerts_from_different_modules_by_user.toml Co-authored-by: Mika Ayenson, PhD <[email protected]> * Update rules/cross-platform/multiple_alerts_from_different_modules_by_dstip.toml Co-authored-by: Mika Ayenson, PhD <[email protected]> * Update rules/cross-platform/multiple_alerts_from_different_modules_by_user.toml Co-authored-by: Mika Ayenson, PhD <[email protected]> * Update rules/cross-platform/multiple_alerts_from_different_modules_by_dstip.toml Co-authored-by: Mika Ayenson, PhD <[email protected]> * Update rules/cross-platform/multiple_alerts_from_different_modules_by_srcip.toml Co-authored-by: Mika Ayenson, PhD <[email protected]> * Update multiple_alerts_from_different_modules_by_dstip.toml * Update multiple_alerts_from_different_modules_by_dstip.toml * Update multiple_alerts_from_different_modules_by_srcip.toml * Update multiple_alerts_from_different_modules_by_user.toml * Update multiple_alerts_from_different_modules_by_dstip.toml * Update multiple_alerts_from_different_modules_by_srcip.toml * Update rules/cross-platform/multiple_alerts_from_different_modules_by_dstip.toml Co-authored-by: Jonhnathan <[email protected]> * Update rules/cross-platform/multiple_alerts_from_different_modules_by_srcip.toml Co-authored-by: Jonhnathan <[email protected]> * Update rules/cross-platform/multiple_alerts_from_different_modules_by_user.toml Co-authored-by: Jonhnathan <[email protected]> * Update multiple_alerts_from_different_modules_by_dstip.toml * Update multiple_alerts_from_different_modules_by_srcip.toml * Update multiple_alerts_from_different_modules_by_user.toml --------- Co-authored-by: Mika Ayenson, PhD <[email protected]> Co-authored-by: Jonhnathan <[email protected]>
1 parent 25545b5 commit a1e40de

File tree

3 files changed

+264
-0
lines changed

3 files changed

+264
-0
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
[metadata]
2+
creation_date = "2025/12/15"
3+
maturity = "production"
4+
updated_date = "2025/12/15"
5+
6+
[rule]
7+
author = ["Elastic"]
8+
description = """
9+
This rule uses alert data to determine when multiple alerts from different integrations with unique event categories and involving
10+
the same destination.ip are triggered. Analysts can use this to prioritize triage and response, as these IP address is more likely
11+
to be related to a compromise.
12+
"""
13+
from = "now-60m"
14+
interval = "30m"
15+
language = "esql"
16+
license = "Elastic License v2"
17+
name = "Alerts From Multiple Integrations by Destination Address"
18+
risk_score = 73
19+
rule_id = "08933236-b27a-49f6-b04a-a616983f04b9"
20+
severity = "high"
21+
tags = ["Use Case: Threat Detection", "Rule Type: Higher-Order Rule", "Resources: Investigation Guide"]
22+
timestamp_override = "event.ingested"
23+
type = "esql"
24+
25+
query = '''
26+
from .alerts-security.*
27+
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")
30+
31+
// group alerts by destination.ip and extract values of interest for alert triage
32+
| stats Esql.event_module_distinct_count = COUNT_DISTINCT(event.module),
33+
Esql.rule_name_distinct_count = COUNT_DISTINCT(kibana.alert.rule.name),
34+
Esql.event_category_distinct_count = COUNT_DISTINCT(event.category),
35+
Esql.rule_risk_score_distinct_count = COUNT_DISTINCT(kibana.alert.risk_score),
36+
Esql.event_module_values = VALUES(event.module),
37+
Esql.rule_name_values = VALUES(kibana.alert.rule.name),
38+
Esql.message_values = VALUES(message),
39+
Esql.event_category_values = VALUES(event.category),
40+
Esql.event_action_values = VALUES(event.action),
41+
Esql.source_ip_values = VALUES(source.ip),
42+
Esql.host_id_values = VALUES(host.id),
43+
Esql.agent_id_values = VALUES(agent.id),
44+
Esql.user_name_values = VALUES(user.name),
45+
Esql.rule_severity_values = VALUES(kibana.alert.risk_score) by destination.ip
46+
47+
// 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
48+
| 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 or Esql.rule_severity_values == 99)
49+
| keep destination.ip, Esql.*
50+
'''
51+
note = """## Triage and analysis
52+
53+
> **Disclaimer**:
54+
> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
55+
56+
### Investigating Alerts From Multiple Integrations by Destination Address
57+
58+
The detection rule uses alert data to determine when multiple alerts from different integrations involving the same destination.ip are triggered.
59+
60+
### Possible investigation steps
61+
62+
- Review the alert details to identify the specific host involved and the different modules and rules that triggered the alert.
63+
- Examine the timeline of the alerts to understand the sequence of events and determine if there is a pattern or progression in the tactics used.
64+
- Correlate the alert data with other logs and telemetry from the host, such as process creation, network connections, and file modifications, to gather additional context.
65+
- Investigate any known vulnerabilities or misconfigurations on the host that could have been exploited by the adversary.
66+
- Check for any indicators of compromise (IOCs) associated with the alerts, such as suspicious IP addresses, domains, or file hashes, and search for these across the network.
67+
- Assess the impact and scope of the potential compromise by determining if other hosts or systems have similar alerts or related activity.
68+
69+
### False positive analysis
70+
71+
- Alerts from routine administrative tasks may trigger multiple tactics. Review and exclude known benign activities such as scheduled software updates or system maintenance.
72+
- Security tools running on the host might generate alerts across different tactics. Identify and exclude alerts from trusted security applications to reduce noise.
73+
- Automated scripts or batch processes can mimic adversarial behavior. Analyze and whitelist these processes if they are verified as non-threatening.
74+
- Frequent alerts from development or testing environments can be misleading. Consider excluding these environments from the rule or applying a different risk score.
75+
- User behavior anomalies, such as accessing multiple systems or applications, might trigger alerts. Implement user behavior baselines to differentiate between normal and suspicious activities.
76+
77+
### Response and remediation
78+
79+
- Isolate the affected host from the network immediately to prevent further lateral movement by the adversary.
80+
- Conduct a thorough forensic analysis of the host to identify the specific vulnerabilities exploited and gather evidence of the attack phases involved.
81+
- Remove any identified malicious software or unauthorized access tools from the host, ensuring all persistence mechanisms are eradicated.
82+
- Apply security patches and updates to the host to address any exploited vulnerabilities and prevent similar attacks.
83+
- Restore the host from a known good backup if necessary, ensuring that the backup is free from compromise.
84+
- Monitor the host and network for any signs of re-infection or further suspicious activity, using enhanced logging and alerting based on the identified attack patterns.
85+
- Escalate the incident to the appropriate internal or external cybersecurity teams for further investigation and potential legal action if the attack is part of a larger campaign."""
86+
87+
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
[metadata]
2+
creation_date = "2025/12/15"
3+
maturity = "production"
4+
updated_date = "2025/12/15"
5+
6+
[rule]
7+
author = ["Elastic"]
8+
description = """
9+
This rule uses alert data to determine when multiple alerts from different integrations with unique event categories and
10+
involving the same source.ip are triggered. Analysts can use this to prioritize triage and response, as these IP addresses
11+
are more likely to be related to a compromise.
12+
"""
13+
from = "now-60m"
14+
interval = "30m"
15+
language = "esql"
16+
license = "Elastic License v2"
17+
name = "Alerts From Multiple Integrations by Source Address"
18+
risk_score = 73
19+
rule_id = "7d02c440-52a8-4854-ad3f-71af7fbb4fc6"
20+
severity = "high"
21+
tags = ["Use Case: Threat Detection", "Rule Type: Higher-Order Rule", "Resources: Investigation Guide"]
22+
timestamp_override = "event.ingested"
23+
type = "esql"
24+
25+
query = '''
26+
from .alerts-security.*
27+
28+
// any alerts excluding low severity and the noisy ones
29+
| where kibana.alert.rule.name is not null and source.ip is not null and kibana.alert.risk_score > 21 and
30+
not kibana.alert.rule.type in ("threat_match", "machine_learning")
31+
32+
// group alerts by source.ip and extract values of interest for alert triage
33+
| stats Esql.event_module_distinct_count = COUNT_DISTINCT(event.module),
34+
Esql.rule_name_distinct_count = COUNT_DISTINCT(kibana.alert.rule.name),
35+
Esql.event_category_distinct_count = COUNT_DISTINCT(event.category),
36+
Esql.rule_risk_score_distinct_count = COUNT_DISTINCT(kibana.alert.risk_score),
37+
Esql.event_module_values = VALUES(event.module),
38+
Esql.rule_name_values = VALUES(kibana.alert.rule.name),
39+
Esql.message_values = VALUES(message),
40+
Esql.event_category_values = VALUES(event.category),
41+
Esql.event_action_values = VALUES(event.action),
42+
Esql.destination_ip_values = VALUES(destination.ip),
43+
Esql.host_id_values = VALUES(host.id),
44+
Esql.agent_id_values = VALUES(agent.id),
45+
Esql.user_name_values = VALUES(user.name),
46+
Esql.rule_severity_values = VALUES(kibana.alert.risk_score) by source.ip
47+
48+
// filter for alerts from same source.ip reported by different integrations with unique categories and with different severity levels
49+
| 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 or Esql.rule_severity_values == 99)
50+
| keep source.ip, Esql.*
51+
'''
52+
note = """## Triage and analysis
53+
54+
> **Disclaimer**:
55+
> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
56+
57+
### Investigating Alerts From Multiple Integrations by Source Address
58+
59+
The detection rule uses alert data to determine when multiple alerts from different integrations involving the same source.ip are triggered.
60+
61+
### Possible investigation steps
62+
63+
- Review the alert details to identify the specific host involved and the different modules and rules that triggered the alert.
64+
- Examine the timeline of the alerts to understand the sequence of events and determine if there is a pattern or progression in the tactics used.
65+
- Correlate the alert data with other logs and telemetry from the host, such as process creation, network connections, and file modifications, to gather additional context.
66+
- Investigate any known vulnerabilities or misconfigurations on the host that could have been exploited by the adversary.
67+
- Check for any indicators of compromise (IOCs) associated with the alerts, such as suspicious IP addresses, domains, or file hashes, and search for these across the network.
68+
- Assess the impact and scope of the potential compromise by determining if other hosts or systems have similar alerts or related activity.
69+
70+
### False positive analysis
71+
72+
- Alerts from routine administrative tasks may trigger multiple tactics. Review and exclude known benign activities such as scheduled software updates or system maintenance.
73+
- Security tools running on the host might generate alerts across different tactics. Identify and exclude alerts from trusted security applications to reduce noise.
74+
- Automated scripts or batch processes can mimic adversarial behavior. Analyze and whitelist these processes if they are verified as non-threatening.
75+
- Frequent alerts from development or testing environments can be misleading. Consider excluding these environments from the rule or applying a different risk score.
76+
- User behavior anomalies, such as accessing multiple systems or applications, might trigger alerts. Implement user behavior baselines to differentiate between normal and suspicious activities.
77+
78+
### Response and remediation
79+
80+
- Isolate the affected host from the network immediately to prevent further lateral movement by the adversary.
81+
- Conduct a thorough forensic analysis of the host to identify the specific vulnerabilities exploited and gather evidence of the attack phases involved.
82+
- Remove any identified malicious software or unauthorized access tools from the host, ensuring all persistence mechanisms are eradicated.
83+
- Apply security patches and updates to the host to address any exploited vulnerabilities and prevent similar attacks.
84+
- Restore the host from a known good backup if necessary, ensuring that the backup is free from compromise.
85+
- Monitor the host and network for any signs of re-infection or further suspicious activity, using enhanced logging and alerting based on the identified attack patterns.
86+
- Escalate the incident to the appropriate internal or external cybersecurity teams for further investigation and potential legal action if the attack is part of a larger campaign."""
87+
88+
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
[metadata]
2+
creation_date = "2025/12/15"
3+
maturity = "production"
4+
updated_date = "2025/12/15"
5+
6+
[rule]
7+
author = ["Elastic"]
8+
description = """
9+
This rule uses alert data to determine when multiple alerts from different integrations with unique event categories and
10+
involving the same user.name are triggered. Analysts can use this to prioritize triage and response, as these users are
11+
more likely to be compromised.
12+
"""
13+
from = "now-60m"
14+
interval = "30m"
15+
language = "esql"
16+
license = "Elastic License v2"
17+
name = "Alerts From Multiple Integrations by User Name"
18+
risk_score = 73
19+
rule_id = "1dd99dbf-b98d-4956-876b-f13bc0ce017f"
20+
severity = "high"
21+
tags = ["Use Case: Threat Detection", "Rule Type: Higher-Order Rule", "Resources: Investigation Guide"]
22+
timestamp_override = "event.ingested"
23+
type = "esql"
24+
25+
query = '''
26+
from .alerts-security.*
27+
28+
// any alerts excluding low severity and the noisy ones
29+
| 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.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")
32+
33+
// group alerts by user.name and extract values of interest for alert triage
34+
| stats Esql.event_module_distinct_count = COUNT_DISTINCT(event.module),
35+
Esql.rule_name_distinct_count = COUNT_DISTINCT(kibana.alert.rule.name),
36+
Esql.event_category_distinct_count = COUNT_DISTINCT(event.category),
37+
Esql.rule_risk_score_distinct_count = COUNT_DISTINCT(kibana.alert.risk_score),
38+
Esql.event_module_values = VALUES(event.module),
39+
Esql.rule_name_values = VALUES(kibana.alert.rule.name),
40+
Esql.message_values = VALUES(message),
41+
Esql.event_category_values = VALUES(event.category),
42+
Esql.event_action_values = VALUES(event.action),
43+
Esql.source_ip_values = VALUES(source.ip),
44+
Esql.destination_ip_values = VALUES(destination.ip),
45+
Esql.host_id_values = VALUES(host.id),
46+
Esql.agent_id_values = VALUES(agent.id),
47+
Esql.rule_severity_values = VALUES(kibana.alert.risk_score) by user.name, user.id
48+
49+
// 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_risk_score_distinct_count >= 2 or Esql.rule_severity_values == 73 or Esql.rule_severity_values == 99)
51+
| keep user.name, Esql.*
52+
'''
53+
note = """## Triage and analysis
54+
55+
> **Disclaimer**:
56+
> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.
57+
58+
### Investigating Alerts From Multiple Integrations by User Name
59+
60+
The detection rule uses alert data to determine when multiple alerts from different integrations involving the same user.name are triggered.
61+
62+
### Possible investigation steps
63+
64+
- Review the alert details to identify the specific user involved and the different modules and rules that triggered the alert.
65+
- Examine the timeline of the alerts to understand the sequence of events and determine if there is a pattern or progression in the tactics used.
66+
- Correlate the alert data with other logs and telemetry from the host, such as process creation, network connections, and file modifications, to gather additional context.
67+
- Investigate any known vulnerabilities or misconfigurations on the host that could have been exploited by the adversary.
68+
- Check for any indicators of compromise (IOCs) associated with the alerts, such as suspicious IP addresses, domains, or file hashes, and search for these across the network.
69+
- Assess the impact and scope of the potential compromise by determining if other hosts or systems have similar alerts or related activity.
70+
71+
### False positive analysis
72+
73+
- Alerts from routine administrative tasks may trigger multiple tactics. Review and exclude known benign activities such as scheduled software updates or system maintenance.
74+
- Security tools running on the host might generate alerts across different tactics. Identify and exclude alerts from trusted security applications to reduce noise.
75+
- Automated scripts or batch processes can mimic adversarial behavior. Analyze and whitelist these processes if they are verified as non-threatening.
76+
- Frequent alerts from development or testing environments can be misleading. Consider excluding these environments from the rule or applying a different risk score.
77+
- User behavior anomalies, such as accessing multiple systems or applications, might trigger alerts. Implement user behavior baselines to differentiate between normal and suspicious activities.
78+
79+
### Response and remediation
80+
81+
- Isolate the affected host from the network immediately to prevent further lateral movement by the adversary.
82+
- Conduct a thorough forensic analysis of the host to identify the specific vulnerabilities exploited and gather evidence of the attack phases involved.
83+
- Remove any identified malicious software or unauthorized access tools from the host, ensuring all persistence mechanisms are eradicated.
84+
- Apply security patches and updates to the host to address any exploited vulnerabilities and prevent similar attacks.
85+
- Restore the host from a known good backup if necessary, ensuring that the backup is free from compromise.
86+
- Monitor the host and network for any signs of re-infection or further suspicious activity, using enhanced logging and alerting based on the identified attack patterns.
87+
- Escalate the incident to the appropriate internal or external cybersecurity teams for further investigation and potential legal action if the attack is part of a larger campaign."""
88+
89+

0 commit comments

Comments
 (0)