Key Weakness Classification

A classification of cryptographic key weaknesses

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.

The classes

"Weak key" is used for seven different things. Scanners, blocklists and incident reports mix them, and the mix leads to wrong conclusions about cause and remedy. KWC gives each its own class, in three groups by where the weakness lies.

A In the mathematics

A1

Primitive-weak key

Under this key the cipher or MAC itself behaves in a special way that an attacker can use.

A DES weak key: encrypting twice returns the plaintext.

A2

Problem-instance-weak key

The public problem that protects the key, such as factoring this modulus, is easier than it should be because of a known attack.

An RSA modulus whose two primes are close together. An elliptic-curve private key in a small range.

B In how the key is searched for or made

B1

Low-guesswork key

A search that someone names, and runs or builds into a tool, reaches this key early.

An all-zero AES key against a tool that tries zero first.

B2

Predictably generated key

The process that produced the key, or put it in place, is predictable or biased.

Keys from the Debian OpenSSL generator of 2006 to 2008. One firmware key in every device of a model.

C In the key's surroundings

C1

Relationally vulnerable key

The key is safe alone and unsafe together with something outside it: another key, another protocol run, a leaked value.

Two RSA moduli that share a prime. An AES-GCM key used twice with the same nonce.

C2

Compromised key

Someone who is not authorized knows the key, has had access to it, or has replaced or misused it.

A private key committed to a public repository.

C3

Policy-inadequate key

The key, or the way it is used, fails a rule of a named policy.

RSA-1024 in a public TLS certificate.

A value that is not an admissible key at all, such as an elliptic-curve private scalar of 0, is invalid and outside the seven classes.

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

One key, several classes

A key can be in several classes at once. The private key 4 on the curve P-384 is in four:

A2

A known attack finds any key in a small range quickly

Searching the 255 one-byte values takes about 16 group operations.

B1

A search that counts upward reaches it on the fourth try

A search counting down from the top would need about 2384.

B2

Several of the CA's keys were byte-sized

A correct generator would almost never produce that. What went wrong in the process is not known.

C2

An outside scanner recovered it

From that moment an unauthorized party knew the key.

A finding answers three questions separately:

What kind of weakness?

The classes: A2, B1, B2 and C2 for this key.

How strong is the evidence?

The recovery is demonstrated. A failure of the generating process is credible. Its cause is unknown.

What should be done?

Treat as compromised: revoke and replace. The compromise finding alone decides that.

Deliverables

Layers of the specification

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.

Contents

Status and limits