Back to skills
SKILL.md
Nuclei Scan
BSecuritynuclei: template selection, CVE scans, custom template authoring
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added November 29, 2026
Works with
Security analysis
88/100- Accesses sensitive system or user directories
npx -y skills add blackfoxxx/kestrel --skill nuclei-scan --agent claude-codeAre you the author of Nuclei Scan?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/blackfoxxx-nuclei-scan)---
name: nuclei-scan
description: "nuclei: template selection, CVE scans, custom template authoring"
metadata:
tags: "nuclei,scan,cve,poc,vulnerability,vulnerability scanning,template,template,bulk detection,projectdiscovery"
category: "tool"
---
# Nuclei Vulnerability-Scanning Methodology
Nuclei is ProjectDiscovery's open-source, template-based vulnerability scanner. Its core value: a **community-maintained template library** where every template is a verified PoC, which is more reliable than crafting your own payload.
## Scanning strategy
Nuclei has 9000+ templates. An unrestricted full scan (`nuclei -u target`) takes 10-30 minutes — a fatal waste of time in a competition. Narrow the scope with `-t` (specify a template directory) or `-tags` (specify tags), and a targeted scan usually finishes within tens of seconds.
In addition, Nuclei's template matching is not 100% accurate. After finding a critical vulnerability, reproduce it manually to confirm, so you don't waste time on false positives.
## Phase 1: Targeted scanning (recommended)
Choose the matching templates based on fingerprinting results rather than running a full scan:
```bash
# 1. exact scan by template ID / CVE number (fastest, seconds)
nuclei -u http://target -id CVE-2021-44228
# 2. filter by product name (tens of seconds)
nuclei -u http://target -t cves/ -tags apache
nuclei -u http://target -t cves/ -tags tomcat
nuclei -u http://target -t cves/ -tags wordpress
# 3. scan only high-severity CVEs (1-3 minutes)
nuclei -u http://target -t cves/ -severity critical,high
# 4. scan by vulnerability type
nuclei -u http://target -t vulnerabilities/ -tags rce
nuclei -u http://target -t vulnerabilities/ -tags sqli
nuclei -u http://target -t vulnerabilities/ -tags lfi
```
### Common template directories
| Directory | Contents | Use case |
|------|------|---------|
| `cves/` | Known CVE PoCs | Zone 2 CVE verification |
| `vulnerabilities/` | General vulnerability detection | In-depth web testing |
| `misconfiguration/` | Misconfigurations | Cloud security, service hardening |
| `default-logins/` | Default credentials | Middleware admin consoles |
| `exposures/` | Sensitive information disclosure | Information-gathering phase |
| `takeovers/` | Subdomain takeover | Domain-asset attacks |
## Phase 2: Template search and payload extraction
When you need to exploit manually (nuclei can't detect it directly, or you need a custom payload), extract the key information from the template:
```bash
# search the local template library
find ~/nuclei-templates/ -name "*CVE-2021-42013*" 2>/dev/null
find ~/nuclei-templates/ -name "*apache*" -path "*/cves/*" 2>/dev/null
find ~/nuclei-templates/ -name "*log4j*" 2>/dev/null
# search template contents by keyword
grep -rl "apache 2.4.49" ~/nuclei-templates/http/cves/ 2>/dev/null
grep -rl "tomcat.*rce" ~/nuclei-templates/http/cves/ 2>/dev/null
# read a template to extract payloads
cat ~/nuclei-templates/http/cves/2021/CVE-2021-42013.yaml
```
### Reading the key template fields
```yaml
# template structure example
id: CVE-2021-42013
info:
name: Apache HTTP Server Path Traversal
severity: critical # <- vulnerability severity
description: ... # <- description and exploitation conditions
http:
- raw: # <- raw HTTP request (directly reusable as curl)
- |
GET /cgi-bin/.%2e/%2e%2e/%2e%2e/etc/passwd HTTP/1.1
Host: {{Hostname}}
matchers: # <- success criteria
- type: regex
regex:
- "root:.*:0:0:"
extractors: # <- extracted data (e.g. version, keys)
- type: regex
regex:
- "root:.*"
```
**Extracting a payload from a template for manual exploitation:**
```bash
# extract the request path and method from the raw field
cat template.yaml | grep -A5 "raw:"
# convert to a curl command
curl -s "http://target/cgi-bin/.%2e/%2e%2e/%2e%2e/etc/passwd"
# if the template has a POST body
curl -s -X POST http://target/api -d '{"payload": "..."}'
```
## Phase 3: Scanning multiple targets
When you have several targets:
```bash
# read the target list from a file
echo "http://target1" > targets.txt
echo "http://target2" >> targets.txt
nuclei -l targets.txt -t cves/ -severity critical,high
# pipe together with httpx
cat urls.txt | httpx -silent | nuclei -t cves/ -severity critical,high
```
## Phase 4: Result analysis and verification
Nuclei output format:
```
[CVE-2021-42013] [http] [critical] http://target/cgi-bin/.%2e/...
[CVE-2022-26134] [http] [critical] http://target/wiki/%24%7B...%7D
```
**Critical findings must be verified manually:**
1. Reproduce the request nuclei reported and confirm it is not a false positive
2. Check whether the exploitation prerequisites are met (e.g. whether mod_cgi is enabled)
3. Try to escalate from information disclosure to RCE
## Common tags quick reference
| Tag | Description | Example |
|------|------|------|
| `cve` | All CVEs | `-tags cve` |
| `rce` | Remote code execution | `-tags rce` |
| `sqli` | SQL injection | `-tags sqli` |
| `lfi` | Local file inclusion | `-tags lfi` |
| `ssrf` | SSRF | `-tags ssrf` |
| `xss` | XSS | `-tags xss` |
| `default-login` | Default credentials | `-tags default-login` |
| `exposure` | Information disclosure | `-tags exposure` |
| `apache` | Apache-related | `-tags apache` |
| `tomcat` | Tomcat-related | `-tags tomcat` |
| `wordpress` | WordPress | `-tags wordpress` |
| `jenkins` | Jenkins | `-tags jenkins` |
| `spring` | Spring framework | `-tags spring` |
## Performance-tuning options
```bash
# control concurrency (default 25; lower for few targets to avoid bans)
nuclei -u http://target -t cves/ -c 10
# rate limit
nuclei -u http://target -t cves/ -rl 50 # 50 requests per second
# timeout settings
nuclei -u http://target -t cves/ -timeout 10
# output only found vulnerabilities (silent mode)
nuclei -u http://target -t cves/ -silent
# output to file (JSONL for analysis; v3 uses -jsonl/-j, the old -json is gone)
nuclei -u http://target -t cves/ -jsonl -o results.jsonl
```
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.