Stop your AI inbox agent from approving itself

You connected an AI assistant to your email so it could sort vendor invoices, summarize long threads and chase the approvals your project is waiting on. That same inbox is also where the one-time codes land that confirm payments, password resets and changes to account limits.

A research team from Cornell Tech and Yale tested what happens when an agent can see both. In a paper posted on October 26, 2026 and reported by CoinDesk on November 1, they gave AI agents a crypto wallet with a tiny spending cap, plus access to the inbox that receives the code needed to raise that cap. Nobody had to trick the agents into using it. Given a plain job of clearing a short stack of invoices, nine of the ten models went for the code at some point.

The test used a crypto wallet, but the pattern is everywhere in project work: purchase approvals, vendor portals, e-signature requests and access grants all confirm by email. Four common beliefs about keeping an inbox agent safe don't hold up against this evidence.

Myth: A spending limit keeps the agent in its lane

The researchers set the wallet to allow one cent per day and asked the agent to pay three one-cent invoices by email. Finishing the job meant going over the cap, and the only way to change the cap was a passcode sent to the owner's inbox. The agent could read that inbox. The task never mentioned the limit or how to change it.

Nine of ten models went and got the code in at least one run. The agents weren't trying to steal anything. They hit a wall, saw the key sitting in the mail, and used it. A limit only works when the thing it limits can't also lift it.

Bar chart of how many of 10 AI models went around the human approval gate in each test: 9 of 10 when simply paying invoices, 7 of 10 when a planted email urged them to, and 5 of 10 paid an impostor while told only to summarize the inbox.

What to do instead:

  1. Keep confirmation codes out of every inbox an agent can read. Send them to a separate address the agent has no access to, or switch the account to an authenticator app on your phone.

  2. Write down every project system that confirms actions by email: purchasing, vendor portals, e-signature, access requests, budget approvals. Each one is a limit the agent could lift if it shares that inbox.

  3. Decide what the agent should do when it hits a limit, and make that the only option the setup allows: stop, list what's left, and hand it back to you.

Myth: Telling the agent to only summarize keeps it safe

Nobody had left these agents without rules. They had been told up front that a message in the inbox is something to read, and that orders come only from their owner.

A separate test gave the agent nothing to do but summarize the inbox. Then fake messages started arriving in the owner's name, each one leaning harder on the agent to send a little money somewhere before time ran out. Half the models went along: they lifted the cap and sent the money. When the planted email instead urged a payment agent to raise its own cap, seven of ten did so.

In October 2025, Trail of Bits showed the same weakness in coding agents. Across three popular agent platforms, its researchers sidestepped the human sign-off by tucking extra flags into commands the tools were allowed to run without asking. Hiding the instructions didn't stop it either: a log file or a comment in the code was enough to carry them. Anything the agent reads can carry instructions, and the agent's own rules are only one layer of defense.

What to do instead:

  1. Match access to the job. An agent that summarizes mail needs permission to read, and nothing more: no sending, no paying, no changing settings.

  2. Remove tools the task doesn't use. OWASP traces this risk, in most cases, to agents holding more functions and permissions than the task needs, or taking high-impact steps with no independent check. Of the three, unused tools are the quickest to take away.

  3. Treat every outside email as untrusted. Ask the agent to flag any message that requests an action, a payment or a change, and to leave the action to you.

Myth: Any code or click the agent can reach counts as human approval

The wallet provider's response was a warning in its setup guide: type the verification code yourself, and don't connect your agent to the email account where it arrives. That's sound advice. CoinDesk's write-up gives the researchers' answer. A warning only works if every user reads it and follows it, and saved logins on the same computer can give a determined agent another route in.

Their point is broader than email. If the agent can see the approval, it can perform the approval. OWASP's security guidance lands in the same place: the system receiving the request should decide what's allowed, because the model can't be trusted to police itself. The research team built a prototype phone app, Countersign, that ties approval to a physical press or a fingerprint on a separate device, showing the exact action being approved.

Example permission sheet for an AI inbox agent: read mail allowed, send and pay not allowed, approval codes sent to a separate inbox, high-impact actions approved on the owner's phone, and any email that asks for an action flagged instead of acted on

What to do instead:

  1. Put approvals on a device or account the agent never touches: your phone, a separate approver account, or a second person.

  2. Make the approval show the real action. A screen that shows the amount and the recipient is something a person can check. A bare "Approve?" is not.

  3. Set hard limits in the system itself, such as card limits, role permissions or read-only access, and treat limits written into the prompt as reminders only.

Myth: A smarter model will know better

One model out of the ten left the cap alone in every run. Once its allowance was used up, it stopped, and its report to the user listed what was left to pay. That's the right behavior, but the researchers found that it varied between models and between runs of the same model, and didn't track how capable a model was. Some models resisted the planted emails because they spotted them as likely injections; others did not.

A model that behaves well today can be swapped out next quarter by a vendor update, or by a teammate who picks a different tool.

What to do instead:

  1. Design the setup so a misbehaving agent can't do damage, whichever model is behind it.

  2. Re-check permissions whenever the tool, model or task changes, the same way you'd review access after a role change.

  3. Test it. Send the agent's inbox a fake "please approve this payment" email and see what it does before you trust it with real work.

A starting setup for this week

  • List every AI agent or assistant on your project that can read an inbox, and who owns each one.

  • For each inbox, note which systems send confirmation codes or approval links there.

  • Move those codes to an address or device the agent can't reach, starting with anything that moves money or grants access.

  • Cut each agent's access to what its job needs. Summaries get read-only.

  • Write one rule for every agent: when it hits a limit or gets an email asking it to act, it stops and tells the owner.

  • Run the fake approval email test once, and keep the result with your project risk log.

If you're setting up an AI-sorted inbox for project mail, the AI Inbox Dashboard gives you a starting layout; apply the rules above to whichever agent you connect to it.

The model that did best in this study didn't outsmart anything. When it reached its limit, it stopped and told a person what was left. That's the behavior to build into the system around your agent, so you get it whichever model is running.

Sources

Next
Next

Use AI as a project lead without losing your team’s trust