Don't Blame 4

Separating structural weakness, guessability and generation failure in cryptographic keyspaces

In 2026 a certificate authority was found to be signing with a private key equal to 4. The value is valid, and a correct generator produces it as often as any other. What was wrong lies elsewhere: in the 255 values the key was drawn from, and in whatever process drew it.

Purpose

"Weak key" is used for several different things, among them a key the cipher treats specially, a key whose mathematical instance is easy, a key an attacker would guess early, a key from a broken generator, and a key someone else already knows. Scanners, blocklists and incident reports mix them, and the mix leads to wrong conclusions about cause and remedy.

The Key Weakness Classification (KWC) has a class for each, with the evidence needed to put a key in it. A finding answers three questions separately: what kind of weakness is this, how strong is the evidence, and what should be done with the key.

Four quantities stay apart throughout: the numerical value of a key, the probability that a generator produced it, how early a search reaches it, and what the best known attack costs. A weakness claim always names a security objective and an attack model.

The classes

A key can be in several classes at once. An invalid key, one that fails the specification's admissibility rules, is outside all of them.

ClassNameThe weakness lies inExample
A1Primitive-weak keyThe keyed transformationDES weak keys
A2Problem-instance-weak keyThe public mathematical instance derived from the keyRSA modulus with close primes; a scalar in a short interval
B1Low-guesswork keyA named search strategy and budgetA key a zero-first tool finds on its first guess
B2Predictably generated keyThe process that produced or provisioned the keyDebian OpenSSL keys; one key built into every device
C1Relationally vulnerable keyData from outside the instance: other keys, other runsShared RSA prime; repeated nonce
C2Compromised keyAn unauthorized party knows or has had the keyPublished private key
C3Policy-inadequate keyA named policy, version and ruleRSA-1024 in a public TLS certificate

The class names, and the name KWC itself, are proposed terms, not established ones. KWC is independent of the Common Weakness Enumeration, which classifies faults in software. The glossary marks which terms come from standards and the literature.

Three measures

ρ

Does the attack beat listing the keys?

Cost to recover a key known to lie in a set of 4,096, in a toy group of 16.8 million elements. Group multiplications, measured.

ρ divides the cheaper of the two baselines by the attack's cost. A table computed in advance does not count, because the listing baseline may use the same table.

β

How much comes from aiming at a small set?

The key 4 on P-384. The generic attack costs about 2192; the key was found in about 24 steps. Where the 188 bits went:

Almost all of the loss is the small set, which points at whatever put the key there. Any 255 declared values would give the same β.

κ

Is the relation more common than in an ideal cipher?

Keys satisfying a relation, out of 65,536, in a toy cipher with 16 planted defective keys, against what an ideal cipher gives.

Keys chosen because they satisfy a relation will always satisfy it. κ asks whether the cipher has more such keys than chance would give.

Figures for ρ and κ are measurements from the project's experiments on toy models (E3 and E5). The β figure uses best known attack costs for P-384.

Deliverables

Layers of the specification

Contents

Status and limits