Skip to content

Commit 39d4f72

Browse files
authored
Add node and java to unusual command execution rule
1 parent 825a6a0 commit 39d4f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/linux/persistence_web_server_unusual_command_execution.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ event.category:process and host.os.type:linux and event.type:start and event.act
3636
"apache" or "nginx" or "apache2" or "httpd" or "lighttpd" or "caddy" or "mongrel_rails" or "haproxy" or
3737
"gunicorn" or "uwsgi" or "openresty" or "cherokee" or "h2o" or "resin" or "puma" or "unicorn" or "traefik" or "uvicorn" or
3838
"tornado" or "hypercorn" or "daphne" or "twistd" or "yaws" or "webfsd" or "httpd.worker" or "flask" or "rails" or "mongrel" or
39-
php* or ruby* or perl* or python*
39+
php* or ruby* or perl* or python* or "node" or "java"
4040
) or
4141
user.name:("apache" or "www-data" or "httpd" or "nginx" or "lighttpd" or "tomcat" or "tomcat8" or "tomcat9") or
4242
user.id:("33" or "498" or "48" or "54321")
@@ -53,7 +53,7 @@ event.category:process and host.os.type:linux and event.type:start and event.act
5353
) and
5454
process.command_line:* and process.name:(bash or dash or sh or tcsh or csh or zsh or ksh or fish) and process.args:"-c" and
5555
not (
56-
(process.parent.name:java and process.parent.executable:/u0*/*) or
56+
(process.parent.name:java and not process.parent.executable:/u0*/*) or
5757
(process.parent.name:python* and process.parent.executable:(/bin/python* or /usr/bin/python* or /usr/local/bin/python* or /tmp/*python* or /opt/oracle.ahf/python/*)) or
5858
(process.parent.name:ruby* and process.parent.executable:(/bin/ruby* or /usr/bin/ruby* or /usr/local/bin/ruby* or /tmp/*ruby* or /bin/ruby or /usr/bin/ruby or /usr/local/bin/ruby)) or
5959
(process.parent.name:perl* and process.parent.executable:(/bin/perl* or /usr/bin/perl* or /usr/local/bin/perl* or /tmp/*perl* or /bin/perl or /usr/bin/perl or /usr/local/bin/perl)) or

0 commit comments

Comments
 (0)