How do I set up Amazon Inspector to run security assessments on my Amazon EC2 instances?

Last updated: 2019-09-03

How can I set up Amazon Inspector to perform a security assessment on my Amazon Elastic Compute Cloud (Amazon EC2) instance?

Resolution

You can use Amazon Inspector service to create and run security assessments for your Amazon EC2 instances by following these steps:

Create a Service-Linked Role for Amazon Inspector and Tag your Amazon EC2 instances

  1. Open the Amazon Inspector console, and then choose Get Started.
  2. Follow the instructions for One-Click Step.
  3. Open the Amazon EC2 console, and then choose Instances from the left navigation menu.
  4. Select the instances that you want Amazon Inspector to perform an assessment on, and then choose the Tags tab.
  5. Choose Add/Edit Tags, and then choose Create Tag.
  6. Enter a Key and Value name, and then choose Save.

Install the Amazon Inspector agent

Follow the instructions for installing the Amazon Inspector agent for the OS of your Amazon EC2 instance:

For information about automating the installation of the Amazon Inspector agent, see How to Simplify Security Assessment Setup Using Amazon EC2 Systems Manager and Amazon Inspector.

Define the assessment target

  1. Open the Amazon Inspector console, and then choose Assessment target.
  2. Choose Create, enter the name for your assessment target.
  3. Choose the Key and Value pairs for the Amazon EC2 instances you want to include in the assessment, such as "examplekey" and "examplevalue."
  4. Uncheck Install Agents, and then choose Preview to view and verify the instances that are included.
  5. Choose OK, and then choose Save.

Define the assessment template and run the assessment

  1. Open the Amazon Inspector console, choose Assessment templates, and then choose Create.
  2. In Assessment Template, enter a Name and Target name.
  3. For Rules packages, choose Common Vulnerabilities.
  4. For Duration, choose how long you want your assessment to run. Note: It's a best practice that you choose a duration of one hour if you have more than one rule package or instance.
  5. Uncheck Assessment Schedule, and then choose Create and run.
  6. After the assessment completes, from the left navigation menu choose Findings or Assessment runs.

Run the assessment

  1. Open the Amazon Inspector console.
  2. Select the Assessment templates section to see the available assessments.
  3. Choose the template that you created, and then choose Run to start the assessment immediately, or create an Assessment Event.
  4. After the assessment completes, from the left navigation menu, choose Findings or Assessment runs.

Assessment runs include a list of all assessment runs. You can review information about a particular assessment, generate a report from that assessment, or navigate to the security findings for specific assessments. For more information, see Assessment Reports.

Findings include a list of all Findings for all assessment runs. You can filter these results to see the finding that you want. Findings are identified security vulnerabilities or configuration exposures discovered during the Amazon Inspector assessment. To learn more about a Amazon Inspector finding, choose the arrow next to the finding to expand the detailed view. For more information, see Amazon Inspector Findings.

Note: Amazon Inspector assessment targets can only include Amazon EC2 instances that have a supported OS installed. See Amazon Inspector Supported Operating Systems and Regions for more information.


Did this article help you?

Anything we could improve?


Need more help?