Pitfalls of System.Security.Cryptography
summary
An exploration of common pitfalls when using System.Security.Cryptography in .NET apps, covering misuse of MD5, weak HMAC/verification patterns, bad random/encoding choices, and insecure symmetric crypto setups (example shows MD5-based signature check and hard-coded AES key/IV). The talk explains practical best practices for random number generation, signatures, password storage and encryption, and demonstrates several real attack demos on typical vulnerabilities without heavy math.
AI-written summary · about
chapters (16)
- 0:00Cryptography pitfalls intro
- 1:07When to use cryptography
- 2:09Timing attacks on byte comparison
- 8:54High-level crypto libraries
- 11:20System.Security.Cryptography overview
- 13:27Message integrity pitfalls
- 16:57Why use symmetric encryption
- 19:32Hardcoded secrets vulnerabilities
- 21:22Message extension attacks
- 26:58Random number generation risks
- 34:38Secure random generators in .NET
- 36:04Hashing pitfalls
- 40:14Password storage best practices
- 42:03Block cipher modes and padding
- 45:03Padding oracle attacks
- 46:28Q&A
