Menu
The New Stack·September 12, 2026

Securing AI Agents: Overhauling Permissions and Identity for Model Context Protocol (MCP)

This article discusses critical security challenges in AI agent interactions with data and tools, specifically within the hypothetical Model Context Protocol (MCP) ecosystem. It highlights that traditional permission models, designed for human users, are inadequate for autonomous AI agents, leading to vulnerabilities like broad scope access and identity confusion. The piece advocates for a paradigm shift toward granular, dynamic, and lifecycle-aware permissions, treating AI agents as first-class identities.

Read original on The New Stack

The advent of AI agents interacting with systems via protocols like the hypothetical Model Context Protocol (MCP) introduces significant security architectural challenges. The core problem identified is that existing permission and identity management systems were not built to handle non-human, often long-lived, autonomous entities. This leads to issues where agents inherit overly broad permissions, use standing credentials, and lack distinct identities, making systems vulnerable to attacks like tool poisoning and confused deputy problems.

Key Security Vulnerabilities with AI Agents

  • Overly Broad Permissions (Scope Creep): Tokens granted for specific tasks often have wider access than necessary, leading to potential data exfiltration if exploited (e.g., GitHub MCP server incident).
  • Lack of Isolation: Permission layers fail to enforce boundaries, allowing cross-tenant access in multi-tenant systems (e.g., Asana MCP integration flaw).
  • Standing Credentials: AI systems frequently rely on long-lived, static credentials, increasing the blast radius if compromised.
  • Borrowed Identities: Agents often use a human's OAuth token, inheriting all associated permissions and lifetime, rather than having their own distinct identity and access model.

Architectural Principles for Securing AI Agents

💡

Shift from Human-Centric to Agent-Centric Security

The fundamental architectural shift required is to stop treating AI agents as mere extensions of human users. Instead, they must be recognized as distinct entities with their own lifecycle-dependent identities and finely-tuned permission models. This requires re-evaluating assumptions embedded in existing identity and access management (IAM) systems.

  • Compartmentalized Access: Each agent instance should have its own secrets and credentials scoped precisely to its specific task, following the principle of least privilege.
  • Dynamic, Temporary Credentials: Replace fixed, permanent tokens with credentials generated on the fly, with lifetimes tied to the task's actual duration.
  • Action-Based Authorization: Authorization should be based on the specific action an agent needs to perform, rather than assuming broad access after user authentication.
  • Granular Scope Control: Integrations must provide control over access scope (e.g., per-site, per-repository) at connection time, avoiding all-or-nothing organizational access.
  • Distinct Agent Identities: Agents, especially long-lived ones, require their own stable identities, separate from the human who invoked them, with permissions that tighten over time.
  • Robust Logging and Accountability: Agent activities must be logged in a way that assigns clear accountability, similar to human actions, for effective incident response.
  • Reviewable Production Changes: Agent-initiated changes to production systems should pass through reviewable processes (draft, branch, approval queues) to maintain security discipline.

The article emphasizes that effective security for AI agents requires a holistic approach, integrating scope, identity, and lifetime as a single, continuously evaluated setting within the permission model. This contrasts with current practices where these are often separate, one-time evaluations, leading to significant vulnerabilities as AI agents become more prevalent and long-lived within systems.

AI securitypermissionsidentity managementleast privilegeOAuthAPI securityagent-based systemsdistributed access control

Comments

Loading comments...