Enabling Inspector VM Scanner
When you enable Enhanced EC2 Scanning in the Amazon Inspector console, Amazon Inspector uses Amazon EC2 Systems Manager (SSM) to automatically install the VM Scanner on your managed Amazon EC2 instances. Once installed, the scanner executes periodically (every 3 hours by default) and sends results to the Amazon Inspector Telemetry Service.
Requirements
To use the automatic installation method, your Amazon EC2 instances must meet the following requirements:
-
The SSM Agent must be installed and running on the instance. For more information, see Working with SSM Agent in the Amazon Systems Manager User Guide.
-
The instance must have an IAM instance profile that allows SSM to manage the instance. For more information, see Configure instance permissions for Systems Manager in the Amazon Systems Manager User Guide.
-
The instance must have network connectivity to the SSM service endpoints.
Note
If your instances do not have SSM Agent installed or cannot meet these requirements, you can use the manual installation method instead. For more information, see Manual installation and configuration.
Enabling Enhanced EC2 Scanning
To enable Enhanced EC2 Scanning and automatically install the VM Scanner:
-
Open the Amazon Inspector console at Getting Started with the Amazon Web Services Management Console.
-
In the navigation pane, choose Account management.
-
Under EC2 scanning, choose Edit.
-
Enable Enhanced EC2 Scanning.
After you enable Enhanced EC2 Scanning, Amazon Inspector creates an SSM association that installs the VM Scanner on all eligible instances in your account. The scanner begins executing vulnerability assessments automatically.
Note
Warning: Enabling Enhanced EC2 Scanning with the Inspector VM Scanner permanently disables the Inspector SSM plugin. This applies to both individual Amazon Web Services accounts and organizations that the delegated administrator enables. After you enable this feature, you cannot revert to the Inspector SSM plugin.
Note
Before you enable Enhanced EC2 Scanning, consider testing in a non-production account first. If you do not test first, you cannot revert to the Inspector SSM plugin if issues arise. For more information, see Manual installation and configuration.
Amazon VPC endpoint requirements for Enhanced EC2 Scanning on private Amazon EC2 instances
You can run Enhanced EC2 Scanning on Amazon EC2 instances over an Amazon network. However, if you want to run Enhanced EC2 Scanning on private Amazon EC2 instances, you must create Amazon VPC endpoints. The following endpoints are required:
com.amazonaws.region.inspector2-telemetrycom.amazonaws.region.s3com.amazonaws.region.ssmcom.amazonaws.region.ssmmessages
Where region is the Region code for the applicable Amazon Web Services Region.
For more information, see Improve the security of Amazon EC2 instances by using Amazon VPC endpoints for Systems Manager in the Amazon Systems Manager User Guide.
Note
Beginning with SSM Agent version 3.3.40.0, SSM Agent uses the ssmmessages endpoint instead of the ec2messages endpoint whenever it's available. Earlier versions of SSM Agent use the ec2messages endpoint. This endpoint is supported only in Amazon Web Services Regions launched before 2024. For more information, see Reference: ec2messages, ssmmessages, and other API operations in the Amazon Systems Manager User Guide.