By NHI Mgmt Group Editorial TeamBased on Knostic: “Prompt Injection Basics: Types, Examples and Prevention” (September 19, 2025)

TL;DR: Prompt injection can trick AI assistants into bypassing rules, leaking data, or abusing tools through direct, hidden, and retrieval-based instructions, with reported success rates reaching 86% in real-world web and document scenarios according to Knostic. The security issue is not just model wording but the lack of layered control across inputs, retrieval, tool scope, and monitoring.


At a glance

What this is: This is an analysis of prompt injection in enterprise AI assistants, showing that attackers can manipulate assistants through hidden instructions, retrieval paths, and tool calls to bypass rules or leak data.

Why it matters: It matters because IAM, PAM, and AI governance teams now have to control what assistants can read, infer, and do, not just what users can type.

By the numbers:

  • Real-world web and document prompt injection scenarios have shown success rates reaching up to 86%.

Context

Prompt injection is a control problem, not just a prompt-writing problem. When an AI assistant can read untrusted content, retrieve from broad sources, or act through tools, an attacker can turn that access path into an instruction channel. The security question is how to keep model inputs, retrieval, and actions inside a governed boundary.

Enterprise assistants create a new identity and access layer because they can inherit human permissions, act through connected tools, and surface data from multiple sources in one response. That creates a genuine intersection with IAM, PAM, and NHI governance, especially where assistants or agents operate as delegated non-human identities rather than passive chat interfaces.


Key questions

Q: What breaks when prompt injection is not blocked in enterprise AI assistants?

A: The control boundary breaks when an assistant treats untrusted text as instruction, because the model can then leak data, override policy, or invoke tools on attacker terms. That failure is most dangerous when the assistant has broad retrieval access or delegated permissions. The practical test is whether untrusted content can influence decisions without passing through provenance and policy checks.

Q: Why does prompt injection create more risk once assistants can use tools?

A: Tool use turns a language issue into an action issue. If the assistant can send email, query systems, or write files, a successful injection can produce real-world effects instead of a bad answer. Risk rises when tool scope is broad, approval is absent, or the assistant can reach sensitive destinations without per-action limits.

Q: What are the signs that retrieval-based prompt injection is working?

A: Common signs include unexpected source selection, abrupt instruction shifts, citations to irrelevant content, or outputs that mirror hidden text from a file or page. You may also see unusual tool calls or overexposed information appearing in responses. Those symptoms indicate the assistant is trusting content it should have treated as untrusted.

Q: Should organisations prioritise provenance controls or runtime guardrails first?

A: Provenance controls should come first because they address the source of contamination, while runtime guardrails mainly detect or limit symptoms. Guardrails still matter, but they cannot undo poisoned data already embedded in training, retrieval, or tools. The most effective programme combines source validation with execution-time monitoring.


Technical breakdown

How prompt injection bypasses instruction hierarchy

Prompt injection works when attacker-controlled text is treated as higher priority than the intended system or policy instructions. In practice, the injected content can sit in a chat message, email, PDF, page metadata, or retrieved document, and the model may follow it because it appears inside the same context window as legitimate instructions. This is why simple keyword filtering fails. The attack targets the model’s instruction interpretation layer, not just content moderation. In enterprise settings, the risk increases when the assistant has broad context, weak provenance controls, or no separation between user input and external content.

Practical implication: separate trusted system instructions from untrusted retrieved text and normalise content before it reaches the model.

Why retrieval-augmented generation expands the attack surface

Retrieval-augmented generation, or RAG, adds a second path for prompt injection because the model can ingest adversarial instructions hidden inside documents it trusts enough to retrieve. That means a poisoned page, shared drive file, or ticket can influence both the answer and the chain of reasoning behind it. The model is not just summarising content; it is sampling from a context pool that may include hostile material. Once retrieval is part of the workflow, provenance, document integrity, and source allow-lists become security controls, not optional metadata.

Practical implication: restrict retrieval to trusted sources, tag provenance at the chunk level, and reject unsigned or unverified content.

How tool abuse turns an AI assistant into an action plane

Tool and function abuse happens when a prompt coercively triggers API calls, file writes, email actions, or network requests through an assistant that has been granted operational permissions. At that point, the assistant is no longer only generating text. It is acting as a control plane that can execute attacker-chosen actions within its allowed scope. Least privilege matters here because the blast radius is determined by what the assistant can do, not only by what it can say. The security boundary must therefore cover action scope, destination restrictions, and per-tool approval logic.

Practical implication: scope every tool to the minimum required action set and block high-risk egress or write operations by default.


Threat narrative

Attacker objective: The attacker wants to make the assistant leak sensitive information or perform actions outside the organisation’s intended policy boundary.

  1. Entry occurs when malicious instructions are embedded in chat text, email, documents, web pages, or metadata that the assistant consumes as part of normal workflow.
  2. Credential or context abuse follows when the assistant treats the injected content as authoritative and uses its existing access to retrieve sensitive data or invoke connected tools.
  3. Impact is data leakage, policy bypass, unsafe actions, or corrupted outputs that reflect attacker intent rather than user intent.
  • ForcedLeak (Salesforce Agentforce) 2025: A critical Agentforce flaw let attackers steer an AI agent through a Web-to-Lead form to leak CRM data via an expired allowlisted domain.
  • Meta Muse agent hijack 2026: An undocumented Muse setting let local malware hijack Meta's personal AI agent, steal its authentication material and abuse user access.

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 identity governance problem as much as an AI safety problem. Enterprise assistants often inherit human permissions, so the real question is who or what is authorised to act through them. That makes delegated access, tool scope, and data visibility the control plane, not the chat interface itself. Practitioners should treat assistants as governed actors with explicit access boundaries.

Retrieval trust is the new weak link in enterprise AI. The article shows that prompts are often delivered through files, emails, pages, and metadata rather than direct chat alone. That shifts the governance challenge from model alignment to content provenance, source integrity, and read-time filtering. Security teams need to know which content sources can influence a response and under what policy.

Tool-enabled assistants collapse the gap between suggestion and execution. Once an assistant can call APIs, send messages, or write files, prompt injection becomes an action abuse problem. The control failure is excessive operational reach, not just weak wording controls. Organisations should design assistant permissions as if they were privileged service accounts, because in practice that is what they are.

Indirect prompt injection creates a control gap that traditional DLP and sandboxing do not fully close. Adversarial text can hide in legitimate business artefacts, so the security boundary has to move closer to ingestion and retrieval time. That means content-level provenance, approval gates for sensitive tools, and audit trails for every model-invoked action. Teams that still treat the model as the only risk point are protecting the wrong layer.

Need-to-know must apply to AI assistants, not just humans. If an assistant can infer or assemble information across multiple sources, its effective access can exceed the apparent permissions of any one user or repository. The named concept here is the verification trust gap: the assistant appears compliant at the source level but still overexposes data at the synthesis layer. Practitioners should govern the composite result, not only the inputs.

What this signals

Prompt injection exposes a governance gap at the point where enterprise AI turns content into action. The immediate task for security teams is to map which repositories, emails, and web sources can influence assistant outputs, then decide where provenance enforcement belongs. If that mapping is missing, the organisation is governing the model while leaving the input layer exposed.

AI assistants should be treated like privileged non-human actors when they can read, infer, and act across business systems. That framing matters because IAM and PAM teams already know how to manage scope, approval, and audit for high-risk access. The same logic now has to apply to assistant-driven workflows, especially where retrieval and tool use create a larger effective access boundary than any single user account.

Control design has to move from prompt quality to enforced boundaries. The named concept here is the verification trust gap, where a workflow appears safe at the source level but still leaks at synthesis time. NHI and AI governance teams should close that gap with content provenance, least-privilege tool scopes, and monitoring that ties each action back to a prompt and source.


For practitioners

  • Harden model inputs before retrieval Sanitize emails, documents, pages, and metadata before they enter the assistant context. Strip hidden instructions, normalise markup, and block risky file types where the workflow does not need them.
  • Constrain retrieval to trusted sources Use allow-lists for repositories and document types, then require provenance tagging so every answer can be traced back to its source chunks.
  • Scope assistant tools to least privilege Limit API calls, file writes, and outbound messaging to the smallest allowed set, and require explicit approval for high-risk destinations or actions.
  • Log prompt, retrieval, and action lineage Capture the user prompt, retrieved content, tool arguments, and final output so investigators can reconstruct how a malicious instruction influenced the response.
  • Test with prompt injection simulations Run red-team style simulations against chat, RAG, and tool workflows to measure whether hidden instructions still produce oversharing or off-policy actions.

Key takeaways

  • Prompt injection is a workflow governance issue because untrusted content can override instructions, influence retrieval, and drive tool misuse inside enterprise AI assistants.
  • The article cites real-world web and document scenarios with success rates reaching up to 86%, which shows the attack is practical rather than theoretical.
  • Security teams should respond by hardening inputs, constraining retrieval, scoping tools tightly, and logging the full prompt-to-action lineage.

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 MITRE ATT&CK address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseTool abuse is a central failure mode in this article's enterprise assistant attack path.
ASI03 — Identity & Privilege AbuseThe article shows assistants inheriting permissions that can be abused through prompt injection.
ASI07 — Insecure Inter-Agent CommunicationInjected instructions can move through content, retrieval, and tool channels without trust boundaries.
Recommendation — Constrain agent tools to the smallest allowed action set and block high-risk operations by default. Treat assistants as governed actors and enforce least privilege on their delegated access. Validate and filter all inter-agent and content-to-agent messages before they influence execution.
MITRE ATT&CKTA0006;TA0010 — Credential Access; ExfiltrationThe article's threat pattern centers on abusing assistant context to access or leak data.
Recommendation — Map prompt-injection scenarios to credential access and exfiltration paths in your detection logic.
NIST AI RMFMANAGE — AI Risk ManagementThe article is fundamentally about managing AI workflow risk across inputs, retrieval, and actions.
Recommendation — Embed prompt-injection controls into AI risk treatment and ongoing monitoring.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsAssistant permission scope and delegated access are core control issues in the article.
Recommendation — Review assistant entitlements and reduce access to the minimum required for each workflow.

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.
  • Retrieval-augmented Generation: Retrieval-augmented generation is a pattern where an AI model pulls external information before generating output. The security challenge is that access rules can weaken when data is chunked, embedded, cached, or reused, so source permissions may not automatically follow the content into the model's context.
  • Tool Misuse: Tool misuse occurs when an agent uses an allowed integration in a way that exceeds its intended task, scope, or risk tolerance. The problem is often not access alone but the combination of valid credentials, broad permissions, and unbounded action sequencing.
  • Content Provenance: Content provenance is the practice of tracking where input came from and how trusted it should be before an AI system uses it. For agents, it helps separate instructions from retrieved or external data so malicious content is less likely to be treated as operational guidance.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, machine identity security, and secrets management. It helps practitioners translate identity controls into operating models for assistants, agents, and other non-human actors.
NHIMG Editorial Note
Published by the NHIMG editorial team on July 9, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org