@@ -98,23 +98,19 @@ type = "eql"
9898
9999query = '''
100100sequence by agent.id with maxspan=10s
101- [network where data_stream.dataset == "network_traffic.http" and
102- http.request.method == "POST" and
103- http.request.body.content like "*WebKitFormBoundary*" and
104- url.path like~ "*upload*.action"]
105- [file where event.dataset == "endpoint.events.file" and
106- host.os.type == "linux" and
107- event.action == "creation" and
108- process.name == "java" and
109- (file.path like "/opt/tomcat/webapps/*" or
110- file.path like "*/tomcat*/webapps/*" or
111- file.path like "*/catalina/webapps/*" or
112- file.path like "*/webapps/ROOT/*" or
113- file.path like "*/webapps/*/") and
114- file.extension == "jsp" and
115- not file.path like "*/WEB-INF/*" and
116- not file.path like "*/META-INF/*" and
117- not process.parent.name in ("apt", "apt-get", "dpkg", "yum", "rpm", "dnf", "systemd", "init")]
101+ [network where data_stream.dataset == "network_traffic.http" and
102+ http.request.method == "POST" and
103+ http.request.body.content like "*WebKitFormBoundary*" and
104+ url.path like~ "*upload*.action"]
105+ [file where event.dataset == "endpoint.events.file" and
106+ host.os.type == "linux" and
107+ event.action == "creation" and
108+ process.name == "java" and
109+ file.extension == "jsp" and
110+ file.path like "*/webapps/*" and
111+ not file.path like "*/WEB-INF/*" and
112+ not file.path like "*/META-INF/*" and
113+ not process.parent.name in ("apt", "apt-get", "dpkg", "yum", "rpm", "dnf", "systemd", "init")]
118114'''
119115
120116
0 commit comments