Skip to content
ceferisbarovPublic

About

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

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Repository files navigation

GitInject

A framework for evaluating prompt injection in real AI-powered CI/CD workflows.

NeurIPS 2026 accepted arXiv PyPI Python 3.13+ License: Apache 2.0

📚 Documentation · 📄 Paper · 🧪 Reproduce paper attacks · 🤝 Contributing

🎉 Accepted to the NeurIPS 2026 Evaluations & Datasets Track!

Our paper, GitInject: Real-World Prompt Injection Attacks in AI-Powered CI/CD Pipelines, introduces the framework and studies attacks against AI-powered GitHub workflows.

GitInject provisions repositories, installs agent workflows, triggers scenario inputs, and evaluates the resulting repository state and agent output. Use it to reproduce attacks, compare workflow defenses, and build custom experiments.

  • Live workflow evaluation: run utility tasks and prompt injection scenarios in real GitHub Actions workflows.
  • Independent measurements: track task completion, security breaches, and verified agent invocation. Verdicts can be true, false, or unknown; execution and evaluation errors are reported separately. A security breach means the attack succeeded.
  • Inspectable results: each GitHub attempt records copied inputs, execution phases, evidence, and results.
  • Attack discovery: the scanner generates and ranks attack hypotheses, then validates candidates through the same live run engine.

A GitLab runner is also available with a narrower execution and evidence contract. See metrics and evidence for how verdicts are determined.

GitInject creates public repositories, installs credentials, triggers real workflows, and deletes repositories during cleanup. Use a dedicated testing account.

Get started

Install Python 3.13+, uv, and the GitHub CLI. Install GitInject from PyPI as a standalone CLI:

uv tool install gitinject
gitinject list workflows
gitinject list scenarios
gitinject run-suite --workflow-labels codex --scenario-type benign --dry-run

The workflows, scenarios, and fixtures are bundled, so no checkout is needed. Run commands from your experiment directory; evidence is saved to runs/ and reports to reports/. If gitinject is not found after installation, run uv tool update-shell and restart your shell.

The dry run lists compatible pairs without creating repositories or calling models. Configure your GitHub identity and workflow/judge credentials using the installation guide, then run a first benign trial:

gitinject run --workflow codex-pr-review --scenario vulnerable_code_review

This pair needs OPENAI_API_KEY for Codex and GEMINI_API_KEY for semantic evaluation, plus local GitHub authentication. See the quickstart for interpreting results.

For the Python API, use uv add gitinject in your project and import from gitinject, for example from gitinject.runner import BenchmarkRunner. For development or paper reproduction with the checked-in dependency lockfile, see checkout installation.

Guides and reference

For local documentation previews, strict builds, and GitHub Pages deployment, see documentation development.

Repository layout

Path Purpose
src/gitinject/ CLI, runners, scenarios, evaluators, and attempt records.
src/gitinject/workflows/ Target workflow assets and metadata.
src/gitinject/scenarios/ Python utility and attack scenarios with fixtures.
src/gitinject/scanner/ Hypothesis generation, ranking, recipes, validation, diagnostics, and reports.
docs/ Published guides and reference.
tests/ Unit and live integration tests.
research/ Research notes and scanner warm-start material.

Citation

@article{isbarov2026gitinject,
      title={{GitInject: Real-World Prompt Injection Attacks in AI-Powered CI/CD Pipelines}}, 
      author={Jafar Isbarov and Umid Suleymanov and Ilia Shumailov and Murat Kantarcioglu},
      year={2026},
      eprint={2606.09935},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2606.09935}, 
}

Contact Jafar Isbarov at isbarov at vt dot edu.

About

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

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages