It is a Monday morning at a bank branch in Dhaka. A finance officer finds an e-mail in her inbox: "Salary revision 2026", an Excel file attached, and the name of the head of HR on the sender line. She opens the file. A yellow bar asks her to click "Enable content" so the figures can load, and she does. Nothing seems to happen. For two weeks, nothing does. Then, at two o'clock on a Friday night, every file on the branch's shared drive is renamed, and a text file on every desktop asks for payment in bitcoin.
What was all that? Look at the story again and count the different things in it. A person was tricked. A file carried a hidden program. A flaw in the way the office software trusted that file let the program run. For two weeks the attacker sat quietly inside. And then came the final blow. A security person gives each of these its own name: social engineering, malware, vulnerability, the attacker's time inside the network, ransomware. The names matter because each one is stopped by a different defence, and because examiners ask for them one at a time: "What is a Trojan horse?", "Differentiate a virus from a worm", "What is phishing?".
By the end of this chapter you'll tell threat, vulnerability, exploit, attack and risk apart, and use attack surface, attack vector and zero-day correctly. You'll walk through the seven stages of the cyber kill chain with an example at each stage, sort any attack into the standard classes and into passive or active, and name any kind of malware from the way it behaves. You'll explain how antivirus finds malware and why it sometimes can't, and recognise a phishing message and the other tricks played on people. Every calculation and program in this chapter was run on a real machine, and the output you see is the real output.