Activating a scan type
You can activate a scan type at any time. When you activate a scan type, Amazon Inspector begins scanning eligible resources for the scan type.
Amazon EC2 scanning
This scan type extracts metadata from an Amazon EC2 instance before comparing the metadata against rules collected from security advisories. When you activate this scan type, Amazon Inspector scans all eligible Amazon EC2 instances in your account for package vulnerabilities and network reachability issues. After you activate this scan type, you can view how many instances are being scanned in the Instances tab.
Machine image scanning
This scan type extracts a software inventory from the Amazon EBS snapshots that back a machine image (AMI) before comparing that inventory against rules collected from security advisories. When you activate this scan type, Amazon Inspector scans all eligible machine images that your account owns for package vulnerabilities and continues to monitor them. After you activate this scan type, you can view how many machine images are being scanned in the Machine images tab.
Note
After you activate machine image scanning, review your scan configuration to control which machine images are in scope. For more information, see Configuring machine image scanning.
Amazon ECR scanning
This scan type scans container images and container repositories in Amazon ECR. When you activate this scan type, you change the scanning configuration setting for your private registry from basic scanning to enhanced scanning. After you activate Amazon ECR scanning, you can view how many images and repositories are being scanned in the Container images and Container repositories tabs.
Lambda standard scanning + Lambda code scanning
Lambda standard scanning is the default Lambda scan type. When you activate Lambda standard scanning, all of your Lambda functions are scanned for software vulnerabilities, as long as they were invoked or updated in the last 90 days. After you activate Lambda standard scanning, you view how many Lambda functions are being scanned in the Lambda functions tab.
Lambda code scanning scans custom application code in a Lambda function. When you activate Lambda code scanning, all of your Lambda functions will be scanned for code vulnerabilities, as long as they were invoked or updated in the last 90 days. After you activate Lambda standard scanning, you can view how many Lambda functions are being scanned for code vulnerabilities in the Lambda functions tab.
Note
If you want to activate Lambda code scanning, you must activate Lambda standard scanning first.
Amazon Inspector Code Security
This scan type scans first-party application code, third-party application dependencies, and Infrastructure as Code for vulnerabilities. When you activate Code Security, Amazon Inspector begins scanning your code repositories for code vulnerabilities based on your scan configurations. After you activate Amazon Inspector Code Security, you can view how many code repositories are being scanned in the Code repositories tab.
Activating scans
The following procedure describes how to activate a scan type in Amazon Inspector.
Note
If you're the delegated administrator for an Amazon organization, you can enable Amazon Inspector scan types for multiple accounts in multiple Regions using a shell script.
For more information, see inspector2-enablement-with-cli