SUPPORT

Contact Support

OPEN A TICKET

Installing Authentication Verifier Agents

You can download and install authentication verifier agents to verify that you run authenticated scans in your local environment.

  • 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 Netsparker Enterprise.
  • If the website that you scan 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.

For further information about the internal authentication verifier, see Streamline authenticated scanning with Netsparker’s verifier agents.

This topic explains how to install, update, and uninstall authentication verifier agents on Windows. Using Linux? See Installing Authentication Verifier Agent on Linux (Debian Distribution). For the RedHat distributions, see Installing Authentication Verifier Agent on Linux (RedHat Distribution).

The Authentication Verifier Agent is an optional component.

Download and install the authentication verifier agent if you need to scan websites with form or basic authentication or OAuth2. The authentication verifier agents also work for the Authentication Profiles, Custom Scripts for Form Authentication, and CyberArk Vault and HashiCorp Vault

Downloading and configuring authentication verifier agent

There are 3 steps in this process:

  1. Downloading an authentication verifier agent
  2. Configuring an authentication verifier agent
  3. Setting an authentication verifier agent as a Windows Service
This instruction is valid for the authentication verifier agents 2.0.2.134 or newer versions. If you have older versions, it is strongly recommended that you delete the older versions and reinstall the newer verifier agents.

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 Netsparker Enterprise Authentication Verifier Server’s HTTP(S) (443) port

Required Access

  • User(s) must have administrator privileges to run the required commands and agent service.

Step 1. Downloading authentication verifier agent

First, you need to download the installation files of the authentication verifier agent and install it on a machine in your internal network.

How to download the authentication verifier agent
  1. Log in to Netsparker Enterprise.
  2. From the main page, go to Agents > Manage Agents > Configure New Agent.
  3. From the Authentication Verifier section, select Windows to download the file.

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

Step 2. Configuring 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:\NC_VerifierAgent. (You can use another location, but this instruction will use this path.)
  3. Open the C:\NC_VerifierAgent\appsettings.json file with your preferred text editor.
  4. 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 Netsparker Enterprise, the Agent Token is displayed in the Configure New Agent window. Copy the value into the apiToken.
  • Do not edit the ApiRootUrl address. If edited, your authentication verifier agent may not work.
  • Whitelist the ApiRootUrl address so that the authentication verifier agents can access the verifier server for the form authentication.
  • Make sure the machine where the authentication verifier agent is installed can access the ApiRootURL.
  1. Save and close the C:\NC_VerifierAgent\appsettings.json file.

Setting proxy in authentication verifier agent

You can set a proxy for the authentication verifier agent in Netsparker Enterprise. Netsparker supports Basic Authentication but not Digest and NTLM. You are required to manually enter proxy settings to the appsettings.json file with your preferred text editor.

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

Field

Description

Proxy Mode

Enter your proxy settings if you want the Agent to use or not to use the proxy. There are three modes:

  • NoProxy: The Agent does not use a proxy even if you configure the server's proxy settings.
  • SystemProxy: The Agent uses the System Proxy that was defined on the server.
  • CustomProxy: The Agent uses Custom Proxy that you define in the appsettings.json file.

Use Default Credentials

Enter true if you authenticate to the proxy via the user that the Agent service is defined.

Username

Enter a username for authentication

Password

Enter a password for authentication

Domain

Enter a domain name

Address

Enter a proxy address. Only IP address or hostname without schema and port is allowed.

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.

Using Proxy Auto-Configuration file

You can use Proxy Automatic Configuration (PAC) to configure your proxy. A PAC file lets you describe the proxy configuration in a file using JavaScript, so you can manage your proxy settings effortlessly.

To use a PAC file, you must set the Proxy Mode to System Proxy in the appsetting.json file.
How to use a Proxy Auto-Configuration file in Windows
  1. Go to Settings > Network & Internet > Proxy.
  2. Turn on the Use setup script toggle.
  3. In the Script address field, enter the PAC file's URL address.

  1. Select Save.

Step 3. Setting authentication verifier agent as a Windows Service

An internal authentication verifier agent should be configured as a Windows service so that it can poll the Netsparker Enterprise servers regularly and can take the verification initiation command from the server.

How to set the authentication verifier agent as a Windows Service
  1. Open a command prompt in Administrator mode and navigate to the agent's folder.
  2. Run the following command to install the Netsparker Enterprise Authentication Verifier Agent as a Windows Service:
  • Netsparker.Cloud.Agent.exe -i
  1. Press Windows+R, type 'services.msc' and press Enter.
  2. Find 'Netsparker Enterprise Scanning Service - [YOUR_AGENT_NAME]'.

  1. Right-click on it and select Properties.
  2. Make sure Startup type is set to Automatic, and select Start.

  1. Select Apply and OK, then exit the Properties window.
Although this service is set to start automatically, it may not restart until the PC is restarted too.

After these steps, the Netsparker Enterprise Authentication Verifier Agent should be running on your network. To view your verifier agents, from the main menu, select Agents > Manage Verifiers.

Any change in the appsetting.json file, such as setting proxy and changing API Token, requires restarting the service so that the changes can take effect.

Updating authentication verifier agents

There are three methods to update your authentication verifier agent.

  • When a new verifier agent version has been published, you can update your Agents manually using installation files on the machines on which agents are installed.
  • You can update agents manually by selecting Update Agent (visible only when the Enable Auto Update is not configured and the new version of the Agent is available). While the update is in progress, the State field will display 'Updating'.
  • You can enable the auto update feature. The target verifier agent updates itself as soon as possible when it’s idle.
How to enable automatic Authentication Verifier Agent updates
  1. From the main menu, select Agents > Manage Verifiers.
  2. Next to the relevant agent, select the Command drop-down, then Enable Auto Update.

Installing multiple authentication verifier agents on Windows

How to install multiple verifier agents on Windows
  1. Copy all files from the default Verifier Agent’s folder to the new Agent’s folder. The path is: C:\Netsparker Enterprise Agent.

For example, if you decided to use Agent-2 as the new Agent name, you could use this command to copy all files to new Agent’s folder:

xcopy "C:\Netsparker Enterprise Agent\*.*" "C:\Netsparker Enterprise Agent-2" /yie

This will create a new directory in C:\Netsparker Enterprise Agent-2 and copy in all the required files.

  1. Locate the new Agent’s folder and open the appsettings.json file with a text editor. Set the new Agent’s name.
  2. Open a command prompt in Windows with Administrator rights and install the new Agent as a Windows Service using these commands:
  • This command changes the current folder to the new Agent’s folder:
cd C:\Netsparker Enterprise Agent-2
  • This command installs the new Agent as a Windows Service:
Netsparker.Cloud.Agent.exe -i

Uninstalling authentication verifier agent

You may uninstall verifier agents.

How to uninstall the authentication verifier agent
  1. Open a command prompt in Administrator mode and navigate to the agent's folder.
  2. Run the following command to stop and delete the Netsparker Enterprise Authentication Verifier Agent as a Windows Service:
sc stop "Netsparker Cloud Scanning Service - YourAgentName"
sc delete "Netsparker Cloud Scanning Service - YourAgentName"

This command will delete the verifier agent service. If required, you can delete the related folder.

Netsparker

Highly accurate, fast & easy-to-use Web Application Security Scanner

Get a demo