Muhammad Asfand Hafeez and colleagues demonstrate a critical vulnerability in post-quantum secure channels: even with advanced cryptography, compromised endpoint randomness can expose sensitive data. The team’s Entropy Attack Suite (EAS) can recover the root key and RNG stream from public transcripts when randomness fails, revealing a weakness in embedded and cyber-physical systems.
As a case study, they designed APQKE-DR, a post-quantum secure channel integrated beneath ANSI C12.22 and DNP3 protocols, achieving a 9,610-byte handshake with median latencies of 1.99 ms for the node and 0.82 ms for the server on a Raspberry Pi Compute Module 5.
APQKE-DR Design: ML-KEM and ML-DSA for Post-Quantum Handshake
The design integrates ML-KEM for key encapsulation and ML-DSA for signatures, establishing an initial root key and authenticated transcript hash that binds to the derived key. This root key then initializes a Double Ratchet data channel, cryptographically linked to the handshake transcript for subsequent messaging, providing a foundation for application traffic. Researchers developed the APQKE-DR protocol with two primary components: the APQKE handshake itself, and the DR data channel, which is resource-aware and seeded by the initial root key.
The system’s architecture allows for per-message key evolution, enhancing security, and incorporates classical X25519-based post-compromise recovery mechanisms. A key innovation lies in the explicit key confirmation phase of the handshake, which strengthens the authentication process and ensures both parties possess the same root key. The protocol’s design also prioritizes integration with existing infrastructure, smoothly operating beneath ANSI C12. 22 and DNP3 communication protocols without altering payload formats.
Beyond the core protocol, the team introduced the Entropy Attack Suite, or EAS, to specifically model vulnerabilities arising from low-entropy boot processes and potential subversion of random number generation paths. EAS enables offline recovery of the RNG stream and root key from public transcripts, allowing for evaluation of the handshake and channel under degraded entropy conditions, a critical step given the limitations of randomness in embedded devices.
The researchers compared Trusted Platform Module seeding with Platform Configuration Register-bound measured-boot gating as potential mitigations for entropy failures. Their analysis reveals that a weak random number generator can expose the root key across multiple sessions, and if RNG-path subversion also compromises X25519 keys, attackers could potentially access ratchet keys and plaintext messages. This highlights the importance of robust entropy sources and secure key management practices in cryptographic systems, even when employing advanced algorithms like ML-KEM and ML-DSA.
Entropy Attack Suite (EAS) Evaluates Channel Randomness Failures
The Entropy Attack Suite (EAS) assesses the resilience of secure channels against failures in endpoint randomness, specifically modeling scenarios involving compromised boot processes and subverted random number generation. This evaluation moves beyond theoretical cryptographic strength to address practical vulnerabilities in embedded systems where reliable randomness cannot be guaranteed. EAS, used in conjunction with the APQKE-DR secure channel design, allows for offline recovery of the root key and the underlying random number generator stream from publicly available communication transcripts.
This capability demonstrates a critical weakness in cryptography if the initial randomness is flawed. Researchers used a Raspberry Pi Compute Module 5 to simulate a gateway-class embedded Linux endpoint, subjecting the APQKE-DR channel to two controlled randomness failures. These failures, an early-boot entropy hole and RNG-path subversion, were injected on the smart grid node side while maintaining healthy randomness on the server.
While the ratchet can re-establish confidentiality after an attack, the EAS demonstrates that a compromised initial key can expose the entire session history. The design of APQKE-DR prioritizes integration with existing infrastructure, and the team’s work highlights the importance of evaluating such integrations under realistic threat models. “APQKE-DR integrates an ML-KEM/ML-DSA handshake with transcript binding and explicit key confirmation, an authenticated data channel with per-message key evolution, classical X25519-based post-compromise recovery, entropy-failure evaluation with tested mitigations, and integration beneath ANSI C12.22 and DNP3,” the paper states.
This comprehensive design aims to provide a practical and secure solution for smart grid communication in the face of evolving quantum and classical threats. The implications extend beyond smart grid applications, as the principles of entropy-failure analysis are relevant to any long-lived secure channel deployed in resource-constrained environments.
The EAS provides a valuable tool for evaluating the security of these channels and identifying potential vulnerabilities before they can be exploited. By simulating realistic attack scenarios, the suite allows developers to assess the effectiveness of different mitigation strategies and ensure that their systems are resilient to a wide range of threats. The work demonstrates that even with advanced cryptographic algorithms, the security of a system is only as strong as its weakest link, and that endpoint randomness is a critical component of overall security.
Smart Grid Communication: APQKE-DR Integration with ANSI C12.22/DNP3
APQKE-DR integrates directly beneath existing ANSI C12. This integration allows for the addition of security measures without requiring extensive modifications to existing systems, an important consideration for widespread adoption. The design prioritizes minimizing disruption while enhancing security, a balance often challenging in legacy systems. The overhead introduced by the APQKE-DR channel in steady state is a consistent 31 bytes per message, a figure that becomes negligible as payload sizes increase, according to the research.
This minimal impact on data transmission speeds is a key factor in maintaining operational efficiency within the smart grid environment. Analysis using ProVerif verifies the modeled secrecy and authentication properties of the APQKE handshake, confirming its resistance to active attacks like key substitution and replay. This verification provides a level of assurance in the cryptographic foundations of APQKE-DR, demonstrating its ability to withstand known attack vectors.
The researchers note that APQKE-DR’s construction is not limited to ANSI C12. 22, DNP3, or any specific smart grid architecture, suggesting broader applicability. Empirical analysis of the Hamming weight of [0.. 7] over 2000 handshakes reveals the probability mass function when using both an operating system and a Trusted Platform Module. This data provides insight into the randomness of the generated keys, and the potential vulnerabilities arising from predictable key material.
The research compares APQKE-DR’s handshake execution time with other smart grid protocols, highlighting its performance characteristics relative to existing solutions. Table V presents a detailed comparison of client-side execution times, offering a quantitative assessment of APQKE-DR’s efficiency. While the study focuses on a smart grid setting, the core construction is adaptable, suggesting potential applications beyond this specific domain. “APQKE-DR offers a practical -initialized secure channel for smart grid endpoints,” the paper states, emphasizing the system’s readiness for real-world implementation.
Ratcheted Channel Performance: Latency and Overhead on Raspberry Pi
The ratcheted channel itself introduces an additional 31 bytes per message, a factor that must be considered when evaluating its suitability for bandwidth-constrained applications. This overhead is a direct consequence of establishing and maintaining a continuously evolving encryption key, a core principle of the Double Ratchet algorithm used within APQKE-DR. This suggests that APQKE-DR is more efficient when transmitting substantial data, mitigating the impact of the fixed overhead introduced by the ratcheting mechanism. This approach minimizes disruption and allows for a phased transition to security without requiring extensive modifications to existing infrastructure.
The researchers confirmed that the channel’s security relies on a MAC that verifies handshake key derivation, ensuring both parties agree on the initial secure state. Latency measurements were taken as the time from handshake start to ACK receipt, providing an unambiguous measure of channel readiness.
Early-Boot Attacks: Limitations of TPM Seeding for Entropy Protection
Early-boot attacks can compromise secure channels even with Trusted Platform Module (TPM) seeding, according to recent experiments. While TPM seeding protects against predictable randomness during initial boot, it does not prevent subsequent subversion of the random number generator (RNG) after the seeding process is complete. Researchers demonstrated that an attacker could still recover the root key used for establishing a secure connection if the RNG is compromised later in the session.
These experiments revealed that a predictable RNG state, even for a short period, allows offline reconstruction of the initial root key from publicly available handshake transcripts. This vulnerability exists because the APQKE handshake relies on randomness for generating nonces, keys and encapsulation coins, and predictability in these inputs directly exposes the root key. The Raspberry Pi Compute Module 5 served as the experimental platform for these controlled tests, injecting a weak-RNG interval to simulate compromised entropy.
Measured-boot gating, which verifies firmware integrity, offers a complementary defense, but it too has limitations. The research showed measured-boot can block modified firmware from initiating a secure session. But it does not address vulnerabilities arising from a compromised RNG after the system has booted and passed integrity checks. Secure deployment, therefore, demands integrity across the entire entropy path, not simply strong cryptographic primitives.
“TPM seeding prevents recovery in the tested early-boot cases but did not prevent RNG substitution after seeding,” the study notes, highlighting the need for continuous monitoring and protection of the RNG. If this subversion also affects the X25519 keys used for the ratcheted channel, attackers could potentially access both ratchet keys and the plaintext messages being transmitted.
APQKE-DR’s Recovery: Offline Root Key Extraction via Public Transcripts
The Entropy Attack Suite (EAS) can reconstruct the initial root key, designated , of the APQKE-DR secure channel from publicly available transcripts when endpoint randomness is compromised, revealing a critical vulnerability even with post-quantum cryptographic primitives in place. Experiments detailed in the work demonstrate that an attacker recording a standard handshake exchange can, under specific conditions, fully recover the session key used to encrypt subsequent communication.
This recovery hinges on exploiting predictable patterns within the random number generation process, even if a Trusted Platform Module (TPM) initially seeds the system. Analysis focused on a diagnostic low-byte Linear Congruential Generator (LCG) revealed that an attacker could enumerate observable streams, matching the ephemeral ML-KEM public value found in the first message of the handshake to identify the correct stream. Once identified, the attacker can then decapsulate a ciphertext using the regenerated secret key, obtaining the session-specific secret and ultimately reconstructing .
The researchers emphasize that this offline replay attack does not require active manipulation of the communication channel, only the passive recording of publicly transmitted data. This contrasts with attacks that require active man-in-the-middle intervention or direct access to the endpoint device. Further experimentation showed that while TPM seeding effectively prevents recovery during the early-boot phase, it offers no protection against RNG substitution after the initial seed is established.
This highlights a weakness in relying solely on hardware security modules for randomness, as a compromised or malicious software component can still undermine the entire system. The APQKE-DR channel, designed for communication between smart grid nodes and servers, exchanges 9,610 bytes during the handshake with median latencies of 1. 99 ms for the node and 0. While these latencies demonstrate a measurable performance overhead, the researchers integrated the protocol beneath existing ANSI C12.
The success of the offline root key recovery, however, highlights the need for continuous entropy monitoring and robust randomness sources to ensure long-term security. The team assessed recovery probability by recording multiple Protocol 1 transcripts and attempting to recover , defining T_(0. 5) as the delay at which the probability of successful recovery falls below 0. 5. This metric provides a quantifiable measure of the system’s resilience to randomness failures.
The EAS, they contend, offers a valuable methodology for evaluating secure channels under realistic, degraded entropy conditions, moving beyond idealized assumptions of perfect randomness. The ability to recover the root key from public transcripts, even with post-quantum cryptography, is a stark reminder that strong cryptography alone is insufficient to guarantee security in the face of compromised endpoint randomness.
👉 More information
🗞 APQKE-DR: Entropy-Failure Analysis of a Post-Quantum-Initialized Ratcheted Channel
✍️ Muhammad Asfand Hafeez, Zain Ul Abideen, Amna Zafar, Kazi Hassan Shakib and Arslan Munir
🧠 ArXiv: https://arxiv.org/abs/2611.32024v1




See today’s quantum computing news on Quantum Zeitgeist for the latest breakthroughs in qubits, hardware, algorithms, and industry deals.
