{"id":727,"date":"2016-05-19T13:40:56","date_gmt":"2016-05-19T19:40:56","guid":{"rendered":"http:\/\/wmbuck.net\/blog\/?p=727"},"modified":"2016-05-19T13:40:56","modified_gmt":"2016-05-19T19:40:56","slug":"setting-up-openvas","status":"publish","type":"post","link":"https:\/\/wmbuck.net\/blog\/?p=727","title":{"rendered":"Setting up OpenVAS"},"content":{"rendered":"<p>I haven&#8217;t done any serious security scanning since playing around with Nessus back in 2006. I decided that I needed to do this, not only on my own servers but on those that I managed for others. It would be very embarrassing to get hacked. <\/p>\n<p>So first I grabbed up Nessus, and discovered that it has, in the meantime, become a mostly commercial product. There is an open source spin called OpenVAS. This is about setting that up. <\/p>\n<p>OpenVAS itself has two parts, and it comes with a third part from a company called Greenbone Security which is a web frontend. The two parts of openvas are the scanner (openvassd) and the manager (openvasmd) while the front end is gsad. <\/p>\n<p>I installed them with dnf, as they are packaged with fedora. This creates a dozen bin files, an \/etc\/openvas &#038; \/etc\/pki\/openvas, a \/var\/lib\/openvas, and systemd scripts. A good way to go through the setup process is to use openvas-check-setup, which will give clues to what you should do next. <\/p>\n<p>First step was openvas-mkcert which builds a self-signed cert in \/etc\/pki\/openvas. Next step was to install a \u201credis\u201d server (dnf install redis), and fix its config file with unixsocket \/tmp\/redis.sock. systemctl enable redis; systemctl start redis.sock. Another step that is needed before downloading the \u201cnvt\u201d files, is to set up a gpg key. Some of the instructions wanted the gnupg directory in \/etc\/openvas, but the fedora install creates a gnupg directory in \/var\/lib\/openvas, so I used that. Then I downloaded the nvt files (openvas-nvt-sync) and also did openvas-scapdata-sync and openvas-certdata-sync.<\/p>\n<p>I was unsuccessful with checking for signed nvt scripts on either tarragon or oregano. The openvassd scanner (systemctl start openvas-scanner) won&#8217;t run with the parameter in \/etc\/openvas\/openvassd.conf set to check the script sigs.  <\/p>\n<p>When the instructions said to start the scanner, and then run the manager with the \u2013rebuild option, I started the scanner with systemctl but did the manager with openvasmd \u2013rebuild, to build the \u201ctasks\u201d database. <\/p>\n<p>After that I enabled and started openvas-manager and openvas-gsa (had already enabled and started openvas-scanner). <\/p>\n<p>To use this on tarragon I use an ssh tunnel rather than opening up another port there. It must be connected to using https. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I haven&#8217;t done any serious security scanning since playing around with Nessus back in 2006. I decided that I needed to do this, not only on my own servers but on those that I managed for others. It would be very embarrassing to get hacked. So first I grabbed up Nessus, and discovered that it &hellip; <a href=\"https:\/\/wmbuck.net\/blog\/?p=727\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Setting up OpenVAS<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,4,33],"tags":[],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-fedora","category-linux","category-security"],"_links":{"self":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/727"}],"collection":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=727"}],"version-history":[{"count":1,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions"}],"predecessor-version":[{"id":728,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions\/728"}],"wp:attachment":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}