Unit 5 / 11

Incident Response: Rapid Analysis, Playbook and Controlled Decision with Artificial Intelligence

Gains:

  • Understanding that artificial intelligence accelerates incident response with evidence summarization, timeline establishment, root cause sorting and playbook drafting, but the decision to isolate/lock/close/notify belongs to the authorized team.
  • Ability to evaluate containment options in terms of business impact and reversibility and not isolate critical infrastructure without measuring its impact
  • Ability to understand that recovery speed cannot overcome evidence preservation (forensic image, evidence chain) and that forensic steps cannot be transferred to artificial intelligence

When a security incident breaks, time is the enemy. As ransomware begins to spread, it means more machines are encrypted every minute; Once an account is compromised, the attacker digs deeper every minute. Incident response (IR for short) is the process of detecting a security incident, limiting it, cleaning it and returning it to normal. IR requires making decisions under pressure, with incomplete information, and with the clock ticking; That's exactly why it has to be both fast and disciplined.

AI brings invaluable speed to IR: quickly summarizes scattered evidence (logs, alerts, EDR data), establishes an event timeline, enumerates the possible root cause, produces a draft playbook (pre-defined step-by-step intervention guide) and outlines the post-intervention report. But the most critical decisions in IR — isolating a system from the network, locking an account, shutting down a server, deleting or preserving evidence — are decisions that can be reversible, cause business interruption, and impact judicial processes. These cannot be delegated to AI. AI is an analysis and drafting engine in IR; The decision on isolation, locking, closure and notification belongs to the competent response team.

Stages of incident response

A common framework in the industry (based on NIST) is six phases. At each stage, the help and limit of AI is different:

  1. Preparation: Playbooks, roles, communication plan are ready in advance. AI helps produce playbooks and drill scenarios — before the event, rather than at the moment.
  2. Detection & analysis: The event is verified and its scope is determined. AI summarizes the evidence, establishes a timeline, and lists root cause hypotheses. The decision is up to the analyst.
  3. Containment: Spread is stopped (isolation, account lock). This critical decision belongs to humans; AI only lists options and their effects.
  4. Eradication: Malicious, backdoor, compromised accounts are cleared. AI produces checklist; implementation and verification are human.
  5. Recovery: Systems are recovered and monitored in a controlled manner. The AI ​​recommends a monitoring plan.
  6. Lessons learned: Root cause, timeline, improvement. AI produces draft reports and improvement suggestions; He is on the approval team.

Terms: EDR (Endpoint Detection and Response — software that runs on endpoints, i.e. computers, and can detect and respond to suspicious behavior). The root cause is the actual starting point of the event ("How did they get in in the first place?"). Chain of custody is an uninterrupted record of who, how and when forensic evidence was collected; It is critical in the legal process. MTTR (Mean Time To Respond) is the measure of performance of the IR team.

Decision authority table

IR action

Role of AI

Who decides

Why

Evidence summarization, timeline

producer, accelerator

Analyst confirms

Risk of hallucinations

Root cause hypothesis

Sorter, suggestion

analyst

Context and evidence required

Playbook draft (previously)

sketch generator

IR leader confirms

Applicability

Isolate the system

Lists options only

authorized analyst

Business interruption, return

Account lockout

Gives impact analysis

authorized analyst

Wrong lock stops work

Evidence deletion/preservation

Warns, suggestions

IR leader + law

The judicial process is affected

Legal/regulatory notice

draft writer

Law + management

Legal liability

three mini cases

Case 1 — Quick summary under pressure. A ransomware alert comes in at 2:40 am. The analyst gives EDR and firewall logs (by anonymizing) to AI. AI builds a timeline every 90 seconds: "01:55 phishing attachment opened, 02:10 PowerShell downloaded, 02:30 lateral movement started, 3 machines affected." The analyst confirms this chain with the raw EDR record, isolates the 3 affected machines at his discretion, and stops the spread. AI reduced 20 minutes of evidence reading to 90 seconds; The analyst made the isolation decision.

Case 2 — Wrong isolation recommendation. In one case, the AI ​​says, “Traffic from IC_HOST_7 is suspicious, isolate.” The analyst checks the context: IC_HOST_7 is the organization's main authentication server; If isolated, all employees stop entering. Moreover, the reason for the traffic is a legitimate backup. The analyst does not isolate, alternatively only monitors the suspicious link. Lesson: AI's isolation recommendation cannot be implemented without knowing the business impact; For critical infrastructure, the decision is carefully human.

Case 3 — Accidentally destroying evidence. A team, in a rush to clean, asked the AI ​​"how do I clean this machine quickly?" he asks; The AI ​​offers to reinstall the system. But the machine contains forensic evidence (memory dump, attacker tools) that has not yet been collected; reinstallation would destroy the chain of evidence. The senior analyst first ensures that the image (forensic copy) is taken and then cleans it. Lesson: speed of recovery cannot trump evidence preservation; judicial steps are not delegated to the AI.

Weak prompt / Strong prompt

Weak prompt:

There is a ransomware attack, what should I do? Which machines should I turn off?

This prompt asks the AI ​​for a direct operational decision (which machine to shut down), gives no context, no business impact, and no evidence. The AI ​​gives a general or risky instruction; If applied blindly, work will stop or evidence will disappear.

Powerful prompt:

Your role: assistant providing ANALYSIS and OPTIONS to the incident response team. Don't make a decision; don't order "turn off/isolate that machine", just list the options and the possible impact of each. Process the following anonymous evidence: [EDR/log summary].Your task: (1) construct a probable event timeline, show what evidence you base each step on, mark the one with no basis as "[must be verified]", (2) list 3 root cause hypotheses, write how to test each, (3) list containment OPTIONS (isolation, monitoring, lockout) and write down the business impact/fallback risk of each; leave the decision to me,(4) remind me what steps are needed to preserve evidence BEFORE isolation.

Strong demand limits AI as an option provider, ties it to evidence, emphasizes business impact and evidence preservation, and leaves the decision to humans.

Copiable prompt templates

EVENT TIMELINE TEMPLATEConstruct a chronological event timeline from this anonymous IR evidence. Each line:[time] [event] [source of evidence]. Adding a step without timestamp or proof; mark the blank as "[missing - must be collected]". Decision/recommendation, ranking based on evidence only. Evidence: [paste]

ROOT CAUSE HYPOTHESIS TEMPLATEGenerate 3-5 most likely root cause hypotheses for this event. For each hypothesis: (1) the evidence on which it is based, (2) additional evidence to be collected to confirm it, (3) any other traces expected if it is true. Do not declare any of them certain; Use probability language. Event summary: [paste]

CONTRACTION OPTION TEMPLATEList the containment OPTIONS for the following situation (isolate / monitor / lock / segment). For EACH option: business impact, difficulty of return, impact on evidence, forensic risk. Don't give me orders; I will make the decision. It is especially suitable if critical infrastructure (identity, DNS, backup) is involved. Status: [paste]

PLAYBOOK DRAFT TEMPLATE (pre-event preparation)For the following scenario [e.g. work email compromise] write a step-by-step interventionplaybook DRAFT: trigger, roles, containment, destruction, recovery, contact, notification steps. Put a "[human approval]" checkmark next to each critical decision. This draft does not come into force without the approval of the IR leader.

Common mistakes

  • Let AI make operational decisions. The question “Which machine should I turn off” belongs to the team that knows the business impact, not to the AI; AI only offers choice and influence.
  • Cleaning up evidence without collecting it. Destroying forensic evidence for the sake of speed is irreversible; Dump image and memory before isolation/cleanup.
  • Importing the timeline into the report without validating it. AI can make up the chain of events; Confirm each step with raw evidence.
  • Isolating critical infrastructure without thinking. Isolating identity, DNS, backup server can bring the entire organization to a halt; measure the effect first.
  • Writing the Playbook for the first time at the time of the incident. Playbook is made during the preparation phase; Trying to write from scratch at the time of the incident produces panic and errors.
Tip: In IR, always tell the AI ​​"list the options and their effects, let me decide." This single sentence turns the AI ​​from a dangerous “autopilot” into a safe “advisor.”
Caution: Isolating a system, locking an account or deleting evidence can have irreversible consequences and affect judicial/legal processes. These decisions are made with the approval of the authorized response team and, when necessary, legal and management; The AI ​​output is a suggestion, not an order.

In summary

Incident response requires both quick and disciplined decision-making under pressure and with the clock ticking. AI greatly increases this speed with evidence summarization, timeline building, root cause sorting, and playbook drafting. But IR's most critical actions—isolation, account lockout, system shutdown, evidence deletion/preservation, legal notice—are irreversible decisions that lead to business interruption and legal consequences and cannot be delegated to the AI. In each of the six phases (preparation, detection, containment, destruction, rescue, lesson), AI produces analysis and blueprint; The decision belongs to the authorized team. Two golden rules: cleanse evidence without preserving it, isolate critical infrastructure without measuring its impact.

Application task

Choose a case scenario (e.g. account takeover after phishing). Outline an analysis from AI with “Event Timeline” and “Root Cause Hypothesis” templates; Write down the evidence you will use to verify each timeline step. Then, with the “Limiting Option” template, once you have three limiting options, evaluate the business impact of each yourself and note which one you would choose and why (and what you would do first to preserve evidence).

checklist

  • [ ] I limited AI as an option/analysis server; I made the operational decision.
  • [ ] I verified every step of the timeline with raw evidence, weeding out fabrication.
  • [ ] I planned the evidence collection (image, memory dump) step before isolation/cleaning.
  • [ ] I first measured the business impact of isolation for critical infrastructure.
  • [ ] I have treated root cause hypotheses as possibilities to be tested, not as definitive.
  • [ ] I prepared the Playbook before the event and submitted it to the IR leader for approval.
  • [ ] I have included legal/administrative approval in cases where legal notification is required.