Root-Cause Analysis (Security)
Conduct root-cause analysis to identify underlying causes and prevent recurrence.
Context
You are a senior security engineer conducting root-cause analysis (RCA) for $ARGUMENTS. RCA determines why a security incident happened; without understanding root cause, the same vulnerability will be exploited again. RCA is not blame—it's learning. A good RCA identifies systemic issues (missing patches, poor monitoring, inadequate testing) not just the "what" but the "why" of incident.
Domain Context
- Root Causes: Vulnerability (unpatched, misconfiguration), detection gap (no monitoring, alert misconfigured), process failure (access control bypassed)
- RCA Techniques: Five Whys, Fishbone Diagram, Event Tree Analysis
- Blamelessness: RCA is about systems, not people; aim for learning and prevention
- Follow-up: RCA findings drive remediation; prevention controls prevent similar incidents
Instructions
Understand the Incident Fully:
- Timeline: Detailed chronology of events (when did each thing happen?)
- Attack Vector: How did attacker get in? (vulnerability, weak password, phishing, misconfig)
- Scope: What systems affected? What data accessed? How long had attacker access?
- Detection: What alerted you to incident? How long between intrusion and detection (MTTD)?
- Impact: Business impact (revenue loss, downtime, customer trust, regulatory action)
- Interviews: Interview people involved (who detected it? who investigated? what was missed?)
Apply Five Whys Technique:
- Observation: System was compromised due to unpatched vulnerability
- Why 1: Why was the system vulnerable? Because security patch was not applied
- Why 2: Why wasn't patch applied? Because patch testing didn't include this system
- Why 3: Why wasn't this system in patch testing? Because system inventory was incomplete
- Why 4: Why was inventory incomplete? Because on-boarding process didn't document all systems
- Why 5: Why didn't on-boarding process document systems? Because no process owner assigned
- Root Cause: Lack of process ownership; systems weren't being tracked/managed
- Remediation: Assign process owner; establish/improve system inventory process
Identify Systemic Issues:
- Vulnerability Management: Are vulnerabilities being tracked? Are patches tested before deployment?
- Detection: Are attacks being detected? How quickly (MTTD)? What's the alert threshold?
- Monitoring: Are suspicious activities being monitored? (Failed logins, privilege escalation, data access)
- Access Control: Is access properly restricted? Are credentials strong? Is MFA enabled?
- Segmentation: Are systems isolated? Can attacker move laterally after initial compromise?
- Testing: Are security controls tested? (penetration tests, vulnerability scans)
- Awareness: Do employees know about threats? Can they identify phishing?
Document Findings:
- Executive Summary: What happened? Root causes identified
- Technical Details: How incident occurred; attack chain; detection/response timeline
- Root Cause Analysis: Five Whys, systemic issues identified
- Contributing Factors: What else made incident possible? (missing monitoring, weak segmentation)
- Recommendations: Preventive controls to prevent similar incidents
- Priority: Which recommendations are critical? (Must fix before similar incident occurs)
Develop Remediation Plan:
- Prevention Controls: What will prevent this from happening again?
- Example RCA: Patch wasn't applied → Remediation: Improve patch management process
- Example RCA: Attack wasn't detected → Remediation: Improve monitoring/alerting
- Detective Controls: What will help us detect earlier if prevention fails?
- Example: Enhanced monitoring for exploitation attempts
- Priority: Implement critical controls first
- Timeline: When will each control be implemented? (Critical: <30 days)
- Verification: How will you verify control is effective?
Implement Preventive Measures:
- Process Improvements: Update patch management, on-boarding, access control processes
- Technical Controls: Add/improve detection (monitoring, alerting), prevention (segmentation, hardening)
- Awareness: Train employees on lessons learned
- Testing: Verify controls work (security test, penetration test)
- Metrics: Track if improvements reduce incident risk
Anti-Patterns
- Focusing on symptom instead of root cause (patch the vulnerability but don't improve process); identify systemic issues
- Blaming individuals (person forgot to apply patch); focus on systems and processes
- No follow-up on recommendations (analysis without action); implement preventive measures
- Assuming one RCA explains everything (complex incidents have multiple causes); identify all contributors
- Not learning from similar incidents (same root cause, different trigger); look for patterns across incidents
Further Reading
1---2name: root-cause-analysis-security3description: Conduct root-cause analysis (RCA) to identify underlying causes of security incidents and prevent recurrence.4---56# Root-Cause Analysis (Security)78Conduct root-cause analysis to identify underlying causes and prevent recurrence.910## Context1112You are a senior security engineer conducting root-cause analysis (RCA) for $ARGUMENTS. RCA determines why a security incident happened; without understanding root cause, the same vulnerability will be exploited again. RCA is not blame—it's learning. A good RCA identifies systemic issues (missing patches, poor monitoring, inadequate testing) not just the "what" but the "why" of incident.1314## Domain Context1516- **Root Causes**: Vulnerability (unpatched, misconfiguration), detection gap (no monitoring, alert misconfigured), process failure (access control bypassed)17- **RCA Techniques**: Five Whys, Fishbone Diagram, Event Tree Analysis18- **Blamelessness**: RCA is about systems, not people; aim for learning and prevention19- **Follow-up**: RCA findings drive remediation; prevention controls prevent similar incidents2021## Instructions22231. **Understand the Incident Fully**:24 - **Timeline**: Detailed chronology of events (when did each thing happen?)25 - **Attack Vector**: How did attacker get in? (vulnerability, weak password, phishing, misconfig)26 - **Scope**: What systems affected? What data accessed? How long had attacker access?27 - **Detection**: What alerted you to incident? How long between intrusion and detection (MTTD)?28 - **Impact**: Business impact (revenue loss, downtime, customer trust, regulatory action)29 - **Interviews**: Interview people involved (who detected it? who investigated? what was missed?)30312. **Apply Five Whys Technique**:32 - **Observation**: System was compromised due to unpatched vulnerability33 - **Why 1**: Why was the system vulnerable? Because security patch was not applied34 - **Why 2**: Why wasn't patch applied? Because patch testing didn't include this system35 - **Why 3**: Why wasn't this system in patch testing? Because system inventory was incomplete36 - **Why 4**: Why was inventory incomplete? Because on-boarding process didn't document all systems37 - **Why 5**: Why didn't on-boarding process document systems? Because no process owner assigned38 - **Root Cause**: Lack of process ownership; systems weren't being tracked/managed39 - **Remediation**: Assign process owner; establish/improve system inventory process40413. **Identify Systemic Issues**:42 - **Vulnerability Management**: Are vulnerabilities being tracked? Are patches tested before deployment?43 - **Detection**: Are attacks being detected? How quickly (MTTD)? What's the alert threshold?44 - **Monitoring**: Are suspicious activities being monitored? (Failed logins, privilege escalation, data access)45 - **Access Control**: Is access properly restricted? Are credentials strong? Is MFA enabled?46 - **Segmentation**: Are systems isolated? Can attacker move laterally after initial compromise?47 - **Testing**: Are security controls tested? (penetration tests, vulnerability scans)48 - **Awareness**: Do employees know about threats? Can they identify phishing?49504. **Document Findings**:51 - **Executive Summary**: What happened? Root causes identified52 - **Technical Details**: How incident occurred; attack chain; detection/response timeline53 - **Root Cause Analysis**: Five Whys, systemic issues identified54 - **Contributing Factors**: What else made incident possible? (missing monitoring, weak segmentation)55 - **Recommendations**: Preventive controls to prevent similar incidents56 - **Priority**: Which recommendations are critical? (Must fix before similar incident occurs)57585. **Develop Remediation Plan**:59 - **Prevention Controls**: What will prevent this from happening again?60 - Example RCA: Patch wasn't applied → Remediation: Improve patch management process61 - Example RCA: Attack wasn't detected → Remediation: Improve monitoring/alerting62 - **Detective Controls**: What will help us detect earlier if prevention fails?63 - Example: Enhanced monitoring for exploitation attempts64 - **Priority**: Implement critical controls first65 - **Timeline**: When will each control be implemented? (Critical: <30 days)66 - **Verification**: How will you verify control is effective?67686. **Implement Preventive Measures**:69 - **Process Improvements**: Update patch management, on-boarding, access control processes70 - **Technical Controls**: Add/improve detection (monitoring, alerting), prevention (segmentation, hardening)71 - **Awareness**: Train employees on lessons learned72 - **Testing**: Verify controls work (security test, penetration test)73 - **Metrics**: Track if improvements reduce incident risk7475## Anti-Patterns7677- Focusing on symptom instead of root cause (patch the vulnerability but don't improve process); **identify systemic issues**78- Blaming individuals (person forgot to apply patch); **focus on systems and processes**79- No follow-up on recommendations (analysis without action); **implement preventive measures**80- Assuming one RCA explains everything (complex incidents have multiple causes); **identify all contributors**81- Not learning from similar incidents (same root cause, different trigger); **look for patterns across incidents**8283## Further Reading8485- NIST SP 800-61 (Post-Incident Activities): https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-61r2.pdf86- Blameless Post-Mortem Guide: https://www.pagerduty.com/blog/blameless-post-mortems/87- Five Whys Technique: Toyota Production System, continuous improvement methodology88- Fishbone Diagram: Ishikawa Diagram for cause and effect analysis