This project provides a step-by-step guide for installing and setting up OpenVAS (Greenbone Vulnerability Manager, GVM) on Kali Linux, followed by a basic scan on your local machine (127.0.0.1). Screenshots for each step are recommended to ensure a smooth setup.
- Kali Linux - Operating system for penetration testing
- OpenVAS (Greenbone Vulnerability Manager, GVM) - Vulnerability scanning and management
- Bash (Terminal) - Command-line interface for running installation and setup commands
Update your package list to ensure you’re working with the latest available packages:
sudo apt updateUpdating helps avoid installation issues and missing dependencies.

Install the Greenbone Vulnerability Manager (GVM), which includes OpenVAS:
sudo apt install gvm -yThe -y flag automatically confirms the installation without prompts. This step installs all necessary components for GVM.

To configure your system for OpenVAS, run:
sudo gvm-setupThe setup process may take up to an hour as it retrieves and updates vulnerability feeds. You’ll see different services being set up and initialized one by one, with output lines indicating the current progress.

After setup, check that everything installed correctly:
sudo gvm-check-setupIf any components or feeds are missing, an error will appear. This is common if the feed downloads didn’t complete.

If the previous command shows feed errors, manually sync the feeds with:
sudo greenbone-feed-sync --type certThen, rerun the check setup:
sudo gvm-check-setupThis should confirm that your GVM installation is correctly configured.

Create a user to log into the OpenVAS web interface:
sudo runuser -u _gvm -- gvmd --create-user=abdisamad --new-password=passwordReplace abdisamad and password with your preferred username and password. This user is for accessing the web interface only.

Start all necessary OpenVAS services with:
sudo gvm-startThis command launches the web interface and backend services needed for scanning.

In your browser, go to:
https://127.0.0.1:9392Log in with the username and password you created in Step 6. Accept the SSL warning if prompted.

After logging in for the first time, change your password for added security:
- Go to Settings in the menu.
- Change your password and save.
Start a basic scan on your local machine:
- Go to Scans > Tasks.
- Select Task Wizard.
- Enter
127.0.0.1as the Target IP. - Click Start Scan to begin. Once the scan starts, you’ll see it in the Tasks list, where the status will update as it runs.
You've successfully set up OpenVAS on your Kali Linux machine and conducted your first vulnerability scan. OpenVAS provides powerful tools for identifying potential security weaknesses in your systems. With this foundation, you can explore further by scanning other IP addresses, analyzing scan results, and fine-tuning your vulnerability management strategies.
Regular scanning is essential for maintaining a secure environment, so make OpenVAS a part of your routine security practices. Feel free to reach out for any assistance or share your experiences using this guide.