Nuclei

On this page 7

Nuclei is an open-source, template-based vulnerability scanner developed by ProjectDiscovery and written in Go. It sends precisely defined requests to targets and evaluates the responses against matching rules written in YAML templates, which lets it confirm known vulnerabilities, misconfigurations, exposed files and outdated software at high speed and with a low false positive rate.

In security testing, Nuclei sits between broad network scanners and manual penetration testing. In cybersecurity practice it is used by bug bounty hunters, red teams, attack surface management platforms and DevSecOps pipelines, largely because its community template library often covers newly disclosed vulnerabilities within days.

How Nuclei templates drive the scan

Every Nuclei check is a template: a YAML file that declares an identifier, metadata, one or more requests and the matchers that decide whether a finding exists. The engine itself contains no vulnerability logic; it simply executes templates in parallel against the target list, which keeps the tool generic and the checks transparent.

A typical template for a known flaw sends an HTTP request to a specific path, then requires several conditions at once, such as a status code of 200, a characteristic string in the body and a particular header. Combining conditions with and logic is what keeps Nuclei findings precise compared with banner-based scanners. Extractors can additionally pull values, such as version numbers or tokens, from responses for later steps.

The following table describes the main components of a template.

ComponentPurposeExample content
id and infoIdentify the check and its metadataName, author, severity, tags, CVE
Protocol blockDefine what is sent to the targethttp, dns, network, ssl
MatchersDecide whether the issue existsWord, regex, status, binary, DSL
ExtractorsCapture data from responsesVersion string, cookie, token
Variables and payloadsParameterize requestsWordlists, path lists, credentials
Flow and workflowsChain requests or templatesRun a CVE check only if a product is detected
Core building blocks of a Nuclei template

Supported protocols and template categories

Nuclei supports multiple protocols, not only web traffic, which allows one tool to cover much of an external attack surface. The public template repository organizes thousands of checks into categories that reflect the type of issue.

ProtocolTypical checksNotes
HTTPCVEs, exposed panels, misconfigurationsLargest share of templates
DNSSubdomain takeover, missing recordsUseful for domain hygiene
Network (TCP)Exposed services, default bannersRaw socket requests
SSL/TLSWeak ciphers, expired certificatesCertificate and protocol analysis
HeadlessDOM-based issues in a browserSlower and resource heavy
File and codeSecrets in local filesUsed for local or pipeline scanning
Protocols supported by Nuclei

Common template categories include cves, exposures for leaked files and backups, misconfiguration, default-logins, takeovers and technologies for fingerprinting. Each template carries a severity rating from info to critical, which allows scans to be filtered with options such as -severity critical,high or by tags.

Nuclei compared with other security testing tools

Nuclei is a confirmation scanner for known issues, not a crawler or exploitation framework. Comparing it with neighboring tools clarifies where it belongs in a testing workflow.

ToolMain roleDifference from Nuclei
NucleiTemplate-driven detection of known issuesReference point
NmapHost and port discovery, service detectionFinds services; Nuclei tests them
NessusBroad authenticated vulnerability scanningCommercial, deeper host coverage
OWASP ZAPDynamic web application testing with crawlingDiscovers unknown flaws in app logic
Burp SuiteManual and automated web testing proxyBuilt for interactive analysis
MetasploitExploitation and post-exploitationExploits rather than detects
Position of Nuclei among related tools

A typical reconnaissance pipeline chains tools: subdomain enumeration produces hosts, a probe identifies live web servers and Nuclei runs templates against the live targets. Findings then go to a human tester for manual validation and deeper exploitation.

Using Nuclei responsibly in practice

Running Nuclei well depends on scope control, rate limiting and template selection. The default rate is fast enough to trigger web application firewalls or overload fragile systems, so production scans usually set explicit limits with options such as -rate-limit and -concurrency.

  • Scan only authorized targets: Nuclei sends real requests, and some templates test default credentials.
  • Update templates regularly with -update-templates so that new CVE checks are available.
  • Exclude intrusive templates with tags such as dos or fuzz when testing production systems.
  • Write custom templates for internal products and recurring findings from past tests.
  • Integrate into CI/CD to block releases that reintroduce known exposures.

Limitations and common misconceptions

Nuclei finds only what its templates describe. A clean scan therefore means that no known pattern matched, not that the target is secure, and it says nothing about business logic flaws or authorization problems such as IDOR.

Quality also varies across community-contributed templates. Some rely on weak matchers and produce false positives, while others are intrusive. Because templates can execute code in some protocols, teams should review third-party templates before running them, and recent versions require signed templates for code execution.

Another misconception is that Nuclei replaces authenticated scanning. By default it tests what an anonymous client can reach, so vulnerabilities behind a login page remain invisible unless the tester supplies session cookies or headers and adjusts the templates. Version-based templates can also report a flaw on a system that has received a backported patch without a version change, which is why every high or critical finding deserves manual confirmation before remediation tickets are raised or reports are delivered to clients.

The short version

Picture a building inspector carrying a thick binder of checklists, one for every known way a building can fail. The inspector walks to each door and window, runs the matching checklist and writes down only the problems that clearly match. Nuclei is that inspector for websites and servers.

Each checklist is a small template, and anyone can write a new one when a new problem is discovered. It finds known problems quickly, but it cannot find problems nobody has described yet.

Where it makes a difference

A mid-sized software company manages about 400 public subdomains across several cloud accounts. Its two-person security team schedules a nightly Nuclei scan against the live hosts discovered by its asset inventory, limited to medium, high and critical templates and capped at 50 requests per second.

One morning, a newly published template for a file-sharing appliance vulnerability matches on a forgotten test server that a former project team never decommissioned. The team confirms the finding manually, takes the server offline and adds a custom template for the company’s own staging naming pattern. The exposure is closed within hours of the template’s release, long before routine quarterly penetration testing would have reached that host.