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

# Verify Tenzai requests with Web Bot Auth

> Sign test requests with Web Bot Auth, so Cloudflare, Akamai, and your own servers can verify that they come from Tenzai.

Tenzai Pentest tests only the applications a Tenzai customer has asked it to test, and only while a test runs. During a test, the agent sends HTTP and HTTPS requests to the application's targets. With request signing on, each request carries a Web Bot Auth signature, so bot management services such as Cloudflare and Akamai, and your own servers, can verify that the request came from Tenzai.

Signing is optional and off by default. Leave it off when a test should look like an outside attacker, for example to check whether your bot detection catches it.

## Turn on signing

Turn on **Sign Requests with Web Bot Auth** in **Settings → Preferences**. It applies to the tests the Organization runs.

## What a signed request carries

Tenzai signs requests with an Ed25519 key, following [HTTP Message Signatures (RFC 9421)](https://www.rfc-editor.org/rfc/rfc9421) and the Web Bot Auth profile.

| Header | Value |
| - | - |
| `Signature-Agent` | `"https://api.tenzai.io"`, the origin that publishes Tenzai's public keys. |
| `Signature-Input` | The signed components and parameters, labeled `sig1`. |
| `Signature` | `sig1=` followed by the base64-encoded Ed25519 signature. |

For example:

```text theme={null}
Signature-Agent: "https://api.tenzai.io"
Signature-Input: sig1=("@authority" "signature-agent");created=1764500000;keyid="<key ID>";alg="ed25519";expires=1764500060;nonce="<nonce>";tag="web-bot-auth"
Signature: sig1=:<signature>:
```

* The signature covers `@authority`, the host the request is sent to, and `signature-agent`.
* `tag` is always `web-bot-auth`.
* `keyid` is the JWK thumbprint (RFC 7638) of the signing key.
* Each signature expires 60 seconds after `created` and carries a random `nonce`.

Tenzai signs a request only after it passes the test's scope and safety checks. See [Configure testing safety](https://docs.tenzai.io/pentests/configuring/configure-testing-safety.md).

## Verify a request

Cloudflare and Akamai verify Web Bot Auth signatures for you. To verify one yourself:

1. Fetch Tenzai's key directory from `https://api.tenzai.io/.well-known/http-message-signatures-directory`. It is a JWKS document served as `application/http-message-signatures-directory+json`.
2. Find the key whose JWK thumbprint matches `keyid`.
3. Rebuild the signature base from `@authority`, `signature-agent`, and `@signature-params`, as RFC 9421 describes.
4. Check the Ed25519 signature with that key.
5. Reject the request if the current time is past `expires`.

> [!NOTE]
>
> Identify Tenzai by the signature, not by the user agent. Tenzai has no fixed user agent, and customers can set their own. See [Identify Tenzai traffic](https://docs.tenzai.io/security/identify-tenzai-traffic.md#set-the-user-agent).

## What is not signed

* Network-level tools that do not use HTTP, such as port scans, carry no signature.
* With signing off, requests carry no signature.

## Report unexpected traffic

If you see Tenzai traffic to an application you did not authorize for testing, email `security@tenzai.com` with the time, the target host, and the request headers.

## Related

* [Identify Tenzai traffic in your SOC or SIEM](https://docs.tenzai.io/security/identify-tenzai-traffic.md)
* [Connectivity and firewall allow-list](https://docs.tenzai.io/security/connectivity.md)
* [Configure testing safety](https://docs.tenzai.io/pentests/configuring/configure-testing-safety.md)
* [Safe testing](https://docs.tenzai.io/security/safe-testing.md)
