Installing Amazon Inspector Classic agents - Amazon Inspector Classic

This is the user guide for Amazon Inspector Classic. For information about the new Amazon Inspector, see the Amazon Inspector User Guide. To access the Amazon Inspector Classic console, open the Amazon Inspector console at https://console.aws.amazon.com/inspector/, and then choose Amazon Inspector Classic in the navigation pane.

Installing Amazon Inspector Classic agents

You can install the Amazon Inspector Classic agent using the Systems Manager Run Command on multiple instances (including both Linux-based and Windows-based instances). Alternatively, you can install the agent individually by signing in to each EC2 instance. The procedures in this chapter provide instructions for both methods.

As another option, you can quickly install the agent on all Amazon EC2 instances included in an assessment target by selecting the Install Agents check box on the Define an Assessment target page on the console.

Note

The procedures in this chapter apply to all AWS Regions that are supported by Amazon Inspector Classic.

Installing the agent on multiple EC2 instances using the Systems Manager Run Command

You can install the Amazon Inspector Classic 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 use 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 processes commands and a separate role for users executing commands. For more information, see Installing and configuring SSM Agent and Configuring security roles for SSM.

To install the agent on multiple EC2 instances using the Systems Manager Run Command
  1. Open the AWS Systems Manager console at https://console.aws.amazon.com/systems-manager/.

  2. In the navigation pane under Node Tools, choose Run Command.

  3. Choose Run a command.

  4. For Command document, choose the document named AmazonInspector-ManageAWSAgent that is owned by Amazon. This document contains the script for installing the Amazon Inspector Classic agent on EC2 instances.

  5. For Targets, you can select EC2 instances using different methods. To install the agent on all of the instances in the assessment target, you can specify the tags that were used to create the assessment target.

  6. Provide your choices for the rest of the available options using the instructions in Running commands from the console, and then choose Run.

Note

You can also install the agent on multiple EC2 instances (both Linux-based and Windows-based) when you create an assessment target, or you can use the Install Agents with Run Command button for an existing target. For more information, see Creating an assessment target.

Installing the agent on a Linux-based EC2 instance

Perform the following procedure to install the Amazon Inspector Classic agent on a Linux-based EC2 instance.

To install the 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 Classic agent.

    Note

    For information about the operating systems that Amazon Inspector Classic supports, see Amazon Inspector Classic 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 agent installation script is not altered or corrupted. For more information, see (Optional) Verify the signature of the Amazon Inspector Classic agent installation script on Linux-based operating systems.

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

    Note

    If you are installing the agent in a SELinux environment the Amazon Inspector Classic may be detected as an unconfined daemon. You can avoid this by changing the domain of the agent process from the default initrc_t to bin_t. Use the following commands to assign the bin_t context to the Amazon Inspector Classic run scripts before installing the agent for SELinux:

    sudo semanage fcontext -a -t bin_t /etc/rc\.d/init\.d/awsagent

    sudo semanage fcontext -a -t bin_t /etc/init\.d/awsagent

    Note

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

    If you want to skip this auto-update process, 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)

    • libssl1.1 (required to install the agent on Ubuntu 20.04 LTS)

    • libpcap0.8

Installing the agent on a Windows-based EC2 instance

Perform the following procedure to install the Amazon Inspector Classic agent on a Windows-based EC2 instance.

To install the 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 agent.

    Note

    For more information about the operating systems that Amazon Inspector Classic supports, see Amazon Inspector Classic 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 the .exe file to install the agent.

    Note

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

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

    AWSAgentInstall.exe AUTOUPDATE=No