Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
Weak cryptographic key generation
Weak cryptographic key generation is the practice of creating cryptographic keys using insufficient randomness or predictable methods, rather than proper random generation procedures.
Characteristics
Keys generated through weak processes often contain trivially small or predictable values. eMudhra, a certificate authority, generated private keys using constants (4, 56, 115, 66, 155, 156, 230, 237) instead of random 384-bit numbers 1. Keys with values smaller than 256 can be recovered by exhaustive search of just 256 possibilities 2.
Security Impact
Weak key generation enables rapid cryptographic compromise. Private keys become recoverable in seconds, allowing attackers to forge certificates 3. The vulnerability extends to document security systems, where weak keys enable forging of valid barcodes for fraudulent identification documents 4.
Classification
This vulnerability is categorized under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) 5.
Mitigation
Proper key generation requires cryptographically secure random number generators that produce keys with sufficient entropy for the intended key size. For asymmetric cryptography, keys must be generated from a uniform random distribution across the full keyspace.
In the news 5
- Indian certification authority eMudhra’s private keys compromised – one of them was the number ‘4’ · The Register: Security
- Microsoft releases Windows OOB updates to distrust eMudhra certificates · BleepingComputer
- Weak keys in eMudhra CA certificates: the risks and how to respond | Kaspersky official blog · Kaspersky Daily
- Keys Not Included: recovering the signing keys for US driver's license barcodes · Hacker News (YC)
- Rejetto HFS servers now actively scanned for critical RCE flaw · BleepingComputer
Sign in for the full story cards: summaries, tags and starring.