Nuclei
Nuclei is a fast TEMPLATE-based scanner: it checks for thousands of known vulnerabilities, exposures, and misconfigurations by sending requests defined in YAML files. It’s key in bug bounty recon and exposure management (see Recon automation, Vulnerability management).
What it is
Section titled “What it is”Nuclei (ProjectDiscovery, open source) is a template-driven scanning engine. Each YAML template describes how to detect something specific (a CVE, an exposure, a misconfiguration). The community maintains the nuclei-templates repository, with thousands of up-to-date checks.
What it is for
Section titled “What it is for”- Mass-scan a list of hosts for known flaws.
- Detect technologies, exposed panels, and insecure configurations.
- Quickly verify whether a specific CVE affects a target.
- Integrate into recon pipelines (output of
httpx,subfinder…).
Installation
Section titled “Installation”# with Gogo install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest# download/update the community templatesnuclei -update-templatesnuclei -versionBasic usage
Section titled “Basic usage”nuclei -u https://host # scan with default templatesnuclei -l hosts.txt # target list (one per line)nuclei -u https://host -tags cve,exposure # filter by tagsnuclei -u https://host -severity critical,high # only high/critical severityTemplates are selected by tag (-tags), path (-t), id (-id), or severity (-severity).
Advanced usage
Section titled “Advanced usage”Fine template selection and recon pipeline:
# a specific template or foldernuclei -u https://host -t http/cves/2021/CVE-2021-44228.yamlnuclei -l hosts.txt -t http/exposures/ -t http/misconfiguration/# exclude noisy tagsnuclei -l hosts.txt -etags dos,fuzz# typical pipeline: subdomains -> alive -> nucleisubfinder -d domain.com -silent | httpx -silent | nuclei -severity high,criticalSpeed and output control (important to avoid overloading or tripping the WAF):
nuclei -l hosts.txt -rl 150 -c 25 -timeout 10 # rate-limit, concurrency, timeoutnuclei -l hosts.txt -jsonl -o output.jsonl # structured JSONL outputnuclei -l hosts.txt -stats # live statisticsMinimal template (YAML) to understand the format:
id: example-exposureinfo: name: Exposed .env file author: pwnversity severity: highhttp: - method: GET path: - "{{BaseURL}}/.env" matchers: - type: word words: - "DB_PASSWORD"For out-of-band vulns (blind SSRF/RCE), Nuclei integrates interactsh; use -ni to disable it if you don’t want OOB interactions.
Tricks / workflow
Section titled “Tricks / workflow”flowchart LR
A[subfinder domains] --> B[httpx live hosts]
B --> C[nuclei -severity high,critical]
C --> D{Findings}
D -->|CVE| E[Verify manually]
D -->|Exposure| F[Report with proof]
C -.->|-update-templates| G[(nuclei-templates)]
- Update templates (
-update-templates) before each campaign. - Filter by
-severityand-tagsto cut noise and time. - Nuclei confirms but doesn’t replace manual verification: validate each finding before reporting.
- Chain it with
httpxto scan only genuinely live hosts.
Detection (Blue Team)
Section titled “Detection (Blue Team)”- Nuclei generates bursts of requests toward paths and parameters characteristic of the templates (
/.env,/.git/config, CVE payloads): easy to spot in the WAF and access logs. - Its default
User-Agentusually containsNuclei; filterable, though customizable with-H. - OOB checks generate interactions toward
interactshdomains (or the configured server): watch for unexpected outbound DNS/HTTP.
Checklist
Section titled “Checklist”- Targets within authorized scope.
- Templates updated (
-update-templates). - Filtered by severity/tags to focus the scan.
- Rate-limit tuned to the environment (
-rl,-c). - Findings verified manually before reporting.