Exploiting Device Vulnerabilities
The common weaknesses in computers and phones, and how adversaries use each one to cause loss, damage, disruption, or destruction.
1From 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 |
2Unpatched 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.
3Weak 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.
4Unprotected 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.
5Autorun
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.
6Open 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.
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.
7Missing 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.
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.
8Worked examples
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?
- 1The laptop is missing the patch, so the known flaw is still there.
- 2An adversary used the ready-made exploit to gain control.
- 3With control, they can turn on components such as the webcam, watch activity, and run their own commands.
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?
- 1With no firmware password, the thief changes the startup settings to boot from a USB drive.
- 2Their own operating system runs and can read and modify the laptop's disk.
- 3They use tools to reset the user's password or create a new admin account, then log in normally.
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?
- 1Autorun runs the program on the drive automatically when it is inserted.
- 2The program is malware, which installs without the employee clicking anything else.
- 3The curiosity-provoking label was social engineering to get the drive plugged in.
Three open doors
Using the port scan above, which open ports are concerns on a staff laptop, and what should be done?
- 1Port 23 (Telnet): sends logins unencrypted and is rarely needed; close it.
- 2Port 3389 (remote desktop): lets someone control the laptop remotely; close it unless required, and then restrict who can connect.
- 3Port 445 (file sharing): often targeted by worms; close it if the laptop does not share files, or limit it with the firewall.
9Common mistakes
Without a firmware password and disk encryption, an attacker can boot their own system and go around the login.
Once a flaw is public, exploits follow. Unpatched devices are the easiest targets.
An open port that no one needs is still a way in. Close it.
“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.