
Published:
·
updated
8 min read
An agent asked to fix a small bug deleted production instead. Here is the permission check, approval step, and run log I set up before any Notion, Claude, or n8n agent touches real data.
In December 2025, an AI coding agent reportedly got a small job: fix a minor bug in a cost dashboard. It had the same permissions as the engineer running it. Instead of patching the bug, it decided the cleanest fix was to delete the whole production environment and rebuild it. The outage that followed was reported at 13 hours. The deletion was done faster than a person could read a confirmation prompt.
I read that story again this week in a white paper from 1Password on ai agent security, and it stuck with me for a reason that has nothing to do with Amazon. I see the same pattern, at a much smaller scale, in the workspaces I audit. A Notion AI agent with full access gets asked to "clean up old tasks." A workflow that reads emails can also send them. A connector runs on the owner's own login, so it can touch everything the owner can.
None of these setups look dangerous on day one. They look convenient. This article is how I make them safe before they go live, for teams that do not have a security department.
What AI agent security actually means
AI agent security is the practice of making sure an agent can only do what its task needs, cannot be talked into doing something else, and leaves a record of what it did.
That is different from classic AI safety, which is mostly about what a model says. An agent does things. It creates pages, updates records, sends emails, and calls other tools. When the output is text, a mistake is embarrassing. When the output is an action on your client database, a mistake is an incident.
Why agents break the old permission model
Normal automation is predictable. A Notion automation or a Make scenario runs the same steps every time, so you can check its logic once and trust it.
An agent is different. Give it the same request twice and it might take two different paths: call different tools, read different pages, or decide that the "best" way to handle a small task is a big one. That flexibility is exactly why agents are useful. It is also why "set the permissions once and forget them" stops working.
Static permissions leave you with two bad options. Lock the agent down so hard it cannot do anything useful, or give it broad access and hope it behaves.
The three ways agents go wrong
The 1Password paper sorts agent risk into three buckets, and they match what I see in real builds:
They get tricked. Agents read outside content: emails, web pages, uploaded documents. Someone can hide instructions in that content. This is called prompt injection, and the person using the agent usually never sees it.
They make things up. An agent can invent a record name or trust a wrong value, then act on it with full confidence.
They overreach. No attacker needed. The agent drifts from what was asked, one reasonable-looking step at a time.
Here is the part that changes how I design every build: all three only cause damage if the agent has the permission to do the damage. An agent that gets tricked but can only read one page is a bad log entry. An agent that gets tricked with delete access to your whole workspace is a very bad week.
So the most important question is not "how do I write a better prompt?" It is "does this agent hold exactly the access this task needs, and nothing more?"
The lethal trifecta: my 3-question check
Security researcher Simon Willison named a pattern the paper also uses: the lethal trifecta. An agent is exploitable when it has all three of these at once:
Untrusted input: it reads emails, web pages, form submissions, or shared documents.
Sensitive access: it can reach client records, financial data, credentials, or personal information.
A way out: it can send an email, call an API, post a message, or publish a page.
An email triage agent that reads the inbox, looks up client records, and drafts replies ticks all three boxes. Most useful agents do.
You do not fix this by giving up on the agent. You fix it by breaking one leg of the triangle. The agent reads emails and checks records, but it only drafts replies, and a person presses send. Same value, far smaller risk.
The permission problem hiding in your own setup
The most common gap I find is the simplest one: the agent borrows its owner's identity.
When you connect an AI tool to Notion, Gmail, or Outlook with your own sign-in, it gets everything you can reach. There is no separate identity for the agent, no smaller scope, and nothing in the history that tells you whether you made that change or the agent did.
It is the same lesson I wrote about in Notion Fireworks AI Breach: What I Told My Clients: know exactly what you handed the AI, and through whose account.
That is fine for a personal assistant you watch while it works. It is not fine for an agent that runs on a schedule while you sleep.
How to secure AI agents: the five steps I use
This is the checklist I run before any agent touches real client data. None of it needs an enterprise security platform.
Give every agent its own identity. Use a dedicated integration or service account per workflow, not your personal login. In Notion, share an integration only with the pages or teamspaces it needs. For Microsoft 365, register an app and limit it to the specific mailboxes in scope.
Scope access to the task, not the role. Write the agent's job in one sentence. If the job is "summarize new support emails into tasks," it needs read access to one inbox and write access to one database. Nothing else.
Sort actions by risk. Not every action deserves the same friction. I map it out before building:
Action | What I usually allow |
Read | Automatic |
Create | Automatic, with a log entry |
Update | Automatic for its own records, review for anything shared |
Delete | Human approval, every time |
Admin or permissions | Never for the agent |
Put a human in front of the risky actions. In n8n, I use a send-and-wait step that pings Slack or email and pauses until someone approves. In Notion, the agent can set a status like "Ready for approval" instead of acting directly. Destructive steps should be slower than everything else, on purpose.
Log the intent, not just the action. I add a simple Agent Run Log database: what the agent was asked to do, who it acted for, which tools it called, whether a person approved, and what happened. When something looks wrong, you can trace it in minutes instead of guessing.
Stop agents acting on records that do not exist
The paper names hallucination as a risk but says little about how to fix it. This is where my work on Google's Knowledge Graph shapes how I build. Curating entity data there meant checking that a record really existed, matched the schema, and was not a duplicate before anything was linked to it.
Agents need the same discipline. Before an agent updates or links a record, the workflow checks that the ID exists and the required properties are filled. If the check fails, the agent stops and flags it instead of creating a near-duplicate or overwriting the wrong client. Clean structure is not just tidy. It is what keeps an agent from acting on something it imagined.
How much freedom to give an agent
The paper describes five levels, from agents that only suggest to agents that make their own access decisions. Most teams I work with sit at the first two: the agent suggests or executes while someone watches. That is the right place to start.
The level worth aiming for next is "governed": the agent works on its own inside clear limits, and anything risky goes to a person. The Kiro incident is what happens when a team jumps straight to full autonomy without those limits in place.
A note on where this advice comes from
The paper is a vendor document, and it is worth reading it that way. Its conclusion, that control should sit in a dedicated privilege layer, is also the product it sells, and the intent-checking feature at its center is marked as coming soon. The Kiro figures come from reporting, not from Amazon, which described the cause as misconfigured access controls.
The frameworks are still sound. You can apply every one of them today with the tools you already pay for.
Start with one agent
Pick the agent or connector you rely on most. Run the three trifecta questions on it. Check whose identity it runs under. Then list what it can delete.
If any answer surprises you, that is your first fix. If you want a second pair of eyes on your agents, connectors, and Notion permissions, book a workspace audit and I will walk through it with you.
Sources: 1Password Privileged Access, Securing the agentic enterprise (white paper, 2026)
All content in this article is grounded in real customer interactions and real projects we’ve worked on, the analysis, insights, and ideas are entirely my own. AI tools may have been used to help process raw data, or to reformulate and refine parts of the writing.
Related articles
Frequently asked questions
What is AI agent security?
AI agent security is the practice of limiting what an AI agent can access and do, protecting it from manipulation, and keeping a record of its actions, so mistakes or attacks cannot cause real damage.
How do you secure AI agents?
Give each agent its own identity, scope its access to one task, sort its actions by risk, require human approval for destructive or sensitive steps, and log every run from the request to the result.
What is least privilege for AI agents?
Least privilege means an agent gets only the minimum access needed for its current task, not everything its owner can reach and not access it might need someday.
What is the lethal trifecta in AI security?
It is the combination of untrusted input, access to sensitive data, and a way to send data out. An agent with all three can be manipulated into leaking information, so removing any one of them greatly lowers the risk.
Are AI agents in Notion safe for client work?
They can be, when they run with scoped access, cannot delete without approval, and leave a trail. The risk comes from broad, inherited permissions, not from the agent itself.

