Skip to content

Commit 3455fd5

Browse files
authored
Update persistence_web_server_sus_destination_port.toml
1 parent 6dce74f commit 3455fd5

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

rules/linux/persistence_web_server_sus_destination_port.toml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,15 @@ timestamp_override = "event.ingested"
9494
type = "eql"
9595
query = '''
9696
network where host.os.type == "linux" and event.type == "start" and event.action == "connection_attempted" and (
97-
user.name in (
98-
"apache", "www-data", "httpd", "nginx", "lighttpd", "tomcat", "tomcat8", "tomcat9", "ftp", "ftpuser", "ftpd"
99-
) or
100-
user.id in ("99", "33", "498", "48")
101-
) and (
102-
process.name in (
103-
"apache", "nginx", "apache2", "httpd", "lighttpd", "caddy", "node", "mongrel_rails", "java", "gunicorn",
104-
"uwsgi", "openresty", "cherokee", "h2o", "resin", "puma", "unicorn", "traefik", "tornado", "hypercorn",
105-
"daphne", "twistd", "yaws", "webfsd", "httpd.worker", "flask", "rails", "mongrel"
97+
process.name like (
98+
"apache", "nginx", "apache2", "httpd", "lighttpd", "caddy", "php-fpm*", "mongrel_rails", "haproxy",
99+
"gunicorn", "uwsgi", "openresty", "cherokee", "h2o", "resin", "puma", "unicorn", "traefik", "uvicorn",
100+
"tornado", "hypercorn", "daphne", "twistd", "yaws", "webfsd", "httpd.worker", "flask", "rails", "mongrel",
101+
"php-cgi", "php-fcgi", "php-cgi.cagefs"
106102
) or
107-
process.name like ("php-*", "python*", "ruby*", "perl*")
103+
user.name in ("apache", "www-data", "httpd", "nginx", "lighttpd", "tomcat", "tomcat8", "tomcat9", "ftp", "ftpuser", "ftpd") or
104+
user.id in ("54321", "33", "498", "48") or
105+
(process.name == "java" and process.working_directory like "/u0?/*")
108106
) and
109107
network.direction == "egress" and destination.ip != null and
110108
not destination.port in (80, 443, 8080, 8443, 8000, 8888, 3128, 3306, 5432, 8220, 8082) and

0 commit comments

Comments
 (0)