kotakanbe
For details, see the flow chart in Scanning Flow section. https://github.com/future-architect/vuls#scanning-flow
It is useful to analyze vulnerabilities that are detected by Vuls.
http://askubuntu.com/questions/470383/how-to-avoid-prompt-pa...
But there is a problem with sudo with password via ssh.
For example...
userA .... 'watch w' on serverA
userB ... 'ssh serverA echo sudopassword | sudo -S command'
userA can steal of root password on ServerA because plain sudo password is displayed by w command.So, I disable -ask-sudo-password for security reasons. https://github.com/future-architect/vuls/pull/148
I recommend to define minimum commands in /etc/sudoers on target servers.
CentOS, RHEL
vuls ALL=(root) NOPASSWD: /usr/bin/yum, /bin/echo
Ubuntu, Debian
vuls ALL=(root) NOPASSWD: /usr/bin/apt-get, /usr/bin/apt-cache
Vuls can scan without root on FreeBSD and Amazon Linux.> * Don't use root where you don't need to - can you parse package lists / vulnerability databases as a normal user?
Yes, Vuls can scan without root on FreeBSD and Amazon Linux. If you know how to scan without root on CentOS, Debian, RHEL, Ubuntu, please let me know. I also do'nt want to use root.
> * Would the design be better inverted? Systems push their list of installed packages / versions to your application to be checked.
Not so easy. The package version, release name is not semantic versioning format.This is a output of show package versions command on Ubuntu.
locales 2.13+git20120306-21
login 1:4.1.5.1-1.1ubuntu7
lsb-base 9.20160110
make 4.1-6
mawk 1.3.3-17ubuntu2
mime-support 3.59ubuntu1
multiarch-support 2.21-0ubuntu5
Impossible!!yes.
Vuls issues below command.
FreeBSD ... pkg audit -F
RHEL ... yum plugin security
Amazon LInux ... yum plugin security
CentOS ... analyze changelogs
Debian ... analyze changelogs
Ubuntu ... analyze changelogsVuls issues pkg audit -F and parse the results, and then send notification via slack or email with some additionarl informaiton ( NVD data )