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
- 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.010metadata:11 source: https://skillmd.com/skills/micsapp/scanning-infrastructure-with-nessus12---1314# Scanning Infrastructure with Nessus1516## Overview17Tenable 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.181920## When to Use2122- When conducting security assessments that involve scanning infrastructure with nessus23- When following incident response procedures for related security events24- When performing scheduled security testing or auditing activities25- When validating security controls through hands-on testing2627## Prerequisites28- Nessus Professional or Essentials license installed and activated29- Network access to target systems (firewall rules allowing scanner IP)30- Administrative credentials for authenticated scanning31- Understanding of TCP/IP networking and common services32- Written authorization for scanning target environments3334## Core Concepts3536### Nessus Architecture37Nessus 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.3839### Scan Types401. **Host Discovery** - Identifies live hosts using ICMP, TCP, UDP, and ARP412. **Basic Network Scan** - Default policy covering common vulnerabilities423. **Advanced Scan** - Custom policy with granular plugin selection434. **Credentialed Patch Audit** - Authenticated scan checking installed patches445. **Web Application Tests** - Scans for web-specific vulnerabilities456. **Compliance Audit** - Checks against CIS, DISA STIG, PCI DSS benchmarks4647### Plugin Families48Nessus organizes plugins into families including:49- **Operating Systems**: Windows, Linux, macOS, Solaris50- **Network Devices**: Cisco, Juniper, Palo Alto, Fortinet51- **Web Servers**: Apache, Nginx, IIS, Tomcat52- **Databases**: Oracle, MySQL, PostgreSQL, MSSQL53- **Services**: DNS, SMTP, FTP, SSH, SNMP5455## Workflow5657### Step 1: Initial Configuration58```bash59# Start Nessus service60sudo systemctl start nessusd61sudo systemctl enable nessusd6263# CLI management with nessuscli64/opt/nessus/sbin/nessuscli update --all65/opt/nessus/sbin/nessuscli fix --list6667# Verify plugin count68/opt/nessus/sbin/nessuscli update --plugins-only69```7071### Step 2: Create Scan Policy72Configure a custom scan policy through the Nessus web UI at https://localhost:8834:73741. Navigate to Policies > New Policy > Advanced Scan752. Configure General settings: name, description, targets763. Set Discovery settings:77 - Host Discovery: Ping methods (ICMP, TCP SYN on ports 22,80,443)78 - Port Scanning: SYN scan on common ports or all 65535 ports79 - Service Discovery: Probe all ports for services804. Configure Assessment settings:81 - Accuracy: Override normal accuracy (reduce false positives)82 - Web Applications: Enable if scanning web servers835. Select Plugin families relevant to target environment8485### Step 3: Configure Credentials86For authenticated scanning, configure credentials under the Credentials tab:87- **SSH**: Username/password or SSH key pair88- **Windows**: Domain credentials via SMB, WMI89- **SNMP**: Community strings (v1/v2c) or USM credentials (v3)90- **Database**: Oracle, MySQL, PostgreSQL connection strings91- **VMware**: vCenter or ESXi credentials9293### Step 4: Run the Scan94```95# Using Nessus REST API via curl96# Authenticate and get token97curl -k -X POST https://localhost:8834/session \98 -d '{"username":"admin","password":"password"}' \99 -H "Content-Type: application/json"100101# Create scan102curl -k -X POST https://localhost:8834/scans \103 -H "X-Cookie: token=<TOKEN>" \104 -H "Content-Type: application/json" \105 -d '{106 "uuid": "<TEMPLATE_UUID>",107 "settings": {108 "name": "Infrastructure Scan Q1",109 "text_targets": "192.168.1.0/24",110 "enabled": true,111 "launch": "ON_DEMAND"112 }113 }'114115# Launch scan116curl -k -X POST https://localhost:8834/scans/<SCAN_ID>/launch \117 -H "X-Cookie: token=<TOKEN>"118119# Check scan status120curl -k -X GET https://localhost:8834/scans/<SCAN_ID> \121 -H "X-Cookie: token=<TOKEN>"122```123124### Step 5: Analyze Results125Nessus categorizes findings by severity:126- **Critical (CVSS 9.0-10.0)**: Immediate remediation required127- **High (CVSS 7.0-8.9)**: Remediate within 7-14 days128- **Medium (CVSS 4.0-6.9)**: Remediate within 30 days129- **Low (CVSS 0.1-3.9)**: Remediate during next maintenance window130- **Informational**: No immediate action required131132### Step 6: Export and Report133```bash134# Export via REST API135curl -k -X POST "https://localhost:8834/scans/<SCAN_ID>/export" \136 -H "X-Cookie: token=<TOKEN>" \137 -H "Content-Type: application/json" \138 -d '{"format":"nessus"}'139140# Supported formats: nessus (XML), csv, html, pdf141```142143## Best Practices1441. Schedule scans during maintenance windows to minimize production impact1452. Use authenticated scanning for 45-60% more vulnerability detection1463. Exclude fragile systems (medical devices, legacy SCADA) from aggressive scans1474. Maintain separate scan policies for different network segments1485. Update plugins before every scan to catch recently disclosed CVEs1496. Validate critical findings manually before escalating to remediation teams1507. Implement scan result trending to track remediation progress over time1518. Store scan results in Tenable.sc or Tenable.io for centralized management152153## Common Pitfalls154- Running unauthenticated scans only (misses 45-60% of vulnerabilities)155- Scanning without written authorization (legal and ethical violations)156- Ignoring scan performance impact on production systems157- Failing to tune plugins leading to excessive false positives158- Not validating scanner network connectivity before launching scans159- Using default scan policies without customization for the environment160161## Related Skills162- performing-authenticated-vulnerability-scan163- prioritizing-vulnerabilities-with-cvss-scoring164- implementing-continuous-vulnerability-monitoring165- performing-network-vulnerability-assessment