AWS Builder Center
Amazon GuardDuty: Your Automated Threat Detective

Amazon GuardDuty: Your Automated Threat Detective

How GuardDuty watches your account for suspicious activity without you lifting a finger.

Series: AWS Security 30 Days, 30 Articles Challenge (31 articles)

  1. …
  2. 16
    Amazon GuardDuty: Your Automated Threat Detective This article
Welcome to Day 15 of the 30 Days AWS Security Challenge, halfway through the month. Yesterday we set up CloudTrail so every action in your account gets recorded. Today we look at a service that actually reads through that activity for you and flags what looks suspicious: Amazon GuardDuty.

The Problem With Logs Alone

CloudTrail gives you a complete record of activity, but a complete record is not the same as useful insight. Nobody has time to manually scan through thousands of log entries every day looking for something unusual. You need something watching that data continuously and telling you when something looks wrong. That is the entire job of GuardDuty.

What GuardDuty Actually Does

GuardDuty is a threat detection service that continuously analyzes activity across your account, including CloudTrail logs, VPC Flow Logs, and DNS query logs, looking for patterns that suggest something malicious or unusual is happening. It uses a combination of known threat intelligence, anomaly detection, and machine learning, and it requires no agents or infrastructure to set up. You turn it on, and it starts working immediately using data AWS already has access to.
Some of the things GuardDuty can detect:
  • API calls originating from an unusual location, like a country your account has never operated in before
  • An EC2 instance suddenly communicating with a known malicious IP address, which could indicate a compromised instance
  • Unusual IAM behavior, like an access key being used from two very different locations in a short time window
  • Signs of cryptocurrency mining activity running on your infrastructure without authorization
  • Reconnaissance style activity, like unusual port scanning behavior

How Findings Are Presented

When GuardDuty spots something, it generates a finding, which includes a severity level (Low, Medium, or High), details about what triggered it, and the specific resource involved. You can review these under GuardDuty > Findings in the console.
A high severity finding, like an EC2 instance actively communicating with a known command and control server, deserves immediate attention. A low severity finding might just be worth noting and keeping an eye on. Not every finding means you've been breached, some reflect genuinely unusual but harmless activity, but all of them are worth reviewing rather than ignoring.

Turning It On

GuardDuty is refreshingly simple to enable. Go to GuardDuty > Get Started, and click Enable GuardDuty. There is no agent to install and no infrastructure to configure, it starts analyzing existing data sources immediately. AWS offers a 30 day free trial, after which pricing is based on the volume of data analyzed, which scales naturally with the size of your account.

Making Findings Actionable

Turning on GuardDuty is only half the job, since findings sitting unread in a console tab don't help anyone. Connect GuardDuty to EventBridge to route findings into a notification channel like an SNS topic feeding email or Slack, so your team actually sees high severity findings as they happen rather than discovering them during a routine check days later.
For accounts using AWS Organizations, you can also designate a delegated administrator account, giving one central place to review GuardDuty findings across every account in your organization, rather than checking each one separately.

A Practical Example

Imagine an EC2 instance gets compromised through an exposed application vulnerability, and the attacker starts using it to communicate with a known malicious server. Within minutes, GuardDuty flags this as a high severity finding, tagging the specific instance involved. With an EventBridge rule in place, your team gets an alert almost immediately, letting you isolate that instance and investigate, instead of discovering the compromise weeks later through unrelated means.

Key Takeaways

  • GuardDuty continuously analyzes CloudTrail, VPC Flow Logs, and DNS logs to detect suspicious activity automatically
  • It requires no agents or manual setup, just enable it and it starts working with existing data
  • Findings come with a severity level, and high severity findings deserve immediate investigation
  • Connect findings to EventBridge and a notification channel so your team actually sees them in real time
  • In multi account setups, use a delegated administrator to review findings across your whole organization in one place
Tomorrow we look at a related but different service, AWS Config, which focuses less on threats and more on tracking configuration changes over time for compliance and drift detection.

Series: AWS Security 30 Days, 30 Articles Challenge (31 articles)

  1. …
  2. 16
    Amazon GuardDuty: Your Automated Threat Detective This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article