---
title: 'OpenVAS / Greenbone (GVM)'
url: 'https://www.rawrso.me/ethical-hacking/cheat-sheets/openvas-greenbone'
markdown: 'https://www.rawrso.me/ethical-hacking/cheat-sheets/openvas-greenbone.md'
date: '2026-11-22'
description: 'Field Detail Summary Scan hosts for known vulnerabilities (open-source, NVTs) Category Vulnerability scanning Phase scanning, vulnerability-analysis Interface Web UI (+ CLI) Platform Linux Licence Open source (GPL; Greenbone Enterprise is commercial) Docs https://greenbone.github…'
taxonomy:
  category:
    - cheat-sheets
  tag:
    - pentest
    - cheatsheet
    - vulnerability-scanning
    - scanning
    - vulnerability-analysis
---

# OpenVAS / Greenbone (GVM)

| Field | Detail |
|---|---|
| **Summary** | Scan hosts for known vulnerabilities (open-source, NVTs) |
| **Category** | Vulnerability scanning |
| **Phase** | scanning, vulnerability-analysis |
| **Interface** | Web UI (+ CLI) |
| **Platform** | Linux |
| **Licence** | Open source (GPL; Greenbone Enterprise is commercial) |
| **Docs** | https://greenbone.github.io/docs/ |
| **Related** | Nessus, Nmap, Searchsploit and Exploit-DB, Reporting and engagement management |

The fully open-source vulnerability scanner — the FOSS counterpart to Nessus. "OpenVAS" is the scanner engine; the whole stack is the **Greenbone Vulnerability Manager (GVM)**, driven from the **Greenbone Security Assistant (GSA)** web UI. Uses **NVTs** (Network Vulnerability Tests) instead of Nessus plugins.

> **⚠️ Warning — Same fragility caveats as any scanner**Active checks can crash fragile/OT kit. Use low concurrency and ICS-awareness near anything industrial (see OT-ICS testing methodology and safety); in scope only.

## Setup

```bash
# Kali
sudo apt install gvm
sudo gvm-setup                 # first-time: creates DB, downloads feeds (SLOW — NVTs/CVE/SCAP)
sudo gvm-check-setup           # verify everything's healthy
sudo gvm-feed-update           # refresh NVT/SCAP/CERT feeds (do before a real scan)
sudo gvm-start                 # start services -> UI on https://127.0.0.1:9392
# admin password is printed during gvm-setup; reset with:
sudo runuser -u _gvm -- gvmd --user=admin --new-password='NewPass'
```

## Workflow (GSA web UI)

1. **Configuration → Targets** → New Target: hosts/CIDR, port list, optional credentials (SSH/SMB) for authenticated scans.
2. **Scans → Tasks** → New Task: pick the target + a **Scan Config**.
3. Run the task; watch progress.
4. **Scans → Reports** → open results, filter by severity, export.

## Scan configs (≈ Nessus templates)

| Config | Use |
|---|---|
| **Discovery** | Host/service discovery, no vuln checks |
| **Host Discovery** | Just find live hosts |
| **System Discovery** | Identify OS/devices |
| **Full and fast** | Default general scan (good starting point) |
| **Full and very deep** | Thorough, much slower, more intrusive |
| **Empty** | Build your own from NVT families |

## Authenticated scanning

As with Nessus, credentials massively improve accuracy:

- **Credentials** section → add SSH (Linux) / SMB (Windows) creds → attach to the Target.
- Confirm the report shows authenticated checks ran (local security checks populated), else you effectively did an unauthenticated scan.

## CLI (gvm-tools) for automation

```bash
pip install gvm-tools
gvm-cli --gmp-username admin --gmp-password 'Pass' socket --xml "<get_version/>"
# scripts via gvm-script for creating targets/tasks and pulling reports as XML
```

## Reading & exporting

- Severity uses **CVSS**; each result has NVT detail, affected service, solution, references (CVE/CERT).
- Export **PDF/XML/CSV**; the XML imports into reporting tools (see Reporting and engagement management).
- Validate before reporting — like all scanners it produces false positives (banner/version guesses); confirm with Nmap NSE and manual checks, cross-ref Searchsploit and Exploit-DB.

## OpenVAS vs Nessus

|  | OpenVAS/Greenbone | Nessus |
|---|---|---|
| Cost | Free (community) | Free Essentials (16 IPs) / paid Pro |
| Checks | NVTs (open feed) | Tenable plugins |
| Setup | Heavier (feed sync) | Simpler installer |
| Industry use | Common where budget/openness matters | De-facto commercial standard |

Know both: Nessus dominates industry reports, OpenVAS is the no-licence option for labs and cost-sensitive clients.

## More GMP / gvm-tools

```bash
# GMP (Greenbone Management Protocol) queries over the local socket
gvm-cli socket --xml "<get_tasks/>"                               # tasks + status
gvm-cli socket --xml "<get_results filter='severity>7 rows=100'/>"   # high-sev results
gvm-cli socket --xml "<get_reports/>"
gvm-cli socket --xml "<get_configs/>"                            # scan-config UUIDs
gvm-cli socket --xml "<get_scanners/>"
# Export one report in a given format (get format UUIDs from <get_report_formats/>)
gvm-cli socket --xml "<get_reports report_id='RPT-UUID' format_id='PDF-UUID'/>" > report.pdf
# Repeatable task creation/launch via the bundled Python scripts
gvm-script --gmp-username admin --gmp-password 'pass' socket create-and-start-task.gmp.py
```

Default socket is `/run/gvmd/gvmd.sock` (add `socket --socketpath <path>` if yours differs). `<get_report_formats/>` lists the PDF/CSV/XML format UUIDs you plug into exports.

## Kill-chain usage

### Scanning

```bash
# Host Discovery scan config -> live hosts & ports
```

### Vulnerability analysis

```bash
# Full and fast (credentialed) -> CVSS-scored findings
```

## Where it fits

Same slot as Nessus in the scanning/vuln-analysis phase — reach for it when you want a free, self-hosted scanner. Feed it live hosts from Nmap, validate findings manually, and export into Reporting and engagement management.

---

## Navigation

- Parent: [Pentest Tools — Map of Content](https://www.rawrso.me/ethical-hacking/cheat-sheets.md)
- Previous: [Nuclei](https://www.rawrso.me/ethical-hacking/cheat-sheets/nuclei.md)
- Next: [OSINT & passive recon](https://www.rawrso.me/ethical-hacking/cheat-sheets/osint-and-recon.md)
