Because a successful connection only proves the agent is allowed to connect, not that every message in the session is safe. Once inside, an agent can be fed manipulated tool listings, send sensitive data to the wrong tool, or receive malicious instructions disguised as normal output. Identity answers who may connect. Content inspection answers whether the exchange stays trustworthy.
Why This Matters for Security Teams
Approved AI agents can still move risky content through a trusted session because identity checks only validate the caller, not the quality, intent, or provenance of each instruction and output. In MCP workflows, that gap matters when a model is allowed to browse tools, relay context, and execute actions on behalf of a user. The result is a security problem that sits between access control and content trust, which is why the OWASP Top 10 for Agentic Applications 2026 treats agent misuse, prompt injection, and tool abuse as distinct risks rather than simple authentication failures.
Security teams often assume that if the agent has the right identity, the workflow is safe enough. That assumption breaks down once untrusted model output, external tool responses, and user-supplied content are merged into the same execution path. The practical risk is not only data leakage but also silent action steering, where the agent follows malicious instructions without any access policy being violated.
In practice, many security teams encounter this only after an approved agent has already relayed the wrong context to the wrong tool, rather than through intentional content inspection.
How It Works in Practice
MCP creates a structured channel between an agent and its tools, but that structure does not guarantee trustworthiness. Identity and access controls decide whether the agent may connect, while runtime controls decide whether the session should continue to be trusted. A secure design therefore needs layered checks on tool availability, message boundaries, output filtering, and sensitive data handling.
Practical controls usually include:
- Constraining the agent to only the tools required for a task, with explicit allowlists.
- Validating tool metadata and responses before the agent uses them in downstream decisions.
- Separating high-risk actions, such as data export or system changes, from ordinary conversational exchanges.
- Scanning prompts, tool outputs, and retrieved content for injection patterns, secrets, and policy violations.
- Logging agent decisions and tool calls so that investigators can reconstruct how a message influenced an action.
This aligns closely with the NIST AI Risk Management Framework, which emphasises governance, mapping, measurement, and management of AI risks across the lifecycle. It also reflects current guidance from the MITRE ATLAS adversarial AI threat matrix, where prompt injection, supply chain manipulation, and deceptive model inputs are treated as operational threat patterns rather than edge cases.
For agentic deployments, the most important design choice is to treat content as untrusted even when the transport and identity layer succeed. That means separating authorization to act from authorization to trust, then enforcing both at runtime. These controls tend to break down when an MCP server aggregates many tools, because a single compromised or noisy tool response can contaminate the full agent session before detection catches up.
Common Variations and Edge Cases
Tighter content controls often increase workflow friction, requiring organisations to balance autonomous action against review overhead. There is no universal standard for this yet, and best practice is still evolving for how much inspection should occur inline versus after the fact.
One common edge case is a high-trust internal agent that appears safe because it only reaches approved services. Even then, tool output can carry malicious instructions, malformed markup, or hidden data that changes the agent’s next step. Another is delegated automation across teams, where one group’s safe tool becomes another group’s attack surface through shared context or reused credentials. This is where identity governance and non-human identity controls intersect with agentic AI security, because the agent’s credentials can be valid while its behaviour remains unsafe.
Another practical wrinkle is false confidence from logs that show successful authentication and clean API responses. Those records prove connectivity, not semantic safety. The right control set therefore combines content policy, tool isolation, and incident review, not identity checks alone. For teams building this capability, the NIST Cybersecurity Framework 2.0 helps anchor governance, while the NIST AI Risk Management Framework keeps the focus on AI-specific failure modes.
Guidance breaks down most quickly in environments that allow broad tool chaining, shared context windows, and direct write access to sensitive systems, because a single trusted session can spread untrusted instructions across multiple downstream actions.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10, MITRE ATLAS and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | LLM07 | Prompt injection and tool abuse are central risks in approved agent sessions. |
| NIST AI RMF | GOVERN | AI governance is needed because identity success does not prove content safety. |
| MITRE ATLAS | AML.T0010 | ATLAS captures adversarial manipulation patterns relevant to MCP workflows. |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege access still matters, but it does not solve message-level risk. |
| OWASP Non-Human Identity Top 10 | NHI-6 | Agent credentials are non-human identities that need lifecycle and scope control. |
Inventory agent identities, bind them to narrow scopes, and rotate credentials routinely.
Related resources from NHI Mgmt Group
- Why do AI agents create new risk in non-human identity management?
- Why do AI agents create a different access-risk profile than traditional applications?
- Why do enterprise AI agents create governance risk even when MCP is approved?
- Why do AI agents increase non-human identity risk in existing IAM programmes?