Amazon Inspector

Continuous vulnerability management — finds known weaknesses (CVEs, software flaws, code-level bugs) in EC2, ECR container images, Lambda functions, and now source code repositories, BEFORE they're exploited. Where GuardDuty answers "is something bad happening," Inspector answers "is something exploitable sitting here."

Detective — vulnerability discovery Infrastructure Protection Shifts left into Governance/CI-CD
24h
Agentless EC2 rescan interval
15 days
Free trial
0–10
Inspector risk score range
3
Code Security disciplines: SAST/SCA/IaC

How Inspector Actually Works

The Core Mechanism — Not Just "It Has a CVE List"
⚠️ The Recurring Exam Theme

Inspector questions almost always test one of three things: (1) can you distinguish Inspector (known vulnerabilities, pre-exploitation) from GuardDuty (active malicious behavior, in-progress), (2) do you know which resource types and scan triggers apply (EC2 continuous vs ECR on-push vs Lambda on-deploy vs code on-commit), and (3) can you reason about the risk score as more than raw CVSS — reachability and exploitability change the right prioritization answer.

Exam Domain Mapping

DomainWhere Inspector Shows Up
Threat Detection & Incident ResponseLess central here — Inspector is proactive, not behavioral; mostly shows up as a distractor against GuardDuty
Infrastructure SecurityThe centerpiece — EC2/ECR/Lambda scanning, network reachability, hybrid agent model, container security
Security Logging & MonitoringSecurity Hub integration, EventBridge-triggered remediation workflows on new findings
Data ProtectionSBOM generation/export for supply-chain visibility
Management & Security GovernanceOrganizations-wide enablement, shift-left code security in CI/CD as a governance control

Decision Tree — Mental Model

Threat

Known CVEs, outdated packages, exploitable misconfigurations, vulnerable container images, insecure source code or IaC before deployment

Security Goal

Find and prioritize known weaknesses before an attacker exploits them — across compute, containers, serverless, and code

AWS Service

Amazon Inspector

EC2 (agent + agentless hybrid) ECR container images Lambda (standard + code scanning) Code Security (SAST/SCA/IaC)
Implementation

Enable via Organizations delegated administrator, org-wide. Opt into VM Scanner / agentless for hybrid coverage. Connect GitHub/GitLab for code scanning.

Monitoring

Findings → Security Hub (aggregation). Findings → EventBridge (routing). Prioritize by Inspector risk score, not raw CVSS.

Remediation

Patch via Systems Manager Patch Manager, rebuild/replace container image, update dependency version, fix source code before merge.

Final Summary

Must Memorize
  • Inspector = known vulnerabilities (pre-exploitation), not behavior
  • Hybrid EC2 scanning: agent-based (SSM/VM Scanner) + agentless fallback, ~24h agentless cadence
  • Risk score = CVSS + network reachability + exploitability, not raw CVSS alone
  • Resource coverage: EC2, ECR, Lambda (standard + code), and Code Security (SAST/SCA/IaC)
  • Inspector Classic is deprecated — migrate to current Inspector
Must Understand
  • Why network reachability changes prioritization, not just severity
  • SBOM as a supply-chain governance artifact
  • Shift-left: code scanning catches issues before deployment, not after
  • The distinction triangle: Inspector (vulnerabilities) vs GuardDuty (behavior) vs Config (configuration compliance)
Can De-prioritize
  • Exact dollar pricing per resource type
  • Console UI navigation specifics
  • Inspector Classic legacy assessment template mechanics

Exam appearance probability: HIGH

Scanning Capabilities

Each resource type has its own scan trigger and cadence — this mapping is the single most tested detail.

2.1 EC2 Scanning — Hybrid Agent/Agentless High exam relevance
Agent-basedVia SSM Agent / new Inspector VM Scanner (May 2026) — near-continuous
AgentlessEBS snapshot analysis, no agent or instance profile — rescans roughly every 24h
Default behaviorHybrid: agent-based for SSM-managed instances, automatic agentless fallback for unmanaged ones
2.2 ECR Container Image Scanning High exam relevance
TriggerOn push to ECR, plus continuous rescanning as new CVEs are published
CoverageOS packages and language-level dependencies inside the image layers
2.3 Lambda Scanning — Standard vs Code Frequently misunderstood
Standard scanningScans function package dependencies for known vulnerable libraries
Code scanningStatic analysis of YOUR proprietary function code — injection flaws, data leaks, weak crypto, missing encryption
2.4 Code Security — SAST / SCA / IaC High — newest capability
SASTStatic Application Security Testing — analyzes first-party source code for security bugs
SCASoftware Composition Analysis — evaluates third-party/open-source dependencies for known vulnerabilities
IaC scanningValidates Infrastructure as Code templates (e.g. CloudFormation/Terraform) for misconfigurations
2.5 Network Reachability Analysis High exam relevance
What it doesAnalyzes SGs, NACLs, route tables, and subnet configuration to determine actual internet/internal reachability of a vulnerable port or service
2.6 Inspector Risk Score High-trap
InputsCVSS base score + network reachability + exploit availability (CISA KEV, EPSS) + Recorded Future threat intelligence
Range0–10, contextualized per-resource
2.7 SBOM Export
PurposeCentrally generate and export a Software Bill of Materials for EC2, container images, and Lambda functions
2.8 Suppression Rules
PurposeSuppress findings your organization has accepted as risk, based on defined criteria

AWS Exam Thinking

Requirement → Keywords → Expected Answer → why every distractor fails.

Detect known CVEs / outdated software packages on EC2
CVEvulnerabilityoutdated package
Expected Answer

Amazon Inspector (EC2 scanning)

DistractorWhy it's wrong
GuardDutyDetects active malicious behavior, not the presence of unpatched software
AWS ConfigEvaluates configuration compliance against rules, not CVE databases
Trusted AdvisorGeneral best-practice/cost checks, not deep CVE-level vulnerability scanning
Prioritize remediation across hundreds of findings
prioritizemost critical firstexploitability
Expected Answer

Inspector risk score (contextualized, not raw CVSS)

DistractorWhy it's wrong
Sort by raw CVSS score onlyIgnores network reachability and real-world exploitability — can misprioritize an unreachable critical CVE above an exposed moderate one
Sort by finding ageIrrelevant to actual risk
Scan container images before they're deployed to production
container imageECRon push
Expected Answer

Inspector ECR scanning

DistractorWhy it's wrong
GuardDuty EKS ProtectionDetects runtime/audit-log threats in a running cluster, not pre-deployment image vulnerabilities
Manual docker scanNot a managed, continuously re-evaluating AWS-native solution
Catch security bugs in proprietary source code before merge
pull requestsource codeshift left
Expected Answer

Inspector Code Security (SAST)

DistractorWhy it's wrong
Inspector standard Lambda scanningOnly scans third-party package dependencies, not your own business logic
AWS ConfigDoesn't analyze source code at all — evaluates deployed resource configuration
Determine if a vulnerable service is actually exposed to the internet
internet exposurereachability
Expected Answer

Inspector network reachability analysis

DistractorWhy it's wrong
Manually reviewing security groupsPossible but doesn't scale and isn't automatically correlated with the vulnerability finding itself
VPC Flow LogsShows actual traffic that occurred, not a reachability assessment of potential exposure

Security Controls Mapping & Integrations

4 — Controls Mapping

Detective

Continuous vulnerability discovery across EC2, ECR, Lambda — finding generation when known CVEs are matched against discovered software inventory

Governance (shift-left)

Code Security gates pull requests/CI pipelines with findings before code ever reaches production — a preventive-feeling control achieved through governance/process, not through blocking network traffic

Remediation (via integration, not native)

Inspector itself doesn't patch anything — remediation requires Systems Manager Patch Manager, rebuilding a container image, or bumping a dependency version

⚠️ Inspector is NOT behavioral and NOT preventive at the network layer

It tells you a weakness exists; it does not detect an attacker exploiting it (that's GuardDuty) and it does not block traffic (that's SGs/NACLs/WAF/Network Firewall).

5 — Integrations

Security Hub
WhatFindings flow automatically into Security Hub for aggregation
WhyCross-service correlation — Security Hub's exposure findings combine Inspector vulnerabilities with GuardDuty threats and CSPM misconfigurations
EventBridge
WhatNew/updated findings generate events
PatternFinding → rule → Lambda (open ticket, trigger patch workflow, notify team)
Organizations
WhatDelegated administrator model, org-wide enablement
WhyCentralized vulnerability visibility across every member account
ECR
WhatNative scan-on-push, plus continuous re-evaluation, with direct console notifications
GitHub / GitLab
WhatCode Security native integration — scans on push/PR, surfaces findings inline in the PR
WhyFast developer feedback without leaving the existing workflow
Systems Manager
WhatSSM Agent / Inspector VM Scanner powers agent-based EC2 scanning; Patch Manager is the typical remediation partner

Costs, Limits & Quotas

Pricing Model

BasePay-as-you-go, 15-day free trial
EC2 (agent-based)Per instance per month — generally the cheaper of the two EC2 modes
EC2 (agentless)Per instance per month — priced higher than agent-based
ECRPer image scanned, with ongoing rescan as new CVEs publish
Lambda standardPer function scanned per month
Lambda code scanningAdditional per-function charge on top of standard
Code SecurityPriced separately, generally per repository

Common Cost Mistakes

Cost Optimization

Limits & Quotas

ScopeRegional service — new regions can lag behind general availability
Agentless rescan cadence~Every 24 hours
Code Security region availabilityLaunched in a limited set of regions, expanding over time
⚠️ Exam trap

Inspector Classic is deprecated/end-of-support — any question referencing "assessment templates" is describing the legacy service. The current Inspector uses automatic discovery, not manually configured assessment runs.

Best Practices & Common Exam Traps

8 — Best Practices

Must Know
  • Inspector = known vulnerabilities, pre-exploitation — not behavioral detection
  • Hybrid EC2 model: agent-based default, agentless fallback for unmanaged instances
  • Risk score ≠ raw CVSS — reachability and exploitability matter
  • Resource coverage: EC2 / ECR / Lambda (standard + code) / Code Security (SAST/SCA/IaC)
Good Practice
  • Enable org-wide via delegated administrator
  • Forward findings to Security Hub for cross-service exposure correlation
  • Integrate Code Security into existing GitHub/GitLab workflows for fast feedback
  • Use SBOM exports for supply-chain/compliance reporting
Advanced Practice
  • Build EventBridge-driven auto-remediation for specific high-confidence finding types (e.g. trigger Patch Manager)
  • Track container-to-workload mapping to know which running services are exposed to a vulnerable image
  • Use malicious package detection signals to catch supply-chain/dependency-confusion attacks, not just known CVEs

9 — Common Exam Traps

MisconceptionReality
"Inspector detects active attacks"It finds known weaknesses before exploitation — active behavior detection is GuardDuty's job
"Agentless EC2 scanning is real-time"It rescans roughly every 24 hours, not continuously
"Lambda standard scanning checks my own code for bugs"Standard scanning only covers third-party package dependencies; your own code needs Lambda code scanning or Code Security SAST
"Highest CVSS score = highest priority"The Inspector risk score factors in network reachability and exploit availability — an unreachable critical CVE can rank below an exposed moderate one
"Suppression rules reduce cost"Same as GuardDuty — suppression only hides the finding, the resource is still scanned and billed

Inspector vs. The Lookalikes

ServiceWhat it actually answers
vs GuardDutyInspector = is there a known weakness here (proactive, pre-exploitation). GuardDuty = is someone actively exploiting/misusing something right now (reactive, behavioral)
vs AWS ConfigConfig = is this resource's configuration compliant with a rule. Inspector = does this resource's software have a known vulnerability
vs MacieInspector = vulnerabilities in software/code. Macie = sensitive data classification in S3. Completely different problem spaces that occasionally appear as paired distractors
vs Security Hub CSPMSecurity Hub CSPM evaluates configuration against compliance standards (CIS, PCI). Inspector evaluates installed software against CVE databases. Both feed the unified Security Hub's exposure findings

Flashcards — 16 Cards

Click card to flip. Mark right or wrong to track score.

Click to reveal answer
1 / 16
Mark:   Score: 0/0

Practice Quiz — 10 Questions

SCS-C02 scenario style, Easy → Specialty. Select an answer to reveal the explanation.

out of 10 correct