Security Beyond Memory Safety - Using Modern C++ to Avoid Vulnerabilities by Design
Talkat CppCon 2024 · on Monday, 2024-09-16· at 11:00· Adams A, 6700 North Gaylord Rockies Boulevard·
summary
Claims that memory safety fixes only about one third of real-world vulnerabilities and that C++ can prevent many remaining classes by design. Shows a working friendly billboard demo: firmware + Wi‑Fi + shared‑memory receiver, code compiles and runs and includes exploi ts on GitHub. Uses concrete tools: untrusted<T>, sensitive<T>, a write‑only status wrapper, std::optional, CI diffing of generated headers, and references to memset_explicit / memset_s. Demonstrates TOCTOU races, pointer/length deserialization bugs, secure‑erase pitfalls, and practical fixes that actually work.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:38Memory safety and security
- 7:03Understanding security design
- 11:13Modern C++ security strategies
- 14:00Case study: Secure secrets
- 20:11Friendly billboard case study
- 24:51Input validation techniques
- 29:32Addressing output and race risks
- 35:01Final security architecture
- 43:52Conclusion and takeaways
- 47:04Q&A session
related talks
01h 01mSoftware Security
14mEmbedded C and C++: A Security Perspective
51mSecure Programming Practices in C++
01h 26mVulnerable C++
23mSecure Code, Safe Future: Mastering Security in Critical Software Development
48mSecure C++ Programming
45mThe existential threat against C++ and where to go from here
50mSecure development with C++ - Lessons and techniques
