Agent security 101, lesson 3
Too much access
When an agent gets something wrong, what it holds decides how much you lose. This lesson builds the set-up that keeps a mistake small: its own account, look before change, one job each, keys that run out, and a person for anything final.
Every example below changes to fit what you pick. The businesses are made up for teaching.
The picture, one step at a time
Each box is one stage. The picture lights up as you scroll.
A least-access set-up, built one part at a time
1Its own account
The agent signs in as itself, never as you. You can see what it did and switch it off on its own.
2Look before change
Every key starts at look. Change is added only where the job needs it.
3One job per agent
An agent that answers customers does not also do the books. Two jobs, two agents, two small sets of keys.
4Access that runs out
Keys that end with the job, the day or the project, not keys that last for ever.
5A person approves anything final
Money, deletions, messages to customers, publishing: the agent asks, and a person says yes.
Its own account: its work is visible, and it holds only what you hand it.
Step 1 of 6
Give it its own account
Say you want an agent for answering customers. The quickest set-up is to sign it in as you. Don't. Make an account just for the agent. Then you can see exactly what it did, give it only some keys, and switch it off without locking yourself out.
Step 2 of 6
Start every key at look
For each thing it connects to, start with look-only: it can read, but not change. Add change one key at a time, only where the job cannot be done without it. Most jobs need far less change than the set-up screen offers.
Step 3 of 6
One job per agent
Every new job adds keys. Put three jobs in one agent and a trick aimed at one job can use the keys of all three. Split them: each agent does one job and holds that job's keys.
Your support agent works well. You want help with the bookkeeping too. What is the safest way?
Step 4 of 6
Keys that run out
A key that lasts for ever is a key someone will forget. Where you can, give keys an end: when the job is done, at the end of the day, or when the project closes. If a key is stolen, it is worth much less.
Step 5 of 6
A person approves anything final
Ask one question of each action: if the agent does this by mistake, can I put it back in a minute? If not, a person says yes first. Refunds, payments, deletions, messages to customers and anything published all count.
Step 6 of 6
Check it once a month
Keys creep back. Once a month, list what your agent for answering customers can reach, and take back anything it has not used. It takes ten minutes, and it is the only way the set-up stays small.
Security groups have a name for the problem this lesson fixes: "excessive agency", meaning too many tools, too many permissions or too much freedom to act alone. It is on the 2025 list of the top ten risks for AI apps from OWASP, a non-profit that publishes security guides.
Which agent is set up best?
Which fix does it need?
Here are four agent set-ups in your business. Each one breaks one part of a least-access set-up. Pick the fix it needs most.
1The support agent is signed into the shop admin with the owner's login.
2The agent that tells customers where their order is can also edit and cancel orders.
3One agent answers customers, changes prices and pays suppliers.
4The agent can refund any amount, straight away, with nobody checking.
0 of 4 right so far, 4 to go.
A least-access checklist
This is what you keep: six checks to run on every agent you have, this week and once a month after that.
A least-access checklist
- The agent has its own account, never your login.
- Every key starts at look. Change is added only where the job needs it.
- One job per agent. A new job gets a new agent with its own keys.
- Keys run out: at the end of the job, the day or the project.
- Anything that cannot be undone waits for a person: money, deletions, messages to customers, publishing.
- Once a month, list what each agent holds and take back what it has not used.
If you cannot say why the agent needs a key, it does not get one.
Next: Lesson 4: runaway bills and loops. What happens when an agent does not stop, and the caps and the stop button to set before it runs on its own.