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.
| Class | Name | The weakness lies in | Example |
|---|---|---|---|
| A1 | Primitive-weak key | The keyed transformation | DES weak keys |
| A2 | Problem-instance-weak key | The public mathematical instance derived from the key | RSA modulus with close primes; a scalar in a short interval |
| B1 | Low-guesswork key | A named search strategy and budget | A key a zero-first tool finds on its first guess |
| B2 | Predictably generated key | The process that produced or provisioned the key | Debian OpenSSL keys; one key built into every device |
| C1 | Relationally vulnerable key | Data from outside the instance: other keys, other runs | Shared RSA prime; repeated nonce |
| C2 | Compromised key | An unauthorized party knows or has had the key | Published private key |
| C3 | Policy-inadequate key | A named policy, version and rule | RSA-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:
- 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.
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.
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.