@@ -94,17 +94,15 @@ timestamp_override = "event.ingested"
9494type = " eql"
9595query = '''
9696network 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
109107network.direction == "egress" and destination.ip != null and
110108not destination.port in (80, 443, 8080, 8443, 8000, 8888, 3128, 3306, 5432, 8220, 8082) and
0 commit comments