Skip to content

Commit 49b6468

Browse files
Aegrahtradebot-elastic
authored andcommitted
[Rule Tuning] At Job Created or Modified (#5378)
(cherry picked from commit a6569a8)
1 parent 9383f2d commit 49b6468

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rules/linux/persistence_at_job_creation.toml

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

77
[rule]
88
author = ["Elastic"]
@@ -58,10 +58,10 @@ tags = [
5858
]
5959
timestamp_override = "event.ingested"
6060
type = "eql"
61-
6261
query = '''
63-
file where host.os.type == "linux" and
64-
event.action in ("rename", "creation") and file.path : "/var/spool/cron/atjobs/*" and not (
62+
file where host.os.type == "linux" and event.action in ("rename", "creation") and
63+
file.path like ("/var/spool/cron/atjobs/*", "/var/spool/atjobs/*") and
64+
not (
6565
process.executable in (
6666
"/bin/dpkg", "/usr/bin/dpkg", "/bin/dockerd", "/usr/bin/dockerd", "/usr/sbin/dockerd", "/bin/microdnf",
6767
"/usr/bin/microdnf", "/bin/rpm", "/usr/bin/rpm", "/bin/snapd", "/usr/bin/snapd", "/bin/yum", "/usr/bin/yum",

0 commit comments

Comments
 (0)