future-architect / vuls

Agent-less vulnerability scanner for Linux, FreeBSD, Container, WordPress, Programming language libraries, Network devices
https://vuls.io/
GNU General Public License v3.0
11k stars 1.16k forks source link

Vuls stop scanning on error with containers ! #1131

Open mareban opened 3 years ago

mareban commented 3 years ago

Hello,

When scanning hosts no problem, but with containers, if a dependency is missing(ex /sbin/ip not found), the scanning ended with an error !!

Do i need to install the command in the running container (and recreate the image), is there another solution to bypass this error and continue the scanning of other hosts and containers defined in the config.toml file ?? Do i need to exclude these kind of containers from the config file to avoid this problem ? If this is the case, it will be more challenging to scan our Linux machines with more and more containers :-( !

Thx for this usefull project and for your help.

kotakanbe commented 3 years ago

Hi, @mareban

If the /sbin/ip command is not found, vuls will only display a warning message, but the scan itself will run normally.

e.g. Debian https://github.com/future-architect/vuls/blob/3bacb648a5c8d7ca744b5d76057eca7a05c7df43/scan/debian.go#L245

Even if the warning message is displayed, the CVE-ID should still be detected by running the report command. If the container scan stops in the middle, please post the error message in the issue so we can fix it.