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