Skip to content

Nuclei for Mere Mortals

Every web server, panel, and appliance you run makes small admissions about itself: a header it should not send, a page it should not show strangers, a version it should not announce. Checking for those by hand is slow, and the list of known admissions grows every week. Nuclei is a scanner that does the checking from recipes: each check is a small YAML file called a template that says "make this request, and report back if the answer looks like this." A library of more than fourteen thousand template files ships with it, and the engine that runs them is all nuclei is — a fast, careful request-runner with an eye for matches.

This guide teaches the recipe idea first, then the engine: how to install both, how to run a first scan against a lab server on your own machine and read what comes back, how to read a real template line by line, and how to write a template of your own for a check nobody has written yet. It is equally direct about the other half of the craft: choosing templates so the results mean something, scanning slowly enough to be a good guest, and remembering that a match is the start of a question, not a verdict.

The rule of this guide is the same standing rule the Nmap for Mere Mortals guide uses, stated here and repeated until it is reflex: only scan systems you own, or that you have explicit permission to test. Every scan in this guide runs against a small fixture server in examples/ that listens on this machine only, so the rule costs nothing to keep.

A note on how this guide was verified. Nuclei v3.11.1 was installed for real on the build machine, the official template collection (v10.5.1) was downloaded by nuclei itself and counted on disk, and every scan shown was run against the fixture server — first in a "sloppy" personality that exhibits three planted traits, then in a "tidy" one with the traits removed. The lab's own templates fire on the sloppy server and fall silent on the tidy one; so does the collection's missing-security-headers template, which reported ten findings against the sloppy server and none against the tidy one. One corner could not be run here: the headless templates, which drive a real web browser, because the build machine has no browser installed. Those are marked (documented) where they appear. criteria.md keeps the exact ledger.

What this guide covers

  • What nuclei is — the recipe book and the cook: templates, matchers, and what a match does and doesn't prove
  • Installing nuclei — the engine, the template collection, and where both live on disk
  • Your first scan — the lab fixture, a first scan end to end, and reading the results line by line
  • Anatomy of a template — a real collection template taken apart: requests, matchers, extractors, and the signature at the bottom
  • Writing your own template — a check invented for the lab, validated, and proven against both fixture personalities
  • Choosing templates — tags, severities, and ids; the ignore list; and an honest word about noise and false positives
  • Targets and input — one address, a list, a pipe: the ways a target reaches the engine
  • Rate limits and politeness — how fast nuclei knocks by default, the measured cost of slowing it down, and being a good guest
  • Output and reporting — console lines, JSON records, markdown reports, and the curl command hidden in every finding
  • Workflows and headless templates — checks that gate other checks, run for real; browser-driven templates, surveyed
  • Keeping templates updated — the collection as a moving target, and the two commands that keep it current
  • Neighbours — Nmap and its scripts, ZAP, Nikto, and a plain curl: what each is for
  • Troubleshooting — the hang, the typo, the matcher that never fires, and the empty result that isn't
  • Glossary — the terms, collected in one place

What it doesn't cover

Exploiting anything. Nuclei reports that a check matched; turning a match into access is another subject, and another set of rules, and it is not this guide's. It also doesn't cover running nuclei as a service or in CI pipelines beyond naming the outputs that make that possible, scanning other people's infrastructure under any circumstances, or the ProjectDiscovery cloud platform. The chapters on choosing templates and on neighbours say what neighbouring tools do better, and when to reach for them instead.

How to use this guide

Read the first two chapters away from the keyboard; they are the mental model. Then stand up the fixture from chapter 3 on a machine you can experiment on, and run every scan in the book against it — the whole guide is practised on that one small server, in both its personalities. Write your own template in chapter 5 before you lean on the collection's fourteen thousand, because a reader who has written one matcher reads every result differently.