← Lab /Systems

Endpoint RNG failures expose root keys in post-quantum ratcheted channel

Randomness failures let attackers recover the RNG stream and root key from public transcripts, breaking the channel's secrecy and authentication

Systems arXiv 24 Nov 2026 Measurement Prototype evidence Threat model

Published as “APQKE-DR: Entropy-Failure Analysis of a Post-Quantum-Initialized Ratcheted Channel”

Why it matters

Deployments that rely on post-quantum handshakes must ensure continuous entropy-path integrity; otherwise, recorded traffic can be decrypted once a quantum adversary becomes available.

Summary

APQKE-DR’s post-quantum handshake runs in about 2 ms on a Raspberry Pi CM5 and adds only 31 bytes per message, but its security collapses when endpoint randomness is compromised: a weak RNG lets an attacker recover the initial root key, and TPM seeding only blocks early-boot attacks, not later RNG-path subversion. The Entropy Attack Suite demonstrates offline key recovery under both early-boot entropy holes and deterministic RNG shims, while measured-boot gating can prevent compromised firmware from establishing a session. Evidence comes from real-world experiments on embedded hardware with 2000 handshakes per configuration.

What they found 4

  1. The APQKE handshake exchanges 9,610 bytes with median latencies of 1.99 ms (node) and 0.82 ms (server) on a Raspberry Pi CM5.

    “On a Raspberry Pi Compute Module 5, the APQKE handshake exchanges 9,610 bytes with median latencies of 1.99 ms (node) and 0.82 ms (server).”

  2. The Double Ratchet adds only 31 bytes per message.

    “The ratcheted channel adds 31 bytes per message.”

  3. TPM-seeded entropy prevents early-boot key recovery but does not stop RNG-path subversion.

    “TPM seeding prevents early-boot attacks but not later subversion, while measured boot can block modified firmware.”

  4. When the RNG API is subverted with a deterministic 16-bit LCG, an attacker can recover the root key from public transcripts.

    “Under RNG-path subversion, a weak generator exposes the root key across sessions.”

Caveats 4

  • Under RNG-path subversion, a weak generator exposes the root key across sessions, undermining the protocol’s claimed secrecy.
  • TPM seeding blocks early-boot attacks but does not prevent downstream RNG substitution, so the channel remains vulnerable after seeding.
  • The protocol does not aim to resist sustained flooding, total state exhaustion, or indefinite message dropping.
  • Domain-specific validation is required for each domain before large-scale implementation.

What’s new here 3

  • Introduces the Entropy Attack Suite (EAS) to evaluate secure channels under endpoint randomness failures.
  • Combines a post-quantum ML-KEM/ML-DSA handshake with an X25519 Double Ratchet for long-lived channels.
  • Evaluates hardware-anchored entropy (TPM) and measured-boot gating as mitigations for entropy-related attacks.

Threat model stated by the source

Adversaryactive Dolev-Yao network adversary (Anet) plus additional adversaries (Aseed, Arng, Aimg, Astate, AQ) defined in the paper
Capabilityobserve, modify, inject, replay, reorder, delay, drop messages; initiate concurrent sessions; reset devices; control RNG output; install modified firmware; obtain recorded traffic for future quantum decryption; temporarily obtain ratchet state
Assumestrustworthy provisioning authority and ML-DSA keys; correct cryptographic implementations; secure erasure of ephemeral secrets; enforced TPM measured-boot policy; integrity of persistent credentials and ratchet state