# Empirical Ciphertext Distinguishability Testing of KEMs and Hybrid Encryption via Deep Learning

DevFeed: [Empirical Ciphertext Distinguishability Testing of KEMs and Hybrid Encryption via Deep Learning](<https://devfeed.tech/articles/empirical-ciphertext-distinguishability-testing-of-kems-and-hybrid-encryption-via-deep-learning-113986.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2604.06942>)

Author: Simon Calderon, Niklas Johansson, Onur G\\"unl\\"u

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Deep learning](<https://devfeed.tech/topics/deep-learning.md>), [Deep neural networks](<https://devfeed.tech/topics/deep-neural-networks.md>), [Encryption](<https://devfeed.tech/topics/encryption.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [aes](<https://devfeed.tech/tags/aes.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [apply](<https://devfeed.tech/tags/apply.md>), [approach](<https://devfeed.tech/tags/approach.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [attack](<https://devfeed.tech/tags/attack.md>), [better](<https://devfeed.tech/tags/better.md>), [classification](<https://devfeed.tech/tags/classification.md>), [counter](<https://devfeed.tech/tags/counter.md>), [cpa](<https://devfeed.tech/tags/cpa.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-it](<https://devfeed.tech/tags/cs-it.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-ne](<https://devfeed.tech/tags/cs-ne.md>), [deep](<https://devfeed.tech/tags/deep.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [deep-neural-networks](<https://devfeed.tech/tags/deep-neural-networks.md>), [dnn](<https://devfeed.tech/tags/dnn.md>), [eess-sp](<https://devfeed.tech/tags/eess-sp.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [extension](<https://devfeed.tech/tags/extension.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [learning](<https://devfeed.tech/tags/learning.md>), [math-it](<https://devfeed.tech/tags/math-it.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

The paper treats IND-CPA security games as binary classification tasks and tests ciphertexts with deep neural networks, including public-key schemes used in KEMs such as ML-KEM and HQC, cascaded symmetric algorithms, and hybrid KEMs. For schemes described as IND-CPA-secure, no tested network performed significantly above random guessing under Bonferroni-corrected binomial tests. Networks did classify ciphertexts above chance for insecure examples including plain RSA, RC4, and AES-CTR or AES-CBC with IV or counter reuse. The authors present this as a scheme-agnostic empirical way to flag distinguishable ciphertexts; the excerpt does not establish that failure to distinguish proves security.

## Source excerpt

arXiv:2604.06942v2 Announce Type: replace Abstract: We model indistinguishability under chosen-plaintext attack (IND-CPA) games as binary classification tasks for deep neural networks (DNNs). We apply this methodology to the public-key encryption (PKE) schemes used to construct PQC key encapsulation mechanisms (KEMs) such as ML-KEM and HQC, and to cascaded symmetric algorithms, demonstrating methodological generality. Moreover, we present a novel extension of this approach to empirical distinguishability testing of hybrid KEMs. For IND-CPA-secure schemes and their combinations, no DNN achieves accuracy significantly different from random guessing (measured via Bonferroni-corrected binomial tests), consistent with theoretical security guarantees. For insecure schemes, such as plain RSA, AES-CTR and AES-CBC with IV or counter reuse, or RC4, the DNNs classify the ciphertexts better than random guessing. Thus, this framework is shown to serve as a practical, scheme-agnostic tool for flagging distinguishable ciphertexts in both individual and composed constructions.