Amazon Inspector
User Guide (Version Latest)

Installing Amazon Inspector Agents

The Amazon Inspector Agent can be installed using the Systems Manager Run Command on multiple instances (including both Linux-based and Windows-based instances), or individually by signing in to each EC2 instance. The procedures below provide instructions for both methods.

Additionally, you can quickly install the agent on all Amazon EC2 instances included in an assessment target by selecting the Install Agents box on the Assessment target creation page.

Note

The following procedures are functional in all regions that are supported by Amazon Inspector.

Amazon Linux AMI with Amazon Inspector Agent

To skip the manual Amazon Inspector Agent installation on the Amazon Linux EC2 instances that you want to include in your assessment targets, you can use the Amazon Linux AMI with Amazon Inspector Agent. This AMI has the Amazon Inspector Agent pre-installed and requires no additional steps to install or setup the agent. To start using Amazon Inspector with these EC2 instances, simply tag them to match the desired assessment target. The configuration of Amazon Linux AMI with Amazon Inspector Agent enhances security by focusing on two main security goals: limiting access and reducing software vulnerabilities.

This is the only currently available EC2 instance AMI with the pre-installed Amazon Inspector Agent. For the EC2 instances running Ubuntu Server or Windows Server, you must complete the manual Amazon Inspector Agent installation steps.

The Amazon Linux AMI with Amazon Inspector Agent is available in the EC2 console and also the AWS Marketplace.

To install the Amazon Inspector Agent on multiple EC2 instances using the Systems Manager Run Command

You can install the Amazon Inspector Agent on your EC2 instances using the Systems Manager Run Command. This enables you to install the agent remotely and on multiple instances (both Linux-based and Windows-based instances with the same command) at once.

Important

Agent installation using the Systems Manager Run Command is not currently supported for the Debian operating system.

Important

To utilize this option, make sure that your EC2 instance has the SSM Agent installed and has an IAM role that allows Run Command. The SSM Agent is installed, by default, on Amazon EC2 Windows instances and Amazon Linux instances. Amazon EC2 Systems Manager requires an IAM role for EC2 instances that will process commands and a separate role for users executing commands. For more information, see Installing and Configuring SSM Agent and Configuring Security Roles for System Manager.

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane under Systems Manager Services, choose Run Command.

  3. Choose Run a command.

  4. For Command document, choose the document named

    AmazonInspector-ManageAWSAgent owned by Amazon. This document contains the script for installing the Amazon Inspector Agent on EC2 instances.

  5. Specify your EC2 instances either by choosing the Specifying a Tag option or by Manually Selecting Instances and then selecting Select instances. To install the agent on all the instances in the assessment target, you can specify the same tags used for creating the assessment target.

  6. Provide your choices for the rest of the available options using the instructions in Executing Commands from the EC2 Console, and then select Run.

Note

You can also install the Amazon Inspector Agent on multiple EC2 instances (both Linux-based and Windows-based) while creating a new assessment target or by using the Install Agents with Run Command button for an existing target. For more information, see Creating an Assessment Target (Console).

To install the Amazon Inspector Agent on a Linux-based EC2 instance

  1. Sign in to your EC2 instance running a Linux-based operating system where you want to install the Amazon Inspector Agent.

    Note

    For more information about operating systems supported for Amazon Inspector see Amazon Inspector Supported Operating Systems and Regions.

  2. Download the agent installation script by running one of the following commands:

    • wget https://inspector-agent.amazonaws.com/linux/latest/install

    • curl -O https://inspector-agent.amazonaws.com/linux/latest/install

  3. (Optional) Verify that the Amazon Inspector Agent installation script is not altered or corrupted. For more information, see (Optional) Verify the Signature of the Amazon Inspector Agent Installation Script on Linux-based Operating Systems.

  4. To install the agent, run sudo bash install.

    Note

    As updates for the Amazon Inspector Agent become available, they are automatically downloaded from Amazon S3 and applied. For more information, see Amazon Inspector Agent Updates.

    If you want to skip this auto-update process, make sure to run the following command when you install the agent:

    sudo bash install -u false

    Note

    (Optional) To remove the agent installation script, run rm install .

  5. Verify that the following files required for the agent to be successfully installed and functioning properly are installed:

    • libcurl4 (required to install the agent on Ubuntu 18.04)

    • libcurl3

    • libgcc1

    • libc6

    • libstdc++6

    • libssl1.0.1

    • libssl1.0.2 (required to install the agent on Debian 9)

    • libpcap0.8

To install the Amazon Inspector Agent on a Windows-based EC2 instance

  1. Sign in to your EC2 instance running a Windows-based operating system where you want to install the Amazon Inspector Agent.

    Note

    For more information about operating systems supported for Amazon Inspector see Amazon Inspector Supported Operating Systems and Regions.

  2. Download the following .exe file: https://inspector-agent.amazonaws.com/windows/installer/latest/AWSAgentInstall.exe

  3. Open a command prompt window (with Administrative permissions), navigate to the location where you saved the downloaded AWSAgentInstall.exe, and run AWSAgentInstall.exe to install the Amazon Inspector Agent.

    Note

    As updates for the Amazon Inspector Agent become available, they are automatically downloaded from Amazon S3 and applied. For more information, see Amazon Inspector Agent Updates.

    If you want to skip this auto-update process, make sure to run this command to install the Amazon Inspector Agent.

    AWSAgentInstall.exe AUTOUPDATE=No