Skip to content

What Nuclei Is

Ask a web server a question and it answers with more than the page you asked for. It answers with headers naming its software, sometimes a version. It answers paths it should perhaps keep to itself — status pages, admin panels, setup wizards left over from installation day. None of this is hidden; anyone can ask. What nobody can do by hand is ask thousands of these questions, of every server they look after, every week, and notice what changed. That is the job nuclei exists to do.

Nuclei is a scanner built on one idea: a check is a file. Each check is a template, a small document written in YAML (a plain-text format for structured data) that states three things:

  • What to ask. One or more requests — most often an ordinary web request for a particular path, though the collection also holds templates that speak DNS, raw network protocols, and others.
  • What an interesting answer looks like. The template carries matchers: tests against the response. Did it answer 200? Does the body contain this word? Does the header not contain that one?
  • What to call it. A name, a severity, and a description, so the result reads as a finding a human can act on, not a hex dump.

The engine — nuclei itself — is the cook, not the cookbook. It loads templates, sends their requests at the targets you give it, tests the answers against the matchers, and prints the ones that matched. The knowledge lives in the templates, which is why the collection matters as much as the program: on the build machine the official collection (version 10.5.1) held 14,104 YAML files, of which 11,718 were web templates. New checks arrive as new files, written by the project's maintainers and a large crowd of contributors, without the engine changing at all.

A template may also carry extractors, which pull a value out of a response and attach it to the finding — the version string from a banner, say, so the report shows not just "something matched" but what it said.

Keeping the shape of the thing straight keeps the results straight:

  • A match is a claim, not a proof. A template fires when a response looks the way its author expected a certain condition to look. Sometimes the look is exact — a specific product's specific page. Sometimes it is circumstantial — a missing header, an error message. Chapter 6 returns to this, because reading nuclei output well is mostly the art of knowing which kind you are holding.
  • Severity is the template author's opinion. It travels with the template, and it is a starting point for your judgement, not a substitute for it. An info finding can matter (a status page describing your whole network answers anyone who asks) and a high can be a false alarm on a system that only resembles the vulnerable one.
  • Nuclei checks; it does not fix, and this guide does not exploit. The templates in the collection are overwhelmingly detectors: they ask and observe. A small number go further — the collection tags them, and the default settings leave some categories out entirely (chapter 6) — but the stance of this guide is detection only.

One more piece of the shape, because it decides how every later chapter is organised: nuclei is a command-line tool with no server, no database, and no memory between runs. You point it at targets, it prints findings, it exits. Anything that looks like infrastructure around it — scheduled scans, dashboards, ticket filing — is built from its output files by other tools, and chapter 9 shows the shapes that output takes.

And the rule, before any machinery: nuclei will happily send its requests anywhere you point it, and some of its templates are noisy guests. Only scan systems you own, or that you have explicit permission to test. Every target in this guide is a fixture server listening on the same machine nuclei runs on, which is the right shape for learning and a fair model for the real thing: know whose door you are knocking on before you knock fourteen thousand times.

Check: the whole idea, in one breath, is: templates are the checks, the engine runs them, matchers decide, and a match is a lead to verify — not a verdict. Everything after this chapter is detail hung on that frame.