AWS Detective is a cloud security investigation service that helps analyse AWS activity and related findings. It correlates logs, events, and metadata to support root-cause analysis of suspicious actions, unusual access patterns, and compromised credentials across an account or environment.
How AWS Detective Works
AWS Detective is built for investigation, not prevention. It pulls together CloudTrail events, VPC flow data, GuardDuty findings, and other account metadata so analysts can reconstruct what happened, which identities or resources were involved, and how activity unfolded over time.
That correlation matters because cloud incidents are often fragmented across logs and services. A single suspicious API call may look harmless in isolation, but Detective can place it in sequence with preceding logins, role assumptions, network paths, and related alerts to help distinguish routine administration from compromise.
Why Investigation Depth Matters in AWS
Cloud environments change quickly, and the same account can contain temporary roles, ephemeral compute, automation, and many service-level signals. Investigation tools are most useful when they reduce the time it takes to connect those signals into a coherent incident narrative.
Detective is especially valuable when investigators need to answer questions such as whether a credential was abused, whether an unusual access path was used, or whether the suspicious activity was isolated to one resource or spread across the environment. For broader AWS investigation context, AWS Security Guide covers the surrounding controls that generate the telemetry Detective helps analyse.
What AWS Detective Helps Analysts Correlate
The service is useful because suspicious activity in AWS is rarely visible from one log source alone. Correlation can reveal whether an event was triggered by a human operator, a workload, a compromised key, or an external principal acting through an assumed role.
That makes Detective relevant to identity-led investigations even though it is not an identity product. When credentials, sessions, or access keys are abused, the investigative challenge is usually to trace scope, sequence, and impact across the environment rather than simply to confirm that an alert fired.
For examples of why cloud credential abuse is so disruptive, Uber breach 2016 shows how a single leaked AWS key can expose a much wider environment, while TruffleNet stolen AWS keys campaign 2025 illustrates how stolen AWS credentials are validated and operationalised at scale.
How AWS Detective Fits Incident Response and Review
In practice, AWS Detective supports triage, scoping, and post-incident review. It helps teams move from “something looks wrong” to a reasoned assessment of what changed, which resources were touched, and whether the activity lines up with normal operational behaviour.
That also makes it useful after containment. Once access has been blocked or credentials have been rotated, investigators still need to determine whether an attacker staged persistence, accessed additional resources, or used the same trust path elsewhere. Detective’s value is strongest when paired with strong logging, inventory, and alerting around the underlying AWS account structure.
Risk and Threat Considerations
AWS Detective does not remove exposure from compromised credentials, excessive access, or suspicious automation, it helps uncover and explain it. The main risk is that investigators may assume cloud activity is benign until a correlated view shows how one abused principal or role has interacted with multiple services.
Failure mechanism: Incomplete visibility across logs and metadata can delay scoping, leaving attackers more time to move laterally, enumerate resources, or continue using valid access paths before containment.
Impact: Delayed investigation can increase blast radius, prolong dwell time, and make post-incident actions such as credential rotation, session invalidation, and trust review more urgent and more disruptive.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AU-6 — Audit Record Review, Analysis, and Reporting | AWS Detective analyzes correlated audit and event data to support investigation. |
| AU-12 — Audit Record Generation | Detective depends on generated cloud telemetry from AWS services to build investigations. | |
| IA-5 — Authenticator Management | The term centers on compromised credentials and access-path analysis in AWS. | |
| Recommendation — Review correlated activity records to identify suspicious patterns and support incident scoping. Generate complete audit telemetry so investigation tools can correlate events effectively. Rotate and revoke credentials quickly when investigation indicates possible compromise. | ||
| NIST CSF 2.0 | DE.AE-03 — Anomalies and Events Are Analyzed to Ensure Understanding of Event Context | Detective exists to enrich anomalous AWS events with investigative context. |
| Recommendation — Analyze anomalous cloud events in context to determine whether they indicate malicious activity. | ||
| MITRE ATT&CK | T1586 — Compromise Accounts | AWS Detective is used to investigate account and credential abuse in cloud environments. |
| Recommendation — Map suspicious cloud activity to account-compromise techniques and scope the resulting access. | ||
Practitioner Guidance
Why practitioners should care: AWS Detective is most effective when the environment already produces high-quality telemetry. Teams should treat it as an investigation layer on top of logging and detection, not as a substitute for them.
What to watch for: The highest value cases are suspicious access patterns, unusual role assumptions, anomalous API activity, and incidents where the path from initial access to impact is unclear. In those situations, the service can shorten the gap between alert and defensible incident narrative.
Practitioner takeaway: Use AWS Detective to accelerate root-cause analysis, but keep the underlying AWS logging, identity, and alerting controls strong enough that the investigation starts with reliable evidence.
Related resources from NHI Mgmt Group
- How should security teams combine preventive and detective controls in AWS environments?
- How should security teams reduce standing privilege in AWS environments?
- How should security teams reduce AWS data security risk without slowing cloud operations?
- Why do plaintext secrets create such a large AWS security problem?
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org