Skip to content

Commit 09207ee

Browse files
alstoltentradebot-elastic
authored andcommitted
[Rule Tuning] Elastic Agent Service Terminated (#5272)
* rule-tuning: Elastic Agent service termination improve for detection * [Rule Tuning]: Elastic Agent Service terminated, updated date field * Enhance detection rules for stopping Elastic Agent * Fix syntax for process name checks in TOML file --------- Co-authored-by: Ruben Groenewoud <[email protected]> (cherry picked from commit 21217e5)
1 parent 610729d commit 09207ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rules/cross-platform/defense_evasion_elastic_agent_service_terminated.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2022/05/23"
33
integration = ["endpoint"]
44
maturity = "production"
5-
updated_date = "2025/01/15"
5+
updated_date = "2025/11/04"
66

77
[rule]
88
author = ["Elastic"]
@@ -50,12 +50,12 @@ process where
5050
or
5151
/* service or systemctl used to stop Elastic Agent on Linux */
5252
(event.type == "end" and
53-
(process.name : ("systemctl", "service") and
54-
process.args : "elastic-agent" and
55-
process.args : ("stop", "disable"))
53+
(process.name in ("systemctl", "service", "chkconfig", "update-rc.d") and
54+
process.args : ("elastic-agent", "elastic-agent.service") and
55+
process.args : ("stop", "disable", "remove", "off", "kill", "mask"))
5656
or
5757
/* pkill , killall used to stop Elastic Agent on Linux */
58-
( event.type == "end" and process.name : ("pkill", "killall") and process.args: "elastic-agent")
58+
( event.type == "end" and process.name in ("pkill", "killall", "kill") and process.args: "elastic-agent")
5959
or
6060
/* Unload Elastic Agent extension on MacOS */
6161
(process.name : "kextunload" and

0 commit comments

Comments
 (0)