> ## Documentation Index
> Fetch the complete documentation index at: https://e2e.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Security

> Understand the e2e security model: what the AI model can see and do, how passwords and secrets stay out of it, what leaves your computer, and what to watch.

e2e trusts the code you write and treats everything the app shows as
untrusted. App content can't grant the model tools, credentials, or a
larger budget.

## How secrets stay out of the model

A `Secret` is a handle with no plaintext accessor. The model sees only its
name and purpose. When the model asks to fill one, the runner checks the
field and types the value itself.

Every known secret value becomes `<secret:name>` in the model's text input, reports,
console output, and `.txt`, `.csv`, `.json`, `.html`, and `.htm` downloads.

## What can still leak

Redaction matches strings, and screenshots mask secure fields only:

- **Screenshots, the model's included.** A generic secret filled into a
  plain input, or a value the app shows outside a secure field, is in the
  image and reaches your model provider. Use test credentials, not
  production secrets.
- **Video and downloads.** Video masks nothing, and a download other than a
  redacted text file is kept as served. If the test typed a password, check
  them before you share them.
- **`command.log`.** It holds your app's stdout and stderr verbatim. Keep
  secrets out of your app's output.
- **Transformed values.** The last four characters of a key, or its base64,
  pass through. Assert the outcome, not the secret.
- **Values not filled as a secret.** Only a configured secret's value is
  redacted. A value a sign-in sets in a cookie is not.
- **Request credentials.** `headers` are sent on every request that starts
  at the app's origin or one in `credentialOrigins` (even requests started
  by a third-party page), and stay on redirects to any origin. `basicAuth`
  answers a `401` from those origins, and on WebKit from any origin when one
  of them uses a default port or an IPv6 host. See
  [request credentials](https://e2e.com/docs/reference/security#request-credentials).
- **Committed recordings.** Cache entries store typed values verbatim, except
  secret fills. They aren't signed and replay with your permissions, so
  review them as you would test code.

[Where redaction stops](https://e2e.com/docs/reference/security#where-redaction-stops) lists
every case.

## What the model sees and does

The model sees your instruction, the screen as an accessibility tree, the
redacted URL, and records of earlier steps in the test. It gets a masked
screenshot when it asks for one or a step sets `vision`.

The model can only act through declared tools. e2e validates tool calls
against closed schemas before running them (built-in tools with no fields
drop extra keys and run) and never evaluates model text as code. Disallowed
actions (like navigating to `file:`) are blocked. There is no origin
allowlist: if your app links to another site, the agent can follow it and
use the step's secrets there.

On macOS and Windows, Chromium launches with its OS sandbox on, which helps
contain a renderer exploit on a page the agent reaches. On Linux it is opt-in:
see [`chromiumSandbox`](https://e2e.com/docs/reference/web#chromiumsandbox).

## What runs with your permissions

Your tests, config, engines, tools, reporters, stores, secret providers, and
app commands run with your operating-system permissions, unsandboxed. Run
untrusted pull request code in an external sandbox with no secrets or write
tokens.

A macOS app that [`@e2e-dev/desktop`](https://e2e.com/docs/desktop) launches gets only a few
variables of the run's environment, such as `HOME` and `PATH`, so your
secrets and model keys never reach it.

## What leaves your computer

A run connects to your model provider, the app under test, and, unless you
opt out, [telemetry](https://e2e.com/docs/telemetry) at `eu.i.posthog.com`. There is no crash
reporting. A CLI command on a terminal checks `registry.npmjs.org` for a
newer release at most once a day, `e2e feedback` checks before each
report unless `--allow-outdated`, and `e2e upgrade` reads the versions of
the e2e packages the project lists. Integrations such as Kernel, Expo Simulators, Limrun, and smol add
their own destinations, listed with the rest under
[Outbound connections](https://e2e.com/docs/reference/security#outbound-connections).

## Report a vulnerability

Report privately through
[GitHub security advisories](https://github.com/e2e-inc/e2e/security/advisories/new)
or by mail to security@e2e.com. The
[security policy](https://github.com/e2e-inc/e2e/blob/main/SECURITY.md)
states response times and supported versions.

## Next

<CardGroup cols={2}>
  <Card title="Security rules" icon="lock" href="/reference/security">
    Every rule behind this page, as the code enforces it.
  </Card>
  <Card title="Authentication" icon="key" href="/authentication">
    Pass secrets to tests and agent steps, and save sessions.
  </Card>
  <Card title="Continuous integration" icon="rotate" href="/ci">
    Give model keys only to builds you trust.
  </Card>
</CardGroup>
