Join our Newsletter — 33% off our NHI Course

Who is accountable when weak MCP authentication allows unauthorised context access or prompt injection?

Accountability sits with the teams that own the MCP gateway, identity provider, and application controls, because they are responsible for enforcing authentication at every context entry point. Compliance and security leadership should expect clear audit trails, token lifecycle controls, and documented permissions for each identity. Without those controls, investigations and governance become much harder.

Why This Matters for Security Teams

Weak MCP authentication is not just a protocol defect. It is an accountability problem across the gateway, identity provider, and application boundary. Once an unauthorised party can access context, prompt injection can turn a benign tool call into data exposure, policy bypass, or unsafe action chaining. The practical question is not whether the request entered the system, but which control failed to stop it.

Current guidance suggests treating MCP as a privileged context entry point, not a simple integration layer. NHIMG research on the State of MCP Server Security 2025 shows how often MCP deployments still expose secrets and lack access scoping, which makes attribution and containment far harder after an incident. The same pattern appears in agentic systems documented by the OWASP Agentic Applications Top 10, where context misuse becomes a direct security pathway.

For security leaders, accountability means proving that authentication, permission checks, and audit logging are enforced at every context boundary, not just at user login. In practice, many security teams encounter weak MCP access only after prompt injection or unauthorised tool use has already expanded the blast radius.

How It Works in Practice

Accountability should be mapped to the control owners who can actually prevent unauthorised context access. That usually includes the team running the MCP gateway, the identity team managing token issuance, and the application team defining which tools, prompts, and context sources are allowed. If one of those layers is missing, the chain of responsibility is incomplete.

In practice, the strongest pattern is to authenticate every MCP context request with a workload identity, then authorize the request at runtime based on the action, the tool, and the sensitivity of the context. This aligns with OWASP Non-Human Identity Top 10 guidance on non-human credentials and with NIST control expectations for access enforcement and auditability in NIST SP 800-53 Rev 5 Security and Privacy Controls. For agentic workflows, that means short-lived tokens, context-bound permissions, and logs that show which identity requested which tool and why.

Teams should expect the following accountability signals:

  • Distinct owners for gateway authentication, token lifecycle, and tool authorization.
  • Per-request audit logs that capture identity, context source, tool invoked, and decision outcome.
  • Ephemeral secrets and revocation paths that limit the damage from a stolen token or injected prompt.
  • Policy reviews that distinguish human users from autonomous agents and service workloads.

NHIMG’s Gemini AI Breach — Google Calendar Prompt Injection illustrates why context access must be treated as a high-risk privilege: once injected instructions reach a trusted agent, downstream controls can be bypassed without obvious user interaction. These controls tend to break down in loosely governed multi-tenant MCP deployments because shared gateways blur ownership and make a single compromised token capable of crossing multiple trust boundaries.

Common Variations and Edge Cases

Tighter authentication and context scoping often increases operational overhead, requiring organisations to balance security assurance against developer friction and service latency. That tradeoff becomes sharper when MCP is used by many internal teams, third-party connectors, or autonomous agents with different trust levels.

There is no universal standard for this yet, but current guidance suggests treating each agent, connector, and tool path as a separate accountability domain. In mixed environments, the most common edge case is delegated access: a human approves an agent, the agent then chains into multiple tools, and the original approver is no longer the effective risk owner. Another edge case is inherited permissions from shared service accounts, which can obscure who should respond when context is exposed.

NHIMG research on the Ultimate Guide to NHIs and the 52 NHI Breaches Analysis shows the recurring pattern: weak identity boundaries turn small integration mistakes into broad exposure events. The practical lesson is simple. Accountability should be assigned before deployment, with explicit ownership for authentication failures, prompt injection response, and token revocation. In distributed agent environments, that assignment becomes ambiguous quickly unless it is written into operational controls and audit workflows from the start.

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, CSA MAESTRO 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 A2 Prompt injection and unauthorised context access are core agentic application risks.
CSA MAESTRO GOV-02 MAESTRO stresses governance and accountability for autonomous agent actions.
NIST AI RMF AI RMF governance applies to accountability for risky autonomous context use.
OWASP Non-Human Identity Top 10 NHI-01 MCP often depends on non-human credentials and token handling.
NIST CSF 2.0 PR.AA-01 Identity and authentication controls are central to preventing unauthorised context access.

Treat MCP context entry as hostile, validate inputs, and enforce per-request policy before tool execution.