CVE-2025-59702
Executive Summary
CVE-2025-59702 is a high-severity physical security vulnerability affecting Entrust nShield Connect XC, nShield 5c, and nShield HSMi hardware security modules (HSMs) up to firmware versions 13.6.11 and 13.7. The flaw allows a physically proximate attacker with elevated privileges to falsify tamper events by accessing internal components. This undermines the core security guarantee of HSMs—tamper evidence and response—potentially allowing an attacker to extract cryptographic keys or alter security policies without triggering alarms.
The vulnerability is particularly dangerous because HSMs are designed to be tamper-resistant; successful exploitation could lead to a complete compromise of the cryptographic root of trust. No public exploit code or proof-of-concept is currently available, and no official patch has been released by Entrust at the time of analysis.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability is not related to software packages (NPM, PyPI, Go, Ruby). It is a hardware/firmware issue in proprietary Entrust HSM appliances. Supply chain risk is limited to physical access to the device during deployment, maintenance, or decommissioning.
CVSS Breakdown & Threat Level
CVSS Score: 0.0 (Uncalculated) Vector: UNKNOWN (No official vector provided)
Qualitative Assessment:
- Attack Vector (AV): Physical (requires physical proximity)
- Attack Complexity (AC): High (requires elevated privileges and knowledge of internal components)
- Privileges Required (PR): High (elevated privileges needed)
- User Interaction (UI): None
- Scope (S): Changed (compromise of HSM affects all relying systems)
- Confidentiality (C): High (keys and secrets exposed)
- Integrity (I): High (tamper logs can be falsified)
- Availability (A): Low (device may remain operational)
Threat Level: Critical (due to the nature of HSM security and lack of patch)
Deep Dive & Mechanics
The vulnerability resides in the physical tamper detection circuitry of the affected Entrust nShield HSMs. These devices are equipped with tamper switches, sensors, and seals that are designed to detect physical intrusion and trigger a zeroization (secure erasure) of cryptographic keys.
Root Cause: An attacker with physical access and elevated privileges (e.g., a malicious insider or an attacker who has already compromised the host OS) can bypass or disable these tamper sensors by accessing internal components (e.g., PCB traces, sensor connectors, or the tamper logic controller). This allows the attacker to perform physical attacks (e.g., probing memory buses, replacing firmware chips, or extracting key material) without triggering a tamper event.
Attack Flow:
- Attacker gains physical access to the HSM (e.g., during maintenance, via a compromised data center).
- Attacker uses elevated privileges (e.g., root access on the host or HSM admin credentials) to disable tamper monitoring via software commands or by physically disconnecting sensors.
- Attacker opens the HSM chassis or accesses internal boards.
- Attacker performs memory extraction, firmware modification, or key extraction.
- Attacker closes the HSM and re-enables tamper monitoring, leaving no trace in the tamper log.
Impact: The HSM's tamper evidence is falsified, meaning the device reports "no tamper" even after a physical breach. This defeats the primary security function of an HSM.
Vulnerable vs. Patched Code
No code diff is available as this is a hardware/firmware vulnerability. The vulnerable component is the physical tamper detection logic, which is not publicly documented.
Vulnerable Behavior: Tamper sensors can be bypassed or disabled via physical access to internal components. Patched Behavior: No patch available. A hypothetical fix would involve hardware redesign (e.g., tamper-encapsulated sensors, encrypted tamper logs, or hardware-based attestation).
Exploitation & Lab Setup
Red Team (Offensive)
Prerequisites:
- Physical access to the HSM (e.g., in a lab or compromised data center).
- Elevated privileges on the HSM (e.g.,
nShieldadmin account or root access on the host). - Basic tools: screwdrivers, multimeter, JTAG debugger, logic analyzer.
Exploitation Steps:
- Identify Tamper Sensors: Locate the tamper switches and sensors on the HSM PCB (often microswitches, magnetic reed switches, or optical sensors).
- Disable Sensors: Use a small piece of tape or a magnet to hold the tamper switch in the "closed" (non-tampered) position. Alternatively, cut the trace connecting the sensor to the tamper logic controller.
- Bypass Software Monitoring: If the HSM has a software-based tamper monitoring daemon, kill or disable it using elevated privileges (e.g.,
systemctl stop nshield-tamper). - Extract Keys: Use JTAG or UART to dump firmware and key storage. Alternatively, use a cold boot attack on the HSM's RAM.
- Falsify Logs: After the attack, re-enable sensors and clear any log entries (if possible).
Example Command (Hypothetical):
# Disable tamper monitoring daemon (requires root)
systemctl stop nshield-tamper-monitor
# Physically bypass sensors (manual step)
# Extract key material via JTAG
openocd -f interface/jtag.cfg -f target/nshield.cfg -c "init; dump_image keys.bin 0x20000000 0x10000; exit"
Blue Team (Defensive)
Detection & Prevention:
- Physical Security: Restrict physical access to HSMs to authorized personnel only. Use multi-factor authentication for data center access.
- Tamper Log Auditing: Regularly review tamper logs for anomalies (e.g., missing logs, unexpected resets, or sensor disconnection events).
- Firmware Integrity: Use hardware security modules with remote attestation to verify firmware integrity.
- Monitoring: Deploy physical intrusion detection systems (PIDS) and CCTV around HSM racks.
Hunting Queries:
- Search for HSM logs with missing tamper events during maintenance windows.
- Monitor for unexpected HSM reboots or firmware updates.
Indicators of Compromise (IOCs)
- Physical: Missing or tampered tamper seals, scratches on HSM chassis, disconnected sensor wires.
- Logs: Absence of expected tamper events during physical access, gaps in HSM audit logs.
- Firmware: Unexpected firmware version or hash mismatch.
- Network: Unusual outbound connections from the HSM (e.g., to attacker C2).
Detection Engineering
YARA Rule
rule Detect_Tamper_Bypass_HSM_Logs {
meta:
description = "Detects falsified tamper logs in Entrust nShield HSM"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-59702"
strings:
$tamper_ok = "TAMPER_STATUS: OK" nocase
$tamper_fail = "TAMPER_STATUS: FAIL" nocase
$log_gap = "LOG_GAP_DETECTED" nocase
condition:
($tamper_ok and not $tamper_fail) or $log_gap
}
Sigma Rule
title: Entrust nShield HSM Tamper Bypass Detection
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects missing tamper events or log gaps in Entrust nShield HSM logs
author: Valters IT
date: 2025-04-10
references:
- https://nvd.nist.gov/vuln/detail/CVE-2025-59702
logsource:
product: entrust
service: nshield
detection:
selection:
EventID: 1001
Message|contains: 'TAMPER_STATUS'
condition: selection and not (Message|contains: 'TAMPER_STATUS: FAIL')
falsepositives:
- Legitimate maintenance with tamper disabled
level: high
Suricata Rule
alert tcp $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-59702 - Entrust nShield HSM Tamper Bypass - Unusual Outbound Connection"; flow:to_server; content:"|00|"; depth:1; threshold: type both, track by_src, count 1, seconds 3600; classtype:attempted-admin; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Physical Access Control: Restrict physical access to HSMs to a minimal set of trusted personnel.
- Tamper Seal Inspection: Regularly inspect physical tamper seals and sensors.
- Log Monitoring: Enable and monitor HSM audit logs for tamper events and anomalies.
Long-Term Fix:
- Vendor Patch: Await an official firmware update from Entrust that addresses the tamper bypass. Contact Entrust support for guidance.
- Hardware Replacement: If no patch is available, consider replacing affected HSMs with newer models that have improved tamper detection (e.g., tamper-encapsulated sensors with cryptographic attestation).
Workaround:
- Deploy HSMs in a secure, monitored environment with multi-factor physical access controls.
- Use a hardware security module (HSM) with remote attestation to verify tamper status via a trusted platform module (TPM).
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.