Skip to content

Commit ee8d4bb

Browse files
committed
++
1 parent 913cffd commit ee8d4bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rules/linux/privilege_escalation_netcon_via_sudo_binary.toml

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

77
[rule]
88
author = ["Elastic"]
@@ -57,7 +57,10 @@ tags = [
5757
type = "eql"
5858
query = '''
5959
sequence by host.id, process.entity_id with maxspan=5s
60-
[process where host.os.type == "linux" and event.type == "start" and event.action == "exec"]
60+
[process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and process.name == "sudo" and not (
61+
process.args == "su" or
62+
process.command_line like ("sudo su*", "sudo ./opt/Limpar_ram.sh", "*BECOME-SUCCESS*")
63+
)]
6164
[network where host.os.type == "linux" and event.type == "start" and
6265
event.action in ("connection_attempted", "ipv4_connection_attempt_event") and process.name == "sudo" and not (
6366
destination.ip == null or destination.ip == "0.0.0.0" or cidrmatch(

0 commit comments

Comments
 (0)