Scanning Infrastructure with Nessus
Overview
Tenable Nessus is the industry-leading vulnerability scanner used to identify security weaknesses across network infrastructure including servers, workstations, network devices, and operating systems. This skill covers configuring scan policies, running authenticated and unauthenticated scans, interpreting results, and integrating Nessus into continuous vulnerability management workflows.
Prerequisites
- Nessus Professional or Essentials license installed and activated
- Network access to target systems (firewall rules allowing scanner IP)
- Administrative credentials for authenticated scanning
- Understanding of TCP/IP networking and common services
- Written authorization for scanning target environments
Core Concepts
Nessus Architecture
Nessus operates as a client-server application where the Nessus scanner engine runs as a service (nessusd) on the host system. It uses a plugin-based architecture with over 200,000 plugins updated weekly by Tenable's research team. Each plugin tests for a specific vulnerability, misconfiguration, or compliance check.
Scan Types
- Host Discovery - Identifies live hosts using ICMP, TCP, UDP, and ARP
- Basic Network Scan - Default policy covering common vulnerabilities
- Advanced Scan - Custom policy with granular plugin selection
- Credentialed Patch Audit - Authenticated scan checking installed patches
- Web Application Tests - Scans for web-specific vulnerabilities
- Compliance Audit - Checks against CIS, DISA STIG, PCI DSS benchmarks
Plugin Families
Nessus organizes plugins into families including:
- Operating Systems: Windows, Linux, macOS, Solaris
- Network Devices: Cisco, Juniper, Palo Alto, Fortinet
- Web Servers: Apache, Nginx, IIS, Tomcat
- Databases: Oracle, MySQL, PostgreSQL, MSSQL
- Services: DNS, SMTP, FTP, SSH, SNMP
Implementation Steps
Step 1: Initial Configuration
# Start Nessus service
sudo systemctl start nessusd
sudo systemctl enable nessusd
# CLI management with nessuscli
/opt/nessus/sbin/nessuscli update --all
/opt/nessus/sbin/nessuscli fix --list
# Verify plugin count
/opt/nessus/sbin/nessuscli update --plugins-only
Step 2: Create Scan Policy
Configure a custom scan policy through the Nessus web UI at https://localhost:8834:
- Navigate to Policies > New Policy > Advanced Scan
- Configure General settings: name, description, targets
- Set Discovery settings:
- Host Discovery: Ping methods (ICMP, TCP SYN on ports 22,80,443)
- Port Scanning: SYN scan on common ports or all 65535 ports
- Service Discovery: Probe all ports for services
- Configure Assessment settings:
- Accuracy: Override normal accuracy (reduce false positives)
- Web Applications: Enable if scanning web servers
- Select Plugin families relevant to target environment
Step 3: Configure Credentials
For authenticated scanning, configure credentials under the Credentials tab:
- SSH: Username/password or SSH key pair
- Windows: Domain credentials via SMB, WMI
- SNMP: Community strings (v1/v2c) or USM credentials (v3)
- Database: Oracle, MySQL, PostgreSQL connection strings
- VMware: vCenter or ESXi credentials
Step 4: Run the Scan
# Using Nessus REST API via curl
# Authenticate and get token
curl -k -X POST https://localhost:8834/session \
-d '{"username":"admin","password":"password"}' \
-H "Content-Type: application/json"
# Create scan
curl -k -X POST https://localhost:8834/scans \
-H "X-Cookie: token=<TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"uuid": "<TEMPLATE_UUID>",
"settings": {
"name": "Infrastructure Scan Q1",
"text_targets": "192.168.1.0/24",
"enabled": true,
"launch": "ON_DEMAND"
}
}'
# Launch scan
curl -k -X POST https://localhost:8834/scans/<SCAN_ID>/launch \
-H "X-Cookie: token=<TOKEN>"
# Check scan status
curl -k -X GET https://localhost:8834/scans/<SCAN_ID> \
-H "X-Cookie: token=<TOKEN>"
Step 5: Analyze Results
Nessus categorizes findings by severity:
- Critical (CVSS 9.0-10.0): Immediate remediation required
- High (CVSS 7.0-8.9): Remediate within 7-14 days
- Medium (CVSS 4.0-6.9): Remediate within 30 days
- Low (CVSS 0.1-3.9): Remediate during next maintenance window
- Informational: No immediate action required
Step 6: Export and Report
# Export via REST API
curl -k -X POST "https://localhost:8834/scans/<SCAN_ID>/export" \
-H "X-Cookie: token=<TOKEN>" \
-H "Content-Type: application/json" \
-d '{"format":"nessus"}'
# Supported formats: nessus (XML), csv, html, pdf
Best Practices
- Schedule scans during maintenance windows to minimize production impact
- Use authenticated scanning for 45-60% more vulnerability detection
- Exclude fragile systems (medical devices, legacy SCADA) from aggressive scans
- Maintain separate scan policies for different network segments
- Update plugins before every scan to catch recently disclosed CVEs
- Validate critical findings manually before escalating to remediation teams
- Implement scan result trending to track remediation progress over time
- Store scan results in Tenable.sc or Tenable.io for centralized management
Common Pitfalls
- Running unauthenticated scans only (misses 45-60% of vulnerabilities)
- Scanning without written authorization (legal and ethical violations)
- Ignoring scan performance impact on production systems
- Failing to tune plugins leading to excessive false positives
- Not validating scanner network connectivity before launching scans
- Using default scan policies without customization for the environment
Related Skills
- performing-authenticated-vulnerability-scan
- prioritizing-vulnerabilities-with-cvss-scoring
- implementing-continuous-vulnerability-monitoring
- performing-network-vulnerability-assessment
1---2name: scanning-infrastructure-with-nessus3description: Tenable Nessus is the industry-leading vulnerability scanner used to identify security weaknesses across network infrastructure including servers, workstations, network devices, and operating systems.4domain: cybersecurity5subdomain: vulnerability-management6tags: [vulnerability-management, cve, nessus, tenable, infrastructure-scanning, risk]7version: "1.0"8author: mahipal9license: Apache-2.010---1112# Scanning Infrastructure with Nessus1314## Overview15Tenable Nessus is the industry-leading vulnerability scanner used to identify security weaknesses across network infrastructure including servers, workstations, network devices, and operating systems. This skill covers configuring scan policies, running authenticated and unauthenticated scans, interpreting results, and integrating Nessus into continuous vulnerability management workflows.1617## Prerequisites18- Nessus Professional or Essentials license installed and activated19- Network access to target systems (firewall rules allowing scanner IP)20- Administrative credentials for authenticated scanning21- Understanding of TCP/IP networking and common services22- Written authorization for scanning target environments2324## Core Concepts2526### Nessus Architecture27Nessus operates as a client-server application where the Nessus scanner engine runs as a service (nessusd) on the host system. It uses a plugin-based architecture with over 200,000 plugins updated weekly by Tenable's research team. Each plugin tests for a specific vulnerability, misconfiguration, or compliance check.2829### Scan Types301. **Host Discovery** - Identifies live hosts using ICMP, TCP, UDP, and ARP312. **Basic Network Scan** - Default policy covering common vulnerabilities323. **Advanced Scan** - Custom policy with granular plugin selection334. **Credentialed Patch Audit** - Authenticated scan checking installed patches345. **Web Application Tests** - Scans for web-specific vulnerabilities356. **Compliance Audit** - Checks against CIS, DISA STIG, PCI DSS benchmarks3637### Plugin Families38Nessus organizes plugins into families including:39- **Operating Systems**: Windows, Linux, macOS, Solaris40- **Network Devices**: Cisco, Juniper, Palo Alto, Fortinet41- **Web Servers**: Apache, Nginx, IIS, Tomcat42- **Databases**: Oracle, MySQL, PostgreSQL, MSSQL43- **Services**: DNS, SMTP, FTP, SSH, SNMP4445## Implementation Steps4647### Step 1: Initial Configuration48```bash49# Start Nessus service50sudo systemctl start nessusd51sudo systemctl enable nessusd5253# CLI management with nessuscli54/opt/nessus/sbin/nessuscli update --all55/opt/nessus/sbin/nessuscli fix --list5657# Verify plugin count58/opt/nessus/sbin/nessuscli update --plugins-only59```6061### Step 2: Create Scan Policy62Configure a custom scan policy through the Nessus web UI at https://localhost:8834:63641. Navigate to Policies > New Policy > Advanced Scan652. Configure General settings: name, description, targets663. Set Discovery settings:67 - Host Discovery: Ping methods (ICMP, TCP SYN on ports 22,80,443)68 - Port Scanning: SYN scan on common ports or all 65535 ports69 - Service Discovery: Probe all ports for services704. Configure Assessment settings:71 - Accuracy: Override normal accuracy (reduce false positives)72 - Web Applications: Enable if scanning web servers735. Select Plugin families relevant to target environment7475### Step 3: Configure Credentials76For authenticated scanning, configure credentials under the Credentials tab:77- **SSH**: Username/password or SSH key pair78- **Windows**: Domain credentials via SMB, WMI79- **SNMP**: Community strings (v1/v2c) or USM credentials (v3)80- **Database**: Oracle, MySQL, PostgreSQL connection strings81- **VMware**: vCenter or ESXi credentials8283### Step 4: Run the Scan84```85# Using Nessus REST API via curl86# Authenticate and get token87curl -k -X POST https://localhost:8834/session \88 -d '{"username":"admin","password":"password"}' \89 -H "Content-Type: application/json"9091# Create scan92curl -k -X POST https://localhost:8834/scans \93 -H "X-Cookie: token=<TOKEN>" \94 -H "Content-Type: application/json" \95 -d '{96 "uuid": "<TEMPLATE_UUID>",97 "settings": {98 "name": "Infrastructure Scan Q1",99 "text_targets": "192.168.1.0/24",100 "enabled": true,101 "launch": "ON_DEMAND"102 }103 }'104105# Launch scan106curl -k -X POST https://localhost:8834/scans/<SCAN_ID>/launch \107 -H "X-Cookie: token=<TOKEN>"108109# Check scan status110curl -k -X GET https://localhost:8834/scans/<SCAN_ID> \111 -H "X-Cookie: token=<TOKEN>"112```113114### Step 5: Analyze Results115Nessus categorizes findings by severity:116- **Critical (CVSS 9.0-10.0)**: Immediate remediation required117- **High (CVSS 7.0-8.9)**: Remediate within 7-14 days118- **Medium (CVSS 4.0-6.9)**: Remediate within 30 days119- **Low (CVSS 0.1-3.9)**: Remediate during next maintenance window120- **Informational**: No immediate action required121122### Step 6: Export and Report123```bash124# Export via REST API125curl -k -X POST "https://localhost:8834/scans/<SCAN_ID>/export" \126 -H "X-Cookie: token=<TOKEN>" \127 -H "Content-Type: application/json" \128 -d '{"format":"nessus"}'129130# Supported formats: nessus (XML), csv, html, pdf131```132133## Best Practices1341. Schedule scans during maintenance windows to minimize production impact1352. Use authenticated scanning for 45-60% more vulnerability detection1363. Exclude fragile systems (medical devices, legacy SCADA) from aggressive scans1374. Maintain separate scan policies for different network segments1385. Update plugins before every scan to catch recently disclosed CVEs1396. Validate critical findings manually before escalating to remediation teams1407. Implement scan result trending to track remediation progress over time1418. Store scan results in Tenable.sc or Tenable.io for centralized management142143## Common Pitfalls144- Running unauthenticated scans only (misses 45-60% of vulnerabilities)145- Scanning without written authorization (legal and ethical violations)146- Ignoring scan performance impact on production systems147- Failing to tune plugins leading to excessive false positives148- Not validating scanner network connectivity before launching scans149- Using default scan policies without customization for the environment150151## Related Skills152- performing-authenticated-vulnerability-scan153- prioritizing-vulnerabilities-with-cvss-scoring154- implementing-continuous-vulnerability-monitoring155- performing-network-vulnerability-assessment