{"id":1492,"date":"2017-03-02T18:28:09","date_gmt":"2017-03-03T01:28:09","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1492"},"modified":"2017-03-03T12:07:40","modified_gmt":"2017-03-03T19:07:40","slug":"centos7-openvas","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1492","title":{"rendered":"CentOS7 OpenVAS"},"content":{"rendered":"<p>I decided to give OpenVAS as an alternative to Nessus thinking it would be pretty comparable since it is Nessus fork and the Nessus cost was too much for a small company.  I used the following to install it on CentOS7.  <\/p>\n<p>First the requirements.  They are not clearly defined on the OpenVAS page for downloading the binary packages, which I did.  You need to disable SElinux.  I had mine in permissive mode and it caused some problems.  The rest was pretty straight forward.  This uses the Atomicorp repository.<\/p>\n<p>To install and perform initial configuration:<\/p>\n<blockquote><p># wget -q -O &#8211; http:\/\/www.atomicorp.com\/installers\/atomic |sh<br \/>\n# yum upgrade<br \/>\n# yum install openvas<br \/>\n# openvas-setup<\/p><\/blockquote>\n<p>To stop, start and check OpenVAS services:<\/p>\n<blockquote><p># systemctl stop openvas-manager<br \/>\n# systemctl status openvas-manager<br \/>\n# systemctl start openvas-manager<br \/>\n# systemctl status openvas-scanner<br \/>\n# systemctl stop openvas-scanner<br \/>\n# systemctl start openvas-scanner<\/p><\/blockquote>\n<p>Location of the logs:<\/p>\n<blockquote><p># cd \/var\/log\/openvas\/<br \/>\n# tail gsad.log<br \/>\n# tail openvassd.log<br \/>\n# tail openvasmd.log<\/p><\/blockquote>\n<p>This is a very useful command to very the status of you installation.  It was helpful in determining that I needed to disable SElinux:<\/p>\n<blockquote><p># openvas-check-setup<\/p><\/blockquote>\n<p>This command rebuilds the database information:<\/p>\n<blockquote><p># openvasmd &#8211;rebuild<\/p><\/blockquote>\n<p>As a result of not having SElinux disabled, I found that the redis (an advanced key-value store) service was not running so the OpenVAS scanner would not work properly after I rebooted.  With SElinux disabled, I restarted redis.<br \/>\n# systemctl stop redis<br \/>\n# systemctl start redis<br \/>\n# systemctl status redis<\/p>\n<p>And then to check the status:<\/p>\n<blockquote><p># openvas-check-setup<br \/>\nopenvas-check-setup 2.3.7<br \/>\n  Test completeness and readiness of OpenVAS-8<br \/>\n  (add &#8216;&#8211;v6&#8217; or &#8216;&#8211;v7&#8217; or &#8216;&#8211;v9&#8217;<br \/>\n   if you want to check for another OpenVAS version)<\/p>\n<p>  Please report us any non-detected problems and<br \/>\n  help us to improve this check routine:<br \/>\n  http:\/\/lists.wald.intevation.org\/mailman\/listinfo\/openvas-discuss<\/p>\n<p>  Send us the log-file (\/tmp\/openvas-check-setup.log) to help analyze the problem.<\/p>\n<p>  Use the parameter &#8211;server to skip checks for client tools<br \/>\n  like GSD and OpenVAS-CLI.<\/p>\n<p>Step 1: Checking OpenVAS Scanner &#8230;<br \/>\n        OK: OpenVAS Scanner is present in version 5.0.7.<br \/>\n        OK: OpenVAS Scanner CA Certificate is present as \/var\/lib\/openvas\/CA\/cacert.pem.<br \/>\n        OK: redis-server is present in version v=3.0.7.<br \/>\n        OK: scanner (kb_location setting) is configured properly using the redis-server socket: \/tmp\/redis.sock<br \/>\n        OK: redis-server is running and listening on socket: \/tmp\/redis.sock.<br \/>\n        OK: redis-server configuration is OK and redis-server is running.<br \/>\n        OK: NVT collection in \/var\/lib\/openvas\/plugins contains 51943 NVTs.<br \/>\n        WARNING: Signature checking of NVTs is not enabled in OpenVAS Scanner.<br \/>\n        SUGGEST: Enable signature checking (see http:\/\/www.openvas.org\/trusted-nvts.html).<br \/>\n        OK: The NVT cache in \/var\/cache\/openvas contains 51943 files for 51943 NVTs.<br \/>\nStep 2: Checking OpenVAS Manager &#8230;<br \/>\n        OK: OpenVAS Manager is present in version 6.0.9.<br \/>\n        OK: OpenVAS Manager client certificate is present as \/var\/lib\/openvas\/CA\/clientcert.pem.<br \/>\n        OK: OpenVAS Manager database found in \/var\/lib\/openvas\/mgr\/tasks.db.<br \/>\n        OK: Access rights for the OpenVAS Manager database are correct.<br \/>\n        OK: sqlite3 found, extended checks of the OpenVAS Manager installation enabled.<br \/>\n        OK: OpenVAS Manager database is at revision 146.<br \/>\n        OK: OpenVAS Manager expects database at revision 146.<br \/>\n        OK: Database schema is up to date.<br \/>\n        OK: OpenVAS Manager database contains information about 51943 NVTs.<br \/>\n        OK: At least one user exists.<br \/>\n        OK: OpenVAS SCAP database found in \/var\/lib\/openvas\/scap-data\/scap.db.<br \/>\n        OK: OpenVAS CERT database found in \/var\/lib\/openvas\/cert-data\/cert.db.<br \/>\n        OK: xsltproc found.<br \/>\nStep 3: Checking user configuration &#8230;<br \/>\n        WARNING: Your password policy is empty.<br \/>\n        SUGGEST: Edit the \/etc\/openvas\/pwpolicy.conf file to set a password policy.<br \/>\nStep 4: Checking Greenbone Security Assistant (GSA) &#8230;<br \/>\n        OK: Greenbone Security Assistant is present in version 6.0.11.<br \/>\nStep 5: Checking OpenVAS CLI &#8230;<br \/>\n        OK: OpenVAS CLI version 1.4.5.<br \/>\nStep 6: Checking Greenbone Security Desktop (GSD) &#8230;<br \/>\n        SKIP: Skipping check for Greenbone Security Desktop.<br \/>\nStep 7: Checking if OpenVAS services are up and running &#8230;<br \/>\n        OK: netstat found, extended checks of the OpenVAS services enabled.<br \/>\n        OK: OpenVAS Scanner is running and listening on all interfaces.<br \/>\n        OK: OpenVAS Scanner is listening on port 9391, which is the default port.<br \/>\n        OK: OpenVAS Manager is running and listening on all interfaces.<br \/>\n        OK: OpenVAS Manager is listening on port 9390, which is the default port.<br \/>\n        OK: Greenbone Security Assistant is listening on port 80, which is the default port.<br \/>\nStep 8: Checking nmap installation &#8230;<br \/>\n        WARNING: Your version of nmap is not fully supported: 6.47<br \/>\n        SUGGEST: You should install nmap 5.51 if you plan to use the nmap NSE NVTs.<br \/>\nStep 10: Checking presence of optional tools &#8230;<br \/>\n        OK: pdflatex found.<br \/>\n        WARNING: PDF generation failed, most likely due to missing LaTeX packages. The PDF report format will not work.<br \/>\n        SUGGEST: Install required LaTeX packages.<br \/>\n        OK: ssh-keygen found, LSC credential generation for GNU\/Linux targets is likely to work.<br \/>\n        OK: rpm found, LSC credential package generation for RPM based targets is likely to work.<br \/>\n        WARNING: Could not find alien binary, LSC credential package generation for DEB based targets will not work.<br \/>\n        SUGGEST: Install alien.<br \/>\n        OK: nsis found, LSC credential package generation for Microsoft Windows targets is likely to work.<br \/>\n        OK: SELinux is disabled.<\/p>\n<p>It seems like your OpenVAS-8 installation is OK.<\/p>\n<p>If you think it is not OK, please report your observation<br \/>\nand help us to improve this check routine:<br \/>\nhttp:\/\/lists.wald.intevation.org\/mailman\/listinfo\/openvas-discuss<br \/>\nPlease attach the log-file (\/tmp\/openvas-check-setup.log) to help us analyze the problem.<\/p><\/blockquote>\n<p>To update the rules or tests (Network Vulnerability Tests &#8211; NVTs), you can use the following command which is run by the setup when you run it.  I believe this is the one that very clearly says that you should at most run this once a day, otherwise they will block you IP address.  It looks like they usually updated once a week anyway.  If so, you will get something like the following:<\/p>\n<blockquote><p># openvas-nvt-sync<br \/>\n[i] This script synchronizes an NVT collection with the &#8216;OpenVAS NVT Feed&#8217;.<br \/>\n[i] The &#8216;OpenVAS NVT Feed&#8217; is provided by &#8216;The OpenVAS Project&#8217;.<br \/>\n[i] Online information about this feed: &#8216;http:\/\/www.openvas.org\/openvas-nvt-feed.html&#8217;.<br \/>\n[i] NVT dir: \/var\/lib\/openvas\/plugins<br \/>\nOpenVAS community feed server &#8211; http:\/\/www.openvas.org\/<br \/>\nThis service is hosted by Greenbone Networks &#8211; http:\/\/www.greenbone.net\/<\/p>\n<p>All transactions are logged.<\/p>\n<p>If you have any questions, please use the OpenVAS mailing lists<br \/>\nor the OpenVAS IRC chat. See http:\/\/www.openvas.org\/ for details.<\/p>\n<p>By using this service you agree to our terms and conditions.<\/p>\n<p>Only one sync per time, otherwise the source ip will be blocked.<\/p>\n<p>[i] Feed is already current, no synchronization necessary.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I decided to give OpenVAS as an alternative to Nessus thinking it would be pretty comparable since it is Nessus fork and the Nessus cost was too much for a small company. I used the following to install it on CentOS7. First the requirements. They are not clearly defined on the OpenVAS page for downloading [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[40,442,441],"class_list":["post-1492","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-centos","tag-nessus","tag-openvas"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1492"}],"version-history":[{"count":3,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1492\/revisions"}],"predecessor-version":[{"id":1495,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1492\/revisions\/1495"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}