AWS in 1 Min · Episode 151

Amazon Detective explained: from alert to root cause

From alert to root cause. Watch the one-minute video, then read the details.

David Gomez1:14 video · 2 min read

"A security alert tells you the whole story." It rarely does. A GuardDuty finding says something suspicious happened, but an analyst still has to answer: what did this identity do before, what else did it touch, and is this one event or part of a bigger attack? Amazon Detective is the AWS service built for that investigation step.

What Detective does

Detective automatically collects AWS CloudTrail activity, Amazon VPC flow logs and GuardDuty findings (and optionally EKS audit logs) from the accounts you enable. It uses machine learning, statistics and graph analysis to build a behavior graph: users, roles, IP addresses, EC2 instances and the interactions between them over time.

You can look back across up to a year of history, and Detective shows a baseline of normal activity next to what happened, so questions like "is this API call unusual for this role?" or "is this traffic spike from this instance expected?" take minutes instead of a day of log queries.

Finding groups

Attackers rarely trigger a single alert. Finding groups gather related findings and entities into one view of a possible security event, with an interactive visualization. Instead of triaging twenty separate alerts, you look at one picture: the compromised role, the IP it came from, the instances it touched.

Detective Investigation

Detective Investigation analyses a specific IAM user or role for indicators of compromise: attack tactics, impossible travel, flagged IP addresses and the finding groups it belongs to. It produces a report that helps you decide quickly whether the identity is involved in an incident.

Getting started

  • Detective works alongside GuardDuty: you can pivot from a GuardDuty or Security Hub finding straight into the Detective console.
  • In AWS Organizations, a delegated administrator account manages one behavior graph for member accounts.
  • New accounts get a 30-day free trial, and Detective shows estimated costs before it ends. After that you pay by the volume of data it ingests.

A common mistake is turning Detective on only after an incident. It can only analyse the data it has collected, so enable it before you need it.

Where AI fits

For each finding group, Detective writes a plain-language summary using generative AI models hosted on Amazon Bedrock: a title and an explanation of how the activity started and what it affected. It's on by default, at no extra cost, and AWS says Detective picks a Region within your geography to generate it. AWS also warns that these summaries may not always be accurate, so treat them as a fast first read and confirm the details in the graph before you act. You can turn the feature off in Detective's preferences.

Quick recap

  • Detective turns CloudTrail, VPC flow logs and GuardDuty findings into a behavior graph with up to a year of history.
  • Finding groups show related alerts as one possible attack.
  • Investigations check IAM users and roles for indicators of compromise.
  • The generative AI summary is a starting point; verify it.
AWS in 1 Min #151 · 1:14

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS