Summary:

  • AWS Inspector and GuardDuty serve fundamentally different security purposes. Inspector performs proactive vulnerability assessments while GuardDuty delivers continuous threat detection across your AWS environment.
  • Recent 2025-2026 updates introduce Extended Threat Detection with multi-stage attack sequence findings for EC2 and ECS, enhanced Lambda code scanning in Inspector, and critical deprecation timelines for Inspector Classic (May 20, 2026).
  • Most production environments benefit from running both services together, as they address complementary layers of the security stack with distinct cost models and operational patterns.
  • This guide provides detailed feature comparisons, architectural differences, and practical decision frameworks to help you select the right tool or combination for your specific workload requirements.

Security teams managing AWS infrastructure often face a deceptively simple question that reveals deeper architectural complexity. Should you deploy AWS Inspector, GuardDuty, or both? The answer depends entirely on whether you need to find vulnerabilities before attackers do or detect malicious activity as it unfolds.

These two services occupy distinct positions in the cloud security stack. Their overlapping terminology and shared goal of “protecting your workloads” creates genuine confusion during architecture reviews and compliance audits. Understanding the precise boundary between proactive vulnerability management and real-time threat detection will fundamentally shape your security posture and budget allocation for 2025 and beyond.

inspector_guardduty_architecture_overview
High-level architecture showing how Inspector and GuardDuty operate on different security planes

Overview comparison of scope, purpose, and operational model

AWS Inspector and GuardDuty address security from opposite directions. Recognizing this fundamental distinction prevents costly misconfigurations. Inspector functions as a vulnerability assessment service that proactively scans your workloads for software vulnerabilities, unintended network exposure, and code weaknesses. It answers the question: “What weaknesses exist in my environment right now?”

GuardDuty operates as a threat detection service that continuously monitors for malicious activity, unauthorized behavior, and active compromise indicators. It answers: “Is someone exploiting my environment at this moment?”

The operational models differ significantly in how they consume resources and generate findings. Inspector performs periodic or event-triggered scans against EC2 instances, Lambda functions, and container images stored in Amazon ECR. These scans compare your software inventory against the National Vulnerability Database and other CVE sources to identify known vulnerabilities with severity scores.

GuardDuty requires no scanning infrastructure because it analyzes existing AWS data sources, including VPC Flow Logs, AWS CloudTrail management events, DNS query logs, and optionally S3 data events, EKS audit logs, RDS login activity, and Lambda network logs.

Real-world context: A common misconception during security audits is treating Inspector findings as evidence of active breaches. Inspector identifies potential attack vectors. GuardDuty identifies actual attack activity. Conflating these creates unnecessary incident response overhead.

Consider the staffing implications at different organizational scales. Junior and mid-level engineers typically interact with Inspector through automated scan results that feed into patch management workflows. They prioritize CVE remediation based on CVSS scores and exploitability metrics.

Senior and staff engineers must architect the broader vulnerability management program. They decide scan frequencies, exception handling policies, and integration patterns with CI/CD pipelines. For GuardDuty, junior engineers respond to individual findings through runbooks, while senior engineers design the detection-to-response automation, tune suppression rules, and correlate GuardDuty findings with broader SIEM data. These operational differences directly impact team structure and on-call rotations.

Data sources and detection mechanisms

The technical foundation of each service reveals why they complement rather than replace each other. Inspector relies on software bill of materials (SBOM) data collected through the AWS Systems Manager (SSM) agent for EC2 instances or through direct image analysis for containers and Lambda functions.

This agent-based approach for EC2 provides deep visibility into installed packages. The agentless scanning option introduced for EC2 uses EBS snapshots to assess instances without requiring SSM connectivity. Lambda scanning examines both application dependencies and, with recent enhancements, the actual code for security anti-patterns.

GuardDuty’s detection engine processes fundamentally different data streams:

  • VPC Flow Logs: Network traffic metadata revealing unusual connection patterns, port scanning, and data exfiltration indicators
  • CloudTrail events: API call patterns detecting credential abuse, privilege escalation, and reconnaissance activity
  • DNS logs: Domain resolution requests identifying communication with known malicious infrastructure
  • S3 data events: Object-level access patterns for detecting anomalous data access (optional protection plan)
  • EKS audit logs: Kubernetes API server activity for container orchestration threat detection (optional protection plan)

The machine learning models powering GuardDuty establish behavioral baselines for your specific environment. This enables the detection of anomalies that signature-based systems would miss. This approach maps findings to the MITRE ATT&CK framework, providing security teams with tactical context for response prioritization. Understanding these distinct data pipelines clarifies why running both services creates defense-in-depth rather than redundancy.

What’s new in 2025-2026

Both services have received substantial updates that address previous capability gaps and introduce features competitors have not yet documented comprehensively. These enhancements reflect AWS’s response to evolving threat landscapes and customer feedback from enterprise deployments.

GuardDuty Extended Threat Detection for EC2 and ECS

The most significant GuardDuty advancement is Extended Threat Detection. This introduces attack sequence findings that correlate multiple signals into coherent multi-stage attack narratives. Rather than presenting isolated findings like “unusual API call” or “suspicious network connection,” GuardDuty now identifies when these discrete events form a coordinated attack chain.

For EC2 instances, this means detecting sequences such as initial access through compromised credentials, followed by discovery commands, lateral movement attempts, and data staging for exfiltration.

Pro tip: Attack sequence findings carry a “critical” severity by default because they represent confirmed multi-stage compromises rather than isolated suspicious events. Configure your alerting thresholds to ensure these findings trigger immediate incident response rather than queuing for daily review.

ECS workloads now benefit from Runtime Monitoring that extends beyond the previous EKS-only coverage. This protection plan deploys a lightweight security agent to Fargate tasks and EC2-backed ECS containers. It enables detection of runtime threats, including cryptomining, reverse shells, and container escape attempts.

The agent integrates with GuardDuty’s ML models to establish container-specific behavioral baselines. This distinguishes between legitimate application behavior and malicious activity even in highly dynamic microservices environments.

Inspector Lambda code scanning enhancements

Inspector’s Lambda scanning capabilities have expanded beyond dependency vulnerability detection to include code scanning. This identifies security weaknesses in your actual function logic. The enhancement analyzes Lambda function code for issues, including hardcoded credentials, injection vulnerabilities, insecure cryptographic implementations, and overly permissive resource access patterns. The scanning integrates with Amazon CodeGuru security detectors, providing remediation recommendations alongside vulnerability identification.

The practical impact for development teams is substantial. Previously, Inspector could tell you that a Lambda function used a vulnerable version of a logging library, but it could not identify that the function also contained SQL injection vulnerabilities in its handler code. Now both categories appear in unified Inspector findings, enabling security teams to assess Lambda functions holistically. This capability positions Inspector as a viable component of secure development lifecycle tooling rather than purely an operational security scanner.

Inspector Classic deprecation timeline

Organizations still running Inspector Classic face a firm deprecation deadline. AWS has announced that Inspector Classic reaches end of support on May 20, 2026, after which the service will no longer function. This timeline creates urgency for migration planning, particularly for enterprises with extensive Inspector Classic rule packages and custom assessment templates.

Watch out: Inspector Classic and the current Inspector (sometimes called “Inspector v2”) are architecturally different services with incompatible APIs and finding formats. Migration requires rebuilding assessment workflows rather than simple configuration changes. Begin migration planning immediately if you have Inspector Classic dependencies.

The migration path involves enabling the current Inspector service, which automatically discovers and begins scanning supported resources. However, organizations must update any automation, reporting dashboards, or compliance workflows that consume Inspector Classic findings. The current Inspector uses a different finding schema and integrates natively with AWS Security Hub, which may require adjustments to downstream security orchestration tools.

Multi-account management improvements

Inspector’s multi-account support has matured significantly through tighter AWS Organizations integration. Delegated administrator accounts can now centrally manage Inspector across hundreds of member accounts, with automatic enablement for new accounts joining the organization. This addresses a previous pain point where security teams had to manually enable and configure Inspector in each account, creating coverage gaps during rapid account provisioning.

inspector_multi_account_management
Centralized Inspector management through AWS Organizations delegated administrator

The aggregated findings view now supports advanced filtering and grouping by account, resource type, and vulnerability severity. This enables security teams to identify systemic vulnerabilities affecting multiple accounts. This capability proves particularly valuable for platform teams managing shared AMIs or container-based images, where a single vulnerable component propagates across the organization.

With these multi-account improvements covered, examining the detailed feature comparison reveals additional decision-relevant differences.

Detailed feature comparison

Selecting between Inspector and GuardDuty, or determining how to deploy both effectively, requires understanding their capabilities across multiple dimensions. The following comparison addresses the specific attributes that influence architectural decisions and budget planning.

AttributeAWS InspectorAWS GuardDuty
Primary functionVulnerability assessment and software composition analysisThreat detection and behavioral anomaly identification
Detection vs preventionIdentifies vulnerabilities for remediation (preventive posture)Detects active threats and compromises (detective posture)
Data sourcesExtended Threat Detection, attack sequence findings, and ECS Runtime MonitoringVPC Flow Logs, CloudTrail, DNS logs, S3 events, EKS audit logs, Runtime Monitoring telemetry
Supported workloadsEC2 instances, Lambda functions, ECR container imagesAll AWS account activity, EC2, EKS, ECS, S3, IAM
Scanning modelEvent-triggered (new deployments, CVE updates) and continuous for LambdaContinuous real-time analysis
Agent requirementSSM agent for EC2 (agentless option available), agentless for Lambda and ECRAgentless for core features, agent required for Runtime Monitoring
Severity scoringInspector score combining CVSS with environmental factors (network exposure, exploitability)Low, medium, high, critical based on threat confidence and potential impact
Framework mappingCVE identifiers, CWE classificationsMITRE ATT&CK tactics and techniques
Cost modelPer resource scanned (EC2 instances, Lambda functions, container images)Per volume of data analyzed (GB of logs processed) plus optional protection plan fees
Multi-account supportDelegated administrator through AWS OrganizationsDelegated administrator through AWS Organizations
2025-2026 enhancementsLambda code scanning, agentless EC2, improved multi-account aggregationExtended Threat Detection, attack sequence findings, ECS Runtime Monitoring

Cost model analysis

Understanding the pricing structures helps predict operational costs and avoid budget surprises. Inspector charges based on the number of resources scanned. EC2 instance assessments, Lambda function scans, and container image evaluations each carry per-resource pricing. The cost scales linearly with your resource count, making it predictable but potentially expensive for environments with thousands of instances or highly dynamic container deployments.

GuardDuty pricing follows a consumption model based on the volume of data analyzed. Core threat detection charges per GB of VPC Flow Logs, CloudTrail events, and DNS logs processed. Optional protection plans for S3, EKS, Malware Protection, and Runtime Monitoring add incremental costs based on their specific metrics (objects scanned, audit log volume, or protected instances).

This model means GuardDuty costs correlate with environment activity rather than resource count. This can be advantageous for large but relatively quiet environments or expensive for high-traffic workloads.

For practical budgeting, consider these patterns:

  1. Development environments: Inspector costs remain low due to limited resource counts. GuardDuty costs stay minimal due to low traffic volumes.
  2. Production web applications: GuardDuty costs may exceed Inspector due to high log volumes from user traffic.
  3. Large EC2 fleets: Inspector costs scale with instance count regardless of traffic. GuardDuty costs depend on actual activity.
  4. Containerized microservices: Both services incur significant costs due to high image counts (Inspector) and API activity (GuardDuty).

AWS provides 30-day free trials for both services, enabling accurate cost projection based on your actual environment before committing to ongoing expenses.

When to choose Inspector, GuardDuty, or both

The decision framework depends on your security program maturity, compliance requirements, and operational capacity. Neither service alone provides complete coverage, but resource constraints may require prioritization.

inspector_guardduty_decision_flowchart
Decision framework for selecting Inspector, GuardDuty, or combined deployment

Choose Inspector as your priority when vulnerability management represents your primary gap. Organizations with immature patch management processes, those adopting containers without established image scanning, or teams deploying Lambda functions without dependency analysis benefit most from Inspector’s proactive assessment capabilities. Compliance frameworks requiring regular vulnerability assessments, such as PCI-DSS requirement 11.2, make Inspector essential for audit evidence.

Prioritize GuardDuty when threat detection and incident response capabilities need strengthening. Organizations handling sensitive data, those with previous security incidents, or environments with elevated threat profiles from industry or geopolitical factors should ensure continuous monitoring. GuardDuty’s integration with AWS Security Hub and support for automated response through EventBridge makes it foundational for security operations centers.

Pro tip: For most production environments, deploy both services. Inspector reduces your attack surface by identifying vulnerabilities before exploitation, while GuardDuty detects attacks that exploit unknown vulnerabilities, misconfigurations, or compromised credentials. The combined cost typically represents a small fraction of the potential breach impact.

Senior engineers and security architects should consider the operational integration patterns. Both services publish findings to Security Hub, enabling unified visibility and consistent severity normalization. Automated remediation workflows can trigger from either service. Inspector findings might initiate patching pipelines through Systems Manager, while GuardDuty findings might isolate compromised instances through Lambda-based response functions. Designing these integrations requires understanding both services’ finding schemas and update frequencies.

Conclusion

AWS Inspector and GuardDuty address fundamentally different security challenges that together form a comprehensive cloud protection strategy. Inspector’s vulnerability assessment capabilities identify weaknesses in your EC2 instances, Lambda functions, and container images before attackers can exploit them. GuardDuty’s continuous threat detection identifies malicious activity across your AWS environment in real time.

The 2025-2026 enhancements, particularly Extended Threat Detection with attack sequence findings and Inspector’s Lambda code scanning, significantly expand both services’ value propositions beyond what existing documentation covers.

The deprecation of Inspector Classic by May 20, 2026 creates immediate migration requirements for organizations still using the legacy service. Planning this transition alongside evaluation of GuardDuty’s new Runtime Monitoring capabilities for ECS provides an opportunity to modernize your security architecture comprehensively.

For most production environments, the complementary nature of these services justifies deploying both. Inspector reduces attack surface through proactive vulnerability management and GuardDuty provides detection coverage for threats that bypass preventive controls. Your security posture ultimately depends on closing the gap between identifying vulnerabilities and detecting exploitation. Inspector and GuardDuty, properly integrated through Security Hub and automated response workflows, deliver exactly that coverage.