Independent analysis by NHI Mgmt GroupSource article: Doppler, “How to secure AI agents with defense in depth” (August 13, 2026)

TL;DR: AI agents that can read, call tools and touch production systems turn prompt injection into a path to real credentials and actions, according to Doppler. Defense in depth only works when short-lived secrets cap the damage after another layer fails.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Doppler's blog post: AI agent permissions can turn prompt injection into real credential and system abuse when access is broader than the task needs.

Why it matters: This matters because agent governance is now an access-control problem as much as a model-safety problem, and the blast radius is set by what the agent can actually reach.


Context

Agent security fails when organisations treat model behaviour as the only risk and ignore the permissions already attached to the session. If an AI agent can read repositories, call APIs, use MCP tools or reach production systems, a single malicious instruction can become an actual operational action.

The governance problem is not whether the agent seems trustworthy in testing. It is whether the access model assumes the agent will always stay inside the intended path, even though the agent can combine read, write and execution privileges at runtime.


Key questions

Q: Why do AI assistants with tool access increase prompt injection risk?

A: Tool access converts prompt injection from a wording issue into an execution issue. A malicious instruction can trigger API calls, file writes, or messages with attacker-chosen parameters. The risk rises sharply when permissions are broad, egress is open, and the assistant can act without task-scoped approval.

Q: Why do long-lived credentials create a bigger risk for AI agents than for traditional automation?

A: AI agents can choose tools and sequence actions dynamically, so long-lived credentials become durable authority across many unpredictable requests. That makes it harder to prove least privilege, track accountability, or limit blast radius. Traditional automation is usually fixed and bounded, while an agent can reuse the same secret in ways the original design did not anticipate.

Q: How does Model Context Protocol change agent security boundaries?

A: Model Context Protocol changes agent security boundaries by standardising how an AI agent discovers tools, data sources and prompts, so the boundary shifts from each bespoke integration to the protocol-defined interface. That makes scoping, allowlisting and revocation more consistent, but it also concentrates risk in the connector layer, where overbroad tool permissions or weak human approval can let an agent act beyond its intended runtime authority.

Q: What should teams do first when AI agents are already in production?

A: Teams should first inventory all agent identities, map the credentials they use, and verify that each one has a named sponsor and monitored workflow. That creates the minimum basis for containment, investigation, and accountability before broader policy changes are attempted.


Technical breakdown

Why prompt injection becomes an access problem

Prompt injection works because agents interpret untrusted text as instructions while still carrying legitimate context and privileges. Once the agent can act on those instructions, the attack is no longer confined to a bad response; it becomes a path to tool calls, data access or system changes. The core failure is not model output alone, but the coupling of language interpretation with live authority. See the Agentic AI Security Guide.

Practical implication: Separate instruction channels from untrusted content and constrain which actions the agent can execute from each channel.

How MCP expands the trust boundary

Model Context Protocol standardises how agents connect to external tools and data, but that same flexibility widens the attack surface. An MCP server can influence the model through descriptions, outputs or later behaviour changes, which means tool supply chain risk now includes the server itself and the permissions it inherits. The mechanism matters because the agent is no longer only trusting the prompt; it is trusting the tool layer too. See the MCP Security Guide.

Practical implication: Treat every MCP server as an access-bearing dependency and review its authority before connecting it to an agent.

Why short-lived credentials reduce agent blast radius

Secrets management matters because credentials decide what an attacker can do after a control failure. If an agent only ever receives a narrow, time-bound credential, a successful injection has less time and less reach than a static key that persists across sessions. The security value is not just rotation; it is making the credential expire before the compromise can compound.

Practical implication: Issue task-scoped, expiring credentials so a leaked or misused secret has limited reuse value.


Threat narrative

Attacker objective: The attacker wants to convert the agent's legitimate permissions into access to secrets, systems or production actions that expand the blast radius of a single injection.

  1. Entry occurs when malicious instructions are embedded in content the agent will read, such as an issue, document, webpage or tool response.
  2. Credential or authority abuse follows when the agent uses its legitimate permissions to call tools, read sensitive data or reach systems the attacker should not directly touch.
  3. Impact lands when those permitted actions expose secrets, alter infrastructure or trigger authenticated requests on behalf of the attacker.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Prompt injection becomes an identity event once the agent can act: the security problem is no longer only what the model says, but what the model can do with the permissions already attached to it. When untrusted text can steer live tool calls, the access model has already crossed from language handling into privileged execution. Practitioners should treat agent instruction paths as identity-bearing control points, not just content filters.

Least privilege is the only durable boundary when agent behaviour is runtime-dependent: agents do not stay inside one neat permission set if the task evolves, the context changes or the prompt is manipulated. That makes static trust assumptions fragile. AI agent authorisation is the right lens here because the question is which actions the agent can ever reach, not whether it was trusted at provisioning time.

Secrets management is the backstop, not the primary defence: layered controls can fail, and this topic shows why the remaining credential should be as short-lived and as narrow as possible. The problem is not just exposure, but what a leaked secret still enables after exposure. Defence in depth only works when the final credential has a small and expiring blast radius.

Agent permissions eventually become attacker permissions: that assumption fails when the actor is an AI agent because it can select tools, read external content and execute actions during the same session. The implication is not that agents are unusable, but that governance built on stable human intent and fixed permission boundaries no longer holds.

Credential exposure is the named concept that matters here: the practical risk is not hypothetical model misuse, but a permission set that can be translated into real access through one successful injection. The more functions and systems the agent can reach, the more every exposed credential becomes a usable attack path. Practitioners should measure agent risk by reachable authority, not by model sophistication.

From our research library:

What this signals

Credential exposure window: the real control question is how long an agent can keep using a secret after a prompt injection succeeds. Access that lasts for the full session gives attackers time to combine read privileges, tool calls and production reach; access that expires quickly turns a successful injection into a short-lived event instead of a durable foothold.

Defence programmes that rely on review cycles alone will always trail agent behaviour, because the risky action can occur before any human recertification window opens. Governance has to move toward issuance-time decisions, policy checks and observable tool use, with one statistic underscoring the gap: systems with least-privileged AI access had a 17% incident rate vs 76% for over-privileged systems, according to the 2026 Infrastructure Identity Survey.

The next maturity step is to treat agent identities like other high-risk non-human actors: centrally governed, tightly scoped and easy to revoke. That is where agent authorisation becomes more than a design preference, because the control point shifts from after-the-fact review to the moment authority is granted.


For practitioners

  • Limit agent authority to the current task Remove read, write and execution rights the job does not need, and separate high-consequence actions from ordinary retrieval.
  • Gate external content before tool use Treat issues, documents, webpages and tool outputs as untrusted inputs, and block the agent from converting them directly into actions.
  • Place MCP servers under access review Approve only the servers and tool scopes the agent actually needs, and review the authority each server can pass into the session.
  • Issue expiring credentials for agent workloads Replace static keys with short-lived secrets so compromise windows close on their own instead of persisting across sessions.
  • Log tool calls and credential use Record agent actions, sensitive requests and access changes so anomalous behaviour can be investigated and repeated permissions can be removed.

Key takeaways

  • AI agents become materially riskier when their permissions extend beyond the immediate task, because prompt injection can then drive real actions.
  • The practical attack surface is not limited to model output; tool access, MCP connections and credential reach all determine how far a compromise can go.
  • Short-lived, centrally governed credentials do not eliminate agent risk, but they sharply reduce the damage when another control fails.

Related NHI Mgmt Group resources: AI Agent Authorisation Guide · AI Agent Observability, Audit and Incident Response Guide · MCP Security Guide · Agentic AI Identity Guide


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, OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseThe article centres on agents being steered into unsafe tool use through injected instructions.
ASI03 — Identity & Privilege AbuseThe central risk is that an agent's legitimate authority can be abused at runtime.
Recommendation — Constrain tool invocation paths and require policy checks before high-risk agent actions. Scope agent identity and privilege to the minimum task authority and revoke overreach quickly.
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageThe piece stresses that exposed credentials become the fallback path after a control failure.
NHI-07 — Long-Lived SecretsStatic keys are explicitly framed as the high-impact problem when agents are compromised.
Recommendation — Scan for exposed agent secrets and remove any credential that can be reached outside governed delivery. Replace persistent agent credentials with short-lived leases wherever the target system allows it.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is fundamentally about governing what an AI agent is authorised to reach.
Recommendation — Apply entitlement controls so each agent action is authorised at the point of use.
MITRE ATT&CKTA0006;TA0010 — Credential Access; ExfiltrationThe attack path discussed moves from prompt steering to credential abuse and possible data theft.
Recommendation — Map agent compromise paths to credential access and exfiltration techniques for detection coverage.

Key terms

  • Prompt Injection (Agentic): An attack where malicious instructions are embedded in content that an AI agent reads, causing the agent to execute unintended actions using its own legitimate credentials. A primary vector for agent goal hijacking and identity abuse.
  • Model Context Protocol: Model Context Protocol is an open protocol that lets AI agents connect to tools and data sources. It expands what an agent can reach, so governance has to cover not only the model and its prompts, but also every system that can receive or return agent-driven data.
  • Short-lived Credentials: Short-lived credentials are access secrets that expire quickly, limiting how long a system or user can authenticate before renewal is required. In identity security, they reduce exposure from theft or misuse by shrinking the window for attackers, and are often used in cloud, API, workload, and agent access models.
  • Defense in depth: Defense in depth is the practice of stacking independent controls so one failed check does not expose the whole system. In App Router authentication, that means verifying identity in middleware, route handlers, and data access logic, because each layer protects a different part of the request path.

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.
NHIMG Editorial Note
Published by the NHIMG editorial team on November 7, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org