OpenVAS cheat sheet for vulnerability assessment and penetration testing
This OpenVAS cheat sheet covers the essential commands and workflows for comprehensive vulnerability assessment and penetration testing integration.
OpenVAS Installation & Setup
Installing the OpenVAS vulnerability scanner and its components, including initial database setup and service configuration.
bash
# Install on Kali Linux
sudo apt update
sudo apt install openvas
# Set up and start OpenVAS (Kali)
sudo gvm-setup
sudo gvm-start
# Check installation
sudo gvm-check-setup
# Update the vulnerability databases (NVTs)
sudo greenbone-feed-sync --type nvt
sudo greenbone-feed-sync --type scap
sudo greenbone-feed-sync --type cert
# Stop OpenVAS
sudo gvm-stop
# Install on Ubuntu (using Docker - recommended)
docker pull greenbone/community-edition
docker run -d -p 443:443 --name greenbone-community-edition greenbone/community-editionAccess & Initial Configuration
Accessing the web interface, setting up initial user accounts, and configuring basic system settings for scanning operations.
bash
Target Management
Defining and organizing the systems, networks, or applications that will be scanned for vulnerabilities.
bash
Scan Configuration
Creating and customizing scan policies that determine how thoroughly systems are tested and what types of vulnerabilities to look for.
bash
Credential Management (Authenticated Scans)
Storing and managing authentication credentials that allow OpenVAS to perform deeper, authenticated scans of target systems.
bash
Vulnerability Scanning Commands
Executing actual vulnerability scans against targets using various configurations and options via command-line interface.
bash
Common Scan Types for PT
Pre-configured scanning approaches tailored for different penetration testing phases and target types.
bash
Reporting & Output
Generating and exporting scan results in various formats for analysis, reporting, and integration with other tools.
bash
Integration with PT Workflow
Combining OpenVAS scanning with other penetration testing tools and methodologies for a comprehensive assessment.
bash
Advanced Scanning Techniques
Using specialized configurations for complex scanning scenarios, performance optimization, and targeted vulnerability detection.
bash
Troubleshooting & Maintenance
Maintaining the OpenVAS system, updating vulnerability databases, and resolving common operational issues.
bash
Quick Reference for PT Phases
bash
Last updated