Detect Adobe Commerce / Magento Improper Input Validation (CVE-2025-54236) in CrowdStrike LogScale
Detects exploitation of CVE-2025-54236, an improper input validation vulnerability in Adobe Commerce and Magento. This KEV-listed vulnerability allows attackers to submit maliciously crafted input to Commerce/Magento endpoints, potentially leading to remote code execution, unauthorized data access, or store compromise. Detection focuses on anomalous HTTP request patterns to Magento/Commerce endpoints, unexpected PHP execution, and indicators of post-exploitation activity.
MITRE ATT&CK
- Tactic
- Initial Access Execution Persistence Impact
LogScale Detection Query
#event_simpleName=NetworkReceiveAcceptIP4
| ProcessImageFileName = /(?i)(httpd|nginx|php|php-fpm|w3wp)\.exe?$/
| RemoteAddressIP4 = *
| LocalPort in (80, 443, 8080, 8443)
| join {
#event_simpleName=ProcessRollup2
| ImageFileName = /(?i)(httpd|nginx|php|php-fpm|w3wp)\.exe?$/
| ChildImageFileName = /(?i)(sh|bash|cmd\.exe|powershell\.exe|wget|curl|python)\.?\d*$/
| groupby([ComputerName, ParentProcessId, ChildProcessId, ChildImageFileName, CommandLine], function=count())
} [ComputerName, ProcessId=ParentProcessId]
| eval risk=if(match(CommandLine, /(?i)(curl|wget|base64|python|nc |ncat|bash -i|powershell -enc)/), "critical", "high")
| sort -_count
| select ComputerName, ImageFileName, ChildImageFileName, CommandLine, RemoteAddressIP4, LocalPort, risk CrowdStrike CQL detecting web server processes (Apache, nginx, PHP, IIS) spawning suspicious child processes such as shells, wget, curl, or interpreters — a strong post-exploitation signal following CVE-2025-54236 exploitation.
Data Sources
Required Tables
False Positives & Tuning
- Magento cron jobs legitimately invoking bash scripts for maintenance tasks
- Composer package manager running curl for extension downloads during deployments
- Custom Magento modules that use PHP exec() for legitimate image processing or PDF generation
- DevOps automation scripts that run under the web server user context during deployments
Other platforms for CVE-2025-54236
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Magento REST API Malformed Input Fuzzing
Expected signal: Web server access logs should show POST requests to /rest/V1/products and /rest/V1/customers with large Content-Length values and HTTP 400/500 response codes
- Test 2PHP Web Shell Upload via Compromised Magento Admin
Expected signal: IIS/Apache logs showing POST to admin CMS endpoint; filesystem monitoring alerts on new .php file creation in pub/media/; process execution logs if PHP is evaluated
- Test 3Rapid Sequential API Endpoint Reconnaissance
Expected signal: Web server access logs showing rapid sequential POST requests to multiple /rest/V1/ endpoints from a single source IP within a short timeframe
Unlock Pro Content
Get the full detection package for CVE-2025-54236 including response playbook, investigation guide, and atomic red team tests.