METRIC // AI INFRASTRUCTURE ECONOMICS

Security margin

The gap between the cost of the best known attack on an algorithm and what an attacker can afford, usually counted in bits of security. Margin is what remains when an attack improves without becoming practical.

Security margin is the gap between the cost of the best known attack on an algorithm and what an attacker can afford. It is counted in bits of security: an algorithm with 128 bits of security needs about 2^128 operations to break, and each bit lost halves the work. It matters because most cryptanalytic progress is incremental. An attack that improves without becoming practical consumes margin, and the schemes that fall to such progress are the ones that had little to spare.

Halving the bits is far more than halving the work. It takes the square root: an attack that needed 2^128 operations would need about 2^64. On 28 July 2026 Anthropic reported that a Claude model cut key recovery for HAWK-256, an undeployed signature candidate, from about 2^64 operations to about 2^38. The exponent lost 26 bits and the attack stayed exponential, which is what a realistic break is expected to look like. Margins differ widely between algorithms. NIST rates 2048-bit RSA at about 112 bits and 1024-bit RSA at about 80. The best attack on full AES-128 is about four times faster than brute force. A quantum computer halves the bits of a symmetric key at most, so AES-256 keeps about 128.

Margin is the defence against an incremental result, whether a person or an AI system finds it. Where the cost is small, buy more: use 256-bit symmetric keys and 384-bit hashes, and prefer the middle or upper parameter sets of the post-quantum standards, as the regulators who skip ML-KEM-512 already do. Retire what has no margin left, starting with 1024-bit RSA. Margin has limits. It does not rescue a design sized to the edge, and it does not help against an attack that changes the class of the problem. That is why margin is paired with a second, independent assumption.

Frequently asked questions

What is a security margin?

It is the gap between the cost of the best known attack on an algorithm and what an attacker can afford. It is usually stated in bits of security: 128 bits means about 2^128 operations. A wide margin lets an algorithm absorb better attacks without becoming breakable in practice.

What does halving the bits mean?

It means an attack that needed about 2^128 operations now needs about 2^64, the square root of the work. That is a far larger change than halving the work. The 2026 attack on the undeployed HAWK-256 candidate took key recovery from about 2^64 operations to about 2^38. It stayed exponential, and the candidate was withdrawn.

Is AES-128 enough, or do I need AES-256?

AES-128 has no practical attack: the best one on the full cipher is about four times faster than brute force, and NIST treats it as meeting its lowest post-quantum category. AES-256 costs little more and leaves about 128 bits even if a quantum computer halves the margin. Use 256-bit keys where the cost is small.

Source analyses

READ THE FULL ARGUMENT
Which algorithms are most likely to survive? (guide to post-AI cryptography)

References

Related terms

GLOSSARY
Lattice-based cryptography
GLOSSARY
Number field sieve
GLOSSARY
SLH-DSA and hash-based signatures
Michał Piszczek
Michał Piszczek
CEO / CTO / FOUNDER

Term defined and maintained by Michał Piszczek - CTO of Archdesk, author of the Joule Wars and Proof-Adjusted Autonomy frameworks. Quote freely with attribution to piszczek.pl/glossary (CC BY 4.0).