Detection, response and security operations

50 min 7 outcomes Attack classifier + drag challenge 5 standards cited

By the end of this module you will be able to:

  • Apply current NIST SP 800-61 Rev. 3 incident response guidance while recognising the older Rev. 2 lifecycle as legacy operational vocabulary
  • Distinguish IOCs and IOAs and explain why IOA-based detection is more resilient to attacker evasion
  • Map observed attacker behaviour to MITRE ATT&CK tactics and techniques
  • Describe the SANS PICERL process and the key decisions at each step
  • Read an ATT&CK Detection Strategy and check whether you collect the data its Analytics need
  • Explain detection as code and why detections written only in a console rot over time
  • Choose between an in-house SOC and MDR for a given scenario, and justify the decision

NotPetya and Maersk: 45,000 PCs, 4,000 servers, $300 million in 10 days

On 27 June 2017, the NotPetya malware began spreading from Ukraine across global networks. Within hours it had reached Maersk, the Danish shipping conglomerate responsible for approximately 20% of global container shipping. Maersk's entire global IT infrastructure, across 45,000 PCs, 4,000 servers, and 2,500 applications in 130 countries, was rendered non-functional. The company rebuilt its IT estate in 10 days, installing 45,000 new PCs and 4,000 new servers. Maersk estimated the financial impact at $300 million.

NotPetya used the EternalBlue SMB exploit and the Mimikatz credential-dumping tool. Organisations with signature-based IOC detection that had not updated signatures for EternalBlue missed the initial infection. Organisations with behaviour-based IOA detection monitoring for LSASS memory access followed by lateral movement via PsExec or WMI could have detected NotPetya's propagation pattern regardless of whether the specific binary hashes were known.

By the time signature updates were available, the infection had already reached global scale. Maersk was collateral damage from an attack on Ukraine's financial system, not a targeted attack. This is the scale of incident that a mature IR programme must be designed to handle.

1. NIST SP 800-61 Rev. 3 incident response guidance

NIST SP 800-61 Rev. 3, published in April 2025, is the current NIST publication. It aligns incident response recommendations with CSF 2.0 risk management activities rather than presenting the old Rev. 2 lifecycle as the primary model. The older four-phase lifecycle remains useful operational vocabulary, but it should be labelled as legacy shorthand. The work still has four practical activity groups:

  1. Preparation. The most important phase; teams that invest in preparation handle incidents faster with better evidence and less damage. Key activities: an IR plan approved by leadership defining decision authority and escalation thresholds; pre-drafted communication templates for internal escalation, customer notification, and regulatory notification (UK GDPR requires ICO notification within 72 hours of becoming aware of a breach); forensic tooling (FTK Imager, WinPmem, LiME); and an IR retainer with a pre-contracted external IR firm (Mandiant, CrowdStrike Services, NCC Group) deployable within hours.
  2. Detection and Analysis. Receiving and triaging alerts from SIEM, EDR, network IDS, and external sources. Analysis requires UTC timestamps (local time introduces ambiguity during cross-timezone incidents), scope determination, incident type classification (data breach, ransomware, insider threat, DDoS), and severity assignment that determines escalation path.
  3. Containment, Eradication, and Recovery.Containment is incident-dependent. For active ransomware: network isolation of affected segments. For data exfiltration: preserve volatile evidence first before containing. For insider threat: covert monitoring may precede containment to gather evidence. Eradication must be complete before recovery begins; recovering systems with remnant backdoors restores the attacker's access. Recovery involves restoring from verified clean backups, patching the exploited vulnerability, and monitoring closely for re-compromise during the first 30 days post-recovery.
  4. Post-Incident Activity. The lessons-learned review should occur within two weeks of incident closure. It produces specific remediation actions with owners and deadlines, not general recommendations.

2. SANS PICERL and IOCs versus IOAs

The SANS PICERL framework (Preparation, Identification, Containment, Eradication, Recovery, Lessons Learned) maps closely to the NIST SP 800-61 phases and is widely used operationally. The two frameworks are complementary: many organisations use PICERL operationally and NIST 800-61 for documentation and compliance alignment.

IOCs () are artefacts indicating a system may have been compromised: file hashes of known malware, malicious IP addresses, C2 domain names, registry keys created by malware families. IOCs are reactive: they are derived from known attacks and do not detect novel threats. Attackers routinely repack malware binaries to change hashes and rotate infrastructure to change IPs.

IOAs (Indicators of Attack) are behavioural patterns indicating an attack is in progress regardless of specific tooling: LSASS memory access by a non-system process, followed by SMB connections to previously uncontacted internal servers, followed by WMI remote execution. IOAs are more resilient to evasion because attackers can change tools but not the fundamental behaviours required to achieve their objectives (credential dumping, lateral movement, data staging). NotPetya’s EternalBlue/Mimikatz chain would have triggered IOA-based detections regardless of whether the specific binary hashes were in any signature database.

3. MITRE ATT&CK and detection engineering

MITRE ATT&CK Enterprise, current release v19.1 as of 28 April 2026, is a globally accessible knowledge base of adversary tactics and techniques based on real-world observations. It contains 14 tactics and over 600 techniques. The 14 Enterprise tactics in order of a typical attack lifecycle: Reconnaissance (TA0043), Resource Development (TA0042), Initial Access (TA0001), Execution (TA0002), Persistence (TA0003), Privilege Escalation (TA0004), Defence Evasion (TA0005), Credential Access (TA0006), Discovery (TA0007), Lateral Movement (TA0008), Collection (TA0009), Command and Control (TA0011), Exfiltration (TA0010), and Impact (TA0040).

The NotPetya chain maps to: Execution (EternalBlue SMB exploit, TA0002), Credential Access (Mimikatz LSASS dump, TA0006, T1003.001), and Lateral Movement (PsExec/WMI, TA0008, T1021.002/T1047). Detection engineering using ATT&CK identifies which techniques are prevalent among the adversaries targeting your sector, maps them to specific log sources, and writes targeting those patterns.

A mature detection engineering process: hypothesis generation (what techniques are threat actors in our industry using?), log source mapping (which log contains the signal?), Sigma rule development, testing against historical logs and a controlled test environment, deployment with defined alert priority and response playbook, and maintenance when attacker tooling changes. Rules must be tested against real attack patterns; an untested rule may have a syntax error, reference the wrong log field, or require data that is not actually collected.

ATT&CK is versioned, and recent releases changed how it expresses detection. Version 18, in October 2025, retired the loose per-technique detection notes and replaced them with structured Detection Strategies and Analytics objects, so a technique now points to named, reusable detection logic rather than a paragraph of prose. Version 19, in April 2026, split the old Defence Evasion tactic into Stealth and Defence Impairment and added industrial control system sub-techniques. Pin the version you map coverage against: a claim built on v17 does not line up cleanly with the v19 structure.

Reading a Detection Strategy is now a core skill. Each one names the behaviour it targets, lists the Analytics that implement it, and states the log sources and platforms each Analytic needs. To read one, start from the technique it defends, confirm you actually collect the data sources its Analytics require, then check that the Analytic logic matches how the behaviour shows up in your own telemetry. A strategy you cannot feed with data is a coverage gap you have not admitted to yet, the same failure as an untested rule.

Common misconception

Having an incident response plan on file means your organisation is prepared to respond to a major incident.

An IR plan that has never been exercised is a document, not a capability. When a real incident occurs, responders under pressure will revert to instinct rather than a plan they have never practised. Effective preparation requires tabletop exercises at least annually, including a realistic scenario with timed decision points, communication role-play, and a specific question for every named decision authority: do you know what triggers require your approval? Organisations that exercised before NotPetya-scale events contained blast radius significantly faster than those relying on untested plans.

Loading interactive component...
Loading interactive component...
Check your understanding

During a tabletop exercise, a ransomware scenario describes encrypted files on a file server now spreading laterally via compromised service account credentials. The team debates immediately isolating the affected file server. What is the primary risk of immediate isolation, and what incident-response judgement guides the decision?

A threat analyst reviews EDR alerts and observes: LSASS memory access from a non-system process, followed by new SMB connections to three internal servers the workstation had never contacted, followed by WMI remote execution on those servers. Which MITRE ATT&CK tactics are represented, and is this detection IOC-based or IOA-based?

After recovering from a ransomware incident, your CISO asks for three specific improvements to the detection capability before the next board meeting. Your current state: Splunk SIEM deployed but rules only alerting on known ransomware hashes; no EDR; Windows event logging enabled on all servers but Sysmon not deployed. Which three improvements provide the greatest detection coverage increase for the next ransomware-style attack?

Loading interactive component...
Loading interactive component...

4. Detection as code

A detection is a small program: it takes telemetry as input and decides whether a behaviour is present. Treating detections that way is the discipline called , and it exists because detections rot the way any software rots. Log schemas change, a field gets renamed, an endpoint agent updates its event format, and a rule that fired correctly last quarter now silently matches nothing. A rule written and tuned only inside a console has no history, no review and no test, so nobody notices the rot until an intrusion walks straight past it.

Detection as code puts the rule set in Git and runs it through the same lifecycle as application code. An analyst authors the rule as a Sigma file; a peer reviews the change; a continuous integration job tests it against recorded true-positive and known-benign telemetry, so a broken field reference or an over-broad match fails the build; the rule deploys to production; the team tunes it as false positives appear; and it is retired when the behaviour or the data source it depends on goes away. A failed test returns the change to the author rather than to production, exactly as a failing unit test would. The figure traces that cycle.

5. The SOC as a capability

A security operations centre is a capability, not a room full of screens, and its tooling has converged enough that the acronyms need pinning down once. A collects and correlates logs from across the estate and runs the detection rules against them. , security orchestration, automation and response, adds the playbooks that act on an alert, enriching it, opening a case or isolating a host without waiting for a human to click through consoles. , extended detection and response, is the vendor-integrated bundle of endpoint, identity and network telemetry with detection and response built in. The three overlap heavily now, so the useful question is not which label a product wears but whether collection, correlation, automation and response are each covered somewhere.

Running that capability around the clock is the sourcing decision. An in-house SOC buys deep knowledge of your own environment and direct control, at the cost of hiring and retaining analysts for night and weekend cover. , or MDR, buys a provider’s trained analysts and around-the-clock coverage on day one, at the cost of their shallower knowledge of your systems and a dependence on how well you integrate with them. The factors that decide it are the maturity of your telemetry, whether you can recruit and keep the staff, your tolerance for a third party inside your incident response, and the rules on where your data and monitoring may sit. Many organisations run a hybrid: MDR for round-the-clock triage, and a small in-house team for detection engineering and the incidents that need context only they hold.

None of this improves on its own. is the feedback loop that keeps it honest: the offensive side runs a known technique, the defensive side checks whether the telemetry captured it and the rule fired, and each gap becomes a specific detection to build or a data source to start collecting. works the other way round, starting from a hypothesis about an adversary already inside and searching the data for it, and each hunt that finds a repeatable signal becomes a new detection. Both turn one-off effort into durable coverage.

Feeding all of it is , which is a discipline rather than a feed you buy. It starts from intelligence requirements, the actual questions the organisation needs answered, such as which groups target our sector and how they gain initial access. The CTI lifecycle then runs from those requirements through collection, processing, analysis and dissemination, and back to the people who act on it. Sharing is governed by the , which marks how far a piece of intelligence may travel, from TLP:RED for named recipients only to TLP:CLEAR for public release. , the sector bodies where organisations pool indicators and warnings, are where much of that exchange happens, so a bank sees what other banks are facing before the same campaign reaches it.

Check your understanding

During a purple-team exercise your SOC fails to detect WMI-based lateral movement. You confirm the Sigma rule for the technique is well written and fired correctly in a lab. The affected servers belong to a recently acquired subsidiary: they do not forward process-creation telemetry to the SIEM, and your MDR contract does not yet cover that business unit. What most directly closes the gap?

Try it in the workspace

2 studio tools turn this module into something you can build and export.

Core distinctions

  • NIST SP 800-61 Rev. 3 is the current NIST incident-response publication. It aligns incident response with CSF 2.0 risk-management activities; the older Rev. 2 four-phase lifecycle remains useful only as explicitly labelled operational shorthand.
  • SANS PICERL (Preparation, Identification, Containment, Eradication, Recovery, Lessons Learned) maps closely to the NIST SP 800-61 phases and is widely used operationally. Both frameworks are complementary; use PICERL operationally and NIST for compliance documentation.
  • IOAs (behavioural patterns) are more resilient to attacker evasion than IOCs (known-bad artefacts). Attackers change tools; they cannot change the fundamental behaviour required to achieve their objectives. NotPetya would have triggered IOA detection regardless of hash-based signatures.
  • MITRE ATT&CK provides 14 tactics and over 600 techniques. Use it to identify detection coverage gaps prioritised by threat actors relevant to your industry, not as an exhaustive checklist.
  • Detection rules must be tested against real attack patterns. An untested rule that references the wrong log field or requires data that is not collected provides false assurance of detection capability. Run purple team exercises to validate deployed rules.
  • ATT&CK is versioned: v18 (October 2025) replaced per-technique detection notes with structured Detection Strategies and Analytics objects, and v19 (April 2026) split Defence Evasion into Stealth and Defence Impairment. Map coverage against a pinned version and confirm you collect the data each Analytic needs.
  • Detections are software and rot like software. Detection as code keeps the rule set in Git with peer review and CI tests (author, review, test, deploy, tune, retire) so a renamed field or a changed log schema fails a build instead of silently disabling a rule.
  • A SOC is a capability, not a room. SIEM (collect and correlate), SOAR (automate response) and XDR (integrated telemetry) now overlap; the in-house versus MDR choice turns on telemetry maturity, staffing, tolerance for a third party in your incident response, and data-residency rules. Purple teaming and threat hunting are the feedback loops that convert gaps into new detections.

Standards and sources cited in this module

  1. NIST SP 800-61 Rev. 3: Incident Response Recommendations and Considerations (April 2025)

    Current NIST incident response guidance aligned to CSF 2.0. Rev. 2 lifecycle language is legacy operational vocabulary, not the current publication structure.

  2. MITRE ATT&CK Enterprise Matrix

    14 tactics (TA0001-TA0043) and over 600 techniques with detection and mitigation guidance. ATT&CK Navigator for coverage gap analysis.

  3. MITRE ATT&CK release notes and updates

    Version history for the knowledge base, including the v18 move to Detection Strategies and Analytics objects and the v19 split of Defence Evasion. Pin the version you map coverage against.

  4. SANS Incident Handler's Handbook

    PICERL methodology: six-step incident handling process with decision guidance at each step.

  5. NotPetya technical analysis (ESET and Cisco Talos, 2017)

    EternalBlue/Mimikatz attack chain, propagation mechanism, and IOA versus IOC detection implications.

  6. WIRED: The Untold Story of NotPetya (2018)

    Maersk incident account: 45,000 PCs, 4,000 servers, $300 million impact, 10-day recovery.