Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution
summary
The gist
Automation platforms such as GitHub Actions and n8n are increasingly adopting so-called agentic workflows…
In short
The paper introduces JAW, a framework to detect and exploit vulnerabilities in agentic workflows on platforms like GitHub Actions and n8n. It uses Context-Grounded Evolution to generate sophisticated payloads by analyzing workflow paths, prompt transformations, and agent capabilities. This allows attackers to hijack agents by crafting inputs that manipulate the LLM into performing unauthorized actions like credential exfiltration.
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 used across episodes
This episode discusses
- Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution · Paper Radio
- 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
The paper
Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution · Read on arXiv
Johns Hopkins University Applied Physics Lab · Wyze Labs
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.
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.
More episodes
- The day in conversation for 2026-12-05
- Daily Summary for 2026-12-05
- 2607.15118-Automated Template-free Synthesis of Instruction-Centric Leakage Contracts for Black-Box CPUs
- 2610.37722-FVH-Bench: Evaluating Image Generator Safety Beyond Overtly Harmful Imagery
- 2512.23849-Security Without Detection: Economic Denial as a Primitive for Edge and IoT Defense
- 2605.05807-LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attribution
- 2607.02932-PromptPET: Prompt Obfuscation Against Profiling by AI Agents
- 2309.05646-A Novel Supervised Deep Learning Solution to Detect Distributed Denial of Service (DDoS) attacks on Edge Systems using Convolutional Neural Networks (CNN)
- The day in conversation for 2026-12-04
- Daily Summary for 2026-12-04