November 28, 2026 Free pentesting academy for Web2 & Web3
Nuclei Vulnerability Scanning: Templates, Workflows and Writing Your Own Checks
Share

Nuclei is a fast, template-driven vulnerability scanner from ProjectDiscovery. Its strength is a large library of community YAML templates plus the ability to write your own checks. This guide covers safe scanning, tuning, chaining Nuclei into a recon pipeline, and authoring custom templates — all for targets you are authorized to test.

Nuclei vulnerability scanner banner
Nuclei, a template-based scanner. Source: projectdiscovery/nuclei.

Installation

# Go
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest

# or download a release binary, then fetch the templates
nuclei -update-templates
nuclei -version

A safe first scan

Start non-intrusive. Exclude anything that fuzzes, floods or attempts logins.

nuclei -u https://staging.example.com \
  -exclude-tags intrusive,dos,fuzz,brute \
  -severity low,medium,high,critical \
  -rate-limit 50 \
  -o nuclei_report.txt

Some templates are intrusive by design. Exclude the dos, fuzz, intrusive and brute tags, set a rate limit, and agree a testing window with the system owner before running against anything live.

Selecting what to run

# By tag (e.g. only CVEs and misconfigurations)
nuclei -u https://staging.example.com -tags cve,misconfiguration

# By template path
nuclei -u https://staging.example.com -t http/technologies/

# By severity only
nuclei -l targets.txt -severity high,critical

Chaining a recon pipeline

Nuclei shines at the end of a discovery pipeline built from other ProjectDiscovery tools, against assets in your scope.

# Subdomains -> live hosts -> scan, staying inside an authorized scope
subfinder -d example.com -silent \
  | httpx -silent \
  | nuclei -exclude-tags intrusive,dos -severity medium,high,critical
Nuclei workflow: create a YAML template and run it on targets
The Nuclei workflow: write a template, run it against targets. Source: projectdiscovery/nuclei.

Writing a custom template

Templates are YAML. Here is a safe check that flags a missing security header — useful for your own apps.

id: missing-hsts-header

info:
  name: Missing Strict-Transport-Security header
  author: pentestwiki
  severity: low
  tags: misconfig,headers

http:
  - method: GET
    path:
      - "{{BaseURL}}"
    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200
      - type: word
        part: header
        words:
          - "Strict-Transport-Security"
        negative: true
# Validate and run your template
nuclei -validate -t missing-hsts-header.yaml
nuclei -u https://staging.example.com -t missing-hsts-header.yaml

Reducing false positives

  • Prefer templates with strong matchers — status and body and header conditions together.
  • Manually verify every high or critical result before it goes in a report.
  • Keep templates current with nuclei -update-templates.
  • Use -rate-limit and -c (concurrency) responsibly so you don’t disrupt the target.

Key takeaways

  • Start non-intrusive: exclude dos, fuzz, intrusive and brute, and rate-limit.
  • Filter by tag and severity so you run only what’s relevant.
  • Chain subfinder → httpx → nuclei for scope-wide coverage.
  • Custom YAML templates let you codify your own checks; always verify high-severity hits by hand.

Frequently asked questions

Is Nuclei safe to run against production?

Most templates send benign requests, but some are intrusive or fuzzing-based. Exclude tags such as dos, fuzz and intrusive, set rate limits and agree on a testing window with the system owner.

How do I reduce false positives?

Use templates with strong matchers (status plus body plus header conditions), verify every high or critical result manually and keep templates updated with nuclei -update-templates.

Was this tutorial useful?
Share

The pentestwiki.org editorial team: practising penetration testers, red teamers and smart contract auditors who write, test and peer-review every tutorial before publication.

Need a professional assessment? Our team performs authorized penetration tests and smart contract audits.
See services

Get new tutorials in your inbox

One email when a new guide, cheat sheet or Web3 security write-up is published. No spam, unsubscribe in one click.

By subscribing you accept our Privacy Policy. Unsubscribe anytime.