Harvest now, decrypt later

Also known as: HNDL · store now · decrypt later

On this page 7

Harvest now, decrypt later (HNDL), also called store now, decrypt later, is an attack strategy in which an adversary captures and archives encrypted data today and waits until a future machine can break the cryptography that protects it. In quantum security, the term describes the specific threat that a cryptographically relevant quantum computer running Shor’s algorithm will one day recover the keys behind recorded RSA and elliptic-curve sessions.

The concept matters because it turns a future capability into a present-day risk. Data that must stay confidential for ten or twenty years is already exposed if it crosses a network under classical key exchange, which is why HNDL is the main argument for starting the move to post-quantum cryptography long before the first quantum computer capable of breaking it exists.

How a harvest now, decrypt later attack works

A harvest now, decrypt later attack has two separated phases: passive collection in the present and cryptanalysis in the future. The attacker does not need to break anything at the time of capture; it only needs storage, access to traffic and patience.

In the collection phase, the adversary copies ciphertext from fiber taps, compromised routers, cloud backups or stolen archives. The most valuable captures include the complete key exchange handshake, because a TLS, SSH or IPsec session derives its symmetric keys from an ephemeral Diffie-Hellman or ECDH exchange. Whoever can later solve the underlying discrete logarithm problem can reconstruct the session keys and decrypt everything that followed.

The following table summarizes the stages of the attack and what each one requires.

StageWhat happensWhat the attacker needs
InterceptionEncrypted traffic or files are copiedNetwork position or system access
SelectionTargets with long-lived value are filteredMetadata, routing and endpoint knowledge
ArchivingCiphertext and handshakes are storedCheap, durable bulk storage
Key recoveryPublic-key math is broken years laterA cryptographically relevant quantum computer
DecryptionSession keys decrypt the stored dataStandard computing resources
Stages of a harvest now, decrypt later attack

Because the collection phase is passive and leaves no trace, victims rarely know that their traffic has been archived. Perfect forward secrecy does not help here: it protects against later theft of a long-term private key, but every ephemeral exchange remains individually breakable by a quantum computer.

Which cryptography harvest now, decrypt later threatens

HNDL threatens public-key key establishment far more than symmetric encryption or hashing. Shor’s algorithm solves integer factoring and discrete logarithms in polynomial time, which defeats RSA, finite-field Diffie-Hellman and elliptic-curve schemes completely. Grover’s algorithm offers only a quadratic speedup against symmetric ciphers, so AES-256 keeps a comfortable margin.

Digital signatures are a separate case. A forged signature in the future cannot retroactively change a message that was verified in the past, so signatures face forgery risk after Q-Day rather than a harvest risk. Confidentiality of recorded data is what HNDL attacks, and the table below shows how exposure differs by primitive.

PrimitiveQuantum attackHNDL exposure
RSA key transportShor’s algorithmHigh: recorded sessions fully recoverable
ECDH and X25519Shor’s algorithmHigh: ephemeral keys recoverable
AES-128Grover’s algorithmLow to moderate: effective strength reduced
AES-256Grover’s algorithmVery low: large security margin remains
SHA-2 and SHA-3Grover-type searchVery low for confidentiality
ML-KEMNo known efficient attackDesigned to resist HNDL
Exposure of common primitives to harvested-data attacks

The practical consequence is that key exchange must be migrated first. Data encrypted with a pre-shared AES-256 key and never exposed through a classical public-key exchange is largely safe, whereas a standard web session protected only by ECDHE is a candidate for future decryption.

Estimating the risk with data lifetime and Mosca’s theorem

The size of the harvest now, decrypt later risk depends on how long data must stay secret, not on how soon a quantum computer arrives. Mosca’s theorem expresses this as an inequality: if the confidentiality lifetime of the data plus the migration time exceeds the time until a cryptographically relevant quantum computer exists, the data is already at risk.

Nobody can state the arrival date of such a machine with confidence. Expert surveys place a meaningful probability within ten to twenty years, while some researchers expect longer, and the uncertainty itself is the reason to act early. The following table compares typical data categories by confidentiality horizon.

Data categoryRequired secrecyHNDL priority
Session cookies and one-time codesMinutes to daysLow
Routine business emailOne to five yearsModerate
Trade secrets and source codeFive to fifteen yearsHigh
Health and genetic recordsLifetime of the personVery high
Diplomatic and defense communicationsTwenty-five years or moreCritical
Long-term identity and biometric dataDecades, not revocableCritical
Typical confidentiality horizons and HNDL priority

Migration time is often underestimated. A cryptographic inventory, vendor upgrades, protocol testing and hardware replacement in large organizations can take five to ten years, which shrinks the safe window considerably.

Defending against harvest now, decrypt later

The primary defense is to replace vulnerable key establishment with quantum-resistant key encapsulation before sensitive traffic crosses untrusted networks. NIST standardized ML-KEM in FIPS 203 for this purpose, and most deployments combine it with a classical algorithm in a hybrid key exchange such as X25519MLKEM768, so that security holds as long as either component remains unbroken.

The table below matches common situations with a recommended response.

SituationRecommended measureReason
Public web servicesEnable hybrid ML-KEM in TLS 1.3Protects sessions with little latency cost
Site-to-site VPNsUse post-quantum IKEv2 extensions or pre-shared keysRemoves reliance on classical exchange alone
Messaging applicationsAdopt protocols such as PQXDHProtects long-lived personal conversations
Archived backupsEncrypt with AES-256 and protected key wrappingSymmetric storage resists quantum attack
Legacy embedded devicesIsolate traffic and plan hardware replacementFirmware often cannot be upgraded
Defensive choices against harvested-data attacks

Crypto-agility is the supporting principle. Systems that can swap algorithms through configuration rather than redesign can respond faster if a post-quantum scheme is weakened, as happened when SIKE was broken by classical cryptanalysis in 2022.

Common misconceptions about harvest now, decrypt later

Several misunderstandings lead organizations to delay migration unnecessarily. The most frequent ones are listed below.

  • It is not a future problem. The collection happens today, so the deadline for protecting long-lived data is set by present traffic, not by Q-Day.
  • Strong passwords do not help. Session keys come from public-key exchanges, and password strength has no effect on Shor’s algorithm.
  • Bigger RSA keys are no fix. Shor’s algorithm scales polynomially, so doubling key size only modestly raises the quantum resources required.
  • Quantum key distribution is not required. Post-quantum cryptography runs on existing hardware and networks, while QKD needs dedicated infrastructure.
  • Not all data needs priority. Short-lived data has little HNDL value, so a risk-based order of migration is legitimate.

Stripped to the essentials

Imagine someone photographing every locked safe they pass, even though they cannot open any of them today. They keep the photos in a drawer and wait for a master key to be invented. Harvest now, decrypt later works the same way with encrypted internet traffic.

Today, the locks on most online connections are strong. A future quantum computer, however, could open the type of lock that sets up those connections. Anything secret for many years is already at risk if it was sent with the old locks, so the sensible step is to switch to quantum-resistant locks now.

Where it is applied

A regional hospital network transfers patient imaging and genetic test results between its sites and an external laboratory over the public internet. Its security team assumes that a well-resourced adversary could record this traffic, and genetic data must remain confidential for the entire lifetime of each patient, well beyond any reasonable estimate of Q-Day.

The team builds a cryptographic inventory and finds that the laboratory link relies on TLS with ECDHE key exchange only. It enables hybrid X25519MLKEM768 on the load balancers and asks the laboratory to upgrade its client library. The handshake grows by about two kilobytes and adds no measurable delay to transfers of large image files.

Within one quarter, all new transfers use hybrid key exchange. Older recorded traffic cannot be protected retroactively, but the exposure window is closed for every future transfer, and the hospital documents the change as part of its quantum-safe migration plan.