Threat Actors and the Shape of an Attack
Who attacks organisations and why, how an intrusion unfolds from first contact to impact, and the common ways in: phishing and business email compromise, lookalike domains, compromised websites, exploited vulnerabilities and people at the front door. Includes a small detector for lookalike sender domains.
Contentsand lesson path
On this page
- Why it matters
- Threat actors and their motivations
- The shape of an attack: kill chain and ATT&CK
- Common ways in
- Example: spotting lookalike sender domains
- Check your understanding
- Apply it
- Review prompt
Lessons of Security Foundations & Threat Landscape
- Security Goals and the Controls That Serve Them Concept · 20 min
- Rating Risk with Likelihood and Impact Worked example · 20 min
- Threat Actors and the Shape of an Attack Concept · 20 min
- Tracing a Real Breach Through ATT&CK Lab · 25 min
- Authorization, Law and Professional Ethics Concept · 15 min
- Foundations Check Knowledge check · 8 questions
What you will learn
- Map the attacker actions in a published incident report to MITRE ATT&CK tactics and identify where a defender could have intervened.
01. Why it matters
Defenders cannot protect against everything equally, so they ask two questions: who is likely to attack us, and how do attacks of that kind usually unfold? A small clinic and a defence contractor face different adversaries with different patience, skill and goals, and a sensible security budget reflects that. Knowing the usual shape of an attack also tells you where you have the best chance to stop it, which is the skill you will practise in the lab that follows this lesson.
02. Threat actors and their motivations
A threat actor is a person or group that may cause harm. Grouping actors by motivation predicts their behaviour better than grouping them by tools.
- Cybercriminals want money. They run ransomware, steal and resell data, and commit payment fraud. Many work in a service economy: one group sells access to breached networks, another rents out ransomware to affiliates who carry out attacks and share the proceeds. They usually pick targets by opportunity, so small organisations are hit too.
- State-sponsored groups work for governments, mostly for espionage or to prepare disruption. They are patient, well funded and may stay hidden for months.
- Hacktivists act for a political or social cause. Typical actions are website defacement, denial of service and leaking embarrassing documents.
- Insiders are employees, contractors or partners who misuse legitimate access, out of grievance, for money, or by accident.
- Opportunists, sometimes called script kiddies, use ready-made tools against whatever is exposed, for curiosity or status.
The same techniques serve different goals, so motivation is usually inferred from what the attacker does at the end: demand payment, quietly copy designs for years, or publish a statement.
Security teams have matching roles. The red team plays the attacker in authorised exercises, the blue team defends and detects, and purple teaming is the practice of the two working together, so that each red-team action is checked against what the blue team saw and missed.
03. The shape of an attack: kill chain and ATT&CK
In 2011 Lockheed Martin described intrusions as a Cyber Kill Chain of seven phases: reconnaissance, weaponisation, delivery, exploitation, installation, command and control, and actions on objectives. The idea is that an attacker must complete every phase, so a defender who breaks any link stops the attack. It is a useful mental model, but it was built around malware delivered from outside and fits poorly when attackers simply log in with stolen passwords.
MITRE ATT&CK is the more detailed model most teams now use. It describes tactics, the attacker's goal at a step (Initial Access, Persistence, Credential Access, Lateral Movement, Exfiltration, Impact and others; 15 in the current Enterprise version), and under each tactic the techniques observed in real incidents, each with an ID, examples, detections and mitigations. ATT&CK is not a strict sequence: real attackers loop back, skip tactics and work on several at once. Its value is a shared vocabulary built from public reporting. The two models name the same moments differently: an email with a malicious attachment is Delivery in the Kill Chain, while ATT&CK records it as the technique Spearphishing Attachment under Initial Access. Later in an intrusion, dumping saved credentials from memory, for example from the Windows LSASS process, is Credential Access, and using those credentials to sign in to another machine is Lateral Movement. Mapping incidents to techniques, rather than only recording the malware's file hashes, also lasts longer: a hash changes every time the malware is rebuilt, but the behaviour stays the same and can be detected.
A vulnerability is a weakness that can be exploited. A zero-day is one that attackers exploit before the vendor has released a fix, so defenders have had zero days to patch. An n-day is a vulnerability that is already public and usually already fixed, exploited against systems that have not yet been patched. Public advisories, such as those on the CISA site, show many intrusions that use n-days and stolen credentials rather than zero-days, which is why fast patching of internet-facing systems and strong authentication pay off so well.
04. Common ways in
The first foothold is called initial access. The routes you will meet most often are these.
Phishing is a message that tricks someone into opening a malicious file, entering a password on a fake page, or approving an MFA prompt. It arrives by email, text message (smishing) or phone call (vishing). Business email compromise (BEC) is fraud by email without any malware: the attacker takes over or imitates a real mailbox, often a manager's or a supplier's, and asks for a payment or a change of bank details. Because there is no attachment or link, filters often miss it; the defence is a process, such as confirming any change of payment details by phone using a number already on file.
Lookalike domains, also called typosquatting, are registrations like northfie1dphysio.example that pass a quick glance. Attackers use them for phishing and BEC, or wait for people to mistype an address. A watering hole attack compromises a website that the target group visits, such as an industry forum. A drive-by download installs malware just because a vulnerable browser or plug-in visits a malicious page. Exploiting public-facing applications, such as VPN gateways and file-transfer servers, is the usual route for n-days. Valid accounts, from password reuse, leaked credential lists or purchased access, let attackers simply sign in.
Not every route is digital. Tailgating means following an authorised person through a secure door; shoulder surfing means watching someone type a PIN or password; a pretext is an invented story, such as a fake engineer from the IT supplier, that makes an unusual request sound normal. Help desks are a favourite target, because their job is to help callers who say they are locked out.
Malware is malicious software, and its categories describe behaviour: a virus spreads by infecting files, a worm spreads by itself across networks, a trojan pretends to be useful software, a remote access trojan gives the attacker control, an infostealer collects saved passwords and session cookies, a loader fetches further malware, a rootkit hides from the operating system, and ransomware encrypts data and demands payment. Many ransomware groups now also steal data first and threaten to publish it, called double extortion, so good backups restore availability but do not undo the confidentiality breach.
05. Example: spotting lookalike sender domains
A simple, useful detective control is to compare the sender domains in your mail logs with your own domain and flag close imitations. The script below (Python 3.10 or newer, standard library only) checks four tricks: swapped characters that look alike, the same name with another suffix, your name with extra words, and small typos measured by edit distance, the number of single-letter changes needed to turn one word into another. The domain list is fixed, so the output is the same everywhere, and it uses the reserved .example and .test suffixes, which can never belong to a real organisation.
"""Flag sender domains in a mail log that imitate our own domain."""
OURS = "northfieldphysio.example"
HOMOGLYPHS = {"0": "o", "1": "l", "rn": "m", "vv": "w"}
SEEN = ["northfieldphysio.example", "northfie1dphysio.example", "northfieldphysio.test",
"northfeildphysio.example", "northfieldphysio-invoices.example",
"physio-supplies.example", "clinic-partner.test"]
def split(domain: str) -> tuple[str, str]:
label, _, suffix = domain.partition(".")
return label, suffix
def distance(a: str, b: str) -> int:
"""Edit distance where swapping two neighbouring letters counts as one edit."""
d = [[0] * (len(b) + 1) for _ in range(len(a) + 1)]
for i in range(len(a) + 1):
d[i][0] = i
for j in range(len(b) + 1):
d[0][j] = j
for i in range(1, len(a) + 1):
for j in range(1, len(b) + 1):
d[i][j] = min(d[i - 1][j] + 1, d[i][j - 1] + 1,
d[i - 1][j - 1] + (a[i - 1] != b[j - 1]))
if i > 1 and j > 1 and a[i - 1] == b[j - 2] and a[i - 2] == b[j - 1]:
d[i][j] = min(d[i][j], d[i - 2][j - 2] + 1)
return d[len(a)][len(b)]
def classify(domain: str) -> str:
label, suffix = split(domain)
our_label, our_suffix = split(OURS)
if domain == OURS:
return "ours"
if label == our_label:
return f"LOOKALIKE: same name, different suffix (.{suffix})"
normal = label
for fake, real in HOMOGLYPHS.items():
normal = normal.replace(fake, real)
if normal == our_label:
return "LOOKALIKE: look-alike characters"
if our_label in label:
return "LOOKALIKE: our name plus extra words"
if distance(label, our_label) <= 2:
return f"LOOKALIKE: typo, {distance(label, our_label)} edit(s) away"
return "unrelated"
for d in SEEN:
print(f"{d:<34} {classify(d)}")python3 lookalike.pynorthfieldphysio.example ours
northfie1dphysio.example LOOKALIKE: look-alike characters
northfieldphysio.test LOOKALIKE: same name, different suffix (.test)
northfeildphysio.example LOOKALIKE: typo, 1 edit(s) away
northfieldphysio-invoices.example LOOKALIKE: our name plus extra words
physio-supplies.example unrelated
clinic-partner.test unrelatednorthfeildphysio swaps two neighbouring letters, which the distance function counts as one edit. Real tools also check internationalised domain names, whose letters from other alphabets can look identical to Latin ones, and newly registered domains. A detector like this will raise some false alarms, such as a genuine partner with a similar name, so the result is a list for a person to review, not an automatic block.
06. Check your understanding
07. Apply it
Choose an organisation you know and write a one-page threat profile: the two actor types most likely to target it and why, the two initial access routes you think most likely, and one preventive and one detective control for each route. Then run lookalike.py with the organisation's real domain and a handful of variations you invent, and check that every variation is flagged. You will use this profile in Tracing a Real Breach Through ATT&CK.
08. Review prompt
Without looking back: name five threat actor types and the motivation of each, explain the difference between a zero-day and an n-day, and describe business email compromise and the control that stops it. Then explain in two sentences how ATT&CK differs from the Cyber Kill Chain.
References
Your progress
Reading state
Sign in to save that you finished reading this lesson.
Prove this skill
8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.