Join our Newsletter — 33% off our NHI Course
Home› Glossary› Agentic AI & Autonomous Identity› Indirect Instruction
Agentic AI & Autonomous Identity

Indirect Instruction

← Back to Glossary
By NHI Mgmt Group Updated November 4, 2026 Domain: Agentic AI & Autonomous Identity

A manipulation pattern where an agent is influenced through third-party text, shared workflows, or surrounding content rather than a direct user command. The risk is that the agent accepts external context as operational guidance, causing it to follow unsafe actions without an obvious malicious prompt.

How Indirect Instruction Works

Indirect instruction is a prompt-injection style influence path, but the control surface is broader than a single malicious prompt. The agent can be steered by instructions hidden in documents, tickets, emails, chat threads, retrieved content, or workflow metadata that it treats as trustworthy context. The danger is not only what the text says, but that the surrounding environment can quietly override intended task boundaries.

In practice, this pattern exploits the fact that many agents are built to absorb context and act on it. If the system does not separate user intent, tool output, policy text, and untrusted third-party content, the agent may treat a suggestion as a directive. That can turn ordinary business content into an execution path for unsafe actions, data disclosure, or unauthorized tool use.

Why It Is Dangerous for Agent Behavior

Indirect instruction is dangerous because it creates a trust mismatch: content that looks operationally relevant is not necessarily safe to execute. An agent may follow embedded commands because they appear adjacent to the task, come from a shared workspace, or arrive through retrieval. This can be especially harmful when the agent has access to sensitive tools, internal systems, or external services.

The issue is not limited to obviously malicious text. Ambiguous phrasing, workflow templates, copied instructions, and poisoned knowledge sources can all bias the agent toward the wrong action. Once the agent accepts external context as authority, the failure can look like normal task completion rather than a security incident.

Common Exposure Paths

Indirect instruction often appears through retrieval-augmented systems, shared collaboration tools, document ingestion, browser-based agents, or multi-step workflows that blend trusted and untrusted content. Any place where the agent ingests third-party text and then reasons over it becomes a potential injection surface.

Exposure increases when the system lacks clear provenance controls, content labeling, or instruction hierarchy. If the agent cannot distinguish operational instructions from quoted text, examples, or user-supplied artifacts, it may act on the wrong layer of context. The same problem can arise when downstream tools inherit agent decisions without additional validation.

Detection and Control Boundaries

Defending against indirect instruction requires more than blocking a few bad phrases. The deeper control is to define which sources may issue instructions, which sources may only supply reference material, and which content must never be executed as policy. That boundary needs to hold across retrieval, planning, tool invocation, and output generation.

Security teams should also watch for surprising tool calls, unexpected changes in task scope, and outputs that mirror embedded text too closely. The right question is whether the agent is following the user’s intent or merely relaying an external instruction that happened to be nearby. Controls like content separation, tool allowlisting, and policy enforcement reduce the chance that surrounding text becomes operational authority.

Risk and Threat Considerations

Indirect instruction creates a realistic path for prompt injection, data exfiltration, unsafe actions, and workflow abuse because the attacker does not need a direct command channel. They only need a place where the agent reads and trusts external context.

Failure mechanism: The agent assigns operational weight to untrusted surrounding text, then converts that text into a decision or tool action without preserving source boundaries.

Impact: Sensitive data may be revealed, internal actions may be triggered, or the agent may be redirected into attacker-chosen behaviour while appearing to execute a normal task.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK, OWASP Agentic AI Top 10 and MITRE ATLAS address the attack and risk surface, while NIST AI RMF sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1204 — User ExecutionIndirect instruction relies on a target accepting malicious content as guidance.
Recommendation — Map suspicious content flows to T1204 and inspect where users or agents are induced to act.
OWASP Agentic AI Top 10ASI01 — Agent Goal HijackThe pattern steers an agent away from the intended goal through injected context.
ASI02 — Tool MisuseIndirect instructions can drive unsafe tool invocation or abusive actions.
Recommendation — Harden goal boundaries so external text cannot replace the agent’s intended objective. Restrict tool execution to validated intents and approved action paths.
MITRE ATLASAML.T0033 — Prompt InjectionATLAS covers indirect prompt influence and context poisoning against AI systems.
Recommendation — Use ATLAS techniques to model and test how external context can redirect model behaviour.
NIST AI RMFGV.4 — Map and Measure RisksIndirect instruction is an AI risk that needs inventory, measurement and oversight.
Recommendation — Inventory agent inputs and measure where untrusted context can alter decisions.

Practitioner Guidance

What to watch for: Treat indirect instruction as a provenance problem as much as a prompt problem. If a system ingests third-party content, you need explicit rules for what can inform reasoning, what can issue instructions, and what must be ignored even if it is contextually relevant.

Practitioner takeaway: The safest agent designs make instruction hierarchy explicit, so surrounding content can inform the task without ever becoming the task authority.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 4, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org