AWS in 1 Min · Episode 144

Amazon GuardDuty explained: threat detection on AWS

Threat detection from your logs. Watch the one-minute video, then read the details.

David Gomez1:23 video · 2 min read

"Threat detection means agents on every server." Not to start. When you turn on Amazon GuardDuty, it begins analysing logs that AWS already produces for your account. There is nothing to install for the basics, and within minutes you get findings instead of raw log lines.

What GuardDuty is

GuardDuty is a threat detection service that continuously monitors your AWS accounts. It combines threat intelligence feeds (lists of known malicious IP addresses, domains and file hashes) with machine learning models to spot activity that looks malicious or out of place, then raises a finding with a severity, the affected resource and the details.

The foundational sources

As soon as it is enabled, GuardDuty analyses three foundational data sources, with no extra setup and no need to turn those logs on yourself:

  • AWS CloudTrail management events: who called which API (see CloudTrail explained).
  • VPC flow logs from your EC2 instances: who talked to whom on the network.
  • DNS logs: which domains your resources looked up.

From those it detects things like compromised credentials used from an unusual place, cryptomining on an EC2 instance, or a server communicating with a known command-and-control address.

Protection plans go deeper

Optional protection plans add more sources: S3 Protection (S3 data events), EKS Protection (Kubernetes audit logs), Runtime Monitoring (operating system events on EKS, EC2 and ECS including Fargate, which uses a GuardDuty security agent), Malware Protection for EC2, S3 and AWS Backup, RDS Protection (login activity) and Lambda Protection (network activity). New accounts get a 30-day free trial that includes most plans, so you can see the cost before you commit.

Extended Threat Detection is on by default at no extra cost. It links events that look harmless on their own into an attack sequence across resources and time, for example credential access followed by unusual S3 activity, and reports it as one critical finding.

A common mistake is enabling GuardDuty in one Region only. Attackers love the Regions you never use; enable it everywhere, ideally for the whole organization through a delegated administrator account.

Where AI fits

Machine learning is how GuardDuty notices behaviour that does not look like you: its anomaly detection learns the usual pattern of API calls for an identity and flags requests that break it, such as an API invoked in an unusual way or from an unusual network.

For AI workloads there is now an AI Protection plan. It analyses CloudTrail data events from Amazon Bedrock, Bedrock AgentCore and SageMaker AI to detect threats such as anomalous model invocations and cost harvesting (someone using your credentials to run expensive models). AWS also offers AI-powered GuardDuty Investigation, currently in preview, which summarises findings with a risk assessment and next steps.

Quick recap

  • Turn it on: CloudTrail, VPC flow logs and DNS logs are analysed with no agents.
  • Plans add depth: S3, Kubernetes, runtime, malware, RDS, Lambda and AI workloads.
  • Findings, not raw logs, with attack sequences linked for you and a 30-day free trial.
AWS in 1 Min #144 · 1:23

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS