Threats, Vulnerabilities & Attackers
Before you can choose defences you need a map of what you are defending against. This lesson gives you the vocabulary for who attacks, why, how they typically get in, and what a vulnerability really is. Later lessons zoom in on each area.
Threat actors
A threat actor is anyone (or anything) that could cause harm. They differ in motivation, skill and resources, and that changes which defences matter most.
| Actor | Motivation | Capability | Typical target |
|---|---|---|---|
| Opportunistic criminals | Money | Low–medium; automated tools | Anyone with a known, unpatched weakness |
| Organised crime / ransomware groups | Money (extortion) | High; run like businesses | Companies that can pay: hospitals, factories, councils |
| Nation-state groups | Espionage, sabotage | Very high; patient | Governments, defence, telecoms, research |
| Hacktivists | Publicity for a cause | Low–medium | Organisations they disagree with |
| Insiders | Revenge, money, or plain mistakes | Already have access | Their own employer |
| Accidents & nature | — | — | Fire, flood, a deleted table, a cut cable |
Most organisations are not attacked because they are interesting but because they are reachable and weak. Automated scanning of the whole internet takes hours, so an exposed, unpatched server is found quickly whoever owns it.
Vulnerabilities
A vulnerability is a weakness that a threat could use. It is useful to sort them by where they come from:
- Software flaws: bugs such as injection, memory corruption or broken access checks. Public ones get a CVE identifier (
CVE-2021-44228was Log4Shell). - Misconfiguration: default passwords, a storage bucket set to public, debug mode left on in production.
- Weak processes: no patching schedule, no off-boarding when people leave, no backups tested.
- People: being tricked into giving away a password or approving a payment.
A vulnerability only becomes a problem when a threat can reach it. An unpatched service that no one can connect to is much less urgent than the same service exposed to the internet. That idea, combining weakness with exposure, is the basis of prioritisation:
findings = [
{"host": "web-01", "issue": "outdated CMS plugin", "severity": 8, "internet": True},
{"host": "build-02", "issue": "outdated CMS plugin", "severity": 8, "internet": False},
{"host": "vpn-01", "issue": "default admin password", "severity": 9, "internet": True},
{"host": "hr-laptop", "issue": "no disk encryption", "severity": 5, "internet": False},
]
def priority(f):
# exposure doubles the urgency of the same weakness
return f["severity"] * (2 if f["internet"] else 1)
for f in sorted(findings, key=priority, reverse=True):
where = "internet" if f["internet"] else "internal"
print(f"{priority(f):>3} {f['host']:<10} {where:<9} {f['issue']}") 18 vpn-01 internet default admin password
16 web-01 internet outdated CMS plugin
8 build-02 internal outdated CMS plugin
5 hr-laptop internal no disk encryption
Attack vectors and the attack surface
An attack vector is the route an attacker uses to reach a vulnerability. The sum of all such routes is the attack surface. Shrinking it (closing ports, removing unused features, retiring old accounts) is one of the most effective things a defender can do.
| Vector | Example | Main defences |
|---|---|---|
| Phishing link or malicious attachment | Filtering, training, MFA | |
| Exposed services | Unpatched VPN, remote desktop on the internet | Patching, closing ports, VPN with MFA |
| Web applications | Injection, broken access control | Secure coding, testing, WAF |
| Stolen or weak credentials | Password reused from another breach | MFA, unique passwords, breach monitoring |
| Supply chain | A compromised software update or library | Dependency pinning, signed updates, vendor review |
| Physical | USB stick left in a car park, stolen laptop | Disk encryption, device policies |
The attack lifecycle
Real intrusions follow recognisable stages. Frameworks such as the Cyber Kill Chain and MITRE ATT&CK describe them so defenders can place detections at every stage. A simplified version:
- Reconnaissance: learning about the target (public websites, staff names).
- Initial access: phishing, an exposed service, stolen credentials.
- Execution & persistence: running code and making sure it survives a reboot.
- Privilege escalation & lateral movement: from one laptop to admin rights and other machines.
- Actions on objectives: stealing data, encrypting files, sabotage.
The key insight for defenders: the attacker must succeed at every stage, while you only need to detect or block one. This model maps defensive controls to the stages they cover and shows any gap:
stages = ["reconnaissance", "initial access", "persistence",
"lateral movement", "objectives"]
controls = {
"MFA": ["initial access"],
"email filtering": ["initial access"],
"EDR on endpoints": ["persistence", "lateral movement"],
"network segmentation": ["lateral movement"],
"offline backups": ["objectives"],
}
for stage in stages:
covering = [name for name, covers in controls.items() if stage in covers]
print(f"{stage:<17} {', '.join(covering) or 'NO CONTROL'}")reconnaissance NO CONTROL
initial access MFA, email filtering
persistence EDR on endpoints
lateral movement EDR on endpoints, network segmentation
objectives offline backups
Reconnaissance is hard to block (your website is public on purpose), so defenders mostly reduce what it reveals: limit public information about internal systems and staff roles.
Common mistakes
- "We're too small to be a target." Automated attacks don't check company size.
- Thinking only about outsiders. Mistakes by staff cause a large share of incidents.
- Treating every vulnerability as equal. Use severity and exposure to prioritise.
Go further: A Map of the Attack Categories sorts attacks into eleven categories, each with its warning signs, impact and defence.
Test yourself
A storage bucket accidentally left public is an example of which kind of vulnerability?
- Software flaw
- Misconfiguration
- Physical weakness
- Zero-day
What is the attack surface?
- The number of past attacks
- All the routes by which an attacker could reach a system
- The firewall's outside interface
- The list of CVEs in a product
Why does the attack-lifecycle model favour defenders?
- Attackers must succeed at every stage, defenders need to stop only one
- Attackers can't automate any stage
- Each stage is illegal
- Defenders always see reconnaissance