Has it been Pwned
ImplementationPractical impact

Factoring RSA keys from certified smart cards: Coppersmith in the wild

Daniel J. Bernstein, Yun-An Chang, Chen-Mou Cheng, Li-Ping Chou, Nadia Heninger, Tanja Lange and Nicko van Someren factored 184 of the more than two million 1024-bit RSA keys in Taiwan's national Citizen Digital Certificate database. 103 shared primes (batch GCD); the other 81 were factored by characterising the faulty prime generator and applying Coppersmith-style partial-key attacks. Published at ASIACRYPT 2013.

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

The keys were generated on-card by government-issued Chunghwa Telecom HiCOS PKI smart cards that held FIPS 140-2 Level 2 and Common Criteria certifications. The card's hardware RNG sometimes failed and produced primes with long repeating bit patterns. This was the first published use of Coppersmith's lattice method against keys found in the wild, and it showed that certification does not test for statistical RNG failure. The math attack is generic, but it only bites because of the implementation defect.

Sources

  1. paperFactoring RSA keys from certified smart cards: Coppersmith in the wild (ePrint 2013/599; ASIACRYPT 2013)IACR ePrint, eprint.iacr.org
  2. announcementSmartFactsBernstein et al., smartfacts.cr.yp.to