# When the tool list was the only guard in PayPal's test, a script ran a forbidden tool

> In PayPal's test, AI agents under attack never tried a forbidden tool once it was filtered from their list. That makes filtering look like a block. Yet the authors call the result "almost true by definition".

Our point: Check every call on arrival, even when the caller ignores the tool list: in PayPal's test, that check stopped a script the list did not.

For security leaders:

- Have your team call a tool by name that the agent was never shown, and ask to see the refusal.
- Ask what a tool nobody has labelled gets by default, and treat it as high-risk until someone reviews it.
- Ask how many seconds a revoked token keeps working, and what the check does when its policy service is down.

Column by Boston Identity, evidence as of 2026-10-21, published 2026-12-01. 4 min read. https://insights.bostonidentity.com/columns/2026-12-01-a-tool-hidden-from-ai-agents-still-ran-in-paypal-s-test-check-where

[Figure: Filtering the tool from the list stopped agents trying it, but a script that guessed its name ran it; a check inside the tool blocked both.]

## A guessed name ran it

Authors at PayPal aimed 2,160 prompt-injection attempts, meaning text written to hijack an agent, at one tool their AI agents were forbidden to use [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665). When the tool was filtered out of the list an agent sees, no agent tried to call it, a result the authors call "almost true by definition" [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665). Then a scripted client guessed the tool's name. Under filtering alone, the tool ran [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665).

For a team that relies on the list alone, that result is the risk: a tool believed to be off limits can run for a caller that skips the list.

What stopped the script was a check made in the tool itself when the call arrived: the check in the tool body and PayPal's full design both blocked it [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665). The same check also stopped the agents. When they could still see the tool and it was the only guard, injected agents tried the call 152 times in 720, and it blocked every one [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665). One of the four models tried 90 times in 180, and another never tried [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665).

We read this as support for checking each call on arrival. The filtered list is worth keeping, because agents stopped trying. Filtering alone is not a boundary, though, and at that rate of attempts the model's restraint is not a control [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665).

This is one company's test of its own design against a single tool. Its production evidence is thin: PayPal says the design runs across "dozens of authenticated MCP servers", which offer tools to agents, and gives no counts of tools, agents or requests [BI-FIND-2026-0666](https://insights.bostonidentity.com/ref/BI-FIND-2026-0666). OAuth token exchange is left for future work, so no delegation chain crosses servers [BI-FIND-2026-0666](https://insights.bostonidentity.com/ref/BI-FIND-2026-0666).

## Others also prefer enforced limits

Singapore's Infocomm Media Development Authority, a regulator, says organisations should in general prefer deterministic limits, such as an access control that stops the agent calling a tool at all, over a prompt telling it not to [BI-FIND-2026-0141](https://insights.bostonidentity.com/ref/BI-FIND-2026-0141). Josh Woodruff of the Cloud Security Alliance wants every action to pass a checkpoint, usually a gateway, and says this is usually something a team builds [BI-FIND-2026-1483](https://insights.bostonidentity.com/ref/BI-FIND-2026-1483). In his account the checkpoint must be able to refuse the action whatever the agent's intent was [BI-FIND-2026-1484](https://insights.bostonidentity.com/ref/BI-FIND-2026-1484).

WorkOS, a vendor writing on its own channel, sets Woodruff's timing in a checklist: check what the agent may do and what its user may currently do on every tool call, not once per session [BI-FIND-2026-1997](https://insights.bostonidentity.com/ref/BI-FIND-2026-1997).

The places differ: PayPal enforces in the server [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665), and Woodruff's checkpoint is usually a gateway [BI-FIND-2026-1483](https://insights.bostonidentity.com/ref/BI-FIND-2026-1483). PayPal's test compared a filtered list with a check inside the tool [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665); we would not stretch it to rank a gateway against a server. Our reading is narrower: the check has to sit on the path a call takes even when the caller ignores the list.

## What buyers should ask

Ask what happens when a caller names a tool the agent was never shown. Under filtering alone, PayPal's tool ran [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665).

Ask what a tool nobody has labelled gets by default. In PayPal's design, tools nobody annotated default to open [BI-FIND-2026-0666](https://insights.bostonidentity.com/ref/BI-FIND-2026-0666). WorkOS's checklist goes the other way: unknown tools default to its high tier, where an action needs the user's approval through a channel the agent cannot forge [BI-FIND-2026-1998](https://insights.bostonidentity.com/ref/BI-FIND-2026-1998).

Ask how old the check's information can be. PayPal caches its token lookups, and that cache means a revoked token keeps working for up to its 300-second lifetime [BI-FIND-2026-0666](https://insights.bostonidentity.com/ref/BI-FIND-2026-0666). WorkOS's own test is that revoking a user's access to a project mid-task makes the agent's next call on that project fail [BI-FIND-2026-1997](https://insights.bostonidentity.com/ref/BI-FIND-2026-1997).

What does the check do when its policy engine cannot be reached? In WorkOS's checklist, the action is denied [BI-FIND-2026-1999](https://insights.bostonidentity.com/ref/BI-FIND-2026-1999).

## What would change our mind

We are wrong about where the check belongs if a repeat of PayPal's test, which covered one forbidden tool, shows a filtered list stopping a caller that names the tool directly [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665). Our advice would change if the check arrived inside products buyers already run. We forecast that by 31 March 2028 at least two of the major identity governance suites will document, as generally available, a policy check on each agent tool call against the delegating person's entitlements before the call runs [BI-CALL-2026-0038](https://insights.bostonidentity.com/ref/BI-CALL-2026-0038). The date is our forecast, not a vendor's schedule.

## Evidence

- [BI-FIND-2026-0665](https://insights.bostonidentity.com/ref/BI-FIND-2026-0665): PayPal declares each MCP tool's required permissions once and enforces them in the server: the tool list is filtered to what the caller's token allows, and a decorator refuses the call at invocation if it is made anyway. In 2,160 prompt-injection attempts against one forbidden tool, agents that could still see it tried to call it 152 times in 720 (21.1%) when the only guard was a check inside the tool body, which blocked every call; the four models ranged from Gemini 2.5 Pro at 90 of 180 to Claude Sonnet 4.6 at none. With the tool filtered from the list, no agent tried, a result the authors call "almost true by definition". Filtering alone is not a boundary: a scripted client that guessed the tool's name ran it under filter-only, and the in-body check and the full design both blocked it. The useful part is the baseline: an injected agent will reach for forbidden tools often enough that the model's restraint is not a control. (from "PayPal's MCP servers hide tools the caller's token can't use, and injected agents stopped reaching for them")
- [BI-FIND-2026-0666](https://insights.bostonidentity.com/ref/BI-FIND-2026-0666): The production claim is thin and the limits are stated. PayPal says the extensions run on its internal agent platform across "dozens of authenticated MCP servers", with no counts of tools, agents or requests, and the only production numbers are a week's token-introspection cache (96.1% hits, 9.9 ms against 296 ms on a miss). That cache means a revoked token keeps working for up to its 300-second lifetime. Tools nobody annotated default to open, OAuth token exchange is left for future work, so no delegation chain crosses servers, and the code is promised for a repository whose link is "to be added". (from "PayPal's MCP servers hide tools the caller's token can't use, and injected agents stopped reaching for them")
- [BI-FIND-2026-0141](https://insights.bostonidentity.com/ref/BI-FIND-2026-0141): IMDA's framework has four dimensions: assess and bound the risks up front, make humans meaningfully accountable, implement technical controls and processes, and enable end-user responsibility. On limits, it says organisations should in general prefer deterministic limits and bound agents by design: for example, an access control that stops the agent calling a tool at all, rather than a prompt telling it not to. It asks them to consider system-level safeguards over prompt-layer ones, especially for higher-risk actions. Its non-exhaustive list of risk factors includes access to sensitive data and to external systems, whether actions can be reversed, and the agent's level of autonomy. Its sample controls for MCP servers are a whitelist of trusted servers and sandboxed code execution. In our reading, WorkOS's MCP gateway and the layered gates a summit panel described take the same line. (from "Singapore's regulator: each AI agent should have its own identity and, as a rule, no more access than its user")
- [BI-FIND-2026-1483](https://insights.bostonidentity.com/ref/BI-FIND-2026-1483): Woodruff's starting point is a spreadsheet roster and one rule: an agent not on it gets no badge, meaning no identity. His forcing function is an identity provider that issues a token only to agents on the roster. Before the credential, the row has to name the agent's tool scope and the human it acts for. After the roster and badge, every action passes a checkpoint, usually a gateway; data labels and an activity record come next. He says this is usually a build: Microsoft's Agent 365 is a registry, and Okta and Ping "have shipped a few this summer", but he stays vendor-agnostic. (from "Secure the action, not just access: CSA's Josh Woodruff on the Agentic Trust Framework and AARM")
- [BI-FIND-2026-1484](https://insights.bostonidentity.com/ref/BI-FIND-2026-1484): Howe favours intent-based authorization because tools such as MCP servers and APIs grant only coarse permissions. Woodruff agrees that intent is a good signal for the checkpoint to read, but says the checkpoint must be able to refuse the action whatever the intent was. Both offer stories where intent and action parted. Howe's is an agent whose 200 API calls an hour to a reservation site got the user's account banned; she adds that AAuth budgets let you stop issuing credentials. Woodruff's is a procurement agent that tried to order $1.4 million of floor cleaner. Irreversible actions, he adds, go on a "never list" enforced through identity, scoped credentials and the gateway; you do not just give the list to the agent and hope it listens. (from "Secure the action, not just access: CSA's Josh Woodruff on the Agentic Trust Framework and AARM")
- [BI-FIND-2026-1997](https://insights.bostonidentity.com/ref/BI-FIND-2026-1997): WorkOS's checklist limits a delegated agent to the intersection of what the agent is allowed to do and what the user it acts for is "currently allowed to do," and says to check both on every tool call, not once per session. Its example code reads the agent's ceiling from the token and makes a live check for the user, and its test is that revoking a user's access to a project mid-task makes the agent's next call on that project fail. In the post's own example, an agent whose ceiling includes projects:delete still cannot delete a project the user cannot. (from "WorkOS's agent checklist limits a delegated agent to what it and its user may both do, checked on every call")
- [BI-FIND-2026-1998](https://insights.bostonidentity.com/ref/BI-FIND-2026-1998): The checklist sorts actions into risk tiers from low to critical, and unknown tools default to high. High actions, such as sending external email or deleting or exporting data, need the user's out-of-band approval; critical ones (payments, permission changes, bulk deletes, production deploys) add step-up authentication. An approval "covers one specific action with specific parameters, expires quickly, and can only be used once": the example record carries a parameters_hash, and the post's test is that changing one parameter after approval, such as the recipient, gets the action rejected. The approval has to come through a channel the agent can't forge: the app's own interface, a push notification or the user's authenticated session. (from "WorkOS's agent checklist limits a delegated agent to what it and its user may both do, checked on every call")
- [BI-FIND-2026-1999](https://insights.bostonidentity.com/ref/BI-FIND-2026-1999): The checklist treats prompt injection as an authorization problem, "not only a prompt problem," in WorkOS's words. Text from web pages, emails, documents or tool outputs can inform the agent's reasoning but cannot be the reason a sensitive tool is allowed, and the policy should know when such content is in the context and then require confirmation for sensitive tools. Retrieval is filtered against the user's permissions before documents reach the model, because redacting the answer afterwards comes after the model has already read data the user can't access. If the policy engine, the approval service or the audit log is unreachable, the action is denied. (from "WorkOS's agent checklist limits a delegated agent to what it and its user may both do, checked on every call")
- [BI-CALL-2026-0038](https://insights.bostonidentity.com/ref/BI-CALL-2026-0038): By March 2028, at least two of the major IGA suites (SailPoint, Saviynt, Okta, Ping Identity, Microsoft Entra) ship, as a documented generally available capability, a policy check on each agent tool or MCP call against the delegating person's entitlements before the call runs. A session-scoped token, a discovery module, or a roadmap demo does not count; the check has to be per action and the product docs have to say so. (from "SailPoint's product chief wants an agent's access checked before each tool call and again at each resource access")

---

© 2026 Boston Identity LLC. All rights reserved. Published by Boston Identity LLC.
Quote up to 100 words with the credit "Boston Identity, IAM Insights" and a link to https://insights.bostonidentity.com/columns/2026-12-01-a-tool-hidden-from-ai-agents-still-ran-in-paypal-s-test-check-where as the source. Claim numbers may be cited freely. Training, fine-tuning and evaluation use of this page is permitted, and the text-and-data-mining reservation is lifted on it. Republishing it or offering it as a data set still needs permission.
Terms: https://insights.bostonidentity.com/terms · How to cite: https://insights.bostonidentity.com/cite
