//Question
How Should a Company Red Team an AI Agent Before Giving It Access to Production Systems?
Posted on 26th November, 2026

Harry
//Answer
Red team the agent in a production-like sandbox with synthetic data and restricted credentials, test it against the OWASP Top 10 for Agentic Applications and your own workflows, and confirm that controls stop unsafe actions before they execute. Fix and retest every serious finding, approve production access against written criteria, then keep testing after launch.
The Eight steps
Step | What to do | Done when |
|---|---|---|
1. Define scope | List the agent's tools, MCP servers, roles, credentials, data, memory and approval gates, then classify risk by what it can change or expose | Every tool and permission is listed and the agent has a risk tier |
2. Create a test environment | Build a production-like sandbox with synthetic data, canary values, an account for each role and credentials limited to the sandbox | Nothing in the sandbox can reach real data or systems |
3. Define security tests | Cover ASI01 goal hijack, ASI02 tool misuse and ASI03 identity and privilege abuse, plus memory, MCP and data leakage tests tied to your forbidden outcomes | Each risk has tests and a written pass signal |
4. Conduct red teaming | Run automated probes, adaptive multi-turn attacks and indirect injection through every data source, repeat each scenario, then validate manually | Results come from tool-call logs and environment state |
5. Validate controls | Test authorization, guardrails, human approvals and data protection directly, not through the agent's own refusals | Unsafe calls are blocked before execution and approvals cannot be bypassed |
6. Remediate and retest | Rate findings by exploitability, blast radius and reversibility, fix them, rerun the failed tests and add them to a regression suite | Every critical and high finding is closed and retested |
7. Approve production access | Security signs off against release criteria | Criteria are met and evidence is retained |
8. Continuously monitor | Run runtime protection and recurring red teaming after each prompt, model, tool or permission change | New changes are tested before and after release |
Tests to include
For goal hijacking, plant canary instructions in documents and tool outputs and escalate across several turns. For tool misuse, try prohibited arguments, destructive actions, poisoned MCP tool descriptions and tools that change after approval. For privilege abuse, test viewer-to-admin calls, other users' records, role claims in conversation and instructions passed between agents. Add a test for each outcome your business forbids.
Release acceptance criteria
No critical finding open, where critical means data exfiltration, an irreversible action, a privilege boundary crossed or an approval bypassed.
High findings fixed or covered by a compensating control that was retested.
Authorization and approvals enforced outside the model.
Evidence kept for each test: tool-call log, authorization decision, run count and end state.
Where Akto fits
Testing (steps 3 to 5): Akto Agent Probe is Akto's automated red teaming engine for agents, MCP servers, LLM interactions and workflows. Akto cites 4,000+ probes, including direct and indirect prompt injection, MCP security with tool authorization and resource access, and privilege escalation. You can scan by category or by attack technique and strategy, run role-based scans, add custom probes, and red team published Copilot Studio agents.
Remediation (step 6): findings come with remediation steps, Jira tickets can be created automatically, and rescans can mark an issue fixed when it no longer reproduces.
Continuous validation (step 8): scheduled scans and CLI runs keep testing on every change, while Argus runtime guardrails can allow or deny tool calls by agent, tool and resource, and block, redact or warn on prompts and responses.
Answers