VulsRepo is visualized based on the json report output in vuls.
http://usiusi360.github.io/vulsrepo/
- future-architect/Vuls >= v0.4.0
- Web Browser : Google Chrome or Firefox
A home folder of vuls is explained as /opt/vuls.
$ vuls scan
$ vuls report -format-json
Output to a JSON files (/opt/vuls/results/)
From now on , executed by a user running the vuls scan.
- Git clone
$ cd $HOME
$ git clone https://github.com/usiusi360/vulsrepo.git
Set Path according to your own environment.
$ cd $HOME/vulsrepo/server
$ vi vulsrepo-config.toml
[Server]
rootPath = "/home/vuls-user/vulsrepo"
resultsPath = "/opt/vuls/results"
serverPort = "5111"
- Do not use the path of the symbolic link for resultsPath
$ pwd
$HOME/vulsrepo/server
$ ./vulsrepo-server
2017/08/28 11:04:00 main.go:90: INFO: RootPath Load: /root/work/vulsrepo
2017/08/28 11:04:00 main.go:97: INFO: ResultsPath Load: /opt/vuls/results
2017/08/28 11:04:00 main.go:66: Start: Listening port: 5111
- It is necessary to build by yourself except for Linux 64bit. Please look at the build section.
Access the browser
http://<server-address>:5111
- To perform digest authentication, create an authentication file.
$ ./vulsrepo-server -h
Usage of ./vulsrepo-server:
-c string
AuthFile Path (default "/home/vuls-user/.htdigest")
-m make AuthFile
-r string
realm (default "vulsrepo_local")
-u string
login user (default "vuls")
ex)
$ ./vulsrepo-server -m
Password: ****
AuthFile Path : /home/vuls-user/.htdigest
realm : vulsrepo_local
login user : vuls
2017/08/28 19:11:59 main.go:96: Create Success
- Edit vulsrepo-config.toml.
$ vi vulsrepo-config.toml
[Auth]
authFilePath = "/home/vuls-user/.htdigest"
realm = "vulsrepo_local"
- Start vulsrepo-server
$ ./vulsrepo-server
2017/08/28 11:04:00 main.go:90: INFO: RootPath Load: /home/vuls-user/vulsrepo
2017/08/28 11:04:00 main.go:97: INFO: ResultsPath Load: /opt/vuls/results
2017/08/28 11:04:00 main.go:105: INFO: AuthFilePath Load: /home/vuls-user/.htdigest ←※
2017/08/28 11:04:00 main.go:66: Start: Listening port: 5111
- It is necessary to build by yourself except for Linux 64bit
- Install golang beforehand.
$ mkdir -p $GOPATH/github.com/usiusi360/
$ cd $GOPATH/github.com/usiusi360/
$ git clone https://github.com/usiusi360/vulsrepo.git
$ cd vulsrepo/server
$ dep ensure
$ go build -o vulsrepo-server
- Pivot Table
Setting Name | |
---|---|
Show / Hide the Item | Set items not to be displayed on pivot table. Since the data of Summary is very large, it turns OFF when the number of vulnerabilities is large and an error occurs. |
Priority | Set the data to be displayed with priority in the pivot table.The default is NVD data. |
- How to share pivot settings with others
- Click the link display button on the upper right.
- Click the copy button to clickboard.
- Pass the copied URL to another person.
- When you access the URL in the browser and select the file, the pivot is displayed with the same setting.
- Why does not Total of Vuls and VulsRepo result match ?
Vuls aggregates the number of CveIDs included in the host. However, VulsRepo counts Packages related to CveID as one case. If more than one package is associated with one CveID, Total will increase more than Vuls.