Skip to content

Scanner Settings#

You specify the scanner's behavior in the configuration file (config.toml) on the scanner server. If you use the default settings from installation as they are, you do not need to configure anything on this page. Refer to this page to change the scan mode or the scan targets. To check the scanner version and update the scanner, see "Checking the Version and Updating".

Scanner Configuration File
Linux scanner /opt/vuls-saas/config.toml
Windows scanner C:\Program Files\vuls-saas\config.toml
Trivy scanner (standard version) /opt/vuls-trivy-saas/config.toml

The scanner server is the server on which the scanner is installed. For the differences between the standard and lightweight versions of the Trivy scanner, see "Installation > Installing the Trivy Scanner".

After you edit the configuration file, follow the steps in "Verifying the Settings" to verify the settings and run a scan manually.

Before You Change the Settings#

Before you edit the configuration file, check the following three points.

Settings Made in the UI and Settings Made in config.toml#

The FutureVuls scanner is based on Vuls, an OSS vulnerability scanner. While OSS Vuls allows you to also write settings related to vulnerability detection in config.toml, FutureVuls ignores them even if they are written there. The configuration location for each type of setting is as follows.

Type of Setting Configuration Location
Settings for the stage in which the scanner collects configuration information (the list of software on the server), such as the connection destination, the scan mode, and the scan targets config.toml
Settings related to vulnerability detection, such as registering CPEs and excluded CVEs or packages The FutureVuls UI

Server UUID#

FutureVuls uses a UUID to uniquely identify each server. When the UUID is assigned and where it is stored depend on the type of scanner.

Scanner When the UUID Is Issued Storage Location
Linux scanner
Windows scanner
Upon the first upload of scan results. The same UUID is used from then on config.toml
Trivy scanner (standard version) When the installation command adds a scan target to config.toml config.toml
Trivy scanner (lightweight version) Upon command execution Not stored. To update a registered target, use the command displayed from Update Configuration Information on the server details

If you change the UUID of a server that has already been scanned, FutureVuls will recognize it as a different server. This will be treated as a new server addition and will affect billing calculations, so be careful when changing UUIDs. This applies when you rewrite the UUID in config.toml or delete the UUID entry. With the Linux scanner and the Windows scanner, if you delete the UUID entry, a new UUID is issued at the next upload. With the standard version of the Trivy scanner, the UUID is not reissued, and the upload fails.

Automatic Rewriting of config.toml#

With the Linux scanner and the Windows scanner, if scan results are uploaded while the UUID is not yet set, config.toml is automatically rewritten to write the UUID. This normally happens at the first upload and at the first upload after you add a scan target.

During this rewrite, all comments are deleted, and the original spacing and order may not be preserved.

The previous version of the settings is saved as config.toml.bak, but earlier versions are deleted.

Configuration on Linux#

The Linux scanner lets you configure the following items. You can specify each of them on the screen that displays the installation command (Group Settings → Scanner). The values you specify on the screen are embedded in the installation command under the variable names in the table.

Setting Variable Name at Installation Description Change Method After Installation
Scan Mode VULS_SCAN_MODE Controls whether the scan requires root privileges scanMode in config.toml ("Scan Mode" on this page)
Offline Scan VULS_SCAN_OFFLINE Whether an internet connection is required during the scan scanMode in config.toml ("Offline Scan" on this page). Write the value alongside the scan mode in the same scanMode
Automatic Updates of the Scanner Binary AUTO_REFRESH_BINARY Whether to update the scanner binary during each scan Version Checks & Updates > Automatic Updates During Each Scan
Proxy Settings VULS_PROXY Proxy server settings for environments behind a proxy Proxy Settings

For an example of config.toml, see "Local Linux Scans > Scan Configuration Location".

Scan Mode#

Select whether root privileges are required to run the scan. We recommend scanning in fast-root mode, which can acquire information useful for deciding whether a vulnerability needs to be addressed (triage), such as the status of running processes.

Scan Mode Description
fast-root (default) A mode that runs some commands with root privileges (sudo) during the scan
fast A mode with limitations on the information that can be acquired, but that does not use root privileges (on Oracle Linux, some commands are run with sudo even in fast mode)

In fast mode and offline mode (see "Offline Scan"), the following information cannot be acquired. The offline mode column shows typical examples for when offline is combined with fast-root. When fast and offline are combined, the limitations in both columns apply.

Information That Cannot Be Acquired UI Location fast Mode offline Mode
The running status of processes related to packages and the status of listening ports "Running Processes" column of the "Software tab" Cannot be acquired Can be acquired
Whether a process restart is required "Process Restart Required" column of the Software tab Cannot be acquired Cannot be acquired (can be acquired on Debian, Ubuntu, and Amazon Linux)
The latest version of packages "Update" column of "Related Software" on the Task Details tab Cannot be acquired (can be acquired on some OSes, such as AlmaLinux and Rocky Linux) Cannot be acquired

You specify the scan mode in scanMode in config.toml.

For fast-root mode, write the setting as follows.

scanMode = ["fast-root"]

For fast mode, write the setting as follows.

scanMode = ["fast"]

To switch the scan mode after installation, you need to change the sudoers settings in addition to changing scanMode. Perform the work in the following order.

Direction of Change Scan Method Procedure
fast → fast-root Local Scan 1. Read "Version Checks & Updates > Notes on Reinstallation"
2. Re-run the installation command with FAST-ROOT selected in the UI (sudoers is configured)
3. The existing config.toml is kept even after reinstallation, so rewrite "fast" in scanMode to "fast-root"
fast → fast-root Remote Scan 1. Follow "Remote Scan > Preparation on the Target Server" and grant the required sudo privileges to the SSH connection user on the target server (reinstalling on the scanner server does not change sudoers on the target server)
2. In config.toml on the scanner server, rewrite "fast" in scanMode to "fast-root"
fast-root → fast Local Scan 1. In config.toml, rewrite "fast-root" in scanMode to "fast"
2. /etc/sudoers.d/vuls-saas on the scanner server is no longer necessary, so delete it
fast-root → fast Remote Scan 1. In config.toml on the scanner server, rewrite "fast-root" in scanMode to "fast"
2. On the target server, the sudo privileges granted to the SSH connection user are no longer necessary, so remove them

If you also use "offline", keep it (example: ["fast", "offline"] → ["fast-root", "offline"]).

Even if you change to fast mode, keep the sudoers settings in the following cases.

Offline Scan#

By specifying offline, you can scan even in environments where the target server cannot connect to the internet. The scanner does not perform processing that requires queries to the internet, such as checking for updatable packages. Scan results are uploaded to FutureVuls even when you specify offline. Therefore, communication from the scanner server to FutureVuls is required (see "Installation Requirements > Network Requirements"). This is supported on some OSes. For details on supported systems, see the "Vuls documentation (offline option of Fast Scan)".

To use offline mode, add "offline" to scanMode in config.toml, the same setting as the scan mode, as follows (the same applies to fast mode).

scanMode = ["fast-root", "offline"]

For the information that cannot be acquired in offline mode, see the table in "Scan Mode".

Scan Modules#

You can select the processes the scanner runs to suit your environment and purpose.

Example Purpose scanModules Value
Detect WordPress vulnerabilities, but not OS package vulnerabilities ["wordpress"]
Detect only vulnerabilities in libraries deployed on the server ["lockfile"]
Do not run the port connection check ["ospkg", "wordpress", "lockfile"]

Write scanModules inside the definition for each scan target ([servers.<server name>]) in config.toml (for an example, see "WordPress Scan > Scanning Only WordPress"). You can specify the following values.

scanModules = ["ospkg", "wordpress", "lockfile", "port"]
Name Description
ospkg Collects the list of OS packages
lockfile Collects lockfiles for programming language libraries (How to configure config.toml for lockfiles)
wordpress Collects the list of WordPress Core, Plugins, and Themes (How to configure config.toml for WordPress)
port Checks the connection from the scanner to the ports the server is listening on

By default, scanModules is omitted, and in this case, all four modules (ospkg, wordpress, lockfile, and port) are enabled. However, scans for wordpress and lockfile are only performed if the corresponding settings (e.g., WordPress configuration path, lockfile path) are specified in config.toml. For how to configure the settings, see the links in the table above.

Configuration on Windows#

The Windows scanner settings are explained on the following pages, organized by topic.

Setting Configuration Location See
Windows Update source (WSUS) config.toml Scanning Windows under WSUS
Narrowing down the information to upload config.toml Customizing Uploaded Information
Lockfile scan config.toml Windows Local Scan > Lockfile Scan
Automatic Updates of the Scanner Binary batch_config.toml Version Checks & Updates > Automatic Updates During Each Scan
Proxy Settings batch_config.toml Proxy Settings

For an example of config.toml, see "Windows Local Scan > Scan Configuration File Location".

Configuration with Trivy#

With the standard version of the Trivy scanner, you can specify the following options in the configuration file /opt/vuls-trivy-saas/config.toml.

For Container Images#

Item Description Required
Inside [] images.<name> (the value of <name> does not need to match <imageName>:<tag>) ✅
imageName The name of the container image to be scanned ✅
tag The tag of the container image to be scanned ✅
uuid A UUID generated by uuidgen or similar tools ✅

For Libraries#

Item Description Required
Inside [] libraries.<name> (the value of <name> does not need to match targetPath) ✅
targetPath The path to the target directory or lockfile ✅
uuid A UUID generated by uuidgen or similar tools ✅

Example of config.toml#

[saas]
  GroupID = XXX
  Token = "xxxxxxxx"
  Proxy = "http://name:pass@proxy:port"

[scanner]
  refreshScanner = true

  [images.myApp:latest]
    imageName = "myApp"
    tag = "latest"
    uuid = "xxxxxxxx"

  [libraries./xxx/xxx]
    targetPath = "/xxx/xxx"
    uuid = "xxxxxxxx"

Notes on Library Scanning#

Behavior when multiple lockfiles exist under a directory#

If multiple lockfiles exist under the directory specified by targetPath, those lockfiles will be registered together as a single server.

To manage each lockfile individually, specify the path for each lockfile separately in targetPath as shown below. Also, specify a different UUID for each lockfile.

[libraries.single_react_lib]
    targetPath = "/path/to/package-lock.json"
    uuid = "xxx"
[libraries.single_rails_lib]
    targetPath = "/path/to/Gemfile.lock"
    uuid = "yyy"

Verifying the Settings#

Verifying the config.toml Settings#

If you have edited the configuration file (config.toml), you can verify that it is configured correctly with the vuls configtest command (this applies to the Linux scanner and the Windows scanner). For Remote Scan as well, run the vuls configtest command on the scanner server.

For the Linux scanner, run the following commands.

sudo su - vuls-saas
cd /opt/vuls-saas
./vuls configtest

For the Windows scanner, start Command Prompt with administrator privileges and run the following commands.

cd /d "C:\Program Files\vuls-saas"
vuls.exe configtest

The Trivy scanner does not use this command.

After changing the settings, run the scanner manually and confirm that the results are reflected in FutureVuls. For the procedure, see "Scanner Execution and Scheduling".

Managing Scanner Tokens#

A scanner token is a token used for authentication when the scanner uploads scan results. It is embedded in the installation command and, after installation, is written in config.toml.

The scan features use the following tokens. Even when the environment variable name is the same FVULS_TOKEN, the required permission differs by feature.

Token Required Permission Where to Issue or Register Features That Use the Token
Scanner token Scan Issue it in Group Settings → Token Linux scanner, Windows scanner, and Trivy scanner (Scanner Installation), VULS_SAAS_TOKEN in CI/CD (CI/CD Integration), and FVULS_TOKEN when scanning a remote repository with Trivy (Dependency Library Scan)
FutureVuls API token "Update" API permission Issue it in Group Settings → Token (see "Creating a FutureVuls API Token") FVULS_TOKEN for automatically updating lockfiles with GitHub Actions (CI/CD Integration), sending C/C++ libraries (C/C++ Library Scan), and future-vuls add-cpe (Scanning Network Devices)
GitHub token Read access to Contents, Dependabot alerts, and Metadata (repo for classic tokens) Issue it in GitHub and register it in Group Settings → Advanced Settings → External Integration GitHub Integration (Dependabot)
WPScan API Token - Issue it at wpscan.com and register it in Group Settings → Advanced Settings → External Integration WordPress Scan

Scanner tokens can be added or deleted from Group Settings → Token. To create a new scanner token, create a token with scan permissions from Group Settings → Token → Add a new token. Then, in the dropdown menu in Group Settings → Scanner, select the newly created scanner token and display the installation command.

To switch the scanner token used by an installed scanner, re-running the installation command does not switch it, because reinstallation keeps the existing config.toml (see "Notes on Reinstallation"). Work in the following order.

  1. In the scanner configuration file config.toml (/opt/vuls-trivy-saas/config.toml for the standard version of the Trivy scanner), replace Token under [saas] with the new scanner token. Specify a scanner token issued in the same group as GroupID under [saas]. If you have split the configuration file by group for Remote Scan, update only the configuration files that contain the old scanner token, each with a new scanner token issued in the group of that file's GroupID.
  2. Run the scanner manually and confirm that the scan results are reflected in FutureVuls (see "Scanner Execution and Scheduling"). If you have split the configuration file, run it with the same -config and -results-dir as the scheduled run.
  3. After confirming that no scanner uses the old scanner token, delete the old scanner token.

Editing and deleting scanner tokens follows the same process as "FutureVuls API Token Management".

Troubleshooting#

Check the common causes and fixes on the following pages.