Skip to content

Writing Criteria

Every guide in this repo is written to the same standard. If you're adding or editing a guide — human or AI — hold it to these.

  1. Plain words, real ideas. Simple language, never dumbed-down concepts. Explain jargon on first use; collect terms in the glossary.
  2. No hype. No marketing adjectives, no "revolutionary," no promises about what something will do for the reader.
  3. Honest about limits. Say what the thing can't do. State uncertainty instead of smoothing it over. Validation notes include what remains unverified.
  4. No invented numbers. Benchmarks, defaults, and specs are either measured or qualified with "depends on your setup." If it wasn't tested, say so.
  5. Checkable. Commands are meant to be run, with "Check:" blocks showing what success looks like. Sources are linked, not asserted.
  6. Respect the reader's setup. Call out Windows/Mac/Linux differences. Don't assume a GPU, a budget, or prior experience.
  7. Safety isn't skipped. Real risks get stated plainly, not buried.
  8. Scoped. Each guide says what it covers and points elsewhere for the rest. No guide pretends to be the whole subject.
  9. Structure over prose. Tables, before/after examples, symptom → fix. Scannable beats essay.

Verification notes for this guide

Standard 3 and 4 applied to this guide, specifically. The lab ran on the build machine with Nuclei v3.11.1 (the official Linux amd64 release archive) and the template collection v10.5.1, which nuclei installed itself on its first run. Every scan was aimed at the guide's own fixture server (examples/fixture_server.py, Python standard library only) bound to 127.0.0.1 — ports 18084–18086 — in two personalities: sloppy (three planted traits, no security headers) and tidy (the traits removed, headers present, status page behind a 401). No scan touched any other host; all runs carried -ni, so no Interactsh callback was used either. Transcripts are kept with the lab (nuclei-lab/transcripts/, 31 files); the chapters quote them trimmed but unaltered.

Run for real, captured:

  • Engine. nuclei -version → v3.11.1, with its config and cache directories named. The full -h output was captured and is the source for every default quoted (rate limit 150/s, concurrency 25, bulk size 25, timeout 10 s, retries 1, input-read timeout 3 m).
  • Collection install. With no ~/nuclei-templates present, a first scan printed "nuclei-templates are not installed, installing…" and "Successfully installed nuclei-templates"; -tv then reported v10.5.1. Counted on disk afterwards: 14,104 .yaml files, of which 11,718 under http/, 207 workflows, 24 headless. Tag counts quoted in chapter 6 are from the collection's own TEMPLATES-STATS.json.
  • The failed update. Against a hand-assembled ~/nuclei-templates holding two files, -update-templates reported the collection outdated (latest v10.5.1) but did not adopt the folder. Removing it and letting the first-run install proceed is what worked; chapter 10 teaches from this.
  • Updates on a managed install. With the real collection in place, nuclei -ut → "No new updates found for nuclei templates."
  • The lab templates. Three templates written for the guide (examples/lab-*.yaml) validated ("All templates validated successfully") and fired against the sloppy fixture: 3 matches, including the appliance template's extractor printing ["LabWidget/2.1 (lab fixture)"], and the clustering line "Templates clustered: 2 (Reduced 1 Requests)". Against the tidy fixture the same run reported "No results found."
  • The two authoring bugs. The appliance template's first draft matched the header word in lowercase while the fixture sends X-Lab-Appliance: — it validated, ran, and matched nothing until the case was fixed (chapter 5). Its extractor's first pattern captured the header line's trailing \r into the JSON record; the shipped pattern excludes \r/\n and the final JSONL record is clean. Both bugs are in the transcripts (scan 03 vs 07; JSONL 09 vs 26).
  • A broken template. Renaming id: to idd: made -validate fail with the file and fault named ("line 1: field idd not found in type templates.Alias") and a FTL summary — quoted in chapters 5 and 12.
  • A stock template, both directions. The collection's http-missing-security-headers (fetched as installed; twelve named DSL matchers, read line by line in chapter 4) ran by -id with no -t: 10 matches against the sloppy fixture — one per missing header; the two Content-Type matchers stayed silent because the fixture sends a proper Content-Type — and "No results found" against the tidy fixture.
  • Selection. Against the lab folder: -tl listed the three template paths; -tags exposure loaded 1 and matched 1; -severity info loaded 2 and matched 2; -id lab-status-page loaded 1 and matched 1.
  • Targets. One -u with a full URL; one -u with a bare 127.0.0.1:18084 (matched, reported as http://); a -l file of three fixture URLs (9 matches across three fixtures); and a target piped on stdin (matched). All four forms produced the banner finding.
  • Output shapes. -silent (findings only), -o text file, -jsonl to stdout and -jle to a file (full record inspected, including curl-command, request, response, extracted-results), and -markdown-export (an index.md summary table plus one file per finding).
  • Rate limits, measured. The 3-target, 3-template run (9 matches) timed three ways, wall clock including startup: 0.34 s at defaults, 2.21 s at -rl 2, 5.17 s at -rl 1.
  • The workflow. examples/lab-workflow.yaml (banner template gating the appliance template) run with -w against both personalities: sloppy → exactly 1 match (the subtemplate's; the gate printed nothing); tidy → "No results found." Two failure modes were captured on the way: template names in a workflow resolve from the working directory, not the workflow's folder (an [ERR] Could not find template line and a no-result scan until run from the templates' directory). A workflow file inside a -t directory was also observed to be ignored by ordinary scans (still "Templates loaded: 3").
  • The stdin hang. Runs made inside scripts without -u/-l and without redirected input hung after the banner — nuclei was reading targets from a pipe that never filled. Every lab run after that discovery redirects < /dev/null; chapter 12 teaches the symptom.
  • First-run noise. Before the collection was installed, scans printed [ERR] Could not read nuclei-ignore file (the ignore file is created by the install; its default excluded tags — dos, local, fuzz, bruteforce, txt-service — and its list of individually excluded template files were read from the installed file itself).

Documented-only (not run), and why:

  • Headless templates — the collection's 24 browser-driven templates were counted and read, not executed: the build machine has no Chrome or Chromium binary (checked with which), and installing a browser was outside this guide's lab. Chapter 10 labels the section (documented).
  • Other install routes — go install and the Docker image are described from the project's documentation; the build machine has no Go toolchain and no Docker. Only the release-archive route was executed.
  • Issue-tracker reporting — nuclei's reporting configuration (GitHub/GitLab/Jira) exists on the machine (~/.config/nuclei/reporting-config.yaml) but was not exercised: it sends findings to outside services, which no lab should do on a reader's behalf. Chapter 9 says so.
  • Engine self-update (-up) — not run; the guide is pinned to v3.11.1 so quoted output reproduces.
  • Other platforms — release archives exist for macOS and Windows and the collection is platform-independent text, but every command here ran on Linux; path differences are described, not demonstrated.
  • Template families beyond HTTP — dns, network, ssl, cloud, code, file, dast, and javascript templates were counted on disk and surveyed in prose; the lab's fixture speaks only HTTP, so only HTTP templates were executed.

Sandbox state after the build, for the record: the fixture servers are stopped, the broken template copy used for the validation lesson was deleted, and the engine binary, the installed collection, and the lab transcripts remain where the chapters say they are — nothing was scanned except the fixture, and nothing outside the build machine was touched beyond downloading the release archive, the template collection, and the two official template files read during drafting (which the collection install later superseded).