CI/CD tampering is the unauthorized alteration of build, test, or deployment processes so malicious code, stolen secrets, or unsafe changes enter software pipelines. In practice, attackers target source repositories, pipeline scripts, runners, artifacts, or permissions, undermining software integrity, identity trust, and release assurance across the delivery chain.
What CI/CD tampering means in practice
CI/CD tampering is dangerous because delivery systems are trusted by design. If an attacker can alter pipeline logic, repository settings, runner behaviour, or deployment permissions, the pipeline itself can become the mechanism that introduces malicious code or unsafe change.
That makes the threat broader than a single compromised account or repo. The integrity of build outputs, test results, release approvals, and artifact provenance can all be undermined if the delivery chain accepts modified instructions or untrusted inputs.
Where tampering enters the delivery chain
Attackers usually look for the weakest control point in the pipeline: source control protections, workflow files, build scripts, shared runners, artifact stores, dependency references, or secrets attached to automation. A small change in one of those places can redirect an otherwise legitimate release process.
The practical danger is that CI/CD systems often run with elevated trust and broad access to code, tokens, package registries, and cloud services. Once the pipeline is modified, it can be used to exfiltrate secrets, publish backdoored builds, or create persistence inside the software supply chain.
Why integrity and trust break down
CI/CD tampering is not only a code problem, it is a trust problem. The organisation assumes that what passes through the pipeline has been built, tested, and approved under expected controls, but tampering can falsify that assurance at the source.
This is why signing, provenance, branch protection, runner isolation, and permission scoping matter together. Each control reduces a different path by which an attacker can change what gets built, what gets executed, or what gets published.
When those controls are weak, the result can be poisoned builds, stolen release secrets, altered deployment targets, and malicious artefacts that appear to come from normal delivery processes.
How organisations assess and reduce exposure
Exposure review starts with knowing which repositories, pipelines, runners, tokens, and deployment credentials can affect production. Teams should verify where pipeline code lives, which identities can edit it, and whether external contributions, inherited permissions, or long-lived secrets create hidden trust paths.
Controls such as pinned actions, least-privilege permissions, isolated runners, and artifact verification are especially important because they reduce the blast radius of a poisoned workflow. Provenance controls also help distinguish a genuine build from one that has been altered after the fact. The SLSA framework is a useful reference for raising build integrity and provenance expectations across the delivery chain.
For readers who want a deeper defensive model, NHIMG’s CI/CD Pipeline Identity Security Guide explains how pipeline identities, token permissions, OIDC federation, and trusted publishing affect delivery-chain trust.
Related examples of this threat pattern include CI/CD pipeline exploitation case study, which shows how a compromised pipeline can be redirected, and ArtiPACKED 2024, which illustrates how exposed runtime artefacts can leak live tokens.
What recovery looks like after suspected tampering
Once tampering is suspected, the response should assume the pipeline may have leaked secrets, altered artefacts, or planted persistence in automation. The affected repositories, workflow definitions, runners, and package or deployment credentials need review before normal releases resume.
Identity and secret impact often matters as much as code impact. Tokens, signing keys, cloud credentials, and service accounts used by the pipeline may need rotation if they could have been exposed or misused. Post-incident review should also compare produced artefacts, release logs, and provenance records to determine what changed and when.
Attacks such as tj-actions/changed-files compromise 2025 and GhostAction campaign 2025 show how workflow tampering can become a secrets-theft event, while TeamCity CVE-2023-42793 SVR exploitation 2023 shows the build-server compromise path that can expose credentials and signing material.
Risk and Threat Considerations
CI/CD tampering is high impact because it targets a trusted control plane. A successful change to workflow logic, runner state, or pipeline permissions can turn normal delivery automation into a mechanism for secret theft, malicious code injection, or compromised releases.
Failure mechanism: The attacker abuses trusted automation paths, such as workflow files, build scripts, runner privileges, or artifact handling, to change what the pipeline executes or publishes.
Impact: The organisation can ship backdoored software, leak credentials and signing keys, lose release integrity, and inherit compromise across downstream environments and customers.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
SLSA, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| SLSA | Supply-chain Levels for Software Artifacts | Directly addresses build provenance and artifact integrity in CI/CD pipelines. |
| Recommendation — Adopt SLSA-aligned provenance and integrity checks for pipeline outputs. | ||
| NIST SP 800-53 Rev 5 | SI-7 — Software, Firmware, and Information Integrity | CI/CD tampering undermines the integrity of software and release artifacts. |
| AC-6 — Least Privilege | Pipeline tampering often succeeds through overbroad workflow, runner, or token permissions. | |
| Recommendation — Verify build and release integrity before deployment and promotion. Restrict CI/CD permissions to the minimum needed for each pipeline task. | ||
| ISO/IEC 27001:2022 | A.8.9 — Configuration management | Tampering frequently exploits uncontrolled changes to pipeline configuration and workflow files. |
| Recommendation — Control and review CI/CD configuration changes before they reach production. | ||
| CIS Controls v8 | CIS-5 — Account Management | CI/CD tampering often depends on misused or overprivileged automation accounts and tokens. |
| Recommendation — Inventory and govern CI/CD accounts and automation credentials tightly. | ||
Practitioner Guidance
Why practitioners should care: CI/CD tampering is not just a development issue, it is a trust boundary issue. Treat pipeline permissions, workflow changes, and runner access as production-risk controls, because a compromised delivery chain can bypass ordinary application safeguards.
What to watch for: Unreviewed workflow edits, unexpected runner changes, new secrets access, unusual artifact outputs, and releases that no longer match expected provenance are all warning signs that the delivery path may have been altered.
Practitioner takeaway: If the pipeline can change code, secrets, or deployment targets, then it is part of the security perimeter and should be governed accordingly.
Related resources from NHI Mgmt Group
- How should security teams implement access control lists in CI/CD pipelines to avoid privilege creep and pipeline tampering?
- Why do build-time tampering attacks on CI/CD pipelines create such high risk for downstream software consumers?
- Why do write-capable CI/CD credentials increase policy tampering risk?
- What is workload identity federation and why is it important for CI/CD security?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 23, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org