Configuring Acunetix 360 for Amazon Web Services (AWS)

Acunetix 360 can be configured to run scanner agents on Amazon Web Services (AWS). When you launch a new scan, Acunetix 360 will create a new instance for the target scan and terminate it automatically once the scan is completed.

This document explains how to configure Acunetix 360 to run scanner agents on AWS (Windows OS). For Linux instructions, refer to Configuring Acunetix 360 for Linux on Amazon Web Services (Ubuntu). For more information about using Cloud Providers with Acunetix 360, refer to Cloud Provider Settings.

First, you need to install and configure the scanner agent on an EC2 instance and then create a machine image (AMI) to use as a base instance.

Each stage of this process is outlined below:

  1. Select a region
  2. Create S3 buckets
  3. Create IAM users
  4. Create an AMI for scanner agent
  5. Configure Acunetix 360
  6. Update the scanner agent

Step 1: Select a region

Acunetix 360 uses AWS S3 buckets for storage needs and EC2 service for launching new instances.

For information on how to select a region, refer to Amazon's EMR documentation.

NOTE: S3 and EC2 resources need to be in the same AWS region. Choose an AWS region and create all resources in that same region.

Step 2: Create S3 buckets

Acunetix 360 needs three different buckets to store scan data. Follow the steps below to create S3 buckets.

  1. Open the AWS console and navigate to the S3 service.
  2. Create 3 buckets. One for raw scan data, one for screenshots, and one for customizations. These bucket names could be used:
  • exampleinc.acx.scandata (for raw scan data)
  • exampleinc.acx.scanscreenshots (for form authentication screenshots)
  • exampleinc.acx.customizations (for customizations)

You can apply the following precautions to harden your buckets.

  1. Enable Encryption: Amazon provides a default encryption service or you can use your own keys. For further information, refer to Amazon S3 default encryption for S3 buckets.
  2. Monitoring and Auditing: Amazon provides ways to monitor and audit S3 buckets. For further information, refer to Amazon S3 Monitoring and Auditing Best Practices.

Step 3: Create IAM Users & Policies

During this step, you create the following:

3.1 How to create an access policy for the web application

  1. Go to the AWS console and navigate to the IAM service.
  2. Select Policies.
  3. Click Create Your Own Policy.
  4. Enter a policy name (e.g. ACXWebAppPolicy).
  5. Enter your bucket names in the policy template code below and paste it into the Policy Document field.

{

    "Statement": [

        {

            "Action": [

                "s3:*"

            ],

            "Effect": "Allow",

            "Resource": [

                "arn:aws:s3:::exampleinc.acx.scandata/*",

                "arn:aws:s3:::exampleinc.acx.scanscreenshots/*",

                "arn:aws:s3:::exampleinc.acx.customizations/*"

            ]

        },

        {

            "Action": [

                "ec2:CreateTags",

                "ec2:DeleteTags",

                "ec2:DescribeInstances",

                "ec2:RunInstances",

                "ec2:TerminateInstances"

            ],

            "Effect": "Allow",

            "Resource": "*"

        }

    ],

    "Version": "2012-10-17"

}

  1. Click Create Policy.

3.2 How to create an access policy for the scanner agent

  1. Select Policies.
  2. Click Create Your Own Policy.
  3. Enter a policy name for scanner agent (e.g. ACXAgentPolicy).
  4. Enter your bucket names to the policy template code below) and paste it into the Policy Document field.

{

    "Statement": [

        {

            "Action": [

                "s3:DeleteObject",

                "s3:PutObject"

            ],

            "Effect": "Allow",

            "Resource": [

                "arn:aws:s3:::exampleinc.acx.scandata/*",

                "arn:aws:s3:::exampleinc.acx.scanscreenshots/*"

            ]

        },

        {

            "Action": [

                "s3:ListBucket"

            ],

            "Effect": "Allow",

            "Resource": [

                "arn:aws:s3:::exampleinc.acx.customizations",

                "arn:aws:s3:::exampleinc.acx.scandata",

                "arn:aws:s3:::exampleinc.acx.scanscreenshots"

            ]

        },

        {

            "Action": [

                "s3:GetObject"

            ],

            "Effect": "Allow",

            "Resource": [

                "arn:aws:s3:::exampleinc.acx.customizations/*",

                "arn:aws:s3:::exampleinc.acx.scandata/*",

                "arn:aws:s3:::exampleinc.acx.scanscreenshots/*"

            ]

        }

    ],

    "Version": "2012-10-17"

}

  1. Click Create Policy.

3.3 How to create a user for the web application

  1. Click Users.
  2. Click Add User.
  3. Enter a user name (e.g. ACXWebApp).
  4. After creating the user, select Permissions.
  5. Select Attach policies directly and use the Customer managed filter.
  6. Select the previously created web app policy (e.g. NEWebAppPolicy).
  7. Click Attach existing policies directly.

  1. Click Next to create the web app user.
  2. To create your Access Keys, select the NEWebapp user from the IAM page.

  1. Open the Security credentials tab, scroll down to Access Keys, and select the option Application running on an AWS compute service.

  1. Copy those into your notes for the Cloud Provider settings.

3.4 How to create a user for the scanner agent

  1. Click Users.
  2. Click Add User.
  3. Enter a user name (e.g. NEAgent).
  4. After creating the user, select Permissions.
  5. Select Attach Policies Directly and use the Customer managed filter.
  6. Select the previously created web app policy (e.g. NEAgentPolicy).
  7. Select Attach policies directly.

  1. Click Next to create the NEAgent user.
  2. Select the NEAgent user from the IAM page to create your Access Keys.
  3. Open the Security credentials tab, scroll down to the Access Keys section, and select the option Application running on an AWS compute service.
  4. Copy those into your notes for the Cloud Provider settings.

Step 4: Create an AMI for the Scanner Agent

There are four steps to this process:

  1. Launch an instance for the scanner agent
  2. Configure the scanner agent instance
  3. EC2 launch and shutdown with Sysprep
  4. Creating a scanner agent image

4.1 How to launch an instance for a Scanner Agent

  1. Navigate to the EC2 service.
  2. Select Instances, from the main menu.
  3. Click Launch Instance.
  4. Select Microsoft Windows Server 2022 Base as the AMI.

  1. Click Choose Instance Type and select an Instance Type (c4.large is recommended).

  1. Click Configure Instance.

  1. Set the Auto-assign Public IP dropdown to Enable. (This is needed for RDP connections.)
  2. Click Next: Add Storage and set the Disk Size (a minimum of 30 GB is recommended).
  3. Click Next: Add Tags.
  4. Click Next: Configure Security Group.
  5. Click Review and Launch.

Next, you need to install the Invicti Scanner Agent to the target EX2 instance.

4.2 How to configure a scanner agent instance

  1. Navigate to the EC2 service.
  2. From the main menu, click Instances.
  3. Right-click the previously launched scanner agent instance, and click Connect.

  1. Connect to your instance with the supplied RDP information.
  2. Ensure you can connect to your on-premises Acunetix 360 web application from this instance.
  3. Download and extract Acunetix360.zip AgentSetup.exe into your instance.
  4. Run AgentSetup.exe and install the scanner agent. Enter the required information asked by the agent installation wizard. For API Token, navigate to the Configure New Agent page by clicking Agents > Manage Agents > Configure New Agent.

  1. Start a command prompt and type: cd C:\Program Files (x86)\Acunetix 360 Agent

  1. By default, the scanner agent is not configured to run in AWS. Type this command to uninstall scanner agent windows service: Acunetix.Cloud.Agent.exe /u.

  1. Open the agent’s configuration file with a text editor: C:\Program Files (x86)\Acunetix 360 Agent \appsettings.json
  2. Navigate to <acunetix> section and set agentType to Cloud.
  3. Save appsettings.json file.
  4. Type this command to re-install the scanner agent windows service: Acunetix.Cloud.Agent.exe /i

  1. Open Microsoft Services.
  2. The installed agent's Windows Service’s Startup Type needs to be changed to 'Automatic'.

4.3 EC2 Launch and Shutdown with Sysprep

  1. If you do not have EC2 Launch, you can download it directly from Amazon.
  2. Once the file is extracted, navigate to the EC2Launch Scripts folder in Powershell by copying and pasting the path from the File Browser or via  Powershell. It should look something like this:

<C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts>

  1. Run the script with the -Schedule flag: .\InitializeInstance.ps1 -Schedule
  2. Open Amazon EC2Launch via Windows search and Shutdown w/Sysprep

Next, you need to create an AMI that will be used as a base image for new scans.

4.4 How to create a scanner agent image

  1. Open the EC2 instances page on the AWS console.
  1. Select the EC2 instance and from the Actions menu click Instance State > Stop/ Wait for the agent instance to be stopped.
  2. Once the agent instance has stopped, right click on it, and click Create Image. Enter a name for your image and click Create Image.

  1. Navigate to the AMIs page and save your AMI ID (you will need it later).

Step 5: Configuring Acunetix 360 web application

Follow these steps to configure Acunetix 360 AWS settings.

  1. Create an RDP connection to your Acunetix 360 web application server.
  2. Log in to Acunetix 360.
  3. Select Settings > Cloud Provider from the left-side menu.
  4. Enter your AWS settings.
  • The settings for the Instance Type, Subnet ID, and Key Pair Name are in your stopped instance’s details in AWS.
  • Click Security Group to get the Security Group id. (e.g. sg-abc3fec2)

  1. Click Save. You can now run new scans on your AWS environment.

NOTE: Now, that you have enabled the Cloud Provider Settings, you need to ensure the Agent Mode for your targets is set to Cloud.

Step 6: Update the scanner agent

Next, you need to update the scanner agent using these instructions

  1. In the AWS EC2 console, open the AMI page. Right click on your current scanner agent’s AMI and launch an instance.
  2. Once your scanner agent instance is ready, make an RDP connection to it.
  3. Download the Acunetix 360 installation bundle. After extracting the zip file, click the file AgentSetup.exe to start the agent installation wizard.
  4. Once the new scanner agent is installed, create a new AMI of your instance as described in How to Create a Scanner Agent Image.
  5. Next, log in to Acunetix 360. From the main menu, click Settings, then Cloud Provider Settings.
  1. Enter your new AMI and click Save.

« Back to the Acunetix Support Page