# GitInject: Real-World Prompt Injection Attacks in AI-Powered CI/CD Pipelines

*Jafar Isbarov, Umid Suleymanov, I Shumailov, Murat Kantarcioglu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/138882) · [OpenReview](https://openreview.net/forum?id=yuUk1yfRpn) · [Open on the map](../papers.html#p138882)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Multi-Agent Security Evaluation](../pgroup/474.md) · Type: new method · Keywords: prompt injection, CI/CD security, GitHub Actions, AI agent vulnerability, supply chain attacks, workflow hardening

Areas: [Code & Coding Agents](../areas/codegen.md) › Code Verification › Coding agent benchmarks; [AI Agents](../areas/agents.md) › Agent Robustness › Agent Security Vulnerabilities; [Safety & Security](../areas/safety.md) › Language Model Security › LLM Agent Security; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Safety › Agent Security Benchmarks; [Benchmarks for LLMs & Agents](../areas/bench-llm-agents.md) › Agent Trustworthiness Benchmarks › Agent Security Benchmarks

## Summary
GitInject is an open-source framework that evaluates prompt injection vulnerabilities in real GitHub workflows, revealing structural weaknesses across AI providers and proposing low-cost countermeasures.

## Explained to a 5-year-old
Computers that help fix code sometimes listen to messages from people. If someone hides a secret command inside a message, the computer might do something harmful. The researchers created a special test that looks like a real project to see if these hidden commands can trick the computers. They discovered that many of these helpers can be fooled in many ways. The test helps make the helpers safer so they won’t cause problems.

## Explained to a 5-year-old, longer
In many software projects, there are robots that look at new code and decide if it’s okay. These robots often have a lot of power, like being able to change files and run commands. Sometimes people send messages to these robots, and the robots read those messages to understand what to do. If a message contains a hidden command, the robot might follow it without knowing it’s bad. This hidden command is called a prompt injection because it tricks the robot into doing something it wasn’t supposed to. The researchers wanted to see how often this could happen in real projects, not just in labs. They built a testing tool that creates a fake project and runs the robot’s checks just like a real one. The tool lets them try many different tricks, like hiding secret instructions in configuration files. They tested four different companies that provide these robot helpers and found that each one could be tricked. They discovered eleven different ways the robots could be fooled, ranging from stealing secret information to breaking the system. The most serious problems were not about the robot’s brain but about how the project stores passwords and settings. The researchers also suggested simple fixes that cost little money to make the robots safer.

## For a technical reader
GitInject creates temporary repositories and runs actual GitHub Actions workflows to test for prompt injection. It evaluates four AI providers and finds eleven distinct attack types, most of which stem from credential and configuration handling rather than model behavior. The framework proposes minimal-cost workflow-level mitigations for each attack class. It is open-source and will release full scenarios after a disclosure period to give providers time to fix issues.

## Problem
AI agents embedded in CI/CD pipelines that have elevated permissions are vulnerable to prompt injection attacks, which can lead to supply chain compromises.

## Method
The approach provisions ephemeral repositories and triggers actual workflow runs to evaluate prompt injection attacks, studying configurations across multiple AI providers and identifying structural vulnerabilities.

## Results
The evaluation found that every provider was vulnerable to at least one attack class, and the primary weaknesses were structural issues in credential and configuration handling rather than model-specific flaws.

## Contributions
It provides a framework for evaluating prompt injection vulnerabilities in live CI/CD pipelines, documents eleven attack classes across four AI providers, and identifies low-cost workflow-level countermeasures for each.

## Limitations and assumptions
The framework is limited to GitHub workflows and the four evaluated AI providers, and full attack scenarios are withheld during a disclosure period.

## Practical relevance
It enables developers and security teams to test and mitigate prompt injection risks in production CI/CD pipelines, improving supply chain security.

## Research questions this paper is counted under

- [How can we detect and mitigate security risks caused by AI agents in development and deployment?](../q/599.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/138882)
