CVE-2025-54068 Google Chronicle · YARA-L

Detect Laravel Livewire Code Injection (CVE-2025-54068) in Google Chronicle

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

YARA-L Detection Query

Google Chronicle (YARA-L)
yaral
rule cve_2025_54068_livewire_code_injection {
  meta:
    author = "df00tech"
    description = "Detects CVE-2025-54068 Laravel Livewire code injection exploitation"
    severity = "CRITICAL"
    priority = "HIGH"
    reference = "https://github.com/livewire/livewire/security/advisories/GHSA-29cq-5w36-x7w3"
  events:
    $http.metadata.event_type = "NETWORK_HTTP"
    $http.target.url.path = /.*livewire\/(message|upload-file).*/
    $http.network.http.method = "POST"
    (
      $http.network.http.request_body = /eval\(/ or
      $http.network.http.request_body = /base64_decode\(/ or
      $http.network.http.request_body = /system\(/ or
      $http.network.http.request_body = /shell_exec\(/ or
      $http.network.http.request_body = /passthru\(/
    )
  condition:
    $http
}
critical severity medium confidence

Chronicle YARA-L rule detecting HTTP POST requests to Laravel Livewire endpoints containing PHP code injection function calls indicative of CVE-2025-54068.

Data Sources

Google Chronicle SIEMWeb Proxy LogsNetwork HTTP Events

Required Tables

network_http

False Positives & Tuning

  • Legitimate Livewire components with encoded PHP class representations in payloads
  • WAF bypass testing in authorized red team exercises
  • Base64-encoded Livewire component names matching injection patterns

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