From 7fc1d07e79384c1a209a943cc6a8e6ed8e40e6c6 Mon Sep 17 00:00:00 2001 From: Samirbous <64742097+Samirbous@users.noreply.github.com> Date: Wed, 10 Dec 2025 15:52:47 +0000 Subject: [PATCH] Update defense_evasion_agent_spoofing_multiple_hosts.toml --- .../defense_evasion_agent_spoofing_multiple_hosts.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/cross-platform/defense_evasion_agent_spoofing_multiple_hosts.toml b/rules/cross-platform/defense_evasion_agent_spoofing_multiple_hosts.toml index 3cceaea1877..84468fac2f7 100644 --- a/rules/cross-platform/defense_evasion_agent_spoofing_multiple_hosts.toml +++ b/rules/cross-platform/defense_evasion_agent_spoofing_multiple_hosts.toml @@ -2,7 +2,7 @@ creation_date = "2021/07/14" integration = ["endpoint"] maturity = "production" -updated_date = "2025/11/13" +updated_date = "2025/12/10" [rule] author = ["Elastic"] @@ -30,7 +30,7 @@ type = "esql" query = ''' from logs-endpoint.* metadata _id -| where event.agent_id_status is not null +| where event.agent_id_status is not null and agent.id is not null | stats Esql.count_distinct_host_ids = count_distinct(host.id), Esql.host_id_values = values(host.id), Esql.user_id_values_user_id = values(user.id) by agent.id | where Esql.count_distinct_host_ids >= 2 | keep Esql.count_distinct_host_ids, Esql.host_id_values, Esql.user_id_values_user_id, agent.id