CVE-2024-3400 Splunk · SPL

Detect Palo Alto PAN-OS GlobalProtect Command Injection (Operation MidnightEclipse) in Splunk

CVE-2024-3400 is a maximum-severity (CVSS 10.0) command injection vulnerability in Palo Alto Networks PAN-OS, specifically in the GlobalProtect feature. The flaw allows unauthenticated remote attackers to execute arbitrary code with root privileges on the firewall by exploiting improper input validation in the GlobalProtect service, which creates arbitrary files that are then executed. Affected versions include PAN-OS 10.2.x (through 10.2.7), 11.0.x, and 11.1.x with GlobalProtect gateway or portal enabled. Cloud NGFW, Panorama, and Prisma Access are not affected. The vulnerability was exploited as a zero-day by the threat actor UTA0218 in Operation MidnightEclipse to deploy the UPSTYLE backdoor. CISA added this to the KEV catalog with active in-the-wild exploitation confirmed. As Palo Alto firewalls are widely deployed by SMBs and enterprises as perimeter security, this is a critical priority.

MITRE ATT&CK

Tactic
Initial Access Execution Lateral Movement

SPL Detection Query

Splunk (SPL)
spl
index=network sourcetype IN ("pan:log", "pan:system", "pan:threat", "pan:traffic",
  "pan:config", "pan:globalprotect", "cisco:asa", "syslog")
(
  (vendor="Palo Alto Networks" OR product IN ("PAN-OS", "GlobalProtect"))
  OR sourcetype IN ("pan:log", "pan:system", "pan:globalprotect")
)
AND (
  (
    (log_subtype="system" OR subtype="system")
    AND (
      match(_raw, "(?i)(wget|curl|bash|sh\s|/tmp/|/var/appweb|base64|eval|exec)")
      OR match(description, "(?i)(command|inject|exploit|shell|root|system)")
    )
  )
  OR
  (
    (log_subtype="globalprotect" OR type="GLOBALPROTECT")
    AND (action IN ("connect", "disconnect", "tunnel-reject"))
    AND match(_raw, "(?i)(\.sh|wget|curl|/tmp|\.py|\.pl)")
  )
)
| eval CVE="CVE-2024-3400"
| eval ThreatType="PAN-OS-GlobalProtect-CommandInjection"
| stats count AS SuspiciousEvents,
        values(src_ip) AS SourceIPs,
        values(description) AS Descriptions,
        values(cmd) AS Commands
  BY host, CVE, ThreatType, _time span=1h
| where SuspiciousEvents >= 1
| table _time, host, SourceIPs, Descriptions, Commands, SuspiciousEvents, CVE, ThreatType
| sort - SuspiciousEvents
critical severity medium confidence

Detects CVE-2024-3400 exploitation indicators in Palo Alto PAN-OS syslog data, specifically looking for command injection signatures (wget, curl, bash, /tmp/ paths, base64-encoded commands) in system and GlobalProtect log entries. These patterns correspond to the UPSTYLE backdoor installation observed in UTA0218 Operation MidnightEclipse.

Data Sources

Palo Alto PAN-OS system logs (pan:system, pan:log)Palo Alto GlobalProtect logs (pan:globalprotect)Palo Alto threat logs (pan:threat)

Required Sourcetypes

pan:logpan:systempan:globalprotect

False Positives & Tuning

  • Legitimate PAN-OS system operations referencing /tmp/ paths in normal log output
  • Authorized firewall management scripts using wget/curl for content updates
Download portable Sigma rule (.yml)

Other platforms for CVE-2024-3400


Testing Methodology

Validate this detection against 1 adversary technique 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 1Test CVE-2024-3400 detection via crafted GlobalProtect request

    Expected signal: PAN-OS system log entry showing file creation command execution; pan:system log with anomalous path references.

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections