Modern key-exchange protocols fail in a common way: some cryptographic output — a ciphertext, a session key, a signature — can be computed without being tightly tied to its execution context. Three literatures document three faces of this failure. When a Key Encapsulation Mechanism (KEM), the public-key half of hybrid encryption, generates ciphertexts whose random coins are not strictly bound to the recipient's public key, subverted encryption software can chain those coins across sessions and leak session keys to a passive eavesdropper: Subvert KEM to Break DEM shows that an attacker holding only a small "subversion key" recovers the symmetric key from just two consecutive ciphertexts, without ever touching the victim's private key. When a key-exchange handshake omits its own message history from key derivation, attackers splice sessions together in unknown-key-share and key-replication attacks, which Security Analysis of KEA Authenticated Key Exchange Protocol and Examining Indistinguishability-Based Proof Models for Key Establishment Protocols show are neutralized only by hashing the full transcript into the key. And when public keys carry no certificate, anyone can swap in a crafted key and balance pairing verification equations into universal forgery, as demonstrated in An Attack on a Certificateless Signature Scheme and On the Security of an Efficient and Robust Certificateless Signature Scheme for IIoT Environments.
The state of the art for the subversion half, Universally Composable Subversion-Resilient Authenticated Key Exchange, answers coin-chaining attacks with external Reverse Firewalls — trusted intermediaries that rerandomize every transmitted message — but it explicitly retains a trusted-setup assumption and assumes certified long-term keys. This proposal asks a sharper question: how much subversion resilience can be achieved by the key-derivation structure itself, in a certificateless setting where public keys can be replaced by anyone, with no firewall and no trusted setup? Our core answer is a construction in which the responder encapsulates back to the initiator with honest randomness, and the session key is derived from both encapsulation secrets together with the full transcript and both parties' public-key values. The asymmetry that Subvert KEM to Break DEM exploits — their eavesdropper decrypts via the subversion key and deliberately never needs the private key — is turned against the attack: the second encapsulation secret is recoverable only with the initiator's private key, so two observed ciphertexts are no longer enough.
Core Claim
We claim that a bidirectional, transcript-bound KEM exchange in a certificateless setting simultaneously closes three attack surfaces that no single prior construction addresses together. Against the algorithm-substitution attack of Subvert KEM to Break DEM, the subversion-key eavesdropper decodes the initiator's encapsulation secret from chained coins but cannot obtain the responder's encapsulation secret without the initiator's private key, so the published two-ciphertext attack provably fails. Against key replacement by a Super Type I adversary (the taxonomy of Certificate-based Signatures Revisited), a substituted public key is hashed directly into key derivation, so any in-flight replacement causes immediate key divergence between honest parties, and the responder authenticates its reply under the key-generation center's partial private key, which the replacer cannot forge. Against unknown-key-share and key-replication attacks, the session identifier is the full transcript concatenation, the exact condition Examining Indistinguishability-Based Proof Models for Key Establishment Protocols proves necessary for Canetti-Krawczyk (CK2001) security. The cost target is concrete: the added binding is hash-based, not pairing-based, so unlike the patch of An Attack on a Certificateless Signature Scheme — which doubles verification from two bilinear pairings to four — the construction should preserve the zero on-line pairing count that Efficient Certificateless Authentication and Key Agreement (CL-AK) for Grid Computing achieves through off-line precomputation.
We also state honestly what the construction cannot do, because the boundary is itself a result. A fully subverted implementation that also tampers with decryption could, in principle, exfiltrate past session secrets through later ciphertext coins; no key-derivation structure can prevent an implementation from leaking values it computes. Our claim is calibrated to the published threat model of Subvert KEM to Break DEM, which subverts only the encapsulation algorithm while preserving normal decryption, and we characterize precisely where stronger subversion forces the return of Reverse Firewalls.
Background and the Open Intersection
Three prior lines supply the components, and each leaves the intersection empty. Subvert KEM to Break DEM mounts algorithm-substitution attacks on non-interactive hybrid encryption with genuine public keys; it does not consider interactive exchange, transcript binding, or key replacement. Universally Composable Subversion-Resilient Authenticated Key Exchange is the closest existing work: it builds subversion-resilient authenticated key exchange from blind KEMs, rerandomizable commitments, and Reverse Firewalls, and its ideal functionality models adversarial key control. But it assumes trusted parameter setup and certified long-term keys, does not model uncertified public keys being replaced mid-protocol, and its defense lives outside the endpoint rather than in the key derivation. Efficient Certificateless Authentication and Key Agreement (CL-AK) for Grid Computing gives the certificateless baseline we build on — partial private keys from a key-generation center plus user secrets, static pairings precomputed off-line so the live exchange needs zero on-line pairings — but it derives session keys from ephemeral group elements without binding the transcript, admits party-influenced key control by the authors' own admission, and says nothing about subverted randomness. The replacement-attack literature is almost entirely destructive: An Attack on a Certificateless Signature Scheme breaks Gorantla-Saxena via fake public keys and leaves its patched scheme without a formal proof; Practical certificateless short signature scheme and On the security of an enhanced signature scheme show that homogeneous pairing equations let an attacker scale a public key and signature by a scalar ratio and forge for a new identity, but propose no repaired binding mechanism. The one constructive tool we reuse is the hash binding of Certificate-based Signatures Revisited, which hashes a public key into the identity string to defeat replacement; we extend its role from static signature identity to live transcript binding.
Two further papers constrain the design rather than motivate it. Security of Two-Party Identity-Based Key Agreement proves that binding identities alone, without the ephemeral transcript, permits key replication across concurrent sessions — so our KDF must take the whole transcript, not just names. And Errors in Computational Complexity Proofs for Protocols, together with the simulation-abort flaws exposed in On the Security of an Efficient and Robust Certificateless Signature Scheme for IIoT Environments, warns that hand-written proofs for exactly this class of schemes routinely fail at replacement queries; this is why mechanized verification is a deliverable, not an afterthought.
Research Program
The construction is a three-pass certificateless key exchange. In the first pass, the initiator encapsulates to the responder's certificateless public key, producing ciphertext $c_1$; this module is the subvertible one, and our analysis assumes it may run the coin-chaining encapsulation of Subvert KEM to Break DEM. In the second pass, the responder, holding its key-generation-center partial private key and user secret, encapsulates back to the initiator's public key with honest randomness, producing $c_2$, and attaches an authenticator computed under a key derived from its partial private key over everything seen so far. In the third pass, the initiator confirms; following the observation in Security Analysis of KEA Authenticated Key Exchange Protocol that two passes cannot give full perfect forward secrecy against active adversaries without explicit key confirmation, this third pass is what buys forward secrecy rather than decoration. The session key is
$$K = \mathrm{KDF}(K_1,\ K_2,\ H(\mathit{PK}_A),\ H(\mathit{PK}_B),\ \text{transcript}),$$
where $K_1$ is the secret encapsulated in $c_1$, $K_2$ the secret encapsulated in $c_2$, $H(\mathit{PK})$ hashes each party's uncertified public key value into derivation (the live analogue of the static binding in Certificate-based Signatures Revisited), and the transcript is the concatenation of every message bit, which is exactly the session-identifier definition that Examining Indistinguishability-Based Proof Models for Key Establishment Protocols shows is necessary for CK2001 security. The two-pass variant without confirmation is a fallback that trades forward secrecy for latency and is analyzed as such.
The formal work has three parts. First, a security model: we extend CK2001 with an oracle that returns the subversion key and lets the adversary observe all ciphertexts (the passive eavesdropper of Subvert KEM to Break DEM), plus Super Type I public-key replacement queries from Certificate-based Signatures Revisited, where the adversary replaces keys without ever submitting matching secrets. Second, a reductionist proof, in the random oracle model under a Diffie-Hellman-family assumption, that session-key indistinguishability holds even given the subversion key: the crux is that $K_2$ is hidden by the initiator's private key, which the subversion key is designed to avoid needing, and that any replacement of $\mathit{PK}_A$ or $\mathit{PK}_B$ alters a KDF input, so spliced sessions derive different keys by the transcript-divergence argument of Security of Two-Party Identity-Based Key Agreement. Third, a boundary theorem: a adversary that subverts both encryption and decryption can delay-exfiltrate $K_2$ of past sessions through later coins, so firewall-free resilience is exactly coextensive with encryption-only subversion — this sharpens, rather than contradicts, the firewall motivation of Universally Composable Subversion-Resilient Authenticated Key Exchange.
The verification work encodes the protocol and a symbolic analogue of both adversaries in Tamarin. Election Verifiability Revisited: Automated Security Proofs and Attacks on Helios and Belenios reports that most of its automated checks on corrupted-infrastructure voting protocols terminate in under 10 minutes, which gives us a runtime yardstick; our modeling must express coin-chaining (an eavesdropper rule that decodes $K_1$ from consecutive ciphertexts given the subversion key) and public-key scaling (replacement rules mirroring the scalar-cancellation of Practical certificateless short signature scheme), neither of which appears in existing Tamarin models to our knowledge.
Baselines
The do-nothing reference point is the CL-AK grid protocol of Efficient Certificateless Authentication and Key Agreement (CL-AK) for Grid Computing, run unchanged: it is the natural certificateless starting point, it already achieves zero on-line pairings and the same bandwidth as the Al-Riyami-Paterson protocol by precomputing the static pairing off-line, and it represents the cost floor we must stay near. It is also the baseline that should fall: with no transcript binding, it inherits the key-replication exposure that Security of Two-Party Identity-Based Key Agreement proved for transcript-free derivation, and our attack simulations will demonstrate a Chen-style eavesdropper recovering its session keys. Beating it means surviving the same simulations at a cost within one extra pass and a bounded number of hash operations.
The strongest existing competitor is the universally composable subversion-resilient AKE of Universally Composable Subversion-Resilient Authenticated Key Exchange, which is the only prior construction handling subverted randomness inside an authenticated exchange. To compare fairly, we run both under the same group, the same Diffie-Hellman-family assumptions its analysis uses, and the same adversary grants (subversion key, full ciphertext visibility, and Super Type I replacement — which we add to both sides of the comparison since their model does not include it), reporting per-handshake operation counts and pass counts for each. No reported result found on Lacuna for its concrete operation counts or runtimes, so the comparison is our own implementation of both under identical parameters. Beating it means matching encryption-substitution resilience with no Reverse Firewall, no trusted setup, and no certificate authority, at comparable operation cost; if it wins under full-implementation subversion, that is our boundary theorem speaking, and we will say so.
The key ablation isolates each ingredient by removing exactly one. Dropping the responder's encapsulation (unidirectional KEM with full transcript binding) should collapse to the two-ciphertext attack of Subvert KEM to Break DEM, proving the bidirectional structure is load-bearing. Dropping the transcript while keeping both encapsulations — deriving $K = \mathrm{KDF}(K_1, K_2, A, B)$ in the KEA+ style of Security Analysis of KEA Authenticated Key Exchange Protocol — should fall to key replication across concurrent sessions between the same identities, per Security of Two-Party Identity-Based Key Agreement and Revisit of McCullagh-Barreto Two-party ID-based Authenticated Key Agreement Protocols. Dropping the public-key hash from the KDF should fall to replacement, reproducing the degrees-of-freedom failure of On the Security of an Efficient and Robust Certificateless Signature Scheme for IIoT Environments. Each ablation is run with the same code, parameters, and adversary budget as the full scheme.
Why not just…?
Why not just use standard PKI certificates and TLS-style transcript hashing? Certificates stop key replacement but do nothing about subversion: Subvert KEM to Break DEM shows the attack operates entirely inside the sender's implementation, so a perfectly valid certificate and a fully hash-bound transcript coexist with session keys leaking through ciphertext coins. PKI also imports the certificate-management overhead that Efficient Certificateless Authentication and Key Agreement (CL-AK) for Grid Computing and On the Security of an Efficient and Robust Certificateless Signature Scheme for IIoT Environments identify as prohibitive for grid and industrial-IoT deployments, and Proving the TLS Handshake Secure (As It Is) shows real certificate-validation logic carries its own edge-case flaws. The certificateless regime is the point of the exercise, not an inconvenience.
Why not just require proof of possession when public keys are registered? Registration-time checks miss the adversary we model. A Super Type I adversary in the sense of Certificate-based Signatures Revisited never registers anything — it alters keys on the wire or works the verification equation directly, and Practical certificateless short signature scheme shows on-the-wire scalar scaling of an existing valid key needs no registration at all. Where structural checks do work, An Attack on a Certificateless Signature Scheme prices them: patching Gorantla-Saxena doubled verification from two pairings to four. Our design pays in hashes instead, and the operation-count experiment directly tests whether that discount is real.
Why not just deploy Reverse Firewalls everywhere? If firewall infrastructure is available, Universally Composable Subversion-Resilient Authenticated Key Exchange is a genuine threat to this proposal's value, and we treat it as the head-to-head baseline rather than argue it away. But its own authors flag the trusted-setup assumption as unresolved, firewalls require dedicated trusted intermediaries that are impractical for the edge deployments motivating certificateless protocols, and there is a structural tension: firewalls need malleable messages to rerandomize, while the algebraic rigidity needed to resist replacement and scalar cancellation — documented in Practical certificateless short signature scheme — pushes the other way. Our experiments settle the trade empirically: same assumptions, same adversary, one side with a firewall and trusted setup, our side without.
Why not just hash identities into the KDF, as KEA+ does? This is the cheapest alternative and it is exactly our ablation, so the evidence is already cited: identity-only binding fails key replication across concurrent sessions between the same parties (Security of Two-Party Identity-Based Key Agreement), fails the CK2001 requirement that session identifiers be full transcript concatenations (Examining Indistinguishability-Based Proof Models for Key Establishment Protocols), and permits intermediary injection without derivation failure (Off-line Password Guessing Attack on an Efficient Key Agreement Protocol for Secure Authentication). It also leaves the subversion channel intact, since the covert content rides the ciphertext, not the identities. The ablation run will show all of this concretely on our own construction.
Proposed Experiments and Decisive Checks
The empirical program has four measurements, each anchored to a number reported in the file. First, attack threshold: we reimplement the algorithm-substitution attack of Subvert KEM to Break DEM, which recovers a session key from two consecutive ciphertexts where prior public-key attacks needed a logarithmic number, and run it against the unmodified CL-AK protocol of Efficient Certificateless Authentication and Key Agreement (CL-AK) for Grid Computing and against our construction and each ablation. The decisive outcome is that two ciphertexts (and any bounded number) suffice against CL-AK and the unidirectional ablation, while no passive subversion-key attack exists against the full construction — this is a proof-backed barrier, since $K_2$'s coins are never visible to the eavesdropper, and the experiment checks the implementation against a best-effort attacker. Second, replacement: we script the Super Type I and scalar-scaling attacks of An Attack on a Certificateless Signature Scheme and On the Security of an Efficient and Robust Certificateless Signature Scheme for IIoT Environments against our handshake and confirm every replacement either aborts or yields key mismatch. Third, cost: we count on-line pairings, aiming to hold the zero on-line pairing figure that Efficient Certificateless Authentication and Key Agreement (CL-AK) for Grid Computing reports against the Al-Riyami-Paterson protocol while keeping bandwidth within one group element and one authenticator tag of it; for the authenticator we compare a MAC against a certificateless signature at the costs Certificate-based Signatures Revisited reports for its schemes — signature length one group element with signing cost one exponentiation plus one point addition for its Scheme I, and length one group element plus two field elements with cost four exponentiations, one point multiplication, and one point addition for its Super-adversary-resistant Scheme II. Fourth, verification runtime: our Tamarin proofs of the symbolic model with subversion and replacement rules are benchmarked against the under-10-minute figure that Election Verifiability Revisited: Automated Security Proofs and Attacks on Helios and Belenios reports for its checks; if multi-session interleaving pushes us far past that, it is itself a finding about the verification cost of compositional adversary models.
The decisive check for the whole proposal is the boundary theorem plus its empirical shadow: under encryption-only subversion, the construction survives with no firewall and no trusted setup; under full-implementation subversion, delayed exfiltration of past sessions succeeds, and the firewall approach of Universally Composable Subversion-Resilient Authenticated Key Exchange regains its necessity. If the reduction or the mechanized proof exposes a splicing route we have not anticipated — the failure mode that Errors in Computational Complexity Proofs for Protocols documents in exactly this genre — the negative result would still precisely locate the firewall-free frontier, which is the question the field currently answers only by assumption.
References
- Subvert KEM to Break DEM: Practical Algorithm-Substitution Attacks on Public-Key Encryption
- Security Analysis of KEA Authenticated Key Exchange Protocol
- Examining Indistinguishability-Based Proof Models for Key Establishment Protocols
- An Attack on a Certificateless Signature Scheme
- On the Security of an Efficient and Robust Certificateless Signature Scheme for IIoT Environments
- Universally Composable Subversion-Resilient Authenticated Key Exchange
- Certificate-based Signatures Revisited
- Efficient Certificateless Authentication and Key Agreement (CL-AK) for Grid Computing
- Practical certificateless short signature scheme
- On the security of an enhanced signature scheme
- Security of Two-Party Identity-Based Key Agreement
- Errors in Computational Complexity Proofs for Protocols
- Election Verifiability Revisited: Automated Security Proofs and Attacks on Helios and Belenios
- Revisit of McCullagh-Barreto Two-party ID-based Authenticated Key Agreement Protocols
- Proving the TLS Handshake Secure (As It Is)
- Off-line Password Guessing Attack on an Efficient Key Agreement Protocol for Secure Authentication