AP Cybersecurity · Study guide

Why Updates Matter

AP® Cybersecurity · Unit 4 · Device Security, Malware & Authentication

Why Updates Matter

How software updates and patches fix vulnerabilities, and why devices that are not updated are the easiest targets for attackers.

1Software has flaws

Operating systems and applications contain millions of lines of code, and some of that code has mistakes. Some mistakes are vulnerabilities that attackers can use to crash a device, read data, or take control. New vulnerabilities are found all the time, by researchers, by the software makers themselves, and by attackers.

2Updates and patches

When a vulnerability is found in an operating system or software, the vendor or organization that maintains it fixes it and sends out an update. A small update that fixes a specific problem is called a patch.

Updating a computer's operating system and applications to the most recent version prevents adversaries from taking advantage of known vulnerabilities. Exploits written for a flaw stop working once the patch is installed.

3Why delay is dangerous

Figure 1. Once a patch is released, the vulnerability is effectively public. Devices that update quickly close the window; devices that do not are the easiest targets.

Two well-documented cases show the cost of waiting:

CasePatch releasedAttackGap
WannaCry ransomwareMarch 14, 2017 (Microsoft)May 12, 2017: hundreds of thousands of unpatched Windows computers infected59 days
Equifax data breachMarch 7, 2017 (Apache Struts web software)Attackers entered through the unpatched software starting in mid-May 2017; data of about 147 million people stolenAbout two months

In both cases the fix existed. The victims were the systems that had not installed it.

4Keeping devices updated

  • Turn on automatic updates for the operating system and applications wherever possible.
  • Update all software, not just the operating system: browsers, PDF readers, office suites, plug-ins.
  • Prioritize critical and high severity updates, especially for internet-facing systems.
  • Track devices that cannot update (old software no longer supported by its vendor) and replace or isolate them.
Update status for one library laptop
Device: LIB-LAPTOP-07
  Operating system ........ 3 updates pending (oldest: 74 days)
      critical: remote code execution in file sharing service
  Web browser ............. up to date
  PDF reader .............. 1 update pending (oldest: 120 days)
      high: malicious PDF can run code
  Office suite ............ up to date
The key idea

A patch closes a known door. Until it is installed, that door is open to anyone with the published exploit, so update quickly, update everything, and update critical fixes first.

5Worked examples

Worked Example 1 Why patch

The 59-day window

Microsoft released a patch on March 14, 2017. WannaCry spread on May 12, 2017. How long was the window, and which computers were hit?

  1. 1
    From March 14 to May 12 is 59 days.
  2. 2
    Computers that installed the patch in that time were protected from WannaCry's main spreading method.
  3. 3
    Computers that had not installed it were infected, including systems at hospitals and companies worldwide.
Answer: 59 days. The unpatched computers were hit; the patched ones were not.
Worked Example 2 Prioritize

Reading the update status

Using the update status above, which update should be installed first, and why?

  1. 1
    The operating system update is critical: remote code execution in the file sharing service, pending 74 days. An attacker on the network could take over the laptop without anyone clicking anything.
  2. 2
    The PDF reader update is high: a malicious PDF can run code, pending 120 days. It requires a user to open a file.
  3. 3
    Both should be installed now, critical first.
Answer: The critical operating system update first, then the PDF reader. Both are long overdue.
Worked Example 3 All software

Up to date except…

A student says, “My operating system updates automatically, so my laptop is fully patched.” What might they be missing?

  1. 1
    Apps like browsers, PDF readers, games, and plug-ins have their own updates.
  2. 2
    An out-of-date PDF reader or plug-in can be exploited even if the operating system is current.
  3. 3
    Turn on automatic updates in each app, or check them regularly.
Answer: Application updates. Every piece of software can have vulnerabilities, not just the operating system.
Worked Example 4 Unsupported software

The old lab computer

A science lab computer runs an operating system its vendor stopped supporting years ago; no more patches are coming. It controls an instrument. What should the school do?

  1. 1
    No updates means new vulnerabilities will never be fixed on that system.
  2. 2
    If the instrument needs that system, isolate the computer: disconnect it from the internet and the main network, or segment it tightly.
  3. 3
    Plan to replace it when possible.
Answer: Isolate it now and plan a replacement. A system that cannot be patched must be protected by other layers.

6Common mistakes

Common Mistake 1 · Postponing updates indefinitely

Once a patch is released, the flaw is effectively public and exploits follow. Every day of delay is a day of exposure.

Common Mistake 2 · Updating only the operating system

Browsers, PDF readers, and other apps need updates too.

Common Mistake 3 · Assuming old devices are safe because they are old

Unsupported software keeps collecting unfixed vulnerabilities. Isolate or replace it.

Explain why updates matter like this

“When a vulnerability is found, the vendor releases a patch to fix it. Installing the update prevents adversaries from using exploits for that known vulnerability. The unpatched laptops were infected because the flaw was public and the fix had not been applied.”

Connect the patch to the specific known vulnerability it fixes and to the attack it prevents.