Openvas 9 on Ubuntu 16.04 Setup
After a number of hours of fidling / tweaking i have finally gotten openvas 9 running smoothly including SSH authentication against secure ciphers. The secure cipher part threw me a bit. Below is a guide to help those of you struggling as I did.
Basic Installation
- Install Ubuntu 16.04LTS
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get dist-upgrade
- sudo add-apt-repository ppa:mrazavi/openvas
- sudo apt-get update
- sudo apt-get install openvas9
Once installed, run updates on the NVT to ensure you have the latest vulnerability tests.
- sudo greenbone-nvt-sync
- sudo greenbone-scapdata-sync
- sudo greenbone-certdata-sync
- sudo /etc/init.d/openvas-manager restart
- sudo /etc/init.d/openvas-scanner restart
- ./openvas-check-setup --v9
- https://host-ip-address:4000
- sudo openvasmd --new-password=my_secure_password --user=admin
Openvas - SSH Strong Ciphers
Its best practice to harden your ssh servers and this includes using strong ciphers. The documentation regarding openvas and strong ciphers or lack thereof threw me for a bit. I couldnt find anything that clearly identified the problem or assisted me in being able to run authenticated tests, so hopefully this will help you.
Whenever my authenticated checks failed, I noticed the following errors in my openvassd.messages file. "Failed to set SSH key type 'ssh-ed25519'".
If you view /var/lib/openvas/plugins/ssh_fund.inc it indicates that for ed25519 you need to upgrade to libssh greater than 0.7.
Ubuntu 16.04 uses libssh0.6.3 , to successfully logon to ssh servers using secure ciphers it requires libssh0.7 and greater. There is a ppa available that upgrades to a later version of libssh, but unfortunately this didnt work for me. I needed to manually upgrade libssh, below is the steps i followed.
You need to ensure your system has git,cmake and a few other packages installed.
- sudo apt-get install git
- sudo apt-get install build-essential
- sudo apt-get install cmake
- sudo apt-get install zlib1g-dev
- sudo apt-get install libssl-dev
- git clone git://git.libssh.org/projects/libssh.git libssh
- cd libssh
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
- make
- sudo make install
- cd /usr/lib/x86_64-linux-gnu
- rm libssh.so.4
- rm libssh_threads.so.4
- ln -s /usr/lib/libssh.so.4 libssh.so.4
- ln -s /usr/lib/libssh_threads.so.4 libssh_threads.so.4
- /etc/init.d/openvas-scanner restart
Comments
Post a Comment