A compromised CI/CD token can turn a routine build path into an access bridge for package publishing, secret exposure, and downstream compromise. The failure is usually not a single weak control but excessive trust in automation that can reach repositories, registries, and cloud systems. Once that trust is abused, attackers inherit legitimate permissions and move faster than manual review can respond.
Why This Matters for Security Teams
A trusted CI/CD token is not just another credential. In AI supply chains it often connects source control, package publishing, container registries, model artifacts, and cloud runtimes, so one compromise can become a privilege bridge across the delivery path. The real risk is not only code tampering. It is the collapse of trust boundaries when automation is allowed to act with broad, persistent authority.
That is why incidents like the Reviewdog GitHub Action supply chain attack matter beyond a single workflow. They show how a workflow token can be used to expose secrets, mutate release artifacts, and create downstream compromise that looks legitimate to reviewers. Current guidance also aligns with the OWASP Non-Human Identity Top 10, which treats overprivileged machine identities as a first-class risk surface.
One relevant NHIMG data point: in The State of Secrets Sprawl 2026, 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations. In practice, many security teams discover that their build token was the fastest path into production only after unsigned packages, leaked secrets, or cloud access abuse has already started.
How It Works in Practice
When a CI/CD token is compromised, attackers usually do not need to “hack” the environment in a traditional sense. They inherit the permissions that the pipeline already had. If the token can read repository contents, push tags, publish packages, access artifact stores, or assume cloud roles, then the attacker can chain those permissions in sequence. In AI supply chains, that can mean poisoning training data, altering model weights, replacing inference containers, or exfiltrating prompts, embeddings, and API keys.
Defensive design starts with minimizing what the pipeline can do by default. Use workload identity rather than long-lived shared secrets where possible, and issue short-lived credentials for a single task instead of reusable tokens. For cloud and CI systems, NIST IR 8596 Cyber AI Profile reinforces the need to treat AI-enabled workflows as dynamic risk environments, not static trust zones. Pair that with repository and registry controls, provenance checks, and mandatory revocation when a token is suspected to be exposed.
- Constrain tokens to the smallest action set needed for each job.
- Prefer ephemeral, per-run credentials over reusable secrets.
- Separate build, publish, and deployment identities so one compromise does not span the pipeline.
- Require signed artifacts and verify provenance before promotion.
- Rotate and revoke tokens automatically after every sensitive event.
NHIMG’s Guide to the Secret Sprawl Challenge and the 52 NHI Breaches Analysis both show the same operational pattern: once a machine identity can reach too many systems, the attacker gains a legitimate launchpad instead of forcing a noisy intrusion. These controls tend to break down in highly parallel build farms with shared runners and unmanaged third-party actions because identity boundaries are difficult to enforce consistently at speed.
Common Variations and Edge Cases
Tighter CI/CD token controls often increase operational friction, so organisations have to balance release velocity against blast-radius reduction. That tradeoff is real, especially in AI pipelines where models, datasets, and packages may move through separate systems with different owners.
Best practice is evolving for several edge cases. Self-hosted runners deserve stricter isolation than ephemeral cloud runners because persistence makes token theft more valuable. GitHub Actions-style marketplace dependencies should be treated as transitive trust, not just tooling convenience. In regulated environments, human approval gates may still be necessary for package publishing or model promotion, but they should not be the only safeguard because a compromised token can replay approved steps.
There is no universal standard yet for exactly how much runtime context should be embedded in token issuance for AI pipelines, but current guidance suggests moving toward policy-as-code and request-time authorisation rather than pre-approved standing access. The Salesloft OAuth token breach is a reminder that once an identity token escapes its intended scope, the attacker can operate through trusted integrations instead of malware. The practical test is simple: if a stolen CI/CD token can still publish, deploy, or call AI services after hours, the supply chain is already too permissive.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Addresses overprivileged machine identities and token misuse in pipelines. |
| OWASP Agentic AI Top 10 | AIA-04 | Agentic workflows amplify token abuse through chained tool actions. |
| CSA MAESTRO | M1 | Covers trust boundaries and control of autonomous AI supply chains. |
| NIST AI RMF | Governance is needed for dynamic AI supply-chain risk and accountability. | |
| NIST Zero Trust (SP 800-207) | AC-6 | Least privilege is central when tokens can move laterally across systems. |
Assign owners for AI pipeline identity risk and review controls whenever trust paths change.