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 Invicti Enterprise.
- You can download and install an internal verifier agent to perform the authentication, so you can make sure that your scan is authenticated.
For further information about the internal authentication verifier, see Streamline authenticated scanning with Invicti’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, CyberArk Vault, HashiCorp Vault, and AzureKey Vault.
Downloading and configuring authentication verifier agent
There are 3 steps in this process:
- Downloading an authentication verifier agent
- Configuring an authentication verifier agent
- Setting an authentication verifier agent as a Windows Service
This instruction is valid for the authentication verifier agents 18.104.22.168 or newer versions. If you have older versions, it is strongly recommended that you delete the older versions and reinstall the newer verifier agents.
- Windows Server 2016 or above (Windows Server 2019 recommended)
- .NET Core 3.1
- 1.4 GHz Processor (2.0 GHz or faster recommended)
- 4 GB RAM or higher recommended
- 10 GB Free Disk space for each internal agent
If you select TLS 1.3 as a security protocol from the Scan Policy, make sure you have Windows 10 v1903 or higher versions.
- Agent should be configured so that it can reach your internal website through HTTP/HTTPS
- Agent needs to be able to access the Invicti Enterprise Application Server’s HTTP(S) (443) port
- Allowlist the following addresses according to your region:
- US region: 22.214.171.124, us-avservice.netsparkercloud.com
- EU region: 126.96.36.199, eu-avservice.netsparker.cloud
- CA region: 188.8.131.52, ca-avservice.netsparker.cloud
- 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
- Log in to Invicti Enterprise.
- From the main page, go to Agents > Manage Agents > Configure New Agent.
- 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
- Navigate to the folder you downloaded the zip file.
- Extract the contents of the zip file to C:\NC_VerifierAgent. (You can use another location, but this instruction will use this path.)
- Open the C:\NC_VerifierAgent\appsettings.json file with your preferred text editor.
- 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 Invicti 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.
- 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 Invicti Enterprise. Invicti 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.
|Proxy Mode||Enter your proxy settings if you want the Agent to use or not to use the proxy. There are three modes:
|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
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
- Go to Settings > Network & Internet > Proxy.
- Turn on the Use setup script toggle.
- In the Script address field, enter the PAC file’s URL address.
- 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 Invicti Enterprise servers regularly and can take the verification initiation command from the server.
How to set the authentication verifier agent as a Windows Service
- Open a command prompt in Administrator mode and navigate to the agent’s folder.
- Run the following command to install the Invicti Enterprise Authentication Verifier Agent as a Windows Service:
- Press Windows+R, type ‘services.msc’ and press Enter.
- Find ‘Netsparker Enterprise Scanning Service – [YOUR_AGENT_NAME]’.
- Right-click on it and select Properties.
- Make sure Startup type is set to Automatic, and select Start.
- 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 Invicti 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
- From the main menu, select Agents > Manage Verifiers.
- 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
- Copy all files from the default Verifier Agent’s folder to the new Agent’s folder. The path is: C:\Invicti 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:\Invicti Enterprise Agent\*.*" "C:\Invicti Enterprise Agent-2" /yie
This will create a new directory in C:\Invicti Enterprise Agent-2 and copy in all the required files.
- Locate the new Agent’s folder and open the appsettings.json file with a text editor. Set the new Agent’s name.
- 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:\Invicti Enterprise Agent-2
- This command installs the new Agent as a Windows Service:
Uninstalling authentication verifier agent
You may uninstall verifier agents.
How to uninstall the authentication verifier agent
- Open a command prompt in Administrator mode and navigate to the agent’s folder.
- Run the following command to stop and delete the Invicti 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.