HSR Sector 6 · Bangalore +91 96110 27980 Mon–Sat · 09:30–20:30

AWS GuardDuty vs Inspector — Threat Detection vs Vulnerability Scanning (2026)

Last updated 2026-05-17 · Reviewed by the Networkers Home technical writing team

Short answer: AWS GuardDuty is a threat-detection service that uses ML to spot active attacks (crypto-mining, credential abuse, exfiltration) by analysing VPC Flow Logs, CloudTrail, DNS, and EKS logs. AWS Inspector is a vulnerability-scanning service that checks EC2 instances, ECR images, and Lambda functions against the CVE database. They are complementary — most production AWS workloads run both.

Feature-by-feature comparison

FeatureGuardDutyInspector
PurposeThreat detection (active attacks)Vulnerability scanning (attack surface)
Detection methodML + threat intel feedsCVE database matching
Data sourcesVPC Flow Logs, CloudTrail, DNS, EKS audit, S3 data eventsEC2 instances, ECR container images, Lambda functions
RuntimeContinuous (real-time)Continuous + on-demand scans
OutputFindings with severity (Low / Medium / High / Critical)CVE-mapped findings with CVSS scores
Best forDetecting compromised IAM credentials, crypto-mining, data exfiltrationPatch management, container image hygiene, software supply chain
Pricing modelPer-event analysedPer-instance / per-image / per-function-month
IntegrationEventBridge, Security Hub, SNS, S3EventBridge, Security Hub, SBOM exports

When to use GuardDuty

Use GuardDuty when you need to know what is happening right now in your AWS account. Typical signals it catches:

  • An IAM access key is being used from an unexpected geography (credential compromise)
  • An EC2 instance is making DNS queries to known crypto-mining pools
  • A workload is scanning ports on other AWS accounts (lateral movement)
  • S3 data events show unusual high-volume reads (data exfiltration)
  • EKS audit logs show suspicious kubectl exec activity (container breakout)

When to use Inspector

Use Inspector when you need to know what could be exploited. Typical signals it catches:

  • An EC2 instance is running OpenSSL 1.1.1, missing CVE-2023-XXXX patches
  • A container image in ECR has a Log4Shell-vulnerable log4j version
  • A Lambda function pulls in an npm package with a known critical CVE
  • Software supply-chain visibility (SBOM export to JFrog / Snyk / Wiz)

Cost estimate for a mid-size workload

Sample workload: 20 EC2 instances · 100 ECR images · 30 Lambda functions · 200 GB/month VPC Flow Logs · 50 GB/month CloudTrail.
GuardDuty: ~$80-$120/month (VPC Flow Log analysis dominates).
Inspector: ~$25-$45/month (20 EC2 × $1.25 + 100 ECR × $0.09 + 30 Lambda × $0.30).
Combined: ~$105-$165/month — typically < 2% of total AWS spend for a workload this size.

Both services are covered in AWS Security Specialty (SCS-C02)

The AWS Certified Security – Specialty exam covers GuardDuty (Domain 1: Threat Detection) and Inspector (Domain 2: Logging and Monitoring + Domain 3: Vulnerability Management). Networkers Home runs the AWS Security programme on a real AWS sandbox — students enable both services live in console and trigger sample findings.

Related comparisons