Domain 3/3.7 Understand methods of cryptanalytic attacks
1. A console maker signed its firmware with an elliptic curve signature scheme but reused the same random value for every signature, which let attackers compute its private key. Rhys, the product security lead at a drone maker, is designing his company's signing service. Which measure BEST prevents the same failure?
- AVetted library with safe nonce handling
- BLonger elliptic curve signing keys
- CTamper-resistant storage of the key
- DMonthly rotation of the signing key
Show the answer
Correct answer: A. The question asks how to avoid a classic implementation failure. The clue is that the maker "reused the same random value for every signature". Elliptic curve signatures need a unique, unpredictable value for each signature; two signatures with the same value reveal the private key through simple algebra. The lesson is to rely on vetted libraries used correctly rather than custom code, since sound algorithms fail through implementation errors.
- A. Correct. The failure came from reusing the same random value for every signature, so a well-tested library that produces a fresh or deterministic nonce each time prevents it.
- B. Incorrect. Longer keys add strength, but reusing a nonce leaks the private key whatever the size of the curve.
- C. Incorrect. Tamper-resistant hardware stops the key being extracted from the device, but here it was computed from the published signatures, which secure storage does not prevent.
- D. Incorrect. Rotation limits how long a leaked key is useful, but each new key would still leak after two signatures with the same nonce.