TL;DR: AI agents can use MCP to discover and call tools, but 1Password argues that raw credentials should stay out of non-deterministic model flows because authentication needs deterministic, auditable boundaries, not probabilistic inference, according to 1Password. The practical issue is not whether agents are useful, but where secrets and least privilege stop being safely enforceable.
At a glance
What this is: This is 1Password’s argument that MCP is useful for low-risk metadata access, but raw credentials and secrets should not be passed through AI-driven, non-deterministic channels.
Why it matters: It matters because IAM teams now have to separate read-only agent access from credential handling, or risk turning AI workflows into uncontrolled secret distribution paths.
By the numbers:
- 92% agree governing AI agents is critical to enterprise security, yet only 44% have implemented any policies to do so.
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, inappropriately sharing sensitive data, and revealing access credentials.
👉 Read 1Password's analysis of MCP boundaries for AI agent credentials
Context
MCP is an interface layer for AI agents, but it does not change the core identity problem: authentication and authorisation still need deterministic control, while model reasoning remains probabilistic. In practice, that means teams must decide which data an agent may read, which actions it may trigger, and which secrets should never enter the model context.
For IAM and NHI programmes, the real boundary is not agent capability, but secret handling. Once credentials are exposed to an LLM context, revocation, traceability, and least privilege become much harder to prove, which makes the distinction between safe metadata access and unsafe credential exposure a governance issue, not a protocol preference.
Key questions
Q: How should security teams handle credentials in AI agent workflows?
A: Treat credentials as delivery-only secrets, not model inputs. AI agents can be allowed to discover metadata, trigger approved workflows, and consume brokered access, but raw credentials should not be placed in prompts, tool outputs, or reusable context. The safe pattern is least-privilege delegation with auditable issuance and clear approval boundaries.
Q: Why do AI agents complicate least privilege decisions?
A: AI agents complicate least privilege because they can choose actions at runtime, which makes intent harder to predict at provisioning time. Traditional access models assume a stable task scope, but agentic workflows can branch, chain tools, and expand context mid-session. That shifts privilege management from static assignment to runtime control.
Q: What breaks when secrets are passed through an LLM context?
A: Secret handling breaks because the secret may become copyable, cacheable, or redistributable across prompts and downstream tools. Once that happens, revocation cannot fully undo exposure, and audit trails become less reliable. The governance failure is not just leakage, but loss of custody over a bearer capability.
Q: What frameworks help govern AI agent access to tools and data?
A: Teams should combine agentic AI risk guidance with zero trust and NHI controls. OWASP Agentic Applications Top 10 helps structure tool and privilege risks, while zero trust and NHI governance define how access should be brokered, scoped, and audited. The key is separating approved task access from secret exposure.
Technical breakdown
MCP data flow versus authentication flow
MCP is designed to let agents discover tools and structured data through a declarative interface, while authorisation for resource access still belongs in the underlying auth layer. That separation matters because model inference is non-deterministic: the agent may decide when to act, but the permission decision must remain reproducible and auditable. If secrets travel through the same channel as model prompts and tool outputs, the control plane loses clarity about where trust is established and where it is consumed.
Practical implication: keep credential issuance and resource authorisation outside the model context.
Why secrets should not be treated like ordinary agent context
Secrets are not just another data type. They are bearer capabilities, which means anyone or anything that receives them can often act as the identity they represent. In an agentic workflow, the risks are amplified by prompt injection, hidden instructions, caching, and downstream tool reuse. Even short-lived exposure can create an uncontrolled replication path, because the model may retain or redistribute sensitive material in ways that are difficult to fully audit after the fact.
Practical implication: design agent workflows so secrets are injected, not handed over.
Least privilege for AI agents needs tighter scoping than human workflows
Least privilege is harder when the runtime actor can choose actions dynamically. Human workflows usually permit bounded review before a request is executed, but AI agents can chain actions, pull additional context, and escalate their own task scope if the surrounding controls are weak. That means access should be limited to read-only metadata where possible, with explicit approval gates for any sensitive state change or credential-bearing operation.
Practical implication: separate read-only agent access from any workflow that can modify identity or secrets state.
NHI Mgmt Group analysis
MCP does not collapse the need for deterministic identity controls. The protocol can make AI agent integration cleaner, but it does not make authorisation any less exacting. Security teams still need a control boundary where request handling, policy decision, and secret issuance remain separable. Practitioners should treat MCP as an interoperability layer, not an identity trust model.
Raw secrets in model context create an exposure window that standard IAM controls were not built to govern. Secrets assume a recipient with stable custody, but LLM context is transient, replicable, and shaped by prompts and tool outputs. That makes secret handling a governance problem, not just a transport problem. Practitioners should stop treating context passing as equivalent to secure credential delivery.
Access without exposure is the right design principle for agentic workflows. The article’s strongest contribution is the distinction between useful read-only agent access and unsafe secret delegation. That boundary aligns with OWASP Agentic Applications Top 10 concerns and with zero trust thinking, where the agent gets the minimum data needed to complete the task. Practitioners should design for delegation without disclosure.
AI agents should be governed as dynamic NHI actors, not as enhanced automation scripts. Once an agent can decide when to call tools and what sequence of actions to take, the risk surface changes from static workflow control to runtime identity control. The operational question is no longer whether automation is permitted, but whether a non-human actor can be trusted with reusable credentials at all. Practitioners should classify agent access separately from ordinary service account usage.
Credential governance now depends on what never enters the model, not only on what gets rotated later. Rotation and revocation still matter, but they do not undo the operational damage of exposing secrets to a probabilistic system. The more durable control is refusal at the boundary: if a credential can be acted on, it should not also be model-context data. Practitioners should make non-disclosure a policy decision, not a runtime surprise.
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.
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, inappropriately sharing sensitive data, and revealing access credentials.
- For a broader control lens, OWASP Agentic Applications Top 10 helps teams map where tool use, privilege, and model behaviour diverge.
What this signals
Access without exposure is becoming the decisive governance pattern for agentic workflows. If AI agents can read useful operational metadata without ever handling raw secrets, security teams preserve auditability and reduce the blast radius of prompt injection and tool misuse. That boundary is the difference between controlled delegation and uncontrolled secret propagation.
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. That gap shows why agent governance cannot be bolted onto existing IAM reviews after deployment. Teams need explicit scope controls, logging, and approval design before agents are allowed into production flows.
AI agent governance now sits at the intersection of NHI and application security. The practical signal is whether your programme can distinguish safe discovery from unsafe credential handling, then enforce that distinction consistently across SaaS, APIs, and downstream automations. The sooner teams codify that boundary, the less likely they are to inherit shadow AI access paths.
For practitioners
- Separate metadata access from credential access Allow AI agents to query low-risk SaaS metadata such as owners, application mappings, and licence metrics, but keep raw secrets and bearer credentials out of the same workflow.
- Inject secrets on behalf of the agent Use brokered delivery patterns where the platform supplies credentials at execution time without exposing them to the model context, then audit every use path.
- Require explicit approval for sensitive actions Add human approval gates for any workflow that can change access, retrieve protected data, or move from read-only discovery into operational state changes.
- Scope agent permissions to minimum viable access Limit agent tools to the smallest set of read-only functions needed for the task, and block any path that can request broader entitlements or reusable tokens.
Key takeaways
- MCP makes agent integration easier, but it does not make secret handling safer by default.
- The governance problem is not whether agents can access data, but whether secrets ever enter a non-deterministic model context.
- Practitioners should broker access, scope agent permissions narrowly, and keep credential custody outside the LLM path.
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 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | Agentic tool use and secret exposure are central risks in the article. | |
| NIST Zero Trust (SP 800-207) | PR.AC-4 | The article centers on separating access decisions from data flow. |
| OWASP Non-Human Identity Top 10 | NHI-03 | Raw credential exposure and secret handling are core NHI concerns. |
Broker AI agent access so the permission decision stays explicit, scoped, and continuously verified.
Key terms
- Model Context Protocol: An open protocol that lets AI agents discover and use tools, APIs, and structured data through a standard interface. In identity terms, it is a transport and interaction layer, not an authorisation model. Security teams must still control who can access what, how credentials move, and where auditability is preserved.
- Non-deterministic channel: A communication path whose behaviour depends on probabilistic model output rather than fixed rules. For identity and secrets handling, this matters because sensitive actions need repeatable, auditable decisions. If credential delivery depends on model context, the organisation loses crisp control over custody, revocation, and traceability.
- Access without exposure: A design pattern where an identity can perform a task or query data without receiving the underlying secret itself. For agentic workflows, this means brokering access at execution time, limiting data visibility, and preserving custody outside the model context so the secret remains revocable and auditable.
- Agentic access: Access granted to an AI agent that can decide at runtime which tools to call and when to call them. The defining risk is not automation alone, but runtime choice combined with identity privileges. Governance has to focus on tool scope, approval boundaries, and whether the agent should ever hold reusable credentials.
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 NHI governance in your organisation, it is worth exploring.
This post draws on content published by 1Password: AI agents and MCP boundaries for secure credentials. Read the original.
Published by the NHIMG editorial team on 2025-07-16.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org