Mining Your Ps and Qs: weak keys on embedded network devices
Nadia Heninger, Zakir Durumeric, Eric Wustrow and J. Alex Halderman scanned the entire IPv4 TLS and SSH space and computed the private RSA keys of 0.50% of TLS hosts and 0.03% of SSH hosts via batch-GCD on shared primes, plus DSA keys of 1.03% of SSH hosts via repeated signature nonces. Published at USENIX Security 2012.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
The vulnerable keys came overwhelmingly from headless routers, firewalls and other embedded devices that generated keys on first boot, before the Linux kernel's random pool had collected meaningful entropy (the 'boot-time entropy hole'). The authors traced specific failures to dozens of vendors and prompted Linux RNG changes. It established batch-GCD scanning as a standard audit tool. As with every key-generation failure here, properly generated RSA keys were unaffected.
Sources
- paperMining Your Ps and Qs: Detection of Widespread Weak Keys in Network Devices (USENIX Security 2012)USENIX, usenix.org
- announcementfactorable.netHeninger et al., factorable.net