AI agent security: know what every agent can touch

AI agent security means each agent can reach only what its job needs, risky actions wait for a person, and every action lands on a record you can show an auditor. I’m Mo Tawfik Khalifa, chief product officer and forward deployed engineer at Instruxi, where I lead product for GVNR, a guard that checks AI agent actions before they run. I map the agents your teams already use, cut their access down, put a person in front of the risky actions, and test them by trying to trick them.
Data leaks are the worry at the top of the list. In Splunk’s survey of 650 CISOs in July and August 2025, more than three-quarters said data leaks were their top concern (Cybersecurity Dive on the Splunk report). A November 2025 survey by NeuralTrust, an AI security vendor, found 73% of CISOs “very” or “critically” concerned about AI agent risks and only 30% with mature safeguards in place (SecurityInfoWatch; vendor survey).
Worried your agents can reach more than they should?
These are the worries security people write about AI agents, in their own words, and what I do about each one.
“almost all MCP tools require an insane amount of permissions.”A Hacker News commenter on MCP security, August 2025
I start from zero. I list every token, tool and MCP server each agent holds, then cut it back to the job. The agent gets its own identity, not a person’s login, and starts read-only. Write actions come back one at a time, each with a limit.
“The all-or-nothing permission model is exactly why MCP adoption stalls in production.”A Hacker News commenter, January 2026
Between “allow everything” and “block everything” there is a third answer: ask a person. The check runs outside the model and before the action, so the agent cannot talk its way past it. Reading an order goes straight through. A refund waits for someone on your team to tap approve.
“Access-control sprawl. Each tool reinvents security. Audits get messy fast.”A Hacker News commenter, May 2025
One set of rules in front of the agent, not one per tool, and one record of every allow, deny and approval. The record is written by the check, not by the agent, so after an incident you read what happened instead of the agent’s own summary.
1 in 5 organisations surveyed had already had an AI agent related breach, driven mainly by prompt injection and data exposure.NeuralTrust survey of more than 160 security leaders, vendor data, November 2025
I test injection on purpose. I plant instructions in a web page, a ticket and a file the agent reads, and check that what follows is stopped by the map, not left to the model’s judgement. You get the results in writing, with what passed and what I changed.
What you get
- A one-page permission map for each agent, like the one below: what it can reach, at what level, and who owns it.
- The rules, tests and record set up in your own repo and accounts, which you own from day one.
- A price fixed in writing after the first call, before work starts.
- Work on a live link you can click every week, and a written handover so your team runs it without me.
- The person you talk to is the person who does the work.
What does an AI agent security review cover?
Six things, for each agent:
- Identity. The agent has its own account and short-lived tokens, so you can see and switch off exactly that agent.
- Reach. Every system it can touch, and whether it can read, write, or neither.
- The check before acting. Allow, deny or ask a person, decided outside the model, before the action runs.
- Limits. Spend caps, rate limits and a stop when it repeats the same call over and over.
- The record. Every decision, with who approved it, kept so entries cannot be quietly changed later.
- Tests. Prompt injection, a poisoned tool description, and requests over the limit, run before launch and again after each change.
How do I secure one agent, step by step?
- List. Every agent running in the company, who owns it, which tokens and MCP servers it holds, and what text it reads from outside.
- Map. I draw each agent the way the diagram below shows: inputs it cannot trust on one side, your systems on the other, a level on every line.
- Cut. Read-only first, scoped tokens, its own identity. Most agents need far less than they were given.
- Gate. Risky actions go to a person for approval: money, deletes, anything that leaves the company.
- Test. I try to trick it, then fix what gets through and test again.
- Hand over. The map, the rules and the record go to a named owner on your team, with written notes on how to change them.
One agent, mapped.This is the drawing I make for each agent: what it reads that you cannot trust, what it can reach, and at what level. Tap a level to change it, then play the agent’s morning. When an action needs a person, that person is you.
token lasts 1 hour
owner: head of support
- The record is empty. Every decision the check makes is written here, by the check, not by the agent.
A made-up shop and agent. The levels and requests are the kind I set and test on a real review.
Try setting the customer list and outside email to full access, then play it again. The model is the same; the only thing that changed is what it could reach. That is why I fix the map first and treat the model’s good behaviour as a bonus, not a control.
Do you need an agent security review or a penetration test?
A penetration test attacks your systems from outside. An agent security review looks at what your own agents can already do from inside, with keys you gave them. An agent that reads customer email and holds a database password is an inside path a normal test may never try. If you run agents in production, do the review first, then let your testers aim at what is left.
What have I built and written on agent security?
Every agent with an owner, its own identity, least privilege, a check before each action and a record you can prove. With an access console you can try.
ChecklistThe 12 MCP security checks I runPin servers, scope tokens, approve risky actions and limit what servers can reach, ranked by risk.
IncidentWhen an AI agent deletes your databaseDeny rules, a read-only database user, backups and a guard that asks first.
GuardrailsA guard that checks every agent actionGVNR, free and source-available: allow, deny or ask a person, with spend caps, loop detection and a hash-chained record of every decision.
Questions people ask
What is AI agent security?
Making sure each AI agent can reach only what its job needs, that risky actions wait for a person, and that every action lands on a record you can show an auditor. It covers the agent’s identity, its tokens and tools, the checks before it acts, and tests that try to trick it.
Can prompt injection be stopped?
Not inside the model. Any text an agent reads, from a web page, a ticket or a file, can carry instructions, and no model ignores them every time. What you can control is what a tricked agent can reach. If it has no way to email outside addresses or export customer data, an injected instruction to do that fails at the check, whatever the model decides.
What does least privilege mean for an AI agent?
The agent gets its own identity, not a person’s login, and only the tools and data its job needs. It starts read-only. Each write action is added one at a time, with a limit, and the riskiest ones ask a person first.
Do MCP servers need a security review?
Yes. An MCP server is code that runs with the tokens you give it, and many ask for broad access. I pin the version, scope each token to the job, check what the server can reach on the network, and put approval in front of risky tools. The 12 checks are in my MCP security checklist.
What should an AI agent audit log show?
For every action: which agent, acting for whom, what it tried, what the check answered (allow, deny or ask a person), who approved it, and when. It should be written by the check, not by the agent, and protected so entries cannot be quietly changed afterwards.
Which AI agents do you work with?
Any. Support agents, internal workflow agents and coding agents such as Cursor, Codex, Claude Code and Gemini CLI, plus anything that connects through MCP. The checks sit outside the model, so the same map works whichever model runs the agent.
- 30-minute call. Which agents you run, what they can reach, what worries you.
- A written plan in 48 hours. What to map and test first, and the risks.
- Start, or not. Use the plan with your team or with me. I reply to every email within one working day.
If you run AI agents and want to know what they can touch, write to m@tawfik.tv with the agents you use and the systems they connect to.