Incident Response and Management · Topic 6 of 6
Remediation and Root Cause Analysis
After an incident, remove the attacker, close the gap and find the root cause with timelines, five whys and fishbone diagrams, then verify the fix.
- 5 min
- Remediation removes the attacker's foothold and fixes the weakness used.
- RCA looks for the underlying reason, not just the first visible fault.
- Common RCA methods are timeline analysis, the five whys and fishbone diagrams.
What it is
Remediation after an incident means removing the attacker's access and fixing the weaknesses that allowed the attack. Root cause analysis (RCA) asks why the incident was possible at all, so the same failure does not repeat.
Cleaning up the visible damage is not enough. If the cause stays, the attacker, or a different one, can return through the same door.
How it works
Remediation actions
Actions depend on the incident, but typical ones are listed here.
| Area | Typical action |
|---|---|
| Malware and persistence | Remove malware, scheduled tasks, startup entries and rogue services, or rebuild from a trusted image |
| Accounts and credentials | Reset passwords, revoke sessions and tokens, rotate keys and secrets, remove rogue accounts |
| Vulnerabilities | Patch the exploited flaw and similar systems, fix misconfigurations |
| Network | Block malicious addresses and domains, tighten firewall rules, improve segmentation |
| Access control | Enforce multifactor authentication, reduce excess privileges |
| Detection | Add rules for the techniques seen, so a repeat is caught early |
| Data | Restore damaged data from clean backups, and assess the exposure of stolen data |
Rebuild versus clean. Cleaning a system leaves doubt about hidden persistence. When there is any sign of deep compromise, rebuild from a known good image and restore only verified data.
Credentials need special care. Resetting a password is not enough if the attacker holds a token, a key or a forged ticket. Revoke active sessions and rotate shared secrets, and in a directory service compromise, assume that many accounts are affected.
Verifying remediation
- Rescan or recheck the systems to confirm the weakness is closed.
- Hunt for leftovers using the indicators from the incident, in logs and on endpoints.
- Monitor closely for a period after recovery, with extra alerting on the affected accounts and systems.
- Test the controls that failed, to prove they now work.
- Confirm business function with system owners.
Releasing a system from isolation
An isolated system stays cut off until the incident lead approves release. Typical criteria and steps are:
- Confirm it is clean: an EDR or antivirus scan and a search for the incident's indicators find nothing, or the system was rebuilt from a trusted image.
- Confirm the cause is closed: the exploited flaw is patched and the persistence is removed.
- Reset credentials: reset passwords, revoke sessions and rotate keys that the system used.
- Restore access in stages: allow only management and monitoring traffic first, then the needed segments, then normal access. Re-enable disabled accounts last.
- Monitor closely: add extra alerting for the host, and be ready to isolate it again if an indicator returns.
- Document the approval, the time and the checks in the incident log.
Finding the root cause
A symptom is what you see, such as encrypted files. A contributing factor helps the attack succeed or spread, such as a flat network. The root cause is the underlying reason that, if fixed, would have prevented the incident, such as a missing patch process.
Common analysis methods:
| Method | How it helps |
|---|---|
| Timeline analysis | Orders events from several sources to find the first point of compromise |
| Five whys | Ask "why" repeatedly, each answer leading to a deeper cause |
| Fishbone (Ishikawa) diagram | Groups causes into categories such as people, process, technology and environment |
| Attack path mapping | Traces the route the attacker took and compares it with MITRE ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge) techniques |
An example of the five whys:
Why were files encrypted? Ransomware ran on a file server.
Why did it run there? An administrator account was used from a workstation.
Why was that account usable? Its password was stolen by malware on the workstation.
Why did the malware get in? A user opened a malicious attachment that the filter did not block.
Why did the filter miss it? The email gateway rules were not updated and no sandbox was in use.
The last answer is a process and control gap. Fixing it prevents a family of future incidents, whereas fixing only the first answer would not.
Be careful to avoid blame. A cause such as "a user clicked a link" is a poor root cause, because it leads to blaming a person. A better cause is a missing control that should have caught the mistake.
Link to lessons learned
The findings feed back into preparation. Update the incident response plan, playbooks, detection rules, hardening standards, training and risk register. Track each corrective action with an owner and a date, and check later that it was done.
Connection to other processes
Remediation of exploited vulnerabilities joins the vulnerability management process. Changes still follow change management, though emergency changes may be fast tracked and documented afterwards.
When a question asks for the best long term action after an incident, look for the answer that fixes the underlying cause or process gap rather than only removing the malware.
What to remember for the exam
- Remediation removes the attacker's foothold and fixes the weakness used.
- RCA looks for the underlying reason, not just the first visible fault.
- Common RCA methods are timeline analysis, the five whys and fishbone diagrams.
- Rebuilding from a trusted image is safer than cleaning a deeply compromised system.
- Reset credentials and also revoke sessions, tokens and keys.
- Verify the fix by rescanning, hunting for indicators and monitoring.
- Corrective actions need an owner, a due date and follow up.
- Lessons learned update plans, playbooks, detections and training.
- A root cause is a process or control gap, not a person.
Common mistakes
Stopping at the first cause. Stopping at "malware executed" misses why it was able to execute.
Resetting only passwords. Stolen tokens or keys can still work, so revoke and rotate them.
Declaring success without verification. A fix that is not checked may have failed or missed some systems.
Blaming individuals. It hides the control failure and discourages people from reporting problems.
Keeping lessons in a report only. Without tracked actions, the same weakness stays.
Check yourself
What is the difference between a symptom and a root cause?
A symptom is the visible effect, while the root cause is the underlying reason that made the incident possible.
Why might rebuilding be better than cleaning an infected server?
Hidden persistence is hard to rule out, so a rebuild from a trusted image gives more confidence.
Name one method for finding a root cause.
The five whys, timeline analysis or a fishbone diagram.
Topic 6 of 6 in Incident Response and Management
Test yourself on Incident Response and Management
The full CompTIA CySA+ CS0-004 question bank has 654 questions, with timed practice exams and an explanation for every answer.
This study guide is independent and is not affiliated with, endorsed by, or sponsored by CompTIA. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.