This lesson focuses on practical GuardDuty deployment and operations: data sources to enable, multi-account design patterns, automated response using EventBridge + Lambda, and how to balance coverage vs cost.


What GuardDuty does
GuardDuty continuously inspects telemetry across AWS services, correlates it with threat intelligence, applies anomaly detection and ML models, then produces findings that include contextual metadata to support prioritization and response. Key telemetry sources GuardDuty ingests include CloudTrail, VPC Flow Logs, DNS logs, and optional sources like S3 data events and EKS audit logs. The next table summarizes common GuardDuty data sources and their purpose.

- Data collection → analysis (ML + threat intelligence + rules) → finding generation.
- Each finding is assigned attributes such as type, severity, and confidence to help prioritize response and automation.

Multi-account and organization integration
For enterprise-scale environments, GuardDuty supports multi-account deployments with centralized administration. Typical design patterns include:


Automated remediation and integrations
A common high-confidence automation pattern is: GuardDuty → EventBridge → Orchestration (Lambda / Step Functions / SSM) → Remediation / Enrichment → Notification / Ticketing. GuardDuty findings are delivered to EventBridge and can trigger Lambda functions, Systems Manager Automation runbooks, Step Functions workflows, or be forwarded to Security Hub and SIEMs. Example EventBridge pattern matching GuardDuty findings where severity >= 7 and type prefix is “Recon:”:
Infrastructure as Code (CloudFormation) example
GuardDuty and its automations should be part of your IaC pipelines for repeatable deployment. The following CloudFormation template demonstrates a Detector, an IPSet (trusted IP list), a Filter for high severity findings, a Lambda remediation function and role, an EventBridge rule to invoke the Lambda, and the Lambda permission. The CloudFormation YAML example is provided in full below (includes a simple Python Lambda inline for EC2 isolation):

Filtering, trusted lists, and suppression
GuardDuty supports custom threat lists (IPSet, ThreatIntelSet) and suppression filters. Use these features to reduce noisy findings and route only relevant alerts to responders—but be careful when adding “trusted” entries.
Be cautious when creating suppression rules or adding addresses to trusted IP lists. What looks benign today may later become a threat. Prefer targeted filters and iterative tuning instead of broad suppression.

Cost and data source considerations
GuardDuty pricing depends on the volume of analyzed events and enabled data sources. Choose data sources that align with your detection priorities:- Minimum recommended: CloudTrail management events, VPC Flow Logs, DNS logs.
- Optional (cost-impacting): S3 data events, EKS audit logs, RDS logs — enable when the additional visibility justifies the cost.

Common operational challenges and mitigations
Common GuardDuty operational issues, their likely causes, and recommended fixes:

Practical deployment checklist (summary)
- Enable a GuardDuty detector in each region you need telemetry.
- Ensure CloudTrail, VPC Flow Logs, and DNS logs are delivered and accessible.
- Designate a GuardDuty administrator account and integrate with AWS Organizations for auto-enrollment.
- Create targeted suppression filters and IP sets with cautious governance.
- Route findings to EventBridge for automation and Security Hub/SIEM for centralized triage.
- Build IaC templates (CloudFormation / Terraform) for repeatability and auditability.
- Test automation in staging, apply least-privilege roles, and ensure audit logs of remediation actions.
- Monitor cost and iterate on data source coverage and filter tuning.
Links and references
- AWS GuardDuty documentation
- AWS Security Hub
- EventBridge rules and patterns
- AWS CloudFormation
- AWS Lambda