Exploits, Tools & Data Recovery · Course 2
Bug Classes & Mitigations
The kinds of bugs attackers use and the defenses that stop them.
About this course
Most serious attacks start with a single bug, and those bugs come in a few recognizable kinds. This course explains them in plain terms, along with the defenses phone makers build so that one bug alone isn't enough to take over a phone.
You'll picture memory safety bugs like out-of-bounds writes and use-after-free with everyday comparisons, and see why code written in C and C++ is prone to them. You'll meet logic bugs, where memory is fine but the rules are wrong, such as missing permission checks and helpers that can be tricked into acting for someone else. You'll learn what sandboxing, address randomization, non-executable memory, signed pointers and memory tagging do, and why attacks now need chains of bugs. You'll also see how Rust and Swift remove whole classes of bugs, and why switching languages takes years. The final challenge has you sort three bug reports for a messaging app and pick the right defense for each.
Lessons
- 1Memory Safety Bugs12 min · What memory corruption means in plain terms, and why it tops the bug charts.Picture out-of-bounds writes and use-after-free with everyday analogies · See why C and C++ code is prone to them · Learn how common they are, from Microsoft, Chromium and Android data
- 2Logic & Permission Bugs12 min · Bugs where memory is fine but the rules are wrong, from open doors to tricked helpers.Spot missing permission checks and open exported components · Understand the confused deputy problem · See how message parsers go wrong · Learn why memory-safe languages can't fix logic bugs
- 3Exploit Mitigations13 min · The walls, shuffles, signatures and tags that make bugs much harder to use.Learn what a mitigation is: sandboxing, ASLR and non-executable memory · See how Pointer Authentication and memory tagging catch tampering · Meet Apple's Memory Integrity Enforcement and MTE on Pixel · Understand why attacks now need chains of bugs
- 4Memory-Safe Languages12 min · How Rust and Swift remove whole bug classes, and why the switch takes years.See how Rust in Android cut memory safety bugs, year by year · Meet Swift on Apple platforms · Learn why rewriting everything isn't instant · Understand what this means for users
- 5Challenge: The Triage Meeting15 min · Sort three real-world style bug reports and pick the right defenses for each.Classify a bug in an image preview parser · Decide what a language switch would and wouldn't fix · Name the mitigation in the way · Choose a plan for the team
Do it on the simulated phone
Lessons have labs you can try in your browser, plus questions that earn points toward the Mitigator badge.
Start lesson 1