So far you have learnt what to protect, from which threats and why defences are the way they are. What is missing is the piece that turns all of that into real defensive capability: knowing who is on the other side and how they operate.

These are two different questions and both are practical. The first — who — determines what level of effort to expect and what is worth investing against: a company does not defend itself the same way against an automated scan as against a determined competitor. The second — how — is the most useful of all, because a serious attack is not a moment, it is a process with several phases that can last weeks. And a process with phases has something a moment does not: points at which to interrupt it.

This lesson closes the introductory module by bringing the two together: you will build Rutalia Logística's specific threat model and take apart, phase by phase, a complete attack against it.

Ethical and legal warning. The scenario that follows is told from the attacker's point of view for purely defensive purposes: you cannot detect what you do not understand. Reproducing any of these actions against someone else's systems without express written authorisation is a criminal offence (in Spain, articles 197 bis, 197 ter and 264 of the Spanish Criminal Code). Legitimate security testing requires a contract with a defined scope and dates, and is covered in Penetration Testing and Vulnerability Assessment.

  1. Why it matters to know who is attacking

It might look irrelevant: if the vulnerability is closed, it is closed for everyone. But identifying the likely adversary changes three concrete decisions:

  • How much effort to expect. An automated scanner tries a vulnerability and moves on. A competitor or a former employee keeps at it for months and adapts to whatever they find.
  • Which assets to prioritise. A ransomware group looks for whatever will paralyse operations. An industrial spy looks for the rates negotiated with customers. Those are not the same files, nor the same controls.
  • When to stop investing. Rutalia cannot, and should not, defend itself against a state intelligence service. Defining who you do defend against is what makes a budget defensible before senior management.

This exercise is called threat modelling, and it is what separates a security plan from a shopping list.

  1. The threat actors, one by one

Script kiddies

People with limited technical knowledge who use tools built by others without fully understanding how they work. Their motivation is usually curiosity, standing among peers or simply boredom.

  • Capability: low. They develop nothing of their own.
  • Method: automated scanners, public exploits, downloadable tools, pay-by-the-hour DDoS services.
  • Why they matter despite their low capability: there are vast numbers of them, they act indiscriminately and the tools they use keep getting better. A script kiddie with an automated tool exploits a known vulnerability exactly as well as an expert does.
  • At Rutalia: they are the source of most of the background noise. The scan for /.env and /wp-login.php in the log you analysed in Types of Threats and Attacks is exactly this.

Hacktivists

Groups driven by a political, social or ideological cause. Their objective is not money but visibility: they want people to know.

  • Capability: low to medium, highly variable.
  • Method: DDoS, website defacement, leaking documents, hijacking social media accounts.
  • At Rutalia: unlikely directly, but not impossible. If Rutalia were carrying goods associated with a public controversy (animal testing, weapons, a customer in the media spotlight), it could become a target by association.

Organised cybercrime

By far the most relevant actor for an SME. Structured groups with a purely financial motivation, operating like businesses: they have development, support, negotiators and accounting.

  • Capability: medium to high, and growing.
  • Method: ransomware, BEC, fraud, theft and resale of data, banking trojans.
  • Defining trait: they apply a profitability test. They attack whatever pays. Since the cost of attacking has fallen (see section 3), attacking an SME of 180 people now pays.
  • At Rutalia: this is the main threat. Systems encrypted on a Monday morning, with the customer database exfiltrated beforehand, is the most likely of all the scenarios Laura has to consider.

Insiders

People with legitimate access. You already classified them in lesson 01-02 into four variants (accidental, negligent, malicious and compromised). From the "who is attacking" perspective, what matters is their structural advantage:

  • Capability: variable, but with an advantage no outsider has: they know the organisation. They know where the valuable information is, who authorises what and when nobody is looking.
  • Method: use of legitimate access, copying information, sabotage, collaboration with outsiders (sometimes for payment).
  • At Rutalia: the most realistic scenario is the sales rep who leaves for a competitor with the list of 400 customers and their rates. It requires no technical skill at all and is hard to detect without access logging.

State-sponsored actors (APTs)

Groups with state funding, pursuing intelligence, sabotage or preparation for conflict. The term APT (Advanced Persistent Threat) emphasises persistence: staying inside for months or years without being detected.

  • Capability: very high. 0-day vulnerabilities, in-house development, teams dedicated to a single target, unlimited patience.
  • Method: highly crafted spear phishing, supply chain attacks, 0-day exploitation, slow and stealthy lateral movement.
  • Here we have to be honest: if a state actor decides to get into Rutalia, it will. No SME can withstand that asymmetry of resources.
  • Even so, they do matter to Rutalia, for two specific reasons:
    1. As collateral damage. NotPetya was a state attack against Ukraine and it ruined Maersk, a Danish shipping line. Rutalia can suffer an attack that was not looking for it.
    2. As a link in a chain. If Rutalia carries goods for a company in a strategic sector, it can be the easy route towards a bigger target. It is exactly the pattern of the 2013 Target case.

Competitors and industrial espionage

Less newsworthy but real, especially in sectors with tight margins such as logistics. It usually operates indirectly: by hiring a third party, or by taking on an employee from a competitor so that they bring information with them.

  • At Rutalia: the rates negotiated with each customer and the optimised routes are information of extremely high competitive value. Knowing them lets a rival bid 3% below, systematically.

Researchers and ethical hackers

Not everyone who probes your systems is an adversary. The classic "hat" terminology:

Hat Who they are Authorisation What they do with what they find
White (white hat) Security professional; pentester; auditor Yes, a contract or a bug bounty programme Reports it to the owner and helps fix it
Grey (grey hat) Independent researcher No, acts without permission Usually reports it, sometimes asking for compensation; their activity remains illegal even when the intention is good
Black (black hat) Attacker No Exploits it or sells it

Two associated concepts:

  • Responsible disclosure: the researcher notifies the vendor and grants them a reasonable period (usually 90 days) before making the vulnerability public. It balances society's right to know against the time needed to fix things.
  • Bug bounty programmes: the organisation publicly invites people to test it and pays for valid findings, within defined rules and scope.

Rutalia is in no position to run a bug bounty programme, but Laura does put something basic and free in place: a [email protected] address published on the website and a security.txt file, so that anyone who finds a flaw in MiRutalia has somebody to tell. Without that channel, a well-intentioned finding ends up on a public forum or, quite simply, ignored.

  1. The economics of cybercrime: RaaS, access brokers and marketplaces

To understand why a company of 180 people in Zaragoza is a reasonable target today, you have to understand that cybercrime has broken apart into a value chain of specialists. Nobody does the whole process.

flowchart LR
    subgraph PRE["Access"]
        IAB["Initial access broker<br/>sells VPN/RDP/credentials<br/>200-5,000 EUR"]
        MKT["Credential marketplace<br/>infostealer logs"]
    end
    subgraph EJE["Execution"]
        DEV["RaaS developer<br/>encryptor + panel + support"]
        AFF["Affiliate<br/>carries out the intrusion"]
    end
    subgraph MON["Monetisation"]
        NEG["Negotiator<br/>deals with the victim"]
        LAV["Laundering<br/>crypto to money"]
    end
    MKT --> IAB
    IAB --> AFF
    DEV --> AFF
    AFF --> NEG
    NEG --> LAV

The cogs in the machine

Cog What it sells or contributes Indicative price Consequence
Infostealers Steal browser credentials from infected machines and dump them into "logs" Pennies per record Millions of corporate credentials in circulation
Credential marketplaces Sell those logs filtered by domain or country €5-€50 per batch Anyone can buy @rutalia.example credentials if they exist
Initial access brokers (IABs) Sell access that already works: a valid VPN, an RDP, an administrator account €200-€5,000 depending on the victim's turnover Intrusion and extortion are separate businesses
RaaS Rent out the complete ransomware package: encryptor, control panel, leak site, technical support 20-30% of the ransom Attacking does not require knowing how to program
Affiliates Carry out the intrusion and deploy 70-80% of the ransom There are thousands of them, of widely varying ability
Negotiators Handle the conversation with the victim; know what cyber insurance policies cover Commission Negotiation has been professionalised
DDoS services Attacks by the hour, with a web panel €10-€100 Anyone can launch a DDoS

The three consequences that change Rutalia's calculation

  1. The barrier to entry collapsed. The attacker no longer needs the skills of the person who writes the malware. That multiplied the number of attackers and lowered their average skill level, but not their effectiveness.
  2. The target shifted to the SME. A large company pays more, but it has a security team, detection and lawyers. An SME pays less, but there are hundreds of thousands of them and almost none has any detection. On a volume model, it works out more profitable.
  3. The price of access to Rutalia has already been worked out. IABs value access according to the victim's turnover, taken from public company registers. Rutalia has a market price as a target, and it is affordable.

The practical conclusion is uncomfortable but clarifying: the question "who would want to attack us?" is the wrong question. The right one is "is our access on sale at a price that makes it worth somebody's while?".

  1. Comparison table of actors

Actor Motivation Capability Persistence Typical objectives Risk to Rutalia
Script kiddie Curiosity, standing Low None: if they cannot get in, they move on Whatever is misconfigured, with no particular criterion Medium-high through sheer volume: it is the constant noise that finds any lapse
Hacktivist Ideological Low-medium Low-medium Public website, social media, leakable documents Low, except by association with a controversial customer
Organised cybercrime Financial Medium-high Medium: persists if there is a return Backups, file servers, ERP, customer data VERY HIGH — it is the main threat
Malicious insider Revenge, profit, competition Low technically, high contextually High for as long as they have access Customer list, rates, documentation High: the sales rep leaving for a competitor
Accidental insider None Not applicable Not applicable Unintentional High: it is the most frequent incident of all
APT / state Intelligence, sabotage Very high Very high: months or years Strategic sectors; supply chains Low directly, medium indirectly: collateral damage or a route to a customer
Competitor Commercial advantage Low-medium, often subcontracted Medium Rates, routes, contracts, customer list Medium: high-value information, a fiercely competitive sector
Ethical hacker Professional or reputational High Not applicable Whatever is in scope Not a risk: they are a resource, provided a contact channel exists

How Laura reads the table: 80% of her budget should go to the two highlighted rows — organised cybercrime and insiders — because they concentrate both likelihood and impact. Defending against those two also covers a good deal of what a script kiddie would do, because they share the same ways in.

  1. The threat model of a specific organisation

Threat modelling means answering four questions in a structured way:

  1. What are we protecting? → The assets, which you already inventoried in Basic Cybersecurity Concepts.
  2. Who would want to attack us, and for what? → The actors from the previous section, applied to our context.
  3. How would they get in? → The vectors, across our real attack surface.
  4. What do we do about it? → The controls, prioritised according to the above.

The key word is specific. A generic threat model is useless: "we could suffer ransomware" is true for every company in the world and guides no decision at all. A useful model says who, how they get in and what they are after.

There are formal methodologies (STRIDE, PASTA, attack trees) covered in Risk Management. Here we will apply the direct version, which is the one an SME can keep alive.

  1. Rutalia Logística's threat model

Laura gets Diego, Marta and the operations director together for two hours. This is the result.

What Rutalia has that might interest somebody

Attractive asset Of interest to whom? Why
The ability to operate (ERP, routes, warehouses) Organised cybercrime If it stops, Rutalia loses €1,500/hour. That is maximum pressure to pay a ransom
The database of 400 customers with their rates Competitors, insiders, cybercrime Direct commercial advantage; material for extortion
Personal data (employees, drivers, recipients) Cybercrime Leverage for extortion via the GDPR and reputation
Access to its customers' systems Cybercrime, APTs Rutalia has EDI integrations with large retailers: it is a link in the supply chain
The ability to invoice and pay Cybercrime (BEC) A high volume of supplier payments: ideal ground for bank account change fraud
60 tablets and 50 laptops outside the perimeter Opportunistic A mobile attack surface, unmanaged
Compute resources on AWS Cybercrime (cryptomining) A purely opportunistic target if credentials leak

How they would get in

flowchart TD
    subgraph EXT["Internet-facing surface"]
        W["MiRutalia portal<br/>Flask + PostgreSQL"]
        M["Microsoft 365<br/>180 mailboxes"]
        V["Remote working VPN<br/>50 users, no MFA"]
        A["Services on AWS"]
    end
    subgraph HUM["Human surface"]
        P["180 employees<br/>no phishing training"]
        PR["Suppliers<br/>ERP with permanent VPN"]
    end
    subgraph FIS["Physical surface"]
        T["60 tablets<br/>no PIN, no encryption"]
        CPD["Data centre with door<br/>frequently left open"]
    end
    W --> INT["Flat internal network<br/>10.10.0.0/16"]
    M --> INT
    V --> INT
    P --> INT
    PR --> INT
    T --> INT
    CPD --> INT
    INT --> OBJ["ERP, file server,<br/>Active Directory, backups"]
    style INT fill:#fff3cd,stroke:#856404
    style OBJ fill:#ffdddd,stroke:#cc0000

The diagram reveals Rutalia's structural problem, and it is worth stating plainly: there are seven different ways in and all of them lead to the same flat network. There is no barrier at all between the entry point and the final objectives. Whoever gets in anywhere reaches everything.

Laura's five attack hypotheses

The exercise produces five concrete scenarios, ordered by risk:

# Scenario Actor Way in Impact
H1 Ransomware with double extortion Cybercrime (RaaS affiliate) Phishing or VPN without MFA Total shutdown + data leak. Critical
H2 Bank account change fraud Cybercrime (BEC) Email, no malware €20,000-€60,000 per incident. High
H3 Leak of the customer list Insider or competitor Legitimate access Sustained commercial loss. High
H4 Data theft via MiRutalia Cybercrime or opportunistic SQL injection or IDOR GDPR breach + reputation with 400 customers. High
H5 Compromise through the ERP vendor Cybercrime or APT The vendor's permanent VPN Variable, potentially total. Medium-high

These five hypotheses will be the reference point for the rest of the course: you will be able to assess every control you study by asking which of them it answers.

  1. The Cyber Kill Chain: the seven phases

Published by Lockheed Martin in 2011, the Cyber Kill Chain adapts a military concept to computer intrusion. Its conceptual contribution is what gives modern defence its meaning: a targeted attack is not an event, it is a sequence of chained phases, and the attacker needs to complete all of them.

# Phase What the attacker does How long it lasts Can it be detected?
1 Reconnaissance Gathers information about the target Days or weeks Barely: much of it happens outside your systems
2 Weaponisation Prepares the malicious artefact Hours No: it happens entirely on their own infrastructure
3 Delivery Gets the artefact to the victim Minutes Yes: email and web filters, media control
4 Exploitation The code runs, exploiting a flaw or a click Seconds Yes: EDR, application control, patching
5 Installation Establishes persistence so as to survive a reboot Minutes Yes: changes to scheduled tasks, services, the registry
6 Command and Control (C2) Opens a channel back to the attacker Continuous Yes: outbound traffic analysis, DNS, proxy
7 Actions on objectives Moves laterally, escalates, exfiltrates, encrypts Days or weeks Yes: anomalous behaviour, data volume

The two ideas worth retaining

First: phases 1 and 2 are not detectable, and that is fine. Concentrating effort on "stopping people researching us" is a waste of time. Real defence starts at phase 3.

Second, and this is the central idea of the lesson: the defender only needs to succeed ONCE. The opposite is often repeated ("the attacker only needs to get it right once, the defender every time"), and applied to the kill chain it is simply false: if the attacker completes six phases but fails at the seventh, they have achieved nothing. Every phase is an opportunity to detect and to cut. That is the formal justification for the defence in depth you saw in 01-01.

Limitations worth knowing about

The kill chain is a 2011 model conceived for malware-based intrusions, and it has blind spots:

  • It is linear, and real attacks iterate and backtrack.
  • It is perimeter-centric: it fits badly with attacks that start from valid credentials bought from a broker, where there is neither delivery nor exploitation.
  • It covers the insider poorly, since they start directly at phase 7.
  • It says little about phase 7, which is precisely where almost everything happens: lateral movement, escalation, exfiltration. That gap is what MITRE ATT&CK came along to fill.

Even with those limitations, it remains the best tool for explaining an attack and for structuring the defensive conversation.

  1. A narrated scenario: a complete attack against Rutalia

This is hypothesis H1 from the threat model, played out. All the details are fictitious.

flowchart TD
    F1["1. RECONNAISSANCE<br/>LinkedIn, website, DNS, scanning<br/>Days 1-9"]
    F2["2. WEAPONISATION<br/>Document with a macro<br/>Day 10"]
    F3["3. DELIVERY<br/>Spear phishing to 4 people<br/>Day 11, 07:42"]
    F4["4. EXPLOITATION<br/>Macro run on the logistics PC<br/>Day 11, 09:15"]
    F5["5. INSTALLATION<br/>Scheduled task + service<br/>Day 11, 09:16"]
    F6["6. COMMAND AND CONTROL<br/>Heartbeat every 60 s over HTTPS<br/>Days 11-24"]
    F7["7. ACTIONS<br/>Lateral, escalation, exfiltration, encryption<br/>Days 12-25"]
    F1 --> F2 --> F3 --> F4 --> F5 --> F6 --> F7
    D3["CUT: attachment filter<br/>block .xlsm/.docm"]
    D4["CUT: macros disabled<br/>no local admin"]
    D5["CUT: EDR detects persistence"]
    D6["CUT: proxy blocks new domain"]
    D7["CUT: MFA + segmentation<br/>+ immutable backups"]
    D3 -.-> F3
    D4 -.-> F4
    D5 -.-> F5
    D6 -.-> F6
    D7 -.-> F7
    style F7 fill:#ffdddd,stroke:#cc0000
    style D3 fill:#d4edda,stroke:#155724
    style D4 fill:#d4edda,stroke:#155724
    style D5 fill:#d4edda,stroke:#155724
    style D6 fill:#d4edda,stroke:#155724
    style D7 fill:#d4edda,stroke:#155724

Phase 1 — Reconnaissance (days 1 to 9)

The affiliate does not pick Rutalia for any special reason: they have bought from a broker a batch of potential accesses to Spanish companies of 100 to 500 employees. Rutalia is on the list. Now they gather information, almost all of it from open sources and without touching a single company system:

  • Corporate website: org chart, names of the management team, addresses of the three warehouses, the [email protected] address, from which they deduce the [email protected] format.
  • LinkedIn: 62 profiles mentioning Rutalia. They obtain names, job titles and even technologies ("I manage Active Directory and Microsoft 365 at Rutalia" on Diego's profile).
  • Public DNS and certificate records: they discover forgotten subdomains, including pruebas.rutalia.example.
  • Trade press releases: they know that Rutalia opened the Sevilla warehouse and that it works with a large retailer.
  • A light scan of the public IP range: they identify the MiRutalia portal, the VPN access point and an RDP port open on a secondary IP.

None of these actions generates an alert at Rutalia. Only the final scan leaves a trace, lost among thousands of daily scans.

Realistic countermeasure: cut down unnecessary public exposure and review what the website and professional profiles publish. You cannot eliminate reconnaissance, but you can make it more expensive.

Phase 2 — Weaponisation (day 10)

They prepare an Excel document called Tarifas_Combustible_2026_Rev3.xlsm with a macro that, once enabled, downloads and runs a loader in memory. They register the domain rutalia-proveedores.example, which hosts both the lure and the control server. None of this happens on Rutalia's infrastructure: it is undetectable from the inside.

Phase 3 — Delivery (day 11, 07:42)

They send the email to four carefully chosen people: two invoicing administrators, the traffic manager and someone from purchasing. They do not send it to all 180: the more recipients, the more likely it is that somebody reports it.

The subject line is FW: Fuel rate update - confirm before Friday, and the body imitates an email thread already under way. They take advantage of the fact that Rutalia has no DMARC configured in reject mode, so the email arrives without difficulty.

Cut point 1: a filter blocking macro-enabled attachments (.xlsm, .docm) at the email perimeter would have stopped the attack here. Cost: one configuration rule.

Phase 4 — Exploitation (day 11, 09:15)

Three of the four recipients ignore the email. The traffic manager, who genuinely was expecting fuel rates, opens it, sees the yellow "Enable content" banner and clicks. It is a perfectly reasonable decision from his point of view: the email fits his job.

The macro runs a PowerShell command that downloads the loader straight into memory, without writing any executable to disk. Rutalia's signature-based antivirus sees nothing to analyse: it is the fileless approach from lesson 01-02.

Cut points 2 and 3: disabling macros originating from the internet by policy (a standard Microsoft 365 option) would have prevented it. And removing local administrator rights would have severely limited what the code could do afterwards.

Phase 5 — Installation (day 11, 09:16)

In under a minute the loader establishes persistence by two redundant routes: a scheduled task that runs at logon, disguised with a plausible name (OfficeTelemetryAgent), and a key in the Windows registry. Two mechanisms, so that removing one is not enough.

Cut point 4: an EDR detects the creation of scheduled tasks and auto-run keys by child processes of Office. It is one of the most characteristic patterns there is.

Phase 6 — Command and Control (days 11 to 24)

The compromised machine starts contacting rutalia-proveedores.example every 60 seconds, over HTTPS on port 443, to blend in with normal web traffic. This regular heartbeat is called beaconing.

Here is the detail Laura needs to take to heart: for thirteen days nothing visible happens. The attacker watches, maps the network, identifies the file server, the ERP and the domain controllers, and works out where the backups are. This wait is deliberate: it sets up the blow so that it lands as hard as possible.

Cut point 5: no legitimate user generates a connection every 60 seconds on the dot to a domain registered a fortnight ago. A proxy with filtering by domain reputation and age, or a simple review of regular patterns in the DNS logs, detects it. This is the phase where Rutalia had thirteen days to notice and no way of doing so.

Phase 7 — Actions on objectives (days 12 to 25)

With the network mapped, the attacker carries out the final part:

  1. Credential harvesting (day 13): extracts credentials from the compromised machine's memory. Finds those of a service account with broad permissions over the file server.
  2. Lateral movement (days 14-18): hops to other machines using those credentials. The flat 10.10.0.0/16 network offers no resistance whatsoever: from an office PC you can reach the data centre.
  3. Privilege escalation (day 19): locates an active session belonging to Diego on a server and obtains domain administrator credentials. From here on they control everything.
  4. Exfiltration (days 20-23): copies 380 GB — customer database, contracts, rates, payroll, HR documentation — to a cloud storage service, during working hours, to blend in with normal traffic.
  5. Neutralising the defences (day 24): disables the antivirus by domain policy, deletes the volume shadow copies and wipes the backups, which sit on a server reachable from the network with the same administrator credentials.
  6. Encryption (day 25, Saturday 03:40): deploys the ransomware simultaneously on 140 machines and 12 servers through a group policy. At 06:00 on the Monday, when the Zaragoza warehouse opens, nothing works.

The ransom note demands €180,000 and warns that the 380 GB will be published in seven days if payment is not made.

The summary Laura presents to senior management

Day Phase Detectable? Did Rutalia detect it?
1-9 Reconnaissance Hardly No
10 Weaponisation No No
11 Delivery Yes No (no macro filter, no DMARC)
11 Exploitation Yes No (macros allowed, local admin)
11 Installation Yes No (signature antivirus, no EDR)
11-24 C2 for 13 days Yes No (nobody reviews outbound traffic)
12-23 Lateral movement and exfiltration Yes No (flat network, no volume alerts)
24 Backups wiped Yes No (backups reachable from the network)
25 Encryption Yes, but by then it is too late Yes — 26 days after it began

There were fourteen days with detectable signals and eight cut points squandered. No sophisticated technique was used: no 0-day, no advanced malware. The whole attack rested on enabled macros, excessive permissions, a flat network, an absence of MFA and reachable backups. This is, precisely, the conclusion Laura needs to take to Andrés Vidal.

  1. MITRE ATT&CK: tactics, techniques and procedures

The kill chain explains the shape of an attack well, but it is too coarse to work with: "actions on objectives" lumps together twelve days of very different activity. MITRE ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge), published by the MITRE Corporation since 2013, solves that problem.

ATT&CK is a knowledge base of real adversary behaviours, observed and documented. It is not a theoretical model: every entry comes from attacks that actually happened.

The TTP hierarchy

Level Answers Example
Tactic Why? The adversary's objective at that moment Persistence
Technique How? The general way of achieving it T1053 — Scheduled Task/Job
Sub-technique The more specific how T1053.005 — Scheduled Task (Windows)
Procedure The concrete implementation by a particular group "Group X creates a task called OfficeTelemetryAgent that runs PowerShell at logon"

Collectively these are called TTPs. The distinction has a first-order defensive consequence, known as the pyramid of pain: blocking a specific procedure (a hash, an IP address) barely inconveniences the attacker, who changes it within minutes. Detecting a technique (any child process of Word that creates a scheduled task) forces them to change the way they operate, which is far more expensive. Detect techniques, not artefacts.

How to read an identifier

T1566.001
│ │    │
│ │    └── Sub-technique 001: Spearphishing Attachment
│ └─────── Technique number: 1566 (Phishing)
└───────── T = Technique

Other prefixes: TA for tactics (TA0003 = Persistence), S for software, G for groups, M for mitigations.

The 14 tactics of the Enterprise matrix

Tactic The adversary's objective
Reconnaissance Gather preliminary information
Resource Development Prepare infrastructure and tooling
Initial Access Achieve the first foothold
Execution Run code
Persistence Maintain the access
Privilege Escalation Obtain higher permissions
Defense Evasion Avoid detection
Credential Access Steal credentials
Discovery Explore the environment
Lateral Movement Move to other systems
Collection Gather the target data
Command and Control Communicate with the outside
Exfiltration Extract the data
Impact Destroy, encrypt, disrupt

Notice that the last seven set out in detail what the kill chain packed into a single phase.

The attack on Rutalia mapped to ATT&CK

This is the framework's practical use: turning a narrative into a list of concrete techniques and, from there, into a list of concrete detections.

Attack phase ATT&CK tactic Technique What would detect it
LinkedIn and website research Reconnaissance T1589 Gather Victim Identity Info Nothing internal (out of scope)
Registration of the lure domain Resource Development T1583.001 Acquire Domains Monitoring of domains resembling your own
Email with a malicious attachment Initial Access T1566.001 Spearphishing Attachment Attachment filter; DMARC
Macro run by the user Execution T1204.002 Malicious File Alert: Word/Excel spawns a child process
PowerShell downloading into memory Execution T1059.001 PowerShell PowerShell script block logging
Scheduled task OfficeTelemetryAgent Persistence T1053.005 Scheduled Task Windows event 4698: task created
Run key in the registry Persistence T1547.001 Registry Run Keys Changes to startup keys
Extraction of credentials from memory Credential Access T1003.001 LSASS Memory Anomalous access to the LSASS process
Exploration of the internal network Discovery T1018 Remote System Discovery Mass queries to the directory
Hopping to other machines Lateral Movement T1021.002 SMB/Admin Shares Use of administrative shares between workstations
Heartbeat every 60 seconds over HTTPS Command and Control T1071.001 Web Protocols Regularity of the traffic; recently registered domain
Copying 380 GB to the cloud Exfiltration T1567.002 Exfil to Cloud Storage Anomalous outbound volume
Antivirus disabled Defense Evasion T1562.001 Disable Security Tools Alert on tampering with the agent itself
Shadow copies and backups wiped Impact T1490 Inhibit System Recovery Execution of vssadmin delete shadows
Mass encryption Impact T1486 Data Encrypted for Impact Mass writes with a change of extension

Look at the last column: every technique has a detection attached, and all of them are concrete. That is ATT&CK's real usefulness. It turns "we ought to detect things better" into a list of fifteen specific things that can be implemented and verified one by one.

The full matrix is publicly available and laid out as a table in which the columns are tactics and the cells are techniques. Many organisations use it as a coverage map: they colour in which techniques they detect and which they do not, and the result is an immediate visual diagnosis of their blind spots. The practical application is developed in Detection and Analysis.

  1. Kill Chain versus ATT&CK: when to use each

Aspect Cyber Kill Chain MITRE ATT&CK
Origin Lockheed Martin, 2011 MITRE, since 2013, continuously updated
Structure 7 linear phases 14 tactics with hundreds of techniques, non-linear
Level of detail High level, conceptual Very detailed and actionable
Basis A theoretical model Observations of real attacks
Focus Centred on the perimeter and the initial intrusion Covers the whole cycle, with emphasis on the post-intrusion stage
Insiders Fits badly Fits well: you start at whichever tactic applies
Purchased credentials Does not allow for the case T1078 Valid Accounts covers it explicitly
Main use Explaining and communicating; structuring the conversation Operating: detecting, assessing coverage, comparing tools
Ideal audience Senior management, training, the overall view Analysts, detection engineers, technical teams
Weak point Linear, superficial on phase 7 Overwhelming to start with; does not prioritise on its own

They do not compete: they complement each other. The use Laura makes of them is exactly this:

  • Kill Chain for the management committee. Seven phases, one diagram, the idea that "breaking one link stops everything". Andrés Vidal grasps it in five minutes and approves the budget.
  • ATT&CK for the work with Diego. Fifteen concrete techniques, fifteen detections to implement, a coverage map reviewed every quarter.

There is a third model, the Diamond Model, which analyses each event as a relationship between adversary, capability, infrastructure and victim; it is common in threat intelligence and attribution, and falls outside this course's introductory scope.

  1. Breaking the chain: the justification for defence in depth

This is the conclusion of the lesson and of the module.

In 01-01, defence in depth was presented as a good idea: several independent layers. Now you have the demonstration of why it works, and it is not an aesthetic argument.

Go back to the attack in section 8. The attacker needed to complete seven phases and twenty-five days. Any one of these eight controls, on its own, would have stopped or crippled it:

# Control Phase it breaks Approximate cost
1 Block macro-enabled attachments in email 3 — Delivery Zero: one rule
2 DMARC in reject mode 3 — Delivery Zero: DNS configuration
3 Disable internet-sourced macros by policy 4 — Exploitation Zero: a group policy
4 Remove local administrator rights 4 and 5 Low: change management
5 EDR that detects persistence being created 5 — Installation Medium: licences
6 Outbound filtering by domain reputation 6 — C2 Low-medium
7 MFA and network segmentation 7 — Lateral movement Medium
8 Immutable and offline backups 7 — Impact Medium, and decisive

Two observations about this table, and they are the ones Laura highlights:

First: four of the eight controls cost no money. They are configurations and organisational decisions. The argument "we have no budget for security" does not justify having no DMARC or leaving twelve administration staff with local administrator rights.

Second: the controls reinforce one another non-linearly. If you only have control 1, an attacker using a link instead of an attachment gets round it. If you have 1, 3 and 6, they have to solve three independent problems of different kinds. The difficulty for the attacker does not add up: it multiplies.

And a third, which is the most important of the three:

Control 8 is qualitatively different from the others. The first seven try to prevent the attack. The eighth assumes the attack will succeed and guarantees the company survives. It is the difference between prevention and resilience, and it is the idea running through the whole of module 5. For an SME like Rutalia, with limited resources, resilience usually delivers more security per euro invested than prevention: you cannot guarantee that nobody gets in, but you can guarantee that if somebody does, you can recover.

The sentence worth memorising: the attacker needs to complete the whole chain; you only need to break one link.

The specific countermeasures for each link are the content of modules 3 (network) and 4 (systems and applications); the ability to detect these phases in real time is built in Detection and Analysis; and surviving the worst case, in Backups, Business Continuity and Ransomware.

Common Mistakes and Tips

Frequent mistakes:

  • Asking "who would want to attack us?". The right question is "who does it pay?". The RaaS model turned attacking SMEs into a volume business: they do not choose you, they find you.
  • Becoming obsessed with APTs. They are fascinating and almost irrelevant to an SME. Devoting resources to defending against a state actor while you have no MFA is a serious failure of priorities.
  • Thinking of the attack as a moment. It leads to preparing only prevention and never building detection. The attack on Rutalia lasted 25 days; there were 14 days of signals.
  • Believing that sophisticated technology is needed to attack. The narrated scenario used no 0-day. It used macros, excessive permissions and a flat network.
  • Using ATT&CK as a shopping list. Trying to cover hundreds of techniques at once is paralysing. Start with the ones that appear in your attack hypotheses.
  • Forgetting that the insider has no kill chain. They start directly at phase 7. Perimeter controls do not affect them at all.
  • Mistaking a researcher for an attacker. Without a published contact channel, a well-intentioned finding gets lost or ends up published with no warning.

Practical tips:

  • Write your threat model on one page. Five concrete hypotheses are worth more than a forty-page document. Review it whenever something relevant about the business changes.
  • For every new control, ask yourself which phase it breaks. If you cannot answer, you probably do not need it yet.
  • Prioritise controls that break early phases (delivery, exploitation): they are cheaper and prevent everything that follows. But do not neglect the late ones, because they are what save you when the first ones fail.
  • Look for the zero-cost controls first. DMARC, disabled macros, removal of local administrator rights and a review of exposed services need no budget and break several links.
  • Use the ATT&CK coverage map as an instrument for dialogue with senior management: a map with more red than green is a very powerful visual argument.
  • Publish a security contact address and a security.txt. It is free and one day somebody will use it.
  • Tell the whole story, with dates. An incident narrated day by day is infinitely more persuasive than a list of abstract risks.

Exercises

Exercise 1: assign an actor and prioritise

For each situation, identify the most likely actor, their motivation and whether Rutalia should treat it as a priority, secondary or something to disregard. Justify the priority:

  1. Hundreds of requests to /wp-admin and /.env are logged every day on the MiRutalia server, which does not use WordPress.
  2. A sales rep who has just joined a competitor downloaded 4,200 documents in his final three days.
  3. An anonymous email arrives reporting that the MiRutalia search box returns a database error when a quote character is entered, and offering details.
  4. A large Rutalia customer, in the food retail sector, is named in the press as the target of an industrial espionage campaign.
  5. Someone posts on an underground forum a VPN access to a "Spanish logistics company, €15M turnover" for €800.
  6. A collective announces on social media a campaign against companies that carry goods for a particular industry, and Rutalia is a supplier to one of them.

Exercise 2: interrupting the chain

The following attack takes place against Rutalia:

An attacker buys, on an underground marketplace, the credentials [email protected] and the matching password, taken from an infostealer that infected Diego's personal computer. They log into the corporate VPN on a Sunday night. From there they reach the file server, locate the backup folder, delete it, and deploy ransomware on 12 servers.

For each applicable kill chain phase:

  1. State what is happening.
  2. Propose one control that breaks it.
  3. Point out which phases of the classic kill chain do not appear in this attack and explain why.

Exercise 3: building a detection map with ATT&CK

Take hypothesis H4 from Rutalia's threat model (data theft through MiRutalia by means of SQL injection or IDOR). Produce a table with at least five steps of the attack, and for each one: the ATT&CK tactic, the approximate technique, what would be visible in the logs and what control would prevent or detect it.


Solutions

Solution to Exercise 1

# Most likely actor Motivation Priority Justification
1 Script kiddie / automated bot Opportunistic Secondary It is constant background noise. It calls for no specific response, but it does demand the basic hygiene that makes that noise harmless: do not publish .env, patch, do not leave panels exposed. Watch out in case a targeted pattern appears among the noise.
2 Malicious insider Profit / advantage for his new employer PRIORITY A real, completed incident. Immediate action: revoke all access, preserve evidence (logs, machine), consider legal action for trade secret infringement. It shows a failure of least privilege and of the offboarding procedure.
3 Ethical hacker or grey hat Reputational or professional PRIORITY, but not as a threat It is a free warning about a real vulnerability, and very probably a serious one. Respond quickly and with thanks, verify the flaw and fix it. Treating them with hostility guarantees that next time it gets published with no warning. It justifies creating [email protected].
4 APT or competitor, indirectly Economic intelligence Secondary Rutalia is not the target, but it is a route to it. Review the EDI integrations with that customer, segment them and expect the customer to demand contractual assurances.
5 Initial access broker Financial PRIORITY The profile matches Rutalia. Even if it is not Rutalia, it shows that companies of its size are traded at affordable prices. Action: verify VPN access, enforce MFA, review active sessions and search for corporate credentials in known leaks.
6 Hacktivists Ideological Secondary Likely impact limited (public website, social media, perhaps DDoS). Proportionate measures: protect the corporate website, secure the social media accounts with MFA and have a communications response ready.

General prioritisation criterion: priority = there is evidence of real activity against Rutalia, or the impact would be serious and the likelihood reasonable. Secondary = plausible but with a bounded impact, or covered by basic hygiene.

Solution to Exercise 2

Phase-by-phase analysis:

Phase Does it appear? What happens Control that breaks it
1. Reconnaissance Partly It happened on the underground marketplace: the seller identified which company the credentials belonged to Detection of corporate credentials in leaks (monitoring services); a policy forbidding the use of corporate email on personal services
2. Weaponisation No No artefact is needed: they have valid credentials —
3. Delivery No There is nothing to deliver —
4. Exploitation No They exploit no technical vulnerability: they log in —
5. Installation No (at first) They need no persistence: the VPN gives it to them —
6. C2 No (at first) They work interactively over the VPN —
7. Actions Yes, it is the whole attack Access, discovery, backup deletion, encryption See the breakdown below

Proposed controls, in order of effectiveness:

  1. MFA on the VPN. This is the control. The stolen credential, on its own, stops working. It would have stopped the attack in the first minute. It corresponds to T1078 Valid Accounts.
  2. Conditional access: alert on or block connections outside working hours, from unusual locations or from unmanaged devices. An administrator connecting at 23:00 on a Sunday from a new IP is, at the very least, an alert.
  3. Segmentation: the VPN should not give flat access to the whole 10.10.0.0/16 network, but only to the resources needed for the user's role.
  4. Immutable and offline backups. Deleting the backups was possible because they were reachable with network credentials. With immutable storage, the attacker encrypts but Rutalia recovers, and the attack goes from existential to annoying.
  5. Separate administrative accounts: Diego should have an ordinary account for his day-to-day work and a separate administrative account, never used for browsing or reading email, and certainly not on a personal machine.
  6. A ban on using personal machines for administrative access, with MDM checking the device's state.

Why four phases are missing, which is the point of the exercise: the attack starts directly at phase 7 because the attacker bought the access instead of manufacturing it. This illustrates the kill chain's main limitation: it was designed for malware-based intrusions and does not fit attacks based on valid credentials, which today are the majority. In ATT&CK, by contrast, this attack is described precisely: T1078 (Valid Accounts) → T1021 (Remote Services) → T1490 (Inhibit System Recovery) → T1486 (Data Encrypted for Impact).

The underlying defensive consequence: perimeter controls do not defend you against an attacker who walks in with legitimate credentials. That is why identity, and not the network, is the modern perimeter.

Solution to Exercise 3

Hypothesis H4: theft of customer data through the MiRutalia portal.

# Attack step ATT&CK tactic Technique What would be visible in the logs Control that prevents or detects it
1 Discovery of the portal and its parameters; manual browsing of the search box and of /envio/NNNNN Reconnaissance T1595.002 Vulnerability Scanning Requests from one IP with a tool user agent; traffic spikes to specific routes WAF with scan detection; rate limiting by IP
2 Injection test with a quote character; the server returns 500 Initial Access T1190 Exploit Public-Facing Application Bursts of 500 errors with unusual characters in the URL Parameterised queries in the code; error handling that does not expose traces
3 Extraction of the users table with UNION SELECT Credential Access / Collection T1005 Data from Local System Responses of anomalous size (88 KB against 4 KB); unusual SQL queries in the PostgreSQL log Database user with least privilege (read-only on the necessary tables); query logging
4 Enumeration of /envio/10432, 10433, 10434… exploiting IDOR Collection T1213 Data from Information Repositories A single user or IP querying consecutive identifiers with 200 responses Per-resource authorisation checks; alert on the number of distinct resources queried per session
5 Mass download of the result Exfiltration T1041 Exfiltration Over C2 Channel Cumulative response volume far above the average for a user Rate and volume limits per session; alert on anomalous transfer
6 Use of the harvested credentials to log in as a legitimate user Initial Access / Persistence T1078 Valid Accounts A successful login from an IP never seen before, with no preceding failure MFA on the portal; impossible travel detection
7 Publication or sale of the data Impact T1657 Financial Theft (indirect impact) Nothing internal: it shows up outside Leak monitoring; a plan for notifying the AEPD and the customers

Conclusions from the exercise:

  • The most effective control is the one at step 2: parameterised queries. It breaks the chain before it exists. It is one line of code in Marta's development work.
  • The cheapest control is the one at step 3: making sure the PostgreSQL user MiRutalia uses is not a superuser. It turns a total compromise into a limited read.
  • Step 4 (IDOR) is not prevented by a WAF: it requires authorisation logic in the application. It is a reminder that no perimeter tool is a substitute for correct code.
  • Step 7 is no longer technical: it is legal and reputational. Having the notification procedure ready before you need it is part of the response, and it is covered in module 5.

Conclusion

With this lesson you close the introductory module. You have met the threat actors — script kiddies, hacktivists, organised cybercrime, insiders, state actors, competitors and ethical hackers — with their motivation, their capability and their persistence, and you have understood the economics that sustains them: a disaggregated market of infostealers, initial access brokers and ransomware franchises that has demolished the barrier to entry into crime and shifted the target towards SMEs. You have learnt that the useful question is not "who would want to attack us?" but "who does it pay?", and with it you have built Rutalia Logística's specific threat model: what it has that is valuable, how someone would get in, and five prioritised attack hypotheses that will serve as a reference for the rest of the course. You have taken the Cyber Kill Chain apart into its seven phases and followed, day by day, a complete twenty-five-day attack on Rutalia in which no sophisticated technique was used and in which there were fourteen days of detectable signals and eight squandered cut points. You have learnt to read MITRE ATT&CK — tactics, techniques, sub-techniques and procedures, and how a TXXXX identifier breaks down — and to use the matrix to turn a narrative into a concrete list of detections, understanding why it is better to detect techniques than artefacts. And you have placed both frameworks in their proper role: the kill chain to explain and convince senior management, ATT&CK to operate with the technical team. All of it leads to the idea that justifies the architecture of the modules that follow: the attacker needs to complete the whole chain, whereas you only need to break one link, and four of the eight links that would have saved Rutalia do not cost a single euro. With the vocabulary of 01-01, the threat catalogue of 01-02, the historical perspective of 01-03 and the model of adversary and attack from this lesson, you now have everything you need to start building defences with judgement. In Module 2 we will take the first concrete step, returning to the triad that was only outlined here: in Confidentiality, Integrity and Availability (CIA) you will discover that those three words are not a slogan, but the three measurable objectives that let you decide, asset by asset, what needs protecting and in what way.

© Copyright 2026. All rights reserved