By NHI Mgmt Group Editorial TeamPublished 2025-06-30Domain: Agentic AI & NHIsSource: PlainID

TL;DR: As organizations adopt AI and LLM-based systems, expanded data connectivity, MCP-driven tool access, and response masking must be governed through policy-based authorization, according to PlainID, because access-control failures now magnify compliance and exposure risk across the workflow. The deeper issue is that AI security is becoming an identity and authorization problem, not just a data problem.


At a glance

What this is: This is a PlainID blog post arguing that AI systems need policy-driven authorization across prompt handling, data access, tool access, and response masking.

Why it matters: It matters because IAM, NHI, and AI governance teams must treat AI workflows as identity enforcement paths, not just application features, if they want to contain exposure and compliance risk.

By the numbers:

👉 Read PlainID's analysis of authorization controls for secure AI systems


Context

AI system authorization is becoming a governance issue because modern AI workflows can query internal data, call tools, and return outputs that are shaped by identity and policy. When those controls are inconsistent, the system can expose more data than the user should see, or disclose information in ways that create compliance failures.

PlainID frames the problem around four control points: prompt filtering, source-level data access, service and tool access through MCP, and response masking. That is a useful way to think about AI security, but the real question for IAM and security leaders is whether authorization is enforced as a consistent policy layer across the entire workflow.

For NHI and AI governance teams, the practical challenge is that AI systems combine workload identity, application logic, and policy decisions in ways that make ad hoc controls brittle. The article’s starting point is typical of the market: most organisations want speed first, then try to bolt on governance after usage expands.


Key questions

Q: How should security teams implement authorization for AI systems without slowing adoption?

A: Security teams should separate AI authorization into distinct control points for prompts, retrieval, tools, and output. That lets teams keep user experience responsive while still enforcing least privilege where data and actions are actually exposed. The key is policy consistency, not a single control that tries to do everything.

Q: Why do AI systems create more access-control risk than traditional applications?

A: AI systems can retrieve large volumes of internal data, call tools dynamically, and return synthesized outputs that may reveal more than a single application screen. That widens the blast radius of a weak policy decision, especially when retrieval and service access are not identity-aware.

Q: How do teams know if AI authorization controls are working?

A: They should test whether the model can only retrieve data and invoke tools that the requesting identity is allowed to use, and whether sensitive output is consistently masked. If the same prompt produces different exposure outcomes for different identities, the policy layer is doing real work.

Q: What is the difference between prompt filtering and access control in AI workflows?

A: Prompt filtering limits what users can ask, while access control limits what the system can retrieve, call, or reveal after the prompt is accepted. A secure AI programme needs both, but only authorization can stop a valid request from crossing an entitlement boundary.


Technical breakdown

Prompt filtering and question control in AI workflows

Prompt filtering is the earliest control point in an AI workflow, but it is not the same as access control. It limits what a user can ask before the system retrieves data or calls tools, which reduces obvious misuse and some prompt injection paths. However, prompt filtering cannot enforce entitlement by itself, because a valid prompt may still trigger access to data the user should not receive. In practice, it is a front-door control that complements, but does not replace, policy enforcement later in the request path.

Practical implication: do not treat prompt controls as authorization. Pair them with source-level policy enforcement on data and tool requests.

Data access control for retrieval-augmented generation

RAG systems create a distinct authorization problem because retrieval happens before generation. If the retrieval layer is not identity-aware, the model can surface documents that are relevant to the query but inappropriate for the user. That means the access decision must happen at the source or retrieval policy layer, not after documents are fetched. In identity terms, the model is only as safe as the entitlement check that governs what can be retrieved in the first place.

Practical implication: enforce entitlement checks at the data source or retrieval gateway, not after the model has already seen the content.

MCP tool access and response masking

The Model Context Protocol extends AI systems into tools and services, which makes authorization decisions operational rather than theoretical. If tool access is overly broad, the model can reach systems that were never meant to be universally callable. Response masking then becomes the final containment layer, redacting sensitive fields based on identity and policy before output leaves the system. Together, these controls are about constraining what the system can reach and what it can reveal, even when the model itself is highly capable.

Practical implication: govern MCP access as a privileged interface and apply masking rules that are tied to identity, not just content patterns.


Threat narrative

Attacker objective: The objective is to obtain data or actions that the requester should not be able to access directly, then surface them through the AI workflow as if they were authorised.

  1. Entry occurs when a user or AI workflow submits a prompt that reaches internal retrieval, tools, or documents without sufficient policy pre-checks.
  2. Escalation occurs when the AI system is allowed to query or call services beyond the user’s actual entitlement, especially through broad retrieval or MCP access.
  3. Impact occurs when the model exposes sensitive records, compliance-restricted content, or operational data through generated answers or masked outputs that are incomplete.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Authorization is becoming the primary control plane for AI security. Once AI systems can retrieve data, call tools, and shape responses, the old separation between application logic and identity enforcement breaks down. The article correctly points to policy-driven access control, but the field-level shift is larger: AI security is no longer a model-only problem, it is an authorization architecture problem. Practitioners should treat the AI workflow as an enforcement surface, not a feature layer.

Prompt filtering is necessary, but it is not authorization. Many teams will over-index on blocking bad prompts while leaving retrieval and tool access too broad. That creates a false sense of control, because the dangerous action is often not the prompt itself but what the workflow is allowed to fetch or invoke after the prompt is accepted. Practitioners need to separate input hygiene from entitlement enforcement.

Response masking is a last-mile control, not a governance strategy. Redaction can reduce accidental exposure, but it does not solve over-broad access, poor entitlement scoping, or policy drift across AI-connected systems. In the identity stack, masking belongs downstream of authorization, not in place of it. Practitioners should not confuse output suppression with secure access design.

Policy-driven AI control points are a bridge between human IAM and NHI governance. AI systems sit at the intersection of user identity, workload identity, and privileged tool access, which means the same governance logic must hold across all three. That makes consistent policy enforcement more valuable than isolated point solutions. Practitioners should align AI authorization with broader identity governance rather than create a separate exception path.

Agentic access amplifies the blast radius of weak authorization design. Even when the article focuses on AI systems broadly, the direction of travel is clear: as systems become more autonomous, the cost of a missed access boundary rises sharply. That is why governance teams should design for constrained authority and observable policy decisions from the start.

From our research:

  • 92% agree governing AI agents is critical to enterprise security, yet only 44% have implemented any policies to do so, according to AI Agents: The New Attack Surface report.
  • Only 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation.
  • For the governance pattern behind this shift, see OWASP Agentic AI Top 10 for the control failures that matter most in agent-driven systems.

What this signals

Agentic authorization drift: AI systems tend to accumulate permissions faster than governance teams can rationalise them, especially when retrieval, tool access, and masking are treated as separate projects. The practical signal is simple: if your AI stack can reach internal data sources without a single policy owner, your control model is already fragmented. For teams building AI governance, the immediate task is to consolidate policy decisions into one enforceable identity layer.

The market is moving toward identity-first AI controls because application-level guardrails alone do not scale when models touch many repositories and tools. That is why frameworks such as the NIST AI Risk Management Framework matter here: they force a governance view of risk, not just a technical one. Practitioners should expect more scrutiny on who can authorize AI data access and under what conditions.

With 80% of organisations reporting AI agents acting beyond intended scope, the next programme maturity test is whether AI access can be reviewed, revoked, and audited like any other privileged identity. That moves AI governance into the same operational discipline used for NHI and PAM. Teams that cannot trace what an AI system touched will struggle to defend it during incident response or compliance review.


For practitioners

  • Define policy boundaries for each AI control point Map separate enforcement rules for prompt filtering, retrieval, tool invocation, and response masking so each layer has a clear responsibility and no layer is expected to compensate for another.
  • Enforce retrieval-time entitlement checks Require the data source or retrieval gateway to validate user identity and entitlement before documents are returned to the model, especially in RAG architectures.
  • Treat MCP as a privileged interface Limit which services and tools an AI system can call, and review those permissions with the same discipline used for high-risk application-to-system access.
  • Apply masking based on identity and policy Redact sensitive fields after authorization but before output, and make the masking rules explicit enough to audit when compliance teams review disclosures.
  • Unify AI access controls with identity governance Place AI workflow policies inside the same governance model used for IAM, NHI, and privileged access so exceptions do not accumulate outside normal review cycles.

Key takeaways

  • AI security breaks down when authorization is fragmented across prompts, retrieval, tools, and output.
  • Policy consistency matters more than any single control, because AI systems widen exposure at every enforcement layer.
  • Identity teams should govern AI workflows as privileged access paths, not as ordinary application traffic.

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 address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10A2AI workflows with tool access fit agentic access and authorization risks.
NIST AI RMFAI RMF governance applies to policy ownership and accountability for AI access.
NIST Zero Trust (SP 800-207)PR.AC-4Identity-aware access control is central to the article's zero-trust framing.

Assign ownership for AI authorization decisions and document risk controls across the workflow.


Key terms

  • AI Authorization: AI authorization is the policy decision layer that determines what data, tools, and actions an AI system may access on behalf of a user or workload. It differs from prompt safety because it governs entitlement, not just content handling, and it must be enforced consistently across the full workflow.
  • Retrieval-Augmented Generation: Retrieval-augmented generation is an AI pattern where the model retrieves external documents or records before generating a response. The security risk is that retrieval can expose data before generation, so the retrieval layer must enforce identity and entitlement checks, not just the user interface.
  • Response Masking: Response masking is the practice of redacting sensitive fields before AI output is delivered to a user. It is a downstream control, useful for reducing leakage, but it does not replace access control because it cannot correct an over-broad retrieval or tool permission decision already made upstream.
  • MCP Tool Access: MCP tool access is the ability of an AI system to call external services and tools through the Model Context Protocol. In governance terms, it behaves like privileged application access and should be scoped, reviewed, and monitored as carefully as any other high-risk identity pathway.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or governance maturity in your organisation, it is worth exploring.

This post draws on content published by PlainID: Best Practices for Securing AI Systems with Authorization. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2025-06-30.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org