Nuclei Guide: Automated Vulnerability Scanning
Learn Nuclei for fast template-based vulnerability scanning with customizable templates, workflow automation, and integration into CI/CD pipelines.
Why You Need Nuclei
You need to scan targets against hundreds of known CVEs and misconfiguration checks — Nuclei runs YAML-based templates that define exactly what to detect. Its community-driven template library covers everything from critical CVEs to cloud misconfigurations, and new templates are published daily.
Prerequisites
How Nuclei Works
Requests: HTTP or network requests to the target.
Matchers: Conditions that determine if a vulnerability exists.
Extractors: Rules to extract information from responses.
Installation
sudo apt install nuclei
nuclei -update-templates
Basic Usage
nuclei -u http://target.com
nuclei -u http://target.com -severity critical,high,medium
Essential Options
| Option | Description |
|--------|-------------|
| -u URL | Target URL |
| -t TEMPLATE | Template file/directory |
| -severity LEVELS | Severity filter |
| -tags TAGS | Template tags |
| -o FILE | Output file |
| -json | JSON output |
| -rate-limit RATE | Rate limit |
Template Categories
nuclei -u http://target.com -tags cve
nuclei -u http://target.com -tags wordpress
nuclei -u http://target.com -tags misconfig
nuclei -u http://target.com -tags exposure
Advanced Usage
nuclei -l targets.txt -t cves/ -o results.txt
nuclei -u http://target.com -rate-limit 50 -headless
Custom Template Example
id: custom-check
info:
name: Custom Security Check
severity: medium
description: Detects a specific misconfiguration
requests:
- method: GET
path:
- "{{BaseURL}}/sensitive-file.txt"
matchers:
- type: word
words:
- "sensitive"
Common Mistakes
Running without updated templates. No rate limiting. Not verifying results.
Best Practices
Update templates regularly. Use severity filters. Integrate into CI/CD.
Related Tools
Related Articles
Summary
Nuclei is a modern template-based vulnerability scanner. Its community-driven template library covers thousands of security checks.