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.
Scan types
| Resource | How it scans | Agent |
|---|---|---|
| EC2, agent-based | Collects software inventory through SSM associations | SSM Agent. Instance must be SSM managed, with AmazonSSMManagedInstanceCore or Default Host Management |
| EC2, agentless | Reads EBS snapshots through EBS direct APIs, then deletes the snapshots | None |
| ECR images | Enhanced scanning at registry level, on push or continuous. Rescans when a new CVE lands | None |
| Lambda standard | Dependencies in function code and layers | None |
| Lambda code scanning | Your own code for code vulnerabilities. Needs standard scanning on first | None |
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
InspectorEc2Exclusionon 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
| Type | Notes |
|---|---|
| Package vulnerability | CVE in an OS or language package. Includes CVSS, EPSS and the Inspector score |
| Code vulnerability | From Lambda code scanning |
| Network reachability | Open path from internet, VPN, peering or Direct Connect to a port |
Severity follows CVSS v3.
| Level | Score |
|---|---|
| Critical | 9.0 to 10.0 |
| High | 7.0 to 8.9 |
| Medium | 4.0 to 6.9 |
| Low | 0.1 to 3.9 |
| Informational | 0 |
| Untriaged | Vendor 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
| Need | Pick |
|---|---|
| Missing patches and CVEs in EC2, images, functions | Inspector |
| Apply the patches | Systems Manager Patch Manager |
| Is this instance already compromised | GuardDuty (with Malware Protection or Runtime Monitoring) |
| Does a security group allow public SSH | Inspector 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.
Related
Systems Manager patching, Security Hub, GuardDuty. Image Builder and ECR scanning covers scanning in the image pipeline.