---
title: "Exploiting Device Vulnerabilities | FiveStudy"
description: "How adversaries exploit unpatched software, weak passwords, unprotected BIOS/UEFI, autorun, open ports, missing firewalls, and missing anti-malware on devices."
url: https://fivestudy.com/guides/ap-cybersecurity-4-1-c-exploiting-device-vulnerabilities
---

[AP Cybersecurity](https://fivestudy.com/ap-cybersecurity) · Study guide

# Exploiting Device Vulnerabilities

[Figure: FiveStudy]

FiveStudy

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

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

# Exploiting Device Vulnerabilities

The common weaknesses in computers and phones, and how adversaries use each one to cause loss, damage, disruption, or destruction.

1. From weakness to harm 2. Unpatched software 3. Weak authentication 4. Unprotected firmware 5. Autorun 6. Open ports and missing firewalls 7. Missing anti-malware 8. Worked examples 9. Common mistakes

## 1 From weakness to harm

A device vulnerability is a weakness that lets an adversary do something they should not: run code, get in without a password, change settings, or read data. Seven weaknesses come up again and again. For each, ask: *what could an adversary do with it?*

| Vulnerability | What an adversary can do |
| --- | --- |
| Unpatched software | Run a ready-made exploit to crash the system, spy, turn on the webcam or microphone, or take full control |
| Weak authentication | Guess the password or get the user to reveal it through social engineering |
| No BIOS/UEFI password | Boot into recovery mode or their own operating system and change accounts and passwords |
| Autorun enabled | Make malware run the moment a USB drive is inserted |
| Open ports | Connect directly to services running on the device |
| No or misconfigured firewall | Send malicious data that nothing filters out |
| No anti-malware | Install malware that nothing detects |

## 2 Unpatched software

When a vulnerability in software, including the operating system, becomes known, adversaries develop **exploits**: code that takes advantage of it. Software makers release patches, but devices that are not updated stay vulnerable. Depending on the flaw, an exploit could let an adversary:

- crash the system;
- view what the user is doing;
- turn services or components on or off, such as switching on the webcam or microphone;
- take control of the device and issue their own commands, including commands to steal or destroy information.

## 3 Weak authentication

If a device is protected only by a weak password, adversaries can guess it, or use social engineering to get the user to reveal it. Once in, they have whatever access that user has.

## 4 Unprotected firmware

The **BIOS** (basic input/output system) or its modern replacement **UEFI** (unified extensible firmware interface) is the firmware that starts a computer before the operating system loads. If it has no password, an adversary with physical access can:

- boot the computer into a special mode, such as recovery mode, that gives higher-level privileges;
- load their own operating system from an external drive, then use specialized tools to alter or create user profiles, including changing user passwords.

**Figure 1.** The BIOS or UEFI is the firmware that starts the computer before the operating system. Without a password on it, anyone holding the device can change how it starts.

## 5 Autorun

**Autorun** is a setting that automatically runs a program when a drive or disc is inserted. If autorun is enabled, an adversary can load malware onto a USB drive, and the device will run the malware as soon as the drive is plugged in. This is why attackers sometimes leave infected USB drives in parking lots: someone curious plugs one in.

## 6 Open ports and missing firewalls

A port is open when a service on the device is listening for connections. Adversaries can use open ports to connect to a device, especially when the service behind the port is old or poorly protected.

A port scan of a staff laptop

```
Port scan of 10.10.2.44 (staff laptop)
PORT      STATE   SERVICE
22/tcp    closed  ssh
23/tcp    open    telnet
80/tcp    closed  http
445/tcp   open    file sharing
3389/tcp  open    remote desktop
```

Three ports are open here: Telnet (23), which sends logins unencrypted; file sharing (445); and remote desktop (3389). Each is a way in that may not be needed.

A firewall on the device filters incoming data. Devices with no firewall, or a misconfigured one, cannot filter out malicious data that adversaries send to disrupt them or take control.

## 7 Missing anti-malware

Adversaries often try to install malware to disrupt or control a device. Devices without anti-malware software have no tool watching for known malware and suspicious behavior, so the malware runs unnoticed.

The key idea

Each device weakness opens a specific door: unpatched flaws for exploits, weak passwords for guessing, open firmware for booting around the login, autorun for USB malware, open ports and missing firewalls for direct connections, and missing anti-malware for unnoticed infections.

## 8 Worked examples

Worked Example 1 Explain the exploit

### The webcam light

A student's laptop has not been updated in a year. A published exploit targets a flaw fixed by an update ten months ago. The student notices the webcam light turning on by itself. What happened?

1. 1

   The laptop is missing the patch, so the known flaw is still there.

2. 2

   An adversary used the ready-made exploit to gain control.

3. 3

   With control, they can turn on components such as the webcam, watch activity, and run their own commands.

**Answer:** An unpatched-software exploit gave the adversary control, including the camera. Installing updates would have closed the flaw.

Worked Example 2 Explain the exploit

### The stolen laptop with a strong password

A thief steals a laptop with a strong login password, no BIOS/UEFI password, and an unencrypted disk. How could the thief get into the user's account?

1. 1

   With no firmware password, the thief changes the startup settings to boot from a USB drive.

2. 2

   Their own operating system runs and can read and modify the laptop's disk.

3. 3

   They use tools to reset the user's password or create a new admin account, then log in normally.

**Answer:** By going around the login entirely. A BIOS/UEFI password plus disk encryption would stop it.

Worked Example 3 Explain the exploit

### The parking lot USB drive

An employee finds a USB drive labeled “Salaries 2026” in the parking lot and plugs it into a work computer that has autorun enabled. What happens?

1. 1

   Autorun runs the program on the drive automatically when it is inserted.

2. 2

   The program is malware, which installs without the employee clicking anything else.

3. 3

   The curiosity-provoking label was social engineering to get the drive plugged in.

**Answer:** The malware runs immediately because autorun is on. Disabling autorun (and not plugging in unknown drives) prevents it.

Worked Example 4 Read a port scan

### Three open doors

Using the port scan above, which open ports are concerns on a staff laptop, and what should be done?

1. 1

   Port 23 (Telnet): sends logins unencrypted and is rarely needed; close it.

2. 2

   Port 3389 (remote desktop): lets someone control the laptop remotely; close it unless required, and then restrict who can connect.

3. 3

   Port 445 (file sharing): often targeted by worms; close it if the laptop does not share files, or limit it with the firewall.

**Answer:** All three open ports are possible entry points. Close what is not needed and filter the rest with the device firewall.

## 9 Common mistakes

Common Mistake 1 · Thinking a strong login password protects a stolen device

Without a firmware password and disk encryption, an attacker can boot their own system and go around the login.

Common Mistake 2 · Treating updates as optional

Once a flaw is public, exploits follow. Unpatched devices are the easiest targets.

Common Mistake 3 · Ignoring ports nobody uses

An open port that no one needs is still a way in. Close it.

Explain a device exploit like this

“Because the laptop has no BIOS/UEFI password, an adversary with physical access could boot it from an external drive running their own operating system, then use tools to change the user's password. This bypasses the login screen entirely and gives them access to the user's files.”

Name the vulnerability, describe how the adversary uses it, and state the resulting harm.

FiveStudy AP® Cybersecurity · Exploiting Device Vulnerabilities
