Prev Next

Cloud / Amazon Inspector Interview questions

Last updated

1. What is Amazon Inspector? 2. List the AWS resources that Amazon Inspector can scan? 3. What are the scan types in Amazon Inspector? 4. What is Amazon Inspector Classic and is it still supported? 5. How do you activate Amazon Inspector? 6. What is an Amazon Inspector finding? 7. What are the finding types in Amazon Inspector? 8. What is the Amazon Inspector score? 9. What are the severity levels in Amazon Inspector? 10. What is agent-based scanning for EC2 in Amazon Inspector? 11. What is agentless scanning for EC2 in Amazon Inspector? 12. What is hybrid scan mode in Amazon Inspector? 13. What is network reachability scanning in Amazon Inspector? 14. What is Amazon ECR enhanced scanning with Amazon Inspector? 15. What is Lambda standard scanning in Amazon Inspector? 16. What is Lambda code scanning in Amazon Inspector? 17. What is Amazon Inspector Code Security? 18. What are CIS scans in Amazon Inspector? 19. What is a suppression rule in Amazon Inspector? 20. What is an SBOM export in Amazon Inspector? 21. What is the delegated administrator in Amazon Inspector? 22. What is the Amazon Inspector VM Scanner? 23. What is the Amazon Inspector dashboard used for? 24. List the finding statuses in Amazon Inspector? 25. What is the difference between Amazon Inspector and Amazon GuardDuty? 26. What is the difference between the current Amazon Inspector and Inspector Classic? 27. What is the difference between agent-based and agentless EC2 scanning? 28. How does Amazon Inspector collect software inventory from managed instances? 29. Explain the internal working of Amazon Inspector agentless scanning? 30. How does Amazon Inspector calculate the Inspector score? 31. How do you troubleshoot an EC2 instance showing Unmanaged in Inspector coverage? 32. How does continuous rescanning work for ECR images in Amazon Inspector? 33. What is the difference between ECR basic scanning and enhanced scanning? 34. How does Amazon Inspector decide which Lambda functions to scan? 35. Explain the execution flow of an Amazon Inspector ECR scan on image push? 36. How do you set up Amazon Inspector across an AWS Organization? 37. How do you automate responses to Amazon Inspector findings? 38. How do you exclude resources from Amazon Inspector scanning? 39. How does deep inspection work for Linux EC2 instances in Amazon Inspector? 40. How can you integrate Amazon Inspector into a CI/CD pipeline? 41. How do you remediate Amazon Inspector findings across EC2, ECR and Lambda? 42. How do you prioritize Amazon Inspector findings in a large environment? 43. When should you use CIS scans instead of package vulnerability scanning? 44. How do you export Amazon Inspector findings to Amazon S3? 45. How does Amazon Inspector determine that an instance is reachable from the internet? 46. When would you choose agentless over agent-based scanning for EC2? 47. How is Amazon Inspector priced? 48. Why is Amazon Inspector regional and how do you manage multiple Regions? 49. How do you troubleshoot an ECR image that is not being scanned by Inspector? 50. How does Amazon Inspector detect a new CVE without rescanning my instances?

1. What is Amazon Inspector?

Amazon Inspector is the AWS service for automated vulnerability management. It continually scans your workloads for known software vulnerabilities (CVEs) and unintended network exposure, then ranks what it finds so you know what to fix first.

You don't build scan jobs or schedules. Once Inspector is activated, it discovers EC2 instances, container images in Amazon ECR and Lambda functions on its own, and it can scan code repositories through Code Security. New resources are picked up automatically.

Findings appear in the Inspector console, flow to AWS Security Hub, and are published as Amazon EventBridge events so you can trigger tickets or patching. Inspector only detects and reports. It never patches or changes your resources.

Take quiz
What does Amazon Inspector primarily look for?
Suspicious API calls recorded in CloudTrail logs
Sensitive data such as PII sitting in S3 buckets
Idle resources that are inflating the monthly bill
Known software vulnerabilities and unintended network exposure
After Inspector is activated, how does a newly launched EC2 instance get scanned?
You create an assessment template and run it against the instance
It is discovered and scanned automatically with no schedule to create
An engineer has to click Scan for that instance in the console
It waits for a monthly maintenance window you define

2. List the AWS resources that Amazon Inspector can scan?

Amazon Inspector scans four kinds of targets: EC2 instances, ECR container images, Lambda functions and code repositories. What it checks depends on the target.

Resource What Inspector checks
EC2 instances OS and programming-language package CVEs, plus network reachability
ECR container images OS and language package CVEs, rescanned as new CVEs are published
Lambda functions and layers Dependency CVEs, and custom code flaws if code scanning is on
Code repositories Source code, third-party dependencies and infrastructure as code (Code Security)

Container images and SBOMs can also be scanned inside CI/CD tools before they reach ECR, which moves vulnerability checks earlier in the pipeline.

Take quiz
Which resource type receives network reachability findings?
EC2 instances
Lambda functions
ECR container images
Code repositories
Which targets can Inspector scan for flaws in your own custom code, not just dependencies?
ECR images and EC2 instances only
Only stopped EC2 instances through their snapshots
Lambda functions with code scanning, and repositories through Code Security
Only Lambda layers

3. What are the scan types in Amazon Inspector?

Inspector groups its coverage into scan types that you switch on per account and Region. The first time you activate it, EC2 scanning, ECR scanning and Lambda standard scanning are enabled together.

  • EC2 scanning - package vulnerabilities and network reachability, collected agent-based, agentless or both.
  • ECR scanning - OS and language package vulnerabilities in container images, with continuous rescans.
  • Lambda standard scanning - vulnerable dependencies in functions and layers.
  • Lambda code scanning - an optional extra layer that looks for flaws in your own function code.
  • Code Security - source code, dependency and infrastructure-as-code scanning for repositories.

CIS configuration scans for EC2 are run separately, on demand or on a schedule.

Take quiz
Which scan type must already be active before you can turn on Lambda code scanning?
ECR enhanced scanning
Lambda standard scanning
EC2 agentless scanning
Code Security
What gets enabled automatically the first time you activate Inspector?
Only EC2 scanning
EC2, ECR, Lambda standard scanning and Lambda code scanning
Only Code Security and CIS scans
EC2, ECR and Lambda standard scanning

4. What is Amazon Inspector Classic and is it still supported?

Amazon Inspector Classic was the original version of the service. You created assessment targets and templates, installed the Inspector Classic agent, and ran assessments against rules packages. AWS ended support for it on May 20, 2026, so the Classic console and resources are no longer accessible.

The current Inspector replaced it with a continuous model. It discovers resources on its own, uses the SSM Agent or no agent at all, covers far more than EC2, and is driven through the inspector2 API. The old Classic agent is obsolete and can be removed from servers.

In interviews this usually comes up as a migration question. If you describe assessment templates or runs, say clearly that they belong to the legacy service and not to what you would build today.

Take quiz
When did AWS end support for Amazon Inspector Classic?
December 31, 2024
March 1, 2025
May 20, 2026
It is still fully supported
Which Classic concept no longer applies in the current Inspector?
Assessment templates that you run against targets
Continuous automatic resource discovery
Delegated administrator accounts
A context-adjusted Inspector score

5. How do you activate Amazon Inspector?

In the console, open Amazon Inspector, choose Get started and then Activate Inspector. The first activation creates the service-linked role AWSServiceRoleForAmazonInspector2 and turns on the default scan types. Activation is per account and per Region.

From the CLI you can pick scan types explicitly:

aws inspector2 enable --resource-types EC2 ECR LAMBDA LAMBDA_CODE

aws inspector2 batch-get-account-status

Add CODE_REPOSITORY if you also want Code Security. Instead of repeating this account by account, most teams activate through a delegated administrator for the whole organization. New accounts get a free trial, so you can see real coverage and cost before paying.

Take quiz
Which CLI command activates Inspector scanning in the current service?
aws inspector2 enable --resource-types EC2 ECR LAMBDA
aws inspector start-assessment-run
aws guardduty create-detector
aws inspector2 create-assessment-template
At what level is Inspector activated?
Once globally for an organization
Per VPC
Per AWS account and per Region
Per IAM user

6. What is an Amazon Inspector finding?

A finding is Inspector's record of one security issue on one resource: a vulnerable package on an instance, an exposed port, or a flaw in function code.

Each finding carries a title, severity, Inspector score, the affected resource, remediation guidance, a status, and first and last observed times. Package vulnerability findings add the CVE ID, the vulnerable package and version, whether an exploit is known, the EPSS score, and whether a fix is available.

Findings are created and updated automatically. When the underlying issue goes away, for example because the package was upgraded, Inspector closes the finding without any action from you.

Take quiz
Which detail on a package vulnerability finding tells you a patched version exists?
Last observed at
Fix available
Resource tag list
EPSS score
What typically happens to a finding after you upgrade the vulnerable package?
It stays Active until you delete it
It becomes Untriaged
It is moved to Security Hub and frozen
Inspector closes it automatically

7. What are the finding types in Amazon Inspector?

Inspector produces three finding types, and the type decides which remediation details you get.

Finding type Found on What it means
Package vulnerability EC2, ECR images, Lambda A software package with a known CVE
Code vulnerability Lambda code scanning, Code Security repositories A flaw in your own source code, such as injection or weak cryptography
Network reachability EC2 A port that can be reached from outside the VPC through the current network configuration

Only package vulnerability findings carry CVE, EPSS and fix information. Network reachability findings instead describe the open ports and the path that allows access.

Take quiz
A finding stating that TCP port 22 is reachable from the internet is which type?
Package vulnerability
Code vulnerability
Network reachability
CIS benchmark failure
Which finding type does Lambda code scanning produce?
Code vulnerability
Package vulnerability
Network reachability
Untriaged finding

8. What is the Amazon Inspector score?

The Inspector score is a context-adjusted risk score for a package vulnerability finding. It starts from the CVSS base score of the CVE and then adjusts it using what Inspector knows about your environment, such as whether an EC2 instance is reachable from the internet.

That is why one CVE can score differently on two resources. A critical flaw in a library on an isolated instance may land below its published CVSS, while the same flaw on an internet-facing host keeps a high score. The finding's severity is derived from this score.

The finding details panel shows the score together with the CVSS vector and the adjustments applied, so you can see exactly why it moved.

Take quiz
What does Inspector adjust to produce its score?
The EC2 instance size
The number of accounts in the organization
The age of the AMI
The CVSS base score, using context such as network reachability
An EC2 package has a CVE with CVSS 9.8 but no network path from outside. What is the likely Inspector score?
Exactly 9.8 in every case
Lower than 9.8
Higher than 9.8
No score is produced

9. What are the severity levels in Amazon Inspector?

Inspector uses six severity labels, mostly derived from the Inspector score.

Severity Typical score range
Critical 9.0 - 10.0
High 7.0 - 8.9
Medium 4.0 - 6.9
Low 0.1 - 3.9
Informational 0.0 - no direct security impact
Untriaged No score yet - the vendor has not assessed the vulnerability

Untriaged is the one people trip over. It does not mean harmless, it means the source has not assigned a severity yet, so it is worth a look rather than an automatic dismissal.

Take quiz
Which severity matches an Inspector score of 9.5?
Critical
High
Medium
Untriaged
What does the Untriaged severity mean?
The finding was hidden by a suppression rule
The resource was excluded by a tag
The vendor has not yet assessed or scored the vulnerability
The issue is low risk and safe to ignore

10. What is agent-based scanning for EC2 in Amazon Inspector?

In agent-based scanning, Inspector uses the AWS Systems Manager (SSM) Agent already on the instance to collect a software inventory, then matches that inventory against vulnerability data. There is no separate Inspector agent.

The instance must be a managed instance in Systems Manager in the same account, run a supported OS, and have the SSM Agent online with permissions such as AmazonSSMManagedInstanceCore or Default Host Management Configuration. Inspector creates SSM associations that gather the inventory on a recurring basis.

Beyond OS packages, agent-based scanning can find vulnerabilities in programming-language packages on Linux through deep inspection. A fresh scan starts when an instance is launched, when software is installed or removed, or when a new CVE affects something already installed.

Take quiz
How does Inspector obtain the software inventory in agent-based scanning?
By reading EBS snapshots of the volumes
By installing the Inspector Classic agent
Through SSM associations that run on the managed instance
By opening an SSH session to the instance
What must be true for an instance to be eligible for agent-based scans?
It is a managed instance in Systems Manager
It is stopped
It runs only Amazon Linux
It sits in a public subnet

11. What is agentless scanning for EC2 in Amazon Inspector?

Agentless scanning assesses an instance without any software running on it. Inspector takes snapshots of the EBS volumes attached to the instance, reads the snapshot data to build a software inventory, and compares that inventory with its vulnerability intelligence.

It is useful for instances that are not managed by Systems Manager, because the SSM Agent, its IAM permissions and its network path are not needed. It only applies to EBS-backed instances, and it works on a periodic cycle of roughly every 24 hours instead of reacting immediately to each software change.

Agentless scans are used when the account is in hybrid scan mode and the instance has no working SSM Agent.

Take quiz
Where does agentless scanning get its software inventory?
From the SSM Agent
From VPC Flow Logs
From CloudTrail events
From EBS snapshots of the attached volumes
Which instances can agentless scanning cover in hybrid mode?
Only instances that use instance store volumes
EBS-backed instances that have no working SSM Agent
Only Windows instances
Only instances running the Classic agent

12. What is hybrid scan mode in Amazon Inspector?

Hybrid scan mode lets Inspector use the best method per instance. It relies on the SSM Agent where the instance is managed, and automatically falls back to agentless scanning for eligible instances that have no working agent. New accounts start in hybrid mode.

Scan mode Behaviour
Agent-based Only SSM-managed instances are scanned
Hybrid SSM-managed instances use the agent, others use EBS snapshots

You change it from the EC2 settings page or with the API:

aws inspector2 update-configuration \
  --ec2-configuration scanMode=EC2_HYBRID

Take quiz
In hybrid mode, what happens to an eligible instance with no SSM Agent?
It is scanned agentlessly through EBS snapshots
It is skipped silently
Inspector installs the Classic agent on it
It is stopped until the agent is added
Which scanMode value turns on hybrid scanning?
EC2_AGENTLESS_ONLY
EC2_SNAPSHOT_MODE
EC2_HYBRID
HYBRID_V2

13. What is network reachability scanning in Amazon Inspector?

Network reachability scanning finds EC2 instances that have ports reachable from outside the VPC. It analyzes your AWS network configuration, including security groups, network ACLs, route tables and gateways, instead of sending probe packets.

A finding lists the open port range, the protocol and the network path that makes it reachable, for example an internet gateway route plus a security group that allows 0.0.0.0/0 on TCP 3389. No agent is required, and the analysis repeats about every 24 hours.

These findings also feed the Inspector score, which is why an exposed instance's CVEs tend to rank higher than the same CVEs on a private one.

Take quiz
What does network reachability scanning need on the instance?
The SSM Agent running
Nothing - it analyzes AWS network configuration
A packet-capture appliance
A VPN tunnel to Inspector
Which components does the analysis evaluate?
IAM policies and SCPs only
CloudFront cache behaviors
RDS parameter groups
Security groups, network ACLs, route tables and gateways

14. What is Amazon ECR enhanced scanning with Amazon Inspector?

Enhanced scanning is the registry-level setting that hands ECR image scanning over to Inspector. Once it is on, each eligible image is scanned when it is pushed, and then rescanned whenever new vulnerability data affects a package in it.

It covers both operating system packages and programming-language packages, which basic scanning does not. Only images in ACTIVE status are scanned, and findings identify the repository, tag and digest.

You can scan every repository or use filters to include only selected ones. How long an image keeps being rescanned is controlled by the ECR rescan duration setting.

Take quiz
What triggers an enhanced scan of an ECR image?
Only a manual scan button
Only a nightly cron job you configure
The image push, and later new CVE data during the rescan window
Only when ECS pulls the image
Which package types does enhanced scanning cover?
OS packages and programming-language packages
OS packages only
Programming-language packages only
Only packages installed through apt

15. What is Lambda standard scanning in Amazon Inspector?

Lambda standard scanning checks the third-party packages in a function's code and layers for known CVEs. Inspector scans a function when it discovers it, when it is deployed or updated, and when new vulnerability data affects its dependencies.

A function is eligible when it uses a supported runtime, was invoked or updated in the last 90 days, and is not excluded by tag. Functions that go quiet for 90 days drop out of scanning and come back as soon as they are invoked or changed again.

Standard scanning is the default Lambda scan type and the base layer for Lambda code scanning.

Take quiz
What does Lambda standard scanning look for?
Known CVEs in function dependencies and layers
Injection flaws in handler code
Over-permissive execution roles
Cold-start latency problems
What happens to a function that has not been invoked or updated in 90 days?
It is deleted from the account
It is scanned daily regardless
It is excluded from scans until invoked or changed again
Its findings are all marked Critical

16. What is Lambda code scanning in Amazon Inspector?

Lambda code scanning analyzes the custom application code inside your Lambda functions, not just the packages it imports. It looks for issues such as injection flaws, data leaks, weak cryptography and missing encryption.

Findings are code vulnerability findings. They point to the offending lines with a snippet and can include a suggested fix, which makes them practical for developers to act on.

You must have Lambda standard scanning active first, and code scanning adds its own per-scan charge, so it is common to enable it only for production or customer-facing functions.

Take quiz
Which issue is Lambda code scanning designed to catch?
An outdated OS kernel
An injection vulnerability in your handler code
An open SSH port
An unpatched openssl package inside a layer
What is the prerequisite for Lambda code scanning?
Code Security must be active
The account must be in hybrid mode
ECR enhanced scanning must be active
Lambda standard scanning must already be active

17. What is Amazon Inspector Code Security?

Code Security extends Inspector to source code repositories. It scans first-party application code, third-party dependencies and infrastructure-as-code templates for vulnerabilities and misconfigurations, using the Amazon Q Developer scanning engine.

You connect supported source providers and define scan configurations, for example scanning on pull requests or on a schedule. Findings appear in Inspector alongside runtime findings, so a team can see an issue in a repository and the deployed resource in one place.

The point is to shift left. Problems get flagged in the repository or CI/CD pipeline, before the code or template is ever deployed.

Take quiz
Which items does Code Security scan?
Running EC2 kernels
VPC Flow Logs
Application source code, dependencies and IaC in repositories
Objects stored in S3
Where does Code Security fit in the delivery workflow?
Connected to repositories and CI/CD so issues appear before deployment
Only on production hosts after release
Only inside the console as a playground
As a replacement for ECR scanning

18. What are CIS scans in Amazon Inspector?

CIS scans check the operating system configuration of EC2 instances against Center for Internet Security (CIS) Benchmarks. They look at hardening settings such as SSH configuration, password policy, file permissions and disabled services, not at vulnerable software.

You can run them on demand or on a schedule, and target instances by account or tags. They rely on SSM-managed instances. Each check is reported as passed, failed or skipped, and results can be viewed per instance or downloaded as a CSV file.

CIS scans are separate from the CVE-based findings, so they answer a different question: is this host configured securely?

Take quiz
What does a CIS scan evaluate?
Installed packages for known CVEs
Ports reachable from the internet
Lambda function source code
OS configuration against CIS Benchmark checks
How can CIS scans be run on EC2?
Only at instance launch
On demand or on a schedule against targeted instances
Only in agentless mode
Only for ECR images

19. What is a suppression rule in Amazon Inspector?

A suppression rule is a saved filter that automatically hides matching findings. Findings that match get the Suppressed status and drop out of the default Active view, but they are not deleted.

Typical uses are accepted risks, such as a CVE in a package that is never exposed, or noise from sandbox accounts. You build the rule from the same criteria you use to filter findings, for example a CVE ID plus a resource tag.

Suppression only changes visibility. It does not stop scanning or reduce cost, and you can edit or remove the rule to bring the findings back.

Take quiz
What happens to a finding that matches a suppression rule?
It becomes Suppressed and is hidden from the default view, but not deleted
It is deleted permanently
It is closed as remediated
It is handed to GuardDuty
Which scenario suits a suppression rule?
Hiding every critical finding in production
Applying a patch to an instance
An accepted-risk CVE in a non-exposed dev account
Stopping an instance from being billed

20. What is an SBOM export in Amazon Inspector?

An SBOM export produces a software bill of materials, a machine-readable inventory of the packages and libraries in your scanned resources. Inspector can export it in CycloneDX 1.4 or SPDX 2.3 format.

The report is written to an S3 bucket and encrypted with a KMS key you provide. You can filter by resource type, account or tags, so you can export just the production container images, for instance.

aws inspector2 create-sbom-export \
  --report-format CYCLONEDX_1_4 \
  --s3-destination bucketName=my-sbom-bucket,keyPrefix=inspector/,kmsKeyArn=<key-arn>

Teams use SBOMs for audits, customer security questionnaires and for checking quickly whether a newly disclosed library is anywhere in their estate.

Take quiz
Which formats can Inspector export an SBOM in?
CSV and PDF
STIX and TAXII
CycloneDX 1.4 and SPDX 2.3
OVAL and XCCDF
What do you need to receive an SBOM export?
An S3 bucket and a KMS key
An RDS database
An SNS topic with a subscriber
A CloudTrail trail

21. What is the delegated administrator in Amazon Inspector?

The delegated administrator is the AWS Organizations member account that manages Inspector for the whole organization. The management account designates it, and there can be only one.

From there you can activate scan types for member accounts, auto-enable Inspector for accounts that join later, see aggregated findings and coverage, and manage organization-wide settings such as the ECR rescan duration. Member accounts still own their resources, but the administrator gives security teams one place to look.

Using a dedicated security account as the delegated administrator, rather than the management account, is the usual pattern.

Take quiz
Who designates the Inspector delegated administrator?
Any member account
AWS Support on request
The Inspector service automatically
The AWS Organizations management account
What can the delegated administrator do?
Delete EC2 instances in member accounts
Enable scanning for members, auto-enable new accounts and view organization-wide findings
Edit IAM policies in member accounts
Change member account billing details

22. What is the Amazon Inspector VM Scanner?

The Inspector VM Scanner is the newer scanning engine for agent-based EC2 scanning, introduced in May 2026. It replaces the previous agent-based scanner with an architecture tuned for performance.

AWS highlights two gains: broader detection coverage, and lower CPU use on the instance while a scan runs, which reduces impact on production workloads. You opt in from the console or the API. No additional IAM instance profile role is needed on your instances.

It is available in all Regions where Inspector runs at no extra charge, and the existing agent-based EC2 pricing still applies.

Take quiz
What is a main benefit of the Inspector VM Scanner?
Broader detection with lower CPU use during scans
It scans container images without ECR
It makes CIS scans free
It replaces the SSM Agent entirely
Which scanning approach does the VM Scanner apply to?
ECR enhanced scanning
Lambda code scanning
Agent-based EC2 scanning
Network reachability analysis

23. What is the Amazon Inspector dashboard used for?

The dashboard is the starting point for seeing coverage and risk across your accounts. It summarizes findings by severity, shows the most exposed resources, and tracks which resources Inspector is and is not scanning.

The Environmental coverage panel counts the accounts, EC2 instances, ECR repositories and images, and Lambda functions being scanned, and flags resources that are not covered. Each resource that is not scanned carries a status and a reason code, such as an unmanaged instance or an unsupported OS.

Checking coverage first matters, because a clean findings list is meaningless if half the fleet is not being scanned.

Take quiz
What does the environmental coverage panel tell you?
Which IAM users lack MFA
Which accounts and resources are actively scanned and which are not
Which S3 buckets are public
Which VPCs have flow logs disabled
What does an Inactive scan status on a resource come with?
A guarantee that it has no vulnerabilities
An automatic patch
A suppression rule
A reason code explaining why it is not being scanned

24. List the finding statuses in Amazon Inspector?

Every finding is in one of three statuses.

Status Meaning
Active The issue is currently detected and has not been remediated or suppressed
Suppressed A suppression rule matches the finding, so it is hidden from the default view
Closed The issue is gone: the package was updated, the resource was deleted, or the image left its rescan window

Inspector closes findings on its own when it sees the problem is resolved. Closed findings are kept for a limited time and then removed, so export anything you need for audit history before then.

Take quiz
Which status tells you the vulnerability has been remediated?
Active
Suppressed
Closed
Untriaged
Which status is applied when a suppression rule matches?
Suppressed
Closed
Active
Informational

25. What is the difference between Amazon Inspector and Amazon GuardDuty?

Inspector finds weaknesses that could be exploited. GuardDuty detects suspicious activity that is already happening. One is vulnerability management, the other is threat detection.

Aspect Amazon Inspector Amazon GuardDuty
Question answered What is vulnerable or exposed? What looks malicious right now?
Data it analyzes Software inventory, network configuration, code CloudTrail, VPC Flow Logs, DNS logs and other activity sources
Typical finding CVE in a package, open port path Instance talking to a known malicious IP
Output Prioritized, fixable findings Threat alerts for investigation

They complement each other. An internet-exposed instance with a critical CVE (Inspector) that suddenly starts beaconing out (GuardDuty) is exactly the case you want both to flag. Both send findings to Security Hub.

Take quiz
Which service would flag an EC2 instance communicating with a known malicious IP address?
Amazon GuardDuty
Amazon Inspector
Amazon Macie
AWS Trusted Advisor
Which service tells you an unpatched OpenSSL package is installed on an instance?
Amazon GuardDuty
AWS CloudTrail
Amazon Inspector
Amazon Detective

26. What is the difference between the current Amazon Inspector and Inspector Classic?

The current Inspector is continuous and automatic. Classic was assessment-run based and EC2-only. Classic support ended on May 20, 2026.

Area Inspector Classic Current Inspector
Scan model You define targets and templates, then run assessments Resources are discovered and scanned continuously
Agent Inspector Classic agent SSM Agent or agentless EBS snapshots
Coverage EC2 instances EC2, ECR images, Lambda functions, code repositories
Multi-account Per account Delegated administrator across the organization
Prioritization Rules package severity Inspector score with EPSS, exploit and fix data
Status Support ended May 20, 2026 Current service

If a team still has Classic-era runbooks, the migration is mostly about enabling the new service, confirming coverage on the dashboard, and retiring the old agent.

Take quiz
Which statement describes the current Inspector compared with Classic?
It supports only EC2 instances
It scans continuously instead of requiring assessment runs
It needs the Classic agent on every host
It runs only on a weekly cron inside the agent
Beyond EC2, what does the current Inspector cover?
RDS databases and DynamoDB tables
CloudFront distributions
Route 53 hosted zones
ECR images, Lambda functions and code repositories

27. What is the difference between agent-based and agentless EC2 scanning?

Agent-based scanning collects inventory through the SSM Agent; agentless scanning reads EBS snapshots. Both end up matching a software inventory against vulnerability data, but they differ in prerequisites, speed and reach.

Aspect Agent-based Agentless
Inventory source SSM associations on the instance Snapshots of attached EBS volumes
Prerequisite Managed instance with SSM Agent online and permissions EBS-backed instance, hybrid mode on
Freshness Reacts to launches and software changes Periodic cycle, roughly every 24 hours
Runs on instance Yes, using a small amount of CPU No software runs on the instance
CIS scans Supported Not applicable, CIS needs SSM

Hybrid mode combines them: agent where possible, snapshots for everything else.

Take quiz
What is a trade-off of agentless scanning?
It requires the SSM Agent
It consumes more instance CPU
It runs on a periodic cycle rather than reacting instantly to every software change
It cannot find OS package CVEs
Which Inspector EC2 feature depends on SSM-managed instances?
CIS scans
Network reachability analysis
Agentless scanning
ECR enhanced scanning

28. How does Amazon Inspector collect software inventory from managed instances?

Inspector uses Systems Manager State Manager. It creates an association, named InspectorInventoryCollection-do-not-delete, that runs the software inventory plugin on managed instances. The SSM Agent gathers installed packages and sends the result back for analysis.

sequenceDiagram
  participant I as Amazon Inspector
  participant S as SSM State Manager
  participant A as SSM Agent on instance
  I->>S: Create inventory association
  S->>A: Run software inventory plugin
  A-->>I: Installed OS and language packages
  I->>I: Match against vulnerability intelligence
  I-->>I: Create or close findings

A new evaluation starts when an instance is launched or becomes managed, when software is installed or removed, and when a new CVE matches stored inventory. Deleting the association breaks collection and the instance will show up as stale or unmanaged in coverage.

Take quiz
Which Systems Manager capability does Inspector use to gather inventory?
Run Command with stored SSH keys
Session Manager recordings
Patch Manager baselines
State Manager associations running the software inventory plugin
Which event triggers a new agent-based evaluation?
A change to the instance Name tag
Software being installed or removed on the instance
A CloudWatch alarm entering ALARM
Rotation of an IAM access key

29. Explain the internal working of Amazon Inspector agentless scanning?

Agentless scanning turns the instance's disks into the inventory source, so nothing runs inside the guest. The flow is driven entirely by Inspector from outside the instance.

flowchart TD
  A["Hybrid mode finds EC2 instance without working SSM Agent"] --> B["Snapshot each attached EBS volume"]
  B --> C["Read snapshot data and extract OS and language packages"]
  C --> D["Build software inventory"]
  D --> E["Match against vulnerability intelligence"]
  E --> F["Create or update package vulnerability findings"]
  1. Inspector identifies an eligible EBS-backed instance that is not usefully managed by SSM.
  2. It snapshots each attached volume.
  3. It reads the snapshot contents to list installed packages.
  4. That inventory is compared with vulnerability data from many advisory sources.
  5. Findings are created, updated or closed, and the cycle repeats roughly every 24 hours.

Because it never touches the running OS, the instance sees no agent CPU load, but it also cannot react to a change until the next cycle.

Take quiz
What is the first action in an agentless scan of an eligible instance?
Take snapshots of its attached EBS volumes
Install a temporary agent
Open an SSH session
Stop the instance
What is the impact on the running workload during an agentless scan?
The instance is rebooted
The SSM Agent is restarted
No software is installed or run inside the instance
A kernel module is loaded

30. How does Amazon Inspector calculate the Inspector score?

Inspector takes the CVSS base score for the CVE from its preferred source, such as the National Vulnerability Database or the OS vendor's advisory, and then adjusts it for your environment.

  1. Identify the CVE and the base score and vector from the source advisory.
  2. Look at context for the resource, most importantly network reachability findings for EC2.
  3. Adjust the affected metrics, so a vulnerability that needs network access scores lower on a host with no path from outside.
  4. Publish the resulting Inspector score and derive the severity from it.

The finding details show the base vector next to the adjusted one, which is what you quote when someone asks why a published 9.8 became an 8.1 in your account. Because the score is contextual, sort by Inspector score and not by the raw CVSS number when you triage.

Take quiz
Where does the starting CVSS base score come from?
Your CloudWatch metrics
IAM Access Analyzer
Sources such as NVD or the OS vendor's advisory
AWS Trusted Advisor
Where do you see how the Inspector score was adjusted?
In the score details on the finding, showing the vector and adjustments
In the resource tag list
In the last observed timestamp
In the EventBridge rule ARN

31. How do you troubleshoot an EC2 instance showing Unmanaged in Inspector coverage?

Unmanaged means Inspector cannot use the SSM Agent on that instance. Work through the usual SSM prerequisites in order.

  1. Confirm the instance is running a supported OS and the SSM Agent is installed and running.
  2. Check the instance has SSM permissions, either an instance profile with AmazonSSMManagedInstanceCore or Default Host Management Configuration.
  3. Verify network access to the SSM endpoints, through a NAT gateway or the ssm, ssmmessages and ec2messages VPC endpoints.
  4. In Fleet Manager, make sure the ping status is Online.
  5. Look for an exclusion tag such as InspectorEc2Exclusion.

To list affected instances and their reason codes:

aws inspector2 list-coverage --filter-criteria '{"resourceType":[{"comparison":"EQUALS","value":"AWS_EC2_INSTANCE"}],"scanStatusCode":[{"comparison":"EQUALS","value":"INACTIVE"}]}'

Look for UNMANAGED_EC2_INSTANCE. If you cannot fix SSM on that host, hybrid mode will still cover an EBS-backed instance agentlessly.

Take quiz
What is the first thing to check for an instance reported as Unmanaged?
Whether the VPC has IPv6 enabled
Whether the root volume is gp3
Whether the AMI is public
That the SSM Agent is running and the instance registers as managed
What lets an instance with no usable SSM Agent still be scanned?
Disabling network reachability scanning
Hybrid scan mode with agentless fallback
Lowering the ECR rescan duration
Turning on Lambda code scanning

32. How does continuous rescanning work for ECR images in Amazon Inspector?

After the initial scan on push, Inspector rescans an image whenever a new CVE affects a package in it. The rescan duration decides how long an image stays in that monitored state.

Setting Options
Image rescan mode Last in use (default, from ECS and EKS activity) or last pull date
Pull or in-use duration 14 (default), 30, 60, 90 or 180 days
Push date duration 14 (default), 30, 60, 90, 180 days or lifetime

When an image has not been pushed or used within the configured window, Inspector marks it inactive with an expired reason and schedules its findings for closure. Raising the duration does not revive images that are already inactive. Set from a delegated administrator, the value applies to every member account.

Short durations suit teams that build constantly; long-lived base images need longer ones.

Take quiz
What is the default push-date rescan duration for new accounts?
14 days
30 days
90 days
Lifetime
What happens to an image that falls outside its rescan window?
It is deleted from ECR
It is rescanned every hour
It becomes inactive and its findings are scheduled to close
Its findings are escalated to Critical

33. What is the difference between ECR basic scanning and enhanced scanning?

Basic scanning is ECR's built-in scan. Enhanced scanning hands the job to Inspector for continuous and deeper coverage.

Aspect Basic scanning Enhanced scanning
Engine ECR's native scanner Amazon Inspector
Packages OS packages OS and programming-language packages
Trigger On push or manual scan On push plus continuous rescans for new CVEs
Results ECR console and API Inspector, Security Hub and EventBridge, with ECR showing them too
Cost No Inspector charge Inspector pricing applies

Choose basic for low-risk or test registries where a push-time OS check is enough, and enhanced wherever images run in production and you need rescans when new CVEs appear.

Take quiz
What does only enhanced scanning provide?
Scan on push
Continuous rescans and programming-language package coverage
A zero-cost scan option
Scanning of ECR repository policies
Where do basic scan results appear?
Only in Inspector's coverage tab
Only in CloudTrail logs
Only in GuardDuty
In the ECR console and API for the image

34. How does Amazon Inspector decide which Lambda functions to scan?

A function is scanned only if it is eligible. All of these must hold:

  • It uses a supported runtime.
  • It was invoked or updated in the last 90 days.
  • The scan targets the $LATEST version.
  • It is not excluded by tag.
  • It is not encrypted with a customer managed KMS key, which Inspector does not support.

Functions that go 90 days without an invocation or change are automatically excluded and resume scanning when invoked or modified. To exclude a function deliberately, add the tag InspectorExclusion with the value LambdaStandardScanning (or LambdaCodeScanning to skip only code scanning).

Check the Lambda functions tab to see each function's scan status and the reason when it is not being scanned.

Take quiz
Which Lambda function is NOT eligible for scanning?
One updated yesterday
One invoked this week on a supported runtime
One encrypted with a customer managed KMS key
One that uses a layer
Which tag excludes a function from Lambda standard scanning?
InspectorExclusion = LambdaStandardScanning
InspectorLambdaExclude = true
Inspector = disabled
SkipScan = yes

35. Explain the execution flow of an Amazon Inspector ECR scan on image push?

A push starts a scan, and new CVE data keeps it alive afterwards.

flowchart LR
  A["Image pushed to ECR repository"] --> B["Inspector sees eligible ACTIVE image"]
  B --> C["Extract OS and language packages from layers"]
  C --> D["Match packages to vulnerability intelligence"]
  D --> E["Create findings with score and fix info"]
  E --> F["Console, Security Hub and EventBridge"]
  G["New CVE published"] --> D
  1. The push makes the image a candidate if its repository is in scope for enhanced scanning.
  2. Inspector builds an inventory of OS and programming-language packages from the image layers.
  3. The inventory is matched with advisory data to create findings.
  4. Findings are sent to the console, Security Hub and EventBridge, and shown against the image in ECR.
  5. While the image is inside its rescan window, any newly published CVE that matches triggers fresh findings with no rescan of the image itself.
Take quiz
What does Inspector build from an image before matching CVEs?
An inventory of OS and language packages from the image layers
A profile of container CPU usage
A list of IAM roles used by the task
A network map of the cluster
What produces new findings for an unchanged image in its rescan window?
Renaming the image tag
Pulling the image from another Region
A newly published CVE affecting a package in the image
An ECR lifecycle policy run

36. How do you set up Amazon Inspector across an AWS Organization?

You designate a delegated administrator from the Organizations management account, then enable and auto-enable scanning from that account.

# management account
aws inspector2 enable-delegated-admin-account --delegated-admin-account-id 111122223333

# delegated administrator account
aws inspector2 update-organization-configuration \
  --auto-enable ec2=true,ecr=true,lambda=true

  1. Activate Inspector in the management account (the console enables trusted access for you).
  2. Designate the security account as delegated administrator, per Region.
  3. From the administrator, turn on the scan types for existing members.
  4. Set auto-enable so accounts that join later are covered automatically.
  5. Configure org-wide settings, such as the ECR rescan duration, and verify coverage on the dashboard.

Repeat for every Region you use, since the service is regional.

Take quiz
Which command designates the Inspector delegated administrator?
aws inspector2 set-admin-account
aws inspector2 enable-delegated-admin-account
aws inspector2 create-organization-unit
aws guardduty enable-organization-admin-account
What does auto-enable do?
Patches instances in new accounts
Creates IAM users in new accounts
Copies findings to S3 each night
Turns on the chosen scan types for accounts that join the organization later

37. How do you automate responses to Amazon Inspector findings?

Inspector publishes every new or updated finding to Amazon EventBridge, so a rule can route the ones you care about to a target. A common pattern is to alert on new critical findings:

{
  "source": ["aws.inspector2"],
  "detail-type": ["Inspector2 Finding"],
  "detail": {
    "severity": ["CRITICAL"],
    "status": ["ACTIVE"]
  }
}

  • SNS or chat integrations for notification.
  • Lambda to open a ticket or enrich the finding with resource tags.
  • SSM Automation or Run Command to patch an instance, for example with AWS-RunPatchBaseline.

If Security Hub is enabled, findings also flow there in ASFF format, which is useful for cross-service dashboards. Keep automated patching limited to non-production or add an approval step before it touches production.

Take quiz
Which EventBridge detail-type carries Inspector findings?
Inspector Assessment Run State Change
AWS API Call via CloudTrail
Inspector2 Finding
GuardDuty Finding
Which target can automatically patch an EC2 instance when a rule matches?
An SSM Automation or Run Command document
An S3 lifecycle rule
A Route 53 health check
An ECR lifecycle policy

38. How do you exclude resources from Amazon Inspector scanning?

Add an exclusion tag to the resource. Excluded resources are not scanned and are not billed for scanning.

Resource Tag
EC2 instance InspectorEc2Exclusion = true
ECR repository InspectorEcrExclusion = true
Lambda function InspectorExclusion = LambdaStandardScanning or LambdaCodeScanning

Do not confuse this with suppression. Exclusion stops scanning, so no findings are produced. Suppression keeps scanning and only hides matching findings. Use exclusion for resources that should never be assessed, such as throwaway lab instances, and suppression for accepted risks on resources you still want to monitor.

Tag hygiene matters here. A tag applied by mistake silently removes a production resource from coverage, so review excluded resources on the coverage view now and then.

Take quiz
Which tag excludes an EC2 instance from Inspector scanning?
InspectorExclusion = EC2
InspectorEc2 = off
Inspector:Skip = true
InspectorEc2Exclusion = true
How does exclusion differ from suppression?
They are identical
Exclusion stops scanning, while suppression only hides findings
Suppression stops billing and exclusion hides findings
Exclusion deletes the resource

39. How does deep inspection work for Linux EC2 instances in Amazon Inspector?

Deep inspection lets agent-based scanning look beyond OS packages and find vulnerabilities in programming-language packages, such as application libraries, on Linux instances.

Inspector searches a default set of library paths, /usr/lib, /usr/lib64, /usr/local/lib and /usr/local/lib64. If your applications live elsewhere, you can add up to five custom paths:

aws inspector2 update-ec2-deep-inspection-configuration \
  --package-paths /opt/myapp/lib /srv/app/vendor

Organization administrators can set paths for all members with the org-level variant of the same API. Without the extra paths, a Java or Python dependency installed under an unusual directory is simply never inventoried, which is a classic cause of missing findings.

Take quiz
Which paths does deep inspection scan by default?
/usr/lib, /usr/lib64, /usr/local/lib and /usr/local/lib64
/etc and /var/log
/home and /tmp
/proc and /sys
How many custom package paths can you add?
Only one
Unlimited
Up to five
None, the paths are fixed

40. How can you integrate Amazon Inspector into a CI/CD pipeline?

Generate an SBOM for the build artifact with the Inspector SBOM Generator, then submit it to the Inspector scan API to get a vulnerability report, and fail the build if it breaks your policy.

inspector-sbomgen container --image myapp:1.4 -o sbom.json

aws inspector-scan scan-sbom --sbom file://sbom.json \
  --output-format CYCLONE_DX_1_5 > report.json

  1. Build the image or package in the pipeline.
  2. Run the SBOM generator against it.
  3. Send the SBOM to the scan API and parse the report.
  4. Gate on a threshold, for example no Critical findings with a fix available.
  5. Push to ECR, where enhanced scanning continues to watch it.

Plugins exist for common CI tools, so the same flow can run in Jenkins, GitHub Actions, GitLab CI and AWS CodeBuild. Pair it with Code Security for repository-level checks earlier still.

Take quiz
Which tool generates an SBOM from an image inside a pipeline?
The Inspector Classic agent
aws inspector2 enable
The Inspector SBOM Generator (inspector-sbomgen)
An ECR lifecycle policy
How does the pipeline get vulnerabilities for that SBOM?
By submitting it to the Inspector scan API (ScanSbom)
By uploading it to GuardDuty
By emailing it to Security Hub
By committing it to CodeCommit

41. How do you remediate Amazon Inspector findings across EC2, ECR and Lambda?

Fix the source, then let Inspector confirm it. Each resource type has a different fix path, and the finding's remediation text names the fixed package version.

Resource Remediation Confirmation
EC2 instance Patch or upgrade the package, for example with SSM Patch Manager, or replace the instance from a patched AMI Inventory updates and the finding closes
ECR image Rebuild on an updated base image or bumped dependency and push a new tag New image is scanned; the old image's findings close when it ages out
Lambda function Upgrade the dependency or layer and redeploy Function update triggers a rescan

Do not patch a container by logging into a running task. The image in the registry stays vulnerable and the next deployment brings the flaw back. Use suppression only for risks you have explicitly accepted.

Take quiz
How do you fix an OS package finding in an ECR image?
Run Patch Manager against the registry
Suppress the finding permanently
Edit the repository policy
Rebuild on an updated base image and push it
What happens after you patch a vulnerable package on an EC2 instance?
You must delete the finding manually
Inspector sees the new inventory and closes the finding
It stays Active for 30 days
It becomes Suppressed

42. How do you prioritize Amazon Inspector findings in a large environment?

Rank by real exploit risk and reachability, not by raw severity alone. Inspector gives you the signals in the finding itself.

  1. Network exposure: is the resource internet-reachable?
  2. Exploit available or observed, plus CISA data where present.
  3. EPSS score, the estimated probability of exploitation in the wild.
  4. Fix available (YES, NO or PARTIAL), so you start with what can be fixed today.
  5. Inspector score and severity, then resource criticality from your tags.

Filters make this repeatable:

aws inspector2 list-findings --filter-criteria '{"findingStatus":[{"comparison":"EQUALS","value":"ACTIVE"}],"exploitAvailable":[{"comparison":"EQUALS","value":"YES"}],"fixAvailable":[{"comparison":"EQUALS","value":"YES"}]}'

A Medium with a public exploit on an internet-facing host often deserves attention before a Critical on an isolated one.

Take quiz
Which combination signals the highest urgency?
Internet-reachable, exploit available, fix available and high EPSS
Informational severity in a dev account
Low severity, no exploit, no fix, isolated subnet
Untriaged with no resource tags
What does the EPSS score estimate?
How long a patch takes to apply
The cost of remediation
The probability that a vulnerability will be exploited in the wild
The number of affected instances

43. When should you use CIS scans instead of package vulnerability scanning?

They answer different questions, so the real answer is usually both. Use CIS scans to verify hardening and compliance, and package vulnerability scanning to catch known CVEs.

Need Use
Prove SSH, password and file-permission settings meet CIS Benchmarks for an audit CIS scan
Validate a hardened golden AMI before release CIS scan, on demand
Find an unpatched OpenSSL or kernel package Package vulnerability scanning
Keep watching for newly published CVEs Package vulnerability scanning

Remember the operational difference. Package scanning runs continuously and can be agentless. CIS scans are run on demand or on a schedule and require SSM-managed instances, so they will not cover hosts where the SSM Agent is not usable.

Take quiz
Which scan catches SSH root login being enabled?
Package vulnerability scan
CIS scan
Network reachability scan
ECR enhanced scan
Which scan catches an unpatched CVE in OpenSSL?
CIS scan
A suppression rule
Lambda code scanning
Package vulnerability scanning

44. How do you export Amazon Inspector findings to Amazon S3?

Create a findings report with an S3 destination and a KMS key. You can choose CSV or JSON and apply the same filter criteria you use in the console.

aws inspector2 create-findings-report \
  --report-format CSV \
  --s3-destination bucketName=my-findings,keyPrefix=inspector/,kmsKeyArn=<key-arn> \
  --filter-criteria '{"severity":[{"comparison":"EQUALS","value":"CRITICAL"}]}'

aws inspector2 get-findings-report-status --report-id <report-id>

The bucket policy and the KMS key policy must allow the Inspector service principal to write and encrypt, which is the most common reason an export fails. Use the status call to follow progress. For inventory instead of findings, use create-sbom-export.

Exports are point-in-time snapshots of whatever matched your filter, so schedule them from automation if auditors want a regular history.

Take quiz
Which command exports a findings report?
aws inspector2 export-findings
aws securityhub get-report
aws inspector2 create-findings-report
aws inspector2 download-findings
Which formats are available for a findings report?
CSV or JSON
PDF or DOCX
XML or YAML
Parquet only

45. How does Amazon Inspector determine that an instance is reachable from the internet?

It evaluates the AWS network configuration around the instance and checks whether a path exists from an outside source to a port on its network interface.

flowchart LR
  A["Internet or peered network"] --> B["Internet gateway or VPN gateway"]
  B --> C["Route table"]
  C --> D["Network ACL"]
  D --> E["Security group"]
  E --> F["Instance network interface and port"]

If every hop permits the traffic, Inspector raises a network reachability finding with the port range, protocol and path. Because it reads configuration rather than probing the host, an open path does not prove a service is listening, and host firewalls such as iptables are not part of the analysis.

The result is also used as context for the Inspector score of CVEs on that instance.

Take quiz
Why might Inspector report an open port even though nothing is listening on it?
The analysis reads AWS network configuration, not host firewalls or running processes
Inspector sends probe packets that can be misread
The SSM Agent reports every port as open
It scans stopped instance disks for open sockets
What does a network reachability finding include?
The IAM user who opened the port
The CloudTrail event ID for the change
The port range, protocol and the path components that allow access
Only a CVE identifier

46. When would you choose agentless over agent-based scanning for EC2?

Choose agentless when you cannot or will not run the SSM Agent but still need vulnerability coverage.

  • Third-party appliance or marketplace AMIs where you cannot manage the OS.
  • Locked-down workloads with no route to Systems Manager endpoints.
  • Environments that cannot tolerate any scan CPU overhead on the host.
  • A quick way to get broad coverage while SSM rollout is still in progress.

Prefer agent-based where you can. It reacts faster to software changes, supports CIS scans, and gives deep inspection of language packages. Per-instance rates also differ between the two methods, so compare them on the pricing page.

In practice, hybrid mode is the answer: agent where possible, snapshots as the safety net.

Take quiz
Which situation best fits agentless scanning?
A fleet that needs CIS benchmark scans
A vendor appliance AMI where you cannot run the SSM Agent
A fleet already on SSM that needs the fastest change detection
Lambda functions
What should you check before standardizing on agentless?
It is always free
It is charged only per GB of snapshot
It costs the same as ECR scanning
Rates differ by scan method, so compare them on the pricing page

47. How is Amazon Inspector priced?

Inspector is pay-as-you-go per resource scanned, with no upfront fee. Each scan type bills differently, and new accounts get a free trial.

  • EC2: per instance for the time it is covered, with different rates for agent-based and agentless scanning.
  • ECR: a charge for the initial scan of each image and a smaller one for rescans.
  • Lambda: per function covered, with code scanning charged additionally.
  • Code Security: charged by scan activity on repositories.

To control cost, exclude throwaway resources by tag, shorten the ECR rescan duration, turn off scan types you do not need, and avoid activating Regions you do not use. Check exact rates on the AWS pricing page, since they change.

Take quiz
How is Inspector billed?
A flat monthly fee per account
Per finding generated
Pay-as-you-go per resource scanned
Per console user
Which action can reduce ECR scanning cost?
Shorten the rescan duration so fewer images stay monitored
Disable Security Hub
Add more image tags
Move to larger instance types

48. Why is Amazon Inspector regional and how do you manage multiple Regions?

Inspector scans resources that live in a Region, so activation, settings, delegated administrator and findings are all per Region. Turning it on in us-east-1 tells you nothing about workloads in eu-west-1.

  1. Activate Inspector in every Region that holds workloads, ideally through infrastructure as code.
  2. Designate the delegated administrator and enable auto-enable in each Region.
  3. Check coverage per Region, since a missed Region is a blind spot.
  4. Aggregate results with Security Hub cross-Region aggregation, or export reports to a central S3 bucket.

Many teams use a Service Control Policy to deny unused Regions, which also removes the need to scan them.

Take quiz
What is the scope of Amazon Inspector activation?
Global for the whole account
Per VPC
Per Availability Zone
Regional, so each Region is activated and viewed separately
How can you view findings from several Regions in one place?
A built-in global Inspector dashboard
Security Hub cross-Region aggregation or exported reports
Asking AWS Support to merge them
CloudFormation StackSet outputs

49. How do you troubleshoot an ECR image that is not being scanned by Inspector?

Start with coverage, because the scan status and reason code usually name the cause.

aws inspector2 list-coverage --filter-criteria '{"resourceType":[{"comparison":"EQUALS","value":"AWS_ECR_CONTAINER_IMAGE"}]}'

  1. Confirm the registry uses enhanced scanning. With basic scanning, Inspector is not involved.
  2. Check the repository is covered by your scan filters and has no InspectorEcrExclusion tag.
  3. Check the image is ACTIVE and not older than the rescan duration. SCAN_ELIGIBILITY_EXPIRED means it aged out.
  4. Look for UNSUPPORTED_OS, for example a scratch or distroless base with no recognizable package manager data.
  5. If the reason is PENDING_INITIAL_SCAN, give it a few minutes after the push.

If none of these explain it, check that the repository filter in the ECR scanning settings has not been narrowed to a different name pattern, which quietly leaves new repositories out.

Take quiz
Which reason code indicates an image is outside its rescan window?
SCAN_ELIGIBILITY_EXPIRED
UNMANAGED_EC2_INSTANCE
EXCLUDED_BY_TAG
PENDING_INITIAL_SCAN
What does a registry set to basic scanning mean for Inspector?
Inspector scans only the latest tag
Inspector scans every hour
Inspector is not scanning the images, so enable enhanced scanning
The rescan duration is lifetime

50. How does Amazon Inspector detect a new CVE without rescanning my instances?

Inspector stores the software inventory it has already collected for each resource. When its vulnerability intelligence is updated with a new CVE, it simply re-matches that stored inventory, so findings appear without running a new scan on the resource.

flowchart TD
  A["Inventory stored for each resource"] --> C[Match]
  B["New CVE added to vulnerability intelligence"] --> C
  C --> D{Resource still in scope?}
  D -- Yes --> E["New finding created"]
  D -- No --> F["No new finding"]

This is why the CVE shows up within a short time of publication even if nothing changed on the instance. It works for managed EC2 instances, eligible Lambda functions and ECR images inside their rescan window. An image that aged out, or an instance whose inventory has gone stale because the SSM Agent stopped, will not get the new finding until it is back in scope.

Take quiz
Why can Inspector produce findings for a new CVE without scanning the instance again?
It logs into every instance nightly
Customers must trigger a manual rescan
It re-matches the stored inventory against updated vulnerability intelligence
CVE feeds are pushed to the SSM Agent
Which resource would NOT receive findings for a new CVE?
An ECR image outside its rescan window
An ECR image inside the window
A managed EC2 instance with fresh inventory
An eligible Lambda function
«
»

Comments & Discussions