> For the complete documentation index, see [llms.txt](https://copilot-docs.bugbase.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://copilot-docs.bugbase.ai/enterprise/how-to-trigger-a-web-assessment/web-discovery.md). Agents can also search and read this documentation through its [MCP server](https://copilot-docs.bugbase.ai/~gitbook/mcp).

# Web Discovery

Map a web target's subdomains, pages, APIs, and user flows without vulnerability testing.

Web Discovery maps what exists under a root domain. It finds subdomains and services, crawls pages, captures the API calls behind them, and saves each user flow as a **trajectory**. It does not run attack vectors.

Discovery runs automatically as the first half of every **Discovery + Assessment** run, which is the default and recommended intent. This page explains what Discovery does and the settings that shape it. Run the **Discovery** intent on its own only when you want to map a target without testing it.

## What Discovery Does

| Step                          | What happens                                                                                                                                   |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| **Subdomains and services**   | Enumerates subdomains of the root domain, including certificate-transparency and DNS sources, and the services they expose.                    |
| **Public footprint**          | Collects WHOIS, IP ranges, and related public information about the organization.                                                              |
| **Pages and APIs**            | Opens pages in a real browser, reads `robots.txt` and `sitemap.xml`, and records every API request the pages make.                             |
| **User flows**                | Decides which actions to try on each page, such as searching, filling forms, or opening a cart, and saves each completed flow as a trajectory. |
| **Technology fingerprinting** | Records the technology stack seen in each browser-session context.                                                                             |
| **Baseline check**            | Runs one lightweight HTTP request-smuggling check against the domain.                                                                          |

Discovery runs once per **authentication context**. A logged-out crawl and each selected browser session are crawled independently, so you get the pages and flows each role can reach.

{% hint style="info" %}
Discovery is not purely passive. The crawler clicks, types, and submits forms like a real user so it can capture the APIs behind each flow. It does not send attack payloads. Use test accounts and a conservative rate limit for production applications.
{% endhint %}

For an IP-address target, Discovery runs a reverse DNS lookup. For a private or `localhost` domain, it skips subdomain and public-footprint discovery and goes straight to crawling.

## Before You Start

* The root domain is added in **Attack Surface -> Target Entities** and is on the **Settings -> Domains** whitelist.
* Domain ownership is verified, if your deployment requires it. See [Domain Verification](https://copilot-docs.bugbase.ai/enterprise/settings/domain-verification.md).
* For logged-in coverage, you have test accounts to describe for AI configure, or at least one [validated browser session](https://copilot-docs.bugbase.ai/enterprise/how-to-trigger-a-web-assessment/validating-browser-sessions.md) for Manual.

## Run Discovery

{% stepper %}
{% step %}

### Select the domain and the Discovery intent

Open **Modules -> Web Assessment -> Run Assessment** and select the domain or IP address on **Asset**. On **Intent**, keep **Discovery + Assessment** to test the target as soon as Discovery finishes; this is the usual choice, covered in [Your First Web Run](https://copilot-docs.bugbase.ai/enterprise/how-to-trigger-a-web-assessment.md#your-first-web-run). Select **Discovery** only to map the target without testing it.

<figure><img src="https://232193438-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwolEZzMm5QD9NoFKutSj%2Fuploads%2Fgit-blob-24f30efee13d32cdd2b2503fc1cc0074da16e250%2Fweb-intent-discovery.webp?alt=media" alt="Intent step with Discovery selected"><figcaption><p>Discovery maps the surface without testing it.</p></figcaption></figure>

Under **Configuration**, choose **AI configure** to let vetting set up access and the starting URL for you, or **Manual** to set them yourself. AI configure works on domains, not IP addresses. See [AI Configure and Vetting](https://copilot-docs.bugbase.ai/enterprise/how-to-trigger-a-web-assessment/ai-configure-and-vetting.md).
{% endstep %}

{% step %}

### Set up access

On **Scan settings**, fill in **Access**:

* **AI configure**: describe your test accounts in **Accounts**, or leave it empty to crawl only Unauthenticated pages. Vetting signs in with each account, records its browser session, and picks the starting URL. Discovery then crawls once logged out and once per account.
* **Manual**: choose **Authentication coverage**:
  * **Unauthenticated** crawls without cookies or a login. Optionally set a **Starting URL**, such as `/docs`, when the interesting part of the site is not linked from the root.
  * **Authenticated** crawls once per selected browser session. Select the sessions under **Sessions included in this assessment**, or use **Record new session** to add one.

<figure><img src="https://232193438-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwolEZzMm5QD9NoFKutSj%2Fuploads%2Fgit-blob-1d2496fe6962cfcb11f7118d4633e8f9a3fd09c1%2Fweb-scope-authentication.webp?alt=media" alt="Manual Access showing Unauthenticated and Authenticated coverage, the starting URL, and the browser-session picker"><figcaption><p>With Manual, set authentication coverage, starting URL, and sessions yourself.</p></figcaption></figure>

There is no trajectory selection in a Discovery run: Discovery is what creates the trajectories.
{% endstep %}

{% step %}

### Set traffic and depth

Further down **Scan settings**, configure the settings shared by both phases: egress, request rate, and, with **Manual**, concurrency. See [Common Web Settings](https://copilot-docs.bugbase.ai/enterprise/how-to-trigger-a-web-assessment/configure-scan-settings-for-web-assessment.md).

Two settings matter only when Discovery runs:

| Setting                                          | Use it to                                                                                                  |
| ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- |
| **Max crawler runs** (under **Advanced**)        | Cap crawling when you only need a quick surface map. Leave it empty for the deepest coverage.              |
| **Assessment runtime after discovery (seconds)** | *Discovery + Assessment only.* Cap how long the automatic Assessment stage runs after Discovery completes. |

<figure><img src="https://232193438-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwolEZzMm5QD9NoFKutSj%2Fuploads%2Fgit-blob-174ad90be3b64dc6e0e8c2547cc1b758dea87da5%2Fweb-discovery-advanced.webp?alt=media" alt="Advanced section open, with every toggle, Max module runtime (seconds), and Max crawler runs"><figcaption><p>Max crawler runs appears only for intents that include Discovery.</p></figcaption></figure>

**Attack vectors** are not shown for a Discovery run, because nothing is attacked.
{% endstep %}

{% step %}

### Start or schedule the run

In **Automation**, choose **Run now** or, with **Manual**, **Schedule**. Check the summary in **Review**, then select **Start vetting**, **Start run**, or **Schedule run**. See [Run Assessment Wizard](https://copilot-docs.bugbase.ai/enterprise/run-assessment-wizard.md) for scheduling and review details.
{% endstep %}
{% endstepper %}

## Check What Discovery Found

1. Open **Web Assessment -> Analysis** and select the domain, or open **Activity -> Activity**, and wait for the Discovery run to complete. A finished Discovery run shows **New webpages** and **New user flows**. In **Activity**, it is the `WEB_DISCOVERY` row. A run started as part of **Discovery + Assessment** shows an **Auto-run** badge.
2. Open **Dashboard -> Exploit Graph** or **Attack Surface -> All Entities** and expand the root domain to review subdomains, web pages, and trajectories.
3. Start a new run with the **Assessment** intent and **Manual** configuration, and open **Trajectory scope** in **Scan settings -> Access**. Every flow listed there was found by Discovery and can be tested.

If a flow you care about is missing, see [Fill Coverage Gaps](#fill-coverage-gaps).

## Fill Coverage Gaps

| Symptom                                       | Fix                                                                                                                                                                                                              |
| --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Logged-in pages are missing                   | Add an account for that role in **Accounts** (AI configure), or **Authenticated** coverage with a validated browser session (Manual).                                                                            |
| Analysis shows **Partial discovery coverage** | Discovery found other domains but only follows pages on the domain you selected. Use **Show domains**, then **Scan** to start a run on one of them.                                                              |
| A section of the site was never reached       | Set a **Starting URL** for that section, or record the flow with the [Manual Crawler](https://copilot-docs.bugbase.ai/enterprise/how-to-trigger-a-web-assessment/manual-crawler.md) in Debug Mode.               |
| Third-party APIs appear in the inventory      | Keep them out of testing with a [trajectory blacklist rule](https://copilot-docs.bugbase.ai/enterprise/settings/trajectories.md).                                                                                |
| The target blocked the crawler                | Lower the request rate, allow the IPs listed under **Scan traffic comes from these IPs** in **Scan settings**, or switch to **Residential proxy** egress. AI configure flags this kind of block before the scan. |
| Discovery took too long                       | Set **Max crawler runs** or **Max module runtime (seconds)**.                                                                                                                                                    |

## Next Step

When Discovery has completed, continue with [Web Assessment Phase](https://copilot-docs.bugbase.ai/enterprise/how-to-trigger-a-web-assessment/web-assessment-phase.md) to choose which trajectories and attack vectors to test.
