Initial Access (TA0001)(external, opens in a new tab or window)
Persistence (TA0003)(external, opens in a new tab or window)
text code block:sequence by agent.id with maxspan=10s [network where data_stream.dataset == "network_traffic.http" and http.request.method == "POST" and http.request.body.content like "*WebKitFormBoundary*" and url.path like~ "*upload*.action"] [file where event.dataset == "endpoint.events.file" and host.os.type == "linux" and event.action == "creation" and process.name == "java" and file.extension == "jsp" and file.path like "*/webapps/*" and not file.path like "*/WEB-INF/*" and not file.path like "*/META-INF/*" and not process.parent.name in ("apk", "apt", "apt-get", "dpkg", "yum", "rpm", "dnf", "systemd", "init")]
Install detection rules in Elastic Security
Detect Potential Webshell Deployed via Apache Struts CVE-2023-50164 Exploitation in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).