Join our Newsletter — 33% off our NHI Course
Home› Guides› Amazon Detective Guide: Behaviour Graphs, Finding Groups and…
Guide Cloud Security

Amazon Detective Guide: Behaviour Graphs, Finding Groups and Faster Investigations

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 13 min read
On this page

A GuardDuty or Security Hub finding tells an AWS analyst that something looks wrong, but not what the identity or resource behind it has been doing for the past weeks, and answering that by hand from raw CloudTrail and flow logs is slow. Amazon Detective builds a behaviour graph from those logs and findings so analysts can scope an alert in minutes: what else this role did, which IP addresses it used, and whether the activity is new. This guide explains Detective's data sources, finding groups and investigations, how to set it up across an AWS Organization with a delegated administrator, a workflow for investigating IAM user and role findings, and the retention and cost points to plan for. It is for AWS security analysts and cloud incident response teams. Broader AWS security architecture is covered in the AWS Security Guide.

This is an independent guide from NHI Mgmt Group, based on AWS's public documentation for Amazon Detective as of November 2026. It is not sponsored or reviewed by AWS. Product features change, so confirm settings against AWS's current documentation.

Key takeaways

  • Detective is an investigation tool, not an alert source. It explains and scopes findings raised by GuardDuty and Security Hub CSPM; keep alerting in those services and your SIEM.
  • Core data starts flowing when you enable it. CloudTrail, VPC Flow Logs and GuardDuty findings are core; EKS audit logs and AWS security findings are optional packages you turn on.
  • Use one delegated administrator for GuardDuty, Security Hub CSPM and Detective. AWS recommends aligning them so pivots between the services work smoothly, in every Region you use.
  • Start identity investigations from finding groups and Detective Investigation. Both connect a single finding to the role sessions, IP addresses and other findings that belong to the same activity.
  • Plan for the data you will need a year from now. Detective keeps up to one year of data per source package and bills per GB ingested, so decide on Regions and optional packages deliberately.

What Amazon Detective does

AWS describes Detective as a service that helps you analyse, investigate and identify the root cause of security findings and suspicious activity. It collects log data automatically and uses machine learning, statistical analysis and graph theory to produce visualisations, with access to up to a year of historical event data.

The central object is the behaviour graph: a linked set of extracted and analysed data from one or more AWS accounts, built per Region. The account that enables Detective becomes the graph's administrator account; other accounts contribute data as member accounts. Analysts work through entity profiles (for example an AWS account, IAM user, IAM role, EC2 instance or IP address) and finding profiles, each with visualisations generated from the graph and guidance on how to read them. The questions Detective is built to answer are of the form "Is this an unusual API call for this role?" or "Is this spike in traffic from this instance expected?".

AWS frames an investigation in three phases: triage (is this a true or false positive), scoping (which systems and identities are affected, where the activity came from, how long it has run and what else is related) and response. Detective helps most with the first two. False positive GuardDuty findings can be archived from within Detective; true positives move to your incident response process. See the Cloud Incident Response Guide for the response side.

ServiceRole in an investigationRelated guide
Amazon GuardDutyRaises threat findings; feeds findings into the behaviour graphAmazon GuardDuty Guide
AWS Security Hub CSPMAggregates security findings; an entry point to pivot into Detective; optional data sourceAWS Security Hub Guide
AWS CloudTrailAPI activity that Detective extracts into the graphAWS CloudTrail Guide
Amazon DetectiveCorrelates findings, identities and network activity over time for triage and scopingThis guide

Data sources and behaviour graph

Detective ingests data from source packages. Core packages begin as soon as Detective is enabled, from the administrator account and each member account as it joins. Optional packages can be started or stopped at any time from Settings > General, under Optional source packages.

Source packageTypeWhat it addsNotes from AWS documentation
AWS CloudTrail logsCoreAPI calls and sign-in activity by users, roles and servicesIngested from administrator and member accounts
Amazon VPC flow logsCoreNetwork connections to and from EC2 instancesIPv4 and IPv6 records from EC2 instances only; records ingested when log-status is OK
Amazon GuardDuty findingsCoreThreat findings that become entry points and graph nodesIngested for accounts enrolled in GuardDuty
Amazon EKS audit logsOptionalKubernetes API activity on EKS clusters, correlated with CloudTrail management events and flow logsStart from Optional source packages
AWS security findingsOptionalFindings from Security Hub CSPMStart from Optional source packages

Gaps are permanent. If you stop an optional package and later restart it, Detective does not ingest the missing period retroactively, so the affected entity profiles show a gap. Avoid toggling packages to save cost during an active investigation.

Raw logs beyond the graph: Detective integrates with Amazon Security Lake so analysts can query raw CloudTrail management events (version 1.0 and later), VPC Flow Logs (version 1.0 and later) and EKS audit logs (version 2.0) from the Detective console when the graph summary is not enough. For the log sources themselves, see the AWS VPC Flow Logs Detection Guide.

Finding groups and investigations

A finding group is a set of related findings, and the entities involved in them, that Detective infers come from the same underlying activity. AWS positions finding groups mainly for root cause analysis of high-severity GuardDuty findings. Detective groups findings by:

  • Temporal proximity: findings close together in time.
  • Common entities: the same IP addresses, users or resources. A shared IAM role session or originating IP address is a strong signal.
  • Patterns and behaviours: similar attack types or suspicious activity.
  • Tactics, techniques and procedures: similar TTPs, such as those in MITRE ATT&CK.

A group can include entities outside AWS, such as external IP addresses and user agents. Once a related finding occurs after an initial GuardDuty finding, the group is created within 48 hours. Because grouping is inferred, a group may contain associations that turn out to be unrelated: treat it as the starting point for scoping, and confirm each link against the evidence.

Detective Investigation runs an automated first pass on an IAM user or IAM role. It uses machine learning models and threat intelligence on the behaviour graph to look for indicators of compromise, covering attack tactics, impossible travel, flagged IP addresses and related finding groups, and produces a report you can review, download and archive. You can start one from the console, with the StartInvestigation API operation or with the start-investigation AWS CLI command, which makes it suitable for automation from a SOAR workflow.

Multi-account setup

Detective works best when one account can see the whole organisation's graph in each Region. A staged rollout:

  1. Choose the administrator. AWS recommends making the same account the administrator for GuardDuty, Security Hub CSPM and Detective. Where they differ, align Detective with whichever service your team uses more, or create a cross-account role for access. In most landing zones this is the security tooling account. See the AWS Security Guide for the account structure.
  2. Grant permissions. Principals that enable or administer Detective need Detective permissions, for example the AmazonDetectiveFullAccess managed policy. Give analysts a narrower role for day-to-day use; reserve full access for the administrators.
  3. Designate the delegated administrator per Region. The organisation management account designates the Detective administrator account in each AWS Region. That account becomes the Detective delegated administrator in AWS Organizations; the management account itself cannot be a delegated administrator. AWS recommends using the same delegated administrator in all Regions.
  4. Enable member accounts. On the Account management page, use Enable all organization accounts, which enables current accounts and turns on Automatically enable new organization accounts (off by default). Organisation accounts appear as type By organization; accounts outside the organisation can still be added By invitation.
  5. Tune the GuardDuty feed. AWS recommends changing the GuardDuty CloudWatch notification frequency on the administrator's detectors from the default six hours to 15 minutes, so recurring finding occurrences reach Detective sooner. AWS states this does not change GuardDuty cost.
  6. Decide optional packages and Regions. Turn on EKS audit logs where you run EKS, and AWS security findings if analysts start from Security Hub CSPM. Enable Detective in every Region where you run workloads or have GuardDuty enabled; an attacker using an unused Region is exactly what you want to scope.
  7. Test before relying on it. Use the 30-day trial to review projected cost and run a tabletop investigation on a sample finding. Roll back by disabling optional packages or the graph in a Region; remember that data from the disabled period will not return.

Small and large estates: a single-account or small organisation can enable Detective from the GuardDuty administrator and investigate from the console. Large organisations should automate enablement through Organizations, trigger investigations from their SOAR on high-severity identity findings, and document which Regions and packages are in scope.

Investigating identity findings

Many high-value AWS findings concern IAM users and roles: credentials used from unexpected networks, unusual API calls, or permission changes. These map to ATT&CK techniques such as T1078.004 Cloud Accounts, T1098 Account Manipulation and T1552.005 Cloud Instance Metadata API. A repeatable workflow:

  1. Open the finding in Detective. Pivot from the GuardDuty or Security Hub CSPM finding into Detective and open the profile of the IAM user or role involved.
  2. Check for a finding group. If the finding belongs to a group, review the other findings and entities in it first. Shared role sessions and source IPs tell you how far the activity reaches.
  3. Run Detective Investigation. Start an investigation on the user or role and read the report for attack tactics, impossible travel and flagged IP addresses.
  4. Scope the identity's behaviour. On the profile, compare API calls, source IPs, user agents and resources touched during the scope time against the identity's earlier activity. New API calls, new geolocations and new resources are the strongest leads.
  5. Follow role sessions. For a role, identify which sessions performed the suspicious calls and who or what assumed the role. A workload role used from outside its expected network is a classic sign of stolen credentials.
  6. Pivot to related entities. Open the profiles of the IP addresses, EC2 instances and other identities connected to the activity to find the origin and any lateral movement.
  7. Decide and record. Archive genuine false positives from Detective with a reason. For true positives, hand over to incident response with the investigation report, the affected identities and the time window, and preserve raw logs for forensics. See the Cloud Forensics Guide and the Cloud Access Key Leak Playbook.

Where identity fits: most of these investigations concern non-human identities, such as workload roles and long-lived access keys, which have stable behaviour that makes deviations stand out. Keeping an inventory of each role's owner and expected callers speeds up step 5. See the AWS Access Keys Security Guide and the AWS IAM Policies and Roles Guide.

Retention and cost

Detective retains data from each source package for up to one year, which covers most dwell times but not all; for longer look-backs, keep raw logs in your own storage or Security Lake. Pricing is a tiered rate per GB ingested, per account, per Region, per month, with lower rates at higher volumes; billable sources include CloudTrail logs, VPC Flow Logs, EKS audit logs, GuardDuty findings and findings sent to Security Hub. There is no extra charge for storing data in Detective. The 30-day trial starts the first time Detective is enabled in a Region and is not repeated if you disable and re-enable it; during the trial the console shows projected cost per account and, with Organizations, for all accounts. Use that projection, plus the AWS Pricing Calculator, to decide on optional packages and Regions.

Detection and measurement

  • Coverage: share of organisation accounts enabled as members, per Region, against the GuardDuty enrolment list.
  • Package status: optional packages enabled where needed, and any ingestion gaps.
  • Time to scope: median time from a high-severity identity finding to a documented scope (identities, resources, time window).
  • Investigation use: share of high-severity IAM findings with a Detective Investigation report attached to the case.
  • Disposition quality: findings archived as false positives later reopened.

Common failure patterns

  • Different administrators per service. GuardDuty, Security Hub CSPM and Detective administered from different accounts make pivots awkward. Align them as AWS recommends.
  • Auto-enable left off. Automatically enable new organization accounts is off by default, so new accounts join the organisation without contributing data. Turn it on when you first enable the organisation.
  • Some Regions missed. Graphs are per Region; enabling only the main Region leaves activity elsewhere unscoped.
  • Default GuardDuty notification frequency. At six hours, recurring findings can lag in Detective. Set 15 minutes on the administrator's detectors.
  • Treating a finding group as proof. Groups are inferred; confirm each related finding before widening containment.
  • Toggling optional packages. Stopping a package to save cost creates a permanent gap in the profiles you may need later.

Framework mapping

FrameworkReferenceHow Detective supports it
NIST CSF 2.0DE.AE-02, DE.AE-03, RS.AN-03Analysis of adverse events, correlation across sources, establishing what happened and root cause
NIST SP 800-53 Rev. 5IR-4, AU-6, SI-4Incident handling, audit record review and analysis, system monitoring
CIS Controls v8.1Control 8, Control 17Audit log management, incident response management
MITRE ATT&CKT1078.004, T1098, T1552.005Scoping cloud account misuse, account manipulation and instance credential theft

Practitioner checklist

  • Use one delegated administrator for GuardDuty, Security Hub CSPM and Detective, in every Region.
  • Enable all organisation accounts and turn on automatic enablement for new accounts.
  • Enable Detective in every Region where workloads run or GuardDuty is on.
  • Set GuardDuty notification frequency to 15 minutes on the administrator's detectors.
  • Turn on EKS audit logs and AWS security findings where analysts need them, and leave them on.
  • Give analysts a scoped Detective role; keep AmazonDetectiveFullAccess for administrators.
  • Build the identity investigation workflow into the SOC playbook, including finding groups and Detective Investigation.
  • Trigger StartInvestigation automatically for high-severity IAM findings where you have SOAR.
  • Keep raw logs beyond one year in your own storage or Security Lake if your dwell time assumptions need it.
  • Review projected cost during the trial and record decisions on Regions and packages.

Standards and references

Related NHI Mgmt Group resources: AWS Security Guide · Amazon GuardDuty Guide · Cloud Incident Response Guide · Cloud Forensics Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.