CVE-2025-37164 Microsoft Sentinel · KQL

Detect HPE OneView Code Injection Exploitation (CVE-2025-37164) in Microsoft Sentinel

Detects exploitation of CVE-2025-37164, a code injection vulnerability (CWE-94) in Hewlett Packard Enterprise OneView. This vulnerability is listed in the CISA Known Exploited Vulnerabilities catalog and allows attackers to inject and execute arbitrary code through the OneView management platform, potentially compromising datacenter infrastructure management.

MITRE ATT&CK

Tactic
Initial Access Execution Lateral Movement

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
let OneViewIPs = dynamic([]);
let suspiciousProcesses = dynamic(["bash", "sh", "python", "python3", "perl", "ruby", "curl", "wget", "nc", "ncat", "socat"]);
let lookback = 24h;
union 
  (
    DeviceNetworkEvents
    | where TimeGenerated >= ago(lookback)
    | where RemotePort in (443, 80, 8080, 8443)
    | where RemoteUrl has_any ("oneview", "hpeoneview")
    | project TimeGenerated, DeviceId, DeviceName, InitiatingProcessFileName, RemoteIP, RemoteUrl, RemotePort, ActionType
    | extend AlertSource = "NetworkEvent"
  ),
  (
    DeviceProcessEvents
    | where TimeGenerated >= ago(lookback)
    | where InitiatingProcessFileName =~ "java" or InitiatingProcessParentFileName =~ "java"
    | where FileName in~ (suspiciousProcesses)
    | where InitiatingProcessCommandLine has_any ("oneview", "hpov", "com.hp.ov", "ImageStreamer")
    | project TimeGenerated, DeviceId, DeviceName, FileName, ProcessCommandLine, InitiatingProcessCommandLine, InitiatingProcessFileName
    | extend AlertSource = "ProcessEvent"
  ),
  (
    CommonSecurityLog
    | where TimeGenerated >= ago(lookback)
    | where DeviceProduct has_any ("OneView", "HPE OneView")
    | where Activity has_any ("code injection", "script execution", "command execution", "eval", "exec")
    | project TimeGenerated, DeviceVendor, DeviceProduct, SourceIP, DestinationIP, Activity, Message
    | extend AlertSource = "CommonSecurityLog"
  )
| summarize Count=count(), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated) by AlertSource, DeviceName, SourceIP=coalesce(RemoteIP, SourceIP)
| where Count > 0
| extend Severity = "High"
| extend CVE = "CVE-2025-37164"
critical severity medium confidence

Detects potential exploitation of HPE OneView code injection vulnerability by monitoring for suspicious process spawning from Java processes related to OneView, anomalous network activity to OneView endpoints, and security log events indicating code execution attempts.

Data Sources

DeviceNetworkEventsDeviceProcessEventsCommonSecurityLogSecurityEvent

Required Tables

DeviceNetworkEventsDeviceProcessEventsCommonSecurityLog

False Positives & Tuning

  • Legitimate administrative scripts executed by HPE OneView during maintenance or updates
  • Authorized penetration testing activities against OneView infrastructure
  • Automated backup or monitoring tools that spawn child processes from OneView Java services
  • HPE OneView appliance upgrades that execute shell scripts as part of the update process

Other platforms for CVE-2025-37164


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 1HPE OneView REST API Code Injection Simulation

    Expected signal: HTTP POST request to /rest/login-sessions with injection pattern in request body visible in web access logs; network flow from test host to OneView appliance on port 443

  2. Test 2Simulated Child Process Spawn from Java Context

    Expected signal: Process event showing java parent spawning /bin/bash child process; bash executing id, hostname, whoami commands

  3. Test 3OneView API Reconnaissance — Endpoint Enumeration

    Expected signal: Multiple HTTP GET requests to OneView API endpoints from a single source IP within a short timeframe; mix of 401, 403, and potentially 200 responses visible in access logs

  4. Test 4Reverse Shell Establishment Post-Injection Simulation

    Expected signal: Outbound TCP connection from OneView appliance or compromised host to attacker IP on non-standard port; ncat or bash process with network socket; network flow egress event

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections