Amazon GuardDuty
Cloud service · AWS · Updated

Amazon GuardDuty

In short

Amazon GuardDuty is a threat detection service that continuously monitors for malicious activity and unauthorized behavior to protect your AWS accounts and workloads.

Cloud Services Hub →

5 key features of Amazon GuardDuty

Amazon GuardDuty is a comprehensive, intelligent, and cost-effective threat detection service that seamlessly integrates with AWS services, provides automated response capabilities, and is easy to use and deploy without the need for additional hardware.

01
Intelligent Threat Detection

Amazon GuardDuty offers advanced threat detection that utilizes machine learning, anomaly detection, and integrated threat intelligence to identify and prioritize potential threats. It continuously monitors for malicious activity and unauthorized behavior across your AWS accounts, workloads, and data stored in S3.

02
Seamless Integration

Easily integrate with existing AWS services and security tools. GuardDuty findings can be exported to Amazon EventBridge and AWS Security Hub for further analysis, allowing for a seamless integration with your current incident response workflows and third-party applications.

03
Automated Response

With GuardDuty, you can automate your response to potential threats by setting up custom AWS Lambda functions triggered by GuardDuty findings. This allows for immediate action, such as revoking compromised credentials or isolating affected resources, minimizing the potential impact of a security incident.

04
Cost-Effective

GuardDuty provides a cost-effective solution for threat detection and monitoring. It is a fully managed service that automatically scales with your AWS environment. You pay only for the events analyzed by the service, with no upfront costs or software to deploy, making it efficient and economical for businesses of all sizes.

05
Easy to Use

Amazon GuardDuty is designed to be user-friendly, with a simple setup process that can start analyzing your AWS environment within minutes. It requires no additional hardware or maintenance, and security findings are presented in a clear, actionable format in the AWS Management Console.

Where Amazon GuardDuty is used

Amazon GuardDuty serves as a comprehensive security monitoring service for detecting unauthorized and malicious activity across AWS accounts, spotting compromised credentials, preventing malware infection and data exfiltration, and enabling automated security incident responses.

  1. 01
    Threat Detection and Continuous Monitoring

    Amazon GuardDuty can be utilized to continuously monitor and analyze AWS environment event logs for signs of unauthorized or malicious activity. It inspects AWS CloudTrail, Amazon VPC flow logs, and DNS logs to identify activity patterns indicative of compromise, such as unusual API calls or potentially unauthorized deployments that could indicate a security issue.

  2. 02
    Account Compromise Detection

    Utilizing machine learning, anomaly detection, and integrated threat intelligence, GuardDuty can identify unauthorized or malicious activity within your AWS accounts. This capability helps in spotting compromised account credentials and thus assists in preventing potential security breaches.

  3. 03
    Malware Protection and Data Exfiltration Prevention

    By analyzing network and DNS logs, GuardDuty can detect communication with malicious hosts or unusual data transfer patterns. This facilitates early detection of malware infection or potential data exfiltration attempts, allowing teams to respond quickly to secure their resources and data.

  4. 04
    Automated Security Incident Response

    Amazon GuardDuty findings can trigger automated responses using AWS Lambda. This enables auto-remediation of common vulnerabilities or suspicious activities without manual intervention, leading to a more proactive and efficient security posture.

How Amazon GuardDuty is priced

Amazon GuardDuty pricing operates on a volume-based model with reduced rates at higher data volumes, includes a free 30-day trial for new users, and varies by region.

Volume-based Pricing

Foundational threat detection charges for CloudTrail management events per million events analyzed and for VPC Flow Logs and DNS query logs per GB analyzed. VPC Flow Logs and DNS query log analysis receive volume discounts.

Free Tier

New GuardDuty accounts receive a 30-day trial in each Region, including GuardDuty-initiated EBS malware scans; existing accounts receive a trial when first enabling that scanning capability. On-demand malware scanning and Malware Protection for AWS Backup have no free trial. Malware Protection for S3 instead offers a 12-month Free Tier of 1,000 requests and 1 GB per month.

Regions Variability

Pricing can vary by region, reflecting the different operational costs. Users are advised to review the pricing details for their specific region to estimate the costs accurately.

Runtime Monitoring

Runtime Monitoring is charged according to the number and size of protected EKS, ECS, and EC2 workloads, measured in vCPUs.

RDS Protection

RDS Protection charges are based on protected provisioned database vCPUs per month or protected Aurora Serverless v2 ACUs per month.

Malware Protection for EC2

EBS malware scanning is charged on the total prorated GB of EBS data scanned each month; required EBS snapshots are billed separately.

Malware Protection for S3

S3 malware scanning is charged by GB scanned and the number of objects evaluated per month; required S3 API requests are billed separately.

Malware Protection for AWS Backup

Backup malware scanning is charged by GB of backup data scanned each month, in addition to separately billed AWS Backup APIs and storage.

S3 Protection

CloudTrail S3 data event analysis is charged per million events per month, prorated, with volume discounts.

EKS Protection

EKS audit log analysis is charged per million audit logs per month, prorated, with volume discounts.

Lambda Protection

Lambda Protection network activity log analysis is charged per GB, with volume-based pricing tiers.

AI Protection

AI Protection CloudTrail AI data event analysis is charged per GB, with volume-based pricing tiers.

Services Amazon GuardDuty works with

AWS CloudTrailAWS CloudTrail

Provides event history of your AWS account activity, including actions taken through the AWS Management Console, AWS SDKs, command line tools, and other AWS services.

Amazon AuroraAmazon Aurora

GuardDuty RDS Protection analyzes login activity from supported Aurora databases to detect suspicious access, such as anomalous login patterns and attempts to use compromised credentials.

Amazon Aurora ServerlessAmazon Aurora Serverless

GuardDuty RDS Protection monitors login activity for supported Aurora Serverless v2 databases. It can identify suspicious database access without requiring a monitoring agent in the database.

Amazon CloudWatchAmazon CloudWatch

GuardDuty publishes Malware Protection for S3 metrics to CloudWatch so you can monitor scanning activity and failures. CloudWatch alarms can notify operators when objects cannot be scanned.

Amazon DetectiveAmazon Detective

GuardDuty findings can be investigated in Detective, which correlates related identities, resources, and activity. You can pivot from a finding into an investigation of the affected resource and its surrounding behavior.

Amazon EC2Amazon EC2

GuardDuty detects threats affecting EC2 instances using network activity, account activity, and optional runtime monitoring. Malware Protection for EC2 can also scan attached EBS volumes for malicious files.

Amazon Elastic Block Store (Amazon EBS)Amazon Elastic Block Store (Amazon EBS)

GuardDuty Malware Protection for EC2 scans EBS volume data associated with selected EC2 instances and container workloads. It uses snapshots to examine the data without installing antivirus software on the instance.

Amazon Elastic Container Registry (Amazon ECR)Amazon Elastic Container Registry (Amazon ECR)

GuardDuty distributes containerized runtime security agents through AWS-managed ECR repositories. Protected EKS and ECS Fargate workloads pull these images when the GuardDuty agent is deployed.

Amazon Elastic Container Service (Amazon ECS)Amazon Elastic Container Service (Amazon ECS)

GuardDuty Runtime Monitoring analyzes operating-system and runtime activity from ECS workloads on AWS Fargate using a security agent. ECS workloads running on EC2 can be protected through runtime monitoring of their underlying instances.

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

GuardDuty EKS Protection analyzes Kubernetes audit logs to detect suspicious activity against EKS clusters. Runtime Monitoring adds agent-based visibility into container processes, file access, and network activity.

What is Amazon GuardDuty

3 min read

Amazon GuardDuty is an intelligent threat detection service that provides users with an easy and cost-effective way to continuously monitor and protect their AWS environments, including accounts, workloads, and data stored in Amazon S3. This service is designed to help safeguard AWS environments from malicious or unauthorized activities by analyzing vast amounts of data, including VPC flow logs, AWS CloudTrail event logs, and DNS logs, to identify unusual or unauthorized activity that could indicate a security threat. 

At its core, Amazon GuardDuty leverages machine learning, anomaly detection, and integrated threat intelligence to scrutinize activities within your AWS environment. It looks for patterns and behaviors that deviate from the norm, which might suggest a potential security issue. For instance, if there’s an unusual API call or an unexpected spike in data traffic, GuardDuty is equipped to raise an alert. This level of scrutiny applies not just to the activities within the AWS accounts but also to the incoming and outgoing network traffic, providing a comprehensive security monitoring mechanism. 

RDS Protection monitors supported Amazon RDS and Aurora databases for suspicious login activity and data activity such as data exfiltration or destruction. You can enable login activity alone or together with data activity; data activity monitoring requires login activity monitoring.

Malware Protection scans EBS volumes attached to EC2 instances, files in S3, and EC2, EBS, and S3 backup data stored through AWS Backup.

Malware Protection for EC2 scans at most 11 EBS volumes per instance, each up to 2,048 GB. If more than 11 volumes need scanning, it sorts their device names alphabetically and selects the first 11.

For Malware Protection for Backup, the maximum supported snapshot size is 2 TiB, measured using the full snapshot size rather than its incremental size. An incremental scan is skipped if either the current or base snapshot exceeds that limit.

One of the key advantages of Amazon GuardDuty is its ability to start working with minimal setup. Foundational threat detection does not require additional security software, but optional Runtime Monitoring uses a security agent for Amazon EKS workloads on EC2, Amazon ECS workloads on EC2 or AWS Fargate, and EC2 instances. Once enabled, GuardDuty analyzes activity that starts after enablement, not historical data, without the need to enable or maintain additional logging features. This seamless integration and ease of use make it an attractive solution for organizations of all sizes looking to enhance their security posture without significant overhead.

GuardDuty provides detailed findings that are actionable, meaning they not only indicate that a potential threat has been detected but also offer recommendations on how to investigate and mitigate the issue. These findings are accessible directly via the AWS Management Console, through APIs, or can be integrated with Amazon EventBridge and various AWS partner security solutions, enabling automated responses and facilitating a swift action to address the identified threat. 

GuardDuty retains findings for 90 days, after which they are deleted; this retention limit cannot be increased.

GuardDuty is Regional. Delegated administrator and member-account associations through AWS Organizations must be configured in each Region where you want that administrator to manage members.

Furthermore, the service is continuously updated with new threat intelligence and detection logic, enhancing its capability to identify even the most recent and sophisticated cyber threats. This ensures that as the landscape of cyber threats evolves, so does the ability of GuardDuty to protect AWS resources. 

GuardDuty operates on a pay-as-you-go pricing model, with costs based on the volume of service logs, events, workloads, or data analyzed. This model allows organizations to scale their use of the service in line with their operational activities and threat exposure, ensuring they can maintain robust security measures without incurring unnecessary costs. 

In summary, Amazon GuardDuty represents a powerful, intelligent, and seamless approach to threat detection and monitoring for AWS environments. By offering in-depth visibility into potential security issues without the need for extensive setup or complex maintenance, it enables organizations to focus on their core operations while maintaining a strong security posture against a wide array of cyber threats.

Concepts related to Amazon GuardDuty

Amazon GuardDuty exam questions

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

CLF-C02

A company receives files from external suppliers in an Amazon S3 bucket. The security team wants to automatically scan newly uploaded objects for malware and generate findings when malicious files are detected. The company does not want to deploy or maintain scanning servers. Which solution best meets these requirements?

Show answerCORRECT ANSWER

Enable Amazon GuardDuty Malware Protection for S3 for the bucket.

GuardDuty Malware Protection for S3 automatically scans newly uploaded objects in a protected bucket for malware and generates findings for detected threats, without requiring the company to manage scanning infrastructure.

MLA-C02

A company operates Amazon SageMaker inference workloads in multiple AWS accounts and Regions. Amazon Inspector scans the workloads' container images in Amazon ECR, and Amazon GuardDuty detects suspicious activity in each account. The security team needs a centralized view of both services' findings across all accounts and Regions. Newly reported critical findings must also trigger an existing AWS Step Functions incident-response workflow. Which solution meets these requirements with the LEAST custom development?

Show answerCORRECT ANSWER

Enable AWS Security Hub CSPM in all participating accounts and Regions, configure a delegated administrator and cross-Region finding aggregation, and enable the Inspector and GuardDuty integrations. In the aggregation Region, use an Amazon EventBridge rule matching newly reported critical findings to start the Step Functions workflow.

Security Hub CSPM consolidates Inspector and GuardDuty findings. Delegated administration provides cross-account visibility, and cross-Region aggregation brings findings from linked Regions into the aggregation Region. EventBridge can match imported critical findings and invoke the existing Step Functions workflow without a custom polling application.

SOA-C03

Amazon GuardDuty generates an UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS finding for a production EC2 instance. Investigation confirms that an attacker copied temporary credentials issued to the instance's IAM role and is using them from outside AWS. A CloudOps engineer has isolated the instance and will replace it with an instance launched from a trusted image.

The engineer must immediately prevent all previously issued sessions for the affected role from authorizing requests. Replacement instances must still be able to obtain usable credentials for the same role. A brief interruption to other workloads using the role is acceptable.

Which additional action should the engineer take?

Show answerCORRECT ANSWER

Revoke the IAM role's active sessions by applying a deny policy based on aws:TokenIssueTime with the current time as the cutoff, and retain that policy until the older credentials have expired.

Revoking role sessions applies an explicit deny to requests made with role credentials issued before the cutoff. This prevents the stolen credentials and other older sessions from authorizing requests after the policy propagates. Sessions issued after the cutoff can use the role's permissions, allowing replacement instances to operate.

Practice Amazon GuardDuty in a full exam

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

Start a free practice exam

Learn Amazon GuardDuty in lessons

24 short lessons on Amazon GuardDuty in 7 certification courses.

and 18 more lessons

Open the lessons

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