Has it been Pwned
ImplementationPractical impact

"Mining Your Ps and Qs": DSA private keys of 1% of SSH hosts recovered from repeated nonces

Heninger, Durumeric, Wustrow and Halderman (USENIX Security 2012) scanned the IPv4 Internet and recovered the DSA private keys of 1.03% of SSH hosts, because those hosts reused the per-signature random value k across signatures. Nearly all were headless embedded devices that generated randomness on first boot without enough entropy.

A separate source-review date has not been recorded for this historical entry. Corrections.

Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.

Background

DSA's security collapses if two signatures share a nonce: the private key follows from simple algebra, with no discrete log computation. The same study found RSA keys sharing prime factors (covered under the RSA family). Both stem from low-entropy random number generation in routers, firewalls and management cards, not from any weakness in DSA's math.

This fragility is one reason modern practice derives nonces deterministically (RFC 6979) and one reason DSA was dropped: OpenSSH disabled ssh-dss by default in 2015 and removed it in 2025, and FIPS 186-5 (2023) no longer allows DSA signature generation.

Sources

  1. paperWidespread Weak Keys in Network Devices / Mining Your Ps and Qs (USENIX Security 2012)factorable.net, factorable.net
  2. paperMining Your Ps and Qs: Detection of Widespread Weak Keys in Network Devices (paper)factorable.net, factorable.net