Implementation Guide

    Toxic Permission Combinations in AI Agents and How to Block Them

    A toxic permission combination is a set of tools, data sources and MCP server permissions that is acceptable individually but hazardous together, such as sensitive data access paired with external communication. Define these sets as policy, evaluate them as a unit at every tool call from a decision point outside the agent, and allow, redact, block, rate limit or escalate each call. Record each decision as evidence, and plan separate controls for risks that span tasks or agents.

    Defining a toxic permission combination

    Most permission reviews ask whether a single tool or data source is appropriate for an agent. A read-only database query tool passes review. So does an email-sending tool for a scheduling assistant. The hazard appears when one agent holds both, and the model can be steered by content it did not author.

    OWASP describes Excessive Agency as the weakness that enables damaging actions in response to unexpected, ambiguous or manipulated model output, regardless of what caused the malfunction. Excessive permissions are one contributing factor. OWASP also frames prompt injection as the input-side compromise, and says excessive functionality, permissions or autonomy are what give that compromise consequences outside the chat window. Together these support a practical definition: the permission combination, not the single permission, is the unit of risk.

    The design implication is that least privilege for AI agents has to be assessed per set. Reducing each tool to its minimum scope still leaves a combination that may need to be refused, constrained or approved.

    Common patterns to look for

    The following patterns are a working taxonomy derived from the principles above. They are not a standardized list, so treat them as a starting point for your own inventory and extend them as you find agent-specific pairings.

    • Untrusted content plus write or execute: An agent reads web pages, tickets, documents or inbound email and can also modify records, run code or change configuration. Injected instructions can then drive real actions.
    • Sensitive data plus outbound communication: An agent can read regulated or confidential data and can send email, post to chat, call external APIs or make network requests. The path from data to outside the boundary is already open.
    • All three together: Untrusted input, sensitive data access and an outbound channel in one agent. Injected content can ask for data and the agent can deliver it.
    • Low-privilege agent relaying to high-privilege agent: OWASP describes this as cross-agent confused deputy. Agents often trust internal requests by default, so a compromised agent can relay valid-looking instructions that the privileged agent executes without re-checking the original user's intent.
    • Inherited identity with broad default scope: An agent runs under a shared or platform-managed service identity with more reach than its task needs. A reported Vertex AI Agent Engine case involved excessive default permissions via a managed service account. It is closer to single over-privilege, but it shows how inherited scope widens every combination.

    Finding toxic combinations in your inventory

    Start with an inventory that treats each agent as a set: every tool, data source and MCP server it can reach, the identity it runs under, and the trust level of the content it ingests. Then evaluate sets rather than items. The goal is a short list of agent configurations that match a defined pattern.

    Begin from least privilege for the baseline: minimum tools per task, read-only by default, no wildcard permissions and no unsandboxed arbitrary code execution. Separate tool sets by trust level so an agent that handles untrusted content does not share a tool set with one that holds write access.

    • 1. Enumerate capabilities per agent: Record tools, data sources, MCP servers, credentials and the content channels the agent reads.
    • 2. Tag each capability: Use tags such as untrusted input, sensitive data, outbound channel, write, execute and delegation.
    • 3. Define toxic sets as rules: Express each pattern as a condition on tags, for example sensitive data and outbound channel in the same session.
    • 4. Choose an action per rule: Decide whether a match should be blocked, redacted, rate limited or escalated.
    • 5. Test against real configurations: Run the rules over the inventory and resolve matches by removing capabilities or accepting enforcement.

    Blocking at the tool call

    Pre-deployment review and design-time scoping reduce exposure, but they judge a configuration, not a live call. Runtime enforcement puts the decision at the moment the agent attempts an action. OWASP's agent security guidance notes that many coding agents expose a pre-execution hook where a check outside the agent can allow, block or escalate each pending action. The same pattern applies to any agent framework or MCP path where a decision point can sit in front of execution.

    At each call, the policy engine should evaluate the tool and arguments together with the agent's held capabilities, the trust level of content in the current context, and the identity of the original user. It can then return one of several outcomes. Allow the call when the combination is within policy. Redact sensitive fields from a payload that is otherwise acceptable. Block the call when it completes a toxic set, such as an outbound request in a session that has read sensitive data and untrusted content. Rate limit or apply egress allowlists to exfiltration-capable tools. Escalate to a person when a defined risk threshold is crossed.

    Two cautions apply. First, a classification is not permission. The executing component must still verify that the actor is authorized for the exact action, including any required approval. Second, do not lean on approval prompts alone. OWASP's cheat sheet cites a report that Claude Code users approve 93% of permission prompts, which shows how per-action approval becomes habitual. Reserve escalation for threshold breaches and circuit-breaker conditions, where OWASP recommends halting, rate limiting or escalating for human review.

    In multi-agent flows, preserve the original user's context and authorization scope across chained calls instead of relying on the calling agent's own permissions, and attenuate scope as authority is delegated so a downstream agent cannot claim more than its parent.

    Evidence each decision should produce, and where enforcement stops

    An enforcement decision is only useful to an auditor if it can be reconstructed. A workable record, offered here as a design recommendation, includes the agent and its identity, the original user and scope, the tools, data sources and MCP servers the agent held, the combination that was evaluated, the tool call attempted, the action taken, the policy version that produced it, and the approver and outcome when a call was escalated. Records should be tamper-resistant, retained according to your own schedule, and queryable by agent, policy and time. OWASP treats observability into which tools agents invoke as non-negotiable, and this record is what makes that observability usable in a review.

    Per-interaction enforcement also has limits. It sees one call at a time. A NIST presentation on multi-agent systems notes that agents each acting within their own specification can still converge on collectively unsafe outcomes that no single component would show alone. A series of individually permitted calls across tasks or agents may never match a rule. Address this with tighter scoping, short-lived per-task credentials, separate identities per agent, isolated execution contexts and review of the evidence over time. Treat call-level enforcement as one layer, not a complete answer to agent risk.

    Where Trussed fits

    Trussed enforces policy in the execution path across models, agents, tools and MCP servers. For individual interactions and tool calls, it can allow, redact, block, rate limit or escalate for human approval, so a toxic combination is enforced at runtime, not reviewed after the fact.

    Each enforcement decision contributes to continuous, audit-ready evidence, mapped to HIPAA, NAIC, NYDFS, the EU AI Act and NIST. Trussed can be self-managed in the customer cloud, with configurable retention and data residency. Its scope is the individual interaction and tool call. Risks that span tasks or agents still call for the scoping, identity and review controls described above.

    From permission set to enforced decision

    Inventory

    List the tools, data sources and MCP servers each agent can reach.

    Classify

    Mark sets that pair untrusted input, sensitive data, outbound channels or write and execute actions.

    Enforce

    Evaluate the combination at each tool call, outside the agent.

    Evidence

    Record the permissions held, the combination evaluated, the action and the policy version.

    Enforce policy on agent tool calls

    See how policy enforcement in the execution path and the resulting audit-ready evidence apply to your agents, tools and MCP servers.

    Request a Demo
    Next step

    How does your AI governance program compare?

    See where your program has gaps in less than 2 minutes.