Cryptographic Vulnerabilities
Summary
Cryptography fails when weak algorithms, bad implementations or poor key handling are used. Old ciphers and protocol versions, flawed libraries and exposed keys undermine encryption that looks strong on paper. Use current algorithms, patched libraries and protected keys.
In plain words
Cryptography fails through weak algorithms or keys (DES's 56-bit key; 3DES and the Sweet32 attack), flawed implementations (Heartbleed in OpenSSL), protocol weaknesses (KRACK in WPA2), outdated cipher suites (BEAST, POODLE against old SSL/TLS), and poor key handling. Kerckhoffs's principle says a system should stay secure even if everything except the key is public, so protecting keys is everything: generate them properly, store them in an HSM or KMS, restrict access, and rotate them.
Detailed explanation
- Cryptographic vulnerability: A weakness in an algorithm, protocol, implementation or key management that undermines protection.
- Weak algorithms: DES, 3DES, RC4, MD5 and SHA-1 should not be used for security.
- Implementation flaws: Bugs in crypto libraries, such as Heartbleed in OpenSSL.
- Protocol flaws: Weaknesses in a protocol design, such as KRACK against the WPA2 handshake.
-
Downgrade attack: Forcing a connection to use an older, weaker protocol or cipher.
- Examples: POODLE against SSL 3.0 and BEAST against TLS 1.0.
- Cipher suite: The combination of key exchange, authentication, encryption and hashing algorithms used by TLS; weak suites must be disabled.
Protecting keys
- Key generation: Use strong random number generators and adequate key lengths.
- Key storage: Keep private keys in HSMs, TPMs or key vaults with access controls.
- Key rotation: Replace keys regularly and after suspected exposure.
Important terms
taken from the text above- Cryptographic vulnerability
- A weakness in an algorithm, protocol, implementation or key management that undermines protection.
- Weak algorithms
- DES, 3DES, RC4, MD5 and SHA-1 should not be used for security.
- Implementation flaws
- Bugs in crypto libraries, such as Heartbleed in OpenSSL.
- Protocol flaws
- Weaknesses in a protocol design, such as KRACK against the WPA2 handshake.
- Downgrade attack
- Forcing a connection to use an older, weaker protocol or cipher.
- Cipher suite
- The combination of key exchange, authentication, encryption and hashing algorithms used by TLS; weak suites must be disabled.
- Key generation
- Use strong random number generators and adequate key lengths.
- Key storage
- Keep private keys in HSMs, TPMs or key vaults with access controls.
- Key rotation
- Replace keys regularly and after suspected exposure.
Examples & real-world scenarios
- Disabling SSL 3.0 and TLS 1.0 on a web server.
- Storing signing keys in a hardware security module.
- Rotating API keys on a regular schedule.
Scenario
A server still offers old cipher suites for compatibility. A configuration review removes them and allows only TLS 1.2 or 1.3 with strong ciphers, closing off downgrade-style weaknesses.
Common mistakes
- Relying on secrecy of the algorithm instead of protecting the key (against Kerckhoffs's principle).
- Using the same key pair indefinitely with no rotation.
Practical skills
- Review a server's TLS settings and recommend which protocols and ciphers to disable.
What I should remember
- Weak algorithms: DES, 3DES, RC4, MD5 and SHA-1 are not acceptable for security.
- Downgrade attack: Forces use of weaker protocols; disable old versions.
- Cipher suite: Must use only strong algorithms.
- Key protection: Stolen keys defeat even strong encryption.