Dependency Library Scan#
These methods detect and manage vulnerabilities in the libraries that an application depends on (language libraries). Several methods are available, and you select one according to where the libraries are located and how you operate them. You can also combine multiple methods. On other pages, this is sometimes referred to as "Library Scan" or "Application Scan".
| Method | When to use | Registration destination | Configuration update |
|---|---|---|---|
| Lockfile Paste Scan | You register a Lockfile (a file that records dependency libraries and their versions) from the UI | The Application tab of a registered server | You update the Lockfile in the UI. For how to automate this with GitHub Actions, see "CI/CD Integration > How to Automatically Update a Lockfile on Push with GitHub Actions" |
| Application SBOM Import | You register an SBOM file from the UI | The SBOM tab of a registered server | You update the SBOM |
| Scan a path on the filesystem using Trivy | You scan a directory on a server with Trivy. This corresponds to Add Server → Scan Libraries on File System in the UI |
When you upload the scan results, they are registered as a server | The standard version updates automatically on a schedule; with the lightweight version, you run a command (see Scan Interval and Mode Comparison) |
| Scan libraries on a remote repository with trivy | You scan a GitHub or GitLab repository with Trivy | When you upload the scan results, they are registered as a server | You run a command, specifying the same UUID as the registered server |
| Scan by specifying a Lockfile with Vuls Scanner | You also scan Lockfiles on a server that uses Server OS Scan | The server registered by Server OS Scan | The scanner automatically updates once a day |
| CI/CD Integration | You run Trivy within a CI/CD pipeline | When you upload the scan results, they are registered as a server | Updated each time the pipeline runs |
| GitHub Integration (Dependabot) | You import the results detected by GitHub Dependabot | A registered server | Retrieved when the server is scanned |
| Amazon Inspector Integration | You import the dependency libraries of AWS Lambda functions from Amazon Inspector results | A pseudo server | Retrieved when a periodic automatic scan or manual scan runs |
For C/C++ libraries, see "C/C++ Library Scan (Identification)".
For the methods whose registration destination is a registered server, you need to register the server first. If you manage only dependency libraries and have no server to use as the registration destination, create a pseudo server and use it as the registration destination. A pseudo server is a server with no physical entity that you can create without installing a scanner, and you create it from Add Server → Add Pseudo Server on the Server / Product tab. Pseudo servers are subject to charges just like other servers.
Many vulnerabilities in dependent libraries do not have a CVE ID assigned, but FutureVuls can detect these non-CVE vulnerabilities as well.
The supported languages and file types and the detection capabilities differ by detection method. Which method to select depends on where the libraries are located (such as a Lockfile at hand, a directory on a server, or a repository). For the selection criteria and the characteristics of each method, see "Selecting a Scan Method".
Lockfile Paste Scan#
This method involves pasting the contents of a Lockfile into your browser to perform a scan.
A registered Lockfile is matched against the latest vulnerability information each time the registration destination server is scanned (periodic automatic scan, manual scan, and so on), and detected vulnerabilities are registered as tasks.
If you upgrade a dependent library and the Lockfile's content is updated, please update the Lockfile content on the FutureVuls screen. Tasks for vulnerabilities that are no longer detected by the scan after the update are automatically updated to the PATCH_APPLIED status.
For scannable Lockfiles and binaries, please refer to "Supported Environments".
-
Select the registration destination server on the Server / Product tab and click "Add lockfile" in the Application tab.

-
In the "Add Application Library" dialog, name the Lockfile, select its type, register the Lockfile's content, and submit.
Register the Lockfile's content using one of the following tabs:
- Upload File: Upload the Lockfile from "Select File".
-
Paste Import: Paste the Lockfile's content into "File Content".

Under "Include devDependencies", choose whether to include development dependencies (devDependencies) in the scan from the following three options:
- Include in the target: Development dependencies are also included in the scan, based on the determination criteria for each lockfile format.
- Do not include in the target: Development dependencies are excluded from the scan.
-
Not set (Follow server settings): Follows the "Scan including devDependencies" setting in the server details (default).
The setting on the Lockfile side takes precedence over the setting on the server side. The handling for each combination is as follows.
"Include devDependencies" of the Lockfile Server setting enabled Server setting disabled Include in the target Development dependencies are also detected Development dependencies are also detected Do not include in the target Development dependencies are not detected Development dependencies are not detected Not set (Follow server settings) Development dependencies are also detected Development dependencies are not detected For the criteria for identifying dev dependencies for each lockfile, please refer to "Criteria for Identifying Development Dependencies".
-
Software is registered and vulnerabilities are detected during the next scan of the registration destination server. To detect them immediately, run a "manual scan" from the server details. When the next scan runs depends on how the registration destination server was registered and on your plan (see "Target Servers of Periodic Automatic Scans").

About Development Dependencies (devDependencies)
Software derived from development dependencies will display a [DevDependency] badge in the software list, allowing you to distinguish it from production dependencies.
Application SBOM Import#
This method involves registering an SBOM (a file that lists the names and versions of the components that make up software) from the UI to perform a scan.
Similar to the Lockfile Paste Scan, you can register dependent libraries contained in an SBOM to a registered server. Applications and libraries included in the SBOM are registered at the same time the SBOM is added, and vulnerabilities will be detected during the next scan.
- Supported SBOM tools are listed in "Importing SBOM Files > Generation Tools".
- For supported dependent libraries, please refer to "Application SBOM Import".
- Application SBOM files registered before the "2024-10-21 release" will be integrated into the server's SBOM file only if the server type is SBOM.
For details on how to register an application's SBOM from the FutureVuls console, please refer to the link below.
*If you need help adding an SBOM or the addition fails, refer to the "Dependency Library Scan FAQ".
Scan a path on the filesystem using Trivy#
"aquasecurity/trivy" is an OSS tool capable of detecting vulnerabilities in application-dependent libraries. It can automatically detect application-dependent libraries stored under a specified directory and scan them for vulnerabilities. FutureVuls can import Trivy scan results, allowing you to manage application library vulnerabilities on FutureVuls.
You specify the directory to be scanned by entering its path on the screen at registration. We recommend specifying the path as an absolute path.
Trivy scans for vulnerabilities based on various language Lockfiles and binaries like jar files. For details on supported languages and package ecosystems, please refer to the Filesystem and Rootfs columns in "Trivy Supported languages".
For scanning libraries on a filesystem with Trivy, the following two patterns are available:
Install Trivy in a local environment to scan#
Run Trivy locally to scan application libraries and upload the results to FutureVuls. For the differences between the standard and lightweight versions and how to select one, see Installing the Trivy Scanner.
| Item | Description | Standard Version | Lightweight Version |
|---|---|---|---|
| Supported Environments | Environments where setup is possible | Supported environments for Scans Specifying a Filesystem Path with Trivy | Linux on the x86_64 or aarch64 CPU architecture (see "Installing the Trivy Scanner") |
Scan new dependent libraries#
To scan a new application library and register it with FutureVuls, follow these steps.
-
From the
Add Serverbutton on theServer / Producttab, open the dialog and selectScan Libraries on File System.
-
Select a Scanner Token and enter the absolute path of the directory to be scanned.
A scanner token is a token that the scanner uses to upload scan results to FutureVuls. If there are no options to select, add one by referring to "Managing Scanner Tokens".
If no path is specified, the root directory will be automatically selected, and all application libraries on the filesystem will be scanned.
-
If you are behind a proxy, enter the proxy server to use.
- If you are using the lightweight version, turn on the
Use light versionswitch. The lightweight version usesvuls-trivy-scandirectly under the directory in which you run the command as its working directory, and deletes it, including the files in it, when it exits normally. Run the command in a directory that does not containvuls-trivy-scan(see "Installing the Trivy Scanner"). - Copy the command displayed at the bottom of the screen, paste it into the environment where the directory to be scanned is located, and execute it.
- Confirm that the scanned directory has been added to the
Server / Producttab of the target group in FutureVuls.When you install the standard version for the first time, it may take 5-10 minutes to appear in FutureVuls. To run a scan immediately after installation, execute the following command:
/opt/vuls-trivy-saas/vuls-trivy-saas.sh &> /opt/vuls-trivy-saas/vuls-trivy.log
The registration is now complete. If the scan results do not appear, please refer to "Trivy scan results do not appear in FutureVuls".
Update configuration information for registered libraries#
- Update vulnerability information based on registered configuration information
To update vulnerability information based on the configuration of application libraries already registered in FutureVuls, run a "Manual Scan" in FutureVuls.
- Reflect changes in application library configuration information in FutureVuls
- For the standard version:
- No action is required as the scanner starts automatically on a schedule to scan the target directory.
- To start the scanner immediately, execute the following command as the
rootuser or thevuls-trivy-saasuser:/opt/vuls-trivy-saas/vuls-trivy-saas.sh &> /opt/vuls-trivy-saas/vuls-trivy.log
-
For the lightweight version:
- Click on the target server in the
Server / Producttab to open the server details page. -
Open the Settings sub-tab on the Description tab, then click the
Update Configuration Informationbutton to open the dialog.
-
Select a Scanner Token and enter the absolute path of the directory to be scanned.
- If you are behind a proxy, enter the proxy server to use.
- Copy the command displayed at the bottom of the screen, paste it into the environment where the directory to be scanned is located, and execute it. Run it in a directory that does not contain
vuls-trivy-scan(see the description in step 4 of the new registration steps).
- Click on the target server in the
How to configure a Trivy scan#
The configuration methods for Trivy scans are described in "Scanner Settings > Configuration with Trivy". To manually add libraries to be scanned, also refer to that page.
Scan for library vulnerabilities on git push#
You can scan application libraries with Trivy on each Git push and upload the results to FutureVuls. For a sample GitHub Actions workflow and the environment variables it uses, see "CI/CD Integration > Scanning for Library Vulnerabilities on git push".
Note: Trivy scans do not include development dependency packages#
By default, Trivy scans exclude dependencies that Trivy identifies as development dependencies from detection (e.g., "dev": true in package-lock.json, the packages-dev section in composer.lock, etc.).
After scanning and registering a server, you can enable scanning for development dependencies with "Scan including devDependencies" on the server details screen. When enabled, development dependencies will be included starting from the next scan. Software derived from development dependencies will display a [DevDependency] badge. For the criteria for identifying dev dependencies for each lockfile, and for the dev identification that Trivy performs by reading surrounding files, please refer to "Criteria for Identifying Development Dependencies".
About scanner version
To retrieve development dependencies with a Trivy scan, please use scanner version v0.38.0 or higher.
How to automatically update Lockfiles on Push with GitHub Actions#
You can use GitHub Actions to automatically update a Lockfile registered with "Lockfile Paste Scan" on git push. For the setup and a sample workflow, see "CI/CD Integration > How to Automatically Update a Lockfile on Push with GitHub Actions".
Scan libraries on a remote repository with trivy#
By integrating with trivy's repository scan, you can detect vulnerabilities in language libraries on GitHub/GitLab and manage them on FutureVuls. This allows you to use library scanning even if the target library files do not exist in the local environment where trivy is installed.
Please note that fewer languages are supported compared to "Trivy scan for libraries on a local filesystem".
For details on supported languages and package ecosystems, please refer to the Repository column in "Trivy Supported languages".
Scan Method#
New Registration#
This method has no dialog for obtaining a command from the UI. Install the following three tools in your work environment and run them in order.
| Tool | Input | Processing | Output / destination | Source |
|---|---|---|---|---|
| trivy | Repository URL | Detects the dependency libraries in the repository | JSON in Trivy format | https://github.com/aquasecurity/trivy/releases/ |
| trivy-to-vuls | JSON in Trivy format | Converts it into scan results in Vuls format | JSON in Vuls format | https://github.com/future-architect/vuls/releases |
| future-vuls | JSON in Vuls format | Uploads it to FutureVuls | FutureVuls (the server with the specified UUID) | https://github.com/future-architect/vuls/releases |
Installation command examples
Install trivy
curl -s https://api.github.com/repos/aquasecurity/trivy/releases/latest | \
grep "browser_download_url.*_Linux-64bit.tar.gz" | \
cut -d : -f 2-3 | \
xargs wget
tar zxvf trivy_*.tar.gz
Install trivy-to-vuls
curl -s https://api.github.com/repos/future-architect/vuls/releases/latest | \
grep "browser_download_url.*trivy-to-vuls.*_linux_amd64.tar.gz" | \
cut -d : -f 2-3 | \
xargs wget
tar zxvf trivy-to-vuls*.tar.gz
Install future-vuls
curl -s https://api.github.com/repos/future-architect/vuls/releases/latest | \
grep "browser_download_url.*future-vuls.*_linux_amd64.tar.gz" | \
cut -d : -f 2-3 | \
xargs wget
tar zxvf future-vuls*.tar.gz
Install trivy
curl -s https://api.github.com/repos/aquasecurity/trivy/releases/latest | \
grep "browser_download_url.*_macOS-ARM64.tar.gz" | \
cut -d : -f 2-3 | \
xargs wget
tar zxvf trivy_*.tar.gz
Install trivy-to-vuls
curl -s https://api.github.com/repos/future-architect/vuls/releases/latest | \
grep "browser_download_url.*trivy-to-vuls.*_darwin_arm64.tar.gz" | \
cut -d : -f 2-3 | \
xargs wget
tar zxvf trivy-to-vuls*.tar.gz
Install future-vuls
curl -s https://api.github.com/repos/future-architect/vuls/releases/latest | \
grep "browser_download_url.*future-vuls.*_darwin_arm64.tar.gz" | \
cut -d : -f 2-3 | \
xargs wget
tar zxvf future-vuls*.tar.gz
Next, set the following environment variables.
export FVULS_GROUP_ID=xxx
export FVULS_TOKEN=xxx
export FVULS_SERVER_UUID=`uuidgen`
export REPOSITORY_URL=https://xxx.xxxxx/xxx
If you are in a proxy environment, also set the proxy server to use.
export https_proxy=http://name:pass@proxy:port
Depending on the repository to be scanned, run one of the following.
export GITHUB_TOKEN=xxxxxxxx
If GITHUB_TOKEN is set, the GitLab token is not used, so unset it first.
unset GITHUB_TOKEN
export GITLAB_TOKEN=xxxxxxxx
| Environment Variable | Description | Details |
|---|---|---|
| FVULS_GROUP_ID | Group ID | Open group settings and check from the URL.https://console.vuls.biz/org/xxx/group/[here]/setting/profile |
| FVULS_TOKEN | Token | Open group settings > tokens and select a token with scan permissions. |
| FVULS_SERVER_UUID | UUID | Create one arbitrarily with a command such as uuidgen. It is used to identify the server on FutureVuls. |
| REPOSITORY_URL | Repository URL | The URL of the repository to be scanned |
| GITHUB_TOKEN | GitHub Token | A GitHub token with read permissions for the repository to be scanned |
| GITLAB_TOKEN | GitLab Token | A GitLab token with read permissions for the repository to be scanned |
Finally, scan the repository and upload to FutureVuls.
./trivy repo -q -f json --list-all-pkgs ${REPOSITORY_URL} | \
./trivy-to-vuls parse --stdin | \
./future-vuls upload --stdin --group-id ${FVULS_GROUP_ID} --token ${FVULS_TOKEN} --uuid ${FVULS_SERVER_UUID}
In FutureVuls, you can confirm that a new server has been registered and vulnerabilities in the language libraries have been detected.
Updating library files#
To update a library that has already been registered once, set the UUID of the target server in the environment variable FVULS_SERVER_UUID before scanning and uploading. If you specify a UUID different from the one used at new registration, it is registered as a separate server.

# Installation of trivy, trivy-to-vuls, future-vuls is omitted
export FVULS_GROUP_ID=xxx
export FVULS_TOKEN=xxx
export FVULS_SERVER_UUID=xxx
export REPOSITORY_URL=https://xxx.xxxxx/xxx
# Set GITHUB_TOKEN or GITLAB_TOKEN depending on the repository to be scanned, as in the initial registration
# Example of saving the scan results to a file (results.json) and then converting them
./trivy repo -q -f json -o ./results.json --list-all-pkgs ${REPOSITORY_URL}
./trivy-to-vuls parse -d ./ -f results.json | \
./future-vuls upload --stdin --group-id ${FVULS_GROUP_ID} --token ${FVULS_TOKEN} --uuid ${FVULS_SERVER_UUID}
Scan by specifying a Lockfile with Vuls Scanner#
This method scans for dependent library vulnerabilities by specifying the path to a Lockfile or binary placed on the server.
For scannable Lockfiles and binaries, please refer to "Supported Environments".
This feature supports both Local Scan and Remote Scan of Server OS Scan (see "Server OS Scan").
It supports both Linux and Windows servers. For details, please see "Windows Local Scan - Lockfile Scan".
How Vuls local scan mode works#
Specify the path of the target Lockfile in config.toml. During the scan, it analyzes the Lockfile at the specified path to obtain a list of dependent libraries.

How Vuls remote scan mode works#
Specify the path of the Lockfile on the target server in config.toml. During the scan, it connects to the remote server via SSH, analyzes the Lockfile at the specified path, and obtains a list of dependent libraries.

Configuration Method#
In the scanner configuration file /opt/vuls-saas/config.toml (Linux) or C:\Program Files\vuls-saas\config.toml (Windows), add lockfiles to the definition of the target server and specify the path of the Lockfile. The setting takes effect from the next run of the scanner. To apply it immediately, run the scanner manually by following "Scanner Execution and Scheduling".
[servers]
[servers.sample]
user = "vuls-saas"
host = "localhost"
port = "local"
lockfiles = [
"/home/user/lockfiles/package-lock.json",
"/home/user/lockfiles/Gemfile.lock",
"/home/user/lockfiles/yarn.lock"
]
Example for Windows:
[servers]
[servers.sample]
host = "localhost"
port = "local"
lockfiles = [
"C:\\Projects\\myapp\\package-lock.json",
"C:\\Projects\\myapp\\Gemfile.lock",
"C:\\Projects\\myapp\\yarn.lock"
]
Also, by specifying findLock = true and findLockDirs in config.toml, you can automatically search for Lockfiles, Jars, etc., under the directories specified in findLockDirs on the target server.
If you specify "findLock = true without specifying findLockDirs," it will search for Lockfiles in all directories under the root. In this case, it may monopolize one CPU core while the search command is running.
If this is not acceptable, we recommend specifying the target directories for automatic search using findLockDirs.
# Example for Linux
[servers]
[servers.sample]
user = "vuls-saas"
host = "localhost"
port = "local"
findLock = true
findLockDirs = [
"/path/to/project1/lib",
"/path/to/project2/lib",
]
# Example for Windows
[servers]
[servers.sample]
host = "localhost"
port = "local"
findLock = true
findLockDirs = [
"C:\\Projects\\project1\\lib",
"C:\\Projects\\project2\\lib",
]
After scanning, the packages will be displayed in the software and task lists, just like OS packages.
Criteria for Identifying Development Dependencies#
For each lockfile type and scan method, the following shows whether development dependencies (devDependencies) can be distinguished from production dependencies, and the criteria used to identify them. When they can be distinguished, development dependencies are either included in the scan results with a [DevDependency] badge or excluded, depending on the "Include devDependencies" setting (Lockfile Paste Scan).
Lockfile Paste Scans and Vuls Scanner#
Lockfile Paste Scans and Vuls Scanner both use the same analysis process and only analyze the contents of the lockfile. Development dependencies are identified in the same way by both methods.
| Lang | Lockfile | Paste | Vuls Scanner | Dev Distinction | Dev Detection Criteria |
|---|---|---|---|---|---|
| Node.js | package-lock.json | ✓ | ✓ | Yes | "dev": true field |
| Node.js | pnpm-lock.yaml | ✓ | ✓ | Yes | devDependencies section |
| Node.js | bun.lock | ✓ | ✓ | Yes | devDependencies section |
| Node.js | yarn.lock | ✓ | ✓ | No | - |
| Python | poetry.lock | ✓ | ✓ | Yes | category = "dev" or groups does not include "main" |
| Python | uv.lock | ✓ | ✓ | Yes | dev-dependencies section |
| Python | Pipfile.lock | ✓ | ✓ | No | Dependencies in the "develop" section are completely excluded |
| Python | requirements.txt | ✓ | ✓ | No | - |
| PHP | composer.lock | ✓ | ✓ | Yes | "packages-dev" section |
| Java | gradle.lockfile | - | ✓ | Yes | All classpaths start with test |
| Java | pom.xml | - | ✓ | No | Dependencies with a scope other than compile, runtime, or unspecified (such as test) are completely excluded |
| Java | JAR, WAR, EAR, PAR | - | ✓ | No | - |
| .NET (C# / F# / VB.NET) | packages.lock.json | ✓ | ✓ | No | - |
| Go | go.mod | ✓ | ✓ | No | - |
| Go | Go binary | - | ✓ | No | - |
| Rust | Cargo.lock | ✓ | ✓ | No | - |
| Rust | Rust binary | - | ✓ | No | Dependencies other than runtime are completely excluded |
| Ruby | Gemfile.lock | ✓ | ✓ | No | - |
| C / C++ | conan.lock | ✓ | ✓ | No | - |
| Elixir | mix.lock | ✓ | ✓ | No | - |
| Dart | pubspec.lock | ✓ | ✓ | No | - |
| Swift | Package.resolved | ✓ | ✓ | No | - |
| Swift | Podfile.lock (CocoaPods) | ✓ | ✓ | No | - |
Specifying only go.sum or .gemspec does not retrieve any libraries. Specify go.mod for Go and Gemfile.lock for Ruby.
The values in the "Dev Distinction" column mean the following.
| Dev Distinction | Meaning |
|---|---|
| Yes | The lockfile format allows development dependencies to be distinguished from production dependencies. Development dependencies are included or excluded according to the "Include devDependencies" setting |
| No | The lockfile format does not allow them to be distinguished. Dependencies listed in the lockfile are included in the scan results regardless of the setting. However, dependencies marked "completely excluded" in the "Dev Detection Criteria" column are never included in the scan results, regardless of the setting |
Differences based on pnpm-lock.yaml version
For pnpm-lock.yaml, Dev detection behavior differs depending on the lockfileVersion.
- v9 or later: Dev dependencies are identified from the
devDependenciesin theimporterssection and can be included in scan results with a [DevDependency] badge (Trivy documentation on Node.js support: "Trivy supports Dev field for pnpm-lock.yaml v9 or later"). - v5 to v8: Dev dependencies are completely excluded by Trivy's parser. They are always removed from the scan results, regardless of the "Include devDependencies" setting.
When Specifying a Filesystem Path with Trivy#
In addition to the lockfile, Trivy reads surrounding files to identify development dependencies. The following lockfiles are evaluated with criteria different from those used by Paste Scans / Vuls Scanner.
| Lang | Lockfile | Surrounding Files | Dev Detection Criteria |
|---|---|---|---|
| Node.js | yarn.lock | package.json |
devDependencies section |
| Python | poetry.lock | pyproject.toml |
[tool.poetry.group.dev.dependencies] section |
| PHP | composer.lock | composer.json |
require-dev section |
| Rust | Cargo.lock | Cargo.toml |
Dependencies in [dev-dependencies] are completely excluded |
For lockfiles other than those listed above, the criteria are the same as for Paste Scans / Vuls Scanner. For details, please refer to the 'Dev' column on the respective language pages in the Trivy documentation (e.g., Node.js, Python, Java).
GitHub Integration (Dependabot)#
"GitHub Security Alerts" is a GitHub feature that scans for vulnerabilities in dependent libraries listed in a repository's Lockfile. FutureVuls can integrate with GitHub via API to import vulnerabilities detected by GitHub into FutureVuls.
Even if you do not manage your source code on GitHub, you can still detect vulnerabilities by managing only the Lockfile on GitHub.
For supported languages and types, please refer to "GitHub: Supported package ecosystems".
Scan AWS Lambda dependent libraries#
By using the "Amazon Inspector AWS Lambda function scanning feature", you can import and manage vulnerabilities in AWS Lambda's dependent libraries in FutureVuls.
For details on how to integrate, please refer to "Scanning AWS Lambda".
How to register CPEs on the FutureVuls console#
This is a method to scan for library vulnerabilities by "registering CPEs from the FutureVuls screen". Since the information sources for CPE-based scans are NVD, VulnCheck NVD++, and JVN, library vulnerabilities not registered in any of them cannot be detected. However, Private CVEs registered for the group are detected when an affected product's CPE matches a CPE assigned to the software (excluding deprecated CPEs). Also, you must register the libraries that the target library depends on, so other methods are generally recommended.