Detect Laravel Livewire Code Injection (CVE-2025-54068) in Sumo Logic CSE
Detects exploitation of CVE-2025-54068, a code injection vulnerability in Laravel Livewire. This KEV-listed vulnerability allows attackers to inject and execute arbitrary PHP code through Livewire component handling, potentially leading to remote code execution on affected Laravel applications.
MITRE ATT&CK
- Tactic
- Initial Access Execution Persistence
Sumo Detection Query
_sourceCategory=web/access OR _sourceCategory=php/error OR _sourceCategory=laravel/app
| where uri_path matches "*livewire/message*" or uri_path matches "*livewire/upload-file*"
| parse regex field=_raw "(?P<payload>\{.+\})" nodrop
| where payload matches "*eval(*" or payload matches "*base64_decode(*" or payload matches "*system(*" or payload matches "*exec(*" or payload matches "*shell_exec(*"
| timeslice 5m
| count by _timeslice, src_ip, uri_path, status_code
| where _count > 0
| sort by _timeslice desc Sumo Logic query identifying Laravel Livewire requests carrying PHP code injection payloads consistent with CVE-2025-54068 exploitation.
Data Sources
Required Tables
False Positives & Tuning
- Automated API clients sending large serialized Livewire payloads
- Internal security tooling performing continuous vulnerability assessments
- Misconfigured logging capturing encoded application data as suspicious
Other platforms for CVE-2025-54068
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 1CVE-2025-54068 Basic eval() Injection via Livewire Message Endpoint
Expected signal: HTTP POST to /livewire/message with base64-encoded payload containing system() call; PHP process may log eval() warning; web server logs capture anomalous request body.
- Test 2CVE-2025-54068 Shell Command Execution via Livewire Injection
Expected signal: Process creation event: php or php-fpm spawning /bin/sh with argument 'id > /tmp/pwned'; file creation event at /tmp/pwned; web server access log entry for the crafted POST.
- Test 3CVE-2025-54068 Webshell Deployment Simulation
Expected signal: File creation event for shell.php in public/ directory initiated by php-fpm or web server process; subsequent HTTP GET requests to /shell.php with command parameters.
Unlock Pro Content
Get the full detection package for CVE-2025-54068 including response playbook, investigation guide, and atomic red team tests.