D2 Lessons learned

Principle D2 asks whether each significant incident is traced to its cause and whether the fix is tracked to completion. Assessors test for a formal investigation process and improvement actions with evidence of closure.

On this page

D2 lessons learned: what the NCSC CAF expects after an incident

When a significant incident closes, someone usually asks whether anyone knows why it happened and whether anything changed as a result. Principle D2 of the NCSC Cyber Assessment Framework (CAF) 4.0 expects a yes to both: causes must be understood, and remediating action must protect against future incidents. The principle has two contributing outcomes. D2.a Post Incident Analysis asks whether the organization investigates incidents to establish what happened and why. D2.b, Using Incidents to Drive Improvements, asks whether those findings lead to changes in systems, processes and controls. An assessor is likely to mark D2.a as not achieved where the organization usually cannot resolve incidents to a root cause or has no formal process for investigating causes. The NCSC Cyber Assessment Framework 4.0 PDF sets out the outcome wording.

Assessors do not score D2 by looking for a post-incident template. Each contributing outcome is judged as achieved, not achieved or, for some outcomes, partially achieved, using indicators of good practice as a guide to expert judgement. The NCSC describes the CAF as outcomes-based and not a tick-box checklist, so a completed review form that never changes a control will not carry the outcome. Trace the last few significant incidents from start to finish. Check for a written cause, a named owner for every remediating action, and evidence that the change was made and tested. If the trail stops at the trigger, expect the assessor to reach the same conclusion.

What makes D2 hard is rarely the analysis itself. Reviews are skipped once service is restored and pressure moves to the next task. Root cause work is a skill many response teams have not practised, so reviews stop at the trigger, such as a phished user or a failed patch, and never reach the control that allowed it. Evidence is spread across chat threads, ticket comments, monitoring exports and memory, so by the time a review starts, the timeline is already disputed. Before the next incident, decide where the timeline, decisions and remediation tasks will be recorded and who owns them. Case tools such as DFIR-IRIS keep a case timeline alongside its evidence, and wiki platforms such as XWiki keep page history, but the ownership decision matters more than the product.

Which incidents, systems and teams fall under D2

Principle D2 only works if the organization decides, in writing, which incidents get reviewed, which systems they cover and who takes part. The five decisions below set the size of the work, and each one changes how much analysis, coordination and record keeping the review requires.

Written incident review threshold

Write down the test that sends an incident to a formal post-incident analysis, for example any incident that affects an essential function or any incident whose cause is still unknown after triage. An unwritten test means reviews depend on who remembers to call one. The CAF 4.0 indicators for D2.a treat having no formal process for investigating causes as a sign of not achieved, so the threshold is the first document an assessor will ask for.

CAF 4.0 text

Systems supporting essential functions

Map which systems support each essential function, then decide whether each review covers only the named application or also its identity provider, logging pipeline, backups and administrative consoles. The wider scope is the one that explains how an intruder moved, and D2.a asks whether the cause was actually found. Confirm the list with the people who run the platforms, because asset inventories often leave out shared services that failed during an incident.

Supplier-caused incidents

Decide whether an incident that starts at a supplier, such as a hosted service or managed provider, is in scope when it affects an essential function. Your organization still owns the outcome, even when the cause sits outside your estate. Check that the contract gives you access to supplier logs, timelines and root cause reports, because requesting those rights during an incident delays the analysis.

Teams that must contribute

Name a contributor from incident response, IT operations, security monitoring and each product owner whose service was affected. Incident response keeps the timeline, operations holds change and configuration history, monitoring holds the detection record, and product owners decide which fixes ship. A review without all four groups tends to find a root cause that describes only one part of the failure.

Case records containing personal data

Case records often hold names, account identifiers and message content, so choose the storage location before the first review. A restricted case tool such as DFIR-IRIS keeps each case with an audit trail, but read access still needs a deliberate role model. Confirm who can read each case and wiki page, and how deletion follows your retention rules. BookStack offers role-based permissions and XWiki keeps version history, so check which of these your lessons learned space uses.

DFIR-IRIS docs

How an assessor tests D2.a and D2.b

This table sets out how an assessor tests D2.a Post Incident Analysis and D2.b Using Incidents to Drive Improvements, with one test area per row. Read each row as the question the assessor asks: what was sampled, who was interviewed, what proof exists and where the chain usually breaks. The final row shows that the judgement of achieved, partially achieved or not achieved comes from consistent results across sampled incidents, so one strong document carries little weight.

Test areaAssessor approachEvidence requestedCommon findings
Sample incidentsSelect closed incidents, including significant ones, and trace each through its review.Case records with timelines, severity ratings and closure dates.Samples drawn only from minor or recent incidents, so older failures are never tested.
Interviews with respondersAsk responders and incident owners how causes were established and what changed afterwards.Named contacts for each sampled incident and the reviewer's own account of the analysis.Responders describe the fix but cannot say which cause the review identified.
Walkthrough of review processFollow the documented review method from trigger to sign-off, then check practice matches it.Review procedure, templates, approval records and criteria for when a review is required.Procedure exists on paper, but reviews are skipped for incidents below an informal threshold.
Root cause write-upsCheck whether each analysis goes beyond the triggering event to the conditions that allowed it.Analysis documents that name contributing factors, not only the immediate fault.Reviews stop at the symptom, such as 'user clicked link', with no control gap named.
Action register and closure proofTrace each action from the review to a completed change and confirm it was verified.Action register entries with owner, due date, status and evidence of closure.Actions with no owner or due date, or closed with no evidence the change happened.
Lessons reaching controlsTest whether lessons updated policies, detections, runbooks, training or architecture.Revised control documents, change tickets and dated versions showing the update.Lessons stay in the review report and never reach the controls that would stop recurrence.
Overall judgementCombine results across sampled incidents to assign achieved, partially achieved or not achieved.Consistent results across the sample, supported by evidence for each incident tested.One well-run review is treated as proof for the whole incident population.

Implementing D2 lessons learned in five steps

Five steps turn each incident into evidence that the CAF D2 outcomes can be assessed. They cover the threshold that decides what gets reviewed, one case record per incident, a written review procedure, actions that reach change control, and one completed review packaged for an assessor. Each step names the output to produce, so the sequence can run on the next incident or on a rehearsed one.

  1. Define the incident threshold and review trigger

    The security lead and the service owner agree which events count as incidents that need a review, such as a confirmed compromise, a service disruption above an agreed impact level, or a near miss that exposed a control gap. They also set the trigger that starts a review and name who can call one. Output: a one-page threshold and trigger statement, approved by the accountable executive and stored with the incident response plan. The step is done when every incident handler can state, without checking, whether a given event needs a review.

  2. Open one case record per incident

    Each incident gets one case in the investigation platform, holding its assets, indicators, tasks and evidence in a single record. DFIR-IRIS is one open-source option: it keeps each case as one record with a full audit trail, triages alerts from SIEM, EDR and REST sources into cases, and builds a consolidated investigation timeline. Build the timeline from first detection through containment and recovery, linking each entry to its source. Output: a case template with mandatory fields for dates, impact, detection source and owner, plus a populated timeline. The step is done when a reviewer can rebuild the order of events from the case alone.

  3. Write the post-incident review procedure

    Write the procedure that every review follows. It sets when a review starts, the root cause method your team uses (for example, five whys or a fault tree, agreed in advance), and the required participants: the incident lead, the owner of the affected service, a security engineer and an approver who can authorize change. It also requires each review to end with a root cause or a documented reason one could not be found. Store it in XWiki, which keeps every change with author and date, or in BookStack, which can set permissions per page. Output: an approved, versioned procedure. Done when the approver has signed it off.

  4. Connect actions to tracker and change control

    Each improvement action from a review goes into an action register with one named owner, a target date set by the owner and approver, and written closure criteria that describe the evidence proving the fix works. Actions that change systems pass through your existing change control, so each change is approved, tested and recorded. Use the tracker your organization already runs so that no second register appears. Output: an action register with columns for owner, linked change record, closure criteria and closure date. The step is done when no action can close without the evidence its criteria name.

  5. Run one review and assemble evidence

    Run one review end to end using the procedure, from case timeline through root cause to closed actions. Then assemble the evidence pack an independent assessor would request: the threshold statement, the case record and timeline, the review minutes and root cause analysis, the action register with change records, and closure evidence. Use the platform's reporting to generate the case report, and record SHA-256 verification and chain of custody for any preserved artifacts. Output: a closed sample review. Done when one action has closed on evidence and the path from incident to fix can be traced without a meeting. Only an independent assessor or certification body issues a report or attestation.

How an incident becomes a closed improvement

The flow starts when an incident is detected and triaged into a case, where alerts and evidence are assembled into one timeline. Root cause analysis then reaches a decision: if the cause is not yet known, the team returns to further analysis before moving on. Once the cause is known, the post-incident review raises improvement actions. The action tracker is where D2.b evidence is created, so check that each action has an owner, a status and a verification step before it closes. Verified actions then feed lessons back into response plans and controls, which closes the loop.

Stages from detection to verified lessons, with a decision loop after root cause analysis.

D2 lessons learned evidence that passes an audit

Assessors testing principle D2 look for a connected chain of records that runs from each incident to its cause, its review and its fix. The five artifacts below depend on each other, so a gap in one shows up in the others. Update each one as the incident moves through the workflow, so the chain is complete before an assessor asks for it.

Incident case records with full timelines

Each incident gets one case record that holds the affected assets, indicators of compromise, tasks and linked evidence, with an audit trail of every change. Build the investigation timeline from that record, covering detection, containment, recovery and closure, with each time taken from its source log. A full timeline with source-log times lets an assessor check the sequence without relying on memory. DFIR-IRIS is one open-source option for this structure. To keep it current, close each new incident inside the same record so the timeline and final status are complete before the case is marked closed.

DFIR-IRIS docs

Root cause analysis write-ups

Each write-up names the cause of the incident, sets out the evidence that supports it, and records why other explanations were ruled out. This artifact answers the D2.a test, where a not achieved outcome includes usually being unable to resolve incidents to a root cause. Name the cause and the reasoning in every write-up, and link each root cause to the control weakness that allowed it. Keep the write-up in the incident record and revise it when new evidence appears, dating each revision. Confirm with your assessor how they expect contributing factors to be recorded.

CAF 4.0 PDF

Post-incident review minutes

Minutes record the date, the attendees by name and role, the incident reviewed, what was learned and each decision taken. An assessor will want to see that the people who run the affected service and the people who own the risk took part, or that their absence was noted. Attendees and decisions must be traceable, so every decision carries a named owner and a reference to its entry in the action register. Store the minutes with the incident record so the review can be reached from the incident in one step. Ask your assessor whether minor incidents need minutes too, or only major ones.

Improvement action register

The register lists every corrective action from an incident with its owner, due date, status and closure evidence. Closure evidence for each closed action carries the weight here. A changed configuration, an updated runbook or a retest record shows the fix took effect. A note that the task is done shows only that someone said so. Review open actions on a fixed cadence and record each due date change with a reason, so an assessor can see whether incidents drive improvement over time. Set that cadence in the review procedure itself.

Review procedure and runbook versions

Keep the review procedure and each runbook under version control so an assessor can see what changed, when, by whom, and which version was in force when a given incident was handled. XWiki keeps every page change under version control and lets you compare any two versions or roll back to an earlier one. The version in force at the time of each incident is the link assessors need to trace a change back to a lesson. BookStack roles can restrict who edits each shelf, book, chapter or page, which helps show that only approved owners changed a runbook. To keep it current, record the runbook version that each post-incident change produced.

XWiki version control

What D2 lessons learned costs in money and effort

This table compares the six cost components that a D2 lessons learned program usually carries, from tooling to auditor sampling. Read each row for whether the cost is one-time or recurring, what pushes it up, and how to reduce it. No figures are given here, so ask any quote for each component separately and confirm the NCSC CAF licensing position with your regulator or assessor.

Cost componentOne-time or recurringWhat drives it upHow to keep it down
Tooling or licensesRecurring. Commercial licenses renew, and open-source tools remove license spend but still carry hosting and support effort.Number of seats, number of teams using the case tool, and modules or integrations with SIEM and EDR feeds.Compare license models per user and per instance. Count hosting and support effort in the same column.
Engineering time to configure case and tracking toolsOne-time for initial setup, with recurring effort for changes to workflows and integrations.Number of alert sources, custom fields, playbooks and systems in scope for case records.Limit the first build to one incident type, then extend it. Reuse templates for timelines and evidence fields.
Responder time for reviewsRecurring, tied to each incident and each post-incident review.Incident volume, number of teams involved, and how many root cause reviews each incident requires.Use a short review template. Hold full reviews for significant incidents and record actions in one tracker.
Evidence upkeepRecurring, because logs, case records and review outputs must stay current and retrievable.Number of systems in scope, retention periods, and how many teams keep their own records.Use version history and role-based access on the wiki so each change has an owner and a date.
External forensic or review supportUsually one-time per engagement, sized to the incident or review scope.Incident complexity, third-party components involved, and whether specialist forensic skills are needed in-house.Agree scope and deliverables in writing before engaging. Ask for each phase to be quoted separately.
Auditor samplingRecurring at each assessment cycle, with sample size set by the assessor.Number of incidents in the period, number of systems in scope, and how many reviews the assessor samples.Keep one indexed record per incident so samples can be produced quickly. Confirm sample expectations early.

Self-hosted open-source tools that support D2 evidence

Three self-hosted tools can hold the records that D2 asks for: the investigation, the lessons and the review write-ups. Each one covers a different piece of the post-incident trail, so an assessor can follow an incident from the alert to the change that followed. None of them makes the organization compliant. The organization still owns its controls, and a reader should confirm each tool's fit and license terms in their own environment.

DFIR-IRIS for incident cases

One case record per incident is the core of DFIR-IRIS. Each case holds assets, indicators of compromise, tasks and evidence, with a full audit trail of who did what. Alerts from SIEM, EDR and REST sources can be triaged into cases, and a consolidated investigation timeline shows the sequence needed for post-incident analysis under D2.a. Evidence is logged with SHA-256 verification and chain of custody, and reports are generated from case data. Check that the audit trail and hashes meet your evidence rules, and confirm the LGPL-3.0-or-later license terms with counsel.

DFIR-IRIS docs

XWiki for review procedures

XWiki keeps every change to a page under version control, recording what changed, when and by whom. Users can compare any two versions, and any earlier version can be restored. That history suits the review procedure and the lessons register, since an assessor can see when a corrective action was recorded, edited or dropped. Decide who may edit the register, then check how long your evidence rules require version history to be kept. Confirm the LGPL-2.1-or-later license terms and hosting model with the project or a qualified adviser before adopting it.

XWiki version control post

BookStack for controlled write-ups

BookStack gives each user abilities from the roles assigned to them, and permissions can be overridden at the shelf, book, chapter or page level. That lets you open one incident write-up to a named group without exposing the rest of the shelf. Review write-ups often contain personal data, customer names and details of weaknesses, so read rules matter as much as the content. Map each role to the people who need a lessons-learned review, then test that a restricted page stays hidden from everyone else. Confirm the MIT license terms and how role assignment is managed in your environment before rollout.

BookStack roles docs

Who runs the review, who prepares evidence, who judges it

Your organization owns the incident process from detection to closure. Your people decide root causes, approve the actions that follow and stay accountable for every control a lesson changes. Outsourcing here is usually limited to specialist forensic help on particular incidents, which is a separate engagement from the review itself.

  • Process ownership: Your incident manager sets the scope of each post-incident review and decides when an incident is closed.
  • Root cause decisions: Your technical leads record the root cause in writing, including where the analysis stopped and why.
  • Action approval: Named owners accept each remediation action, with a target date and a formal risk acceptance for anything deferred.
  • Changed controls: Control owners update the policies, runbooks and configurations that a lesson changed, then keep them in the normal review cycle.
  • Staff time: Reviews take the time of your analysts and managers, an internal cost that never appears on a partner invoice.

Check that each lesson in your register names the person who owns the decision and the control it changes, because the assessor will ask for those names.

Where organisations fall short on D2 and how to close it

Principle D2 asks two things: that incidents are understood to their causes, and that the resulting fixes stop recurrence. The gaps below show where that chain usually breaks, from the closure decision to the plans that should change.

Incidents closed without a root cause

Teams often close a ticket once service is restored and never record why the incident happened. Under D2.a, usually being unable to resolve incidents to a root cause is a not achieved indicator, as is having no formal process for investigating causes. Fix: make root cause a required field in the case record, and allow closure only with a recorded cause or a documented reason the cause could not be found.

CAF 4.0 PDF

Lessons kept in chat and email

Lessons from an incident often survive as messages in a channel or an inbox thread, where new staff and auditors cannot find them. Lessons that sit outside the case cannot be traced to the evidence, tasks or timeline that produced them. Fix: capture each lesson as a field or task in the incident case itself, so it stays with assets, indicators, evidence and the audit trail. DFIR-IRIS keeps each case as one record of this kind.

DFIR-IRIS docs

Actions with no owner or proof

Post-incident actions frequently appear in a review as a sentence with no named person, no due date and no way to show it was done. Without closure proof, the same weakness can recur and nobody can show the improvement worked. Fix: give every action a named owner, a due date and an artefact that proves closure, such as a configuration export, a test result or a changed runbook, and do not close the action until that artefact is attached to the case.

Review write-ups edited without history

A post-incident review is often revised after a debate, a regulator question or a manager's comment, and the earlier wording disappears. Reviewers reading the final version cannot tell what the organisation first concluded or who changed the conclusion. Fix: keep reviews in a wiki or document system with version control, so each edit records what changed, when and by whom, and any two versions can be compared or restored.

XWiki version control

Lessons missing from response plans

Lessons that never reach the incident response plan, playbooks or security controls leave D1 and D2 disconnected. The next incident then runs on the old procedure, even though the review already identified what failed. Fix: check that each lesson maps to a named plan section or control change, that the plan owner signs off the change, and that the next exercise tests the updated steps. This is the link to D1 response and recovery planning.

D2 lessons learned cost, timing and effort questions

What does it cost to meet CAF principle D2?

Cost depends on the size of the scope, the number of systems and incident sources involved, and how much incident analysis already exists. The spend falls into three parts: the organization's own staff time, implementation partner work to prepare systems, processes and evidence, and any independent assessment the organization chooses to buy. Independent assessors charge for their judgement, and DeployOpen never issues CAF outcomes. One-time costs usually include reviewing current incident handling, designing the post incident analysis process and setting up case records. Recurring costs include reviewing each significant incident, tracking improvement actions to closure and refreshing evidence for each assessment cycle. DeployOpen does not publish a price list. A quote follows from the written scope, so ask for a list of systems, incident sources, deliverables and exclusions, with one-time and recurring items priced separately.

How long does it take to get D2 process and evidence ready?

Timing depends mainly on how much usable evidence already exists and how often the organization has had incidents to review. The main pace setters are the state of current incident records, whether a formal process for investigating causes already exists, how many systems and teams the review touches, and how quickly remediation owners can act. If no formal investigation process exists, the first phase is design and agreement, which takes longer than refining an existing one. Evidence also needs time to build up, because D2 looks at how incidents were analyzed and what changed afterwards. Ask for a written plan with phases, named dependencies on your staff and change windows, and the points where you will review progress. DeployOpen agrees timelines in writing before work starts, so you can check each phase against your own calendar.

How much time do our own staff need for D2 work?

Most of the work depends on your own people, because only they can confirm what happened during an incident, what was decided and what changed afterwards. Typical contributors include incident responders who can walk through timelines, service owners who must accept root cause findings, and engineering leads who own remediation actions. Security or compliance staff usually own the process document, the review sign-off and the evidence index. An implementation partner can prepare templates, draft case records and configure tooling, but it cannot replace the people who handled the incident. The written scope should name each role, the sessions or hours expected from each person, and who approves the final process. Confirm early that these people can make time during the engagement, because delayed reviews usually set the overall pace.

Can our internal team handle CAF D2 lessons learned in-house?

A capable internal team can often do D2 in-house, but the real question is capacity and independence as much as skill. The team needs people who can run structured root cause analysis, keep investigation records complete and track improvement actions to closure. Independence also matters, because people who ran the response may miss causes that an outside reviewer would question. Consider whether your team has time to build the process while still handling live incidents. An implementation partner can prepare the process, tooling and evidence, and an independent assessor judges the result. Whichever route you choose, ask for a written scope that states what the internal team owns, what the partner delivers and what evidence each side keeps. Check the choice against your regulator's guidance on using the CAF.

Does completing a CAF assessment produce an NCSC certificate?

No. The CAF is not a certification scheme, and the NCSC states that achieving a CAF profile must not be presented as NCSC certification or endorsement. A CAF assessment produces judgements for each contributing outcome, such as achieved, not achieved or partially achieved, and those judgements are the output to expect. Certificates in this area come from other schemes. The NCSC Cyber Resilience Audit scheme assures companies that deliver independent cyber audits based on the CAF, so ask who issued any report or certificate you receive and under which scheme. DeployOpen prepares systems, controls and evidence for assessment, but it does not issue audit reports, attestations or certifications. Those come from an independent auditor, assessor or certification body.

Can a security tool alone make us meet CAF D2?

No. A tool can store the evidence, but D2 depends on whether the organization investigates incidents to a root cause and acts on what it finds. The NCSC lists not achieved indicators for D2.a that include usually being unable to resolve incidents to a root cause and having no formal process for investigating causes. Case management platforms such as DFIR-IRIS can keep each case as one record with assets, indicators, tasks, evidence and a full audit trail, and they can build a consolidated timeline and generate reports from case data. Wiki tools can keep lessons learned under version control. These features support the process but cannot create it. Ask for a written scope that covers process design, staff roles, training and review of real incidents, with any tool configured to match. Confirm each capability in the vendor documentation before relying on it.

How DeployOpen prepares D2 lessons learned evidence

DeployOpen works on D2 Lessons learned by preparing the systems and records that show how your team investigates incidents, finds root causes and feeds fixes back into controls. Your organization owns its CAF assessment and its conclusions, and an independent assessor makes the judgment. DeployOpen does not issue assessment reports or certificates.

How we scope

  • The written scope names the D2.a and D2.b outcomes and the systems whose incidents are in view.
  • Scope also lists which incident sources, such as SIEM, EDR and ticketing data, feed post-incident review.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we build

  • We deploy self-hosted case management, such as DFIR-IRIS, so each incident keeps one record of assets, indicators, tasks and evidence.
  • We set up evidence logging with hash checks and chain of custody fields, after confirming the platform supports them.
  • We set up a versioned knowledge base where root cause reviews and corrective action records keep a change history.

How we hand over

  • We document the investigation workflow, triage rules and review templates so your staff can run them after handover.
  • Handover covers access roles, admin settings and how post-incident reviews are recorded for the assessor.
  • You receive an evidence index organized by D2.a and D2.b, which your independent assessor can review.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial work is delivered.
  • Retainers can keep incident tooling upgraded and keep process records current as incidents and lessons change.
  • Confirm with your independent assessor which evidence they need for D2.a and D2.b before the platform is built.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.