Installing Authentication Verifier Agents in Acunetix 360

You can download and configure an authentication verifier agent to perform a form authentication in your internal network.

  • In order to scan a website located on your internal network, and not accessible from the internet, you can install and configure a scan agent on your network. The agent will conduct the actual scan job and then report the results back to Acunetix 360.
  • If your website requires a form authentication, you can download and configure an internal verifier agent. This internal agent performs the authentication so that you can run authenticated scanning in your network.

There are three stages to this process:

  1. Download and configure the Acunetix 360 authentication verifier agent
  2. Run the authentication verifier agent on your local network where it can reach the internal website you want to authenticate
  3. Verify the form authentication

Tips

The Authentication Verifier Agent is an optional component. You can download and configure the verifier agent if you need to scan websites with form or basic authentication or OAuth2.

Downloading and configuring authentication verifier agent in Windows

Prerequisites

Hardware Requirements

  • Windows Server 2016 or above (Windows Server 2019 recommended)
  • .NET Framework 4.7.2
  • 1.4 GHz Processor (2.0 GHz or faster recommended)
  • 2 GB RAM (4 GB or higher recommended)
  • 10 GB Free Disk space for each internal agent

Network Requirements

  • An agent should be configured so that it can reach your internal website through HTTP/HTTPS
  • An agent needs to be able to access the Acunetix 360 Application Server’s HTTP(S) (443) port

Required Access

  • User(s) must have administrator privileges to run the required commands and agent service.
How to Download the Authentication Verifier Agent
  1. Log in to Acunetix 360.
  2. From the main page, go to Agents > Manage Agents > Configure New Agent.
  3. From the Authentication Verifier section, select Windows to download the Acunetix 360 Authentication Verifier Agent. 

When you download the zip file, you can configure the authentication verifier agent.

How to Configure the Authentication Verifier Agent
  1. Navigate to the folder you downloaded the zip file.
  2. Extract the contents of the zip file to C:\Acunetix360_VerifierAgent. (You can use another location, but these instructions will use this path.)
  3. Open the C:\Acunetix360_VerifierAgent\appsettings.json file with your preferred text editor. You need to edit the following attributes before running the agent, listed under AgentInfo:
  • AgentName: This can be anything you want. (If you are going to install more than one instance of the agent, you must set a unique agentName value for each instance, something you will use later.)
  • ApiToken: In Acunetix 360, the Agent Token is displayed in the Configure New Agent window. Copy the value into the apiToken.
  1. Save and close the C:\Acunetix360_VerifierAgent\appsettings.json file.

When you install an internal authentication verifier agent, you need to set it as a Windows service. So, the verifier agent can poll the Acunetix 360 servers regularly and can take the initiation command from the server.

Setting Agent as a Windows Service

An internal agent should be configured as a Windows service, so that it can poll the Acunetix 360 servers regularly, and can take the scan initiation command from the server.

How to Set the Agent as a Windows Service
  1. Open a command prompt in Administrator mode and navigate the agent's folder.
  2. Run the command below to install the Acunetix 360 Scanning Agent as a Windows Service:
  • Acunetix.Cloud.Agent.exe -i
  1. Press Windows+R, type 'services.msc' and press Enter.
  2. Find 'Acunetix 360 Scanning Service - [YOUR_AGENT_NAME]'.
  1. Right click on it, and select Properties.
  2. Make sure Startup type is set to Automatic, and click Start.

Warning

Although this service is set to start automatically, it will not restart until the PC is restarted too.

  1. Click Apply and OK, then exit the Properties window.

The Acunetix 360 Scanning Agent is now running on your network, shortly it will be registered to Acunetix 360. To view your agents, from the main menu, select Agents > Manage Agents.

You can uninstall the Windows Service by specifying the -u argument instead of the -i argument used during the installation process.

You can now use your verifier agent to verify the form authentication. For further information, see How to Verify Form Authentication with a Verifier Agent.

Downloading and configuring authentication verifier agent in Linux

Prerequisites

Hardware Requirements

  • 1.4 GHz Processor (2.0 GHz or faster recommended)
  • 2 GB RAM (4 GB or higher recommended)
  • 10 GB Free Disk space for each internal agent

Network Requirements

  • The Agent should be configured so that it can reach your internal website through HTTP/HTTPS.
  • The Agent needs to be able to access the Acunetix 360 Application Server’s HTTP(S) (443) port.

Required Access

  • User(s) must have administrator privileges to run the required commands.
How to Download and Configure the Authentication Verifier Agent
  1. Log in to Acunetix 360.
  2. From the main page, go to Agents > Manage Agents > Configure New Agent.
  3. From the Authentication Verifier section, select Linux to download the Acunetix 360 Authentication Verifier Agent. 

Installing the authentication verifier agent

Once you download the required file, you must install an Acunetix 360 authentication verifier agent on your environment.

Information

Please note that the verifier and scanning agents have the same installation instruction.

Setting authentication verifier agent as a Linux Service

When you install an internal authentication verifier agent, you need to set it as a Linux service. So, the verifier agent can poll the Acunetix 360 servers regularly and can take the initiation command from the server.

You can complete this process in three steps:

Add a Unit File for an Acunetix 360 Agent

  1. Open a terminal
  2. cd /etc/systemd/system
  3. sudo touch [YOUR_AGENT_NAME].service
  4. sudo nano [YOUR_AGENT_NAME].service

Information

The AgentName in the appsetting.json file and the unit file name for the agent must have the same name.

5. Add the following script into [YOUR_AGENT_NAME].service

[Unit]

Description=acunetix.service description

[Service]

Type=notify

KillMode=process

Restart=always

RestartSec=30

SyslogIdentifier=[YOUR_USER]

KillSignal=SIGINT

User=[YOUR_USER]

WorkingDirectory= [YOUR_AGENT_DIRECTORY_PATH]

ExecStart=/usr/bin/dotnet [YOUR_AGENT_DIRECTORY_PATH]/Acunetix.Cloud.Agent.dll

ExecStop=/usr/bin/pkill -f "[YOUR_AGENT_DIRECTORY_PATH]/Nhs/AcunetixHelperService.exe"

[Install]

WantedBy=multi-user.target

Save and close the document.

Information

The [YOUR_USER] in the unit file must be the same as [YOUR_USER] that you entered while installing the verifier agent.

Configure Sudoers for an Acunetix Agent

  1. sudo cd /etc/sudoers.d
  2. sudo touch [YOUR_AGENT_NAME]-systemctl
  3. sudo visudo -f [YOUR_AGENT_NAME]-systemctl
  4. Add the following script into [YOUR_AGENT_NAME]-systemctl
  1. [YOUR_USER] ALL=(ALL:ALL) NOPASSWD: /usr/bin/systemctl start [YOUR_AGENT_NAME].service
  2. [YOUR_USER] ALL=(ALL:ALL) NOPASSWD: /usr/bin/systemctl stop [YOUR_AGENT_NAME].service


Save and close the document.

Start Acunetix 360 Agent as a Linux Service

  1. sudo systemctl daemon-reload
  2. sudo systemctl start [YOUR_AGENT_NAME].service

In Acunetix 360, you can check the status of the connection between it and the scan agent.

From the Agents menu, click Manage Agents. The Agents window is displayed.

You can now use your verifier agent to verify the form authentication. For further information, see How to Verify Form Authentication with a Verifier Agent.

Warning

Note that the authentication verifier agent does not support auto-update currently. We have been working on improving this.

So, in order to update the Acunetix 360 Verifier Agent, you must remove the existing agent and download/install the latest version of the authentication verifier agent.

Setting proxy in authentication verifier agent

You can set a proxy for the verifier agent in Acunetix 360. You are required to enter proxy settings manually to the appsettings.json file with your preferred text editor.

Acunetix 360 supports Basic Authentication but not Digest and NTLM.

This table lists and explains the entries in the Proxy settings.

Field

Description

Enabled

Enter true if you use a proxy

Use System Default

Enter true if you authenticate the agent via operating system credential

Username

Enter a username for authentication

Password

Enter a password for authentication

Domain

Enter a domain name

Address

Enter a proxy address

Port

Enter a port for the proxy

Bypass on Local

Enter a value that indicates whether to bypass the proxy server for local addresses.

Bypass List

Enter the address(es) that do not use the proxy server.

How to verify form authentication with a verifier agent

  1. Log in to Acunetix 360.
  2. From the main menu, select Scans > New Scan.
  3. In the Target URL field, enter the URL.
  4. From the Scan Options section, select Form Authentication.
  5. Select the Form Authentication checkbox.

  1. In the Login Form URL field, enter the URL of the login form whose credentials you want to configure.

Information

If there is more than one authentication verifier agent defined in your system, Acunetix 360 shows a drop-down menu to select the verifier agent you want to use.

  1. In the Personas section, select New Persona. Then, enter a username and password.
  2. Select Verify Login & Logout so the verifier agent can test the login.

If the Verify Login & Logout button is green, this means the Acunetix 360 Authentication Verifier Agent verified the login form successfully.

Scanning your website with an internal scan agent? See Defining and Scanning an Internal Website in Acunetix 360.


 
« Back to the Acunetix Support Page