Skip to Content
Asterrr's Handbook
1 · Detection

Amazon GuardDuty

Regional threat detection, data sources, protection plans, severity, lists and automated response.

Exam tasks: 1.1 (skills 1.1.1 to 1.1.4: monitoring requirements, aggregating security events, detecting anomalous activity)

The decision: which GuardDuty protection plans does this workload need, who administers GuardDuty for the whole organization, and how do you cut noise without blinding the detector?

GuardDuty is a regional threat detection service. It analyzes account activity and raises findings. It does not block anything. Response is built around it with EventBridge. One detector per account per Region.

Foundational data sourcesAWS account (one Region)findingnotifyrespondVPC Flow LogsRoute 53Resolver DNSlogsCloudTrailmanagementeventsGuardDutySecurity HubEventBridge ruleSNS alertLambda isolatesinstance
GuardDuty reads foundational data sources, then EventBridge fans each finding out to alerts and automated isolation.
9.0–10.0
Critical severity, used by Extended Threat Detection attack sequences.
24 hours
Rolling window Extended Threat Detection correlates signals over.
90 days
How long GuardDuty keeps findings, including archived ones. Export to S3 to keep longer.
6 hours
Default frequency for sending updates of existing findings. Can be set to 15 minutes or 1 hour.
50,000
Member accounts one delegated GuardDuty administrator can manage.
30 days
Free trial per account, per Region, for GuardDuty and its plans.

Data sources

SourceWhat to remember
VPC Flow LogsGuardDuty reads its own independent stream. You do not need to enable flow logs.
Route 53 Resolver DNS query logsOnly traffic through the AWS resolver. OpenDNS, Google DNS, Active Directory DNS and self-run resolvers are invisible to it.
CloudTrail management eventsAPI call history and who made each call.
  • GuardDuty reads its sources through an independent stream. Turning on a trail, flow logs or Resolver query logging does not change what it sees.
  • Enable it in every Region, including ones you do not use. Attackers like idle Regions.

Your own DNS server

DNS-based findings (for example Backdoor:EC2/C&CActivity.B!DNS) come from queries sent to the Amazon-provided VPC resolver. Third-party resolvers, Active Directory DNS and self-run resolvers are invisible to it, so the fix is to route queries through the Route 53 Resolver. Runtime Monitoring also restores DNS visibility from inside the host, because the agent sees the lookups directly.

Protection plans

Foundational sources are always on. Protection plans add sources.

PlanData it addsTurn it on when
S3 ProtectionCloudTrail S3 data events (GetObject, PutObject, DeleteObject)Buckets hold anything you'd miss. Also unlocks S3 exfiltration attack sequences
EKS ProtectionKubernetes audit logs, pulled directly from EKS (no cluster logging needed)You run EKS and want API-level detections: anonymous access, privileged pods
Runtime MonitoringOS-level process, file and network events from a GuardDuty security agentYou need to see inside hosts and containers: reverse shells, miners, container escape
Malware Protection for EC2Agentless scan of EBS volumes, started by a suspicious finding or on demandYou want evidence of malware on an instance without installing anything
Malware Protection for S3Scans newly uploaded objects in chosen buckets, can tag resultsUntrusted uploads (user files, partner drops). Usable without the rest of GuardDuty
Malware Protection for AWS BackupScans EBS snapshots, AMIs and recovery pointsYou need to prove a restore point is clean before recovery
RDS ProtectionLogin activity for supported Aurora and RDS enginesBrute force or anomalous logins to databases
Lambda ProtectionNetwork activity of Lambda functionsFunctions that could be abused for mining or C2 traffic
AI ProtectionCloudTrail data events from Bedrock, Bedrock AgentCore and SageMaker AIModel invocation abuse, cost harvesting, prompt injection
  • New GuardDuty accounts get every plan except Runtime Monitoring enabled during the 30-day trial. Accounts that enabled GuardDuty before a plan launched don't get the new plan automatically.
  • Runtime Monitoring needs the agent. GuardDuty can manage it for you: an EKS add-on, a Fargate sidecar, or Systems Manager for EC2. The agent reaches GuardDuty through a VPC endpoint that GuardDuty creates.

Runtime Monitoring is not default

Runtime Monitoring needs a deployed agent and is off by default. A scenario that wants container process or file visibility needs it. EKS audit log monitoring alone sees only API server activity.

Exam signal

"Detect a reverse shell / crypto-miner process inside a container" means Runtime Monitoring. "Detect access to the Kubernetes API from a Tor exit node" means EKS Protection (audit logs). "Scan files uploaded by customers before processing" means Malware Protection for S3.

Extended Threat Detection

  • On by default wherever GuardDuty is on, at no extra cost. You can't really "enable" it; you feed it by turning on more protection plans.
  • It correlates signals (API calls, weak signals that aren't findings on their own, and existing findings) across sources and time, within one account, and raises a single attack sequence finding.
  • Attack sequence types include AttackSequence:IAM/CompromisedCredentials, AttackSequence:S3/CompromisedData, AttackSequence:EKS/CompromisedCluster, AttackSequence:ECS/CompromisedCluster and AttackSequence:EC2/CompromisedInstanceGroup.
  • Coverage depends on your plans: S3 exfiltration sequences need S3 Protection, EKS sequences need EKS Protection or Runtime Monitoring, ECS and EC2 group sequences lean on Runtime Monitoring, and AI workload signals need AI Protection.
  • All attack sequence findings are Critical. It covers EC2 instances, ECS tasks and EKS clusters.

Exam signal

"Reduce alert fatigue from dozens of related Medium findings and see the whole attack as one story" points to Extended Threat Detection and its attack sequence findings, not to a SIEM correlation rule you build yourself.

Findings: names and severity

Every finding type follows ThreatPurpose:ResourceTypeAffected/ThreatFamilyName.DetectionMechanism!Artifact:

PrefixMeaning
BackdoorResource is controlled by a command and control server
BehaviorUnusual activity pattern for a resource
CryptoCurrencyCrypto mining activity
ExfiltrationData is leaving, such as unusual S3 reads
PenTestAPI calls from Kali, Parrot or Pentoo Linux
PersistenceA principal is behaving unusually to keep access
PolicyAccount behavior breaks best practice, such as root use or S3 Block Public Access off
PrivilegeEscalationA principal looks like it is escalating privileges
ReconOngoing reconnaissance
ResourceConsumptionA principal with no EC2 history calls RunInstances. Often stolen credentials
StealthAttacker is hiding tracks, such as CloudTrail logging disabled
TrojanSoftware disguised as harmless
UnauthorizedAccessSuspicious access such as brute force, Tor, or instance credentials used outside AWS
Impact, Execution, Discovery, DefenseEvasionMostly Runtime and malware findings such as reverse shell or process injection
AttackSequenceExtended Threat Detection correlated a multi-stage attack
  • ResourceType tells you where to look: EC2, IAMUser, S3, Kubernetes, Runtime, Lambda, RDS.
  • !DNS means it came from DNS logs; .Custom means it matched your threat list.

Worth recognising on sight.

FindingWhat it meansFirst response
UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWSRole credentials from an instance are being used from outside AWSRevoke the role's active sessions, then investigate the instance
CryptoCurrency:EC2/BitcoinTool.B!DNSInstance resolves mining pool domainsIsolate the instance, snapshot for forensics
Stealth:IAMUser/CloudTrailLoggingDisabledSomeone stopped or deleted a trailRestart logging, find the principal, check SCPs
Policy:IAMUser/RootCredentialUsageRoot user credentials called an APIConfirm it was planned, review root MFA
Recon:EC2/PortProbeUnprotectedPortInternet hosts probing an open portTighten the security group if the port shouldn't be public
Exfiltration:S3/AnomalousBehaviorUnusual volume or pattern of S3 readsCheck who, from where, and which objects
SeverityValueMeaning
Critical9.0 to 10.0An attack sequence is in progress or just happened. All attack sequence findings are Critical
High7.0 to 8.9The resource is compromised and actively misused
Medium4.0 to 6.9Behaviour deviates from the baseline and may mean compromise
Low1.0 to 3.9An attempt that didn't succeed, such as a blocked scan

Tuning: suppression, trusted lists and threat lists

MechanismEffectLimit
Suppression ruleNew findings that match a filter are archived automatically and are not sent to EventBridgeFilter-based, 100 saved filters per Region
Trusted listNo findings for activity involving these entries1 per account per Region, for IP lists and again for entity lists
Threat listFindings for activity involving these known-bad entries6 per account per Region

List details.

  • Entity lists are the recommended format. They hold IPv4 addresses, CIDRs and domains. Threat entity lists may also hold SHA-256 file hashes. Legacy IP lists hold IPv4 only.
  • Sizes. Trusted IP list 2,000 entries, threat IP list 250,000, trusted or threat entity list 1,000 each. Maximum file 35 MB. Formats include plain text, STIX, OTX CSV, FireEye, Proofpoint and AlienVault.
  • A list is used only when its status is Active. Editing the S3 file means re-activating it. Activation takes about 15 minutes and up to 40.
  • An entry in both a trusted and a threat list is trusted.
  • IP lists do not apply to DNS log findings. Entity lists do.
  • Lists apply to publicly routable addresses only. In a multi-account setup only the administrator account manages lists, and they apply to members.

Exam signal

Own penetration test causing noise: trusted list or suppression rule. Want findings for a partner feed of bad IPs: threat list. Findings stay for 90 days, so export to S3 or send to EventBridge for longer retention.

  • A suppression rule is a saved filter that auto-archives matching new findings. GuardDuty still generates them (you can see them under Archived), but they are not sent to EventBridge, Security Hub, Detective or the S3 export, and they don't start malware scans.
  • Keep rules narrow: finding type plus something specific, such as the scanner's AMI ID, a tag on bastion hosts, or your on-premises egress IP.
  • Trusted IP lists stop findings for traffic from IPs you own. Threat lists add your own bad IPs and domains, producing .Custom findings.

Suppress everything from a noisy resource

Suppressed findings are archived, and Extended Threat Detection ignores archived findings when it builds attack sequences. A broad rule such as "archive all Kubernetes findings" quietly removes the signals that would have revealed a cluster compromise. Suppress specific known-good behaviour only, and only after you've seen the false positive repeat.

Trusted IP list as a suppression tool

Adding your vulnerability scanner's IP to a trusted IP list hides every finding involving that IP, including real ones if the scanner is ever compromised. A suppression rule scoped to Recon:EC2/Portscan from the scanner instance is the targeted fix.

Multi-account

designate once perRegionauto-enable ALL +protection plansfindingsManagementaccountSecurity tooling account(delegated admin)Member accountsSecurity HubEventBridge inadmin accountS3 export (KMSencrypted)
Diagram of running guardduty across an organization
  • The management account designates a delegated administrator, normally the security tooling account. Using the management account itself is allowed but goes against least privilege.

  • The designation is per Region, and it must be the same account in every Region.

  • Auto-enable can apply to ALL accounts (existing and new), NEW only, or NONE, and can be set per protection plan. Choose ALL if the question says "no account may be left out".

  • Findings from members appear in the admin account. The admin's EventBridge bus gets every member's findings, so one rule there covers the organization in that Region.

  • Members can't disassociate themselves or suspend GuardDuty when managed through Organizations. Changing the delegated admin removes the membership links but leaves GuardDuty enabled in members.

  • The old invitation method still works for accounts outside the organization, but Organizations is the recommended path.

  • Export findings to an S3 bucket for retention beyond 90 days. The export requires a KMS key whose policy lets GuardDuty use it.

  • The invitation method is capped at 5,000 members. Organizations supports up to 50,000.

Legacy: use protection plans and Runtime Monitoring instead

Older material refers to GuardDuty "data sources" you toggle (S3 logs, Kubernetes logs) and to a separate "EKS Runtime Monitoring" feature. Current GuardDuty groups these as protection plans, and runtime coverage for EKS, EC2 and ECS (including Fargate) is one Runtime Monitoring plan.

Response pattern

  1. GuardDuty raises a finding. New finding IDs reach EventBridge in near real time.
  2. Repeat occurrences of the same finding are aggregated. They reach EventBridge every 6 hours by default. The administrator can set 15 minutes or 1 hour.
  3. An EventBridge rule matches source aws.guardduty and detail-type GuardDuty Finding. It can filter on severity, type prefix or resource type.
  4. Targets run in parallel. Notify through SNS, and call Lambda, Step Functions or SSM Automation to isolate the instance, for example by swapping in a deny-all security group.

Scenarios

Scenario
A retailer has 240 accounts in AWS Organizations and a dedicated security tooling account. The CISO requires threat detection in every account and every enabled Region, including accounts created in the future, with all findings reviewed in one place. The security team must also be able to maintain one list of known malicious IP addresses for the whole company. What should the security engineer do?
Scenario
A fintech runs a nightly authorized vulnerability scan from two EC2 instances built from a dedicated AMI. Each night GuardDuty raises Recon:EC2/Portscan findings for those instances, and the SOC wants them to stop reaching its SIEM, which consumes findings through EventBridge. The SOC must still be alerted if any other instance port-scans. What is the MOST appropriate solution?
Scenario
A media company enabled GuardDuty two years ago with default settings and has never changed them. After an incident, investigators found that stolen role credentials were used to make a bucket policy public and then download 40 GB from that bucket. GuardDuty produced one Medium finding about the policy change but nothing about the download. Which change would MOST improve detection of this attack pattern in future?

Security Hub aggregates GuardDuty findings. Route 53 Resolver query logs explain the DNS data source. Macie covers sensitive data in S3, which GuardDuty does not. GuardDuty multi-account aggregation covers organization rollout from the infrastructure side. Alerting mechanisms shows the per-Region EventBridge rule for findings. Troubleshooting the monitoring pipeline covers findings missing from the admin account.

Further reading

On this page