Skip to main content
Can Attackers Break AES Without Choosing Plaintexts?Cryptography Fundamentals
5 min readFor Bank Information Security Officers

Can Attackers Break AES Without Choosing Plaintexts?

During a threat modeling session at a regional bank, a security architect questioned whether their AES implementation was vulnerable if attackers couldn't control transaction inputs. This led the team to realize they were assessing cryptographic risk based on assumptions that didn't align with their actual environment.

Most cryptographic attack literature assumes adversaries can choose specific plaintexts or ciphertexts. But in payment processing and financial messaging systems, attackers rarely have that luxury. They see what flows through the system, not what they inject. This gap between theoretical attack models and real-world constraints is crucial when assessing your cipher's security.

Does AES Hold Up When Attackers Can't Choose Inputs?

Yes, but the threat landscape shifts in ways that matter for your risk assessment.

The random known-plaintext (RKP) model describes what attackers face in most production environments: they observe transactions as they occur but can't craft specific input patterns to exploit differential trails. Recent research shows that differential-based attacks, impossible-differential attacks, and meet-in-the-middle attacks remain theoretically viable in the RKP model, though with different complexity trade-offs than in chosen-plaintext scenarios.

For AES, researchers improved earlier RKP attack results by at least one round across all AES variants. This doesn't threaten production AES implementations (the complexities remain too high for practical exploitation), but it shows that the cipher's security margin narrows depending on what control an attacker has over inputs.

For your threat model: if you're running AES in a mode where transaction data determines cipher inputs, don't dismiss differential-based attacks just because the attacker can't choose plaintexts. The attacks exist; they're just harder to execute and require different data collection strategies.

How Much Harder Are These Attacks Without Chosen Plaintexts?

Substantially harder, but "substantially" doesn't mean "impossible."

In chosen-plaintext attacks, an adversary crafts input pairs that follow specific differential trails through the cipher's rounds. In the RKP model, they wait for random transactions to produce useful differential patterns, requiring far more observed data to collect enough samples.

The complexity increase isn't linear. For some attack types, moving from chosen-plaintext to known-plaintext multiplies the data requirement by orders of magnitude. For others, the increase is more modest. Demirci-Selcuk meet-in-the-middle attacks, which typically demand large volumes of related data, can remain effective in the RKP model without needing the full codebook.

Practical implication: your key rotation policies should account for cumulative transaction volume, not just time elapsed. If you're processing millions of transactions daily under the same key, you're giving a passive observer more material to work with than a low-volume system running for the same calendar period.

Do Chosen-Plaintext Attacks Translate Directly to Known-Plaintext Scenarios?

No. The optimal differential trail changes based on the attack model.

This surprised researchers studying AES in the RKP context. Some differential trails that produce the best attack complexities under chosen-plaintext assumptions become suboptimal when the attacker must wait for random data to satisfy trail conditions. Different trails, with different probability distributions, perform better in the known-plaintext model.

Why this matters: if you're evaluating a custom cipher or a modified AES configuration, don't assume that published chosen-plaintext attack complexities represent the worst case for your deployment. The actual attack surface depends on how much control an adversary has over inputs in your specific architecture.

For standard AES in common modes, this is academic. For custom cryptographic implementations or novel protocol designs, it's a gap in your security analysis if you haven't considered both models.

Should We Worry About Meet-in-the-Middle Attacks in Production?

Not for standard AES implementations, but the research clarifies what "secure" means in context.

Meet-in-the-middle attacks with differential enumeration require enormous amounts of related data. The fact that these attacks can work in the RKP model without needing the full codebook means an attacker doesn't need to observe every possible input to mount the attack, just a very large sample of random inputs.

In production payment systems, you'd hit key rotation intervals and operational constraints long before accumulating the data volumes these attacks require. The computational complexity alone puts them out of reach for any realistic threat actor.

The value isn't in the immediate threat; it's in understanding your security margin. AES-128, AES-192, and AES-256 all maintain comfortable security margins even under RKP attack models, but those margins are smaller than the chosen-plaintext analysis suggests.

What Changes in Our Security Posture Based on This?

Your key management and monitoring practices should reflect actual adversary capabilities, not just theoretical maximums.

First, if you're using AES in a mode where transaction patterns determine cipher inputs (common in financial messaging and payment routing), document that your threat model assumes a passive observer collecting transaction data over time. That's different from assuming an active attacker who can inject crafted messages.

Second, your key rotation policy should account for transaction volume as a factor. A high-volume payment processor using the same AES key for a month accumulates more observable cipher operations than a low-volume system using the same key for a year. Volume matters as much as time.

Third, when you're evaluating new cryptographic implementations or protocols, ask your vendor or development team whether they've analyzed security in both chosen-plaintext and known-plaintext models. If they've only considered chosen-plaintext attacks, they've missed part of the threat landscape.

How Do We Communicate This Risk to Non-Technical Stakeholders?

Frame it as the difference between an attacker who can run experiments versus one who must observe natural system behavior.

Most cryptographic attack research assumes the attacker can run controlled experiments: send specific inputs, measure specific outputs, repeat until they have the data they need. That's the chosen-plaintext model. It's the worst-case scenario, and it's what cryptographers use to establish security margins.

In your actual production environment, attackers usually can't run experiments. They see transactions as they happen, but they can't make your system process specific test inputs. That's the known-plaintext model. It's more realistic for most financial systems, and it's harder for attackers to exploit.

The research shows that even in the more realistic model, AES remains secure. The attacks that work in theory require data volumes and computational resources that no practical attacker could marshal. But the security margin is smaller than the theoretical maximum, which is why key rotation and transaction volume monitoring matter.

Where to Learn More About Cryptographic Attack Models

Start with NIST SP 800-57, which covers key management and includes guidance on key lifetime based on usage volume. The NIST Cryptographic Standards and Guidelines page maintains current recommendations for symmetric cipher deployment.

For operational guidance specific to payment systems, PCI DSS Requirement 3.5 addresses cryptographic key management, including rotation policies. The requirement doesn't explicitly reference attack models, but the underlying principle (limit key exposure through rotation) applies directly to RKP attack scenarios.

If you're evaluating custom cryptographic implementations, the IACR ePrint archive publishes current research on block cipher security. Look for papers that analyze ciphers in multiple adversary models, not just chosen-plaintext scenarios.

Understanding where your deployment sits on the spectrum between theoretical attacks and practical threats helps you allocate security resources appropriately and communicate risk accurately.

You Might Also Like