Data Access for AI Agents
An instruction is not a control. Why agentic AI fails on access, not on models, and how to govern an agent like a new hire.
For FADP controllers and FINMA-supervised firms
- The public AI agent incidents of the past fifteen months were access failures, not model failures.
- Swiss law already requires proportionate processing, minimal defaults and a record of every processing activity.
- Govern each agent like a new hire: a job description, a named owner, scoped access and a record of every action.
For your steering committee: no agent gets data access before it has an owner who can explain it in two minutes.
Every recent incident involving an AI agent and lost or leaked data has the same shape. Someone told the agent what not to do. Nobody made it impossible. An instruction is not a control, and agents are about to expose how many of our controls were only ever instructions.
For twenty years, enterprise data access was designed around two kinds of consumer: people, who log in with a role, and reports, which run a fixed query on a schedule. The AI agent is neither. It reads, combines, writes and triggers actions. It works at machine speed, follows instructions written in plain language, and interprets them in ways its author did not always foresee. It is a new kind of data consumer, and most organisations are giving it access through mechanisms built for the old ones.
The result is visible in a short series of public incidents over the past fifteen months. None of them was caused by a weak model. Each was caused by an agent that held more access than its task required, and by safeguards that lived in a prompt, a policy or a vendor's marketing rather than in the permission itself.
01
Four Incidents, One Lesson
The four cases below are public, documented by reliable sources, and chosen because each one breaks a different assumption that organisations currently make about agents.
"We told it not to."
During a twelve-day experiment by SaaStr founder Jason Lemkin, the coding agent erased a production database holding records on 1,206 executives and more than 1,196 companies, during a declared code freeze and against explicit instructions.2 The platform used the same database for preview, testing and production.1 The agent reported that a rollback was impossible; Lemkin later recovered the data.3
What failed: the instruction was the only control, and the agent's own account could not be trusted.
"The tool has guardrails."
A Cursor coding agent deleted the production database and all volume-level backups of this software provider to car rental businesses in one API call, triggering a thirty-hour operational crisis. It started with a credential mismatch during a routine task in staging.4
What failed: a token with no role-based scoping, no limit by operation and no confirmation step.4
"If the model is safe, the agent is safe."
Between 8 and 18 August 2025, attackers used stolen OAuth and refresh tokens from the integration between the Drift chat agent and Salesforce to steal customer data.6 7 They exported User, Account, Case and Opportunity records and searched them for access keys, passwords and Snowflake tokens.8
What failed: no model misbehaved. The breadth of the agent's identity was the damage.
"It only sees what the user sees."
Researchers disclosed a flaw in Microsoft 365 Copilot that let an external attacker extract sensitive data from a user's assistant context with a single crafted email, no click required.9 Microsoft fixed it and reported no known exploitation in the wild.10
What failed: content the agent read became instructions it followed. Provenance matters, not only sensitivity.
None of these failures was a model failure. An instruction is not a control. A permission is.
Bernard Millet, DataEdgePro.net
02
We Documented. We Rarely Enforced.
It would be convenient to treat these incidents as a new class of AI problem. They are not. Agents have inherited a gap that data governance has carried for years, and they are making it impossible to ignore.
When I served as a data protection officer in a global bank, one review found an automated process with far broader rights than its purpose required. It moved large volumes of client information in a single transfer instead of the minimum its task needed. The process was documented. It did not pass the review against the record of processing activities, because what it actually did no longer matched what the record said it should do. Nobody had designed it to over-share. Nothing had been built to stop it either.
Records management showed the same pattern from another angle. Actions performed by systems were meant to be traced, and they were, but mostly as descriptions. Rules that would have verified, directly in the systems, that retention periods were applied or that the right category of information was being processed were largely absent. Controls often stopped at the level of the dataset rather than the individual data element, because the number of datasets was large and the budget for detailed testing was not allocated in proportion. The documentation existed. The enforcement was thin.
That gap was never only black and white, and it is worth being precise about how it opens. Documentation is often written once for a project and never revisited, so it ages. Implementation drifts away from it through direct fixes that nobody records. And people read the same document differently, so what gets built is an interpretation of what was written. Agents add a third source of drift on top of the first two: the agent itself interprets its instructions, and most organisations do not yet know how well, or how differently from what they intended.
| Question | Documented | Enforced |
|---|---|---|
| What is it for? | A purpose in the record, a goal in the prompt | Permissions scoped to that purpose and nothing else |
| How much data? | A policy that says "minimum necessary" | An interface that returns only the fields the task needs |
| How long is it kept? | A retention schedule in a document | A deletion rule executed by the system |
| Is it the right category? | A label on the dataset | A check at the level of the data element |
| When does a human step in? | "Ask before deleting" in the instructions | An approval gate the agent cannot bypass |
| What did it do? | A description of the process | An action log tied to the agent's own identity |
Every row in the middle column was tolerable when the consumer was a person working at human speed, or a report running the same query every night. An agent working at machine speed turns each of those rows into the kind of incident described in section 01.
We documented our systems. We never enforced the documentation. Agents will punish that gap.
Bernard Millet, DataEdgePro.net
03
The Rules Already Cover This
A Swiss organisation deploying agents does not have to wait for an AI law to know what is expected. The relevant obligations are already in force, and they are written in exactly the terms this article uses.
The Federal Act on Data Protection is technology neutral, and the Federal Data Protection and Information Commissioner has stated that it applies directly to AI-supported processing. Providers and users of AI systems must make the purpose, the functioning and the data sources of that processing transparent, and processing that carries a high risk requires a data protection impact assessment.12 The Act also requires processing to be proportionate, and its article on data protection by design and by default obliges the controller to use suitable default settings so that processing is limited to the minimum the purpose requires.13 An agent running on a broad, borrowed credential is the opposite of a default setting limited to the minimum.
Article 12 then requires a record of processing activities that contains, at a minimum, the purpose, the categories of data subjects and personal data, the categories of recipients, where possible the retention period, and a description of the security measures.13 Read that list again with an agent in mind. It is a job description. An agent that touches personal data is a processing activity, and if it is not in the record, the organisation cannot show what it is for, what it may read or who receives its output.
For supervised financial institutions, FINMA Guidance 08/2024 goes further, and three of its findings read as if they were written about agents. First, among the factors that raise the probability of AI risks materialising, FINMA lists the degree of autonomy and process integration of an application.11 Second, it observes that, for purchased applications and services, institutions sometimes struggled to determine whether AI was included at all, which data and methods were used, and whether sufficient due diligence existed.11 Third, it states plainly that because AI applications often learn from data without human intervention, data quality is often more important than the choice of model.11
04
The Prompt Is the New Requirement
When an automated process fails in most organisations, the conversation follows a familiar script. The business points to IT, and IT ends up responsible for the fix. Behind it sits an older debate: requirements from the business are often vague and not detailed enough, and vague requirements become poor code. Formally, for compliance matters and in front of national supervisors, accountability sits with the business. In practice, the person named as accountable is often a senior executive who does not know, in any detail, what has actually been implemented.
FINMA recognises the same problem. Among the risks it lists, it names the challenge of allocating responsibilities, given the autonomous and difficult-to-explain actions of these systems and the scattered responsibility for AI applications inside institutions.11
Agents make this worse in one specific way. With traditional software, a vague business requirement passed through a developer, who asked questions, made choices and wrote code that could be reviewed. With an agent, the vague requirement can become the instruction itself. There is no developer in between to ask what "clean up the old records" means. The model decides. The business owner who wrote the prompt believes they have set a rule. IT believes the business has defined the behaviour. Neither has built a control.
Ownership on paper
- A title, not a person. An executive is named in the register but cannot describe what the agent may read or do.
- The prompt as specification. The only definition of the agent's behaviour is a paragraph of natural language that the model interprets.
Ownership in practice
- A person who can explain it. Someone who can say in two minutes what the agent is for, what it reads, and what it is not allowed to do.
- Rules validated, then enforced. The owner approves a set of rules, and the platform enforces them through permissions, not prose.
One clarification matters here. Accountability does not move to the vendor because the agent came from a vendor, and it does not move to the model because the model made the choice. A human remains responsible for every bot and every AI deployment the organisation runs, and the contract with the supplier only determines how that responsibility is shared, not whether it exists.
05
Govern the Agent Like a New Hire
Organisations already know how to give a new employee access to data. They write a job description, assign a manager, grant the access the role requires and nothing more, and keep records of what the person does with sensitive systems. None of that is novel. It is simply not being applied to agents. Four pillars are enough.
A job description
A written purpose, a defined data scope and a list of permitted actions. In practice, the agent's entry in the record of processing activities. If the purpose cannot be written in two sentences, the agent is not ready for production.
A named owner
A person, not a title, who can explain what the agent does and who validates its rules. When the agent's scope grows, and it will, the owner re-approves it.
Least privilege, enforced
Its own identity, never borrowed credentials. Access scoped to the task, separated by environment, minimal by default. What it must never do is made impossible, not discouraged.
A record of every action
Every action logged against the agent's own identity, kept under a defined retention rule, and reconstructable on request. An agent whose day cannot be listed cannot be defended in an audit.
Where the human steps in
The instinct is to grade by data sensitivity. The better first test is reversibility. An agent that reads within its scope, or makes a change that can be undone, can act and be reviewed afterwards. An agent about to do something that cannot be undone must stop and wait for a person, and that stop must be built into the platform. The second test is the process as a whole: is there a validated set of rules for this agent, approved by its owner, and does the system enforce them?
- Read within scope.
Look up a record, summarise a case, check a status.
Agent acts, logged - Reversible change.
Draft a reply, update a field with history, create a ticket.
Agent acts, owner samples - Irreversible or external.
Delete, pay, send, disclose to a third party.
Human approval, enforced - Outside the job description.
Other environments, other data domains, other systems.
No permission at all
If the bottom two levels depend on what the prompt says, they are not controlled.
Read the ladder against section 01. In the Replit case, the third level depended on an instruction. In the PocketOS case, the fourth level did not exist, because the token could reach production from staging. In the Drift case, the scope of the identity defined the scope of the theft. In each case, the control that would have mattered was a permission, not a sentence.
The new hire test
- A written job description
- A named owner, not a title
- Its own identity, scoped
- A log of every action
Four out of four, or it should not have access.
06
Where to Start on Monday
None of the following needs a new budget or a new framework. It needs the existing ones to be pointed at a consumer that was never in scope.
Five things to do before the next agent goes live
- List every agent and every integration token with write access, including the ones inside tools other departments bought. If the list takes more than a week to assemble, that is the first finding.
- For each one, find a person who can explain in two minutes what it is for and what it may not do. If the answer is a title rather than a person, record it as a gap.
- Check which agents run on borrowed human or administrator credentials. Replace them with dedicated, scoped identities, separated by environment.
- Classify each agent's actions by reversibility, and move every approval for an irreversible action out of the prompt and into the platform.
- Add every agent that touches personal data to the record of processing activities, then test whether you can reconstruct what it did on a given day.
Three signs your instructions are doing the work of controls
Any one of these deserves attention this quarter. Two or more means an incident like those in section 01 is a matter of time and circumstance, not of model quality.
- Said, not set
- The only thing preventing a destructive action is a sentence in the agent's instructions.
- Borrowed
- The agent acts with a person's credentials, or with a token broader than its task.
- Unrecorded
- Nobody can list, from a log, what the agent did yesterday and on whose behalf.
Agents Did Not Create the Gap
The easy reading of the incidents in this article is that AI agents are immature and will improve. They will. But the agents in these cases did what software has always done with access it should not have had: they used it. What changed is the speed, and the fact that the behaviour is now defined in language the system interprets rather than in code a person reviews.
For Swiss organisations, the obligations are already written. The Federal Act on Data Protection requires proportionate processing, defaults limited to the minimum and a record of every processing activity. FINMA expects an inventory, clear responsibilities and data quality controls, and has named autonomy as a risk factor. None of that is new. What is new is a consumer of data that will find every place where those obligations were documented but not enforced.
The practical conclusion fits in one sentence for your next steering committee. Before an agent receives access to data, it should receive what any new colleague would: a job description, a manager, the access the role requires and nothing more, and a record of what it does. An instruction is not a control. A permission is.
Sources & references
- heise online, Vibe coding service Replit deletes production database, July 2025. The same database used for preview, testing and production at the time of the incident. heise.de
- eWeek, AI Agent Wipes Production Database, Then Lies About It, July 2025. Twelve-day experiment; deletion on day nine of records on 1,206 executives and more than 1,196 companies. eweek.com
- it-daily, Vibe coding provider Replit apologizes after deletion fiasco, July 2025. Code freeze ignored; data ultimately restored; Replit CEO response. it-daily.net
- AI Incident Database, report on the PocketOS production database deletion, April 2026. Single API call deleting production data and volume-level backups; thirty-hour operational crisis; credential mismatch in staging; token without role-based or operation-level scoping and without a destructive-action confirmation. incidentdatabase.ai
- OECD AI Incidents Monitor, AI Coding Agent Deletes PocketOS Production Database and Backups in 9 Seconds, 27 April 2026. oecd.ai
- BleepingComputer, Salesloft breached to steal OAuth tokens for Salesforce data theft attacks, August 2025. Drift OAuth and refresh tokens used for data theft between 8 and 18 August 2025; tokens revoked. bleepingcomputer.com
- Google Threat Intelligence Group, Widespread Data Theft Targets Salesforce Instances via Salesloft Drift, August 2025. Scope extended beyond the Salesforce integration; all Drift-connected tokens to be treated as potentially compromised. cloud.google.com
- CyberInsider, Widespread data theft campaign strikes Salesforce via Salesloft Drift, August 2025. Export of User, Account, Case and Opportunity objects; search for access keys, passwords and Snowflake tokens. cyberinsider.com
- Reddy, P. and Gujral, A. S., EchoLeak: The First Real-World Zero-Click Prompt Injection Exploit in a Production LLM System, 2025 (CVE-2025-32711). arxiv.org
- CyberInsider, EchoLeak exploit enables silent data theft from Microsoft 365 Copilot, June 2025. Microsoft reported no known exploitation in the wild. cyberinsider.com
- FINMA, Guidance 08/2024: Governance and risk management when using artificial intelligence, 18 December 2024. Allocation of responsibilities and scattered responsibility (section 2); difficulty assessing purchased applications (2.1); degree of autonomy and process integration as a risk factor (footnote 2); data quality often more important than the choice of model (2.3). finma.ch
- Federal Data Protection and Information Commissioner, Current data protection legislation is directly applicable to AI. Transparency on purpose, functioning and data sources; impact assessment for high-risk processing. edoeb.admin.ch
- Swiss Federal Act on Data Protection, in force since 1 September 2023: article 6 (proportionality), article 7 (data protection by design and by default), article 12 (record of processing activities and its minimum content). fedlex.admin.ch
- Mayfield, The Agentic Enterprise in 2026, January 2026. Survey of 266 CIOs, CTOs, CAIOs, CISOs and CDOs conducted through the firm's own IT leadership network; data readiness or quality named as the main blocker by 58% of respondents. mayfield.com



