Scans
Crawler settings
Before NightVision attacks a web application, it crawls it: a real browser signs in, clicks through the pages and records every request the application makes. The checks then run against what the crawl found. If the crawl misses a page, nothing on that page is tested.
The defaults suit most applications. Change a crawler setting when a scan finds fewer pages than you expect, or when you give a scan more time and want it to use that time well.
Crawler settings apply to web applications. An API application is scanned from its spec, so it has no crawl to tune.
Where the settings are
Section titled “Where the settings are”| Setting | Where | Applies to |
|---|---|---|
| Scan duration | New scan > Scan duration | One scan |
| LLM-based crawling | New scan > Scan duration | One scan |
| Intelligent page load handling | New scan > Scan duration | One scan |
| Network analysis | The application > More settings > Advanced crawler settings | Every scan of the application |
| HTML parser | The application > More settings > Advanced crawler settings | Every scan of the application |
Scan duration and what it unlocks
Section titled “Scan duration and what it unlocks”Scan duration is the longest a scan may run. Choose 30 min, 1 hour, 2 hours, 4 hours or 8 hours. The default is 30 minutes. After the first scan, New scan starts from the duration of the application’s last scan.
The crawl takes a share of that time and the checks take the rest. NightVision sets the share for you.
A scan of 2 hours or more turns on three things that a short scan does not have time for:
- Network analysis, when the application has it enabled.
- LLM-based crawling, when your organization has it.
- Intelligent page load handling.
A scan of 2 hours or more also signs in again before the checks start, so a long scan does not test with an expired session. That option is Re-authenticate before the active scan, and it applies to recorded logins.

On a shorter scan, both checkboxes are disabled and read “Available on scans of 2 hours or more.”
Network analysis
Section titled “Network analysis”With network analysis on, NightVision watches the network traffic during the crawl, groups it, and works out which requests each button, link and form is likely to trigger. The crawler uses that to spread its effort across the interface instead of repeating actions that lead to the same requests. The result is more of the application reached in the same time.
Network analysis also feeds Coverage: it is how a scan can tell you which API endpoints were reached from the user interface.
To turn it on:
- Open Applications and choose the web application.
- Under More settings, choose Advanced crawler settings.
- Tick Enable network analysis.
- Select Save. The next scan uses it.

Two things to know:
- Network analysis applies only to scans with a duration of 2 hours or more. On a shorter scan the setting is ignored.
- Attaching the API specs of the application’s backend improves the analysis, because NightVision can match the traffic it sees to named endpoints. See API specs. It may not help every application.
LLM-based crawling
Section titled “LLM-based crawling”With Use LLM-based crawling on, the crawler uses a large language model to explore the application more like a person would. It reads each page, decides what a sensible user would do next, and fills in forms with values that fit the fields. This helps most on applications with multi-step forms and workflows that a mechanical crawler gives up on.
It needs three things:
- LLM-based crawling is on for your organization. If the checkbox is not shown in New scan, ask your NightVision contact to enable it.
- Your organization has a valid OpenAI API key. An Org Admin adds it under Settings > Integrations > Issue trackers, in the OpenAI API key card. See Organization settings.
- The scan duration is 2 hours or more.

When all three are true, the checkbox is ticked by default. Untick it to crawl without the model for this scan.
If the key is missing or expired, the checkbox is disabled and New scan says “Needs your organization’s OpenAI key” with a link to Settings. A scheduled scan checks the key each time it runs, so a schedule starts using LLM-based crawling as soon as a key is added.
Intelligent page load handling
Section titled “Intelligent page load handling”With Enable intelligent page load handling on, the crawler waits until each page has finished loading before it acts, instead of waiting a fixed time. Slow pages get the time they need, and fast pages do not waste it.
It is on by default for web scans of 2 hours or more. Untick it for one scan if a page in your application never settles (for example a page that polls or streams constantly) and the crawl spends too long waiting.
HTML parser
Section titled “HTML parser”The crawler reads each page’s HTML to find links and forms. A small number of applications produce markup that the standard parser handles badly, and the crawl ends almost at once.
Try the other parser when both of these are true:
- The crawl exits within 10 to 20 seconds.
- The scan discovers very few paths.
To switch:
- Open the application and choose More settings > Advanced crawler settings.
- Tick Use experimental HTML parser.
- Select Save, then scan again.
If the next scan does not find more paths, untick it. The parser is not the cause, and Troubleshooting scans lists the other reasons a crawl comes back short.
From the CLI
Section titled “From the CLI”In the CLI and the API an application is called a target.
Set the scan duration with --max-duration-minutes, from 30 to 480:
nightvision scan customer-portal --auth portal-login --max-duration-minutes 120The same 2 hour threshold applies. To control what a long scan turns on:
| Flag | Command | What it does |
|---|---|---|
--no-intelligent-page-load-handling |
nightvision scan |
Turns intelligent page load handling off for this scan. |
--llm-crawling |
nightvision scan |
Asks for LLM-based crawling. |
--no-llm-crawling |
nightvision scan |
Declines LLM-based crawling, including on a scan long enough to get it by default. |
--crawl-duration-minutes |
nightvision scan |
Sets the crawl’s share of the scan in minutes, taken out of --max-duration-minutes. Leave it out and NightVision works it out. |
--html-parser |
nightvision target create, nightvision target update |
Sets the application’s HTML parser. |
--html-parser takes the parser’s name. NEKOHTML_LEGACY is the standard parser and NEKOHTML_HTMLUNIT is the one the dashboard calls experimental:
nightvision target update customer-portal --html-parser NEKOHTML_HTMLUNITWhen a scan starts, the CLI prints the configuration the scan resolved to: the scan and crawl durations, the HTML parser, and whether LLM-based crawling is in use. It prints to standard error, so a pipeline that reads the scan id from standard output is not affected.
Network analysis is turned on in the dashboard, or with network_analysis_enabled on the application in the API.
Related
Section titled “Related”- Start a scan
- Coverage: what a scan reached
- Scope and exclusions
- HTTP traffic, to give the crawler recorded traffic to start from