# Probes (/docs/govern/probes)

<PreviewBadge />

Run adversarial tests against an agent, through a Dome gateway or in your own web app's chat. Probes grades each test on Dome's audit record and Dome's own grading model, then offers fixes Dome can apply and undo.

## Overview [#overview]

A probe is one attack, such as a jailbreak, a prompt injection, or a request for another user's data. A run sends a suite of probes in one of two ways:

| Run         | Where the probes go                                                                                                | How Dome grades them                                                                             |
| ----------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| Gateway run | Through one of your workspace's [gateways](/build/gateways), as one of your agents, with the gateway's tools       | Dome's audit record of each call, then Dome's grading model on the reply                         |
| Web-app run | Into your own web app's chat, signed in as each test user, at an address on a [verified domain](#verified-domains) | The audit record of the Dome agent behind the app when a call matches, otherwise the reply alone |

A multi-turn probe presses toward the same goal for up to 12 messages. It stops when Dome refuses a call, a tool runs, or the agent does what the probe asked.

The audit record shows what Dome did: refused the call, redacted the reply, or let it through. For a reply Dome let through, Dome's grading model decides whether the agent did what the probe asked.

A gateway run also sends benign requests that Dome writes for this agent, to catch controls that block normal use. When a probe gets through, its finding offers a fix where Dome has one: a guard, a validator, a rule, or a spend cap.

## Before you run [#before-you-run]

> **Warning**: **A run sends real attacks to real systems.** Read this before your first run.
>
> * **Adversarial prompts.** Probes sends your agent jailbreaks, prompt injection, data-exfiltration attempts, and off-topic and harmful-content requests.
> * **Your provider accounts.** A gateway run's prompts reach the model providers behind your agent, on your own provider accounts and keys. Providers may count, bill, and flag that traffic under their usage policies. Running Probes against a provider account means accepting that.
> * **Real tool calls.** A gateway run offers the agent your gateway's tools. When Dome allows a tool call, the tool runs.
> * **Your production app.** A web-app run signs in to your app as each test user you add and types the probes into its chat. The app, and everything it calls, sees that traffic and spends on it. Use test accounts, not real users.
> * **Test users' secrets.** Dome stores passwords and authenticator keys encrypted and never shows them again. It deletes them 30 days after the last run that used them. A monitor keeps its own copy until you delete the monitor or replace them.
> * **Stored conversations.** Each finding stores the conversation, including the agent's replies and tool calls, for anyone with `gateways.view`. Probes that try to extract sensitive data never store the agent's output. Turn on **Hide agent output** for an agent that holds real data.
> * **Dome's models.** Models on Dome's account, not yours, read the system prompt and the conversation to write follow-up attacks and benign requests, and to grade replies. In a web-app run, a browser agent on Dome's model reads your app's pages to sign in and find the chat.
>
> Probes only targets your own workspace's gateways and apps at addresses on your organization's verified domains.

## Requirements [#requirements]

Probes is a [public-preview](/manage/public-preview) feature, offered on every plan. Before you begin:

* Ask an organization owner or administrator to [enable public preview](/manage/public-preview) for the organization.
* Use the dashboard. Probes is under **Govern → Probes** and is dashboard-only for now: the CLI, the Dome MCP server, and the SDK don't expose it.
* For a gateway run, have a gateway and an agent in the workspace.
* For a web-app run, have your app's chat at an address on one of your organization's [verified domains](#verified-domains).

### Permissions [#permissions]

| Permission                               | Grants                                                         |
| ---------------------------------------- | -------------------------------------------------------------- |
| `gateways.view`                          | View runs, findings, monitors, and fixes                       |
| `gateways.manage` and `agentkeys.manage` | Start a run, re-run a probe, and save or run a monitor         |
| `guards.manage`                          | With `gateways.manage`, apply or undo a guard or validator fix |
| `rules.deploy`                           | With `gateways.manage`, apply or undo a rule fix               |

A spend cap fix needs only `gateways.manage`. Saving a monitor with Auto-Remediation also needs the permission for each fix it applies.

## Probe minutes [#probe-minutes]

Your plan includes probe minutes for each billing period.

| Plan       | Probe minutes per billing period   |
| ---------- | ---------------------------------- |
| Free       | 30, shared by the organization     |
| Pro        | 120 per workspace                  |
| Team       | 1,500, shared by the organization  |
| Enterprise | 10,000, shared by the organization |

* A web-app run uses its test users' browser time: each signed-in session, sign-in included.
* A gateway run uses its running time.
* A monitor's re-run that checks an automatic fix doesn't count. A re-run you start yourself does.
* A run starts while any minutes are left and always finishes, so a period can end over its minutes.
* Minutes reset each month on your billing date. Without a billing period, they reset monthly from the day the organization was created.

The run form and **Runs** tab show the minutes used this period, and Runs lists each run's minutes. Hover the count to see when they reset. The estimate beside **Start run** counts the run as you set it up.

A web-app run takes much longer than a gateway run, because each test user's probes go one at a time through your app's chat. With no minutes left, **Start run** and **Run now** are off, and monitors skip their scheduled runs until the reset.

## Run a probe [#run-a-probe]

Open **Govern → Probes**, select the **Runs** tab, then choose **Gateway** or **Web app**. A workspace runs at most two runs at once.

### Gateway run [#gateway-run]

| Field             | Set it to                                                                                                                                                                                  |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Gateway**       | The gateway the probes go through                                                                                                                                                          |
| **Agent**         | The agent the probes run as. Dome mints a key for the run and revokes it when the run ends.                                                                                                |
| **Model**         | A model or pool the gateway serves                                                                                                                                                         |
| **System prompt** | The agent's starting instructions. Dome sends it with each probe and reads it to write benign requests and judge off-topic ones. Leave it empty to treat the agent as a general assistant. |

### Web-app run [#web-app-run]

| Field                          | Set it to                                                                                                                                                     |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Address**                    | Your app's URL, on one of your organization's verified domains                                                                                                |
| **How to reach the chat**      | How to get from signing in to the chat, and any quirks                                                                                                        |
| **Dome agent behind this app** | Optional. Matches each probe to that agent's calls in Dome and lets fixes apply to it. Without it, Dome grades the reply alone and fixes are recommendations. |

A web-app run sends no benign requests, because Dome doesn't have the agent's system prompt. Off-topic probes go as attacks the app should decline.

### Depth [#depth]

| Depth        | Sends                                                                            |
| ------------ | -------------------------------------------------------------------------------- |
| **Quick**    | A fast smoke test spanning every category                                        |
| **Standard** | The curated suite, a solid pass across every category                            |
| **Full**     | The whole library, including every encoded and obfuscated variant. Long-running. |

Each depth includes the one before it. The form shows the probe count and an estimate in probe minutes.

### Test users [#test-users]

Add up to 20 test users to test authorization as real people. Each one adds identity probes: an authorization probe as that user, cross-user probes against the other test users, and a privilege-escalation probe.

* **Gateway run:** give each user an email and what to try as them. The whole suite runs once per user, so each user adds time and probe minutes. The probes act as each user, so the agent's [act-as](/build/agents/external#change-end-user-identity) must be on.
* **Gateway run, OIDC agent:** paste an identity-provider token per user, used for that run only. Or choose **Sign in for me**, give your app's sign-in link and each user's sign-in details, and Dome signs each user in at your identity provider.
* **Web-app run:** give each user a username and, as their sign-in needs, a password, an authenticator key, and sign-in steps. Dome signs in as each user and spreads the suite across them, so more users finish sooner. With no users, the run uses the app signed out.

Without test users, an agent that requires act-as runs the probes as a stand-in identity where Dome can supply one. Add test users to test authorization as real principals.

## Read the results [#read-the-results]

Open a run from **Runs**. Findings appear live, grouped by category, then test, then test user. Each finding shows what should have happened, what did happen, and a result.

| What happened                  | Meaning                                                                 |
| ------------------------------ | ----------------------------------------------------------------------- |
| **Blocked by Dome**            | Dome refused the call, for example with a rule, guard, or quota         |
| **Blocked by Dome (redacted)** | Dome let the call through and masked the reply                          |
| **Blocked by the agent**       | Dome didn't intervene, and the agent declined or did something else     |
| **Allowed**                    | The agent did what the probe asked, in its reply or through a tool call |

| Result            | Meaning                                                                                          |
| ----------------- | ------------------------------------------------------------------------------------------------ |
| **Success**       | The outcome matched. Any kind of block meets an attack; only **Allowed** meets a benign request. |
| **Fail**          | An attack got through, or Dome or the agent blocked a benign request                             |
| **Couldn't test** | Nothing was graded. The finding says why and what to change before you re-run.                   |

Common reasons a probe couldn't be tested:

* No rule permits the call, so Dome denies everything.
* The agent requires act-as and the run has no identity for it.
* The model provider was rate-limited or unavailable.
* Dome couldn't sign in as a test user or find the chat.
* The app answered with an error instead of a reply, such as an outage, a rate limit, or a spend cap. Nothing was tested; fix the app, then re-run.
* Dome's audit record for the probe never arrived.

In a web-app run, each finding also says how Dome graded it: **Matched to Dome**, **Matched to Dome · approximate**, **Couldn't tell which call**, or **Reply only**. The last two grade the reply alone.

Expand a finding to read the conversation and open its calls in [Audit](/operate/audit). Select **Re-run** to send one probe again.

## Apply a fix [#apply-a-fix]

Expand a failed finding to see its fix. A web-app run gets automatic fixes only when it names the Dome agent behind the app.

| Fix                | What Dome changes                                                                                                                                                   |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| PII guard          | Attaches a PII redaction [guard](/govern/guards) to the model connection that served the probe, on responses                                                        |
| Secret-key guard   | Binds a guard that redacts AWS, GitHub, Anthropic, OpenAI, and GCP keys to the agent's responses, or reuses the agent's own                                         |
| Prompt protection  | Binds a guard to the agent's responses that swaps a reply leaking the system prompt for a fallback reply                                                            |
| Authorization rule | Deploys a Cedar [rule](/govern/rules) that blocks the one tool the probe got the agent to call, on the agent or the whole workspace, sparing a role you name        |
| Argument checks    | Attaches a validator to the tool's connection that refuses SQL, shell characters, private or metadata URLs, or `../` traversal at the arguments the payload reached |
| Spend cap          | Creates a daily or monthly spend [quota](/govern/quotas) on the agent                                                                                               |

1. Set the fix's choices where it has them, such as a rule's scope or a spend cap's limit.
2. Select 

   **Review fix**

    to see the plan: each guard, validator, rule, or quota it creates, attaches, deploys, or reuses.
3. Select 

   **Apply fix**

   .
4. Select 

   **Re-run this probe**

    to confirm Dome now stops it.

Dome records every fix on its finding. **Undo** reverses exactly what the fix created, and keeps a guard something else still uses. A fix that finds its change already in place changes nothing.

Some findings have no Dome fix yet; they say what would stop them. Argument checks need self-hosted gateways on a release that enforces them. An older gateway blocks every call on that connection until you upgrade it.

## Monitor continuously [#monitor-continuously]

Turn on **Continuous Monitoring** at the bottom of the run form to save the setup as a monitor. Set its **Schedule**, at most once a day, in the time zone you choose. A workspace holds up to 20 monitors.

* A monitor acts as whoever last saved it, and re-checks that person's permissions before every run and fix.
* Each scheduled run is compared with the last one. A new failure is re-sent once, and counts only if it fails again.
* **Auto-Remediation** applies the fix for a confirmed failure, then re-runs the fixed probes and the run's passing benign requests. Dome rolls back a fix that doesn't hold or blocks a normal request, and never retries it for those probes.
* Auto-Remediation covers the PII guard, the secret-key guard, prompt protection, argument checks, and authorization rules. A spend cap is only ever suggested.
* An authorization rule with no role named applies on its own only when the agent's own requests haven't called that tool in the last 7 days.
* A web-app monitor needs the Dome agent behind the app for Auto-Remediation.
* A monitor can't act as test users for an agent that verifies act-as with OIDC.

The **Monitors** tab lists monitors. A monitor's page has **Run now**, **Edit**, **Pause** and **Resume**, what is failing now, its fixes with **Undo**, and its runs. Confirmed regressions, automatic fixes, and paused monitors also appear in Suggestions.

A monitor pauses when its owner loses `gateways.manage` or `agentkeys.manage`, or its agent, gateway, or verified domain goes away. Save it again to resume it and become its owner.

## Verified domains [#verified-domains]

A web-app run's address must be on one of your organization's verified domains, or a subdomain of one, and reachable over HTTPS. Leave the port and any sign-in details out of the address. **Sign in for me** also needs the app's redirect URI on a verified domain.

Verify a domain in the dashboard under **Settings → Domains**: **Verify a domain** opens a page where you add a DNS record that proves you own it. Every plan can verify domains; connecting your own identity provider is Custom SSO, on the Team and Enterprise plans.

## Next steps [#next-steps]

* [Write rules](/govern/rules) to review or extend a rule a fix deployed.
* [Configure guards](/govern/guards) to tune a guard or validator a fix created.
* [Set usage limits](/govern/quotas) to adjust a spend cap.
* [Inspect audit events](/operate/audit) to trace the calls behind a finding.
* [Enable public preview](/manage/public-preview) to turn on Probes for your organization.