1.2 Amazon GuardDuty Architecture & Finding Types
Key Takeaways
GuardDuty is an agentless, continuous threat detection service that analyzes AWS control plane and network telemetry out-of-band without customer-incurred VPC Flow Log ingestion fees or workload latency.
GuardDuty's three foundational data sources are AWS CloudTrail management events, VPC Flow Logs, and Route 53 Resolver DNS query logs; S3 data events and EKS audit logs are analyzed only when the S3 Protection and EKS Protection plans are enabled.
Specialized protection plans extend detection to managed workloads: S3 Protection, EKS Protection, RDS Protection, Lambda Protection, and Runtime Monitoring via an in-guest eBPF agent.
Findings follow the [ThreatFamily]:[TargetResource]/[ThreatSubfamily].[Artifact] taxonomy and carry a severity from 1.0 to 10.0: Low (1.0–3.9), Medium (4.0–6.9), High (7.0–8.9), and Critical (9.0–10.0) for attack-sequence findings.
Suppression rules auto-archive expected findings; suppressed findings stay queryable in GuardDuty but are not sent to Security Hub CSPM, the S3 findings export, Detective, or EventBridge.
1.2 Amazon GuardDuty Architecture & Finding Types
Amazon GuardDuty is a managed threat detection service that continuously monitors AWS accounts, workloads, and data for malicious activity and unauthorized behavior. Rather than relying solely on static rule sets, GuardDuty combines machine learning, anomaly detection, behavioral modeling, and integrated threat intelligence (including AWS Security Intelligence and third-party feeds such as Proofpoint and CrowdStrike) to identify indicators of compromise (IoCs).
Understanding GuardDuty's architectural foundations, out-of-band telemetry processing, specialized protection plans, finding format, and multi-account administration is essential for the AWS Certified Security – Specialty exam.
GuardDuty Core Architecture & Out-of-Band Telemetry Ingestion
A defining architectural characteristic of GuardDuty is its out-of-band, serverless operation. Enabling GuardDuty does not deploy software agents on EC2 instances (for foundational features), does not proxy network traffic, and does not introduce latency or resource overhead to production workloads.
Foundational Data Sources
When GuardDuty is enabled, it automatically begins consuming three foundational data sources (CloudTrail management events, VPC Flow Logs, and Route 53 Resolver DNS query logs) without requiring the customer to create or configure them. Items 2 and 5 below are analyzed only when their optional protection plans are turned on:
- AWS CloudTrail Management Events: Tracks API calls across all AWS services, identifying reconnaissance (e.g., automated
Describe*sweeps), unauthorized IAM policy changes, and credential access. - CloudTrail S3 Data Events (S3 Protection plan): Analyzes object-level operations (
GetObject,PutObject,DeleteObject) to detect anomalous data access patterns and mass downloads. - VPC Flow Logs: Analyzes IP traffic metadata to and from EC2 network interfaces. Critical Exam Fact: GuardDuty consumes VPC Flow Log telemetry through an independent, duplicated stream that AWS manages. The customer does not need to enable VPC Flow Logs in their VPC to use GuardDuty, nor do they pay CloudWatch Logs ingestion or storage fees for GuardDuty's internal consumption.
- Route 53 DNS Query Logs: Analyzes DNS queries sent to the default AWS Route 53 Resolver (the VPC
+2address). Detects compromised instances querying known Command-and-Control (C2) domains, dynamic DNS services, or domain generation algorithms (DGA). - Kubernetes (EKS) Audit Logs (EKS Protection plan): Consumes audit logs directly from the managed Amazon EKS control plane to detect cluster role binding escalations, anonymous API requests, and unauthorized pod launches.
Specialized & Advanced Protection Plans
Beyond foundational log analysis, GuardDuty provides specialized protection features that target specific workload vectors. These features can be enabled independently within the GuardDuty console or via the UpdateDetector API.
| Protection Feature | Telemetry Analyzed | Workload Impact & Agent | Security Detection Scope |
|---|---|---|---|
| S3 Protection | S3 data plane API events | Agentless; out-of-band | Anomalous access volume, requests from malicious IPs or Tor nodes, exfiltration. |
| EKS Protection | Amazon EKS audit logs | Agentless; control plane | Kubernetes control plane privilege escalation, malicious pod creation, compromised service accounts. |
| Runtime Monitoring | OS system calls, processes, socket activity | eBPF security agent on host/pod | Fileless malware, unauthorized process execution, reverse shells, container breakouts. |
| RDS Protection | Aurora login activity | Agentless; database control plane | Brute-force login attempts, anomalous client IPs, credential stuffing against Aurora MySQL/PostgreSQL. |
| Lambda Protection | VPC flow metadata from Lambda invocations | Agentless; network layer | Compromised serverless functions communicating with C2 nodes or cryptocurrency mining pools. |
| Malware Protection | EBS volume snapshots / S3 objects | Agentless; isolated scan environment | Scans EBS volumes attached to infected EC2 instances and newly uploaded S3 objects for trojans, worms, and rootkits. |
Deep Dive: GuardDuty Runtime Monitoring & eBPF Architecture
While foundational GuardDuty relies on external network and control plane logs, GuardDuty Runtime Monitoring provides deep in-guest operating system visibility. It supports Amazon EKS, Amazon ECS (including AWS Fargate), and Amazon EC2.
Runtime Monitoring operates using an extended Berkeley Packet Filter (eBPF) security agent:
- Automated Agent Management: When enabled for EKS, GuardDuty can automatically deploy and update the security agent daemonset (
aws-guardduty-agent) across cluster worker nodes. - Kernel-Level Telemetry: The eBPF agent intercepts operating system system calls (
execve,connect,open) in kernel space without modifying application source code. - Process Context: Identifies the specific Linux process name, parent process ID, container ID, and command-line arguments responsible for malicious outbound connections or file modifications.
Deep Dive: Malware Protection Mechanics
When GuardDuty generates a compute-based finding (such as an EC2 instance beaconing to a known C2 server), GuardDuty Malware Protection can automatically initiate an agentless scan:
- GuardDuty creates a point-in-time Amazon EBS snapshot of the target instance's root and attached volumes.
- GuardDuty shares the snapshot with an isolated AWS-managed service account in the same Region.
- An ephemeral scanning instance in the service account restores the snapshot to an encrypted EBS volume and performs signature and heuristic malware scanning.
- When scanning completes, GuardDuty automatically deletes the restored volume and snapshot (retention can optionally be enabled for forensic examination).
GuardDuty Finding Taxonomy & Severity Scoring
GuardDuty findings represent potential security incidents formatted as structured JSON payloads. Every finding follows a standardized three-part naming hierarchy:
[ThreatFamily]:[TargetResource]/[ThreatSubfamily].[Artifact]
Finding Taxonomy Components
- ThreatFamily: The broad category of threat or attacker motivation (e.g.,
CryptoCurrency,UnauthorizedAccess,Recon,Stealth,Trojan,PrivilegeEscalation,Impact). - TargetResource: The AWS resource targeted or compromised (e.g.,
EC2,IAMUser,S3,Kubernetes,RDS,Lambda,Runtime). - ThreatSubfamily: The specific attack technique, malware family, or anomalous behavior (e.g.,
SSHBruteForce,BitcoinTool.B,TorIPCaller,DNSDataExfiltration,UnusualDoHTraffic). - Artifact: Optional detail describing the data source or communication channel through which the threat was detected (e.g.,
!DNS,!VPC).
Example Finding: CryptoCurrency:EC2/BitcoinTool.B!DNS denotes that an EC2 instance was detected querying known cryptocurrency mining pool endpoints via DNS.
Severity Scoring System
GuardDuty assigns every finding a numeric severity value between 1.0 and 10.0. Findings fall into four operational bands:
| Severity Band | Numeric Score Range | Operational Meaning & Typical Scenarios | Recommended Response SLA |
|---|---|---|---|
| Low | 1.0 - 3.9 | Suspicious activity detected, but no evidence of successful compromise (e.g., external port scanning targeting an EC2 instance where security groups blocked the traffic; minimal anomalous API volume). | Log for audit; review in weekly triage. |
| Medium | 4.0 - 6.9 | Suspicious activity that deviates from historical baseline and warrants prompt investigation (e.g., API calls executed from a Tor exit node; unusual spike in S3 object downloads from a corporate network). | Investigate within 4–8 hours. |
| High | 7.0 - 8.9 | Active, verified compromise or high-impact threat in progress (e.g., EC2 instance communicating with known C2 botnet; IAM access keys used to create backdoor users; ransomware file encryption patterns). | Immediate automated response and SOC paging (< 15 minutes). |
| Critical | 9.0 - 10.0 | An attack sequence may be in progress or has recently happened. GuardDuty Extended Threat Detection correlates several signals (for example, credential misuse followed by S3 data exfiltration) into one attack-sequence finding. | Treat as a declared incident; page responders immediately. |
Exam Tip: The GuardDuty severity scale now runs to 10.0; Critical (9.0–10.0) findings come from Extended Threat Detection attack sequences. An EventBridge condition of
"severity": [{"numeric": [">=", 7]}]therefore captures both High and Critical findings.
Suppression Rules & Finding Lifecycle
In enterprise environments, authorized activities can trigger false-positive findings. Examples include authorized penetration testing, vulnerability scanning appliances, internal CI/CD pipelines deploying ephemeral nodes, and third-party SaaS management tools.
How Suppression Rules Function
Rather than disabling detection rules globally, security engineers configure Suppression Rules:
- Suppression rules define precise filter criteria based on finding attributes (such as
type,resource.tag,service.action.awsApiCallAction.remoteIpDetails.ipAddressV4, oraccountId). - When a finding matches an active suppression rule, GuardDuty automatically sets the finding's
RecordStatetoARCHIVEDupon generation. - Audit Preservation: Suppressed findings are not discarded. They are stored in the GuardDuty repository for 90 days, where they can be queried via the console or CLI by filtering for archived findings. However, suppressed findings are not sent to Security Hub CSPM, the S3 findings export, Amazon Detective, or Amazon EventBridge, and they do not start Malware Protection for EC2 scans. A suppression rule is therefore also a routing decision: write it narrowly.
Multi-Account Governance via AWS Organizations
Managing GuardDuty across hundreds of AWS accounts requires centralized governance. AWS Organizations enables a Delegated Administrator model that separates security operations from the AWS Organizations management account.
Delegated Administrator Capabilities & Constraints
- Designation: The Organizations management account calls
EnableOrganizationAdminAccountdesignating a dedicated security tooling account as the GuardDuty Delegated Administrator. - Auto-Enablement: The delegated administrator enables GuardDuty across all existing member accounts with a single operation and activates
Auto-Enable, ensuring that any newly created or joined accounts in the organization immediately have GuardDuty and specialized protection features activated. - Centralized Visibility: The delegated administrator views, searches, and manages findings across all member accounts from a single pane of glass.
- Member Account Restrictions: Member accounts cannot disable GuardDuty, cannot remove themselves from the organization detector, and cannot alter suppression rules published by the delegated administrator.
- Long-Term Export: GuardDuty findings can be exported to a central Amazon S3 bucket located in the security tooling account. The export destination requires an S3 bucket policy granting
guardduty.amazonaws.compermission to put objects and a KMS Key Policy granting GuardDuty permission to use a customer-managed key (CMK) for envelope encryption.
Specialty Exam Pitfalls & Threat Detection Scenarios
- The VPC Flow Log Requirement Myth: A frequent exam trap suggests that a customer must create a CloudWatch VPC Flow Log subscription before GuardDuty can analyze network traffic. This is false: GuardDuty taps internal AWS network telemetry independently. Enabling or disabling customer VPC Flow Logs has zero impact on GuardDuty's operational coverage.
- KMS Permissions for Finding Export: When configuring GuardDuty finding export to an S3 bucket, using the AWS-managed key
aws/s3will fail. GuardDuty requires a customer-managed KMS key (CMK) because the GuardDuty service principal must be granted explicitkms:GenerateDataKeypermissions via the KMS key policy. - Regional Isolation: GuardDuty is a Regional service. Enabling GuardDuty in
us-east-1provides zero threat detection for workloads operating ineu-west-1orap-southeast-1. To protect an enterprise, GuardDuty must be enabled in all active and inactive AWS Regions (to detect unauthorized resource creation in unused Regions). - Suppression Rules vs EventBridge Filters: Suppression rules archive findings within the GuardDuty service itself, preventing them from cluttering the console or feeding default Security Hub compliance checks. If you only filter events in EventBridge, the findings still remain active in the GuardDuty console and generate alerts in integrated downstream services.
A multinational corporation enables Amazon GuardDuty across its AWS Organization. The security team wants to detect if any EC2 instances are communicating with known cryptocurrency mining pools or command-and-control servers. The infrastructure engineering team raises cost concerns, claiming that enabling VPC Flow Logs across all 80 production VPCs and streaming them to CloudWatch Logs will exceed their monthly monitoring budget. What should the security engineer advise?
Configure VPC Flow Logs to stream to an Amazon S3 bucket instead of CloudWatch Logs to reduce ingestion fees by 70%.
Deploy the GuardDuty eBPF runtime agent on all EC2 instances and disable VPC Flow Log analysis in the GuardDuty detector.
Enable Route 53 Resolver query logging across all VPCs because DNS logging is completely free of charge.
Advise the team that GuardDuty analyzes VPC flow telemetry directly from the internal AWS network fabric without requiring customer VPC Flow Logs to be enabled, incurring no CloudWatch Logs ingestion fees.
A security operations analyst receives a GuardDuty finding labeled 'Recon:IAMUser/NetworkPermissions'. Based on the standard Amazon GuardDuty finding taxonomy, what does this finding label signify?
An IAM user has successfully deleted network routing tables and attached an internet gateway to an isolated VPC.
An IAM entity was observed invoking APIs to enumerate network configurations (such as DescribeVpcs and DescribeSecurityGroups) in an anomalous manner consistent with reconnaissance.
An EC2 instance has initiated an unauthorized network connection to an external reconnaissance scanning server.
A malicious script inside an EKS container modified the VPC CNI plugin to intercept network traffic.
An enterprise security architect is configuring Amazon GuardDuty across 150 AWS accounts using AWS Organizations. The enterprise mandates that security administrators must have centralized visibility, newly created member accounts must be protected automatically, and individual member account owners must not be able to tamper with threat detection settings. Which architectural design meets these criteria?
Use the AWS Organizations management account to designate the Security Tooling account as the GuardDuty Delegated Administrator, enable Auto-Enable for the organization, and manage findings and suppression rules from the delegated account.
Deploy an AWS CloudFormation StackSet from the management account that deploys GuardDuty in every member account and configures cross-account IAM assume-role policies.
Configure GuardDuty in the AWS Organizations management account and invite each member account using GuardDuty manual member invitations.
Enable AWS Control Tower and rely on Detective guardrails to periodically enable GuardDuty via Systems Manager State Manager associations.
A security engineer investigates a sophisticated threat scenario where an attacker deployed a fileless trojan inside an Amazon EKS pod that executes reverse shells directly in memory without modifying container disk files. Which GuardDuty feature is specifically architected to detect this operating system-level process execution behavior?
Amazon GuardDuty foundational EKS Protection using Kubernetes control plane audit log analysis.
Amazon GuardDuty S3 Protection using S3 data plane API event analysis.
Amazon GuardDuty Runtime Monitoring using the lightweight eBPF security agent running on the node.
Amazon GuardDuty Malware Protection initiated via EBS snapshot volume inspection.
Sections you finish are checked off in the contents.