Engineering · 7 min

An agent's ID is a claim until TLS agrees

MCP, x402, and Web Bot Auth let agents announce themselves. TLS says whether the claim holds. A low human-likeness score is not the same as a bot.

Layer 1

Client integrity

Does the environment look intact, or automated?

Layer 2

Behaviour

Do timing and movement look like a person?

Layer 3

Agent-tell

What markers does the interaction leave?

Layer 4

Network

How did the request arrive?

Layer 5

Disclosure

Did the automation identify itself?

Layer 6Read first

Consistency

Do the signals agree with each other?

For most of the last decade, automation tried not to be seen. A scraper wanted to look like a browser, so it copied the user-agent string and hoped nobody checked the rest. That is still common. But a new class of client has stopped hiding: an agent that pays, signs, or speaks a protocol is often better off announcing what it is.

That changes the detection problem. The question is no longer only "does this look human?" It is also "what does this client say it is, what protocol did it negotiate, and does the transport agree?" Those are three different layers, and they fail in different ways.

Layer one: what the client claims

A user-agent string is a claim, not evidence. So is Sec-CH-UA, the client-hints header set that browsers send. Both are cheap to copy, and automation has copied them for years. The value in this layer is not the claim itself but the contradictions around it: a Chrome user-agent with no client hints, a Windows platform string on a Linux client, a browser that never asks for the favicon.

These checks are still worth running. They catch naive automation and misconfigured proxies. They just cannot distinguish a careful agent from a person, because a careful agent can send exactly the same strings.

Layer two: what the client negotiates

This is the layer that changed. Agents increasingly speak protocols that a human browser has no reason to speak.

Each protocol leaves a header footprint. The header proves the protocol, not the intent.
ProtocolWhat arrivesWhat it tells you
MCP (Streamable HTTP)MCP-Protocol-Version, Mcp-Method, Mcp-Name; legacy clients also send Mcp-Session-IdAn MCP client is calling. It expects a tool or resource, not a page.
x402 v2PAYMENT-SIGNATURE on retry; the server answers with PAYMENT-REQUIRED. v1 used X-PAYMENT.The client can pay for the request. It is an agent with a wallet.
Web Bot AuthSignature, Signature-Input, Signature-Agent (RFC 9421)The client makes a cryptographic identity claim. It can be verified against a published key.

The MCP headers are per-request metadata from the 2026-07-28 Streamable HTTP specification: every POST carries the version, the method, and usually the name of the tool or resource. The x402 v2 headers are the current HTTP binding of the 402 payment flow; v1's X-PAYMENT still appears in the wild. Web Bot Auth uses HTTP Message Signatures from RFC 9421, with a signer directory for the key.

None of these mean "bad." An MCP client is an agent doing a job. A paying x402 client is a customer. A verified Web Bot Auth signature is authorization. The detection job is to name the caller correctly, not to punish it for being automation.

Layer three: what the transport says

The transport is harder to fake than a header. A TLS client hello has a shape: cipher suites, extensions, curves, the order they appear. Tools like JA4 turn that shape into a fingerprint. Chrome, Go, Python, and curl produce different shapes, and a client that copies Chrome's user-agent does not automatically copy Chrome's TLS stack.

We do not store raw fingerprints. We ask the edge for a coarse family — chrome, firefox, safari, edge, go, python, curl, node, other — and compare it with the browser the request claims to be. A Chrome user-agent on a Python TLS stack is a claim that does not hold. That is not proof of malice; it is a contradiction worth acting on.

Three layers, three different questions. No single one is identity.
LayerQuestionCan be faked?What it cannot tell you
ClaimWhat does the client say it is?TriviallyAnything about the actual client.
ProtocolWhat did it negotiate?Yes, but the protocol is public and specificWhether the caller is authorized or welcome.
TransportWhat does the stack look like?Only by running a matching stackWhether a real browser is being driven by a person or a script.

A worked request

A publisher protects /articles/premium and wants to charge agents rather than block them. An agent arrives with a browser user-agent, MCP metadata, and an x402 payment header. The edge passes three things to POST /api/trace/score: the visitor's user-agent, the protocol header names it saw, and the TLS family it derived.

{
  "requestSignals": {
    "visitorUserAgent": "Mozilla/5.0 … Chrome/120 …",
    "protocolHeaders": ["mcp-protocol-version", "payment-signature"],
    "tlsClient": "python"
  }
}

The response separates the human-likeness score from the identity classification. This is the part people misread:

{
  "score": 14.2,
  "band": "bot",
  "action": "flag",
  "classification": { "label": "agent", "agentType": "browser_agent", "confidence": 0.8 },
  "agent": { "detected": true, "type": "browser_agent", "identity": "unknown" },
  "signals": [
    { "id": "agent_mcp", "fired": true, "detail": "MCP protocol headers present" },
    { "id": "agent_x402", "fired": true, "detail": "x402 payment header present" },
    { "id": "agent_protocol_mismatch", "fired": true, "detail": "browser user-agent with agent protocol headers" },
    { "id": "net_tls_mismatch", "fired": true, "detail": "claimed chrome, TLS python" }
  ]
}

The score is low because the client is not a human. The classification says agent, not bot. The action is a policy decision: flag it, or charge it. That is the difference between a score and an identity. A score is an estimate of human-likeness; an agent that pays is not trying to be human. Treating the low score as "bot" would be a category error.

The TLS mismatch is the piece that makes the rest credible. If the same request arrived with a Chrome-consistent TLS family, the protocol headers would still identify an agent, but the claim would no longer contradict the transport. The mismatch is the difference between "this says it is an agent" and "this says it is a browser, and the transport disagrees."

What this does not solve

The signals only exist when the edge supplies them. A relay that sends no protocolHeaders and no tlsClient gets none of this; the engine does not guess. That is deliberate: absent evidence should not become evidence.

The TLS family is coarse. It separates a browser stack from a Go or Python one, not one Chrome build from another. A determined adversary can run a real browser and drive it over CDP; then the transport matches and the protocol headers are absent, and the behavioural signals have to carry the decision. Layer three raises the cost of a disguise; it does not end it.

Protocol headers are also public and forgeable. A client can send MCP-Protocol-Version without being a well-behaved MCP client. What the headers buy is not certainty but a better question: if the client claims a browser user-agent and sends MCP headers, why? That contradiction is useful even when the claim is a lie.

And a signature is authorization, not intent. A verified Web Bot Auth key proves which key signed the request. It does not prove the request is welcome, the price is right, or the agent will behave. That is why the decision layer is separate from the score. The signed-versus-spoofed walkthrough covers the verification path; agent monetization covers what to do with a verified caller.

The shape of the answer

Detection used to be one question with a fuzzy answer. Agents make it three questions: what does the client claim, what did it negotiate, and what does the transport prove? The first is cheap, the second is specific, and the third is expensive to fake. Read together, they turn "looks automated" into "this is an agent, here is the evidence, and here is the policy decision."

We added the protocol and transport layers as optional inputs to the score API. The score reference documents the fields; the collector guide covers the browser side. The score is still an estimate. The identity is now something you can name.

Sources

Frequently asked

Does this mean you can identify every agent?

No. It means an agent that announces itself through MCP, x402, or Web Bot Auth can be classified as an agent, and a browser claim that contradicts its TLS family can be flagged. An agent driving a real browser with no protocol headers still depends on behavioural evidence.

Do you store TLS fingerprints?

No. The edge derives a coarse client family and sends that. Raw JA3/JA4 hashes never reach the engine or storage.

Is an agent automatically blocked?

No. The classification says agent; the action is a policy decision. A verified or paying agent can be allowed or charged. The engine recommends flag by default when the score is low and the identity is unverified.

Join the blog list

Occasional writing on behavioral detection, signed agents, and policy. No digest, no sequence, unsubscribe any time.

One script. One API call. A human-likeness score with the signals behind it, and a decision your server still owns.

Get started free