Amazon Detective
Cloud service · AWS · Updated

Amazon Detective

In short

Amazon Detective is a security service that automatically collects, organizes, and analyzes data from AWS resources to help users easily investigate and quickly identify the root cause of potential security issues or suspicious activities.

Cloud Services Hub →

7 key features of Amazon Detective

Amazon Detective simplifies security investigations by automatically collecting and analyzing data, providing interactive visualizations for easy understanding, seamless integration with other AWS security services, and offering a scalable, cost-effective solution.

01
Automated Data Collection and Analysis

Amazon Detective automatically collects log data from various sources and uses machine learning, statistical analysis, and graph theory to build a linked, interactive set of data that enables you to easily conduct faster and more efficient security investigations.

02
Interactive Visualizations

It provides an easy-to-navigate interface that visually represents the interactions between resources, users, and activities within your environment. This helps in identifying the root cause of security issues or suspicious activities without the need to write custom queries.

03
Seamless Integration

Amazon Detective integrates with AWS security services like Amazon GuardDuty, AWS Security Hub, and Amazon VPC Flow Logs, allowing for a streamlined process where findings from these services can be further investigated in Detective for more in-depth analysis.

04
Scalable and Cost-Effective

Designed to scale automatically with your AWS environment, it provides a cost-effective solution for security analysis without the need for additional hardware or infrastructure. Pricing is based on the amount of data ingested from AWS CloudTrail, VPC Flow Logs, and other sources.

05
Finding Groups and Generative AI Summaries

Detective automatically groups findings related to a single security compromise event so they can be investigated together. Generative AI finding group summaries analyze these groups and provide natural-language insights.

06
Amazon Security Lake Log Retrieval

Detective integrates with Amazon Security Lake to query and retrieve stored CloudTrail logs and Amazon VPC flow logs for additional detail during security investigations.

07
Multi-Account Behavior Graph Management

An administrator account manages a behavior graph containing data from member accounts. Standalone accounts join by accepting invitations. With AWS Organizations, the management account designates a delegated Detective administrator, which can enable organization accounts without invitations and can also invite accounts outside the organization.

Where Amazon Detective is used

Amazon Detective streamlines the investigation of unauthorized access, analyzes resource consumption anomalies, detects data exfiltration activities, and supports compliance monitoring and investigations by aggregating and visualizing relevant data.

  1. 01
    Investigating Unauthorized Access

    Amazon Detective simplifies the process of investigating unauthorized access incidents by aggregating and visualizing data related to login attempts, including the geographic location and the type of device used. This enables security teams to quickly understand the scope and method of an attack, identifying compromised accounts and preventing further unauthorized access.

  2. 02
    Analyzing Resource Consumption Anomalies

    Organizations can utilize Amazon Detective to monitor and analyze AWS resource usage and detect unusual patterns that may indicate a security issue or misconfiguration. By providing detailed insights into spikes in usage or resources accessed by unauthorized roles, Amazon Detective helps in identifying potential security risks and ensures optimized and secure resource utilization.

  3. 03
    Detecting and Investigating Data Exfiltration Activities

    Amazon Detective aids in detecting and investigating potential data exfiltration activities by analyzing and correlating data transfer activities within the network. It identifies large or unusual data movements and visualizes the flow of data, enabling security analysts to trace the source and destination of potentially exfiltrated data and take corrective actions.

  4. 04
    Compliance Monitoring and Investigations

    With Amazon Detective, organizations can enhance their compliance posture by continuously monitoring and investigating activities within their AWS environments. It automates the analysis of log data to identify non-compliant activities or security events, facilitating quick remediation and ensuring adherence to compliance standards.

How Amazon Detective is priced

Amazon Detective charges based on data volume ingested beyond a free tier, with prices varying by region.

Data Volume Pricing

Amazon Detective charges based on the volume of data ingested from AWS CloudTrail logs, Amazon VPC Flow Logs, Amazon EKS audit logs, findings sent from integrated AWS services to AWS Security Hub, and Amazon GuardDuty findings. Pricing is tiered per account, Region, and month, with charges applying to the first 1,000 GB and lower per-GB rates at higher volume tiers.

Region-based Pricing

Pricing can vary by region, meaning that costs for using Amazon Detective may be higher or lower depending on which AWS region is being utilized. Customers should review the pricing details for the specific region in which they are operating.

Free Trial

Amazon Detective offers a 30-day free trial with access to the full feature set. During the trial, you can view projected costs for each account and, when using AWS Organizations, projected costs across all accounts.

Services Amazon Detective works with

AWS CloudTrailAWS CloudTrail

Amazon Detective uses AWS CloudTrail to analyze and visualize user and API activity. CloudTrail captures comprehensive log information for all account activity, and Detective processes this data to help identify trends and patterns in behavior.

Amazon GuardDutyAmazon GuardDuty

Amazon Detective integrates with Amazon GuardDuty for threat detection. When GuardDuty generates findings about potential security threats, Detective allows users to conduct detailed investigations, tracing anomalies and suspicious activity back to their source.

AWS Security HubAWS Security Hub

Amazon Detective can be connected to AWS Security Hub, a service that provides a comprehensive view of security alerts across multiple AWS services. Detective enables deep investigation into Security Hub findings to understand the context and cause of security issues.

Amazon AthenaAmazon Athena

Amazon Detective uses Athena to query raw logs made available through its Amazon Security Lake integration. Investigators can retrieve the underlying events for suspicious activity without leaving Detective.

Amazon Bedrock

Amazon Detective uses Amazon Bedrock to generate natural-language summaries of finding groups. These summaries describe related suspicious activities and help investigators understand a potential compromise.

Amazon EC2Amazon EC2

Amazon Detective builds entity profiles for EC2 instances, correlating network activity, API activity, and security findings. Investigators can examine an instance's connections and activity over time to determine its involvement in a security incident.

Amazon Elastic Kubernetes Service (Amazon EKS)Amazon Elastic Kubernetes Service (Amazon EKS)

Amazon Detective can ingest EKS audit logs to investigate activity involving Kubernetes clusters, pods, container images, and Kubernetes subjects. Its Security Lake integration also supports querying EKS audit logs stored in the lake.

Amazon InspectorAmazon Inspector

Amazon Detective can ingest Inspector findings through its optional AWS Security Findings data source in AWS Security Hub. This lets investigators examine vulnerability findings alongside related entities and other security activity.

Amazon MacieAmazon Macie

Amazon Detective can ingest Macie findings through its optional AWS Security Findings data source in AWS Security Hub. Investigators can correlate these findings with other security findings and resource activity.

Amazon S3Amazon S3

Amazon Detective's Security Lake integration uses an S3 query-results location for the Athena queries that retrieve raw security logs. The integration's setup configures the storage and permissions needed for those query results.

What is Amazon Detective

3 min read

Amazon Detective is a sophisticated security service that simplifies the task of analyzing, investigating, and quickly understanding the root cause of potential security issues or suspicious activities within AWS environments. In the complex landscape of cloud security, where networks, applications, and users produce vast amounts of data, identifying genuine security concerns from the noise can be overwhelming. 

Amazon Detective leverages machine learning, statistical analysis, and graph theory to automatically collect data from AWS resources and uses this data to build a comprehensive, interactive, and analytical view of a user's AWS environment. 

Detective provides access to up to a year of historical event data for investigations.

Every Detective behavior graph is specific to an AWS Region; API operations can manage only graphs in the Region associated with the selected endpoint.

Each Detective behavior graph supports up to 1,200 member accounts.

A behavior graph exceeding 10 TB of data per day cannot accept new member accounts. If its volume exceeds 15 TB per day, including spikes, Detective suspends ingestion but preserves existing data for investigation. Support must re-enable ingestion after a suspension.

The core of Amazon Detective's functionality lies in its ability to process and analyze vast quantities of log data from various AWS data sources like AWS CloudTrail, Amazon VPC Flow Logs, and Amazon GuardDuty findings. By integrating these data sources, Detective can provide a unified view of user and resource interactions across an AWS environment, thus making it easier for security analysts to analyze and investigate the nature of potential security issues. The service is designed to reduce the time and effort required for security investigations. Typically, when security analysts investigate incidents, they have to manually correlate logs from various sources, a time-consuming and error-prone process. Amazon Detective streamlines this by automatically correlating the relevant data and presenting it in a form that's easy to understand and act upon. It visualizes the relationships between entities (such as IP addresses, users, and resources) involved in the incidents, making it easier to see patterns of behavior or unusual activity. 

Optional data sources include Amazon EKS audit logs and AWS Security Hub CSPM findings. EKS audit logs enrich information about EKS clusters, Kubernetes pods, container images, and Kubernetes subjects. Security Hub CSPM findings are ingested through the AWS security findings data source.

One of the most compelling aspects of Amazon Detective is its user-friendly interface. The service provides intuitive graphical visualizations and timelines of activities that help in quickly narrowing down the time frame of malicious activities and identifying the root cause of security issues. It also provides contextual information to help understand the significance of the findings, aiding in quicker decision-making. 

Furthermore, Amazon Detective continuously monitors AWS accounts, automatically adapting its analysis based on the changing patterns of activity. This adaptive capability means that it becomes more effective over time, providing increasingly refined insights that can help preempt potential security issues before they escalate. 

Despite its sophistication, setting up Amazon Detective is straightforward. Once enabled, it integrates seamlessly with AWS security services already in use, like Amazon GuardDuty for threat detection and AWS CloudTrail for operational and compliance auditing. This integration provides a layered security posture that is both comprehensive and deep, allowing organizations to strengthen their defenses against a wide array of security threats. 

Amazon Detective thus represents a significant step forward in cloud security management, offering a powerful tool for organizations to quickly and effectively respond to security incidents, ensure compliance with regulations, and maintain robust security postures in their AWS environments. Its ability to simplify and expedite the investigation process not only enhances security teams' effectiveness but also contributes to the overall resilience and security of the cloud ecosystem.

Concepts related to Amazon Detective

Amazon Detective exam questions

Real practice exam questions on Amazon Detective, with the correct answer and its explanation. Answer them with every option in the exam simulator.

SCS-C03

A company contains an incident in which an unauthorized Kubernetes RoleBinding was created in an Amazon EKS cluster, followed by the deployment of a privileged Pod. The incident occurred yesterday. EKS control plane audit logs covering the incident are retained in Amazon S3, but no investigation behavior graph existed during the incident.

The security team must immediately establish which Kubernetes identities performed these actions and their sequence. The team also wants a managed behavior graph for investigating relationships between Kubernetes identities, Pods, and API activity in future incidents, without building a custom ingestion pipeline.

Which approach meets these requirements?

Show answerCORRECT ANSWER

Enable Amazon Detective and its EKS audit logs optional data source for future investigations. Analyze the retained EKS audit logs separately to establish the identities, timestamps, and outcomes of the RoleBinding and Pod creation requests.

Amazon Detective can analyze Kubernetes activity through its optional EKS audit logs data source, but enabling it does not backfill yesterday's activity from an existing S3 archive. The retained EKS audit logs provide the evidence needed for the current incident, while enabling Detective with the optional source supports future graph-based investigations.

DOP-C02

A company operates Amazon EKS clusters in 60 AWS accounts across two AWS Regions. An account-onboarding pipeline regularly adds accounts and clusters. The central security account already administers organization-wide investigation behavior graphs in both Regions, and all workload accounts are members of the appropriate regional graphs.

Security analysts can investigate AWS API activity and network connections, but they also need Kubernetes API activity to investigate suspicious access to pods and service accounts. The additional investigation data must cover existing and future member accounts. The company must not maintain custom log collectors or separate investigation graphs in workload accounts.

Which change should a DevOps engineer automate to meet these requirements with the LEAST operational overhead?

Show answerCORRECT ANSWER

Enable the EKS audit logs optional data source package on the security account's Amazon Detective behavior graph in each Region. Manage this setting centrally so that it applies to the graphs' existing and subsequently added member accounts.

Amazon Detective supports EKS audit logs as an optional data source package. The administrator enables the package for a regional behavior graph, and the setting applies to its member accounts, including accounts subsequently added to the graph. Detective obtains this data directly without requiring customer-managed log collectors or enabling EKS control plane audit logging to CloudWatch Logs.

Practice Amazon Detective in a full exam

Questions on Amazon Detective in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn Amazon Detective in lessons

3 short lessons on Amazon Detective in 2 certification courses.

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.