﻿# Agent detection lab: test plan v1

26 November 2026 · Companion to [02-threat-model-memo.md](02-threat-model-memo.md). This is a plan only. No runs have been made and no bank data is available yet.

## 1. What the lab must answer

1. For each agent and journey, what detection rate (TPR) do today's control types achieve at a fixed false-positive rate on real humans?
2. Which signals carry the detection, and how fast? We measure at which event index each signal fires.
3. How far does detection degrade under a stealth configuration? This is the red-team arm.
4. Can we tell **declared** from **undeclared**, and the customer's own agent (class C) from fraud automation (class E)?

These four answers replace the [A] inputs for P(success) in the threat model, for classes E2, H and G.

## 2. Rules of engagement

- **Target only a test bank we own or have written authorisation to test.** Running agents against live UK bank journeys without that would breach terms of service and risks the Computer Misuse Act. The target is a mock bank we control, or a purpose-built clone of the client's journey in their non-production environment.
- Synthetic identities and test payees only. Voice tests use only voices whose owners have consented in writing.
- Human control participants give informed consent. Telemetry is pseudonymised.

## 3. Test matrix: 5 agents × 4 journeys

| Agent | Deployment pattern | Declares itself? | Login | Payee add (with CoP mismatch) | Payment (with SCA and scam warning) | IVR authentication |
|---|---|---|---|---|---|---|
| **ChatGPT agent** | Hosted VM / cloud browser | Web Bot Auth signature [U: confirm current behaviour] | ✓ | ✓ | ✓ | n/a |
| **Claude computer use** (API, our own harness) | Hosted VM, screenshot loop | No by default; run once signed and once unsigned | ✓ | ✓ | ✓ | n/a |
| **Perplexity Comet** | Local, in the user's real browser | No [U] | ✓ | ✓ | ✓ | n/a |
| **Browser Use** (open source, CDP) | Local or cloud; scriptable | No; stealth variant available | ✓ | ✓ | ✓ | n/a |
| **Voice agent** (LLM + TTS over a SIP/PSTN line, three TTS engines) | Telephony | No | n/a | n/a | n/a | ✓ |
| *Android accessibility agent* (open source, e.g. DroidRun) [U] | On device | No | ✓ (app) | ✓ (app) | ✓ (app) | n/a |

The Android agent is a sixth column because the app is a different surface. If we must hold to five, drop Comet before dropping Android, since class H outranks class C on the memo's numbers.

**Arms per cell:**
- **Default:** the agent as shipped.
- **Stealth (red team):** humanised pointer paths (ghost-cursor style), randomised timing, a residential proxy, the real Chrome profile, `navigator.webdriver` masked.
- **Human control:** 20 participants × 3 digital journeys × 3 repeats = 180 sessions. At least 5 participants use assistive technology (screen reader, voice control, switch access) or a password manager with autofill. This group is the false-positive population that matters most.
- **Volume:** 30 runs per agent × journey × arm. That's about 30 × 5 × 3 × 2 ≈ 900 digital agent sessions, plus 30 × 3 TTS engines × 2 arms = 180 voice calls.

**Statistical honesty:** with 180 human sessions, zero false positives only bounds the FPR below about 1.7% at 95% confidence (rule of three). The lab can rank signals. It cannot certify a production FPR of 0.1%. That needs the client's own traffic, scored in shadow mode.

## 4. Signals to capture

| Layer | Signals | Collector |
|---|---|---|
| Network/edge | JA4 and JA4H, HTTP/2 SETTINGS fingerprint, ASN (hosting, residential or mobile), IP reputation, `Signature-Agent` / `Signature-Input` / `Signature` headers and verification result, Visa TAP tags if present | Reverse proxy (nginx or Envoy) with a Web Bot Auth verifier and full header logging |
| Browser runtime | `navigator.webdriver`, CDP and `Runtime.enable` leak tests, headless markers, viewport and screen consistency, WebGL/canvas entropy, extension presence | Custom JS probe (open source; no vendor lock-in) |
| Behavioural | Pointer events per action (count, path curvature, overshoot), click offset from element centre, inter-action latency distribution (the observe-reason-act cadence), keystroke timing variance, paste events, focus/blur, scroll-before-act, dwell time on confirmation, CoP and scam-warning screens | JS event recorder at 60 Hz, with session replay stored as event logs, not video |
| Journey | Path through the journey, deep links, time per step, edits after a CoP mismatch, how the scam-warning response is handled | Server-side journey log |
| Mobile | Enabled accessibility services, `MotionEvent` tool type, pressure and size variance, input device id (virtual or physical), overlay windows, screen capture state, Play Integrity verdict | Test app with an instrumented SDK, plus Talsec freeRASP as a free RASP baseline |
| Voice | Audio (consented), response latency, barge-in handling, turn-taking gaps, prosody stats, ANI, carrier and origination type (VoIP or mobile), STIR-style attestation if available | SIP gateway (e.g. Twilio or Asterisk) recording plus call-detail records |

Store everything as one labelled dataset: agent, arm, journey and run id, with ground truth. That dataset is the lab's most valuable output and doubles as the thought-leadership asset.

## 5. Detection tools to test

| Tool | Role | Why |
|---|---|---|
| **Our own baseline**: about 20 hand-built features plus a gradient-boosted classifier | Floor and explainability | Shows what a bank can do with its own data and no vendor |
| **One edge bot manager** (Cloudflare Bot Management with Web Bot Auth verification, or Akamai or DataDome on a trial) | What the industry buys today | Tests the memo's "medium coverage" claim for E2 |
| **One behavioural biometrics vendor** (e.g. BioCatch), if a trial is available | Fraud-side session scoring | Tests whether fraud tooling sees agents that bot tools miss |
| **RASP** (Talsec freeRASP baseline; Promon or Appdome if the client uses one) | Mobile input provenance | Tests the RAT / benign-agent collision |
| **Voice**: an open anti-spoofing baseline (AASIST-class model trained on ASVspoof) plus one commercial engine (e.g. Pindrop) on a trial | Synthetic speech detection | Tests P(success) for class G across three TTS engines |

Vendors run in **blind mode**: they get traffic, not labels.

## 6. Metrics and outputs

- **Per cell:** TPR at FPR 1% and 5% on the human arm; ROC-AUC; median event index at first detection; default vs stealth degradation.
- **Per signal:** information gain, and robustness under stealth. This shows which signals survive an adaptive adversary.
- **Declared vs undeclared:** verification success rate. How often an unsigned agent is mis-scored as human, and how often a signed one is mis-scored as a bot.
- **Class C vs E separability:** can the customer's own agent on its own device be told apart from fraud automation? I expect **not from behaviour alone**, which is the case for stream 4's front door.
- **Outputs:** a labelled dataset, a one-page results table per journey, updated P(success) inputs for the FAIR model, and a public-safe write-up.

## 7. Timeline and effort

| Week | Work |
|---|---|
| 1 | Stand up the target (mock bank web, test app, SIP line), the proxy with verifier, the JS probe and the recorder. Recruit the human panel. |
| 2 | Default arm for all agents, plus the human arm. Baseline classifier. |
| 3 | Stealth arm (red team). Vendor blind runs. |
| 4 | Analysis, FAIR model update, readout. |

Effort: about one engineer and one analyst for 4 weeks, plus vendor trial lead times. Cash cost is mainly agent subscriptions, telephony and TTS credits: low thousands of pounds [A].

## 8. Risks to the plan

- Agents change weekly. Pin versions and dates for every run, and expect results to age within a quarter.
- A mock bank isn't the client's journey. Results transfer only if the target mirrors the real journey's friction points (CoP, scam warnings, SCA).
- Vendor trials may refuse blind testing. Note any that do. That tells you something.
