Execution Path Analysis: The exploitation of CVE-2025-31324 in SAP NetWeaver involves attackers uploading webshells to specific directories, such as '/irj/servlet_jsp/irj/root/'. The attack path typically begins with reconnaissance to identify vulnerable instances, followed by the use of crafted HTTP requests to upload malicious files. This behavior can be detected by monitoring for unusual file uploads and access patterns within SAP directories.
# Sigma Rule for SAP NetWeaver Webshell Detection
logsource:
category: webserver
product: SAP
selection:
uri:
- '/irj/servlet_jsp/irj/root/ant.jsp'
- '/api/upload'
- '/commandcenter/ant.jsp'
condition: selection
action:
alert: high
description: 'Potential webshell upload attempt detected on SAP NetWeaver.'Choke Point Mitigation: Implementing Web Application Firewall (WAF) rules to block unauthorized file uploads and monitoring for anomalies in HTTP request patterns are critical steps in mitigating this threat. Zero Trust principles should be applied by restricting access to SAP NetWeaver interfaces and enforcing strict authentication and authorization controls. Regular patching and vulnerability assessments are essential to prevent exploitation of known vulnerabilities.