﻿# Agent detection: working context

This repo holds discovery and strategy work on **detecting AI agents at the perimeter of a UK retail digital bank**, across web, mobile app and IVR/voice. Treatments (block, step-up, reroute, allow) are in scope only where they shape detection design. IAM for agents (delegation, mandates) is a separate, linked workstream.

## Where the work stands (26 Nov 2026)

| File | What it is | Status |
|---|---|---|
| `01-deck.md` | Client deck: framing, taxonomy, priced risk table, priorities, 5 workstreams, next steps | v1, aligned with the memo |
| `02-threat-model-memo.md` | Threat model: per-class attack path, signals, control coverage, FAIR £ ranges, re-ranking, validators. **The organising deliverable of discovery** | v0 desk model (public data plus assumptions) |
| `03-lab-test-plan.md` | Lab design: agents × journeys, signals, tools, metrics | Plan only, no runs yet |
| `04-discovery-brief-v2.md` | The original long-form brief: taxonomy, signal maps, regulation, vendor map | v2, aligned with the memo and deck |
| `model/fair_model.py` | Monte Carlo loss model. `python3 model/fair_model.py today` or no argument for the 2027 view | Inputs are assumptions |

## Decisions so far

- **Framing:** two systems. (1) Recognise declared agents cryptographically (Web Bot Auth, Visa TAP, Mastercard Agent Pay, Open Banking certificates). (2) Detect undeclared automation (behavioural, device, network, voice). Principle: *make declaring cheaper than hiding*.
- **Taxonomy:** 8 classes, A–H. A class describes a **request**, not a vendor.
- **Priority order:** mule and synthetic onboarding → voice → automated ATO → mobile RAT → customers' own agents → hijacked agent → signed agent with no mandate → benign callers and scheme residual.
- **Honest business case:** about 90% of today's modelled exposure is automation-enabled fraud that existing programmes own. Agent-specific classes are about £1m a year at the reference bank. The case for new work is regulatory expectation, a cheap recognition layer and 2027 growth.

## Open inputs (replace these assumptions first)

1. Share of the bank's mule accounts opened through automation. This is the most sensitive input.
2. The bank's receiving-side APP reimbursement cost.
3. Whether voice ID gates payee or limit changes.
4. Voice-channel attack volume and voice ID pass rate against clones.
5. Remote-banking ATO losses by channel.
6. Rate at which customers adopt their own agents. This drives false-positive cost.

## Working conventions

- Tag every claim: **[P]** primary source, **[S]** secondary or vendor, **[A]** assumption, **[U]** unverified. Prefer primary sources (FCA, PSR, UK Finance, IETF, scheme specs) over commentary.
- Write for the decision. Prose and tables, no padding. Challenge the framing where data contradicts it.
- **Never run agents or tests against live bank journeys without written authorisation.** Use a non-production environment or a mock bank. Synthetic identities and test payees only. Voice samples only with written consent.
- Client data stays inside the client environment. Don't paste it into external tools.

## Next steps

The threat model drives discovery: **v0 desk (done) → v1 client model (weeks 1–2) → v2 lab-calibrated (weeks 3–4)**. Owner: stream 5.

1. **v1:** get open inputs 1–3 from fraud operations and financial crime, plus the journey inventory and interviews. Rerun `model/fair_model.py` with client inputs. Update the memo and the deck's risk slide, then have the fraud operations lead validate the ranking.
2. Walk through the deck and name the stream leads.
3. **v2:** run the thin lab slice (2 agents × login and payee add) in a non-production environment, then the full plan. Replace assumed P(success) with measured detection rates, and have an independent red team challenge the results.
4. Readout: the v2 ranking plus a risk-ranked backlog per stream.
5. Engage the FCA Agentic Policy Sprint and UK Finance as validators of the policy model (memo §6).
