MobDojoStart learning free

Exploits, Tools & Data Recovery · How Bugs Become Attacks · Lesson 1 of 5

Vulnerabilities, Exploits & Patches

Learn how a bug becomes a security hole, and how one update closes it for everyone.

12 min60 XPFree lab

Bugs, holes and exploits

Every app and operating system is written by people, and people make mistakes. This course is about what happens when one of those mistakes matters for security, and how it gets fixed.

Start with three words that often get mixed up in the news.

On a modern phone, one vulnerability is rarely enough. You saw in Mobile Malware that spyware like Pegasus used an exploit chain, several exploits used one after another, each getting past a different layer of protection. Roughly: one flaw gets code running inside the part of an app that opens a file, a second escapes that app's sandbox, and a third takes control of the core of the operating system. Phones are built in layers on purpose, so an attacker needs a working flaw for each layer.

That layering is good news for defenders. If even one link in the chain is fixed, the whole chain stops working, and the attacker has to find a replacement for that link.

Last, a patch is the fix: changed code that removes the vulnerability. Patches reach your phone inside software updates, and a single update can carry dozens of them.

Not every vulnerability is equally useful to an attacker. Some need the phone in hand, some need you to install a bad app, and a few need nothing from you at all. The next module shows how vendors rate that.

From discovery to fix

A vulnerability has a life cycle. Knowing the stages helps you read security news calmly.

The order matters most when an attacker finds the flaw first. Then the vendor may learn about it only after attacks are already happening, and everyone is racing.

Release also starts a new clock. You saw in iOS Internals that a fix can hint at where the hole was. Once a patch is public, skilled attackers can compare the old code with the new code and work backward to the flaw. A phone that hasn't updated is now running software with a publicly known hole.

That's why updating matters so much. A patch fixes the flaw on every phone that installs it, the same way changing a building's lock protects every tenant at once. You don't need to know which of the 40 fixes in an update affected you. You install the update, and they're all closed.

The flip side: a patch does nothing for a phone that never installs it. Many real attacks use flaws that were fixed long ago, aimed at devices that were never updated.

Good habits follow directly. Turn on automatic updates, install security updates within days rather than months, and restart when the phone asks, since many updates only take effect after a restart.

Test yourself

Can you answer these?

  1. A weather app crashes every time you switch to dark mode. Testing shows nobody can use the crash to read data, change data or run code. What is it?
  2. A phone maker releases a security update on Tuesday. Why is a phone that still hasn't installed it by Friday at more risk than it was on Monday?

Answer them in the app to earn 60 XP.

Answer in the app