5.6 Safe computing: attacks and defensesHow systems get broken into

All real-world systems have errors or design flaws that can be exploited to compromise them. Regular software updates help fix errors that could compromise a computing system. That's why your phone keeps asking to update: many updates close security holes that attackers already know about.
A computer virus is a malicious program that can copy itself and gain access to a computer in an unauthorized way. Computer viruses often attach themselves to legitimate programs and start running independently on a computer. Malware is software intended to damage a computing system or to take partial control over its operation. Every virus is malware, but malware also includes programs that spy, steal or lock your files. Computer virus and malware scanning software can help protect a computing system against infection.
?Wait, what's the difference between a virus and malware?
Phishing is a technique that attempts to trick a user into providing personal information. That personal information can then be used to access sensitive online resources, such as bank accounts and emails. It usually arrives as an email or text that looks like it came from somewhere you trust. Unsolicited emails, attachments, links and forms in emails can be used to compromise the security of a computing system, so they should be opened only from trusted sources.
Keylogging is the use of a program to record every keystroke made by a computer user in order to gain fraudulent access to passwords and other confidential information. It can come from malware on your device or a small hidden device plugged into a public computer. Unlike phishing, it doesn't trick you into typing somewhere fake; it records what you type everywhere.
?Wait, what's a wireless access point?
Data sent over public networks can be intercepted, analyzed and modified. One way that can happen is through a rogue access point: a wireless access point that gives unauthorized access to secure networks. An attacker sets up a Wi-Fi network named like the café's and waits for people to connect. Encryption, like HTTPS, keeps intercepted data unreadable, which is why it matters most on public Wi-Fi.
| Threat | What it is | Best defenses |
|---|---|---|
| Phishing | A fake message or site that tricks you into giving up information | Don't click; go to the real site yourself; multifactor |
| Keylogging | A program or device that records every key you press | Malware scanning; updates; avoid typing passwords on public computers |
| Computer virus | Malicious code that copies itself, often attached to a real program | Install only trusted software; scanning; updates |
| Malware (any kind) | Software meant to damage a system or take partial control of it | Updates, scanning, don't open unknown attachments |
| Rogue access point | A wireless access point that gives an attacker access to your traffic | Avoid unknown Wi-Fi; use encrypted (HTTPS) connections |
I thought about it. Show me
- Threat 1: the Wi-Fi might be a rogue access point set up by an attacker, who could read or change any unencrypted traffic.
Why?
The name looks official, but anyone can name a network anything. - Defense: use the airport's official network (or his phone's data), and make sure sites use HTTPS so intercepted data is unreadable.
- Threat 2: the email is phishing: urgency, a threat and a request for private information through a link.
- Defense: don't click; open the streaming app or type its real address himself. Multifactor authentication would stop an attacker who only has his password. And now he should change that password right away.
- Threat 3: a shared public computer could be running a keylogger that records his email password.
Why?
Phishing tricks you into typing in a fake place; keylogging records what you type in a real place. - Defense: avoid typing passwords on public computers. If he must, multifactor authentication again means the stolen password alone isn't enough.
Answer: Rogue access point (use trusted networks and HTTPS), phishing (don't click, go to the real site, use multifactor, change the password), and possible keylogging on the shared computer (avoid public computers for logins, use multifactor).
Stuck? Get a hint
- There are three moments in the story: the Wi-Fi, the email, the shared computer.
- Fake Wi-Fi, fake message, recorded keystrokes: match each to its name.
- Multifactor authentication helps against more than one of these.
- Aphishing
- Ba rogue access point
- Ckeylogging
- Da certificate authority
Show the answer
C. Recording every keystroke to steal passwords is keylogging. Phishing would trick the user into typing their information into a fake site or message. A rogue access point is a fake or unauthorized Wi-Fi network.
- AUpdates often fix errors and design flaws that attackers could exploit
- BUpdates make a password count as multifactor authentication
- CUpdates delete all personal information from the device
- DUpdates are required before a device can use the internet's protocols
Show the answer
A. All real systems have flaws, and updates fix many that attackers already know about. The other choices describe things updates don't do.

Learn the four pairs: fake Wi-Fi is a rogue access point, a fake message or site is phishing, recorded keys are keylogging, self-copying code is a virus. Name the threat first, then pick the defense that stops that specific threat.
- All real systems have flaws; regular updates fix many of them.
- Virus: self-copying malicious program. Malware: any software meant to damage or control a system. Scanners help.
- Phishing tricks you into giving up information. Keylogging records your keystrokes. A rogue access point gives an attacker access to your network traffic.
- Open emails, attachments and links only from trusted sources.