CVE-2025-32432 CrowdStrike LogScale · LogScale

Detect CVE-2025-32432: Craft CMS Remote Code Injection in CrowdStrike LogScale

Detects exploitation of CVE-2025-32432, a critical code injection vulnerability (CWE-94) in Craft CMS that allows remote attackers to execute arbitrary code. This vulnerability is actively exploited in the wild (CISA KEV) and targets Craft CMS installations via malicious template or input injection vectors.

MITRE ATT&CK

Tactic
Initial Access Execution Persistence

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
#event_simpleName=NetworkReceiveAcceptIP4 OR #event_simpleName=NetworkReceiveAcceptIP6
| TargetPort IN (80, 443, 8080, 8443)
| ImageFileName CONTAINS "php"
| CommandLine MATCHES "(?i)(phpinfo|base64_decode|eval\(|system\(|exec\(|assert\(|passthru\(|shell_exec\()"
| groupBy([aid, ComputerName, LocalAddressIP4, RemoteAddressIP4, TargetPort, CommandLine], function=count())
| sort(count, order=desc)

// Companion process-level detection
// #event_simpleName=ProcessRollup2
// | ParentBaseFileName IN ("php", "php-fpm", "php8.1", "php8.2", "apache2", "httpd", "nginx")
// | FileName IN ("sh", "bash", "dash", "python3", "python", "curl", "wget", "nc", "perl")
// | CommandLine NOT MATCHES "(?i)(composer|artisan|phpunit|codecept)"
// | groupBy([aid, ComputerName, ParentBaseFileName, FileName, CommandLine], function=count())
critical severity high confidence

CrowdStrike Falcon LogScale CQL detecting network connections on web ports by PHP processes with command-line arguments containing code injection strings, and optionally child shell/utility processes spawned from web server parents indicating post-exploitation from CVE-2025-32432.

Data Sources

CrowdStrike Falcon Endpoint SensorCrowdStrike Network Containment Telemetry

Required Tables

NetworkReceiveAcceptIP4ProcessRollup2

False Positives & Tuning

  • Legitimate PHP CLI scripts executing system commands as part of Craft CMS maintenance tasks
  • Composer or Artisan commands run by web server users that match the parent process pattern
  • Developer workstations running local Craft CMS instances with debugging enabled

Other platforms for CVE-2025-32432


Testing Methodology

Validate this detection against 4 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.

  1. Test 1CVE-2025-32432 PHP Info Probe via Craft CMS Action Endpoint

    Expected signal: HTTP POST to /actions/test with 'phpinfo()' in request body; web server access log entry; potential 200 response with PHP environment disclosure

  2. Test 2CVE-2025-32432 Base64-Encoded Command Injection

    Expected signal: HTTP POST to /actions/users/login with 'base64_decode' in POST body; web server log capturing encoded payload; potential process spawn of 'id' command from php parent

  3. Test 3CVE-2025-32432 Webshell Drop via File Write Injection

    Expected signal: POST to /actions/ with file_put_contents payload; new file 'shell.php' created in web root with anomalous timestamp; subsequent GET to /shell.php with cmd parameter; process execution of 'id' spawned from PHP

  4. Test 4CVE-2025-32432 Reverse Shell Payload Simulation

    Expected signal: HTTP POST to Craft CMS action endpoint with bash reverse shell command in body; outbound TCP connection from web server to attacker IP on port 4444; process tree showing bash spawned from php parent; network flow anomaly for web server initiating outbound connection

Unlock Pro Content

Get the full detection package for CVE-2025-32432 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections