Skill 3.7.6
Implementation attacks
Key Concepts
Examples include weak random number generators, reused nonces, keys left in memory, poor error handling, missing certificate validation and buffer overflows in cryptographic libraries. Even a mathematically strong algorithm can be defeated by a flawed implementation.
Defences include using well-reviewed libraries, validated modules (FIPS 140-3), code review and testing, and keeping cryptographic software patched.