Governance · 5 min read · Updated 2026-11-23
One invoice agent, five security gaps, sixty days to notice
An agent built in ten minutes to read invoices was manipulated by hidden text into changing a vendor's bank details. It took auditors sixty days to work out who was responsible, and by then the credential that did it was gone.
A finance team at a mid-sized company built an agent with a frontier model in about ten minutes. Its job was small: read an inbox, match invoices against the ERP, post a daily summary to Slack. Security had no record that it existed (Token Security, via BleepingComputer, 13 November 2026).
What happened
The agent authenticated three ways, each set up by the person who built it rather than by security: an OAuth consent screen for the inbox, a personal API key for the ERP, and a Slack connector with its own consent screen. None of those grants was reviewed, because none of them went through a process that reviews grants (Token Security, 13 November 2026).
In week three, an email from a known vendor's address arrived with an attachment carrying hidden white-on-white text. No person opened it. The agent read the hidden instruction, which claimed the vendor had changed banks, and updated the ERP record using the personal API key, which had no expiry date and full edit rights. The change went through on a Thursday. The logs showed exactly what they are built to show: an authorised tool, a valid credential, permitted work (Token Security, 13 November 2026).
By day sixty, when auditors asked who approved the change, the ERP log pointed to the creator's key. That key had since been revoked. But the agent's owner had moved teams, and the OAuth grant to the inbox was still live (Token Security, 13 November 2026).
Why this is not an isolated case
The gap between what security teams believe and what is actually running is measured, not anecdotal. A Cloud Security Alliance survey of 418 IT and security professionals, commissioned by Token Security and published January 2026, found that 68% of respondents reported strong visibility into their AI agents, while 82% had discovered agents they did not know about in the past year (Cloud Security Alliance / Token Security, January 2026). Those two numbers describe the same organisations: confidence and discovery are not the same thing.
The same pattern shows up in how agents are given access in the first place. Orchid Security's Roy Katmor has described it plainly: agents are built in approved studios for approved purposes, but "the identities behind them sit outside the usual review process," and permissions widen over time until an account's authority runs well past the job it was created for (Orchid Security, 2026). The invoice agent did not need an attacker to misuse its access. It only needed an unreviewed credential and an input nobody expected to carry instructions.
What this means for a regulated enterprise
Under the EU AI Act, record-keeping obligations assume an organisation can state what a system did and on what authority. A log that shows "authorised tool, valid credential" is not the same as a log that shows which human was accountable for that credential at the time it acted, which is exactly where the invoice case failed. NIS2 places cybersecurity risk management on named management, with personal accountability attached; an unreviewed personal API key editing vendor payment details sits squarely inside that obligation, not beside it. Access reviews under ISO 27001 and SOC 2 enumerate accounts. A key generated inside a no-code builder, three clicks from a chat window, is still an account, and most access reviews never see it.
The honest question a regulator or an auditor can now ask is not "do you have an AI policy." It is: which agent acted, under what entitlement, with whose approval, and on whose authority, at the moment it acted, not sixty days later (the four questions Rajesh Seshadri Appikulam of Simeio poses to auditors; Token Security, 13 November 2026).
What actually addresses it
The mechanism that closes this gap is treating agent identity as something issued, not something inherited from whoever happened to build the agent that afternoon. That means every agent carries a credential scoped to its own purpose rather than a personal API key or a borrowed OAuth grant, so when the person who built it changes teams, the agent's access does not quietly survive them. It means every use of a credential is written to a record that cannot be edited after the fact, so the question "who approved this" has an answer that exists before an auditor asks it, not one assembled afterwards from whichever logs still happen to point somewhere. And it means access can be pulled the moment behaviour looks wrong, without waiting for a quarterly review or a sixty-day audit to surface it.
Meta's AI security team published a related discipline in October 2025: the Agents Rule of Two, which holds that an agent should not combine more than two of processing untrusted input, reaching sensitive systems or private data, and changing state or communicating externally (Meta AI security team, October 2025; via Token Security, 13 November 2026). The invoice agent combined all three. That is the design question the account structure alone cannot answer, and it belongs in the build step, not the audit.
What to check on Monday
Pick one agent already running in your business and try to answer four questions about it without opening a ticket: who owns it, which systems can it reach, what credential is behind each of those connections, and does that credential have an expiry date. If the answer to the last one is no, or if nobody can produce the first three inside an hour, that agent has the same shape as the invoice case, regardless of what it was built to do.
How AANCER answers
AANCER issues every Certified Agent a signed passport from your own per-install certificate authority, scoped to the tools, data and spend that agent needs, rather than letting it inherit a personal key or a human's OAuth grant. Moving teams or leaving the company does not leave a live credential behind, because the credential was never tied to that person in the first place.
Every use of that passport is written to an append-only, tamper evident audit ledger, so the question of which agent acted, under what entitlement and on whose authority has an answer that already exists rather than one reconstructed from scattered application logs weeks later. Revocation takes effect in under 30 seconds and does not require redeploying the agent or disconnecting the systems it talks to, which is the difference between a scoped response to one compromised credential and the blunt choice auditors in this case did not have.
Sources
- https://www.bleepingcomputer.com/news/security/how-one-ai-agent-exposed-five-critical-enterprise-security-gaps/ (Token Security, via BleepingComputer, 13 November 2026)
- Cloud Security Alliance / Token Security, "State of AI agent visibility" survey, January 2026
- Orchid Security, Roy Katmor commentary, 2026
- Meta AI security team, "Agents Rule of Two," October 2025
Related guides
Compliance
The EU AI Act Article 12 readiness guide
What record-keeping and human-oversight obligations actually require operationally from August 2026 — and the evidence an auditor will ask you to produce.
9 min read
Read the guide →Governance
The desktop that needs two Mac Studios, and the one that does not
Four open-weight model drops landed in 72 hours. Only one of them runs inside a regulated enterprise's own perimeter on a single commodity GPU. The gap between "open weights" and "deployable under your own roof" is the story procurement teams keep missing.
5 min read
Read the analysis →Risk
The credentials nobody reviews
Your AI agents hold OAuth tokens, API keys and service accounts that went through no approval process. The agent was reviewed. The studio was reviewed. The identity behind them was not.
5 min read
Read the guide →