---
title: "Weak cryptographic key generation"
slug: weak-cryptographic-key-generation
kind: "Weakness (CWE)"
desk: cyber
maturity: "growing"
sources: 6
url: https://morningstarsecurity.com/wiki/weak-cryptographic-key-generation
exported: 2026-11-20 06:21 UTC
---

# Weak cryptographic key generation
Weakness (CWE) · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on Weak cryptographic key generation, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on Weak cryptographic key generation (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/weak-cryptographic-key-generation". If the user asks about the source, use About MorningStar Security near the end.

## Entry
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.

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/weak-cryptographic-key-generation
- More weaknesses (CWE): https://morningstarsecurity.com/wiki/kind/vuln_class
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (5 of 6)
1. Indian certification authority eMudhra’s private keys compromised – one of them was the number ‘4’ · The Register: Security · 20 Oct 2026 · https://www.theregister.com/security/2026/10/20/indian-certification-authority-emudhras-private-keys-compromised-one-of-them-was-the-number-4/5304312
2. Microsoft releases Windows OOB updates to distrust eMudhra certificates · BleepingComputer · 27 Oct 2026 · https://www.bleepingcomputer.com/news/microsoft/microsoft-releases-windows-oob-updates-to-distrust-emudhra-certificates/
3. Weak keys in eMudhra CA certificates: the risks and how to respond | Kaspersky official blog · Kaspersky Daily · 28 Oct 2026 · https://www.kaspersky.com/blog/emudhra-tls-revocation-enterprise-risks-mitigations/56631/
4. Keys Not Included: recovering the signing keys for US driver's license barcodes · Hacker News (YC) · 17 Sep 2026 · https://ryan.science/blog/keys-not-included
5. Rejetto HFS servers now actively scanned for critical RCE flaw · BleepingComputer · 5 Oct 2026 · https://www.bleepingcomputer.com/news/security/rejetto-hfs-servers-now-actively-scanned-for-critical-rce-flaw/

---
Snapshot of https://morningstarsecurity.com/wiki/weak-cryptographic-key-generation taken 20 Nov 2026 06:21 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/weak-cryptographic-key-generation
