Use spidering for baseline crawl coverage, HAR files for authenticated browser-driven paths, seed paths for routes you already know exist, and custom discovery when you have trustworthy test automation that reaches complex flows. The goal is not to pick one method, but to match the discovery method to how the application actually exposes routes and sessions.
Why This Matters for Security Teams
Discovery quality determines what a DAST tool can actually test, so weak crawl strategy creates a false sense of coverage. Spidering alone often misses authenticated routes, JavaScript-rendered states, and workflows that only appear after specific user actions. HAR files and custom discovery close those gaps, but only if the captured traffic reflects real, permissioned application behaviour rather than a narrow testing path. The security impact is straightforward: if the scanner never sees the route, it cannot assess the route.
For teams operating under NIST Cybersecurity Framework 2.0, this is a coverage and verification problem as much as a tooling problem. Discovery inputs should support repeatable testing, authenticated access, and evidence that the scanner explored the same attack surface a user can reach. Practitioners often underestimate how much route exposure depends on client-side rendering, token state, and workflow sequencing, especially in modern single-page applications and portal-heavy environments. In practice, many security teams encounter missing DAST coverage only after a production issue or audit finding reveals that “tested” paths were never actually discovered.
How It Works in Practice
A strong DAST workflow usually combines four discovery inputs, each serving a different purpose. Spidering provides baseline crawl coverage by following links, forms, and in some cases simple client-side navigation. HAR files capture browser-observed requests and are especially useful for authenticated journeys, API-backed page transitions, and flows that depend on session state. Seed paths let teams point the scanner at known routes, which is useful when architecture maps or release notes already identify critical endpoints. Custom discovery is most valuable when test automation can reliably reach deeper states such as checkout, onboarding, approval, or administrative functions.
The operational goal is to avoid treating any one input as complete. Spidering is broad but shallow. HAR files are narrow but often more accurate for real user journeys. Seed paths provide explicit control over coverage. Custom discovery is highest value when automation is stable and tied to the application’s release process. Used together, these methods reduce blind spots and help the scanner observe routes that static link following would never find.
- Use spidering first to establish an initial route map and identify obvious missing areas.
- Replay HAR files from authenticated sessions to expose protected pages, dynamic requests, and stateful transitions.
- Inject seed paths for high-value endpoints already known from design, code review, or threat modeling.
- Use custom discovery only when scripts or test automation are reliable enough to represent real application behaviour.
Current guidance suggests validating discovery inputs before each scan, because stale sessions, expired tokens, and environment-specific redirects can distort coverage. Where possible, link DAST scope to release pipelines, so new routes are added deliberately instead of waiting for manual retests. These controls tend to break down when applications rely on heavily asynchronous front ends, short-lived authentication tokens, or role-specific workflows that the scanner cannot complete without application-aware scripting.
Common Variations and Edge Cases
Tighter discovery control often increases setup and maintenance overhead, requiring organisations to balance scan completeness against operational effort. That tradeoff is real in environments with many microservices, tenant-specific routing, or highly dynamic front ends. The best practice is evolving, and there is no universal standard for how much discovery should come from crawling versus replayed browser traffic versus scripted automation.
One common edge case is when HAR capture includes noisy or irrelevant calls such as analytics, feature flags, or background API polling. Teams should filter those inputs so the scanner focuses on security-relevant routes. Another is when custom discovery uses brittle automation that breaks after minor UI changes. In that case, the scanner may appear comprehensive while silently missing important paths. For applications with strict anti-automation controls, authenticated replay may also fail unless test accounts and headers are explicitly approved.
Teams should also remember that discovery method choice can affect detection quality. A route found through a real browser session may expose different inputs than one found through a direct crawl, and the scanner’s findings may vary accordingly. That matters when assessing login flows, role-based pages, and multi-step transactions where state changes determine whether an issue is reachable. The practical test is whether the combined discovery process reproduces the application’s real exposure, not whether it maximises the raw number of URLs. In modern applications, coverage gaps often surface only when a workflow is partially scripted, partially dynamic, and partially hidden behind session-dependent JavaScript routing.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and CIS Controls set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | ID.AM-2 | Discovery inputs define the application asset surface that DAST can see. |
| NIST AI RMF | Not applicable; the question is about application testing mechanics, not AI risk. | |
| MITRE ATT&CK | T1190 | Discovery quality affects whether exposed web applications are reachable for exploitation testing. |
| CIS Controls | 18.1 | Security testing must be planned and repeated to remain effective as applications change. |
Include DAST discovery coverage in regular application security testing and validation cycles.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org