Black Friday sale: an extra 40% off every course until Monday, November 30.New Year sale: an extra 30% off every course until Friday, January 1.Memorial Day sale: an extra 25% off every course until Monday, May 31.SysAdmin Day sale: an extra 25% off every course until Sunday, August 1.Back to School sale: an extra 25% off every course until Sunday, August 22.Labor Day sale: an extra 25% off every course until Monday, September 6.Black Friday sale: an extra 40% off every course until Monday, November 29.New Year sale: an extra 30% off every course until Saturday, January 1.Last day of our Black Friday sale: an extra 40% off every course.Last day of our New Year sale: an extra 30% off every course.Last day of our Memorial Day sale: an extra 25% off every course.Last day of our SysAdmin Day sale: an extra 25% off every course.Last day of our Back to School sale: an extra 25% off every course.Last day of our Labor Day sale: an extra 25% off every course.Last day of our Black Friday sale: an extra 40% off every course.Last day of our New Year sale: an extra 30% off every course. Ends at midnight ETChoose your certification →

Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

3.2.5. Root Cause Analysis

First Principle: Root cause analysis transforms a single incident into a systemic improvement. Without understanding how the attacker gained initial access, you're guaranteed to face the same attack again.

Amazon Detective is purpose-built for root cause investigation:

  • Automatically collects and correlates CloudTrail, VPC Flow Logs, and GuardDuty findings
  • Builds investigation graphs showing relationships between entities (users, IPs, resources)
  • Entity profiles (IAM role or user, IP address, EC2 instance) show who used the entity, from where, its API call volume over time, and activity that deviates from its baseline — such as newly observed geolocations or resources
  • Enabled organization-wide through a delegated administrator, so one behavior graph spans the member accounts and investigators can identify the affected account from a single console
  • Answers "when did the compromise begin, what did the attacker do, and how did they get in?"
Root Cause Analysis Framework:
PhaseQuestionsAWS Data Source
Initial accessHow did the attacker get in? (phished credentials, exposed key, vulnerable service)CloudTrail: first anomalous API call
PersistenceHow did they maintain access? (new users, roles, keys)CloudTrail: CreateUser, CreateAccessKey
Lateral movementHow did they expand access? (role assumption, cross-account)CloudTrail: AssumeRole across accounts
ImpactWhat did they do? (data access, resource creation, exfiltration)CloudTrail data events + Flow Logs
TimelineWhen did each phase occur?Detective investigation graph
Post-Incident Improvements:
  • Document findings in a post-incident review
  • Update runbooks based on lessons learned
  • Implement new preventive controls for the root cause vulnerability
  • Add new detective controls for the attack patterns observed
  • Share findings across the organization (sanitized) to prevent recurrence
  • Treat failed automation as a finding too: size Lambda timeouts (configurable up to 30 minutes) for the real cross-account workload, and run independent calls in parallel rather than chaining them
  • Track mean time to detect (MTTD) and mean time to respond (MTTR) across incidents — outcome measures whose falling trend shows the IR capability is improving, unlike volume or input counts

⚠️ Exam Trap: Detective is for root cause investigation AFTER an incident is detected. It doesn't detect threats (that's GuardDuty). Don't confuse their roles: GuardDuty detects, Detective investigates.

Scenario: After containing a breach, Detective reveals that the root cause was an EC2 instance running with an overly permissive IAM role. The attacker compromised the instance through an unpatched web application, then used the role's S3 permissions to exfiltrate data. Post-incident improvements: implement least-privilege roles, enable Inspector for vulnerability scanning, and add GuardDuty S3 protection.

Reflection Question: How does root cause analysis change your security posture from "responding to individual incidents" to "systematically reducing your attack surface"?

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•26 professional certifications earned