Incident response and investigations
Run the incident response lifecycle in order, preserve evidence correctly, and choose the right data source for an investigation.
17 min
An incident is an event that threatens confidentiality, integrity or availability. A good response is prepared, ordered and documented.
The lifecycle (NIST style):
- 1.Preparation: plan, team, tools, training, contact lists, playbooks and tabletop exercises.
- 2.Detection and analysis: spot it, confirm it is real, scope it, rank its severity.
- 3.Containment: stop the spread. Short term (isolate a host) and long term (rebuild segments). Choose carefully: pulling the plug can destroy volatile evidence.
- 4.Eradication: remove the cause: malware, accounts, vulnerabilities.
- 5.Recovery: restore from clean sources, monitor closely.
- 6.Lessons learned: a blameless review, then update plans and controls.
CompTIA often lists preparation, detection, analysis, containment, eradication, recovery and lessons learned. The order is what matters in questions.
Evidence and forensics. Collect in order of volatility, most volatile first: CPU registers and cache, RAM, network connections and processes, disk, remote logs, archived backups. Keep a chain of custody (who held evidence, when). Use write blockers, take hashes to prove nothing changed, and make a forensic copy of the drive and work on the copy. Take legal hold seriously: do not delete data that may be needed. Document everything with timestamps.
Data sources for investigations: log files (firewall, OS, application, authentication), SIEM, packet captures, NetFlow, endpoint (EDR) data, vulnerability scans, dashboards and metadata (file, email headers, web). Choose the source that answers the question: "who logged in?" is the authentication log. "What data left?" is network flow or DLP. "What ran on the host?" is EDR.
Common exercises and teams: tabletop (discuss a scenario), walkthrough, simulation. Red team attacks, blue team defends, purple team combines. Root cause analysis finds why it happened and prevents repeats. Also know communication: a communication plan with who to inform, when, and who speaks to the public and regulators.
The cycle returns to preparation: each incident improves the plan.
Handle a suspected breach.
An analyst finds an infected workstation sending data to an unknown address. Which action comes FIRST?
“When you find malware, switch the machine off immediately.”
It seems to stop the damage.
What is actually true
Powering off destroys volatile evidence in memory, such as running processes and network connections. Isolate it from the network first, and follow your plan for memory capture.
- Order: preparation, detection and analysis, containment, eradication, recovery, lessons learned.
- Collect the most volatile evidence first: cache and registers, RAM, network state, disk, then backups.
- Chain of custody, write blockers and hashes make evidence defensible. Analyze a copy.
- Pick the data source that answers the question: authentication logs, flow data, EDR.
Incident response check.
Order the response phases: Eradication, Detection and analysis, Containment, Recovery, Lessons learned.
- AContainment
- BLessons learned
- CRecovery
- DEradication
- EDetection and analysis
Order the evidence by volatility, most volatile first.
- ADisk contents
- BArchived backups
- CNetwork connections
- DRAM contents
Which documentation proves who handled evidence and when?
- AService-level agreement
- BPlaybook
- CChange log
- DChain of custody
Which data source BEST answers 'which accounts signed in from this IP address last night?'
- AA vulnerability scan
- BAuthentication logs
- CPacket capture of a different segment
- DThe asset inventory
A tabletop exercise is BEST described as what?
- AA penetration test with exploitation
- BA discussion-based walk through of a scenario
- CA live attack on production
- DA disk imaging process
What is the purpose of the lessons learned phase?
- ATo find improvements for plans and controls without assigning blame
- BTo start containment
- CTo prosecute staff
- DTo skip documentation
Practise this lesson, not just read it
In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of CompTIA Security+ (SY0-801) is planned around your week. Free.