TL;DR
This paper introduces Agentic Workflow Injection (AWI), a new class of security vulnerabilities where untrusted user inputs (like GitHub issue comments or PR descriptions) manipulate LLM-powered CI/CD agents. To combat this, the authors developed TAINTAWI, a static analysis tool that successfully uncovered 343 previously unknown zero-day vulnerabilities across major open-source repositories, demonstrating that integrating AI into automation pipelines opens up dangerous new attack vectors.
What Problem Does This Paper Address?
Modern software development heavily relies on CI/CD automation platforms like GitHub Actions. Recently, developers have begun integrating Large Language Models (LLMs) and autonomous agents directly into these workflows to handle complex, natural-language tasks like triaging issues, reviewing pull requests, and automating code modifications.
However, this creates a massive security blind spot. Traditional CI/CD security tools look for deterministic code injection flaws, while standard prompt-injection defenses focus on chatbots. Neither handles the intersection of the two: when an untrusted user input (e.g., a malicious issue body) is fed into a workflow's LLM prompt, altering the agent's behavior.
The authors categorize these risks into two distinct patterns:
- Prompt-to-Agent (P2A): The untrusted content hijacks the agent's prompt, tricking it into misusing its privileged tools (e.g., deleting repositories or leaking secrets).
- Prompt-to-Script (P2S): The untrusted content manipulates the LLM's output, which is then passed into a downstream deterministic script (like a Bash command), leading to classic script injection.
Methods
The authors designed TAINTAWI, a specialized static analysis framework tailored to track data flows through both code and LLM boundaries.
The pipeline consists of four main stages:
- AWI Taint Specification (Offline): Because actions are highly varied, TAINTAWI uses an LLM-assisted analyzer to automatically ingest action metadata and documentation to identify prompt boundaries, derived outputs, and access controls.
- Workflow IR Construction: It parses raw workflow YAML files into a structured Intermediate Representation (IR) that normalizes execution semantics across jobs and steps.
- Agentic Workflow Dependency Graph (AWDG) Generation: TAINTAWI builds a graph capturing data and control dependencies. Crucially, it performs lightweight script-level data-flow analysis for embedded shell and JavaScript steps to see where data goes after leaving an action.
- AWI Detection & Reachability Analysis: The tool propagates taints from untrusted sources to sinks. It treats the LLM boundary as a "semantic bridge"—if a prompt input is tainted, any output derived from that LLM step is also marked as tainted. Finally, it filters out false positives by checking if effective workflow-level or action-level guards (like write-permission checks) are active.
Datasets
The authors evaluated their approach using a two-part dataset:
- Action Dataset: 1,035 unique AI-assisted action repositories collected from the GitHub Actions Marketplace and targeted keyword searches.
- Workflow Dataset: 13,392 real-world downstream workflows spanning 10,792 repositories that actively reuse the identified AI actions.
Key Insights and Ideas
- The "Semantic Bridge" Concept: Traditional taint analysis breaks at the LLM boundary because data doesn't flow syntactically from a prompt to an output string. TAINTAWI bypasses this by establishing a semantic rule: if an attacker can influence the prompt, they control the semantics of the output.
- The Access-Control Gap: Out of 1,033 analyzed actions, only 21 provided explicit caller-identity access control. Most action developers assume downstream workflow authors will secure the pipeline, while workflow authors assume the action is inherently safe.
- P2S is the Dominant Threat: Counter-intuitively, the biggest risk isn't rogue AI agents deleting repositories directly. 84.5% of confirmed vulnerabilities were Prompt-to-Script (P2S), where an LLM's output seamlessly broke downstream string interpolations in standard Bash scripts.
Key Results
- High Precision: TAINTAWI flagged 519 potential vulnerabilities, of which 496 were confirmed to be exploitable, yielding an impressive 95.6% precision.
- Massive Zero-Day Discovery: The tool discovered 343 previously unknown zero-day vulnerabilities. 24 cases have already been officially accepted or fixed by maintainers, including vulnerabilities in official template repositories managed by Google and GitHub.
- Scalability: TAINTAWI processed all 13,392 agentic workflows in just 12.32 minutes on a single server, averaging a mere 0.054 seconds per workflow.
Limitations and Future Work
- Static Over-Approximation: As a static analysis tool, TAINTAWI can suffer from false positives where a data path is syntactically possible but blocked by undocumented runtime behaviors or repository-specific policies.
- Incomplete Action Semantics: The tool relies on pre-defined or inferred action specifications. If a brand-new or highly obscure AI action uses non-standard property names for its prompts, TAINTAWI might miss it.
- Complex Script Parsing: While it handles basic shell and JavaScript analysis, highly complex multi-language scripts or dynamically generated commands still pose a challenge for complete data-flow tracking. The authors note that deeper multi-language script analysis is a primary direction for future work.
Summary updated