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.
When to Use
- When conducting security assessments that involve scanning infrastructure with nessus
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
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
Workflow
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
- athntc-vuln-scan
- prrtzn-vulns-cvss-scorin
- implementing-continuous-vulnerability-monitoring
- performing-network-vulnerability-assessment
1---2name: infrst-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.4license: Apache-2.05---6# Scanning Infrastructure with Nessus78## Overview9Tenable 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.101112## When to Use1314- When conducting security assessments that involve scanning infrastructure with nessus15- When following incident response procedures for related security events16- When performing scheduled security testing or auditing activities17- When validating security controls through hands-on testing1819## Prerequisites20- Nessus Professional or Essentials license installed and activated21- Network access to target systems (firewall rules allowing scanner IP)22- Administrative credentials for authenticated scanning23- Understanding of TCP/IP networking and common services24- Written authorization for scanning target environments2526## Core Concepts2728### Nessus Architecture29Nessus 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.3031### Scan Types321. **Host Discovery** - Identifies live hosts using ICMP, TCP, UDP, and ARP332. **Basic Network Scan** - Default policy covering common vulnerabilities343. **Advanced Scan** - Custom policy with granular plugin selection354. **Credentialed Patch Audit** - Authenticated scan checking installed patches365. **Web Application Tests** - Scans for web-specific vulnerabilities376. **Compliance Audit** - Checks against CIS, DISA STIG, PCI DSS benchmarks3839### Plugin Families40Nessus organizes plugins into families including:41- **Operating Systems**: Windows, Linux, macOS, Solaris42- **Network Devices**: Cisco, Juniper, Palo Alto, Fortinet43- **Web Servers**: Apache, Nginx, IIS, Tomcat44- **Databases**: Oracle, MySQL, PostgreSQL, MSSQL45- **Services**: DNS, SMTP, FTP, SSH, SNMP4647## Workflow4849### Step 1: Initial Configuration50```bash51# Start Nessus service52sudo systemctl start nessusd53sudo systemctl enable nessusd5455# CLI management with nessuscli56/opt/nessus/sbin/nessuscli update --all57/opt/nessus/sbin/nessuscli fix --list5859# Verify plugin count60/opt/nessus/sbin/nessuscli update --plugins-only61```6263### Step 2: Create Scan Policy64Configure a custom scan policy through the Nessus web UI at https://localhost:8834:65661. Navigate to Policies > New Policy > Advanced Scan672. Configure General settings: name, description, targets683. Set Discovery settings:69 - Host Discovery: Ping methods (ICMP, TCP SYN on ports 22,80,443)70 - Port Scanning: SYN scan on common ports or all 65535 ports71 - Service Discovery: Probe all ports for services724. Configure Assessment settings:73 - Accuracy: Override normal accuracy (reduce false positives)74 - Web Applications: Enable if scanning web servers755. Select Plugin families relevant to target environment7677### Step 3: Configure Credentials78For authenticated scanning, configure credentials under the Credentials tab:79- **SSH**: Username/password or SSH key pair80- **Windows**: Domain credentials via SMB, WMI81- **SNMP**: Community strings (v1/v2c) or USM credentials (v3)82- **Database**: Oracle, MySQL, PostgreSQL connection strings83- **VMware**: vCenter or ESXi credentials8485### Step 4: Run the Scan86```87# Using Nessus REST API via curl88# Authenticate and get token89curl -k -X POST https://localhost:8834/session \90 -d '{"username":"admin","password":"password"}' \91 -H "Content-Type: application/json"9293# Create scan94curl -k -X POST https://localhost:8834/scans \95 -H "X-Cookie: token=<TOKEN>" \96 -H "Content-Type: application/json" \97 -d '{98 "uuid": "<TEMPLATE_UUID>",99 "settings": {100 "name": "Infrastructure Scan Q1",101 "text_targets": "192.168.1.0/24",102 "enabled": true,103 "launch": "ON_DEMAND"104 }105 }'106107# Launch scan108curl -k -X POST https://localhost:8834/scans/<SCAN_ID>/launch \109 -H "X-Cookie: token=<TOKEN>"110111# Check scan status112curl -k -X GET https://localhost:8834/scans/<SCAN_ID> \113 -H "X-Cookie: token=<TOKEN>"114```115116### Step 5: Analyze Results117Nessus categorizes findings by severity:118- **Critical (CVSS 9.0-10.0)**: Immediate remediation required119- **High (CVSS 7.0-8.9)**: Remediate within 7-14 days120- **Medium (CVSS 4.0-6.9)**: Remediate within 30 days121- **Low (CVSS 0.1-3.9)**: Remediate during next maintenance window122- **Informational**: No immediate action required123124### Step 6: Export and Report125```bash126# Export via REST API127curl -k -X POST "https://localhost:8834/scans/<SCAN_ID>/export" \128 -H "X-Cookie: token=<TOKEN>" \129 -H "Content-Type: application/json" \130 -d '{"format":"nessus"}'131132# Supported formats: nessus (XML), csv, html, pdf133```134135## Best Practices1361. Schedule scans during maintenance windows to minimize production impact1372. Use authenticated scanning for 45-60% more vulnerability detection1383. Exclude fragile systems (medical devices, legacy SCADA) from aggressive scans1394. Maintain separate scan policies for different network segments1405. Update plugins before every scan to catch recently disclosed CVEs1416. Validate critical findings manually before escalating to remediation teams1427. Implement scan result trending to track remediation progress over time1438. Store scan results in Tenable.sc or Tenable.io for centralized management144145## Common Pitfalls146- Running unauthenticated scans only (misses 45-60% of vulnerabilities)147- Scanning without written authorization (legal and ethical violations)148- Ignoring scan performance impact on production systems149- Failing to tune plugins leading to excessive false positives150- Not validating scanner network connectivity before launching scans151- Using default scan policies without customization for the environment152153## Related Skills154- athntc-vuln-scan155- prrtzn-vulns-cvss-scorin156- implementing-continuous-vulnerability-monitoring157- performing-network-vulnerability-assessment