Skip to content

In-depth lesson · CI/CD pipeline abuse

Tips for beginners

Every point the CI/CD pipeline abuse reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 11 of 11
  1. 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
  2. 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
  3. 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
  4. 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
  5. 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.

    Seen in 2 reports
  6. Before you test, confirm the target is in scope. Exposed third party build servers, vendor infrastructure and public registries are often out of scope, and testing them without permission is a common mistake. Read the programme's rules on third party systems and on publishing packages.

    Seen in 2 reports
  7. Keep your proof minimal and reversible. Avoid publishing packages that could be pulled into real builds beyond what is needed to demonstrate the issue, and avoid touching production releases. Report the chain and the fix rather than leaving persistence behind.

    Seen in 2 reports
  8. For open source projects, read the workflow files first. Look for pull_request_target triggers that check out and run untrusted pull request code, and for pull request names or environment values passed into shell steps without sanitisation. These are readable from the repository, so you can reason about them before testing.

    Seen in 1 report
  9. Look for references to renamed or deleted repositories that can be claimed, so existing CI references resolve to your code. This is a low effort check with high impact when it works.

    Seen in 1 report
  10. When you have execution in a build container, show what it reaches rather than stopping at the shell. Test for escape into the host and then into cloud infrastructure, and document the credentials and services you can touch. That is the impact a programme cares about.

    Seen in 1 report
  11. Do not report a pipeline you can merely see. A reachable dashboard, a workflow that looks risky, or a runner that exists is not impact on its own. Show execution, or show a concrete path to secrets or release control, and stop before you cause harm.

    Seen in 1 report