Subscribe to the Non-Human & AI Identity Journal

Workflow Hijacking

Workflow hijacking is the manipulation of an AI agent’s decision chain so it performs unintended actions or follows malicious instructions. The risk arises when the security model protects the user interface but not the sequence of delegated actions the agent can take.

Expanded Definition

Workflow hijacking describes a class of agentic AI security failure where an attacker influences the sequence of steps an AI agent is authorised to execute. Unlike prompt injection alone, which targets the model’s immediate output, workflow hijacking targets the delegated action path: tool selection, task ordering, approval logic, and downstream side effects. In practice, the agent may still appear to be following instructions, but it has been steered into executing a malicious chain of actions that the operator never intended.

This risk is especially relevant where an AI agent can read, decide, and act across multiple systems, such as ticketing platforms, email, code repositories, or cloud consoles. The control objective is not just output safety, but preserving the integrity of the workflow itself, including boundaries between human intent, model reasoning, and tool execution. Guidance is still evolving, so organisations should treat workflow hijacking as an agent governance problem rather than a purely content moderation problem. NIST’s control baseline in NIST SP 800-53 Rev 5 Security and Privacy Controls is useful here because it emphasises controlled execution, authorisation, and auditability across system actions.

The most common misapplication is assuming that filtering malicious text is sufficient, which occurs when teams secure the chat interface but leave the agent’s tool permissions, step chaining, and approval gates exposed.

Examples and Use Cases

Implementing workflow protection rigorously often introduces friction, because tighter approval gates can slow automation and reduce the speed advantage that agents are meant to deliver.

  • An AI helpdesk agent is instructed to summarise a support request, but a hidden instruction causes it to reset an account and close the ticket without review.
  • A coding agent receives a benign pull request review task, then is manipulated into editing package manifests and pushing unsafe dependency changes into the repository.
  • A procurement agent that can access email and ERP tools is steered to approve a vendor invoice sequence that diverts payment to an attacker-controlled account.
  • A cloud operations agent is redirected from diagnostics into privilege escalation steps, altering security groups or access policies after reading a crafted message in a ticket.
  • Teams using multi-step orchestration should compare agent permissions against control expectations in NIST SP 800-53 Rev 5 Security and Privacy Controls and limit which tools can be invoked automatically.

Why It Matters for Security Teams

Workflow hijacking matters because it turns an AI agent from a productivity layer into an execution risk. If defenders only evaluate the model’s text output, they can miss the more damaging issue: the agent’s action path has been compromised while the interface still looks normal. That creates a gap in accountability, because the organisation may not know whether a harmful action was user-authorised, model-initiated, or attacker-driven.

For security teams, the key issue is governance over delegated authority. The agent should have explicit tool boundaries, step-level logging, and approval checkpoints for sensitive actions. This is closely aligned with zero trust thinking, where each action must be validated rather than assumed safe because it came from a trusted workflow. It also intersects with NHI security when agents rely on secrets, service accounts, or API keys to move across systems. Strong controls around credential scope and action auditing help limit how far a hijacked workflow can travel.

Organisations typically encounter the operational impact only after an agent has already modified records, issued commands, or exposed data, at which point workflow hijacking becomes operationally unavoidable to address.

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

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 Agentic AI guidance addresses manipulation of agent reasoning and tool-use chains.
NIST CSF 2.0 PR.AA-01 CSF covers identity, access, and authorised action boundaries relevant to agent workflows.
NIST AI RMF AI RMF addresses governance and trustworthy operation of AI systems with delegated actions.
NIST SP 800-53 Rev 5 AC-6 Least privilege control limits what compromised workflows and agents can do.
NIST Zero Trust (SP 800-207) Zero Trust requires each action and request to be explicitly validated, not assumed safe.

Map agent permissions, approvals, and monitoring to the CSF access-control and logging outcomes.