Skip to content

Commit c186d58

Browse files
Update rules/linux/initial_access_apache_struts_cve_2023_50164_exploitation_to_webshell.toml
1 parent 2083eef commit c186d58

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

rules/linux/initial_access_apache_struts_cve_2023_50164_exploitation_to_webshell.toml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,19 @@ type = "eql"
9898

9999
query = '''
100100
sequence 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

Comments
 (0)