Review agent security boundaries
This checklist helps operators review an agent or multi-agent workflow before enabling tools. It is general guidance reviewed November 5, 2026, not a description of the author's machines or proof that any control is deployed. Adapt it to your threat model and the tools you use.
Define the task and trust boundaries
- Record the authorized goal, data sources, permitted destinations, and actions that require human approval. Separate instructions from material that the agent reads.
- Treat retrieved pages, documents, messages, repository content, and tool results as untrusted data. Record their origin and pass only necessary, validated fields between agents. A schema can restrict a handoff, but it cannot establish that a value is true or safe.
- Give each agent only the files, tools, network access, and credentials required for its task. Isolate execution where possible. Don't put secrets in prompts, traces, or artifacts unless required and authorized.
- Require explicit human approval for consequential operations, including publishing, sending data outside the approved boundary, changing access, and destructive actions. Review the proposed target and parameters; a model's statement of approval is not approval.
Anthropic distinguishes direct attacks by a user from indirect prompt injection through third-party material. Its prompt-injection guidance recommends identifying tool content as untrusted, limiting privileges, and testing with adversarial inputs. OpenAI's agent safety guidance discusses structured handoffs, approvals, data leakage, and trace evaluation. OpenAI says Agent Builder is scheduled to shut down on November 30, 2026; its guidance is cited for general security principles, not as a recommendation to adopt that product.
Review MCP connections
If your workflow uses the Model Context Protocol (MCP), review the MCP security best practices for version 2025-11-25:
- Before launching a local server, review the complete executable and arguments, source, and permissions, and obtain explicit consent. A local server can execute with the client's privileges; sandbox it and restrict filesystem and network access.
- For authorization, request narrow scopes and elevate only when needed. An MCP server must not accept tokens that weren't issued for it. For proxy authorization, follow the versioned guidance on per-client consent, redirect validation, and state.
- For server-side clients, protect OAuth metadata discovery against server-side request forgery. Validate URLs and redirect hops, restrict internal destinations as appropriate, and consider an egress proxy. A hostname check alone doesn't address DNS rebinding.
- Authenticate and authorize requests independently of session identifiers. Protect session IDs and bind session state to the authenticated user as appropriate.
These checks apply only where the corresponding MCP component or flow exists. They don't imply that this environment uses MCP.
Verify and respond
- Exercise the workflow with benign test data and adversarial text in documents and tool results. Verify that untrusted instructions don't become authorized actions, and test denial and approval paths.
- Review traces and action records for unexpected destinations, excess data, tool calls, failures, and repeated attempts. Protect logs against unauthorized access and avoid storing secrets unnecessarily.
- If you suspect an injection or unauthorized action, stop the affected workflow, preserve relevant evidence under your incident policy, restrict affected credentials and access, and investigate before resuming.
- Record what you tested, what happened, and what remains unknown. Repeat the review after changes to tools, permissions, models, or integrations.
Screening, structured outputs, isolation, and approval gates are defense in depth, not guarantees. An approved action can still be mistaken; review results and side effects separately.