Independent analysis by NHI Mgmt GroupSource article: Scalekit, “Prompt Injection Through Tool Calls: How Indirect Injection Hijacks AI Agents” (October 29, 2026)

TL;DR: Prompt injection through tool calls happens when an agent reads untrusted content that quietly directs it to use the user’s own access, and Scalekit’s analysis shows the attack succeeds when private data, external send paths, and broad tool access coincide. Blast-radius control becomes the governing principle because the model cannot reliably distinguish instructions from data.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Scalekit's blog post: Indirect prompt injection in tool calls becomes a data-leak path when untrusted content, private data and outbound tools meet.

Why it matters: IAM and agent-governance teams need to treat tool scope, approval gates and per-user authorization as the real control surface when agents can read and send on behalf of a person.


Context

Indirect prompt injection is a control problem, not a content-filtering problem. When an AI agent reads email, tickets or web pages and can also act on connected systems, hidden instructions can ride inside the data it processes. That creates an identity and authorisation issue because the agent executes with real credentials, not simulated ones.

The governance gap is the gap between what the task needs and what the run can actually do. Agentic AI Security Guide is relevant here because the attack only becomes serious when untrusted content, private data and external communication appear in the same execution path.

Tool poisoning widens the same problem to third-party tool metadata. If the agent trusts a tool description or annotation that the operator never reviewed, the tool itself can become an instruction carrier rather than a neutral capability.


Key questions

Q: How do indirect prompt injections reach agent workflows?

A: Indirect prompt injections reach agent workflows when malicious instructions are hidden inside content the model reads, such as emails, documents, web pages or tool output. The agent then treats those instructions as data and may pass them into planning or tool calls. Separating untrusted inputs from system prompts, using content filtering, and restricting tool permissions reduces the attack path.

Q: Why does broad tool scope increase agent exfiltration risk?

A: Broad tool scope increases agent exfiltration risk because the agent can reach more data sources, files, and APIs in one execution path. If a prompt injection or tool misuse occurs, the same workflow can read private data and move it out through an authorised channel, especially when the agent has write, export, or messaging permissions. Narrow tool allow-lists, scoped tokens, and per-action approval reduce that blast radius.

Q: How should teams govern MCP servers once they are discovered?

A: Classify recurring MCP servers as managed access objects, not personal tooling. Put approved servers behind a shared control point, assign ownership, restrict who can use them, and remove direct local registrations that cannot be reviewed or logged. That approach keeps productivity while restoring observable access governance.

Q: Could read-only runs contain prompt injection damage?

A: Yes, but only partially. Read-only runs limit direct modification, so they can reduce destructive prompt injection damage, yet the agent can still leak sensitive data, expose tokens, or trigger side effects through tools that look read-only but have indirect impact, such as search, export, or notification actions. Containing damage needs strict tool allow-lists and data egress controls.


Technical breakdown

How tool output becomes instruction input

Tool outputs are not just retrieved data once they enter an agent’s context. An inbox message, support ticket or web page can contain text that the model interprets as an instruction, then uses in later tool selection and argument construction. The failure mode is not that the model “understands” the attacker in a human sense, but that it cannot reliably separate content from control signals once both are represented as text. That is why the attack often looks like normal task completion until the outbound action happens. See the AI Agent Observability, Audit and Incident Response Guide.

Practical implication: Treat every read from untrusted sources as potentially executable influence, not just readable content.

Why MCP tool poisoning works

MCP tool poisoning moves the payload into the server’s own tool descriptions or annotations. Because those fields are loaded into the model context, a malicious or later-modified server can smuggle instructions before the user data ever appears. The protocol also warns that annotations from untrusted servers should not be treated as authoritative, which means permissioning must be decided outside the server’s own labels. In practice, the risk is a trust mismatch between what the operator approved and what the model later consumes. See the MCP Security Guide.

Practical implication: Keep untrusted MCP servers on an allowlist and pin their tool lists before they can influence agent behaviour.

Why blast radius matters more than detection

Once an agent is hijacked, the decisive question is what it can reach with a single run. If the same session can read private data, interact with untrusted content and send externally, the attacker has enough capability to turn a normal workflow into exfiltration. That is the lethal trifecta in operational form. Detection can explain what happened after the fact, but it does not remove the access path that made the leak possible in the first place.

Practical implication: Design each run so it can observe or write, but not both, whenever the task touches untrusted content.


Threat narrative

Attacker objective: The attacker wants to make the agent disclose sensitive internal data through an authorised workflow that appears legitimate.

  1. Entry occurs when untrusted email, ticket or web content enters the agent through a normal read tool.
  2. Credentialed access is then abused when the agent uses the user’s own connected accounts to query private systems.
  3. Escalation happens when the injected instruction shapes the next tool call, including the recipient or query parameters.
  4. Impact is the exfiltration of private data through an outward-facing tool call that still looks valid in logs.

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

Indirect prompt injection is an agent authorisation failure before it is a content problem: the model is not deciding whether text is true, it is deciding whether text should drive action. That distinction matters because the agent executes with the user’s own connected accounts, so the harm comes from delegated authority rather than from the text alone. The practical conclusion is that content safety and access safety are different layers.

Blast-radius control is the named governance concept this attack makes unavoidable: the run must be constrained so a hijacked instruction cannot reach private data and cannot send it back out in the same session. That is why scope, read-only execution and per-user binding matter more than generic “prompt hygiene.” Practitioners should treat the run as the unit of control, not the model.

Tool poisoning shows that trust in tool metadata is now an identity decision: if a server can label its own tools, then the agent can be persuaded by untrusted descriptions before any user content is processed. That creates a governance gap between approved tools and trusted semantics. Agent Identity Standards Tracker is useful here because the identity layer around tools is still immature.

Per-user authorization limits damage, but it does not remove the attack path: the agent can still be tricked into using valid credentials to expose data from that user’s own boundary. That means the control objective is containment, not prevention. Security teams should judge success by how small the reachable blast radius becomes when a run is manipulated.

Read-only steps belong in the control plane, not as a best-effort policy: a workflow that only fetches data should not have the ability to write or send. The more the run can do, the more a single injected instruction can convert observation into disclosure. Practitioners should redesign agent tasks around separable read and write phases.

From our research library:

What this signals

Blast-radius governance: agent security is moving from “can the model be fooled?” to “how far can a fooled run travel before it is stopped?”. That shift changes the control target from prompt content to execution scope, with read-only phases, per-user binding and approval gates becoming the practical unit of defense.

The same logic applies to discovery and monitoring: if an agent can read untrusted content and later act on it, logs alone will not prevent disclosure. Practitioners should assume an injected instruction will succeed at least once and design containment so the first success has minimal reach.

As organisations grant AI systems more access than human employees performing the same job, according to the 2026 Infrastructure Identity Survey, the gap between task need and delegated authority widens fast. That makes agent identity models a governance issue, not an implementation detail.


For practitioners

  • Define read and write phases separately Keep the step that ingests untrusted content read-only, and move any outbound action into a different step with a distinct approval path.
  • Scope tools by task, not by platform Expose only the Gmail and CRM actions the specific workflow needs, instead of handing the agent the full tool catalog for the account.
  • Bind every run to one user identity Ensure each call runs under the specific person’s grant so a hijacked session cannot cross into another user’s data boundary.
  • Pin third-party tool inventories Record the approved tool list and alert when descriptions, names or annotations change on external MCP servers.
  • Hold all writes behind human approval Require a person to confirm any send, create or update action with the full arguments shown before execution.

Key takeaways

  • Indirect prompt injection becomes dangerous when an agent can read untrusted content and use the same session to reach private systems or send data out.
  • The attack does not need a credential failure, because the agent often acts with valid user permissions throughout the whole sequence.
  • Containment depends on shrinking tool scope, splitting read and write paths, and binding each run to a single user’s authority.

Related NHI Mgmt Group resources: Agentic AI Security Guide · MCP Security Guide · AI Agent Observability, Audit and Incident Response 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 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseThe attack hijacks tool use through injected instructions and poisoned metadata.
ASI03 — Identity & Privilege AbuseThe agent uses delegated access to exfiltrate data with valid permissions.
ASI04 — Agentic Supply Chain VulnerabilitiesTool poisoning originates in third-party MCP server content and annotations.
Recommendation — Constrain tool invocation paths so untrusted content cannot redirect agent actions. Bind agent actions to least-privilege identity scopes and verify every delegated permission. Trust only approved tool sources and pin server definitions before execution.
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationThe agent’s delegated access model depends on correct per-user authentication and session binding.
Recommendation — Use per-user authentication boundaries so one compromised run cannot cross into other users’ access.
NIST SP 800-53 Rev 5IA-9 — Service Identification and AuthenticationAgent and tool interactions are service-to-service credentialed access flows.
Recommendation — Apply service authentication controls to bind each tool call to a known, scoped identity.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe core issue is excessive permissions across tools and sessions.
Recommendation — Enforce task-scoped entitlements so a read-only workflow cannot write or send.

Key terms

  • Indirect Prompt Injection: Indirect prompt injection is an attack where malicious instructions are hidden inside content that an AI system reads later. The model may treat that content as context rather than as hostile input, which can influence tool use, data access, or workflow actions if controls are weak.
  • Read-Only Run: A read-only run is an execution mode where an agent can inspect data and produce outputs but cannot change state. It usually restricts write, delete, update, and approval actions, though the agent may still query systems or retrieve content, so access scope and data leakage controls still matter.
  • Tool Poisoning: Tool poisoning is an attack in which malicious instructions are hidden inside tool descriptions, examples, or schemas that an AI agent reads when deciding what to do. The danger is not only in the tool's code, but in the metadata that shapes the agent's behaviour and trust decisions.
  • Blast Radius: The potential scope of damage if a specific credential or identity is compromised. Identities with broad permissions have a larger blast radius and represent a higher priority for least-privilege enforcement and security controls.

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 building or maturing an identity security programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org