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.
Anti-Rationalization Table
| Rationalization |
Reality |
| "I'll figure it out as I go" |
A structured approach saves time and reduces errors. Follow the workflow in this skill rather than improvising. |
| "I already know this topic" |
Familiarity breeds shortcuts. Use the checklist to verify you haven't missed critical steps. |
| "This doesn't apply to my situation" |
The patterns here generalize across contexts. Adapt, don't skip — the underlying principles hold. |
| "One more tool will fix it" |
Adding complexity rarely solves process gaps. Master the core workflow first. |
When to Use
Trigger phrases:
"scanning infrastructure with nessus"
"Tenable Nessus is the industry-leading vulnerability scanner used to identify se"
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
This section covers core concepts for scanning infrastructure with nessus.
- Ensure all prerequisites are met before proceeding
- Follow the documented workflow steps in sequence
- Record results and any anomalies encountered during this phase
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
- Scope the task — define objectives, boundaries, and success criteria
- Gather information — collect all necessary data and context before proceeding
- Execute the core workflow — follow the domain-specific steps methodically
- Validate results — verify outputs against expected outcomes or baselines
- Document findings — record results, anomalies, and recommendations
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
When NOT to Use
- You need to perform manual testing (use performing-* skills)
- Task is about analyzing scan results (use analyzing-* skills)
- You need to implement scanning tools (use implementing-* skills)
- Task is about building scanning infrastructure (use building-* skills)
- You don't have network access to targets
- Task requires compliance validation (use auditing-* skills)
Red Flags
- Performing actions without explicit written authorization from the asset owner
- Testing against production systems without a defined scope and rules of engagement
- Capturing traffic on networks without authorization or privacy considerations
- Leaving packet captures containing sensitive data unencrypted on disk
- Deploying inline blocking rules without testing for false positives first
Verification
- All steps executed successfully against a test environment before production use
- Output documented with screenshots or logs demonstrating expected behavior
- Captures verified as complete with no dropped packets
- Detection rules tested against known-benign traffic for false positive rate
- Alert thresholds validated and tuned to reduce noise
Process
- Analyze the task requirements
- Apply domain expertise
- Verify output quality
1---2name: scanning-infrastructure-with-nessus3description: Use when tenable Nessus is the industry-leading vulnerability scanner4 used to identify security weaknesses across network infrastructure including servers,5 workstations, network devices, and operating systems. Use when working with scanning6 infrastructure with nessus.7domain: cybersecurity8subdomain: vulnerability-management9tags:10- vulnerability-management11- cve12- nessus13- tenable14- infrastructure-scanning15- risk16version: '1.0'17author: oyi7718license: Apache-2.019nist_csf:20- ID.RA-0121- ID.RA-0222- ID.IM-0223- ID.RA-0624category: cybersecurity25metadata:26 source: https://skillmd.com/skills/oyi77/scanning-infrastructure-with-nessus27---2829# Scanning Infrastructure with Nessus3031## Overview32Tenable 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.33343536## Anti-Rationalization Table3738| Rationalization | Reality |39|---|---|40| "I'll figure it out as I go" | A structured approach saves time and reduces errors. Follow the workflow in this skill rather than improvising. |41| "I already know this topic" | Familiarity breeds shortcuts. Use the checklist to verify you haven't missed critical steps. |42| "This doesn't apply to my situation" | The patterns here generalize across contexts. Adapt, don't skip — the underlying principles hold. |43| "One more tool will fix it" | Adding complexity rarely solves process gaps. Master the core workflow first. |4445## When to Use46**Trigger phrases:**47- "scanning infrastructure with nessus"48- "Tenable Nessus is the industry-leading vulnerability scanner used to identify se"495051- When conducting security assessments that involve scanning infrastructure with nessus52- When following incident response procedures for related security events53- When performing scheduled security testing or auditing activities54- When validating security controls through hands-on testing5556## Prerequisites57- Nessus Professional or Essentials license installed and activated58- Network access to target systems (firewall rules allowing scanner IP)59- Administrative credentials for authenticated scanning60- Understanding of TCP/IP networking and common services61- Written authorization for scanning target environments6263## Core Concepts6465This section covers core concepts for scanning infrastructure with nessus.6667- Ensure all prerequisites are met before proceeding68- Follow the documented workflow steps in sequence69- Record results and any anomalies encountered during this phase70### Nessus Architecture71Nessus 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.7273### Scan Types741. **Host Discovery** - Identifies live hosts using ICMP, TCP, UDP, and ARP752. **Basic Network Scan** - Default policy covering common vulnerabilities763. **Advanced Scan** - Custom policy with granular plugin selection774. **Credentialed Patch Audit** - Authenticated scan checking installed patches785. **Web Application Tests** - Scans for web-specific vulnerabilities796. **Compliance Audit** - Checks against CIS, DISA STIG, PCI DSS benchmarks8081### Plugin Families82Nessus organizes plugins into families including:83- **Operating Systems**: Windows, Linux, macOS, Solaris84- **Network Devices**: Cisco, Juniper, Palo Alto, Fortinet85- **Web Servers**: Apache, Nginx, IIS, Tomcat86- **Databases**: Oracle, MySQL, PostgreSQL, MSSQL87- **Services**: DNS, SMTP, FTP, SSH, SNMP8889## Workflow90911. **Scope the task** — define objectives, boundaries, and success criteria922. **Gather information** — collect all necessary data and context before proceeding933. **Execute the core workflow** — follow the domain-specific steps methodically944. **Validate results** — verify outputs against expected outcomes or baselines955. **Document findings** — record results, anomalies, and recommendations96### Step 1: Initial Configuration97```bash98# Start Nessus service99sudo systemctl start nessusd100sudo systemctl enable nessusd101102# CLI management with nessuscli103/opt/nessus/sbin/nessuscli update --all104/opt/nessus/sbin/nessuscli fix --list105106# Verify plugin count107/opt/nessus/sbin/nessuscli update --plugins-only108```109110### Step 2: Create Scan Policy111Configure a custom scan policy through the Nessus web UI at https://localhost:8834:1121131. Navigate to Policies > New Policy > Advanced Scan1142. Configure General settings: name, description, targets1153. Set Discovery settings:116 - Host Discovery: Ping methods (ICMP, TCP SYN on ports 22,80,443)117 - Port Scanning: SYN scan on common ports or all 65535 ports118 - Service Discovery: Probe all ports for services1194. Configure Assessment settings:120 - Accuracy: Override normal accuracy (reduce false positives)121 - Web Applications: Enable if scanning web servers1225. Select Plugin families relevant to target environment123124### Step 3: Configure Credentials125For authenticated scanning, configure credentials under the Credentials tab:126- **SSH**: Username/password or SSH key pair127- **Windows**: Domain credentials via SMB, WMI128- **SNMP**: Community strings (v1/v2c) or USM credentials (v3)129- **Database**: Oracle, MySQL, PostgreSQL connection strings130- **VMware**: vCenter or ESXi credentials131132### Step 4: Run the Scan133```134# Using Nessus REST API via curl135# Authenticate and get token136curl -k -X POST https://localhost:8834/session \137 -d '{"username":"admin","password":"password"}' \138 -H "Content-Type: application/json"139140# Create scan141curl -k -X POST https://localhost:8834/scans \142 -H "X-Cookie: token=<TOKEN>" \143 -H "Content-Type: application/json" \144 -d '{145 "uuid": "<TEMPLATE_UUID>",146 "settings": {147 "name": "Infrastructure Scan Q1",148 "text_targets": "192.168.1.0/24",149 "enabled": true,150 "launch": "ON_DEMAND"151 }152 }'153154# Launch scan155curl -k -X POST https://localhost:8834/scans/<SCAN_ID>/launch \156 -H "X-Cookie: token=<TOKEN>"157158# Check scan status159curl -k -X GET https://localhost:8834/scans/<SCAN_ID> \160 -H "X-Cookie: token=<TOKEN>"161```162163### Step 5: Analyze Results164Nessus categorizes findings by severity:165- **Critical (CVSS 9.0-10.0)**: Immediate remediation required166- **High (CVSS 7.0-8.9)**: Remediate within 7-14 days167- **Medium (CVSS 4.0-6.9)**: Remediate within 30 days168- **Low (CVSS 0.1-3.9)**: Remediate during next maintenance window169- **Informational**: No immediate action required170171### Step 6: Export and Report172```bash173# Export via REST API174curl -k -X POST "https://localhost:8834/scans/<SCAN_ID>/export" \175 -H "X-Cookie: token=<TOKEN>" \176 -H "Content-Type: application/json" \177 -d '{"format":"nessus"}'178179# Supported formats: nessus (XML), csv, html, pdf180```181182## Best Practices1831. Schedule scans during maintenance windows to minimize production impact1842. Use authenticated scanning for 45-60% more vulnerability detection1853. Exclude fragile systems (medical devices, legacy SCADA) from aggressive scans1864. Maintain separate scan policies for different network segments1875. Update plugins before every scan to catch recently disclosed CVEs1886. Validate critical findings manually before escalating to remediation teams1897. Implement scan result trending to track remediation progress over time1908. Store scan results in Tenable.sc or Tenable.io for centralized management191192## Common Pitfalls193- Running unauthenticated scans only (misses 45-60% of vulnerabilities)194- Scanning without written authorization (legal and ethical violations)195- Ignoring scan performance impact on production systems196- Failing to tune plugins leading to excessive false positives197- Not validating scanner network connectivity before launching scans198- Using default scan policies without customization for the environment199200## Related Skills201- performing-authenticated-vulnerability-scan202- prioritizing-vulnerabilities-with-cvss-scoring203- implementing-continuous-vulnerability-monitoring204- performing-network-vulnerability-assessment205## When NOT to Use206207- You need to perform manual testing (use performing-* skills)208- Task is about analyzing scan results (use analyzing-* skills)209- You need to implement scanning tools (use implementing-* skills)210- Task is about building scanning infrastructure (use building-* skills)211- You don't have network access to targets212- Task requires compliance validation (use auditing-* skills)213214215## Red Flags216217- Performing actions without explicit written authorization from the asset owner218- Testing against production systems without a defined scope and rules of engagement219- Capturing traffic on networks without authorization or privacy considerations220- Leaving packet captures containing sensitive data unencrypted on disk221- Deploying inline blocking rules without testing for false positives first222## Verification223224- All steps executed successfully against a test environment before production use225- Output documented with screenshots or logs demonstrating expected behavior226- Captures verified as complete with no dropped packets227- Detection rules tested against known-benign traffic for false positive rate228- Alert thresholds validated and tuned to reduce noise229230## Process2312321. Analyze the task requirements2332. Apply domain expertise2343. Verify output quality