Skip to content

Scanner Installation Requirements#

This page lists the conditions that the server and network where you deploy the scanner (Linux scanner or Windows scanner) must meet before deployment. The scanner is a program that runs on a server. It collects information such as the OS packages on the server and uploads it to FutureVuls. For the role of the scanner and the setup procedure, see "Installation". For supported operating systems, see "Supported Environments".

On this page, the server on which the scanner is installed is called the "scanner server", and the server from which configuration information is collected is called the "target server". When the scanner is installed on the server to be scanned itself (Local Scan), the two are the same server.

This page explains the scanner installation requirements when the scan target is connected to the internet. The scanner server is the server that uploads scan results to FutureVuls. If the target server cannot connect to the internet (for example, in a closed network), there are methods such as running a Remote Scan from a scanner server that can connect to the internet. See "Selecting a Scan Method".

Server Requirements#

Server Specifications#

During Scanner Installation#

The following storage capacity is required when installing the scanner on a server.

Scanner Type Size
Linux scanner Approx. 120MB
Windows scanner Approx. 100MB

During Scan Execution#

There are no specific CPU requirements for the scanner to operate.

When running a scan on AlmaLinux, AmazonLinux, Fedora Linux, Oracle Linux, RHEL, RockyLinux operating systems, the repoquery command is executed. Depending on your environment, this process may consume memory in the gigabyte range.

When running a scan on an applicable OS, measure the memory consumed by repoquery with the following procedure and secure that amount of memory before running the scan. On other operating systems, repoquery is not executed, so this measurement is not required.

  1. Run the following command on the target server to start recording the memory consumption.

    while true; do
      date >> ./repoquery.log
      ps aux --sort=-%mem | head -n 10 >> ./repoquery.log
      echo "------------------------" >> ./repoquery.log
      sleep 0.5
    done
    
  2. Open another shell and run the repoquery command that matches the OS condition. You can check whether dnf is available by checking whether you can run dnf --version.

    OS Condition Command
    An OS on which dnf is available (RHEL 8 or later, Fedora, etc.) repoquery --upgrades --qf='%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{REPONAME}' -q
    An OS on which dnf is not available (RHEL 7, etc.) repoquery --all --pkgnarrow=updates --qf='%{NAME} %{EPOCH} %{VERSION} %{RELEASE} %{REPO}'
  3. When the repoquery command finishes, press Ctrl+C in the shell from step 1 to stop the recording.

  4. Open repoquery.log and check the maximum memory usage (the %MEM column and the RSS column) on the repoquery lines.

To avoid executing repoquery, select OFFLINE for VULS_SCAN_OFFLINE on the screen that displays the installation command. However, some information cannot be acquired in offline mode (see "Scanner Settings > Offline Scan").

Network Requirements#

For the connections required during installation and scanning, see Service Connectivity Requirements, then follow Checking Connectivity on this page. If you use a proxy, also see Proxy Configuration.

Notes#

Network Issues and Troubleshooting During Scanner Installation

  • We cannot provide support for issues that arise during scanner installation due to factors within the customer's network environment.
  • Customers are responsible for troubleshooting network issues.

Checking Connectivity#

This section explains how to check, on the scanner server, whether each type of communication listed in the network requirements is possible. Check the following three types of communication in order with the commands below. In environments that go through a proxy, first set the proxy server in the https_proxy environment variable (on Linux, export https_proxy='http://<proxy server>:<port number>'; on Windows, set https_proxy=http://<proxy server>:<port number>). For a proxy that requires authentication, also specify the credentials (for the format, see the Linux configuration example in "Proxy Settings").

Communication to check Destination Normal response
1. DNS query (name resolution) installer.vuls.biz An Address (Addresses) is returned for the Name
2. Installer and scanner binary download installer.vuls.biz Status code 200 is returned
3. Scan result upload auth.vuls.biz
vuls-results-tmp-prd.s3.ap-northeast-1.amazonaws.com
A response is returned (because these are test requests, the status codes are 400 and 403)

1. Check the DNS query.

nslookup installer.vuls.biz

2. Check the download of the Linux installer. The check succeeds if 200 is displayed. The installation output alone does not confirm that the scanner binary was downloaded, so after installation run /opt/vuls-saas/vuls -v and confirm that the scanner version is displayed.

curl -o /dev/null -s -w "%{http_code}\n" https://installer.vuls.biz/vuls-installer.sh

3. Check communication with the upload destinations of scan results. If 400 and 403 are displayed, communication is possible. To confirm that uploads actually succeed, run a scan and check that the results are reflected in FutureVuls.

curl -X POST https://auth.vuls.biz/one-time-auth -d "test" -s -o /dev/null -w "%{http_code}\n"
curl -I https://vuls-results-tmp-prd.s3.ap-northeast-1.amazonaws.com -s -o /dev/null -w "%{http_code}\n"

Run the commands in Command Prompt.

1. Check the DNS query.

nslookup installer.vuls.biz

2. Check the download of the Windows installer. The check succeeds if 200 is displayed. Check whether the scanner binary was downloaded in the output during installation.

curl -o NUL -s -w "%{http_code}\n" https://installer.vuls.biz/vuls-installer-v2.bat

3. Check communication with the upload destinations of scan results. If 400 and 403 are displayed, communication is possible. To confirm that uploads actually succeed, run a scan and check that the results are reflected in FutureVuls.

curl -X POST https://auth.vuls.biz/one-time-auth -d "test" -s -o NUL -w "%{http_code}\n"
curl -I https://vuls-results-tmp-prd.s3.ap-northeast-1.amazonaws.com -s -o NUL -w "%{http_code}\n"

If the name cannot be resolved in check 1, check the settings of the DNS server that the scanner server refers to. If check 3 fails, check whether HTTPS communication to auth.vuls.biz and S3, which are listed in Service Connectivity Requirements, is allowed.

If check 2 displays anything other than 200, the installer could not be downloaded from installer.vuls.biz. If an internet connection is difficult, for example because of a closed network, see the "Servers in a Closed Network" column in "Selecting a Scan Method > Linux Servers" for Linux, or "Selecting a Scan Method > Windows Servers" for Windows.

You can check what the installer does with curl -s https://installer.vuls.biz/vuls-installer.sh (for Windows, vuls-installer-v2.bat).

Checking Response Times#

If responses are slow, you can use the -w option of curl to see which stage of the communication is taking time. On Windows, replace -o /dev/null with -o NUL.

$ curl -X POST https://auth.vuls.biz/one-time-auth -d "test" -w"http_code: %{http_code}\ntime_namelookup: %{time_namelookup}\ntime_connect: %{time_connect}\ntime_appconnect: %{time_appconnect}\ntime_pretransfer: %{time_pretransfer}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" -o /dev/null
http_code: 400
time_namelookup: 0.013480
time_connect: 0.020119
time_appconnect: 0.148787
time_pretransfer: 0.148951
time_starttransfer: 0.212617
time_total: 0.212655
Item Meaning
http_code The HTTP status code returned by the server
time_namelookup Time taken for DNS name resolution (from request start to DNS resolution completion)
time_connect Time taken to establish the TCP connection (from request start to TCP connection completion)
time_appconnect Time taken for the SSL/TLS handshake (from request start to handshake completion)
time_pretransfer Time until the client is ready to send the request to the server (includes TCP connection and SSL/TLS handshake)
time_starttransfer Time until the server returns the first data (from request start to receiving the first byte of the response)
time_total Total time from the start of the request to the completion of the response

[Linux] OS Distribution Repository Data Download#

During a scan, the target server communicates with the package repository of each OS. Check whether the following commands can be run. For supported operating systems, see "Supported Environments".

OS Command run during a scan
Ubuntu, Debian sudo apt-get update
Red Hat-based The repoquery command described in "During Scan Execution"

The list of installed packages is obtained with the following commands. These commands do not cause any communication.

Ubuntu-based#

dpkg-query -W -f="\${binary:Package},\${db:Status-Abbrev},\${Version},\${source:Package},\${source:Version}\n"

Red Hat-based#

rpm -qa --queryformat "%{NAME} %{EPOCHNUM} %{VERSION} %{RELEASE} %{ARCH} %{SOURCERPM} %{MODULARITYLABEL}\n"

On operating systems with major version 7 or earlier, the command is run in a form without %{MODULARITYLABEL}.

[Windows] Windows Update#

During a scan, the Windows scanner communicates with Windows Update (http://update.microsoft.com/microsoftupdate) over the internet. By default, the scanner communicates over the internet. To use WSUS, select LOCAL for VULS_WIN_UPDATE_SRC when displaying the installation command (see "Scanner Installation"). To change the source after installation, see "Scanning Windows under WSUS".

Troubleshooting#

For common causes and solutions, refer to the following pages.