Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Checklist · AI

AI Agent Security Checklist

Opens with credits

A security checklist for teams putting AI agents and MCP servers into production. It covers tool inventory and least privilege, authentication and authorization for MCP servers, prompt injection that arrives through tool output, human approval for risky actions, sandboxed code execution, secrets handling, logging and incident response, and the supply chain of the MCP servers your agents load, each with a severity and a way to verify it.

Written by Tauseef Fayyaz8 chapters, 37 checksAbout 22 minReviewed 13 October 2026

What you will learn

8 chapters · about 22 min

  1. 1Tool inventory and least privilegeEvery tool an agent holds is something an attacker can make it use. These checks keep the tool set small, narrow and enforced in code.5 checks · 3 min
  2. 2MCP server authentication and authorizationA remote MCP server is an API that a model drives. These checks apply the authorization rules and security best practices from the MCP specification.6 checks · 4 min
  3. Prompt injection through tool outputAgent goal hijack is first on the OWASP agentic list. Most of it arrives through content the agent reads: tool results, documents, web pages and emails.6 checks · 4 minOpens with credits
  4. Human approval for risky actionsA person in the loop is the strongest control you have for actions that are hard to undo, but only if they can see what they are approving.4 checks · 2 minOpens with credits
  5. Sandboxing code executionUnexpected code execution is on the OWASP agentic list. Any agent that writes and runs code, or runs tools on a host, needs an isolated place to do it.4 checks · 2 minOpens with credits
  6. Secrets and sensitive dataAnything in an agent's context can end up in its output, its logs or a tool call. These checks keep secrets out of reach.3 checks · 2 minOpens with credits
  7. Logging, audit and incident responseWhen an agent misbehaves, you need to know what it did, stop it fast and keep one failure from spreading.4 checks · 2 minOpens with credits
  8. Supply chain of MCP servers and toolsAgentic supply chain vulnerabilities are on the OWASP list. Every MCP server, plugin and tool package you load runs with some of your agent's trust.5 checks · 3 minOpens with credits

About this checklist

An agent is a language model with hands. It reads content nobody on your team wrote, decides which tools to call, and acts with real credentials. That combination is why agent security is different from ordinary application security: the component making decisions can be talked into making the wrong ones, and it may hold the keys to do real damage when it does. This AI agent security checklist is about limiting what a confused or hijacked agent can reach, and noticing quickly when something goes wrong.

The checks follow two primary sources. The OWASP Top 10 for Agentic Applications, published by the OWASP GenAI Security Project in December 2025, names the risks: agent goal hijack, tool misuse and exploitation, identity and privilege abuse, agentic supply chain vulnerabilities, unexpected code execution, memory and context poisoning, insecure inter-agent communication, cascading failures, human-agent trust exploitation and rogue agents. The Model Context Protocol specification, version 2026-07-28, sets concrete MUST and SHOULD rules for MCP servers and clients, from token audience validation to how a client installs a local server.

You will not find a filter that reliably blocks prompt injection, and this checklist does not pretend otherwise. Its approach is defence in depth: fewer and narrower tools, credentials scoped to the task, a human in the loop for actions that are hard to undo, sandboxes with both filesystem and network limits, and logs good enough to reconstruct what an agent did and why.

Each check has a severity (must, should or nice) and a concrete way to verify it, such as a test to run, a configuration to read or a log query to try. If you are securing an agent that is already live, start with the must checks in the first four chapters.

Common questions

What is the biggest security risk with AI agents?

The OWASP Top 10 for Agentic Applications lists agent goal hijack first: instructions hidden in content the agent reads redirect what it does while it still appears to serve the user. Because no filter reliably stops it, the main defence is limiting what a hijacked agent can reach: narrow tools, scoped credentials, approval for risky actions and sandboxes.

Do MCP servers need authentication?

Authorization is optional in the MCP specification, but any remote server that reaches private data or performs actions should require it. For HTTP transports the specification defines an OAuth 2.1 based flow, and servers must validate that tokens were issued for them. Local servers should use stdio or require a token if they listen on HTTP.

What is token passthrough in MCP?

Token passthrough is when an MCP server accepts a token from a client and forwards it unchanged to a downstream API. The MCP specification forbids it because it bypasses audience checks, rate limits and audit trails. The server should only accept tokens issued for itself and use its own credentials, or exchanged tokens, downstream.

How do I stop prompt injection in an AI agent?

You cannot block it completely, so design for it. Treat every tool result as data, restrict write and send tools after the agent reads untrusted content, require approval with the exact arguments shown for risky actions, block quiet exfiltration channels like auto-loaded images, and keep injection cases in your regression tests.

Should AI agents run code in a sandbox?

Yes. Any model-written code should run with both filesystem isolation and network isolation, real credentials kept outside, resource limits and a fresh environment per task. Anthropic notes that either boundary alone is not enough, and that sandboxing also cut permission prompts in its coding agent.

Sources (8)

Checked against these, last on 13 October 2026.

  1. OWASP Top 10 for Agentic Applications for 2026, OWASP GenAI Security Projectgenai.owasp.org/resource/owasp-top-10-for-agentic-applications/
  2. Security Best Practices (MCP specification 2026-07-28), Model Context Protocolmodelcontextprotocol.io/specification/2026-07-28/basic/security_best_practices
  3. Authorization (MCP specification 2026-07-28), Model Context Protocolmodelcontextprotocol.io/specification/2026-07-28/basic/authorization
  4. Tools (MCP specification 2026-07-28), Model Context Protocolmodelcontextprotocol.io/specification/2026-07-28/server/tools
  5. LLM06:2025 Excessive Agency, OWASP GenAI Security Projectgenai.owasp.org/llmrisk/llm062025-excessive-agency/
  6. LLM Prompt Injection Prevention Cheat Sheet, OWASP Cheat Sheet Seriescheatsheetseries.owasp.org/cheatsheets/LLM_Prompt_Injection_Prevention_Cheat_Sheet.html
  7. Making Claude Code more secure and autonomous with sandboxing, Anthropicwww.anthropic.com/engineering/claude-code-sandboxing
  8. OWASP Top 10 for LLM Applications 2026, OWASP GenAI Security Projectgenai.owasp.org/resource/owasp-genai-llm-top-10-2026/

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com