On 28 July 2028, Laura Méndez closed incident INC-2028-014. The systems were working, the customers had been informed, the AEPD (the Spanish Data Protection Agency) had received the notification on time, and fourteen days of heightened monitoring had found nothing. In the vast majority of organisations, the story would end here: the folder is filed away, everyone breathes out, and they all go back to the work they are behind on.

And then, somewhere between nine and eighteen months later, it happens again. It may not be identical, but it will come through the same crack: the macro that was still allowed, the alert that still woke nobody up, the administrative account still being used where it should not be.

The post-incident phase is the one almost nobody does, the only one with no urgency pushing it, and the only one that turns an incident into improvement. An incident is a brutally honest and extremely expensive security audit that somebody has just given you for free: it tells you exactly which controls failed, in what order and with what consequences, without the assumptions of a consultancy report. Throwing that information in the bin is by far the most expensive decision in the whole cycle.

This lesson is about gathering that information without destroying it along the way. You will see why hunting for culprits is the most effective way of guaranteeing that nobody ever tells you anything again, how you get from «the user clicked» to the real causes, how you write a report that senior management will read and a customer can receive, how you calculate the metrics that justify next year's budget, and how you turn conclusions into tasks that actually happen.

  1. Why this phase does not get done, and what is lost

The reasons the post-incident phase gets skipped are always the same, and it is worth naming them so you can counter them:

Excuse What it really means Answer
«We already know what happened» We know the technical sequence, not the causes The sequence is the what; the analysis is the why
«There is a backlog of work» Urgency always beats importance Two hours of meeting against a €30,000 incident
«It is going to be a witch hunt» A justified fear if there is no blameless culture The rules are set in writing before the meeting
«Senior management does not want to hear about it any more» Institutional embarrassment Present it as an investment plan, not as a post-mortem
«We have already fixed what failed» The immediate cause has been fixed, not the systemic one Without the systemic causes, the failure reappears by another route

What is lost by skipping it is specific and measurable:

  • The systemic causes, which are the only ones that prevent repetition.
  • The real metrics, without which you cannot demonstrate improvement or justify budget.
  • Collective learning: if only the three people in the incident know what happened, the organisation has learned nothing.
  • The most powerful investment argument you will ever have: a recent incident, with its invoice on the table, opens budgets that no consultancy report opens.

The figure to take to the meeting with senior management. The cost of the post-incident phase at Rutalia was around 18 hours of work spread over three weeks. The cost of the incident was more than €49,000. A phase that costs 1.5 % of the incident and prevents the next one is not an expense: it is the best investment in the cycle.


  1. The lessons learned meeting: when, who and how

When

Moment Suitable? Why
During the incident No Nobody has perspective or time; the information is incomplete
The day after operational closure Too soon Fatigue, emotions and data not yet consolidated
Between 1 and 3 weeks after closure Yes The facts are fresh, the data is complete and the tension has dropped
More than 2 months later Too late Details are forgotten, momentum is lost and the accounts have been rewritten

For S3/S4 incidents, a grouped monthly written review is enough. The formal meeting is reserved for S1 and S2. Rutalia held the one for INC-2028-014 on 9 August 2028, twelve days after closure.

Who attends

Participant Role in the meeting Essential
Incident coordinator (Laura) Presents the timeline. Does not facilitate Yes
Technical lead (Diego) Provides the technical detail Yes
Senior management (Andrés Vidal) Brings the business perspective and approves the actions Yes
External provider (CiberTest) Brings comparison with other incidents Recommended
People directly involved (mruiz-jt) Provide the real context of what happened Only if they want to and with the rules clear
Managers of the affected areas Validate the feasibility of the actions Yes
Neutral facilitator Runs it, controls the tone, asks the uncomfortable questions Yes
Scribe Takes notes on conclusions and actions Yes

The delicate point is the presence of whoever opened the attachment. Rutalia's rule: they are invited, not summoned, the purpose and the rules are explained to them beforehand, and they are told explicitly that they are not there to explain themselves. If they come, their contribution is usually the most valuable in the meeting: only they can say why that email looked credible at eight o'clock on a Tuesday morning.

How it is run

flowchart TD
    A["1. RULES (5 min)<br/>Blameless - confidential -<br/>facts before opinions"] --> B["2. TIMELINE (20 min)<br/>Laura reads out the facts.<br/>Only data is corrected"]
    B --> C["3. WHAT WORKED (15 min)<br/>Always first.<br/>The controls that did stop something"]
    C --> D["4. WHAT DID NOT WORK (25 min)<br/>Controls, processes, decisions.<br/>No names"]
    D --> E["5. ROOT CAUSE (30 min)<br/>Five whys - Ishikawa"]
    E --> F["6. ACTIONS (20 min)<br/>Each lesson -> a task<br/>with an owner and a date"]
    F --> G["7. CLOSE (5 min)<br/>Who writes the report,<br/>who tracks the plan"]

    style A fill:#d1ecf1,stroke:#0c5460
    style C fill:#d4edda,stroke:#155724
    style E fill:#fff3cd,stroke:#856404
    style F fill:#f8d7da,stroke:#721c24

The order matters a great deal. Item 3, «what worked», comes before «what did not work», and it is not a polite gesture: it is functional. It sets the tone, stops the meeting turning into a list of failures, and produces information that would otherwise be lost. At Rutalia, item 3 produced five things that genuinely worked:

  1. The canary. It was the only effective detection and it cost nothing. On its own it justified deploying five more.
  2. The 90-day retention. It made it possible to find 27 June. With the previous 30 days, the incident would have had no known origin.
  3. The coordinated cut-off. Six minutes, with no room for the attacker to react.
  4. The out-of-band channel. Fourteen hours were coordinated without touching M365, which was in doubt.
  5. The intact backups. The attacker never reached srv-bkp01, and that turned the ransom question into a five-minute conversation.

Meeting rules, read out at the start:

  • We are not looking for culprits. We are looking for causes.
  • What is said here is not used in performance reviews or disciplinary proceedings.
  • We talk about decisions and systems, not about people.
  • Decisions are judged with the information available at the time, not with today's.
  • Everybody may say «I don't know» and «I got it wrong» without consequences.
  • No conclusion leaves the meeting without becoming an action with an owner and a date.

  1. Blameless culture: the principle that holds everything else up

A blameless culture is not benevolence or relativism: it is a practical decision based on an observation repeated across aviation, medicine and technology.

When looking for the cause can end in a sanction, people stop telling you what they know. And what people know is the only source of information about what really happened.

The mechanism is immediate and devastating. If mruiz-jt senses that admitting she enabled the macro might cost her a disciplinary file, she will say she does not remember opening anything. If Diego suspects that admitting he connected with adm-dsalas to a suspect machine will come back on him, he will say he connected «with the normal account». And without those two facts — the two most important in the incident — root cause analysis is impossible.

There is also a second, more serious long-term consequence: next time, nobody will speak up. Human detection is one of the most valuable sources (05-02) and it depends entirely on reporting carrying no personal cost. An organisation that punishes error buys a late-detected incident in exchange for a moment's satisfaction.

How to frame a useful question

This table is the most practical thing in the whole lesson. The left-hand column closes the conversation; the right-hand one produces information.

Accusatory question (useless) Useful question (produces information)
«Why did you open that file?» «What made that email look legitimate? What would you have needed in order to be suspicious?»
«Why did you enable the macro?» «What did the system show you at that moment and what options did it give you?»
«Why did you connect with the administrator account?» «How do you normally diagnose a slow machine? Which account lets you do it? Is there a practical alternative?»
«Why did nobody look at Saturday's alerts?» «Which alerts today are able to notify a person outside working hours, and who decided that list?»
«Why did it take you eight hours?» «What would have had to happen for us to find out at 22:15 instead of 07:04?»
«Whose fault was it?» «What would have to change so that, if the same thing happened again, the outcome would be different?»

The pattern is recognisable: the questions on the left ask about a person's motivation; those on the right ask about the system that made that action possible or likely. The answer on the left is always a justification; the answer on the right is always an improvement.

Blameless does not mean without accountability

It is the objection senior management always raises, and it has an answer:

Blameless does mean Blameless does not mean
Nobody is sanctioned for an honest mistake while doing their job That there are no consequences for a deliberate breach
We analyse the system that allowed the mistake That behaviour is not corrected
We assume people acted reasonably with what they knew That repeated, warned-about breaches are ignored
Information flows That nobody owns the corrective actions

The line is clear: honest mistake versus deliberate breach. Opening a convincing attachment is the first. Disabling the antivirus to install pirated software after two written warnings is the second, and it is handled through a different route, in a different forum and with HR.

In INC-2028-014, the two relevant human facts are honest mistakes:

  • mruiz-jt opened an attachment that mimicked an email thread from a supplier, with no visible warning from the system, no specific training about that pattern and in an environment where macros were allowed. The system failed before the person did.
  • Diego connected with adm-dsalas to a slow machine because that is how diagnosis has always been done at Rutalia, with no technical barrier preventing it and no documented alternative procedure. The system failed before the person did.

  1. Root cause analysis: the five whys applied

The five whys technique consists of asking «why» in a chain until you reach a cause you can act on durably. There are not exactly five: there are as many as it takes, and you stop when the next answer is no longer within your control or ceases to be actionable.

Chain 1 — How the attacker got in

# Question Answer Actionable?
— Fact An attacker executed code on 10.10.4.15 on 27/06 at 06:16 —
1 Why? Because a macro in an .xlsm file was executed Yes, but superficial
2 Why was the macro executed? Because the user enabled it when opening the file The trap: this is where bad analysis stops
3 Why did the system let her enable it? Because there was no policy blocking macros in files of external origin Yes: technical cause
4 Why was there no such policy? Because it was never identified as a necessary control: there was no inventory of email controls and no periodic review of Office configuration Yes: process cause
5 Why was there no such inventory? Because security was managed as one-off projects and not as a programme with periodic review and an owner Yes: systemic cause
6 Why was it managed that way? Because until 2028 there was no security master plan and no budget assigned to maintaining controls Yes, and it is the underlying cause → 08-05

Notice the jump from why 2 to why 3. Mediocre analysis stops at 2 («the user enabled it»), concludes «we need to train people» and closes the folder. Useful analysis carries on and discovers that the technical control that would have prevented it cost one group policy, and that the reason it did not exist was not technical but organisational.

Chain 2 — Why it took us twelve days to detect it

# Question Answer
— Fact The implant was active for 11 days, 22 h and 47 min before being detected
1 Why was it not detected earlier? Because the only beaconing rule (SID 1000001) looks for intervals of ~60 s and the implant beat every 4 hours
2 Why does the rule only cover 60 s? Because it was written from a specific example in the documentation, without modelling the space of possible behaviours
3 Why was it not modelled? Because there is no process for reviewing detection coverage against MITRE ATT&CK
4 Why is there none? Because detection was built as a tool rollout, not as a capability with maintenance
5 Why? Because no time is allocated to detection engineering: zero planned hours a week

Chain 3 — Why we did not find out for eight hours and fifty-four minutes

# Question Answer
— Fact The first correct alert fired on 08/07 at 22:10; the first person found out on 09/07 at 07:04
1 Why? Because those alerts only go to a mailbox, and only the canaries send SMS
2 Why only the canaries? Because it was decided to limit the notification channel so as not to create alert fatigue
3 Why did that decision leave out SID 1000003 and 1000005? Because the list was never reviewed after those rules were created: the decision was taken when only the canaries existed
4 Why was it not reviewed? Because there is no periodic review of which alerts have the right to wake somebody up
5 Why? The same systemic cause as chain 2: detection has no planned maintenance

Chain 4 — Why the attacker got the domain

# Question Answer
— Fact On 08/07 at 20:41 adm-dsalas was used on the compromised machine; by 03:12 the attacker controlled dc01
1 Why was a privileged domain account used on a user machine? Because that is the usual procedure for diagnosing a slow machine
2 Why is it the usual procedure? Because there is no documented practical alternative and no remote assistance tool that works without domain privileges
3 Why is there no technical barrier preventing it? Because the full administrative tiering model was not implemented: the account separation was done, but without restricting where each tier can sign in
4 Why was it left half done? Because the project in 04-01 closed with the account separation and the rest was left on a list of improvements with no deadline
5 Why was it left with no deadline? Because the improvements identified were not turned into tasks with an owner and a date

Chain 4 points to a systemic cause that appears three times in this analysis and that is, probably, the most important conclusion of the incident: the improvements identified were not turned into tasks with an owner, a deadline and a verification. It is not a technical failure. It is the reason section 12 of this lesson exists.


  1. The Ishikawa diagram and the three types of cause

The Ishikawa (or «fishbone») diagram organises causes into categories to avoid the bias of looking for them all in the same place — usually, in the technology.

flowchart LR
    P["INCIDENT<br/>INC-2028-014<br/>12 days of intrusion,<br/>11.4 GB exfiltrated"]

    subgraph PER["PEOPLE"]
        P1["No training on<br/>fake email threads"]
        P2["Routine diagnosis with<br/>a privileged account"]
        P3["No weekend on-call"]
    end
    subgraph PRO["PROCESSES"]
        R1["No periodic review of<br/>Office configuration"]
        R2["No maintenance of<br/>detection rules"]
        R3["Improvements with no owner or date"]
        R4["Leavers processed without<br/>removing SSH keys"]
    end
    subgraph TEC["TECHNOLOGY"]
        T1["External macros allowed"]
        T2["No DMARC in reject mode"]
        T3["SID 1000001 only covers 60 s"]
        T4["EDR in alert mode,<br/>not blocking"]
    end
    subgraph GOB["GOVERNANCE"]
        G1["No security programme<br/>with periodic review"]
        G2["No hours allocated to<br/>detection engineering"]
        G3["Notification channel defined<br/>and never reviewed"]
    end
    subgraph ENT["ENVIRONMENT"]
        E1["Attacker with access<br/>to a look-alike domain"]
        E2["Weekend:<br/>less monitoring"]
        E3["Operational pressure:<br/>EUR 1,500/h of downtime"]
    end

    PER --> P
    PRO --> P
    TEC --> P
    GOB --> P
    ENT --> P

    style P fill:#f8d7da,stroke:#721c24
    style GOB fill:#fff3cd,stroke:#856404

The three types of cause

Type Definition Example in INC-2028-014 What action it generates
Immediate cause The fact that directly triggered the outcome A macro was enabled in an .xlsm received by email Tactical action: block external macros
Contributing causes Conditions that allowed or worsened the outcome No DMARC; EDR in alert mode; privileged account on a user machine; alerts with no notification channel; orphaned SSH keys Specific actions, one for each
Systemic cause The organisational pattern that repeatedly produces contributing causes Improvements identified are not turned into tasks with an owner, a deadline and a verification; security is managed as projects and not as a programme Structural action: master plan, periodic review, allocated hours

The classic trap: fixing only the immediate cause. Rutalia blocks macros, and the next attack comes in through a link to a credential harvesting page, or through a .lnk file, or through a browser vulnerability. The immediate cause changes every time; the systemic one is what produces all the others.

And the opposite trap, just as real: stopping at the systemic cause alone. «We need a mature security programme» is true, it is not actionable next Tuesday and it blocks no macros. A good action plan attacks all three levels at once, with different timescales.


  1. Why «the user clicked» is never a root cause

It deserves its own section because it is the most frequent and most useless conclusion in incident reports.

Five reasons why it is not a root cause:

  1. It is not reliably actionable. «People should not click» is not a control: it is a wish. Training reduces the rate, it does not eliminate it, and one person out of 180 is enough.
  2. It is statistically inevitable. A well-executed campaign against four carefully chosen people gets clicks. Designing a defence that depends on nobody ever failing is designing a defence that will fail.
  3. It confuses the trigger with the cause. The click triggered the execution; the cause is that the execution was possible and went unnoticed for twelve days.
  4. It ignores every control that should have acted afterwards. Between the click and the exfiltration there were eight missed cut-off points. Attributing everything to the first one excuses the other seven.
  5. It destroys the source of information. Pointing at the user guarantees that the next one will not speak up, and with that it turns a one-hour detection into a twelve-day one.

The click in its place: the chain of eight controls

# Control that should have acted Did it exist? Did it work? Cost of fixing it
1 DMARC in reject mode on our own domain and sender verification Partial No One DNS configuration
2 Blocking of attachments with macros at the gateway No — One rule
3 Blocking of macros of external origin by policy No — One GPO
4 Blocking (not just alerting) of Office child processes in the EDR Partial (alert) No One EDR policy change
5 Detection of low-frequency beaconing No — One Suricata rule + 3 h
6 An alert able to notify a person outside working hours Canaries only Partial One review of the notification list
7 Restriction on privileged accounts signing in to user machines No — AD configuration + procedure
8 Alert on mass file reads per user Yes (SID 1000005) It fired, nobody looked See control 6

Eight controls. Seven of them did not exist or did not act. Six are fixed with configuration, not with budget. That table, and not the mention of the click, is the conclusion of the incident. And it is also the slide that gets the budget.

How it is correctly phrased in the report. Not: «the incident originated because an employee opened a malicious attachment». But: «the incident originated from the execution of a macro in an attachment received by email. The organisation did not have the technical controls that prevent such execution (blocking of macros of external origin, attachment filtering and blocking of Office child processes), nor detection capable of identifying the subsequent communication with the control server.»


  1. The incident report: structure and audiences

An incident report is several documents in one, aimed at readers with incompatible needs. The answer is not to write several reports with data that contradicts itself: it is a single report with clearly targeted sections.

Section Main audience Length Language
Executive summary Senior management, insurer 1 page Business: impact, cost, residual risk, decisions
Timeline Technical staff, legal, forensic experts 2-4 pages Factual, with UTC times and sources
Scope and impact Senior management, legal, customers 1-2 pages Precise, with what is confirmed and what is undetermined
Root cause Everyone 1-2 pages Systems and processes, never people
Actions taken Technical staff, audit, insurer 1-2 pages What was done, when, by whom
Outstanding actions Senior management (approves) 1-2 pages A table with owner, deadline, cost and verification
Lessons learned Everyone 1 page What worked and what did not
Annexes Forensic experts, legal Variable Evidence, hashes, queries, indicators

Adapting the language without changing the facts

Fact For senior management For a customer For a technical reader
60 s beaconing towards 192.0.2.66 for 12 days «A malicious program kept up communication with the attacker for twelve days without being detected» (Not detailed) «SID 1000001, 537 alerts, intervals of 60 s ± 1 s, T1071.001»
Exfiltration of 11.42 GB «11.4 GB of information left the company, out of a total of 62 GB the attacker had staged» «The following information of yours may have been affected: [specific list]» «Outbound flows towards 198.51.100.203, confirmed in three independent sources»
Compromise of dc01 «The attacker came to control the central identity system, which meant it had to be rebuilt» (Not detailed, unless required) «adm-dsalas from 10.10.4.15, WMI persistence, altered GPO, krbtgt rotated twice»
20 h of data lost on fs01 «It was restored from a backup predating the attack, with the loss of a day's work. This was a deliberate decision to avoid reinfection» «We may ask you again for documentation sent on Saturday the 8th» «Backup from 08/07 04:00, before the attacker's first access at 23:58»

Three rules for a report aimed at a customer or a third party:

  1. Confirmed facts only. If something is being determined, you say it is being determined.
  2. No identifiable person, internal or external.
  3. Reviewed by the legal advisers before it goes out. A report is a document that may end up in proceedings; a badly calibrated sentence can amount to an admission of liability.

  1. The report template, filled in with INC-2028-014

# SECURITY INCIDENT REPORT
## INC-2028-014 - Intrusion with data exfiltration

**Classification:** CONFIDENTIAL - Internal use - TLP:AMBER
**Version:** 1.0 - **Date:** 2028-08-14
**Author:** Laura Mendez, Head of IT and Security
**Reviewed by:** CiberTest S.L. - Legal advisers
**Approved by:** Andres Vidal, Managing Director

---

## 1. EXECUTIVE SUMMARY

Between 27 June and 9 July 2028, an attacker maintained unauthorised access to
the systems of Rutalia Logistica. Access was obtained through an email with an
attachment containing malicious code, sent to four people in the company. Over
twelve days the attacker extended that access until they controlled the central
identity system, and extracted 11.4 GB of information, mainly commercial and
human resources documentation.

The incident was detected on Sunday 9 July at 07:04 through a decoy file
installed in 2026 for precisely this purpose. The response was completed the
same day: the attacker's access was cut at 11:01 and services were progressively
restored up to 07:30 on the Monday.

**No systems were encrypted and the backups were not affected.**
The attacker demanded EUR 180,000 not to publish the information. Following the
judgement of senior management, the legal advisers and the insurer, **no payment
was made**. Part of the information was published on 26 July; the affected
customers had been informed on 12 July.

**Impact:**
- MiRutalia portal unavailable for 9 h 50 min (Sunday).
- Loss of 20 hours of documents on the shared folders, through a deliberate
  decision to restore from a backup predating the attack.
- 11.4 GB of commercial and HR information in the hands of third parties.
- Notification to the AEPD on 11/07, in time. 400 customers informed on 12/07.
- Estimated direct cost: EUR 30,100. Estimated total cost: EUR 49,500, plus
  unquantified reputational impact.

**Main conclusion:** the incident was made possible by the absence of seven
controls, six of which are fixed through configuration and with no licence cost.
The control that did work - a decoy file costing nothing - was the one that
allowed the attack to be detected before encryption took place.

**Decision requested from senior management:** approval of the 12-measure action
plan (section 6), with a total cost of EUR 12,400 and 96 internal hours.

---

## 2. TIMELINE
*(Full timeline in annex A. Extract of the milestones.)*

| Date/time UTC | Fact | Source |
|---|---|---|
| 27/06 05:42 | The `.xlsm` attachment is received by 4 recipients | Mail gateway |
| 27/06 06:16 | Execution of the macro on `10.10.4.15` | EDR + event 4688 |
| 27/06 06:17 | First contact with the control server (every 4 h) | Network flows |
| 27/06 06:19 | Installation of persistence | Event 4698 + EDR |
| 08/07 20:41 | Use of an administrative account on the compromised machine | Event 4624 type 10 |
| 08/07 20:47 | Credential theft from memory | EDR |
| 08/07 22:10 | Switch to interactive mode (60 s) - **first alert** | Suricata SID 1000001 |
| 09/07 01:18 | Mass read of shared folders (46 GB) | SMB auditing |
| 09/07 02:50 | 11.42 GB sent to an external destination | Suricata SID 1000003 |
| 09/07 03:12 | Compromise of the domain controller | Event 4624 |
| 09/07 04:58 | **Opening of the decoy file** | SMB auditing |
| 09/07 05:04 | **Detection: notification received** | Alerting system |
| 09/07 05:12 | Incident declared S1 | Incident record |
| 09/07 08:40 | Coordinated cut-off executed | Decision log |
| 09/07 09:01 | **Containment verified** | Documented verification |
| 10/07 05:30 | Services fully restored | - |
| 12/07 08:00 | Eradication declared complete | Verification report |
| 28/07 | Incident closed | Incident record |

---

## 3. SCOPE AND IMPACT

### 3.1 Affected systems
| System | How it was affected | Action |
|---|---|---|
| `PC-TRAFICO-01` (`10.10.4.15`) | Compromised with user and later administrator privileges | Rebuilt |
| `dc01` (`10.10.20.5`) | Compromised with domain privileges | Rebuilt |
| `fs01` (`10.10.20.20`) | Access with stolen credentials; mass read | OS rebuilt, data restored |
| `dc02` | No evidence of compromise | Passed intensive verification |
| `srv-db01` (A005) | **Not affected.** Canary `C9999` not queried | Verified |
| `srv-bkp01` / backups | **Not affected** | Verified |
| MiRutalia (A001) | No evidence of compromise; stopped as a precaution | Validated before reopening |

### 3.2 Affected accounts
`mruiz-jt`, `dsalas`, `adm-dsalas`, `svc-backup`, `msoria` (orphaned SSH key),
plus `svc-mon01`, created by the attacker and deleted. All rotated or deleted;
`krbtgt` rotated twice, 23 h apart.

### 3.3 Affected data
| Item | Situation | How it was determined |
|---|---|---|
| Staged for extraction | 62 GB (`\Clientes`, `\RRHH`) | Archive found on the machine |
| **Confirmed as extracted** | **11.42 GB** | Network flows, three sources |
| Categories | Customers' professional contact data, tariffs, contracts, employment documentation | File access logs |
| Estimated data subjects | 400 business customers, 180 employees | Inventory |
| Customer database (A005) | **Not accessed** | PostgreSQL auditing + canary |

**Stated limitation:** it has not been possible to determine with absolute
certainty which specific files make up the 11.42 GB extracted, as there is no
content logging on the outbound channel. The determination is based on the
staging archive found and on the access logs.

---

## 4. ROOT CAUSE

**Immediate cause:** execution of a macro contained in an email attachment, in
an environment where macros of external origin were allowed.

**Contributing causes:**
1. No blocking of macros of external origin (group policy).
2. No filtering of attachments with macros at the mail gateway.
3. The company's own DMARC policy not set to reject mode.
4. EDR configured in alert rather than blocking mode for Office child processes.
5. Detection rule for communication with control servers limited to intervals of
   ~60 s, with no coverage of low frequencies.
6. Only the decoy files had a notification channel capable of reaching a person
   outside working hours.
7. No technical restriction on the use of domain administrative accounts on user
   machines.
8. SSH key of a person who left the company, not removed.

**Systemic cause:** the security improvements identified in earlier projects
were not turned into tasks with an owner, a deadline and a verification, and the
detection capability had no time allocated to its maintenance.

**The action of the person who opened the attachment is not a root cause.** The
email mimicked an existing thread, came from a domain that passed the perimeter
controls, generated no warning at all and was declared clean by the antivirus.
The technical controls that would have prevented execution did not exist.

---

## 5. ACTIONS TAKEN
*(Detail in annex B.)*
Coordinated containment on 09/07 at 08:40 UTC; full credential rotation;
rebuilding of three systems; indicator sweep across 151 systems; the way in
fixed across three layers; 14 days of heightened monitoring; notification to the
AEPD and communication to customers.

## 6. OUTSTANDING ACTIONS
*(Full table in section 13 of this lesson.)*

## 7. LESSONS LEARNED
**Worked:** the decoy files; the 90-day log retention; the coordinated cut-off;
the alternative communication channel; the isolated backups; the response
contract signed in advance.
**Did not work:** prevention in email; detection coverage; the out-of-hours
notification channel; the separation of administrative accounts; the removal of
access when people leave.

## 8. ANNEXES
A. Full timeline (312 entries) - B. Decision log (24 entries)
C. Evidence inventory with hashes (41 items) - D. Indicators of compromise
(TLP:AMBER) - E. Queries and commands used - F. Technical report from
CiberTest S.L. - G. Copy of the notification to the AEPD

  1. Incident metrics: MTTD, MTTC, MTTR and dwell time

An incident's metrics serve three purposes: knowing whether you are improving, comparing with the sector and justifying investment. Here we deal only with incident metrics; the security programme dashboard is 08-04.

Metric What it measures From To INC-2028-014
Dwell time How long the attacker was inside without being detected First compromise Detection 11 d 22 h 47 min
MTTD (detection) Detection capability First detectable signal Detection by a person 11 d 22 h 47 min
Unattended alert time The gap between detecting and finding out First alert generated Detection by a person 8 h 54 min
MTTT (triage) Triage responsiveness Detection Incident declaration 8 min
MTTC (containment) Response responsiveness Detection Containment verified 3 h 57 min
MTTR (recovery) Recovery capability Detection Full service restored 24 h 26 min
Time to eradication Thoroughness Detection Eradication declared 3 d 3 h
Total incident time Full cycle First compromise Closure 31 days
Downtime Operational impact — — 9 h 50 min (A001)
Correct alerts unattended Quality of the notification channel — — 4

How to read these figures

  • A dwell time of 12 days is not catastrophic in sector terms, where medians are counted in weeks. But the relevant comparison is not with the sector: it is with what would have been needed. The exfiltration happened on day 12. Detecting on day 11 would have avoided the entire incident.
  • The MTTC of 3 h 57 min is excellent, and not by chance: it is the direct result of the plan, the retainer and the prepared cut-off. It is the metric that demonstrates the return on the preparation phase.
  • The 8 h 54 min of unattended alert is the most actionable finding of all. It is not a detection problem — the systems did detect — but an alert routing problem, and it is fixed by reviewing a list, with nothing to buy.
  • The 8 minutes of triage demonstrate that the automatic S1 triggers work: there was no debate about whether to declare or not.

Beware of a classic trap. Presenting only the MTTC and the MTTR, which are good, and hiding the dwell time, which is bad. It is tempting and it is exactly what prevents improvement. The metric that hurts most is the one that contains the most information.

Calculation script from the timeline

#!/usr/bin/env python3
"""
metricas_incidente.py - Calculates an incident's metrics from its timeline
in YAML. Rutalia Logistica S.L.

Usage: python3 metricas_incidente.py cronologia_INC-2028-014.yaml
"""
import sys
import yaml
from datetime import datetime, timedelta

# Mandatory milestones: each one must appear once in the timeline,
# marked with the 'milestone' key.
MILESTONES = [
    "first_compromise",      # initial execution of the attacker's code
    "first_signal",          # first event a system COULD have detected
    "first_alert",           # first alert actually generated
    "detection",             # the moment a PERSON finds out
    "declaration",           # incident declared
    "containment_verified",  # attacker's access cut and checked
    "eradication",           # eradication declared complete
    "recovery",              # full service restored
    "closure",               # incident closed
]

def load(path):
    """Reads the timeline and returns {milestone: datetime} in UTC."""
    with open(path, encoding="utf-8") as f:
        data = yaml.safe_load(f)
    marks = {}
    for row in data["timeline"]:
        if "milestone" in row:
            if row["milestone"] in marks:
                sys.exit(f"ERROR: duplicate milestone '{row['milestone']}'")
            marks[row["milestone"]] = datetime.fromisoformat(
                str(row["time"]).replace("Z", "+00:00"))
    missing = [m for m in MILESTONES if m not in marks]
    if missing:
        sys.exit(f"ERROR: milestones missing from the timeline: {', '.join(missing)}")
    return marks, data

def fmt(td: timedelta) -> str:
    """Formats a duration as '11 d 22 h 47 min'."""
    total = int(td.total_seconds())
    if total < 0:
        return "INCONSISTENT (negative)"
    d, r = divmod(total, 86400)
    h, r = divmod(r, 3600)
    m = r // 60
    parts = []
    if d: parts.append(f"{d} d")
    if h: parts.append(f"{h} h")
    parts.append(f"{m} min")
    return " ".join(parts)

def compute(m):
    return [
        ("Dwell time",                      m["detection"] - m["first_compromise"]),
        ("MTTD from the first signal",      m["detection"] - m["first_signal"]),
        ("Unattended alert",                m["detection"] - m["first_alert"]),
        ("MTTT (triage)",                   m["declaration"] - m["detection"]),
        ("MTTC (containment)",              m["containment_verified"] - m["detection"]),
        ("Time to eradication",             m["eradication"] - m["detection"]),
        ("MTTR (recovery)",                 m["recovery"] - m["detection"]),
        ("Total incident duration",         m["closure"] - m["first_compromise"]),
    ]

def cost(data, downtime_hours):
    """Downtime cost weighted by the real activity of each time band."""
    total = 0.0
    for segment in data.get("downtime", []):
        total += segment["hours"] * data["cost_per_downtime_hour"] * segment["activity_factor"]
    return total

def main():
    if len(sys.argv) != 2:
        sys.exit("Usage: metricas_incidente.py <timeline.yaml>")
    marks, data = load(sys.argv[1])

    print(f"\n=== METRICS FOR {data['incident']} ===\n")
    for name, value in compute(marks):
        print(f"  {name:<38} {fmt(value)}")

    # Consistency check: the milestones must be in order
    order = [marks[m] for m in MILESTONES]
    if order != sorted(order):
        print("\n  WARNING: the milestones are not in chronological order. Check the timeline.")

    c = cost(data, None)
    print(f"\n  Estimated downtime cost                EUR {c:,.0f}")
    print(f"  Correct alerts unattended              {data.get('unattended_alerts', 0)}")
    print()

if __name__ == "__main__":
    main()

Explanation of the decisions in the script:

  • The MILESTONES list is the specification. If the timeline does not have the nine milestones, the script fails rather than calculating with incomplete data. It is deliberate: a metric calculated on an incomplete timeline is worse than no metric, because it looks like a fact.
  • The distinction between first_signal and first_alert is the most valuable thing in the script. The first is when the attack could have been detected; the second, when a system gave notice. The difference measures coverage gaps; the difference between first_alert and detection measures process gaps. They are two different problems with different solutions.
  • fromisoformat with replace("Z", "+00:00") normalises ISO 8601 stamps with a Z suffix, which the standard library does not accept directly.
  • Duplicate milestone detection and the order check catch the most frequent error when building a timeline by hand: a mistyped time that produces a negative duration and an absurd metric.
  • cost() weights by time band instead of multiplying the hours by €1,500. An hour on a Sunday does not cost the same as an hour on a Tuesday, and presenting the cost unweighted destroys the report's credibility with anyone who knows the business.

Input file (extract):

incident: INC-2028-014
cost_per_downtime_hour: 1500
unattended_alerts: 4
downtime:
  - {description: "MiRutalia and fs01, Sunday", hours: 9.83, activity_factor: 0.35}
  - {description: "Partial degradation, Monday", hours: 4.0,  activity_factor: 0.30}
timeline:
  - {time: "2028-06-27T06:16:33Z", milestone: first_compromise, fact: "Macro executed"}
  - {time: "2028-06-27T06:17:02Z", milestone: first_signal,     fact: "First beacon to the C2"}
  - {time: "2028-07-08T20:10:00Z", milestone: first_alert,      fact: "SID 1000001"}
  - {time: "2028-07-09T05:04:00Z", milestone: detection,        fact: "Canary SMS to Laura"}
  - {time: "2028-07-09T05:12:00Z", milestone: declaration,      fact: "S1 incident declared"}
  - {time: "2028-07-09T09:01:00Z", milestone: containment_verified, fact: "15 min with no signal"}
  - {time: "2028-07-10T05:30:00Z", milestone: recovery,         fact: "ERP operational"}
  - {time: "2028-07-12T08:00:00Z", milestone: eradication,      fact: "Negative sweep"}
  - {time: "2028-07-28T10:00:00Z", milestone: closure,          fact: "Incident closed"}

  1. The total cost of the incident, calculated

The cost of an incident is almost never the one you can see. It is calculated in four layers.

Layer 1 — Direct cost

Item Calculation Amount
Downtime, Sunday 9.83 h × €1,500/h × 0.35 activity €5,161
Degradation, Monday 4 h × €1,500/h × 0.30 €1,800
Redoing 20 h of lost documents 38 person-hours × €32/h €1,216
Internal response hours 106 h (Laura 38, Diego 34, Marta 12, others 22) × €45/h €4,770
External response (CiberTest) 46 h; 20 included in the retainer + 26 × €180/h €4,680
Rebuilding 3 systems Hours, licences and support €3,100
Legal advice and notification Assessment, notification to the AEPD, review of statements €2,400
Extraordinary customer service 400 communications, calls, extra cover €1,900
Cyber insurance excess Per the policy €5,000
Total direct €30,027

Layer 2 — Indirect and opportunity cost

Item Amount
Two IT projects postponed by six weeks €11,000
Senior management hours spent on the incident (22 h × €90/h) €1,980
Urgent rollout of corrective measures (hours + licences) €6,400
Total indirect €19,380

Total quantified: €49,407.

Layer 3 — Reputational cost (estimated as a range, never a single number)

Effect Estimate
One customer does not renew (€48,000/year contract, 12 % margin) €5,760/year
Three customers require an additional security audit €4,500
Commercial cost of answering the security questionnaires of 11 customers €2,200
Weakened position in future tenders Not quantifiable
Reasonable range €10,000 – €60,000

Rule of honesty: reputational impact is presented as a range with explicit assumptions, never as a single figure. An invented number with two decimal places destroys the credibility of the whole report.

Layer 4 — The cost avoided

This is the layer almost nobody calculates and the only one that turns the report into an investment argument.

Scenario Cost Difference
What happened (detected on day 12) €49,400 —
If it had been detected on day 1 (low-frequency beaconing detected) ~€4,000 (one machine rebuilt, 6 h of work) −€45,400
If it had not been detected (the full canonical scenario: encryption on day 25) €180,000 ransom + 9 days of downtime + rebuilding ≈ €340,000, with the backups deleted +€290,000

The sentence for senior management. «The decoy file that cost nothing and twenty minutes of work in 2026 saved us, verifiably, around €290,000. The detection rule that did not exist would have saved us another €45,000. It costs three hours of work.»


  1. How all of this is used to justify investment

Andrés Vidal is not technical. He signs budgets. The post-incident report is the best opportunity of the year to get him to sign the right one, and there is a way of presenting it that works.

What does NOT work What does work
«We need a SIEM» «Four correct alerts fired and nobody found out for nine hours. Reviewing which alerts send an SMS costs three hours and nothing in money»
«We need to improve awareness» «Seven technical controls did not exist. Six are enabled with configuration. The seventh costs €2,400»
«The ransomware risk is high» «We were hours away from encryption. The backups held because they are isolated; if they were not, today we would be deciding whether to pay €180,000»
«The sector invests 8 % of its IT budget» «This incident cost €49,400. The full plan costs €12,400 and 96 hours»
A list of 40 measures Twelve actions, prioritised, with a cost and an owner

Three presentation principles:

  1. Your own numbers, not the sector's. «It cost us €49,400» convinces; «the average cost of a breach in Europe is X million» does not, because Rutalia is nothing like that average and everybody knows it.
  2. Cost compared with cost avoided, not in the abstract. €12,400 against €49,400 for a single incident is an obvious decision.
  3. Separate what is free from what costs money. Six of Rutalia's twelve actions cost nothing but hours. Presenting them together with the expensive ones makes the whole thing look like a big project and provokes resistance; presenting them separately gets the free ones approved in the same meeting.

  1. The action plan: from lesson to task

A lesson learned that does not become a task is not a lesson learned: it is an anecdote.

Anatomy of an action that actually happens

Field Why it is essential
Specific description «Improve detection» is not a task. «Create a Suricata rule for beaconing with intervals of 1 to 24 h» is
Owner: one person An action with two owners has none. Never a department
Deadline With no date, the action competes with day-to-day operations and always loses
Priority Twelve actions with no order get done in the wrong order
Cost Anything with no estimated cost cannot be approved
Verification method The field most often forgotten. «How will we know it is done and that it works?»
Status Pending / In progress / Done / Verified / Dropped with a reason

Verification is not done by whoever executed the action. If Diego blocks macros, the person who checks they are blocked — by sending themselves an .xlsm from outside and trying to run it — is Laura. It is the same logic as retesting after a pentest (04-05): believing the email from whoever fixed it is the most common way of ending up with a list of completed actions and the flaw intact.

Prioritisation criteria

Criterion Weight Reasoning
Would it have prevented this incident? Very high It is empirical evidence, not hypothesis
Would it have reduced its scope or duration? High —
Is it cheap or free? High What is free gets done first, always
Does it cover several threat hypotheses (H1-H5)? High Return per unit of effort
Does it attack a systemic cause? High in the long term It prevents the next family of incidents
Is it required by the insurer, a customer or regulation? High It has external consequences
Is it visible to senior management? Low, but not zero It maintains political support

And a realism rule: no more than twelve actions. A forty-action plan in a company with ten people in IT is a plan that will not be executed, and a plan that is not executed destroys the credibility of the next one.


  1. Rutalia's post-incident plan

Approved by Andrés Vidal on 9 August 2028. Status as at 30 September 2028.

# Action Prio. Owner Deadline Cost Verification Status
A-01 GPO blocking macros in files of external origin, with no option to enable 1 Diego 10/07/28 €0 Send an .xlsm with a macro from outside and try to run it Verified ✓
A-02 Gateway filtering of attachments with macros coming from outside 1 Diego 10/07/28 €0 Test send from an external domain Verified ✓
A-03 The company's own domain DMARC policy set to reject (p=reject) 1 Diego 25/07/28 €0 Check the DNS record + DMARC reports over 2 weeks Verified ✓
A-04 EDR in blocking mode (not alert) for Office child processes 1 Diego 11/07/28 €0 Controlled simulation: Excel tries to launch PowerShell Verified ✓
A-05 Review which alerts have an out-of-hours notification channel. Add SID 1000003, 1000005, event 1102, GPO changes and creation of privileged accounts 1 Laura 31/07/28 €0 Controlled test firing of each one, on a Saturday, with acknowledgement Verified ✓
A-06 New Suricata rule (SID 1000006) for low-frequency beaconing: regular intervals of 1 to 24 h with low volume and few machines involved 2 Laura + CiberTest 15/09/28 €540 (3 h retainer) Test with a simulated implant in the lab Verified ✓
A-07 Technical restriction on domain administrative accounts signing in to user machines. Remote assistance tool without domain privileges 2 Diego 30/09/28 €2,400 Attempt to sign in with adm- on an office machine: it must fail In progress (80 %)
A-08 Full review of orphaned accounts and keys (AD, authorized_keys, AWS IAM, rtl_live_ tokens). Add SSH key removal to the leaver procedure 2 Diego + HR 31/08/28 €0 Automated monthly sweep with a report; test with a real leaver Verified ✓
A-09 Weekend on-call: review of the alert queue twice a day on Saturday and Sunday, rotating between 3 people 2 Laura 01/09/28 €0 (rota) Log of reviews; monthly compliance audit Done, verification pending
A-10 File access auditing on fs01 with an alert on volume deviation per user 3 Diego 31/10/28 €0 Test: a controlled mass download must raise an alert in < 15 min In progress (40 %)
A-11 Complete the VLAN migration of the Valencia and Seville warehouses (legacy flat network remains) 3 Diego 31/12/28 €9,500 Reachability test from VLAN 50 to VLAN 20: authorised ports only Pending
A-12 Extraordinary tabletop exercise with the real incident scenario, including the warehouse managers 3 Laura 10/11/28 €0 (retainer allowance) Exercise report with gaps and derived actions Pending

Summary: 12 actions · €12,440 · 96 internal hours · 7 verified, 1 done pending verification, 2 in progress, 2 pending as at 30/09.

Tracking

Element How it works at Rutalia
Review A fixed 15 min item in the monthly IT meeting
Report to senior management Quarterly, with the status of every action
Escalation A priority 1 action more than 15 days late is escalated to Andrés Vidal automatically
Deadline changes Only approved by whoever approved the plan, and the reason is recorded
Closing an action Only after verification by someone other than whoever executed it
Dropping an action Allowed, but it requires a written reason and formal acceptance of the residual risk

The figure to watch. The proportion of post-incident actions actually verified six months later is, in most organisations, below 50 %. The difference between those that reach 90 % and those that stay at 30 % is not the budget: it is having few actions, with one owner per action and an independent verification.


  1. Evidence: retention, custody and destruction

With the incident closed, 41 items of evidence remain: memory and disk images, logs, emails, screenshots and written records. They contain personal data of employees and customers, and they cannot be kept indefinitely «just in case» or deleted casually.

The balance

Keeping too much Deleting too soon
Breaches data minimisation (GDPR) Prevents you responding to a later claim
Increases the attack surface: a copy of fs01 is a copy of everything May constitute destruction of evidence if proceedings are under way
Storage and custody cost Prevents reopening the investigation if new information appears
Type of evidence Indicative retention Reason
Forensic disk and memory images Until the close of all legal, administrative and insurance matters; review after a year They are the bulkiest and the most sensitive
Technical logs from the incident Aligned with the general policy (12 months cold), extendable if there are proceedings Compatible with ordinary retention
Timeline, decision log and report Long (several years) They do not contain bulk data and they are the organisation's memory
Emails and documents relating to identifiable people The minimum necessary, with restricted and logged access Maximum sensitivity
Indicators of compromise (IPs, hashes, domains) Indefinite They are not personal data and remain useful for detection
Notifications to the AEPD and communications to customers Per the limitation periods Proof of compliance

Custody rules while they are kept:

  • Access restricted to named people, with every access logged.
  • Encrypted at rest, with the key held outside the evidence store.
  • Inventoried with their hash, so that any alteration is detectable.
  • Not on the same system that has just been restored.

Destruction: with a signed record stating what is being destroyed, when, who authorises it and by what method. And nothing is ever destroyed if there are judicial, administrative or insurance proceedings under way or foreseeable: in that case, retention is frozen and advice is sought.

Warning. The specific periods depend on the nature of the incident, on whether proceedings are open, on the sector and on contractual obligations to customers. The table above is indicative: the decision is taken by the legal advisers, in writing, and noted on the incident record.


  1. Sharing what you learned and the TLP protocol

A well-analysed incident has value for many more people than the one who suffered it. Sharing is also how you receive: the INCIBE-CERT advisories that reach you exist because somebody shared first.

With whom What is shared What is NOT shared
The workforce What happened in general terms, what has been changed, what is expected of everyone Names of people involved, exploitable technical detail
Senior management and the board The full report —
Affected customers Which of their information is affected and what we recommend they do Technical detail, hypotheses, attribution
The insurer Everything the policy requires —
INCIBE-CERT Indicators, techniques, anonymised timeline Personal data, customer data
The sector / associations Techniques, indicators, lessons Anything identifying
Publicly Only what senior management approves with the legal advisers Never indicators from your own systems

The communication to the workforce

It is the one with the most impact on future security and the one usually done worst. Rules:

  1. No names and no data that lets people deduce them. «The traffic department» already identifies a person in a company of 180.
  2. Explain the mechanism, not just the fact. People remember «an email that mimicked a thread from a supplier and asked you to enable content»; they do not remember «a security incident».
  3. Acknowledge what worked, including the fact that somebody spoke up.
  4. Say what has changed. If people notice they can no longer enable macros, you have to explain why; otherwise they experience it as an arbitrary obstacle and look for a way round it.
  5. Repeat the message that reporting is cost-free. «Speaking up is always the right thing to do.»

The training content derived from the incident — drills, short courses, materials — is covered in 08-03.

The Traffic Light Protocol (TLP)

The TLP is an international convention for marking how far shared information may travel. It is written in the document header and in the email subject line.

Marking Means You can share it with Example at Rutalia
TLP:RED Only for those in the conversation Nobody else, not even inside your organisation The name of the person who opened the attachment; the detail of the negotiation
TLP:AMBER+STRICT Only inside your organisation Your organisation, not customers or suppliers The full incident report
TLP:AMBER Your organisation and customers who need to know The organisation + affected customers The scope of the data affected
TLP:GREEN Your community Sector, associations, other response teams; not public Indicators of compromise and techniques
TLP:CLEAR No restriction Anyone, including the public Generic lessons, recommendations

How it is used in practice:

  • What you receive with a marking, you respect. If INCIBE-CERT sends you indicators as TLP:AMBER, you do not publish them on social media or pass them to an open group, however useful they seem. Breaking TLP gets you thrown out of the information circuit.
  • What you send, you mark. An unmarked document will be interpreted in a way the sender did not intend.
  • When in doubt, be more restrictive, and you can relax it later in writing.
  • TLP is an agreement of trust, not a contract. If you need a legal obligation, you need a confidentiality agreement.

What Rutalia shared with INCIBE-CERT on 20 July 2028, marked TLP:GREEN:

TLP:GREEN - Indicators from a campaign against a Spanish logistics company (July 2028)

Vector: .xlsm attachment with a macro, sent to 4 recipients in invoicing,
purchasing and traffic. Subject mimicking an existing thread about fuel tariffs.
Sender domain with no SPF/DKIM/DMARC. Not detected by the gateway antivirus.

Chain: EXCEL.EXE -> powershell.exe -nop -w hidden -enc -> rundll32.exe with a DLL
in %APPDATA%. Persistence via a scheduled task mimicking Office telemetry. TLS
beaconing every 4 h in the dormant phase and every 60 s in the interactive phase.

ATT&CK techniques: T1566.001, T1204.002, T1059.001, T1027, T1053.005, T1003.001,
T1021.002, T1039, T1071.001, T1567.002.

Indicators: [C2 IP, exfiltration IP, domain, document hash,
scheduled task name, name of the artefact on disk]

Useful observation: the 4-hour dormant phase evaded beaconing detection rules
designed for intervals of ~60 s. We recommend extending coverage to long
intervals with low volume and few machines involved.

Notice the last paragraph: it is what adds most value to whoever reads it and it would never appear in an automated list of indicators. The observation about the detection gap is the real contribution of a human analysis.


  1. How the cycle closes

Post-incident work is not the end of a line: it is the connection that turns the cycle into a cycle.

flowchart LR
    A["05-01 PREPARATION<br/>plan - team - kit -<br/>channels - exercises"] --> B["05-02 DETECTION<br/>AND ANALYSIS"]
    B --> C["05-03 CONTAINMENT,<br/>ERADICATION,<br/>RECOVERY"]
    C --> D["05-04 POST-INCIDENT<br/>root cause - report -<br/>metrics - action plan"]
    D -->|"A-01...A-05: new controls"| E["Modules 3 and 4<br/>architecture and controls"]
    D -->|"A-06, A-10: new rules"| B
    D -->|"A-09, A-12: on-call, exercises,<br/>revised plan"| A
    D -->|"derived training"| F["08-03 Awareness"]
    D -->|"metrics to the dashboard"| G["08-04 Metrics and SOC"]
    D -->|"residual risk"| H["08-02 Risk management"]

    style D fill:#d1ecf1,stroke:#0c5460
    style A fill:#d4edda,stroke:#155724

Each action in the plan feeds a different place:

  • A-01 to A-05 are controls: they go back to the architecture of modules 3 and 4.
  • A-06 and A-10 are detection rules: they go back to the detection and analysis phase.
  • A-09 and A-12 are procedure and rehearsal: they go back to preparation, and they force a revision of PRI-RUT-2028, which became version 1.1 on 20 August 2028.
  • What people learn feeds awareness (08-03).
  • The metrics feed the programme dashboard (08-04).
  • The residual risk accepted (for example, the decision not to have 24×7 monitoring) is formally documented in risk management (08-02).

And a review of the threat model: after INC-2028-014, Rutalia updated hypotheses H1-H5. H1 (ransomware with double extortion) went from «critical, not materialised» to «critical, partly materialised»: there was intrusion, exfiltration and extortion, and only the encryption was missing. That changes the estimated likelihood and, with it, the justification for the actions in 05-05.


Common Mistakes and Tips

Mistake 1: not doing the phase. It is the default mistake and the most expensive: it guarantees a repeat of the incident. Tip: book the meeting in the calendar on the same day you close the incident, not «when there is a gap».

Mistake 2: turning it into a hunt for culprits. It destroys the information you need and guarantees that nobody speaks up next time. Tip: rules read out at the start, a neutral facilitator, and the table of useful questions from section 3 printed on the table.

Mistake 3: stopping the analysis at «the user clicked». It is the trigger, not the cause, and it leaves the other seven failed controls untouched. Tip: force the analysis to reach the fifth why and make sure the last answer is actionable by the organisation.

Mistake 4: fixing only the immediate cause. You block macros and the next one comes in through a link. Tip: attack all three levels — immediate, contributing and systemic — with different timescales.

Mistake 5: one report for every audience. Either senior management does not read it, or the technical staff cannot find anything, or the customer reads something they should not. Tip: one report with targeted sections and a one-page executive summary that works on its own.

Mistake 6: presenting only the good metrics. Showing the excellent MTTC and hiding the twelve days of dwell time prevents improvement. Tip: the metric that hurts most is the one that contains the most information; present it alongside the action that fixes it.

Mistake 7: calculating the cost only as hours of downtime. It leaves out half of it. Tip: the four layers — direct, indirect, reputational as a range and cost avoided — and weight the downtime cost by the real activity of each time band.

Mistake 8: a forty-action plan. It does not get executed and it destroys the credibility of the next one. Tip: twelve at most, prioritised, with the free ones first.

Mistake 9: actions with no owner, or with a department as owner. They do not happen. Tip: one person per action, always, and automatic escalation if a priority 1 action is more than fifteen days late.

Mistake 10: closing actions without independent verification. You end up with a green list and the flaw intact. Tip: verification is done by someone other than whoever executed it, and the method is written down before starting.

Mistake 11: keeping evidence indefinitely or deleting it without a criterion. The first breaches minimisation and widens the attack surface; the second may destroy evidence. Tip: periods set by the legal advisers, in writing, with a destruction record and a freeze if there are proceedings.

Mistake 12: not sharing, or sharing too much. The first leaves you outside the information circuit; the second exposes the company or individuals. Tip: use TLP, respect the markings you receive and mark everything you send.

Mistake 13: telling the workforce nothing. Silence gets filled with rumours that do mention names. Tip: clear communication, with no names, explaining the mechanism and what has changed.


Exercises

Exercise 1 — Root cause analysis

On 19 June 2027 a hidden forwarding rule turned up in Nuria Campos's mailbox (administration and payments): it forwarded to an external address every email whose subject contained «factura», «IBAN» or «transferencia», and moved it to the RSS Feeds folder. It was discovered three weeks later, when a supplier chased a payment Rutalia had made to a bank account other than theirs.

Carry out the root cause analysis: (a) five whys down to an actionable cause, (b) classify the causes as immediate, contributing and systemic, and (c) propose four actions with an owner, a verification and an estimated cost.

Solution

(a) Five whys

# Question Answer
— Fact A hidden rule forwarded invoicing emails for 3 weeks and led to a payment into a fraudulent account
1 Why was the rule able to be created? Because somebody had access to Nuria Campos's mailbox
2 Why did they have access? Because her credentials were compromised (phishing or reuse) and there was no MFA at the time
3 Why was the rule not detected in 3 weeks? Because there was no alert on the creation of forwarding rules and the M365 audit log was not being reviewed
4 Why was there no such alert? Because M365's security configuration was left at its defaults: it was treated as a service you buy and not as a system to configure and monitor
5 Why was it treated that way? Because there was no inventory of controls per system and no owner assigned to the security of cloud services
6 (And a second branch) Why was a payment made to a different account? Because a change of a supplier's bank details did not require verification through an independent channel

(b) Classification

  • Immediate cause: a forwarding rule created by a third party with access to the mailbox.
  • Contributing causes: no MFA; no alert on rule creation; M365 auditing not reviewed; no verification through an independent channel when bank details change; a destination folder (RSS Feeds) that nobody ever looks at.
  • Systemic cause: cloud services were bought without a security owner, without an inventory of controls and without periodic configuration review.

(c) Four actions

Action Owner Verification Cost
Mandatory MFA on every mailbox, no exceptions Diego 100 % coverage report; attempt to access without a second factor €0
Alert on New-InboxRule with an external destination or with deletion, and on Set-Mailbox with forwarding Laura Test: create an external forwarding rule and check the alert arrives in < 15 min €0
Automated monthly review of all mailbox rules and forwarding Diego Monthly report archived; check the contents of the first report €0
Double verification procedure for changes to suppliers' bank details: a call to a number from the file, never the one in the email, and dual signature above €3,000 Administration + Andrés Controlled test with a simulated change €0

Comment. All four actions cost nothing, and the fourth — which is an administrative process and not an IT one — is the one that would have prevented the financial loss, while the first three would have prevented or shortened the incident. A good root cause analysis produces actions outside the IT department, because the causes are outside it too.

Exercise 2 — Metrics and cost

With this data from a hypothetical Rutalia incident, calculate the six main metrics and the direct cost:

  • First compromise: 2028-11-03 14:20 UTC
  • First detectable signal: 2028-11-03 14:22 UTC
  • First alert generated: 2028-11-03 14:25 UTC
  • Detection (a person finds out): 2028-11-03 15:40 UTC
  • Incident declaration: 2028-11-03 15:48 UTC
  • Containment verified: 2028-11-03 17:05 UTC
  • Service restored: 2028-11-04 09:00 UTC
  • Eradication declared: 2028-11-06 12:00 UTC
  • Closure: 2028-11-20 10:00 UTC
  • Downtime: MiRutalia 6 h during working hours (factor 1.0) and ERP 3 h (factor 0.6)
  • Internal hours: 26 h at €45/h. External: 8 h, all within the retainer.
  • Rebuilding: 1 machine, €400. No excess (the insurance was not triggered).

Then compare the result with INC-2028-014 and say what the comparison demonstrates.

Solution

Metric Calculation Result
Dwell time 14:20 → 15:40 1 h 20 min
MTTD from the first signal 14:22 → 15:40 1 h 18 min
Unattended alert 14:25 → 15:40 1 h 15 min
MTTT (triage) 15:40 → 15:48 8 min
MTTC (containment) 15:40 → 17:05 1 h 25 min
MTTR (recovery) 15:40 (3 Nov) → 09:00 (4 Nov) 17 h 20 min
Time to eradication 15:40 (3 Nov) → 12:00 (6 Nov) 2 d 20 h 20 min
Total duration 3 Nov 14:20 → 20 Nov 10:00 16 d 19 h 40 min

Direct cost:

Item Calculation Amount
MiRutalia downtime 6 h × €1,500 × 1.0 €9,000
ERP downtime 3 h × €1,500 × 0.6 €2,700
Internal hours 26 h × €45 €1,170
External hours 8 h, within the retainer €0
Rebuilding — €400
Total direct €13,270

Comparison with INC-2028-014 and what it demonstrates:

Metric INC-2028-014 (July) November incident Reading
Dwell time 11 d 22 h 47 min 1 h 20 min An improvement of more than 99 %. Actions A-05, A-06 and A-09 worked
Unattended alert 8 h 54 min 1 h 15 min Better, but still the weak point: it happened during working hours, so the weekend on-call was not put to the test
MTTT 8 min 8 min Stable: the automatic triggers work consistently
MTTC 3 h 57 min 1 h 25 min Better through experience and playbooks already written
Direct cost €30,027 €13,270 An incident detected in 80 minutes costs less than half

What the comparison demonstrates: the post-incident plan worked measurably. And above all, it points precisely at the next objective: 1 h 15 min of unattended alert during working hours means the alert queue is not reviewed often enough on weekdays. The next action is not to buy anything: it is to define a review cadence for the queue during the working day.

(And an important nuance for the report: the higher hourly direct cost in November — €9,000 from MiRutalia alone — is because it happened during working hours. Comparing total costs without looking at the activity factor would lead to the mistaken conclusion that the November incident was «almost as serious».)

Exercise 3 — Writing the executive summary

Write the executive summary (maximum 300 words) of the incident in exercise 2, knowing that: the vector was an unpatched vulnerability in MiRutalia's file upload component, present since a September update; the attacker uploaded a webshell and ran commands; there was no access to the database and no exfiltration detected; the patch had existed since 12 October and had not been applied because the maintenance window was postponed twice due to workload. It must be readable by Andrés Vidal, contain the decision request, and not blame anyone.


Solution

Executive summary — INC-2028-031

On 3 November 2028, between 15:20 and 18:05 (local time), an attacker obtained the ability to run commands on the server that hosts the MiRutalia portal. Access was gained by exploiting a defect in the component that handles the portal's file uploads, a defect present since the September update. The correction for it had been published by the vendor since 12 October and was awaiting a maintenance window.

The attack was detected in 80 minutes and access was cut 85 minutes after detection. There was no access to the customer database and no outflow of information has been detected. The server has been rebuilt from a clean image, the fix is applied and verified, and fourteen days of heightened monitoring have found no residual activity.

Impact: MiRutalia unavailable for 6 hours and the ERP degraded for 3 hours, during working hours. Estimated direct cost: €13,270. Notification to the AEPD is not required as no personal data was affected, a decision validated by the legal advisers and documented.

Cause: the security update available since 12 October had not been applied because the maintenance window was postponed on two occasions due to a build-up of operational work. Rutalia has written remediation deadlines, but no mechanism that prevents a maintenance window for a critical internet-facing system from being postponed indefinitely.

What worked: detection in 80 minutes, against the 12 days of the July incident, is a direct consequence of the measures approved in August. The previous action plan is producing measurable results.

Decision requested: approval of two measures, at no financial cost: (1) that any maintenance window for a critical internet-facing system may only be postponed once, and that a second request requires approval from the Managing Director with explicit acceptance of the risk; and (2) allocating a fixed, protected two-hour monthly window for applying critical patches.

A teaching comment. Notice three things. First: nobody is named, and yet the cause is perfectly clear. Second: what worked is highlighted, which maintains senior management's support for the previous plan and demonstrates return. Third: it ends with a specific, free decision, which is what a managing director can act on when reading it; an executive summary that ends without a decision request gets filed away.


Conclusion

You have learned to do the phase almost nobody does and the one that turns an extremely expensive incident into a better company.

You know when the lessons learned meeting is held — between one and three weeks after closure, neither earlier nor much later — who attends and why whoever opened the attachment is invited and not summoned. You know the seven-block structure and why «what worked» deliberately comes before «what did not work»: at Rutalia, that block revealed that the zero-cost canary, the 90-day retention, the coordinated cut-off, the out-of-band channel and the isolated backups were what separated a bad Sunday from a catastrophe.

You have the principle that holds everything up: a blameless culture is not benevolence, it is the only way of preserving the information you need. You know that as soon as people sense that telling the truth has a cost, they stop telling it, and that without the two human facts of INC-2028-014 — the enabled macro and the adm-dsalas session — the analysis would have been impossible. And you have the table that changes a meeting most: how to reframe every accusatory question as a useful one, replacing «why did you do» with «what made it possible». With a clear boundary: blameless does not mean without accountability, and the line is between an honest mistake and a deliberate, warned-about breach.

You have mastered root cause analysis with four five-why chains applied to the real incident, and you can spot the trap: mediocre analysis stops at «the user enabled it», concludes «we need to train people» and closes the folder; useful analysis carries on and discovers that the control that would have prevented it cost one group policy and that the reason for its absence was not technical but organisational. You know how to organise causes with Ishikawa across five categories so as not to look for them all in the technology, and to distinguish immediate, contributing and systemic causes, attacking all three with different timescales: fixing only the immediate one guarantees the next attack comes through another door, and stopping at the systemic one blocks no macros next Tuesday.

You have the five reasons why «the user clicked» is never a root cause, and above all the table that proves it: eight controls should have acted between the click and the exfiltration, seven did not exist or did not act, and six are fixed with configuration and no budget. That table, and not the mention of the click, is the conclusion of the incident and the slide that gets the money.

You know how to write the report with sections aimed at incompatible readers, to translate the same fact into three languages without changing it, and the three rules for anything that goes outside: confirmed facts only, no identifiable person and legal review first. You have the full template filled in, with an executive summary that works on its own and ends in a decision request.

You calculate the metrics that matter — dwell time, MTTD, unattended alert, MTTT, MTTC, MTTR — and you know how to read them: the 12 days of dwell time that hurt, the 3 h 57 min of containment that demonstrated the return on preparation, and above all the 8 h 54 min of unattended alert, which were not a detection problem but a routing one and were fixed by reviewing a list. You have the script that calculates them from the timeline, which fails deliberately if milestones are missing and which distinguishes the first signal from the first alert because they measure two different problems. And you calculate the cost in four layers — €30,027 direct, €19,380 indirect, an honest range for the reputational part and, the layer almost nobody does, the €290,000 avoided — with the downtime cost weighted by the real activity of each time band.

You know how to turn all of that into budget by talking about your own numbers rather than the sector's, comparing the plan's cost with the cost avoided, and separating the free from the expensive so that the free gets approved in the same meeting. And you know how to build an action plan that happens: twelve actions at most, one person per action, a date, a cost, a priority and — the field most often forgotten — a verification method, carried out by someone other than whoever did the work. You have seen Rutalia's twelve real actions, with their status as at 30 September: seven verified, one pending verification, two in progress and two pending, for €12,440 against the €49,400 the incident cost.

You can handle evidence retention with its balance between minimisation and the ability to respond, its custody rules, its destruction record and the freeze when there are proceedings, always with the decision in the hands of the legal advisers and in writing. And you know how to share: with the workforce without names and explaining the mechanism, with INCIBE-CERT contributing the human observation no automated list contains, and with the TLP protocol — RED, AMBER+STRICT, AMBER, GREEN, CLEAR — respecting the markings you receive, because breaking them throws you out of the information circuit your detection depends on.

And you have closed the cycle: the control actions go back to modules 3 and 4, the new rules go back to detection, the on-call rota and the exercises go back to preparation and force the publication of PRI-RUT-2028 v1.1, the training goes to awareness, the metrics to the dashboard and the accepted residual risk to risk management. With one consequence that changes next year's priorities: hypothesis H1, ransomware with double extortion, has stopped being theoretical. There was intrusion, there was exfiltration and there was extortion. Only the encryption was missing.

And it was only missing for one reason: the attacker was detected on day 12 of a 25-day plan. If the canary had been in another folder, if nobody had put it there in 2026, if the alert had gone to a mailbox instead of to a phone, on the morning of Sunday 9 July Laura would not have been reading logs: she would have been reading a ransom note on 140 screens.

In that scenario, everything you have learned in this module — the plan, the team, the coordinated cut-off, the timeline, the eradication — is still necessary, but it stops being sufficient. When the systems are encrypted and the backups are the only thing standing between the company and its disappearance, the response depends on something built long before and that nobody looks at until the worst day: whether the backups exist, whether the attacker could reach them, whether anyone ever tested restoring them, and whether the company knows how to operate without systems while they come back.

That is what the last lesson of the module is about: Backups, Business Continuity and Ransomware.

You now know how to learn from an incident. Time to prepare for the one that could finish everything.

© Copyright 2026. All rights reserved