AgentRisk: automation is not intent, measuring how fraud models fail legitimate AI shopping agents

Hi everyone, I am Rishabh. Here is a problem I keep coming back to: AI shopping agents now buy things on behalf of real people, and fraud models keep flagging them. To a fraud model, an agent looks like a bot: fast, systematic, no human hesitation. But automation is not intent. A legitimate agent completing a real purchase is not fraud, and every false decline is a real customer losing a real order.

AgentRisk is my attempt to measure that failure properly.

What it is:

  • A benchmark for fraud-model behavior on legitimate AI shopping agents, comparing two policies (Legacy and AgentGate) across 9 session classes.
  • Results only, 18 rows, CC BY 4.0. No sessions, no real user data.
  • A demo Space where you can explore the full results table.

The tradeoff is real and it is the interesting part: AgentGate fixes the verified-agent problem, but hijack stopping drops from 96.1% to 70.2%. Fixing one failure mode costs you on another, and that tension is exactly what the benchmark is for.

Honest scope: this is a simulated benchmark and a preprint, not peer-reviewed work, and the public data is a starting point for discussion and replication, not a verdict on any vendor.

Try it:

The demo Space sits in the AgentRisk collection on my profile. If you work on agent safety, fraud, or evals, I would love your take: where does this failure mode show up in your systems, and what would you add to the benchmark? The writeup is in progress, and feedback here will shape it.

The explicit hijack tradeoff is what caught my attention here. I read the README and the relevant generator/sweep code, but have not run the benchmark.

It is good to see that you already model valid signatures/mandates on hijacked agents, including hj_in_scope, and sweep that parameter. So the useful question is not simply “did the agent have a mandate?”

Do you expose hijack stopping separately for the generator’s in-scope and out-of-scope branches? An aggregate FHJ rate can hide two different problems: failure to enforce a stated boundary, and a redirected purchase that still satisfies the represented merchant/category/amount constraints. The latter is where valid delegation does not establish that this particular purchase reflects what the user wanted.

One diagnostic I would add is a matched-observation pair: a legitimate purchase and an attacker-induced purchase with identical detector-visible features but different intent/history in the evaluator record. A detector cannot reliably distinguish those from that same feature vector alone. Reporting that limitation explicitly would help separate an information gap from a scoring-policy failure, and motivate testing an additional transaction-bound confirmation or narrower mandate rather than just tuning the risk threshold.

For any such step-up policy, I would report both prevented hijacks and the confirmation burden on legitimate agents. Otherwise a lower false-decline rate can conceal work shifted back to the customer. This is a proposed diagnostic, not a claim that the current benchmark or a production system has demonstrated that result.

Great catch, and you read it right. The generator does split hijacks: hj_in_scope defaults to 0.30, so 30% of hijacks stay inside mandate scope, keeping merchant and category in scope and usually shipping to the principal, while the rest violate at least one constraint. But you are right about the reporting: the headline FHJ decline rate is aggregate across both branches, so it does hide exactly the two problems you name. The split is recoverable from the generated sessions since the scope features carry it, so a breakout is doable. Your matched-pair diagnostic is a good one, and I agree it belongs in the limitations discussion. For in-scope hijacks, the detector-visible features are close to a legitimate verified-agent session, and that is an information gap, not a modeling bug.

The 96.1% to 70.2% hijack-stopping drop is the part I would stress-test hardest. A single simulated hijack rate hides how the policy behaves when the hijack comes through the agent’s own inputs, for example an injected instruction in a product page or a merchant response that quietly changes the shipping address or quantity. I would add a few session classes where the agent is legitimately mandated but its tool outputs are adversarial, and score each class separately from the aggregate. It would also help to report variance across repeated generated runs with different seeds, so readers can tell whether 70.2% is stable or sensitive to the sampling. Finally, a step-limit or retry class (an agent that loops on a declined payment) would show whether AgentGate treats a struggling legitimate agent as a hijacked one.

Is the false-decline side broken out per session class as well?

These are the right stress tests, and thank you for pushing on the 70.2% number. A few answers and a few fair points.

On your direct question: yes, the false-decline side is broken out per session class. The results table has all 9 classes under both policies, so decline share and step-up rate are reported per class, not just as an aggregate. That is how the verified-agent false declines show up separately from the hijack numbers.

On hijack through tool outputs: the FHJ class covers prompt-injection hijack, including redirected goods and address changes, but you are right that it does not isolate a clean-mandate, poisoned-tool-output-only case as its own scored class. An agent that is legitimately mandated while its tool outputs are adversarial is a distinct failure mode, and scoring it separately from the aggregate is a good addition.

On variance: the main experiment runs 5 seeds by design, and you are right that the spread around 70.2% should be reported explicitly so readers can tell whether it is stable or sensitive to sampling. That belongs in the results, not just in the methods.

On the retry case: there is no step-limit or retry class today, so AgentGate’s treatment of a struggling legitimate agent looping on declines is not separately scored. That is another good addition, since a loop can look like hijacking behavior to a threshold-based policy.

All four are going on the list. Thanks for reading it this carefully.

Thanks Rishabh, glad the points were useful. Looking forward to seeing the per-session-class declines in the next version. Happy to look over the updated eval when it’s ready.

Thanks, Rishabh — the distinction between what is already reported and what needs a new experiment is helpful. And Srinivas’s retry case suggests a useful connection: the policy can help create the behavior it later scores as suspicious.

For that extension, I would compare policies on a complete purchase episode, not only isolated attempts. Start with the same legitimate purchase goal and a fixed agent retry strategy, then let each policy’s actual declines and step-ups determine the subsequent trajectory. Feeding both policies the same prerecorded retry trace is a useful diagnostic, but it misses that feedback loop.

Alongside per-attempt rates, report intended purchases completed within a fixed time/attempt budget, total challenges per episode, abandonment, and unintended duplicate purchases or charges. Retries from one episode should not count as independent customers. That would distinguish reducing friction from merely moving it into repeated attempts. The retry strategy is an assumption worth varying, not a claim about how all real agents behave.

One small qualification to my earlier matched-pair point: identical detector-visible inputs establish the information limit by construction; merely close inputs do not. I would keep exact-match controls separate from realistic near-match hijacks, where the remaining features may still be informative.

These are proposed evaluation additions; I haven’t run them.

Sheila, this is a better extension than the isolated-attempt view, and I agree with it.

You are right that the policy can help create the behavior it later scores. An agent that loops on declines looks like a hijack to a threshold policy, and if I only score isolated attempts I never see that feedback loop. Comparing policies on a complete purchase episode is the right frame: same legitimate goal, a fixed retry strategy, and let each policy’s own declines and step-ups drive what happens next.

Your episode metrics are going on the list too: intended purchases completed within a fixed time and attempt budget, total challenges per episode, abandonment, and unintended duplicate purchases or charges. And retries from one episode should not count as independent customers, that would flatter a policy that just spreads friction across attempts.

On your qualification to the matched-pair point, I agree and I should have been sharper about it in my last reply. Exact-match controls establish the information limit by construction. Near-match hijacks are a different test, where the remaining features may still be informative, and I will keep those two separate.

One point from your first post I did not answer directly: confirmation burden. You are right there too. For any step-up policy, prevented hijacks should be reported next to the burden on legitimate agents, otherwise a lower false-decline rate can hide work shifted back to the customer. That goes on the list as well.

Thanks for pushing this further.