How To install OpenVAS Scanner on Rocky Linux – Greenbone Scanner

In this blog we will learn how to install OpenVAS scanner on Rocky Linux or other Red Hat based Linux distributions.

Introduction

OpenVAS , Open Vulnerability Assessment System is the scanner component of Greenbone Vulnerability Manager (GVM) , a framework of different services and tools for vulnerability scanning and vulnerability management. With vulnerability management, you look through the eyes of a potential attacker at your infrastructure. The goal is to find potential security issues before attackers will find them.

All Greenbone Vulnerability Manager products are free software, and most components are licensed under the GNU General Public License (GPL). Plugins for Greenbone Vulnerability Manager are written in the Nessus Attack Scripting Language, NASL.

Greenbone Vulnerability Manager began under the name of OpenVAS, and before that the name GNessUs, as a fork of the previously open source Nessus scanning tool, after its developers Tenable Network Security changed it to a proprietary (closed source) license in October 2005. 

Refer the official documentation Greenbone

Pre-requisite

Need to have one Rocky Linux installed host with below resources (minimum)

  • CPU – 2 cores
  • Memory – 4 GB
  • Storage – 100 GB
  • Operating System – Rocky Linux release 8 or 9
  • Hostname – openvas-01.rockylinux.com
  • IP Address – 192.168.88.128/24

If you need to install a Rocky Linux host follow the post How to Install Rocky Linux 8

Configuring Host server

Login to the host using ssh with root user and set a fully qualified domain name (FQDN)

Edit the host file using editor of your choice

Add the lines below to have the name resolution

Install the packages after refreshing the cache

If the above actions would have upgraded the kernel please reboot the system to have the installed kernel effective

Disable the SELinux services

Enabling 3rd Party Repositories

We may need to have packages installed for OpenVAS which is not included in the standard yum repositories. Enable the CRB (Power Tools) and EPEL (Extra Packages for Enterprise Linux) yum repositories.

Download and install Atomic yum repository

Rebuild the cache

OpenVAS Installation

During installation, gvm updates Network Vulnerability Tests feed from the Greenbone Security Feed/Community Feed. It may takes a few more minutes, depends upon your Internet connection speed

Adapting the firewall rules for the OpenVAS

Access the OpenVAS Security Assistant Web GUI

Open URL https://openvas-01.rockylinux.com in a web browser.

Login as admin user, you can use the password that you have set during execution of gvm-setup command.

Leave a comment