Skip to content

Commit 8a528d4

Browse files
authored
Update defense_evasion_agent_spoofing_multiple_hosts.toml
1 parent 7b6f486 commit 8a528d4

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

rules/cross-platform/defense_evasion_agent_spoofing_multiple_hosts.toml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[metadata]
22
creation_date = "2021/07/14"
33
maturity = "production"
4-
updated_date = "2025/01/15"
4+
updated_date = "2025/11/13"
55

66
[rule]
77
author = ["Elastic"]
@@ -17,19 +17,21 @@ false_positives = [
1717
""",
1818
]
1919
from = "now-9m"
20-
index = ["logs-*", "metrics-*", "traces-*"]
21-
language = "kuery"
20+
language = "esql"
2221
license = "Elastic License v2"
2322
name = "Agent Spoofing - Multiple Hosts Using Same Agent"
2423
risk_score = 73
2524
rule_id = "493834ca-f861-414c-8602-150d5505b777"
2625
severity = "high"
2726
tags = ["Use Case: Threat Detection", "Tactic: Defense Evasion", "Resources: Investigation Guide"]
2827
timestamp_override = "event.ingested"
29-
type = "threshold"
28+
type = "esql"
3029

3130
query = '''
32-
event.agent_id_status:* and not tags:forwarded
31+
from logs-endpoint.* metadata _id
32+
| where event.agent_id_status is not null and tags != "forwarded"
33+
| stats Esql.count_distinct_host_ids = count_distinct(host.id), Esql.host_id_values = values(host.id), Esql.user_id_values(user.id), Esql.user_id_values(user.name) by agent.id
34+
| where Esql.count_distinct_host_ids >= 2
3335
'''
3436
note = """## Triage and analysis
3537
@@ -80,11 +82,4 @@ id = "TA0005"
8082
name = "Defense Evasion"
8183
reference = "https://attack.mitre.org/tactics/TA0005/"
8284

83-
[rule.threshold]
84-
field = ["agent.id"]
85-
value = 2
86-
[[rule.threshold.cardinality]]
87-
field = "host.id"
88-
value = 2
89-
9085

0 commit comments

Comments
 (0)