A controller at a customer site downloads a confidential maintenance package from Northline Controls, a fictional industrial manufacturer. The package includes calibration data and a software update. The controller checks the update manifest against Northline’s trusted release key. The ML-DSA-65 signature is mathematically valid. One detail changes the outcome Northline intended. Its legitimate signing service signed build ci-059, even though the release team had approved only ci-041.

The service accepted a request from the build pipeline and skipped the approval check for that artifact. It genuinely signed the bytes. A controller that treats every valid signature from that key as sufficient approval can install the unauthorized build. The same package shows four distinct protections.

ProtectionWhat it does for Northline’s package
Key establishmentThe TLS peers establish a shared secret that the protocol uses to derive traffic keys. The handshake separately authenticates the server. A later break of the negotiated key establishment can expose previously recorded traffic.
Authenticated encryptionAES-GCM encrypts the maintenance data and detects unauthenticated changes to the protected records under the traffic keys. Each key needs unique nonces. The encrypted connection can deliver a package that Northline signed by mistake.
Digital signatureThe device verifies the manifest under a trusted release key and checks that the update bytes match the digest in that manifest. This check can travel with the package after the TLS connection ends.
Release approvalA separate authority checks the artifact’s provenance and authorizes its exact digest for a product and release channel. The signing service enforces that decision before it signs.
The builder produces an artifact and provenance. Independent release approval checks the exact digest and stops unapproved builds. The signing service signs the approved manifest. HTTPS delivers the package. The device verifies trust, signature, digest, target and version before installation.
Northline’s proposed release path gives the signing service an independent decision to enforce.

On 2 December 2026, OpenAI and Anthropic joined six other technology companies in calling for faster adoption of NIST’s post-quantum cryptography standards. On 3 December, NIST reaffirmed its confidence in those standards after assessing Anthropic’s research and urged organizations to accelerate high-risk migrations. For Northline, the question each team can act on is which failure it is trying to prevent. Joint statement · NIST’s 3 December assessment

Compare algorithms by the job they do

Establish a key. With classical X25519, each party combines its private value with the other party’s public value and arrives at the same secret. With ML-KEM, the encapsulator uses the recipient’s public encapsulation key to produce a secret and an encapsulation, also called a KEM ciphertext. The recipient recovers the same secret with its private decapsulation key. An authenticated protocol binds the exchange to the intended peer and derives the keys that protect traffic. In the Java exercise, X25519 is used inside DHKEM(X25519, HKDF-SHA256), which exposes the same encapsulation interface as ML-KEM. A plain X25519 TLS exchange has its own protocol framing. RFC 7748 · RFC 9180 §7.1 · NIST SP 800-227

Sign the update. Ed25519 and ML-DSA let a verifier check that the signed bytes match a signature under a particular public key. If those bytes are a manifest, its signed digest must cover the exact update being installed. The verifier also needs a trusted association between that key and the product’s release authority. SLH-DSA gives the signature team a standardized option based on a different family of assumptions. RFC 8032 §5.1 · FIPS 204 · FIPS 205

Protect the payload. AES-GCM uses a symmetric key to encrypt data and authenticate the ciphertext and associated data. A party with that key can produce a valid tag. The tag serves the protected connection and the public-key signature serves the release artifact. Northline can change the TLS key establishment while continuing to use AES-GCM for its traffic. FIPS 197 · NIST SP 800-38D · TLS 1.3, RFC 9846

What makes the math hard?

  • RSA and elliptic curves. RSA uses a public modulus built by multiplying two large primes. Factoring it gives an attacker the information needed to reconstruct a private key. With elliptic curves, repeatedly adding a point by a secret multiplier is easy to compute. Recovering the multiplier from the public result is the discrete logarithm problem. Classical constructions such as X25519 and Ed25519 rely on the difficulty of elliptic-curve problems. RFC 8017 · RFC 7748 §7 · RFC 8032 §8
  • Structured lattices. Imagine a regular grid in many dimensions. ML-KEM relies on the difficulty of recovering or recognizing a hidden pattern in algebraic equations obscured by small errors. ML-DSA also relies on the difficulty of finding short solutions to related algebraic constraints. Structure makes the required arithmetic and encoding practical. It also gives cryptanalysts relationships to study. FIPS 203 · FIPS 204 · CIRG assessment
  • Hash-based signatures. SLH-DSA uses hash functions to link many small signing structures into trees. A verifier recomputes hashes up to a public root. Security relies on properties of the underlying hash constructions, including the difficulty of finding inputs that give a prescribed output in the relevant setting. Its signature is larger than ML-DSA-65’s in the example below. FIPS 205

Shor’s algorithm changes the public-key picture. Given a sufficiently capable fault-tolerant quantum computer, quantum factoring and discrete logarithm algorithms threaten RSA and elliptic-curve systems. An adversary could use recorded classical ephemeral public shares to recover old session secrets once that capability exists. For signatures, the corresponding risk is forging a new artifact while the fleet still trusts the vulnerable key. Shor’s paper · NIST IR 8547

Grover’s algorithm offers a different kind of advantage. In an idealized search of a space of size N, it takes on the order of √N quantum queries. For a 256-bit AES key that suggests roughly 2¹²⁸ idealized queries, each requiring a reversible key-checking computation. Error correction, circuit depth and the cost of the quantum computation matter. The query count is neither a runtime estimate nor a statement about GCM’s authentication tag. Grover’s paper · RFC 9958 §3

How many bytes are we moving?

These are algorithm encodings in bytes. DER containers, certificate chains, PEM, TLS framing and application metadata add their own overhead. The rows compare deployment choices by function. They do not imply equivalent security categories.

Function and exact parameter setPublic keyPrivate keyEncapsulation, signature or tag
DHKEM(X25519, HKDF-SHA256), RFC 9180 raw3232-byte serialized X25519 private input32-byte encapsulation, an ephemeral X25519 public key
ML-KEM-768, FIPS 2031,1842,400-byte decapsulation key1,088-byte KEM ciphertext
Ed25519, RFC 8032 pure mode3232-byte seed64-byte encoded signature
ML-DSA-65, FIPS 204 pure mode1,9524,032-byte expanded signing key3,309-byte encoded signature
SLH-DSA-SHA2-128s, FIPS 205 pure mode3264-byte encoded secret key7,856-byte encoded signature
AES-256-GCM, using a 96-bit nonce and 128-bit tag—32-byte symmetric key16-byte tag per authenticated encryption. Nonce derivation or encoding is protocol-specific.

For example, the standardized TLS group X25519MLKEM768 carries a 1,216-byte client share and a 1,120-byte server share, against 32 bytes each for plain X25519 before framing. That can change packet counts on constrained links. Measure actual handshake bytes, retransmissions and latency across gateways and devices under representative loss and MTU. Keeping a classical server certificate while upgrading the key exchange leaves the certificate chain’s algorithm and size unchanged. RFC 10024 §4 · RFC 9958

At the device, an ML-DSA-65 signature adds 3,245 raw bytes over Ed25519. A chain can add both larger subject keys and larger issuer signatures, and the two can use different algorithms. Private key storage has its own formats. For example, RFC 9881 allows a 32-byte seed instead of the expanded ML-DSA private key. Measure the actual containers and check bootloader parsing, available flash, peak RAM, receive buffers, verification time and watchdog limits on the oldest supported controller. The table establishes size, and the lab checks behavior. Neither supplies a timing benchmark. Ed25519 in X.509, RFC 8410 · ML-DSA in X.509, RFC 9881

On the signing side, check support for the exact parameter set, HSM model and firmware, host client, signing mode, API mechanism and any required validated configuration. Thales, for example, documents ML-DSA support for Luna USB HSM 7 firmware 7.9.2 and lists ML-DSA-65 in its Luna programming guide. Northline still needs to test signing, failover, backup or recovery, and rotation through its own client and production configuration. A standard algorithm name in the JDK establishes software support on that JDK. Thales release notes · Thales ML-DSA programming guide

Three places an AI-assisted attacker can find leverage

Ask what must fail. If the mathematical assumption fails, assess the cost at deployed parameters and migrate the primitive. If code or configuration fails, patch and verify the deployed path. If someone misuses release authority, require independent approval before signing.
Choose a control that addresses the layer where the failure occurs.
LayerWhat AI can acceleratePublic evidenceWhat an attack would needControl for Northline
Mathematical primitiveExplore candidate techniques, check proofs and estimate costs.Anthropic reports an improved attack on reduced-round AES and a theoretical quantum algorithm for certain structured lattice problems. CIRG assesses the latter as far costlier at NIST parameters than existing attacks.A method that applies to the actual primitive and parameters, usable access to any required inputs or oracle, and a feasible cost on available hardware. The lattice result also requires large-scale quantum computation.Migrate quantum-vulnerable public-key functions using reviewed standards and supported profiles. Track practical cost estimates and keep a tested replacement path.
ImplementationHelp search for defects and compress the time between discovery and abuse.Google reports LLM-assisted vulnerability research and automation in attacker tooling. Its report also documents exploitation of a deployed LiteLLM service vulnerability. These observations concern software weaknesses.A reachable vulnerable version, configuration or observable leakage. The precise preconditions depend on the defect.Use maintained cryptographic providers, verified protocol configurations and timely patches. Test verification failures and enforce safe nonce and key handling.
OperationsScale credible impersonation, triage discovered access and speed up use of existing privileges.Google reports AI-enabled impersonation and subsequent activity inside organizations’ repositories. Northline’s unauthorized signing event is fictional.In Northline’s case, access to a build or signing path the service trusts and a missing or ineffective approval check for the exact artifact.Isolate build and signing identities, verify provenance and independent approvals before signing, and audit signing decisions.

The reduced-round finding is about seven of AES-128’s ten rounds under a chosen-plaintext research model. Anthropic also reported a result specific to HAWK, then a candidate signature scheme. These are findings about the stated variants and constructions. A practical break of full AES-GCM would require evidence against the complete deployed construction under relevant access and cost assumptions. Anthropic’s July research

The theoretical lattice result is about how the cost grows in certain mathematical families as parameters scale. Anthropic published papers and a Lean formalization. CIRG’s independent initial assessment says that the new quantum method would take vastly more computation against current ML-KEM and ML-DSA parameters than previously known attacks, themselves beyond practical reach. NIST’s 3 December assessment maintained confidence in the PQC standards and announced work on a faster deprecation timeline for quantum-vulnerable cryptography. A proof about growth rates and a practical attack at a deployed parameter set answer different engineering questions. Anthropic’s papers · CIRG assessment · NIST assessment

The observed activity comes from Google Threat Intelligence Group and Mandiant’s 16 November report. Their vendor telemetry shows that attackers can use AI to move faster against software and people. The report also distinguishes observed intrusions from tooling found during investigations. The sources reviewed through 4 December 2026 provide no public demonstration of practical key recovery or signature forgery against a correctly implemented, deployed instance of the full AES, ML-KEM or ML-DSA primitives discussed here. An actual service compromise can still defeat the protection the application was meant to provide. Google Threat Intelligence report

Run the three checks on Java 25

Download the Java 25 lab ZIP, extract it, and run these commands from the extracted folder with a Java 25 JDK on your path. It uses standard javax.crypto.KEM and java.security APIs with the JDK’s built-in providers. The runs below were captured on Microsoft Build of OpenJDK 25.0.5.1+2-LTS on Windows 11 x64. SunJCE handles both KEMs, SunEC supplies X25519 keys and Ed25519, and SUN supplies ML-DSA. java Lab.java environment reports the concrete provider selection. Java 25 KEM API · JDK 25 provider documentation

java Lab.java kem
java Lab.java signatures
java Lab.java approval

Key establishment. Each run generates recipient keys, encapsulates with the public key and decapsulates with the matching private key. It checks the resulting secrets for equality and prints the encapsulation length and the check result.

Java lab output. DHKEM with X25519 uses a 32-byte encapsulation. ML-KEM-768 uses 1,088 bytes. Both shared-secret equality checks return true.
Captured from the extracted ZIP with java Lab.java kem.
Copy the key establishment transcript
DHKEM / X25519
Encapsulation: 32 bytes
Shared secrets match: true
ML-KEM-768
Encapsulation: 1088 bytes
Shared secrets match: true

Signatures. Both signers read the same synthetic approved.manifest. The altered copy changes the release field from 4.8.2 to 4.9.9. Verification uses each original signature against both inputs.

Java lab output. Ed25519 and ML-DSA-65 each report true for the original manifest and false for the altered copy.
Captured from the extracted ZIP with java Lab.java signatures.
Copy the signature transcript
Ed25519
Original signature valid: true
Altered signature valid: false
ML-DSA-65
Original signature valid: true
Altered signature valid: false

Release approval. The same ML-DSA-65 test key signs both an approved manifest and the separate unapproved.manifest for ci-059. The exercise models a service that skipped the approval gate. An independent SHA-256 allowlist contains only the approved manifest’s digest. Both signatures verify. Only the approved build passes the separate rule.

Java lab output. Both ML-DSA-65 signatures are valid. The release rule approves the first manifest and rejects the separately signed unapproved manifest.
Captured from the extracted ZIP with java Lab.java approval.
Copy the release approval transcript
Approved build
ML-DSA-65 signature valid: true
Release approved: true
Unapproved build
ML-DSA-65 signature valid: true
Release approved: false

The exercises isolate the primitives and the policy decision. For deployment, use established protocols and container formats. For example, ship over TLS 1.3 using its standardized hybrid group where supported, and use CMS SignedData with an ML-DSA profile when the device’s update format and verifier support it. An existing platform-specific signing container may already define which fields and hashes the device must verify. Apply the release gate to the exact artifact the signing service will sign. TLS hybrid key agreement, RFC 10024 · ML-DSA in CMS, RFC 9882

Two decisions for Northline

1. Start with the transfers whose contents must stay confidential the longest. Northline assumes the calibration data in this package must stay private for 12 years. Someone can record its traffic today and try to decrypt it later, even after Northline has switched protocols. That is the harvest now, decrypt later risk. Inventory each TLS termination, where plaintext is exposed and how the downloaded package is encrypted at rest. Pilot standardized hybrid key establishment first on the long-lived flows. Make an observed hybrid negotiation on every relevant hop, plus measured reliability on those links, a condition for accepting the rollout. The migration reduces the risk that a future break of the classical exchange alone exposes newly protected traffic. NIST IR 8547 · NIST CSWP 39upd1

For a worked example with a gateway and two independent negotiations, see Post-Quantum TLS: One HTTPS Request, Two Handshakes.

2. Plan signature migration around the devices that must still trust releases years from now. For each model, record the remaining support life, verifier algorithms and formats, and how its trust anchors can be updated. Roll out verifier and trust changes while the current trusted path still works. Test an authorized anchor update, an invalid signature, an unsupported algorithm, rollback rejection and recovery after an interrupted rotation on the oldest supported hardware. For devices with an immutable anchor and no supported way to introduce a new verifier, make an explicit replacement or containment decision. NIST IR 8547 · NIST CSWP 39upd1

Put the signing controls in place during that migration. Give the build service permission to produce artifacts and verifiable provenance. Give the signing service a separate identity and require a release authority to approve the exact digest, product and channel. Have the signer validate the provenance and the independently issued approval before using its key. Exercise key rotation and the recovery path, including how offline devices stop trusting a retired key. In Northline’s case, the first acceptance test is simple. Submit a genuine build artifact with no approval record and confirm that the service refuses to sign it and records the denial. NIST Security Considerations for Code Signing §6