CVE-2025-54068 IBM QRadar · QRadar

Detect Laravel Livewire Code Injection (CVE-2025-54068) in IBM QRadar

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

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT DATEFORMAT(devicetime, 'yyyy-MM-dd HH:mm:ss') as event_time,
  sourceip, destinationip, destinationport,
  URL, username, QIDNAME(qid) as event_name,
  magnitude, "domainid"
FROM events
WHERE LOGSOURCETYPENAME(devicetype) IN ('Apache HTTP Server', 'Nginx', 'PHP Logs', 'Laravel')
  AND (URL ILIKE '%/livewire/message%' OR URL ILIKE '%/livewire/upload-file%')
  AND (
    PAYLOAD ILIKE '%eval(%'
    OR PAYLOAD ILIKE '%base64_decode(%'
    OR PAYLOAD ILIKE '%system(%'
    OR PAYLOAD ILIKE '%exec(%'
    OR PAYLOAD ILIKE '%shell_exec(%'
    OR PAYLOAD ILIKE '%passthru(%'
    OR PAYLOAD ILIKE '%proc_open(%'
  )
  AND starttime > NOW() - 86400000
ORDER BY devicetime DESC
LIMIT 500
critical severity medium confidence

QRadar AQL query to detect PHP code injection payloads in Laravel Livewire endpoint traffic, surfacing CVE-2025-54068 exploitation attempts.

Data Sources

Apache HTTP ServerNginx LogsPHP Application Logs

Required Tables

events

False Positives & Tuning

  • Security testing platforms submitting crafted payloads in authorized engagements
  • Log aggregators that encode PHP code in transmitted telemetry
  • Legitimate use of PHP eval() in application debug modes captured in logs

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.

  1. 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.

  2. 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.

  3. 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.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections