Scans
Custom Nuclei templates
A Nuclei template is a YAML file that describes one check: the request to send and what in the response counts as a hit. NightVision runs thousands of public and built-in templates on every scan. Custom templates let you add your own, for things only you know about your applications: an internal admin path, a banner that must never reach production, a misconfiguration you have been bitten by before.
In the dashboard: Nuclei templates
Open Nuclei templates (opens in a new tab)A custom template works in three steps:
- Add it to a project, by uploading a file or writing it in the browser.
- Assign it to one or more applications in that project.
- Scan. The template runs on every scan of the applications it is assigned to, and a hit becomes a finding.
The Nuclei templates page
Section titled “The Nuclei templates page”Select Nuclei templates in the rail.

Each row shows the template’s name and file, its severity, its project, how many applications it is assigned to, who added it and when. Search by name, filter by Severity, or sort by a column. The project scope at the top of the page narrows the list to the projects you choose.
A template belongs to one project. It can be assigned only to that project’s applications.
A No file chip means the template has a name but its YAML never arrived, usually because an upload was interrupted. No scan can run it. Open its menu and choose Upload the file, or delete it.
Upload templates
Section titled “Upload templates”- Select Upload templates.
- Choose the Project.
- Drop your
.yamlfiles on the dialog, or select browse. - Check each file’s Name. It starts as the template’s
info.name, and it is the finding name that scan results show. Add a description if you want one. - Select Upload.

The rules for a file:
- One template per file, with a
.yamlor.ymlextension. - Up to 1 MB per file, and up to 50 files in one upload.
- A name of up to 100 characters, unique in the project. A description of up to 500 characters.
- No restricted template types (see Restricted template types).
The severity is read from info.severity in the file. You do not set it in the dialog. To change a template’s severity, change it in the YAML.
NightVision validates every file on the server and shows the answer for each one in the dialog. A file that fails does not stop the others.
Write one in the browser
Section titled “Write one in the browser”- Select Write template.
- Choose the Project.
- Type or paste the YAML under Template YAML.
- Check the Name (from info.name) field and add a description if you want one.
- Select Save template.

A minimal template looks like this:
id: staging-banner-exposed
info: name: Staging banner exposed author: example-corp severity: low
http: - method: GET path: - "{{BaseURL}}/staging-banner" matchers: - type: status status: - 200Use {{BaseURL}} for the application’s address, so the same template works on every application you assign it to. The Nuclei template guide covers the full syntax.
Read, edit and download a template
Section titled “Read, edit and download a template”Select a template to open its side panel. Overview shows its project, severity, who uploaded it and when. Content shows the YAML.

From the panel or the row menu you can:
- Edit YAML: change the file. Saving replaces the file. New scans use the new file. The name and the assigned applications do not change.
- Edit template info: change the name and description that NightVision shows. The YAML file is not changed.
- Download: get the file.
- Delete: remove the template. The applications it was assigned to stop running it.
Assign to applications
Section titled “Assign to applications”A template does nothing until it is assigned.
- On the Nuclei templates page, open the template’s menu and choose Assign to applications. To assign several templates at once, tick them and use Assign to applications in the bar that appears. They must be from one project.
- Tick the applications.
- Select Assign.

You can also work from the application’s side. Open the application and choose More settings > Nuclei templates. The panel lists the templates assigned to it. Assign templates adds more from the project, and Remove from this application in a row’s menu takes one off without deleting it.
Run only custom templates, or skip some for one scan
Section titled “Run only custom templates, or skip some for one scan”Assigned templates run on every scan of their applications. You can change that for a single scan.
- Select New scan and choose the application.
- Open Advanced and find Checks.
- Under Nuclei templates, the Custom Nuclei templates list shows the templates assigned to the application. Untick the ones this scan should skip.

To test just your own checks, select Run only custom templates. It turns ZAP and every built-in Nuclei folder off and keeps the custom templates on. This is the quickest way to try a template you have just written: every finding the scan raises is from your own checks.
Turning the Nuclei templates switch off skips every Nuclei template for the scan, custom ones included. A template marked “No file, never runs” is listed but cannot be selected.
At least one set of checks must stay on. If you turn ZAP off and leave no template to run, Start scan is disabled and the page says why.
Findings from your templates
Section titled “Findings from your templates”A hit from a custom template is a finding like any other. It appears on the scan’s Findings tab under the template’s name, with the template’s severity and a Custom template label.

The finding page shows the request the template sent, the response, and the part of the response that matched. You can triage it, assign it and link it to a Jira issue. See Work with a finding.
NightVision has no remediation text for a check you wrote, so the finding has no fix guidance. Put what the reader needs in the template’s name and description.
Run a template yourself
Section titled “Run a template yourself”To try a template against a URL from your own machine:
- Open the template’s menu and choose Run template command.
- Select Download in the template’s panel to get the file.
- Copy the command and run it from the folder the file is in. Replace
$LOCATIONwith the URL to test.

nuclei -u $LOCATION \ -t template-1.yaml \ -silentNuclei must be installed on your machine. A local run uses your network and sends no NightVision authentication, so it does not test signed-in pages, and its results do not appear in NightVision.
Restricted template types
Section titled “Restricted template types”Some Nuclei template types run code instead of sending HTTP requests. NightVision does not accept them. The upload dialog names the restricted types, for example code and javascript, and a file that uses one is rejected with “Unsupported Nuclei template type”.
Write the check with the http type instead.
Who can do what
Section titled “Who can do what”- Adding, editing and deleting templates needs a role that can change the project.
- Assigning templates needs a role that can change the project’s applications.
- Anyone who can see the project can read its templates and download them.
When your role does not allow an action, its button is disabled and says why. See Members, roles and groups.
From the CLI and MCP
Section titled “From the CLI and MCP”In the CLI, the API and the MCP server an application is called a target.
A scan started from the CLI runs the templates assigned to the application. These flags on nightvision scan change what runs:
| Flag | What it does |
|---|---|
--disable-nuclei-templates |
Skips the custom templates you name, by template id. Takes a comma-separated list. |
--disable-nuclei-folders |
Skips public and built-in template folders, by folder path. Takes a comma-separated list. |
--no-nuclei |
Skips every Nuclei template. |
--no-zap |
Turns ZAP off, so only Nuclei templates run. |
nightvision scan payments-api --no-zap --disable-nuclei-templates 4f6d3a1e-2b7c-4d8e-9a10-6c5b4e3d2f1aAt least one of ZAP and Nuclei must stay on. The folder names are listed in the check catalog.
With the NightVision MCP server, a coding agent can manage templates for you:
| Tool | What it does |
|---|---|
list-nuclei-templates |
Lists templates, filtered by project, target or severity. |
create-nuclei-template |
Creates the template record in a project. |
upload-nuclei-template |
Uploads the YAML file to that record. |
assign-nuclei-template |
Assigns the template to a target. |
To run a single custom template from an agent, start a scan with no_zap: true and run_only_nuclei_templates set to the template’s name.
The same operations are in the API under /api/v1/nuclei-templates/. See the API reference.