1.6 GuardDuty, Inspector, Macie, and Security Hub

Key Takeaways

  • Amazon GuardDuty uses machine learning to analyze CloudTrail, VPC Flow Logs, and DNS logs for threat detection — enable it with one click.
  • Amazon Inspector automatically scans EC2 instances and container images for software vulnerabilities and unintended network exposure.
  • Amazon Macie uses machine learning to discover, classify, and protect sensitive data (PII, financial data) in S3 buckets.
  • AWS Security Hub aggregates findings from GuardDuty, Inspector, Macie, and third-party tools into a centralized security dashboard.
  • All four services are detective controls — they find issues but do NOT automatically remediate them (use EventBridge + Lambda for automated remediation).
Last updated: March 2026

GuardDuty, Inspector, Macie, and Security Hub

Quick Answer: GuardDuty = threat detection (analyzing logs with ML). Inspector = vulnerability scanning (EC2 + containers). Macie = sensitive data discovery in S3. Security Hub = centralized dashboard for all findings. These are all detective controls — they find problems but do not fix them automatically.

Amazon GuardDuty

GuardDuty is an intelligent threat detection service that continuously monitors for malicious activity and unauthorized behavior.

Data Sources

SourceWhat It Analyzes
CloudTrail Management EventsAPI calls (who did what, when)
CloudTrail S3 Data EventsS3 object-level operations
VPC Flow LogsNetwork traffic patterns
DNS LogsDNS queries from EC2 instances
EKS Audit LogsKubernetes API server audit logs
Lambda Network ActivityNetwork activity from Lambda functions
RDS Login ActivityDatabase login attempts
Runtime MonitoringProcess-level activity on ECS/EKS/EC2

What GuardDuty Detects

  • Cryptocurrency mining on EC2 instances
  • Compromised credentials (unusual API calls from unexpected locations)
  • Data exfiltration (unusual outbound data transfer)
  • Port scanning and reconnaissance
  • Malware on EC2 instances
  • Unauthorized access attempts

Key Characteristics

  • One-click enablement — no agents, no infrastructure to deploy
  • Machine learning — establishes baselines and detects anomalies
  • Findings — categorized by severity (Low, Medium, High)
  • Integration — sends findings to EventBridge for automated remediation
  • Multi-account — manage across an organization via delegated administrator

Amazon Inspector

Amazon Inspector automatically discovers and scans workloads for software vulnerabilities and unintended network exposure.

FeatureDetail
TargetsEC2 instances, container images (ECR), Lambda functions
ScanningContinuous and automatic (no manual trigger needed)
VulnerabilitiesCVE database, CIS benchmarks, network reachability
AgentUses SSM Agent (pre-installed on most AMIs)
FindingsPrioritized by severity with remediation guidance
IntegrationEventBridge, Security Hub, S3 export

Amazon Macie

Amazon Macie discovers and protects sensitive data stored in S3.

FeatureDetail
DiscoversPII (names, SSNs, credit cards), PHI, financial data, credentials
UsesMachine learning and pattern matching
ScansS3 buckets (automated and on-demand)
AlertsFindings classified by severity
IntegrationEventBridge, Security Hub

On the Exam: "Discover personally identifiable information (PII) in S3 buckets" → Amazon Macie.

AWS Security Hub

Security Hub provides a comprehensive view of your security state across AWS accounts.

FeatureDetail
Aggregates findings fromGuardDuty, Inspector, Macie, Firewall Manager, IAM Access Analyzer, + third-party
Compliance standardsCIS AWS Foundations, PCI DSS, AWS Foundational Security Best Practices
Automated checksContinuous compliance checks against standards
Cross-accountAggregate findings from all accounts in an organization
IntegrationEventBridge for automated workflows

When to Use Each Service

ScenarioService
"Detect compromised EC2 instances mining cryptocurrency"GuardDuty
"Scan EC2 instances for software vulnerabilities (CVEs)"Inspector
"Find PII data in S3 buckets"Macie
"Centralized security findings dashboard"Security Hub
"Detect unusual API calls from compromised credentials"GuardDuty
"Automated compliance checks against CIS benchmarks"Security Hub
"Scan container images for vulnerabilities"Inspector
Test Your Knowledge

A company needs to detect if any EC2 instances in their account are being used for cryptocurrency mining. Which service should they enable?

A
B
C
D
Test Your Knowledge

A compliance team needs to discover all S3 buckets containing personally identifiable information (PII). Which service should they use?

A
B
C
D