News for hackers. Stuff that matters.

kotakanbe

Re:Vulnerability scanner for Linux and FreeBSD on Thursday October 13, 2016 @07:49AM (#12700036)
Vuls parse the changelog of upgradable packages on Ubuntu, Debian, CentOS.

For details, see the flow chart in Scanning Flow section. https://github.com/future-architect/vuls#scanning-flow

Re:Vulnerability scanner for Linux and FreeBSD on Saturday October 01, 2016 @03:57AM (#12616969)
VulsRepo is visualized based on the json report output in Vuls. https://github.com/usiusi360/vulsrepo

It is useful to analyze vulnerabilities that are detected by Vuls.

Re:Vulnerability scanner for Linux and FreeBSD on Friday September 30, 2016 @11:11PM (#12616375)
SUDO with Password via ssh is technologically possible.

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.
Re:Vulnerability scanner for Linux and FreeBSD on Friday September 30, 2016 @10:57PM (#12616353)
Thanks :)

> * 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!!
Re:Vulnerability scanner for Linux and FreeBSD on Friday September 30, 2016 @10:45PM (#12616330)
>NVD is just used for adding details of the CVEs that has been found.

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 changelogs
Re:Vulnerability scanner for Linux and FreeBSD on Friday September 30, 2016 @10:44PM (#12616328)
FreeBSD's pkg command is awesome.

Vuls issues pkg audit -F and parse the results, and then send notification via slack or email with some additionarl informaiton ( NVD data )

Re:Vulnerability scanner for Linux and FreeBSD on Friday September 30, 2016 @10:24AM (#12612616)
I see. I will improve.