The installation and setup guide of Nemesida WAF Scanner module, which is intended to detect vulnerabilities in the protected web application.

Nemesida WAF Scanner setup

The Nemesida WAF Scanner module is designed to detect web vulnerabilities in protected web applications.

Before installing and using the Nemesida WAF Scanner read the manuals carefully.

During its work the module makes requests to the to get information about vulnerabilities by Nemesida Vulnerability API and transmits the information about detected vulnerabilities into Cabinet by Nemesida WAF API.

Information transmitted by the Nemesida WAF Scanner when accessing the Nemesida Vulnerability API can be transferred to third-parties vulnerability databases.

Module installation on the server:

# apt install apt-transport-https
Debian 9
# echo "deb stretch non-free" > /etc/apt/sources.list.d/NemesidaWAF.list
Debian 10
# echo "deb buster non-free" > /etc/apt/sources.list.d/NemesidaWAF.list
# wget -O- | apt-key add -
# apt update && apt upgrade
# apt install python3-pip python3-venv python3-dev postgresql-server-dev-all
# apt install nwaf-scanner
# apt install apt-transport-https
# echo "deb [arch=amd64] xenial non-free" > /etc/apt/sources.list.d/NemesidaWAF.list
# wget -O- | apt-key add -

Connect Python 3.6 reposirory:

# apt install software-properties-common
# add-apt-repository ppa:deadsnakes/ppa

Install the packages:

# apt update && apt upgrade
# apt install python3.6 python3.6-venv python3.6-dev postgresql-server-dev-all gcc
# curl | python3.6
# echo "deb [arch=amd64] bionic non-free" > /etc/apt/sources.list.d/NemesidaWAF.list
# wget -O- | apt-key add -
# apt update && apt upgrade
# apt install python3-pip python3-venv python3-dev postgresql-server-dev-all
# apt install nwaf-scanner
Configure the SELinux policy or deactivate it with the command:

# setenforce 0

then bring the file /etc/selinux/config to the form:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
CentOS 7
Connect repositories and install necessary dependencies:

# rpm -Uvh
# rpm -Uvh
# yum update
# yum install python36 python36-pip python36-devel postgresql11-devel gcc
# yum install nwaf-scanner
CentOS 8
Connect additional repositories and install the necessary dependencies:

# rpm -Uvh
# dnf update
# dnf install python3 python3-pip python3-devel gcc
# dnf install nwaf-scanner

Add the necessary changes to the main configuration file /opt/nws/main.conf to set up the module.

main.conf settings
Default parameters
Parameter description

Main section.
Parameter for specifying the license key of the Nemesida WAF Scanner module. If the parameter is not specified, the module will try to use the license key from the /etc/nginx/nwaf/conf/global/nwaf.conf file. In case the license key is not detected or is invalid, the module launch will end with the corresponding error.

sys_proxy is the proxy server address for accessing to (checking of the license key, accessing with Nemesida Vulnerability API). Example:

api_proxy is the proxy server address for accessing to Nemesida WAF API.

Configure of API address for sending the scanning results into Nemesida WAF API. Example: api_host=http://localhost:8080.
The activation/deactivation parameter for displaying error information in to console.

Check vulnerabilities using Personal Account Nemesida WAF.
The activation/deactivation parameter.
Parameters of connecting to Personal Account Nemesida WAF database.

For setting scanning parameters in directory /opt/nws/conf/ create file(s) with extension conf. For every web application it is necessary to create individual configuration file.

Configuration file example.conf example
Default parameters
Parameter description

Main section.
Web application address. For example: target =
Connection activation/deactivation with using SSL/TLS request to the web application. For example: ssl = false.
Proxy server address for requests to the web application. For example: scan_proxy =
File path uri.list, contains URI List, which was generated by Nemesidia AI MLC. For example: uri_list = /opt/mlc/bf/uri.list.

Authorization section.
Web application page address for the authorization. For example: auth_uri = /login.
User’s name and password for authorization. For example: login = user and password = pass.

Other information

During the Nemesida WAF Scanner operation the information about errors is contained in the run-time journal of the module /var/log/nwaf/nws.log.