In-depth lesson · technique
CI/CD pipeline abuse
What every disclosed CI/CD pipeline abuse report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- reports cited in this lesson
- 58
- median public bounty
- $500
- highest public bounty
- $7,500
Learning Cloud and infrastructure, step 6
Overview
What it is and why programs pay for it.
CI/CD pipeline abuse is the practice of getting a build or deployment system to run code you control, rather than code the project intended. The pipeline sits between source code and production, so whoever controls it can usually reach secrets, signing keys, release artefacts and cloud credentials. That is why programmes treat it as a serious finding: a single weak pipeline can compromise a whole organisation's software supply chain, not just one host.
It most often turns up where build servers are exposed to the internet without authentication, where self hosted runners are attached to public repositories, where workflows run untrusted pull request input with repository privileges, and where package names are resolved from public registries without pinning or scoping. Large organisations with many separate Jenkins instances were a recurring theme in the evidence, as were GitHub Actions workflows using the pull_request_target trigger.
What it usually leads to is remote code execution in the build environment, and from there escape into the host or the surrounding cloud infrastructure. In several reports the chain continued into Kubernetes control, protected branch bypass, or backdooring a product's next release. The impact is therefore often supply chain level rather than confined to the pipeline itself.
Seen in these reports4
-
Medium -
High
Show all 4 reportsShow fewer
How it works
The mechanics, as the reports show them.
The first step is usually finding a pipeline you can influence. That might be an unauthenticated Jenkins dashboard or script console, a self hosted runner that accepts jobs from public repositories, or a workflow that triggers on pull requests from outside contributors. The common thread is that the system accepts input or jobs from someone who should not have that privilege.
The second step is turning that influence into execution. With an exposed Jenkins instance this can be direct, through the script console or the CLI, or through weak credentials. With GitHub Actions it is often indirect: a pull request name or environment value is passed into a shell step without sanitisation, or a workflow using pull_request_target checks out and runs untrusted code with repository privileges. Null bytes in runner input have also been used to set arbitrary environment variables.
A parallel route is dependency and supply chain manipulation. If a build resolves package names from a public registry without pinning or scoping, publishing a package under an internal name can cause the pipeline to pull attacker code. The same idea applies to abandoned package names that can be revived, lookalike names, and renamed or deleted repositories whose names can be claimed so existing CI references resolve to attacker code.
Persistence and bypass come next. A reused runner working copy can keep a malicious git hooks path across jobs, so it runs in a later user's pipeline. Git replace refs can be pushed to swap file content across branches and slip past protected branch controls. A shared CI/CD cache without integrity checks can be poisoned so another user's pipeline installs the malicious package and leaks the job token. A compromised shared Action dependency can spread the compromise to every repository that uses it.
Finally, the build environment is a stepping stone. From a build container, hunters have tested escape into the host and then into cloud infrastructure, chained server side template injection into container escape and Kubernetes control, and used repository takeover to hijack cloud CI/CD systems. This is what makes the technique valuable: the pipeline often holds the credentials that reach everything else.
Seen in these reports10
-
High -
Medium -
Medium
Year by year
5 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2015 | 1 |
|---|---|
| 2017 | 1 |
| 2019 | 1 |
| 2020 | 4 |
| 2021 | 26 |
| 2022 | 3 |
| 2023 | 14 |
| 2024 | 28 |
| 2025 | 20 |
| 2026 | 17 |
-
2026
New this year1
- Replacing a cached package and its hash so the poisoned cache passes integrity checks first appears in the disclosed reports this year.
Turned up less1
- Dependency confusion is less prominent in the disclosed reports this year, with only two such reports against the previous year's cluster.
-
2024
New this year1
- Git replace refs used to swap file content across branches and slip code past protected branch controls first appear in the disclosed reports this year.
Kept working2
- Dependency confusion through internal package names pulled by build pipelines was the dominant pattern in the disclosed reports this year.
- Renamed or deleted repository names claimed to hijack CI pipelines recurred in the disclosed reports.
-
2023
New this year2
- Server side template injection chained into container escape and Kubernetes control first appears in the disclosed reports this year.
- GitLab CI/CD through shared runners and TeamCity platform flaws appear as targets in the disclosed reports this year.
Kept working2
- Publishing a package under an internal name to a public registry to see whether build pipelines pull it recurred across ecosystems in the disclosed reports.
- Azure DevOps pipeline parameters and variables were tested for command injection and runner hijacking in the disclosed reports.
Earlier years2
Where it is found
1The features and places the reports found it in, most-reported first.
-
Jenkins build servers and dashboards that are exposed publicly and reachable without authentication, including multiple separate instances at a single large organisation.
Seen in 1 report
-
High
-
Technologies in these reports14
Root causes
6The mistakes in the code or configuration behind the reports.
-
Build pipelines resolve package names from public registries without pinning or scoping, allowing dependency confusion.
Seen in 3 reports
-
Build servers were left reachable from the internet without authentication, allowing pre-authentication takeover of pipelines.
Seen in 2 reports
-
High -
Critical
-
-
Untrusted input such as pull request names and environment values is passed into workflow steps without sanitisation.
Seen in 1 report
-
The runner reuses the local working copy without resetting the git hooks path, so a malicious configuration persists across jobs.
-
GitLab does not validate or filter pushes of git replace refs, allowing them to be used in pipelines.
Seen in 1 report
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
Azure DevOps pipelines
of 2 tickedBuild containers and host escape
of 2 tickedGitHub Actions workflows and runners
of 2 ticked-
Seen in 1 report
-
Seen in 1 report
Package registries and dependency resolution
of 2 ticked-
Seen in 3 reports
-
Seen in 1 report
Bypasses and variations
4How reports got past filters, encoders and other defences.
-
Claim a renamed or deleted repository name so existing CI references resolve to attacker code.
-
Use git replace refs to swap file content across branches and slip code past protected branch controls.
Seen in 1 report
-
Persist a malicious git hooks path in the reused working copy so it runs in a later user's pipeline.
-
Replace a cached package and its hash so the poisoned cache passes integrity checks.
Payouts
3 paidPublic bounties in US dollars, from the data. 3 of 130 reports show an amount.
- a quarter paid up to
- $350
- median
- $500
- three quarters paid up to
- $4,000
- highest
- $7,500
One in ten paid reports was paid $6,100 or more.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| Critical | 2 | 0 | None paid | None |
| High | 3 | 0 | None paid | None |
| Medium | 4 | 0 | None paid | None |
| Low | 1 | 0 | None paid | None |
| Unrated | 120 | 3 | $500 | $7,500 |
Highest-paid reports3
-
$7,500 -
$500 -
$200
Typical fixes
6How programs fixed it, as the reports describe.
-
Pin and scope package names so builds do not resolve from public registries.
Seen in 3 reports
-
Put Jenkins instances behind authentication and remove public reachability.
Seen in 2 reports
-
High -
Critical
-
-
Sanitise untrusted input such as pull request names before passing it to workflow steps.
Seen in 1 report
-
Reset the git hooks path and clean the working copy between jobs on a reused runner.
-
Validate or reject pushes of git replace refs.
Seen in 1 report
Tips for beginners
11Advice for a first hunt, drawn from the reports.
-
Suggest the fix alongside the finding: authentication and removal of public reachability for build servers, pinned and scoped package names, no self hosted runners on public repositories, no untrusted code under pull_request_target, sanitised input, a disabled script console, a reset working copy between jobs, rejected git replace refs, and an integrity checked cache scoped per branch.
Seen in 5 reports
-
Consider persistence and bypass variants: a reused runner working copy that keeps a malicious git hooks path, git replace refs pushed to swap content across branches, and a shared cache poisoned so another user's pipeline installs your package. These show the flaw is not a one off.
Seen in 3 reports
-
Check the wider platform too: Azure DevOps pipeline parameters and variables, GoCD authentication, TeamCity, Bitbucket Pipelines containers, GitLab shared runners, and GitHub Pages build inputs. The same class of mistake appears across vendors.
Seen in 3 reports
-
Start with the obvious: look for Jenkins instances reachable from the internet without authentication, including multiple separate instances at one organisation. Check the script console and the CLI, and try weak or default credentials against the login endpoint. Confirm reachability before going further.
Seen in 2 reports
-
High -
Critical
-
-
For dependency confusion, look for internal package names resolved from public registries without pinning or scoping. Publishing a package under an internal name and seeing whether pipelines pull it is the concrete test. Also consider abandoned names that can be revived and lookalike names.
Guides and techniques
The best explainers, cheat sheets and technique posts on CI/CD pipeline abuse, from around the web.
-
CloudFormation bajo la mirada de un atacanteWorkshop showing how low-privilege AWS credentials can be escalated through CloudFormation execution roles and Lambda custom resources to build persistence.
Technique bishopfox.com
-
Code to Cloud Attacks: From Github PAT to Cloud Control PlaneExplains how a leaked GitHub personal access token can be abused to pivot into cloud control planes and how to defend against it.
Technique wiz.io
-
How to Harden GitHub Actions: An Updated GuideUpdated guidance on hardening GitHub Actions pipelines against supply chain and workflow injection risks.
Methodology wiz.io
-
Primer on GitHub Actions Security - Threat Model, Attacks and Defenses (Part 1/2)Wiz details GitHub Actions threat modelling, attack paths and defensive controls for CI pipelines.
Explainer wiz.io
-
CI/CD SECRETS EXTRACTION, TIPS AND TRICKSSynacktiv details practical methods for extracting secrets from CI/CD pipelines and runners during engagements.
Technique synacktiv.com
Keep learning
Where this lesson fits, and what to read next.
Learning paths
The whole class
Related techniques
How this is made: our model read every listed CI/CD pipeline abuse report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 26 Nov 2026 from 58 reports. All CI/CD pipeline abuse reports.