Detect HPE OneView Code Injection Exploitation (CVE-2025-37164) in Elastic Security
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
Elastic Detection Query
sequence by host.name with maxspan=5m
[process where event.type == "start"
and process.name in ("java", "catalina.sh", "startup.sh")
and process.command_line : ("*oneview*", "*hpov*", "*com.hp.ov*")]
[process where event.type == "start"
and process.parent.name in ("java", "sh", "bash")
and process.name in ("bash", "sh", "python", "python3", "perl", "ruby", "curl", "wget", "nc", "ncat", "socat")]
OR
any where event.category == "network"
and network.direction == "ingress"
and destination.port in (443, 80, 8080, 8443)
and http.request.method in ("POST", "PUT")
and url.path : ("/rest/*", "/api/v*")
and http.request.body.content : ("*eval(*", "*exec(*", "*Runtime.exec*", "*ProcessBuilder*", "*script*inject*") Uses EQL sequence detection to identify process chains where OneView Java processes spawn unexpected shell or interpreter child processes, and monitors for HTTP POST/PUT requests to OneView REST API endpoints containing code injection patterns.
Data Sources
Required Tables
False Positives & Tuning
- Authorized OneView automation scripts that legitimately spawn child processes
- HPE support tools that execute shell commands through the OneView framework
- Monitoring agents that interact with the OneView REST API using scripting languages
- Load balancer health checks hitting OneView API endpoints
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.
- 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
- 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
- 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
- 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.