Join our Newsletter — 33% off our NHI Course
Home› Glossary› Agentic AI & Autonomous Identity› Multi-Turn Goal Hijacking
Agentic AI & Autonomous Identity

Multi-Turn Goal Hijacking

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

Multi-turn goal hijacking is an attack on an AI agent or conversational system where a malicious prompt gradually shifts the system away from its original task. It exploits conversation history, tool use and retained context so the system follows attacker intent instead of the human requester’s goal.

How Multi-Turn Goal Hijacking Works

Multi-turn goal hijacking succeeds when the attacker does not need to win in one prompt. Instead, they shape the dialogue over several turns so the agent starts treating attacker-supplied framing, assumptions, or priorities as part of the task itself.

The attack is especially effective against systems that preserve conversation history, reuse state across turns, or treat prior outputs as trusted context. Once the agent accepts a shifted objective, later reasoning can look internally consistent even though it has drifted away from the human’s original intent.

Why Conversation History Becomes an Attack Surface

Conversation history is not just memory, it can become a control surface. If the system does not separate authoritative user intent from untrusted conversational content, earlier attacker messages may be amplified by later summarisation, planning, or tool-using steps.

That matters because goal hijacking often works through cumulative influence rather than obvious instruction reversal. The attacker may seed a misleading premise, then slowly tighten the path toward an unintended outcome while the agent continues to appear cooperative.

AI Agent Goal Hijacking Guide explains the defence patterns that reduce this kind of drift, including how to keep attacker influence out of the agent’s goal state.

Tool Use, Context Retention, and Escalation Paths

Tool use makes multi-turn goal hijacking more dangerous because the agent can convert a shifted objective into real-world action. A compromised goal may lead to unsafe retrieval, bad external requests, inappropriate actions in connected systems, or the exposure of data the human never intended to reveal.

Context retention extends the problem across a session or workflow. If the agent stores flawed assumptions, merges them into planning, or reuses them without revalidation, the attack can persist long after the original malicious prompt has passed.

Agentic AI Security Guide is useful here because it frames goal hijacking alongside memory, tools, orchestration, and trust boundaries, which is where the risk usually becomes operational.

How This Differs From a One-Shot Prompt Attack

Single-prompt attacks try to override the system immediately. Multi-turn goal hijacking is slower and often more plausible, because each message can look harmless in isolation while the overall interaction is being nudged off course.

That makes it harder to detect with simple prompt filters alone. The failure is not only malicious wording, it is the gradual corruption of the agent’s working objective, often reinforced by prior context that the system treats as legitimate.

For related attack families, LLM Jailbreaks Guide helps distinguish immediate jailbreak behaviour from slower multi-turn manipulation.

Risk and Threat Considerations

Multi-turn goal hijacking can turn a trusted assistant into a long-horizon adversary path. The risk is not only incorrect answers, but unintended tool actions, hidden data exposure, and workflow corruption that may continue after the prompt that caused the drift is no longer visible.

Failure mechanism: The attacker incrementally shifts task framing, then relies on retained context, planning loops, or tool execution to make the agent treat the attacker’s objective as the current goal.

Impact: The system may execute unauthorized actions, leak sensitive context, or persistently deviate from the user’s intended outcome even while appearing to behave normally.

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 AI RMF set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI01 — Agent Goal HijackDefines the agent goal hijacking risk this term describes.
Recommendation — Constrain goal updates so attacker-steered conversation cannot replace the agent’s intended objective.
NIST SP 800-53 Rev 5IA-9 — Identification and Authentication (Service and Non-Organizational Users)Covers authentication for non-human actors and tool-integrated systems involved in agentic workflows.
Recommendation — Enforce strong service-to-service authentication for agent tools and runtime dependencies.
NIST AI RMFGV.2 — AI governance policies, processes, and proceduresApplies because preventing goal drift requires governance over agent authority, context handling, and oversight.
Recommendation — Define governance rules for agent memory, tool authority, and human override boundaries.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIRelevant when the hijacked agent can act with excessive non-human access and authority.
Recommendation — Reduce agent permissions so goal manipulation cannot cascade into broad unauthorized access.

Practitioner Guidance

What to watch for: Treat unexplained changes in agent intent, repeated reframing, and late-stage tool calls as warning signs. A healthy system should preserve a clear separation between user intent, transient conversation text, and any durable task state.

Governance implication: Owners should decide where goal authority lives, what the agent is allowed to carry forward between turns, and which parts of the conversation may influence planning or tool use. That decision is central to preventing gradual objective drift.

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 October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org