Independent analysis by NHI Mgmt GroupSource article: Verno Labs, “Wrong tool or wrong value? Inside two kinds of prompt injection” (November 13, 2026)

TL;DR: AI agents exposed to injected text can be steered in two different ways, with Verno Labs showing that one attack changes which tool is called while the other changes the argument passed to a trusted tool. The distinction matters because a single defence mechanism does not cover both failure modes.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Verno Labs's blog post: Prompt injection can hijack AI agents either by changing the tool they call or the value they pass, and the two paths need different defences.

Why it matters: This matters because agent security cannot rely on one generic prompt defence when the attack may alter either tool selection or data values inside the same workflow.

By the numbers:

  • Blocking those heads from attending to untrusted fields restores the legitimate value in 67–75% of attacks without hurting normal performance.
  • Combining activation steering with field-level head masking cuts the average hijack rate from 84% to under 2%, with no attack type above 5%.

Context

Prompt injection is a governance problem because AI agents do not just read instructions, they also read the records that drive downstream action. When those records can carry attacker-controlled text, the boundary between legitimate data and operational instruction becomes unstable, especially where the agent can call tools, move money, or update customer records.

The security issue is not only whether a model follows the wrong instruction. It is also whether the agent harness can separate trusted fields from untrusted fields before the model turns a record into an action. That distinction becomes central in agentic AI systems, where the same input can influence both decision-making and execution.


Key questions

Q: How should security teams reduce prompt injection risk in AI agents?

A: Security teams should reduce prompt injection risk by constraining what enters the context window, limiting tool permissions, and separating untrusted retrieval content from privileged instructions. The practical goal is not perfect detection. It is to ensure that a successful injection cannot trigger wide data access, uncontrolled writes, or irreversible actions through a delegated identity.

Q: Why does prompt injection change tool choice or tool arguments?

A: Prompt injection changes tool choice or tool arguments by planting instructions that the agent treats as higher priority than the user’s task, often because the model lacks a strict instruction hierarchy or tool schema enforcement. The failure mode is argument substitution, where the agent copies behaviour from attacker text into a tool call. Mitigations include allowlisted tools, typed arguments, and server-side validation.

Q: How does field-scoped masking reduce AI agent hijacking?

A: Field-scoped masking reduces AI agent hijacking by making only the declared field visible to the model, while hiding adjacent text that could carry conflicting instructions. That narrows the prompt surface the agent can interpret and reduces contamination from untrusted surrounding content. It works best with strict field parsing, isolated system instructions, and tool-side validation.

Q: Is prompt injection harder to stop in long agent records?

A: Yes, prompt injection is harder to stop in long agent records because more retrieved or retained text gives attackers more opportunities to bury instructions inside apparently relevant content. Long context also makes instruction precedence harder to maintain unless the agent uses strict parsing, chunk isolation, and retrieval filters. The risk is especially high when tools are chosen from untrusted memory or notes.


Technical breakdown

Why tool hijack behaves like a state change

Tool hijack changes which action the model selects, not just what text it repeats. In this pattern, injected content nudges the model into a broader instruction-following state that is represented in activations as a direction the model is likely to move toward. That is why subtracting the right activation direction can neutralise the attack. The important point is that the model is not copying the attacker’s string into the tool name. It is shifting its internal state so that the decoy tool looks like the correct next step.

Practical implication: Treat tool selection as a controllable state transition and apply runtime controls that can suppress injected instruction-following behaviour before an action is executed.

Why argument hijack is a copy problem

Argument hijack works differently. The model uses attention heads that normally copy legitimate values from clean records, and those same heads can pull attacker-controlled strings into the tool argument field. That means the failure is not a general instruction shift but a field-level copying error. Because the model still needs to copy data from records in ordinary cases, broad suppression of those heads harms normal performance. The control challenge is to stop untrusted fields from being visible to the heads that populate the argument while preserving copying from the trusted field.

Practical implication: Restrict untrusted fields at the harness level so copied arguments can come only from declared inputs, not from adjacent attacker text.

Field-scoped masking is stronger than attack detection

A detection-first design assumes the system can spot malicious text before action time, but prompt injection can be buried inside otherwise valid records. Field-scoped masking uses metadata the harness already knows, such as which JSON key the action should read, and hides every other field from the copy mechanism. That makes it deterministic rather than probabilistic. The article's deeper lesson is that information-flow control at the action boundary is more reliable than trying to classify text as hostile after the model has already read it. Read Prompt Guardrails vs Policy Engines for AI Agent Actions.

Practical implication: Enforce field-level data handling in the agent harness so only the declared action field can influence the pending tool call.


Threat narrative

Attacker objective: The attacker wants the agent to execute an authorised action with attacker-chosen semantics, either by selecting the wrong tool or by substituting the wrong value.

  1. Entry occurs when attacker-controlled text is embedded in an email, web page, database record or tool output that the agent reads as part of a normal task.
  2. Credential_harvested or value hijack follows when the model copies the attacker’s string into the tool argument or switches to the wrong tool definition.
  3. Impact occurs when the agent executes the hijacked action, such as paying the wrong account or sending data to the wrong destination.

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 is now an action-governance problem, not only a model-safety problem. When an agent can both read untrusted text and execute tools, the security boundary moves from the prompt to the harness that turns text into action. That is why controls have to distinguish between instruction content and the fields that drive execution. Practitioners should treat the action layer as part of the trust boundary, not just the model.

Tool hijack and argument hijack expose two different failure assumptions. One assumes the model can be pushed into a broader instruction-following state, while the other assumes the model can safely copy values from mixed-trust records. Those are separate governance failures, so a single mitigation will always leave residual exposure. Agentic AI security needs layered controls that match the failure mode, not one control applied everywhere.

Field-level control is the named concept that matters here: field-scoped trust. The article shows that the attack surface is not the whole record, but the specific field an action consumes, which makes record-wide inspection too coarse for reliable defence. This is a governance shift for agentic AI systems because trust must be assigned at field granularity before the model reasons over the record.

The strongest operational lesson is that untrusted text and trusted data often share the same channel. Email bodies, web pages and database rows can all carry instructions that look like ordinary context to an agent. That means identity and access decisions for AI systems must be tied to data provenance, field ownership and action scope. Practitioners should assume the agent will read what humans would ignore.

Models are not the only policy surface in agentic systems. The article's result shows that the harness can do what the model cannot do reliably: enforce what field is eligible to influence an action. That makes the orchestration layer a first-class security control point for AI agents, especially where money movement, account updates or ticketing actions are involved. Practitioners should govern the harness as strictly as the model.

From our research library:

What this signals

Field-scoped trust: agent controls will move toward provenance-aware handling of record fields, because the model's copy path is not the same as the tool-selection path. That means security teams should expect policy engines and parsers to matter as much as prompt filters in agentic AI deployments.

The practical signal for programmes is that prompt injection testing should no longer stop at yes-no jailbreak checks. Teams need task-level validation that separates trusted fields from attacker-controlled context, because the harness is where the model's behaviour becomes operational.


For practitioners

  • Define declared-field access for every agent action Annotate each tool call with the exact record field it is allowed to consume, and hide every other field from the copy path before the model returns its argument.
  • Separate tool selection from argument population Treat tool choice and tool input as different controls in the agent pipeline so a defence for one does not create a false sense of coverage for the other.
  • Reject duplicate keys in agent-readable records Use a strict parser for JSON and similar structured inputs so attacker-controlled duplicates cannot override the declared field through first-write or last-write ambiguity.
  • Limit untrusted text before execution Place a deterministic gate in front of tool execution that prevents untrusted records from influencing the pending action unless they are the declared input field.
  • Test agent controls with paired benign and injected records Validate that the same task succeeds on clean records and fails closed on injected variants, including long-context cases where copied values can surface late in the prompt.

Key takeaways

  • Prompt injection in agentic AI is not one failure mode, but two: tool selection can be redirected by injected instructions, and tool arguments can be corrupted by copied attacker values.
  • Verno Labs found that field-level masking restored the legitimate value in 67–75% of attacks, and combining it with activation steering cut average hijack rates from 84% to under 2%.
  • The governance lesson is that agent security has to move into the harness, where declared fields, parser rules and tool boundaries can be enforced deterministically.

Related NHI Mgmt Group resources: Agentic AI Security Guide · Prompt Injection Guide · Prompt Guardrails vs Policy Engines for AI Agent Actions · Replit AI agent database deletion 2025


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 addresses the attack and risk surface, while NIST AI RMF, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseAgent tool calls can be redirected or misused through injected text in the agent workflow.
ASI02 — Tool MisuseThe core issue is untrusted content causing the agent to invoke the wrong tool or the wrong value.
ASI09 — Human-Agent Trust ExploitationPrompt injection relies on the agent trusting attacker-controlled content as if it were legitimate context.
Recommendation — Restrict agent privileges so injected text cannot steer tool selection or argument values. Map tool-call workflows to ASI02 and separate tool choice from argument handling. Treat attacker-supplied context as untrusted and enforce deterministic checks before action execution.
NIST AI RMFGOVERN — AI Governance and AccountabilityThis is a governance problem about who controls agent actions and under what rules.
Recommendation — Define governance for agent action boundaries, trust sources and override conditions.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is about limiting what data and fields are authorised to affect an action.
Recommendation — Apply access-boundary controls so only authorised fields can influence an agent action.
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeAgent harness controls should limit which fields and tools can influence the pending action.
Recommendation — Minimise the inputs and tools an agent can use for each task under AC-6.

Key terms

  • Prompt Injection (Agentic): An attack on applications built on large language models, where crafted text in a prompt or in content the model reads, such as a document, web page or email, overrides the intended instructions. OWASP lists it as LLM01:2025. It becomes most dangerous when an agent can call tools, because the injected instruction can run actions using the agent's own legitimate credentials.
  • Action Harness: An action harness is the runtime wrapper that lets an AI agent call tools, execute steps, and return results under controlled conditions. It sits between the model and external systems, enforcing permissions, input validation, logging, and often approval gates so the agent cannot act freely without guardrails.
  • Tool Hijacking: Tool hijacking is the abuse of an AI agent's connected tools, APIs, or automation pathways to make it perform unintended actions. The risk arises when an attacker influences the agent's decisions or inputs, causing it to use legitimate access in a harmful way that appears operationally valid.
  • Argument Hijack: Argument hijack is a prompt injection pattern where hostile text changes the parameters passed to a tool or API call. The model may still use the right tool, but it alters fields such as destination, amount, scope, or query terms, so server-side validation and schema checks are needed to block unsafe tool arguments.

Deepen your knowledge

NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. Explore nhimg.org for resources that connect identity governance to the broader security disciplines your programme depends on.
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