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-nessus
3description: Tenable Nessus is the industry-leading vulnerability scanner used to
4 identify security weaknesses across network infrastructure including servers, workstations,
5 network devices, and operating systems.
6domain: cybersecurity
7subdomain: vulnerability-management
8tags:
9- vulnerability-management
10- cve
11- nessus
12- tenable
13- infrastructure-scanning
14- risk
15version: '1.0'
16author: mahipal
17license: Apache-2.0
18nist_csf:
19- ID.RA-01
20- ID.RA-02
21- ID.IM-02
22- ID.RA-06
23mitre_attack:
24- T1190
25- T1203
26- T1068
27- T1046
28source: https://github.com/mukul975/Anthropic-Cybersecurity-Skills
29source_commit: 04450304b12645cb2b974ab96d28c0664758a88d
30metadata:
31 source: https://skillmd.com/skills/yanacuti1121/scanning-infrastructure-with-nessus
32---
33
34# Scanning Infrastructure with Nessus
35
36## Overview
37Tenable 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.
38
39
40## When to Use
41
42- When conducting security assessments that involve scanning infrastructure with nessus
43- When following incident response procedures for related security events
44- When performing scheduled security testing or auditing activities
45- When validating security controls through hands-on testing
46
47## Prerequisites
48- Nessus Professional or Essentials license installed and activated
49- Network access to target systems (firewall rules allowing scanner IP)
50- Administrative credentials for authenticated scanning
51- Understanding of TCP/IP networking and common services
52- Written authorization for scanning target environments
53
54## Core Concepts
55
56### Nessus Architecture
57Nessus 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.
58
59### Scan Types
601. **Host Discovery** - Identifies live hosts using ICMP, TCP, UDP, and ARP
612. **Basic Network Scan** - Default policy covering common vulnerabilities
623. **Advanced Scan** - Custom policy with granular plugin selection
634. **Credentialed Patch Audit** - Authenticated scan checking installed patches
645. **Web Application Tests** - Scans for web-specific vulnerabilities
656. **Compliance Audit** - Checks against CIS, DISA STIG, PCI DSS benchmarks
66
67### Plugin Families
68Nessus organizes plugins into families including:
69- **Operating Systems**: Windows, Linux, macOS, Solaris
70- **Network Devices**: Cisco, Juniper, Palo Alto, Fortinet
71- **Web Servers**: Apache, Nginx, IIS, Tomcat
72- **Databases**: Oracle, MySQL, PostgreSQL, MSSQL
73- **Services**: DNS, SMTP, FTP, SSH, SNMP
74
75## Workflow
76
77### Step 1: Initial Configuration
78```bash
79# Start Nessus service
80sudo systemctl start nessusd
81sudo systemctl enable nessusd
82
83# CLI management with nessuscli
84/opt/nessus/sbin/nessuscli update --all
85/opt/nessus/sbin/nessuscli fix --list
86
87# Verify plugin count
88/opt/nessus/sbin/nessuscli update --plugins-only
89```
90
91### Step 2: Create Scan Policy
92Configure a custom scan policy through the Nessus web UI at https://localhost:8834:
93
941. Navigate to Policies > New Policy > Advanced Scan
952. Configure General settings: name, description, targets
963. Set Discovery settings:
97 - Host Discovery: Ping methods (ICMP, TCP SYN on ports 22,80,443)
98 - Port Scanning: SYN scan on common ports or all 65535 ports
99 - Service Discovery: Probe all ports for services
1004. Configure Assessment settings:
101 - Accuracy: Override normal accuracy (reduce false positives)
102 - Web Applications: Enable if scanning web servers
1035. Select Plugin families relevant to target environment
104
105### Step 3: Configure Credentials
106For authenticated scanning, configure credentials under the Credentials tab:
107- **SSH**: Username/password or SSH key pair
108- **Windows**: Domain credentials via SMB, WMI
109- **SNMP**: Community strings (v1/v2c) or USM credentials (v3)
110- **Database**: Oracle, MySQL, PostgreSQL connection strings
111- **VMware**: vCenter or ESXi credentials
112
113### Step 4: Run the Scan
114```
115# Using Nessus REST API via curl
116# Authenticate and get token
117curl -k -X POST https://localhost:8834/session \
118 -d '{"username":"admin","password":"password"}' \
119 -H "Content-Type: application/json"
120
121# Create scan
122curl -k -X POST https://localhost:8834/scans \
123 -H "X-Cookie: token=<TOKEN>" \
124 -H "Content-Type: application/json" \
125 -d '{
126 "uuid": "<TEMPLATE_UUID>",
127 "settings": {
128 "name": "Infrastructure Scan Q1",
129 "text_targets": "192.168.1.0/24",
130 "enabled": true,
131 "launch": "ON_DEMAND"
132 }
133 }'
134
135# Launch scan
136curl -k -X POST https://localhost:8834/scans/<SCAN_ID>/launch \
137 -H "X-Cookie: token=<TOKEN>"
138
139# Check scan status
140curl -k -X GET https://localhost:8834/scans/<SCAN_ID> \
141 -H "X-Cookie: token=<TOKEN>"
142```
143
144### Step 5: Analyze Results
145Nessus categorizes findings by severity:
146- **Critical (CVSS 9.0-10.0)**: Immediate remediation required
147- **High (CVSS 7.0-8.9)**: Remediate within 7-14 days
148- **Medium (CVSS 4.0-6.9)**: Remediate within 30 days
149- **Low (CVSS 0.1-3.9)**: Remediate during next maintenance window
150- **Informational**: No immediate action required
151
152### Step 6: Export and Report
153```bash
154# Export via REST API
155curl -k -X POST "https://localhost:8834/scans/<SCAN_ID>/export" \
156 -H "X-Cookie: token=<TOKEN>" \
157 -H "Content-Type: application/json" \
158 -d '{"format":"nessus"}'
159
160# Supported formats: nessus (XML), csv, html, pdf
161```
162
163## Best Practices
1641. Schedule scans during maintenance windows to minimize production impact
1652. Use authenticated scanning for 45-60% more vulnerability detection
1663. Exclude fragile systems (medical devices, legacy SCADA) from aggressive scans
1674. Maintain separate scan policies for different network segments
1685. Update plugins before every scan to catch recently disclosed CVEs
1696. Validate critical findings manually before escalating to remediation teams
1707. Implement scan result trending to track remediation progress over time
1718. Store scan results in Tenable.sc or Tenable.io for centralized management
172
173## Common Pitfalls
174- Running unauthenticated scans only (misses 45-60% of vulnerabilities)
175- Scanning without written authorization (legal and ethical violations)
176- Ignoring scan performance impact on production systems
177- Failing to tune plugins leading to excessive false positives
178- Not validating scanner network connectivity before launching scans
179- Using default scan policies without customization for the environment
180
181## Related Skills
182- performing-authenticated-vulnerability-scan
183- prioritizing-vulnerabilities-with-cvss-scoring
184- implementing-continuous-vulnerability-monitoring
185- performing-network-vulnerability-assessment