Stop 14 · Monitoring, Security & Cost OptimizationTopics · 7/10

Amazon GuardDuty

Part of the AWS Roadmap

In short

Leaked access keys can be used to launch crypto-mining instances within minutes. GuardDuty watches your account's activity around the clock and flags the things that look like an attacker, not a developer.

GuardDuty is a threat detection service that analyses sources such as CloudTrail events, VPC Flow Logs and DNS logs to find suspicious activity, like crypto-mining instances or credentials used from unusual locations.

The jaadu sits on a farmhouse porch at night beside an alert watchdog that stares at a shadowy figure climbing over the far wall.

Think of it like this

The trained watchdog

A farmhouse outside Ludhiana keeps a dog that knows the family, the milkman and the postman. It stays quiet for them, but barks at a stranger climbing the wall at 3 a.m. GuardDuty learns what normal looks like in your account and raises an alarm when activity looks like an intruder, for example credentials used from an unusual country or an instance talking to a known mining pool.

Watch it happen

From suspicious activity to alert

Data sources
Threat detection
Finding
EventBridge rule
Team alerted

1/5GuardDuty reads CloudTrail management events, VPC Flow Logs and DNS logs from its own copies. You don't need to turn those on for it.

The big ideas

What you need to know

One click to enable

Turn it on per Region, or across an organisation with a delegated admin account. New accounts get a free trial period.

Protection plans

Optional extras add S3 data events, EKS audit logs, runtime monitoring, malware scanning, RDS login activity and Lambda network activity.

Severity levels

Findings are rated low, medium, high or critical. Route high and critical findings to people and review the rest regularly.

Detects, doesn't block

GuardDuty tells you about threats. Blocking or fixing is up to you, often automated with EventBridge and Lambda.

See it in code

Walk through the code

json
1{2  "source": ["aws.guardduty"],3  "detail-type": ["GuardDuty Finding"],4  "detail": {5    "severity": [{ "numeric": [">=", 7] }]6  }7}

1/2Match only events coming from GuardDuty findings.

An EventBridge event pattern that matches high and critical GuardDuty findings. Set its target to an SNS topic subscribed by your team.

Save yourself the pain

Common mistakes

Oops

Enabling GuardDuty only in the Region you use, leaving others unwatched.

Do this instead

Attackers love unused Regions. Enable it in every Region, ideally organisation-wide.

Oops

Turning it on and never looking at findings.

Do this instead

Route important findings to a channel people watch, and review the rest weekly.

Your mission

Generate and route findings

~20 min

Quick check

What must you turn on before GuardDuty can analyse VPC Flow Logs?

Go deeper

  1. 1Enable GuardDuty and generate sample findings to see what alerts look like.
  2. 2Route high-severity findings to email through EventBridge and SNS.
  3. 3Read the pricing page and note the free trial period for new accounts.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge