Skip to Content
Asterrr's Handbook
1 · Detection

Amazon Inspector

Continuous vulnerability and network exposure scanning for EC2, ECR images and Lambda. Know agent versus agentless and the severity scale.

Exam tasks: 1.1 (skills 1.1.4 and 1.1.5: detect anomalous activity, automate recurring assessments)

The decision: which service reports known vulnerabilities and network exposure, and how does it scan without scheduled assessments?

Inspector is the vulnerability management service. It scans EC2 instances, ECR container images and Lambda functions for software vulnerabilities (CVEs) and unintended network exposure. Scanning is continuous and automatic. It does not detect active threats. That is GuardDuty.

Scanned resourcesAWS accountinventoryfindingfindingEC2 instancesECR imagesLambda functionsInspectorSecurity HubEventBridge
Inspector scans three resource types, rescans on change or new CVE, and sends findings to Security Hub and EventBridge.

Scan types

ResourceHow it scansAgent
EC2, agent-basedCollects software inventory through SSM associationsSSM Agent. Instance must be SSM managed, with AmazonSSMManagedInstanceCore or Default Host Management
EC2, agentlessReads EBS snapshots through EBS direct APIs, then deletes the snapshotsNone
ECR imagesEnhanced scanning at registry level, on push or continuous. Rescans when a new CVE landsNone
Lambda standardDependencies in function code and layersNone
Lambda code scanningYour own code for code vulnerabilities. Needs standard scanning on firstNone

EC2 scan modes.

  • Hybrid uses agent-based where SSM works and agentless for the rest. New accounts are enrolled in hybrid.

  • Agent-based only. Scans SSM managed instances, and enables deep inspection of language packages on Linux.

  • Network reachability scans run every 12 hours. Agentless scans run every 24 hours.

  • Agentless needs an EBS-backed instance with ext3, ext4 or xfs, under 8 volumes and 1,200 GB combined.

  • Tag InspectorEc2Exclusion on an instance to exclude it.

  • Lambda functions not invoked or updated in 90 days are skipped. Functions encrypted with a customer managed key are not supported.

  • ECR enhanced scanning is Inspector. ECR's basic scanning is a separate, simpler on-push scan.

Findings

TypeNotes
Package vulnerabilityCVE in an OS or language package. Includes CVSS, EPSS and the Inspector score
Code vulnerabilityFrom Lambda code scanning
Network reachabilityOpen path from internet, VPN, peering or Direct Connect to a port

Severity follows CVSS v3.

LevelScore
Critical9.0 to 10.0
High7.0 to 8.9
Medium4.0 to 6.9
Low0.1 to 3.9
Informational0
UntriagedVendor has not scored the CVE yet

The Inspector score adjusts the NVD base score for your environment. A network-exploitable CVE on an instance with no internet path can score lower. Fixing the issue closes the finding automatically.

Management

  • Organizations: delegated administrator can activate scans for all members and auto-enable new accounts.
  • Findings go to EventBridge always and to Security Hub when it is enabled.
  • Suppression rules hide findings from views. Reports export as CSV or JSON.

Which one to use

NeedPick
Missing patches and CVEs in EC2, images, functionsInspector
Apply the patchesSystems Manager Patch Manager
Is this instance already compromisedGuardDuty (with Malware Protection or Runtime Monitoring)
Does a security group allow public SSHInspector network reachability, or Config rule

Exam trap

The old Inspector Classic assessment templates, rules packages and agent are gone. Current Inspector needs no scheduled assessments. Also, ECR and Lambda scanning need no agent. Only the agent-based EC2 method needs SSM.

Exam signal

"Scan new container images for CVEs as they are pushed and when new CVEs publish": Inspector enhanced scanning on ECR. "Instances without SSM Agent": agentless hybrid scanning.

Systems Manager patching, Security Hub, GuardDuty. Image Builder and ECR scanning covers scanning in the image pipeline.

Further reading

On this page