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
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.
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
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.
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
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.
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.
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:
A known attack finds any key in a small range quickly
Searching the 255 one-byte values takes about 16 group operations.
A search that counts upward reaches it on the fourth try
A search counting down from the top would need about 2384.
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.
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
Specification
KWC 0.1, a draft: the classes, the decision guide, the membership criteria and the report schema.
Research paper
Don't Blame 4: the mathematical foundations, why the distinctions matter, validation and limits.
Reference dataset
25 classified cases in one JSON file: documented incidents and attack classes, and synthetic counterexamples, each with classes, evidence and disposition.
Layers of the specification
1. Core
The seven classes in plain words, each with examples and what it is not. No formulas, and no need for layers 2 and 3. For engineers, auditors, scanner authors and incident responders.
2. Assessment
How strong the evidence is and what to do with the key: evidence levels, disposition rules, the report format and worked examples. For operational security and risk management.
3. Mathematical framework
The definitions behind the classes: structural advantage, excess prevalence, attack cost and the experiments that test them. For cryptographers and researchers.
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:
- 184 bits β: the key lies among 255 values
- 4 bits ρ: an interval is cheaper to search than to list
- 4 bits left: the cost of the attack
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
Interactive walkthrough
The key 4 followed through the classification in eight chapters, with demos of guessing, interval search and evidence, the worked cases and a classifier.
Paper
Definitions, the classes, the operational profile, the worked cases, validation, related work and limitations. PDF.
Membership criteria
Formal definitions for each class, evidence levels, disposition rules, and the log of every decision with the option that was rejected.
Decision guide
Steps 0 to 11, from a key to a report, with the disposition flowchart and the table of worked cases.
Worked examples and schema
16 example reports in YAML, from DES weak keys to a repeated AES-GCM nonce, and the schema they follow.
Experiments
12 synthetic experiments with their result tables and charts, including every round of the rater test.
Agent skill
The procedure packaged for an AI agent: it classifies a key finding and writes a report that a bundled checker validates. Download as a zip.
Glossary
Every term with its status, established or proposed, its source, and the gaps that were found and resolved.
Reasoning traps
Mistakes that were made and caught along the way, about entropy, small keys, blocklists, lookup tables and likelihood ratios.
Status and limits
- This is exploratory research and a working proposal, not a standard.
- Attack costs are the best known classical costs. They are not lower bounds; where the text says an attack is infeasible it means no faster attack is known.
- The experiments use toy parameters and synthetic keys. No real key was recovered and no live system was analyzed.
- The raters in the agreement test were language models, one from the family used in drafting the criteria. A study with human analysts on unseen cases is still needed.
- The literature search was targeted, not systematic, and several sources were checked at abstract level only.