Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.
Nadia: We're looking at the paper: "Comment and Control".
Title and authors: Nadia: So we're talking about "Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution," which is the first framework they've designed for detecting and exploiting agentic workflow hijacking vulnerabilities in real automation platforms.
Elias: And it looks at how an adversary can craft inputs, like GitHub issue comments, to make an AI agent do things they shouldn't do, such as stealing credentials or running commands without permission.
Priya: That sounds serious because it moves past just a chatbot giving the wrong answer; this is about actually making the system misuse privileged resources.
Nadia: And what’s notable is that no prior academic work has studied this exact risk in agentic workflows before, which is why they are designing JAW to fill that gap.
Elias: They propose JAW using a novel approach called Context-Grounded Evolution; the main idea there is to evolve the agentic workflow inputs under contexts derived from hybrid program analysis for hijacking purposes.
Priya: I’m curious about how they handle the complexity of different programming languages and components in a workflow, like those n8n nodes or shell scripts.
Nadia: JAW handles that by routing every executable unit—those workflow DSL expressions, inline scripts, JavaScript actions—through language-dependent frontends that turn them into graph fragments with guard-labeled and transfer-labeled edges.
Elias: That lets them figure out path feasibility by symbolically executing trigger to agent sink paths across repository boundaries and solving the resulting end-to-end path condition using symbolic model checking under an attacker capability model.
The paper's summary: Nadia: Moving on to what JAW actually does, the main upgrade is that it moves beyond just finding a vulnerable path to actually evolving payloads grounded by those contexts for end-to-end exploitation.
Elias: The framework incorporates three distinct analyses we talked about: path feasibility, prompt taint analysis, and capability analysis. This gives the AI the ability to synthesize exploits grounded in concrete runtime constraints.
Priya: I wonder if this iterative synthesis means it can actually handle complex execution flows better than just a static check?
Nadia: It does because they use those three contexts together: the feasible trigger input, the runtime prompt constraints, and the capability profile recovered from dynamic probing. This ensures the payload reaches the agent, guides how to frame it, and lets them determine which action chain can execute given code-level restrictions.
Elias: They also introduce dynamic capability profiling during that process to figure out what tools an agent can actually run versus what is just declared in its setup. This classifies them into things like network access or file read write actions.
Priya: That tool classification sounds really useful for understanding the scope of the potential damage before an attack even happens, because you know exactly how far they could go.
Nadia: JAW synthesizes a payload that satisfies all those constraints jointly, which is shown in figure three, ensuring it reaches the agent and knows how to frame itself based on what the code actually allows.
Elias: So when you lay out the full summary of "Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution," it highlights that an adversary can manipulate inputs like GitHub issue comments to make the AI agent perform things like credential exfiltration or arbitrary command execution.
The paper's improvements: Nadia: So, to wrap up our discussion on "Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution," JAW identifies four thousand one hundred seventy-four GitHub workflows and eight n8n templates that can be successfully hijacked.
Elias: Those findings span fifteen widely used GitHub Actions and two official n8n nodes, showing that agentic workflow hijacking is a widespread risk in real automation.
Priya: It’s obvious this isn't just theory; these results point to actual security impacts like credential leakage happening across both developer and operational platforms.
Nadia: The defense recommendations they give are pretty straightforward: restrict agent invocation to authorized users or require maintainer approval before external input triggers privileged execution.
Elias: And they also suggest enforcing least privilege by only granting agents the exact credentials and tools needed for their task, plus restricting exfiltration channels through network sandboxing.
Priya: I think the paper does a good job of showing that security needs to cover the entire attack path, from how the agent is triggered all the way to where its output can go.
Nadia: That’s right, and it really highlights how different kinds of attacks—like jailbreaking versus hijacking—are distinct; one might not guarantee an end-to-end exploit.
Elias: Overall, "Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution" is important because it grounds payload synthesis in path feasibility and runtime capabilities.
Priya: It gives us a much clearer picture of the risk involved when we move agentic workflows into our daily engineering practices.
Conclusion: Nadia: We've covered "Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution," which is JAW, their first framework for detecting and exploiting these hijacking vulnerabilities in real automation platforms.
Elias: It’s not just about finding a vulnerability; it’s about being able to actually craft the attack based on deep analysis of the workflow structure itself.
Priya: Can you unpack what they mean by this context-grounded evolution? It sounds very technical, and I need to know if this is practical for someone trying to secure a real deployment.
Nadia: JAW does three main things first: path-sensitive workflow analysis to find the feasible paths an agent can take and the constraints needed to start them.
Elias: Then there’s dynamic prompt taint analysis, which figures out how attacker-controlled data actually gets shaped into a prompt sent to the AI model.
Priya: And finally, they do capability analysis at runtime to see exactly what actions and restrictions are available to that agent while it's running.
Nadia: After those three steps, JAW iteratively synthesizes and refines payloads grounded by all these contexts for end-to-end exploitation. That’s the whole process.
Elias: So, when they lay out the full summary of "Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution," it highlights that an adversary can manipulate inputs like GitHub issue comments to make the AI agent perform things like credential exfiltration or arbitrary command execution.
Priya: That sounds serious because it moves beyond just making a chatbot say something wrong; this is about causing actual system misuse.
Nadia: Right, and what’s interesting is that no prior academic work has studied this exact risk in agentic workflows before, which sets the stage for their new framework.
Elias: They propose JAW to fill that gap by using hybrid program analysis to derive contexts for hijacking purposes; they build on the idea of evolving inputs under those derived contexts.
Priya: I'm interested in how they handle the complexity of different programming languages and components in a workflow, like those n8n nodes or shell scripts.
Elias: That lets them determine path feasibility by symbolically executing trigger to agent sink paths across repository boundaries and solving the resulting end-to-end path condition using symbolic model checking under an attacker capability model.
Priya: They also introduce dynamic capability profiling during that process to determine what tools an agent can actually run versus what is just declared in its setup.
Elias: So we've seen that JAW identifies four thousand one hundred seventy-four GitHub workflows and eight n8n templates that can be hijacked, spanning fifteen widely used GitHub Actions and two official n8n nodes.
Priya: It’s obvious this isn't just theoretical; these results point to concrete security impacts like credential leakage happening across both developer and operational platforms.
Nadia: And that’s where we wrap up this session on JAW, which really sets the bar for how we approach these complex AI systems moving forward.
Johns Hopkins University Applied Physics Lab · Wyze Labs
cs.CR, cs.AI, cs.SE
Submitted: 2026-05-11
Updated: 2026-11-19
Journal ref: CCS '26: Proceedings of the 2026 ACM SIGSAC Conference on Computer and Communications Security Pages 5329 - 5343
Code: https://github.com/google-gemini/gemini-cli
License: http://creativecommons.org/licenses/by-nc-nd/4.0/
Importance score: 92/100
The gist: Automation platforms such as GitHub Actions and n8n are increasingly adopting so-called agentic workflows…
Key concepts
- Context-Grounded Evolution
- A novel method where an AI system generates attack payloads not just as text, but as inputs specifically tailored to navigate the exact control flow and data transformations within a complex workflow. It evolves the input based on constraints derived from static analysis of the workflow structure.
- Path Feasibility Analysis
- This analysis examines every possible path an agent can take within a workflow. It builds a graph of steps and symbolically executes these paths to determine which inputs can successfully trigger specific agent actions, identifying potential vulnerabilities.
- Dynamic Prompt Provenance Analysis
- This technique tracks how an initial input is modified as it moves through the workflow. It captures the constraints applied to prompts at each step, allowing the framework to understand exactly how an attacker's input is shaped before reaching the LLM agent.
- Capability Analysis
- This analysis identifies precisely what actions and restrictions an agent has available during runtime. It determines if an agent can actually perform certain tasks, such as accessing files or making external network requests, to guide the creation of effective exploits.
Terminology
Summary
Automation platforms such as GitHub Actions and n8n are increasingly adopting so-called agentic workflows, which integrate Large Language Model (LLM) agents for tasks such as code review and data synchronization. p. 0 edu
Yinzhi Cao
Johns Hopkins University
Maryland, USA
yinzhi. edu
Abstract
Automation platforms such as GitHub Actions and n8n are increasingly adopting so-called agentic workflows, which integrate Large
Language Model (LLM) agents for tasks such as code review and
data synchronization. edu
Abstract
Automation platforms such as GitHub Actions and n8n are increasingly adopting so-called agentic workflows, which integrate Large
Language Model (LLM) agents for tasks such as code review and
data synchronization. While bringing convenience for developers,
this integration exposes a new risk: An adversary may control and
craft certain inputs, such as GitHub issue comments, to manipulate
the LLM agent for unwanted actions, such as credential exfiltration and arbitrary command execution. While bringing convenience for developers,
this integration exposes a new risk: An adversary may control and
craft certain inputs, such as GitHub issue comments, to manipulate
the LLM agent for unwanted actions, such as credential exfiltration and arbitrary command execution. To our knowledge, no prior
academic work has studied such a risk in agentic workflows.Where the paper says it
Where the paper says it
Where the paper says it
Framework Design
In this paper, we design the first detection and exploitation framework, called JAW, to hijack agentic workflows hosted on automation platforms via a novel approach called Context-Grounded Evolution. Our key idea is to evolve agentic workflow inputs under the contexts derived from hybrid program analysis for hijacking purposes. p. 0 In this paper, we design the first detection and exploitation framework, called JAW, to hijack agentic workflows hosted on automation
platforms via a novel approach called Context-Grounded Evolution. Our key idea is to evolve agentic workflow inputs under the contexts derived from hybrid program analysis for hijacking purposes. Our key idea is to evolve agentic workflow inputs under the contexts derived from hybrid program analysis for hijacking purposes. Specifically, JAW generates agentic workflow contexts through
three analyses: (i) static path-feasibility analysis to identify feasible
agent-invocation paths and the input constraints required to trigger them, (ii) dynamic prompt-provenance analysis to determine
how that input is transformed and embedded into the LLM context,
and (iii) capability analysis to identify the actions and restrictions
available to the agent at runtime. Specifically, JAW generates agentic workflow contexts through
three analyses: (i) static path-feasibility analysis to identify feasible
agent-invocation paths and the input constraints required to trigger them, (ii) dynamic prompt-provenance analysis to determine
how that input is transformed and embedded into the LLM context,
and (iii) capability analysis to identify the actions and restrictions
available to the agent at runtime. Then, JAW iteratively synthesizes
and refines—i. Then, JAW iteratively synthesizes
and refines—i. , evolves—payloads grounded by such contexts for
end-to-end exploitation.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Path Feasibility Analysis
JAW first performs path-sensitive workflow analysis to extract the programs that are used by an agentic workflow, constructs a guarded workflow graph (GWG) that connects workflow steps, and determines whether the workflow has a vulnerable path. JAW supports polyglot parsing by routing each executable unit—workflow DSL expressions, inline shell and Python scripts, JavaScript actions, and n8n node parameters—through language-specific frontends that lower them into normalized GWG fragments with guard-labeled and transfer-labeled edges. p. 2 JAW addresses
this challenge with the Guarded Workflow Graph (GWG), a unified control-flow representation for workflow platforms such as
GitHub Actions and n8n. First, JAW supports polyglot parsing by
routing each executable unit—workflow DSL expressions, inline
shell and Python scripts, JavaScript actions, and n8n node parameters—through language-specific frontends that lower them into normalized GWG fragments with guard-labeled and transfer-labeled
edges. First, JAW supports polyglot parsing by
routing each executable unit—workflow DSL expressions, inline
shell and Python scripts, JavaScript actions, and n8n node parameters—through language-specific frontends that lower them into normalized GWG fragments with guard-labeled and transfer-labeled
edges. Second, JAW determines path feasibility by symbolically executing each trigger-to-agent-sink path across repository boundaries,
accumulating edge guards and applying symbolic state transfers at
each step, and solving the resulting end-to-end path condition via
SMT under the attacker capability model.Where the paper says it
Where the paper says it
Dynamic Prompt Provenance Analysis
JAW applies dynamic taint analysis during the concrete workflow execution to capture such fine-grained constraints. JAW instruments SDK-level model invocation APIs and records the modelvisible request before it is sent to the provider. p. 7 The final taint sink is the model request. JAW instruments SDK-level model invocation APIs and records the modelvisible request before it is sent to the provider. 2 Prompt Constraint Extraction. Given the provenance collected at the model-request sink, JAW extracts the prompt constraints associated with each tainted span. Given the provenance collected at the model-request sink, JAW extracts the prompt constraints associated with each tainted span. From the transformation
history, JAW extracts prompt-shaping constraints by tracing the
sink span back to its source field and summarizing the recorded
operations along the path.Where the paper says it
Where the paper says it
Where the paper says it
Context-Grounded Jailbreak Evolution
JAW synthesizes a payload that satisfies these constraints jointly, as shown in Figure 3. JAW uses three contexts jointly: the feasible trigger input recovered by path-sensitive workflow analysis, the runtime prompt constraints recovered by dynamic prompt provenance analysis, and the capability profile recovered by dynamic capability probing. p. 3 This produces a capability
profile that captures the action space available for hijacking. JAW then uses three contexts jointly: the feasible trigger input
recovered by path-sensitive workflow analysis, the runtime prompt
constraints recovered by dynamic prompt provenance analysis,
and the capability profile recovered by dynamic capability probing. JAW then uses three contexts jointly: the feasible trigger input
recovered by path-sensitive workflow analysis, the runtime prompt
constraints recovered by dynamic prompt provenance analysis,
and the capability profile recovered by dynamic capability probing. These ensure the payload reaches the agent, guide how how the
payload should be framed, and the allow us to determine which
action chain can execute under code-level restrictions.Where the paper says it
Where the paper says it
Evaluation Results
JAW identifies 4,174 GitHub workflows and eight n8n templates that can be successfully hijacked, causing potentially severe impacts such as credential leakage. These findings span 15 widely-used GitHub Actions and two official n8n nodes. p. 0 Our evaluation of JAW on GitHub workflows and n8n templates
showed that 4,174 GitHub workflows and eight n8n templates can
be successfully hijacked, for example, to leak user credentials. Our
findings span 15 widely-used GitHub Actions, including official
GitHub Actions for Claude Code, Gemini CLI, Qwen CLI, and Cursor CLI, and two official n8n nodes. For n8n, JAW further detects
workflows that lead to SQL injection and shell command execution
through chat messages. These results show that AWH is widespread
in real-world agentic workflows, can be triggered by external attackers, and can lead to concrete security impacts across both developer
and operational automation platforms.Where the paper says it
Where the paper says it
Defense Recommendations
A robust defense should enforce controls across the full attack path. First, workflows should restrict agent invocation to authorized users or require maintainer approval before external input can trigger privileged agent execution. p. 3 To perform these tasks, the workflow may grant an LLM agent
legitimate access to protected resources, such as platform tokens,
API keys, connected services, and databases. These resources belong to the maintainer, the maintainer’s organization, or connected
services, and are not directly accessible to external users. Unlike standalone
LLM applications, these workflows run within multi-tenant automation platforms and inherit platform-managed triggers, identities, permissions, credentials, and integrations. During execution,
agents receive workflow context such as event data, maintainer
instructions, repository or service state, and intermediate outputs,
and may be granted access to tools including shell commands,
APIs, databases, or messaging actions. The attacker’s goal is to hijack the embedded
agent to access or modify protected workflow resources on the
attacker’s behalf. We consider three representative attack goals: (i)
credential exfiltration, where the agent leaks platform tokens, API
keys, or other secrets; (ii) unauthorized data access or modification,
where the agent reads or writes resources unavailable to external
users; and (iii) unauthorized service requests, where the agent sends
attacker-directed requests to connected services.Where the paper says it
Where the paper says it
Where the paper says it
Agent Jailbreaking vs. p. 0 On
the one hand, existing workflow analysis approaches detect classic
injection vulnerabilities via static, path-insensitive analysis, thus
failing to reason about feasible agent-invocation paths or runtime
agent behavior. On the other hand, prior jailbreaking research assumes that the inputs to an LLM are fully controllable, whereas the
agentic workflow settings only allow an adversary to control part of
the prompt based on the workflow template, i.Where the paper says it
Agent jailbreaking usually assumes direct or near-direct control over the model input and aims to make the model violate its instructions or safety policies. In contrast, AWH starts from system-level inputs, such as issue comments or webhook payloads, and aims to make the embedded agent misuse privileged workflow resources at runtime, leading to concrete malicious consequences. Therefore, jailbreak success can contribute to agent hijacking, but it does not imply end-to-end exploitability. p. 8 Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution , ,
executor, and then executes the full workflow to test whether the
model produces the chain under the recovered prompt and modellevel defenses. By separating code-level feasibility from end-to-end
jailbreak success, JAW can identify where an attempt fails and
evolve the next payload efficiently.Where the paper says it
Related Work
Prior work related to agent hijacking falls into two lines. The first line studies indirect prompt injection and tool-use attacks in LLM-integrated applications. The second line studies LLM jailbreaking, which elicits prohibited model behavior through manual, heuristics-based, or learningbased prompts. p. 0 On
the one hand, existing workflow analysis approaches detect classic
injection vulnerabilities via static, path-insensitive analysis, thus
failing to reason about feasible agent-invocation paths or runtime
agent behavior. On the other hand, prior jailbreaking research assumes that the inputs to an LLM are fully controllable, whereas the
agentic workflow settings only allow an adversary to control part of
the prompt based on the workflow template, i. Our key idea is to evolve agentic workflow inputs under the contexts derived from hybrid program analysis for hijacking purposes. Specifically, JAW generates agentic workflow contexts through
three analyses: (i) static path-feasibility analysis to identify feasible
agent-invocation paths and the input constraints required to trigger them, (ii) dynamic prompt-provenance analysis to determine
how that input is transformed and embedded into the LLM context,
and (iii) capability analysis to identify the actions and restrictions
available to the agent at runtime.Where the paper says it
Where the paper says it
Conclusion
We present JAW, the first framework for detecting and exploiting agentic workflow hijacking vulnerabilities in real-world automation platforms. Our evaluation on GitHub Actions workflows and n8n templates finds 4,174 hijackable GitHub workflows and eight hijackable n8n templates, spanning 15 widely used GitHub Actions and two official n8n nodes. p. 1 • We evaluate JAW on real-world GitHub workflows and n8n templates. JAW identifies 4,174 hijackable GitHub workflows and
eight hijackable n8n templates, spanning 15 widely-used GitHub
Actions and two official n8n nodes. On the other hand, prior jailbreaking research assumes that the inputs to an LLM are fully controllable, whereas the
agentic workflow settings only allow an adversary to control part of
the prompt based on the workflow template, i. , the exploitability
is constrained by the agent’s runtime capabilities and restrictions.Where the paper says it
Where the paper says it
References
[1] Chat gpt py
Repo: claude-code-security-review
Path: /claudecode/github_action_audit. py
def main():
pr_url = f"https://api. 11229v1 [cs. CR] 11 May 2026 Workflow components read these fields through different
interfaces. For example, in GitHub Actions, event fields can be
accessed by the workflow DSL through github. Workflow components read these fields through different
interfaces. For example, in GitHub Actions, event fields can be
accessed by the workflow DSL through github. Workflow components read these fields through different
interfaces. For example, in GitHub Actions, event fields can be
accessed by the workflow DSL through github.dan
(and other jailbreaks
). https://gist. p. 2Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
[3] Chaiwut, N., and Nikiforakis, N. Time for actions: A longitudinal study of the GitHub actions marketplace. p. 1 Contributions. In summary, we make the following contributions:
• We present the first systematic study of agentic workflow hijacking, where attacker-controlled workflow inputs manipulate
embedded LLM agents into unwanted actions, such as credential
exfiltration and arbitrary command execution. yaml
│ │ ├── c. cve-2025-24014. yaml
│ │ ├── c. cve-2025-24014.Where the paper says it
Where the paper says it
Where the paper says it
[4] Chao, P., Robey, A., Dobriban, E., Hassani, H., Pappas, G., and Wong, E. Jailbreaking black box large language models in twenty queries. p. 3 whether the model follows a
disallowed instruction [4, 27]. Attacks for blackbox systems, such as
AutoDAN [21, 26, 40] are often focused on discovering and reusing
jailbreak strategies that induce model compliance across black-box
language model settings. yaml
│ │ ├── c. cve-2025-24014.Where the paper says it
Where the paper says it
[5] Clause, J., Li, W., and Orso, A. Dytan: A generic dynamic taint analysis framework. p. 1 During this
dynamic analysis, JAW also performs dynamic capability profiling
to recover the agent’s executable tools and potential restrictions. Lastly, JAW optimizes and evolves a jailbreak prompt using the extracted agentic framework context derived from the previous two
steps. For other goals, such as unauthorized modification, SSRF, and RCE, O𝑔 similarly checks the concrete side effect
of the execution, such as changed repository or service state, inbound requests to an attacker-controlled server, database changes,
or command outputs produced by the target environment. 4 Implementation
JAW is implemented as a multi-step analysis and testing pipeline
for GitHub Actions and n8n, with 8,524 lines of Python, 2,429 lines
of JavaScript, and 297 lines of CodeQL [10], excluding tests and
third-party libraries.Where the paper says it
Where the paper says it
[6] Costa, M., Köpf, B., Kolluri, A., Paverd, A., Russinovich, M., Salem, A., Tople, S., Wutschitz, L., and Zanella-Béguelin, S. Securing ai agents with information-flow control. p. 1 During execution,
agents receive workflow context such as event data, maintainer
instructions, repository or service state, and intermediate outputs,
and may be granted access to tools including shell commands,
APIs, databases, or messaging actions. This creates a security risk:
attacker-controlled inputs can flow into the agent’s prompt while
the agent retains access to platform-level capabilities that the attacker cannot directly access.Where the paper says it
[7] Doshi, A., Hong, Y., Xu, C., Kang, E., Kapravelos, A., and Kästner, C. Towards verifiably safe tool use for LLM agents. p. 5 First,
platform-level signatures include first-class agent nodes, such as
n8n AI Agent and tool-agent nodes. Second, registry-level signatures include curated GitHub Actions known to invoke LLM or
coding agents.Where the paper says it
[8] Fernandes, E., Rahmati, A., Jung, J., and Prakash, A. Decentralized action integrity for trigger-action IoT platforms. p. 1 Similarly, n8n workflows connect trigger, processing, and action nodes across services, where
agents may interact with APIs, databases, or external systems using stored credentials. In both platforms, user-controlled data may
traverse complex execution paths before reaching an agent with
elevated privileges, enabling potential unauthorized access, data
exfiltration, or unintended modification of system state.Where the paper says it
[9] Gemini, G. Gemini CLI. p. 0 Our evaluation of JAW on GitHub workflows and n8n templates
showed that 4,174 GitHub workflows and eight n8n templates can
be successfully hijacked, for example, to leak user credentials. Our
findings span 15 widely-used GitHub Actions, including official
GitHub Actions for Claude Code, Gemini CLI, Qwen CLI, and Cursor CLI, and two official n8n nodes. py
Repo: claude-code-security-review
Path: /claudecode/github_action_audit. py
def main():
pr_url = f"https://api. py
Repo: claude-code-security-review
Path: /claudecode/github_action_audit. py
def main():
pr_url = f"https://api. py
Repo: claude-code-security-review
Path: /claudecode/github_action_audit. py
def main():
pr_url = f"https://api. github/workflows/gemini-invoke. yml
Repo: google-github-actions/run-gemini-cli
Path: action. github/workflows/gemini-invoke. yml
Repo: google-github-actions/run-gemini-cli
Path: action.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
[10] GitHub. p. 0 edu
Yinzhi Cao
Johns Hopkins University
Maryland, USA
yinzhi. edu
Abstract
Automation platforms such as GitHub Actions and n8n are increasingly adopting so-called agentic workflows, which integrate Large
Language Model (LLM) agents for tasks such as code review and
data synchronization. For other goals, such as unauthorized modification, SSRF, and RCE, O𝑔 similarly checks the concrete side effect
of the execution, such as changed repository or service state, inbound requests to an attacker-controlled server, database changes,
or command outputs produced by the target environment. 4 Implementation
JAW is implemented as a multi-step analysis and testing pipeline
for GitHub Actions and n8n, with 8,524 lines of Python, 2,429 lines
of JavaScript, and 297 lines of CodeQL [10], excluding tests and
third-party libraries. Workflow components read these fields through different
interfaces. For example, in GitHub Actions, event fields can be
accessed by the workflow DSL through github. Workflow components read these fields through different
interfaces. For example, in GitHub Actions, event fields can be
accessed by the workflow DSL through github.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
[11] Google. p. 0 We responsibly disclosed all
∗Both authors contributed equally to this research. findings to the affected vendors and received many acknowledgements, fixes, and bug bounties, notably from GitHub, Google, and
Anthropic. We responsibly disclosed all
∗Both authors contributed equally to this research. findings to the affected vendors and received many acknowledgements, fixes, and bug bounties, notably from GitHub, Google, and
Anthropic. In both platforms, user-controlled data may
traverse complex execution paths before reaching an agent with
elevated privileges, enabling potential unauthorized access, data
exfiltration, or unintended modification of system state. 2 A Motivating Example
Figure 1 presents a real-world zero-day agent hijacking vulnerability discovered by JAW in run-gemini-cli [11], an official GitHub
Action for invoking Gemini CLI [9] in repository workflows. In both platforms, user-controlled data may
traverse complex execution paths before reaching an agent with
elevated privileges, enabling potential unauthorized access, data
exfiltration, or unintended modification of system state. 2 A Motivating Example
Figure 1 presents a real-world zero-day agent hijacking vulnerability discovered by JAW in run-gemini-cli [11], an official GitHub
Action for invoking Gemini CLI [9] in repository workflows. github/workflows/gemini-invoke. yml
Repo: google-github-actions/run-gemini-cli
Path: action. Workflow components read these fields through different
interfaces. For example, in GitHub Actions, event fields can be
accessed by the workflow DSL through github.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
[18] Kinsman, T., Wessel, M. S., Gerosa, M. A., and Treude, C. How do software developers use github actions to automate their workflows? p. 0 edu
Abstract
Automation platforms such as GitHub Actions and n8n are increasingly adopting so-called agentic workflows, which integrate Large
Language Model (LLM) agents for tasks such as code review and
data synchronization. While bringing convenience for developers,
this integration exposes a new risk: An adversary may control and
craft certain inputs, such as GitHub issue comments, to manipulate
the LLM agent for unwanted actions, such as credential exfiltration and arbitrary command execution. For example, GitHub workflows may define a configurable, automated process to build, test, package, release, or deploy projects. More recently, given the rise of Large Language Models (LLMs),
workflows often integrate LLM agents into the automation process
to facilitate intelligent tasks like code running, software debugging,
and Internet querying.Where the paper says it
Where the paper says it
[19] Klein, D., Barber, T., Bensalim, S., Stock, B., and Johns, M. p. 0 Comment and Control: Hijacking Agentic Workflows via
Context-Grounded Evolution
Neil Fendley∗
Johns Hopkins University Applied
Physics Lab
Maryland, USA
Neil. Fendley@jhuapl. 5 Evaluation
RQ1 Zero-day Vulnerabilities: How effective is JAW in detecting agentic workflow hijacking vulnerabilities in the wild? RQ2 Ablation Study: How do the individual components of JAW
contribute to its overall performance?Where the paper says it
Where the paper says it
[20] Koishybayev, I., Nahapetyan, A., Zachariah, R., Muralee, S., Reaves, B., Kapravelos, A., and Machiry, A. Characterizing the security of github CI workflows. p. 0 findings to the affected vendors and received many acknowledgements, fixes, and bug bounties, notably from GitHub, Google, and
Anthropic. Keywords
Agentic Workflows, Jailbreak, Prompt Injection, CI/CD Security
1 Introduction
Traditionally, automation platforms (such as GitHub Actions and
n8n) adopt “workflows”, i. findings to the affected vendors and received many acknowledgements, fixes, and bug bounties, notably from GitHub, Google, and
Anthropic. Keywords
Agentic Workflows, Jailbreak, Prompt Injection, CI/CD Security
1 Introduction
Traditionally, automation platforms (such as GitHub Actions and
n8n) adopt “workflows”, i.Where the paper says it
Where the paper says it
[40] Zhu, S., Zhang, R., An, B., Wu, G., Barrow, J., Wang, Z., Huang, F., Nenkova, A., and Sun, T. Autodan: Interpretable gradient-based adversarial attacks on large language models. p. 3 whether the model follows a
disallowed instruction [4, 27]. Attacks for blackbox systems, such as
AutoDAN [21, 26, 40] are often focused on discovering and reusing
jailbreak strategies that induce model compliance across black-box
language model settings. whether the model follows a
disallowed instruction [4, 27]. Attacks for blackbox systems, such as
AutoDAN [21, 26, 40] are often focused on discovering and reusing
jailbreak strategies that induce model compliance across black-box
language model settings.Where the paper says it
Where the paper says it
[25] Muralee, S., Koishybayev, I., Nahapetyan, A., Tystahl, G., Reaves, B., Bianchi, A., Enck, W., Kapravelos, A., and Machiry, A. ARGUS: A framework for staged static taint analysis of GitHub workflows and actions. p. 0 On one side, ARGUS [25] applied static analysis to find vulnerabilities of traditional
workflows for CI/CD pipelines. However, this approach targets
classic taint-style vulnerabilities and cannot track how potentially
malicious data is fed into an LLM within an agentic workflow. findings to the affected vendors and received many acknowledgements, fixes, and bug bounties, notably from GitHub, Google, and
Anthropic. Keywords
Agentic Workflows, Jailbreak, Prompt Injection, CI/CD Security
1 Introduction
Traditionally, automation platforms (such as GitHub Actions and
n8n) adopt “workflows”, i.Where the paper says it
Where the paper says it
[41] Zou, A., Wang, Z., Kolter, J. Z., and Fredrikson, M. Universal and transferable adversarial attacks on aligned language models. p. 3 whether the model follows a
disallowed instruction [4, 27]. Attacks for blackbox systems, such as
AutoDAN [21, 26, 40] are often focused on discovering and reusing
jailbreak strategies that induce model compliance across black-box
language model settings. whether the model follows a
disallowed instruction [4, 27]. Attacks for blackbox systems, such as
AutoDAN [21, 26, 40] are often focused on discovering and reusing
jailbreak strategies that induce model compliance across black-box
language model settings. whether the model follows a
disallowed instruction [4, 27]. Attacks for blackbox systems, such as
AutoDAN [21, 26, 40] are often focused on discovering and reusing
jailbreak strategies that induce model compliance across black-box
language model settings.Where the paper says it
Where the paper says it
Where the paper says it
[26] Nasr, M., Carlini, N., Sitawarin, C., Schulhoff, S. V., Hayes, J., Ilie, M., Pluto, J., Song, S., Chaudhari, H., Shumailov, I., Thakurta, A., Xiao, K. Y. Terzis-A. and Tramèr-F. The attacker moves second: Stronger adaptive attacks bypass defenses against llm jailbreaks and prompt injections. p. 3 In agentic workflows, a
successful jailbreak must bypass three interacting defense layers:
prompt-level framing that separates trusted instructions from untrusted user content, model-level guardrails that cause the model
to refuse harmful or disallowed requests, and code-level restrictions that limit which tools, commands, and actions the agent can
actually execute. Prior jailbreak studies mainly optimize adversarial prompts against
prompt- and model-level defenses in isolated LLM settings, where
the attacker can directly control the model input and success is
measured by model compliance, i.Where the paper says it
[39] Zhu, K., Yang, X., Wang, J., Guo, W., and Wang, W. Y. Melon: Provable defense against indirect prompt injection attacks in ai agent, 2025. p. 3 In agentic workflows, a
successful jailbreak must bypass three interacting defense layers:
prompt-level framing that separates trusted instructions from untrusted user content, model-level guardrails that cause the model
to refuse harmful or disallowed requests, and code-level restrictions that limit which tools, commands, and actions the agent can
actually execute. Prior jailbreak studies mainly optimize adversarial prompts against
prompt- and model-level defenses in isolated LLM settings, where
the attacker can directly control the model input and success is
measured by model compliance, i.Where the paper says it
[41] Zou, A., Wang, Z., Kolter, J. Z., and Fredrikson, M. Universal and transferable adversarial attacks on aligned language models.
[27] Perez, F., and Ribeiro, I. Ignore previous prompt: Attack techniques for language models. p. 0 For example, GitHub workflows may define a configurable, automated process to build, test, package, release, or deploy projects. More recently, given the rise of Large Language Models (LLMs),
workflows often integrate LLM agents into the automation process
to facilitate intelligent tasks like code running, software debugging,
and Internet querying. However, the LLM inputs within an agentic workflow are formed with
complicated procedures that often involve multiple workflows and
programs in different languages [18]. arXiv:2605.Where the paper says it
Where the paper says it
[38] Zhang, D., Li, Z., Luo, X., Liu, X., Li, P., and Xu, W. Mcp security bench (msb): Benchmarking attacks against model context protocol in llm agents. p. 3 The
template prepends a Security Protocol warning, and Gemini CLI later
combines the resulting prompt with system-level safety instructions
before sending the final request to the model. The challenge is to
accurately collect these constraints from a concrete end-to-end
workflow execution, so that jailbreak synthesis is grounded in the
prompt context actually observed by the model. The
template prepends a Security Protocol warning, and Gemini CLI later
combines the resulting prompt with system-level safety instructions
before sending the final request to the model. The challenge is to
accurately collect these constraints from a concrete end-to-end
workflow execution, so that jailbreak synthesis is grounded in the
prompt context actually observed by the model. However, the LLM inputs within an agentic workflow are formed with
complicated procedures that often involve multiple workflows and
programs in different languages [18]. arXiv:2605. However, the LLM inputs within an agentic workflow are formed with
complicated procedures that often involve multiple workflows and
programs in different languages [18]. arXiv:2605.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
[36] Yang, Y., Wu, D., and Chen, Y. Mcpsecbench: A systematic security benchmark and playground for testing model context protocols. p. 3 The
template prepends a Security Protocol warning, and Gemini CLI later
combines the resulting prompt with system-level safety instructions
before sending the final request to the model. The challenge is to
accurately collect these constraints from a concrete end-to-end
workflow execution, so that jailbreak synthesis is grounded in the
prompt context actually observed by the model. The
template prepends a Security Protocol warning, and Gemini CLI later
combines the resulting prompt with system-level safety instructions
before sending the final request to the model. The challenge is to
accurately collect these constraints from a concrete end-to-end
workflow execution, so that jailbreak synthesis is grounded in the
prompt context actually observed by the model. However, the LLM inputs within an agentic workflow are formed with
complicated procedures that often involve multiple workflows and
programs in different languages [18]. arXiv:2605. However, the LLM inputs within an agentic workflow are formed with
complicated procedures that often involve multiple workflows and
programs in different languages [18]. arXiv:2605. yaml
│ │ ├── c. cve-2025-24014.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
[41] Zou, A., Wang, Z., Kolter, J. Z., and Fredrikson, M. Universal and transferable adversarial attacks on aligned language models.
[37] Yu, Z., Liu, X., Liang, S., Cameron, Z., Xiao, C., and Zhang, N. Don’t listen to me: Understanding and exploring jailbreak prompts of large language models. p. 9 The method
maintains a population of candidate prompts, which are iteratively
generated, assessed, and evolved. By contrast, our search-based
baseline leverages a large language model as a learned mutation
operator within an evolutionary search paradigm, iteratively improving jailbreak prompts. However, the LLM inputs within an agentic workflow are formed with
complicated procedures that often involve multiple workflows and
programs in different languages [18]. arXiv:2605.Where the paper says it
Where the paper says it
[40] Zhu, S., Zhang, R., An, B., Wu, G., Barrow, J., Wang, Z., Huang, F., Nenkova, A., and Sun, T. Autodan: Interpretable gradient-based adversarial attacks on large language models.
[24] Microsoft Research. p. 0 On
the one hand, existing workflow analysis approaches detect classic
injection vulnerabilities via static, path-insensitive analysis, thus
failing to reason about feasible agent-invocation paths or runtime
agent behavior. On the other hand, prior jailbreaking research assumes that the inputs to an LLM are fully controllable, whereas the
agentic workflow settings only allow an adversary to control part of
the prompt based on the workflow template, i. Second, JAW determines path feasibility by symbolically executing each trigger-to-agent-sink path across repository boundaries,
accumulating edge guards and applying symbolic state transfers at
each step, and solving the resulting end-to-end path condition via
SMT under the attacker capability model. For each feasible path,
JAW synthesizes a concrete event-under-test from the solver model,
with canary markers in controllable fields that allow the following dynamic taint analysis to trace which fields reach the model
request. py
Repo: claude-code-security-review
Path: /claudecode/github_action_audit. py
def main():
pr_url = f"https://api. On
the one hand, existing workflow analysis approaches detect classic
injection vulnerabilities via static, path-insensitive analysis, thus
failing to reason about feasible agent-invocation paths or runtime
agent behavior. On the other hand, prior jailbreaking research assumes that the inputs to an LLM are fully controllable, whereas the
agentic workflow settings only allow an adversary to control part of
the prompt based on the workflow template, i.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
[11] Google. Run Gemini CLI GitHub Action. https://github.com/google-gemini/gemini-cli, 2026. GitHub repository, accessed 2026-01-26.
[38] Zhang, D., Li, Z., Luo, X., Liu, X., Li, P., and Xu, W. Mcp security bench (msb): Benchmarking attacks against model context protocol in llm agents. ArXiv abs/2510.15994 (2025)
[36] Yang, Y., Wu, D., and Chen, Y. Mcpsecbench: A systematic security benchmark and playground for testing model context protocols. ArXiv abs/2508.13220 (2025)
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Context Grounded Evolution allows for
evolving agentic workflow inputs under contexts derived from hybrid program analysis for hijacking purposes.
This means an AI system can generate payloads that are not just adversarial prompts but are specifically crafted to navigate the precise control-flow paths and data transformations within a complex, multi-language workflow environment. -
The framework incorporates three distinct analyses:
static path-feasibility analysis to identify feasible agent-invocation paths,
dynamic prompt-provenance analysis to determine how that input is transformed and embedded into the LLM context,
andcapability analysis to identify the actions and restrictions available to the agent at runtime.
This capability allows AI systems to synthesize exploits grounded in concrete runtime constraints rather than assuming full input controllability. -
The system can perform
Plan-Verify-Execute Loop
synthesis, where it generates a candidate payload with an expected tool-call chain, verifies its feasibility through code-level defenses, and executes the full workflow to check against a goal oracle. This enables the AI to iteratively refine attacks based on actual execution feedback rather than just predicted model compliance. -
The system can conduct
Dynamic Capability Probing
to determine what tools an agent can actually execute versus what is merely declared, classifying them intonetwork access, file read/write, subprocess execution, and external-service access.
This provides a capability-level view of the tool set for more informed exploitation strategies. -
The system can use
Dynamic Taint Tracking
across heterogeneous runtimes by wrapping tainted values with a canary marker when they leave a component and restoring metadata upon reading them later. This ensures that taint information is preserved and correctly tracked across workflow handoffs, even when moving between different languages or execution environments.
Abstract
Automation platforms such as GitHub Actions and n8n are increasingly adopting so-called agentic workflows, which integrate Large Language Model (LLM) agents for tasks such as code review and data synchronization. While bringing convenience for developers, this integration exposes a new risk: An adversary may control and craft certain inputs, such as GitHub issue comments, to manipulate the LLM agent for unwanted actions, such as credential exfiltration and arbitrary command execution. To our knowledge, no prior academic work has studied such a risk in agentic workflows. In this paper, we design the first detection and exploitation framework, called JAW, to hijack agentic workflows hosted on automation platforms via a novel approach called Context-Grounded Evolution. Our key idea is to evolve agentic workflow inputs under the contexts derived from hybrid program analysis for hijacking purposes. Specifically, JAW generates agentic workflow contexts through three analyses: (i) static path-feasibility analysis to identify feasible agent-invocation paths and the input constraints required to trigger them, (ii) dynamic prompt-provenance analysis to determine how that input is transformed and embedded into the LLM context, and (iii) capability analysis to identify the actions and restrictions available to the agent at runtime. Our evaluation of JAW on GitHub workflows and n8n templates showed that 4714 GitHub workflows and eight n8n templates can be successfully hijacked, for example, to leak user credentials. Our findings span 15 widely-used GitHub Actions, including official GitHub Actions for Claude Code, Gemini CLI, Qwen CLI, and Cursor CLI, and two official n8n nodes. We responsibly disclosed all findings to the affected vendors and received many acknowledgements, fixes, and bug bounties, notably from GitHub, Google, and Anthropic.
Sources
- Defending Against Indirect Prompt Injection Attacks With Spotlighting
- Ignore Previous Prompt: Attack Techniques For Language Models
- MCPSecBench: A Systematic Security Benchmark and Playground for Testing Model Context Protocols
- Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Models
- MCP Security Bench (MSB): Benchmarking Attacks Against Model Context Protocol in LLM Agents
- Universal and Transferable Adversarial Attacks on Aligned Language Models
Related papers
- RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities
- Introducing the Generative Application Firewall (GAF)
- Opal: Private Memory for Personal AI
- Fuel as Identity: Authenticating Inter-Satellite Laser Links after Total Key Compromise
- Merkle Trees Minimize Verifier Complexity in the ROM
- VulCPE: Context-Aware Cybersecurity Vulnerability Retrieval and Management