# OWASP Top 10 CI/CD Security Risks
> Ten ways build pipelines get abused, from poisoned pipeline execution to leaked CI secrets; a practical, testable 2022 OWASP Lab list with no data behind its order.
- Publisher: OWASP Top 10 CI/CD Security Risks project · Edition: unversioned (no edition year stated in repo) · Released: unknown · Status: final
- Items: 10 · Licence of the source: CC BY-SA 4.0
- Official page: https://owasp.org/www-project-top-10-ci-cd-security-risks/
- Source: https://github.com/OWASP/www-project-top-10-ci-cd-security-risks/tree/74b2c790d5512998f232480dde61d4d42fa692ae/ (pinned commit)
- Canonical page: https://llms-technical-reviews.com/security/owasp-cicd-top10/
## Items at a glance
- **CICD-SEC-1 Insufficient Flow Control Mechanisms** — themes: supply-chain, access
- **CICD-SEC-2 Inadequate Identity and Access Management** — themes: identity, access
- **CICD-SEC-3 Dependency Chain Abuse** — themes: supply-chain
- **CICD-SEC-4 Poisoned Pipeline Execution (PPE)** — themes: injection, supply-chain
- **CICD-SEC-5 Insufficient PBAC (Pipeline-Based Access Controls)** — themes: access, config
- **CICD-SEC-6 Insufficient Credential Hygiene** — themes: identity, data-leak
- **CICD-SEC-7 Insecure System Configuration** — themes: config
- **CICD-SEC-8 Ungoverned Usage of 3rd Party Services** — themes: supply-chain, access
- **CICD-SEC-9 Improper Artifact Integrity Validation** — themes: supply-chain
- **CICD-SEC-10 Insufficient Logging and Visibility** — themes: monitoring
## Review
## What this list is

The OWASP Top 10 CI/CD Security Risks names ten ways the build-and-release machinery of a software organisation gets abused: source control (SCM), CI servers and runners, artifact and package registries, and the deploy step that pushes to production. The project is an OWASP Lab project. The repository carries no edition year in the list itself, but the project roadmap records a v1.0 initial release in September 2022 and a stable v1.0 in October 2022. Nothing newer has been published, so read it as a 2022 document. It is final, not a draft.

The scope is the pipeline, not the application it ships. The OWASP Top 10:2025 web list covers supply chain from the application's point of view in [A03:2025 Software Supply Chain Failures](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a032025-software-supply-chain-failures); the [OSS-RISK-1 Known Vulnerabilities](https://llms-technical-reviews.com/security/owasp-oss-risks-top10/#oss-risk-1-known-vulnerabilities) list covers what is wrong with the open-source components you pull. This list sits between them: who can push, what runs in the build, which secrets the build can reach, and whether anyone can tell afterwards. For a SaaS team it is the closest thing OWASP has to a threat model for GitHub Actions, GitLab CI, Jenkins and their neighbours.

## How it was made

The project says the list grew out of research into CI/CD attack vectors and analysis of well-known breaches. It names three inputs: a look at how "hundreds" of real CI/CD set-ups in many industries were designed and secured, discussions with practitioners, and published incident write-ups. Two researchers from a single CI/CD security vendor wrote it; a named panel of security leaders from other companies reviewed it.

There is no data set, no scoring and no vote. The source does not say whether the numbering is a ranking. Treat the order as a reading order: it starts with who can push code and ends with whether you would notice. Every entry follows the same template (definition, description, impact, recommendations, references), and most references point to public incidents such as SolarWinds, Codecov, the PHP source backdoor and the hijacked ua-parser-js, coa and rc npm packages.

## The items

### CICD-SEC-1 Insufficient Flow Control Mechanisms

**What it is.** One person or one machine identity can move code or an artifact all the way to production without a second party looking at it. The gap is in the process, not in any single system.

**How it shows up.** A developer account is excluded from branch protection "for hotfixes", so a stolen session pushes straight to `main` and the deploy workflow ships it. An auto-merge bot accepts any pull request that only touches a lockfile, and an attacker hides a malicious dependency bump in one. Someone uploads a container image to the registry by hand, with the same tag the CI service account would have used, and the deploy job picks it up. In agent setups the same gap appears when a coding agent holds a token that can both open and merge pull requests.

**What to do.** Turn on branch protection with required reviews for every branch that feeds production, and remove the exemptions. Keep the accounts that may push unreviewed code apart from the accounts that may trigger a deploy. Only promote artifacts that the CI service account built, and run drift detection that compares what is running with what the pipeline produced. To test it, try to get a commit or image into production as a single identity, using every path: direct push, manual workflow dispatch, registry upload and console change.

**Related:** [A08:2025 Software or Data Integrity Failures](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a082025-software-or-data-integrity-failures), [CNAS-4 CI/CD pipeline & software supply chain flaws](https://llms-technical-reviews.com/security/owasp-cloud-native-top10/#cnas-4-cicd-pipeline--software-supply-chain-flaws), [ASI03 Identity and Privilege Abuse](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi03-identity-and-privilege-abuse).

### CICD-SEC-2 Inadequate Identity and Access Management

**What it is.** The engineering estate has more identities than anyone tracks: human logins, personal access tokens, SSH keys, OAuth apps and plugins, spread across SCM, CI and registries. Many are over-permissioned, stale, local to one system, or shared.

**How it shows up.** A contractor left a year ago, but their personal access token still has write access to forty repositories. A self-hosted Git server allows anyone with a company email domain to self-register, and new users get a default role above "none". An engineer uses a personal email on the SCM, so the company's MFA and offboarding never reach that account. The source cites cases where self-registration on an internet-facing server led to source code and secrets leaking.

**What to do.** Federate every CI/CD system with the central identity provider and avoid local accounts. Keep an inventory of each identity with its granted and actually used permissions, then cut the difference. Disable accounts after a fixed period of inactivity, and give external collaborators access that expires. Turn off self-registration and broad base permissions. To test it, export the member and token lists from each system and compare them with the HR roster and the IdP.

**Related:** [NHI1:2025 Improper Offboarding](https://llms-technical-reviews.com/security/owasp-nhi-top10-2025/#nhi12025-improper-offboarding), [NHI5:2025 Overprivileged NHI](https://llms-technical-reviews.com/security/owasp-nhi-top10-2025/#nhi52025-overprivileged-nhi), [A07:2025 Authentication Failures](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a072025-authentication-failures), [K02 Overly Permissive Authorization Configurations](https://llms-technical-reviews.com/security/owasp-kubernetes-top10/#k02-overly-permissive-authorization-configurations).

### CICD-SEC-3 Dependency Chain Abuse

**What it is.** The way a workstation or build host resolves and downloads packages lets an attacker get their package installed instead of, or in addition to, the intended one. Install hooks then run the attacker's code at once.

**How it shows up.** The source names four patterns. Dependency confusion: a public package with the same name as an internal one, and a higher version, wins the resolution. Dependency hijacking: a maintainer account is taken over and a bad version is published. Typosquatting: a name one keystroke away from a popular one. Brandjacking: a name that copies a known publisher's naming style. In a modern setup, a coding assistant suggests a package name that does not exist, an attacker has already registered it, and the build installs it with the CI's secrets in the environment.

**What to do.** Route every package fetch through an internal proxy or mirror, and block direct internet access from build hosts. Pin versions with lockfiles and verify checksums or signatures. Register private packages under your organisation's scope and force that scope to resolve only from the internal registry. Run install scripts in a step that has no secrets. Commit the package-manager config (for example `.npmrc`) to the repository so local defaults cannot override it. To test it, publish a harmless package with an internal name to a public registry and see whether any build pulls it.

**Related:** [OSS-RISK-2 Compromise of Legitimate Package](https://llms-technical-reviews.com/security/owasp-oss-risks-top10/#oss-risk-2-compromise-of-legitimate-package), [OSS-RISK-3 Name Confusion Attacks](https://llms-technical-reviews.com/security/owasp-oss-risks-top10/#oss-risk-3-name-confusion-attacks), [A03:2025 Software Supply Chain Failures](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a032025-software-supply-chain-failures), [LLM04:2026 Supply Chain](https://llms-technical-reviews.com/security/owasp-llm-top10-2026/#llm042026-supply-chain).

### CICD-SEC-4 Poisoned Pipeline Execution (PPE)

**What it is.** Someone who can change files in a repository, but has no rights on the CI system, gets their own commands executed by the pipeline. The pipeline does the work under its own identity and with its own secrets.

**How it shows up.** The source splits it three ways. Direct PPE: the attacker edits the workflow file itself in a branch or pull request, and the CI runs the edited version. Indirect PPE: the workflow file is protected, but it calls a Makefile, a test suite, a linter config or a script in the repository, and the attacker edits that instead. Public PPE: an open-source project builds pull requests from anyone, so an anonymous outsider can do either of the above. A current variant: a pipeline runs an AI review or triage agent over pull request text and issue comments, with a write token in scope. Instructions planted in that text make the agent run commands or push changes.

**What to do.** Run any build of unreviewed code on isolated runners with no secrets and no access to sensitive networks. Do not run pipelines from forks, or require a maintainer's approval first. Give every branch that can trigger a sensitive pipeline a matching branch-protection rule. Load the pipeline definition from a protected branch, and remember that this does not stop indirect PPE. Scope each pipeline's credentials to its job. To test it, open a pull request from a fork that prints the environment and lists reachable secrets, and check what comes back.

**Related:** [LLM01:2026 Prompt Injection](https://llms-technical-reviews.com/security/owasp-llm-top10-2026/#llm012026-prompt-injection), [ASI01 Agent Goal Hijack](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi01-agent-goal-hijack), [ASI05 Unexpected Code Execution (RCE)](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi05-unexpected-code-execution-rce), [CNAS-4 CI/CD pipeline & software supply chain flaws](https://llms-technical-reviews.com/security/owasp-cloud-native-top10/#cnas-4-cicd-pipeline--software-supply-chain-flaws).

### CICD-SEC-5 Insufficient PBAC (Pipeline-Based Access Controls)

**What it is.** PBAC is the source's term for what a pipeline, and each step in it, can reach: code, secrets, the host it runs on, other jobs, the network and the internet. When that reach is wide, any code that runs in the pipeline inherits it.

**How it shows up.** A shared self-hosted runner builds both a public demo app and the payments service, so a poisoned demo build can read the payments job's files on the next run. A build node can call the cloud metadata endpoint and get an instance role with rights well beyond the build. A test step has unrestricted outbound internet, so a compromised dependency can send secrets anywhere. The source points to the Codecov compromise, where a CI tool's script read environment variables from customer builds.

**What to do.** Do not share runners between pipelines of different sensitivity. Scope secrets per pipeline and per step. Use ephemeral runners that are reset after every job. Run jobs as a low-privilege OS user, keep them off the controller node, and patch the nodes. Apply network segmentation and an egress allow-list to build hosts. To test it, run a job that tries to read another job's workspace, reach the metadata service, call internal hosts and open an arbitrary outbound connection.

**Related:** [NHI5:2025 Overprivileged NHI](https://llms-technical-reviews.com/security/owasp-nhi-top10-2025/#nhi52025-overprivileged-nhi), [NHI8:2025 Environment Isolation](https://llms-technical-reviews.com/security/owasp-nhi-top10-2025/#nhi82025-environment-isolation), [K08 Cluster-To-Cloud Lateral Movement](https://llms-technical-reviews.com/security/owasp-kubernetes-top10/#k08-cluster-to-cloud-lateral-movement), [ASI03 Identity and Privilege Abuse](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi03-identity-and-privilege-abuse).

### CICD-SEC-6 Insufficient Credential Hygiene

**What it is.** Secrets used by and around the pipeline leak, last too long or can do too much. That covers keys committed to Git, tokens echoed into build logs, credentials left in a container image layer, and deploy keys nobody has rotated in years.

**How it shows up.** A developer deletes an API key from the code, but it is still in the commit history and any clone has it. A build prints a token while debugging, and the log ships to a log platform that the whole company can read. A Dockerfile copies a `.npmrc` with a registry token, uses it, deletes it in a later layer, and the token is still in the published image. One cloud key is shared by every pipeline, so nobody can tell which job used it or revoke it without breaking everything.

**What to do.** Prefer short-lived, federated credentials over static keys, and scope each one to one pipeline, one purpose and, where possible, a source identity or network. Rotate the static keys that remain and alert on unused ones. Scan for secrets in the IDE, on push and across full history. Mask secrets in console output and check old logs. Scan images, binaries and Helm charts for embedded secrets before publishing. To test it, run a secret scanner over full Git history, recent build logs and the layers of your published images.

**Related:** [NHI2:2025 Secret Leakage](https://llms-technical-reviews.com/security/owasp-nhi-top10-2025/#nhi22025-secret-leakage), [NHI7:2025 Long-Lived Secrets](https://llms-technical-reviews.com/security/owasp-nhi-top10-2025/#nhi72025-long-lived-secrets), [CNAS-5 Insecure secrets storage](https://llms-technical-reviews.com/security/owasp-cloud-native-top10/#cnas-5-insecure-secrets-storage), [MCP01:2025 Token Mismanagement & Secret Exposure](https://llms-technical-reviews.com/security/owasp-mcp-top10/#mcp012025-token-mismanagement--secret-exposure).

### CICD-SEC-7 Insecure System Configuration

**What it is.** The SCM, CI server, runners and registries are themselves weakly configured: unpatched, exposed to the internet, running with admin rights on their host, left on insecure defaults, or still carrying default credentials.

**How it shows up.** A self-hosted CI server sits on the internet with an old version and a known flaw. A Git server keeps a default admin password. A SaaS CI organisation still lets any workflow request write permissions by default. Engineers are allowed to open debug shells on runners, which means anyone with that right can read secrets from memory while a job runs. The source lists breaches in which self-hosted build or Git servers were the way in, including SolarWinds and the PHP repository.

**What to do.** Keep an inventory of every CI/CD system and instance, each with a named owner, and patch it. Restrict network access to these systems to what is needed. Review security settings on a schedule against the vendor's hardening guidance, including for SaaS. Treat debug access to runners as privileged access. To test it, run a configuration benchmark against each system and scan the external attack surface for exposed CI and Git endpoints.

**Related:** [A02:2025 Security Misconfiguration](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a022025-security-misconfiguration), [CNAS-1 Insecure cloud, container or orchestration configuration](https://llms-technical-reviews.com/security/owasp-cloud-native-top10/#cnas-1-insecure-cloud-container-or-orchestration-configuration), [K07 Misconfigured And Vulnerable Cluster Components](https://llms-technical-reviews.com/security/owasp-kubernetes-top10/#k07-misconfigured-and-vulnerable-cluster-components), [ISR03:2024 Insecure Configurations](https://llms-technical-reviews.com/security/owasp-infrastructure-top10/#isr032024-insecure-configurations).

### CICD-SEC-8 Ungoverned Usage of 3rd Party Services

**What it is.** Third parties are wired into CI/CD with almost no friction: SCM apps, OAuth apps, access tokens, SSH keys, webhooks, marketplace actions and CI plugins. Each one gets rights inside your systems, often far more than it needs, and usually without review.

**How it shows up.** A developer installs a code-quality app on the whole organisation with write access to every repository. Later the vendor is breached, and the attacker uses the app's rights to push code that triggers your builds. A workflow pulls a marketplace action by a mutable tag, and the tag is moved to a malicious commit. The source cites cases where a vendor's app or stored OAuth tokens gave attackers access to customers' code. AI tools and MCP servers connected to the SCM are the same pattern with a new label.

**What to do.** Govern the whole lifecycle. Approve each integration before it is granted access, with least privilege. Keep an inventory of every integration method and compare granted rights with the rights it actually uses. Run third-party steps in a scoped context with limited secrets and egress filters. Remove integrations nobody uses. To test it, list every installed app, OAuth grant, deploy key, webhook and external action, and check each one's scope and last use.

**Related:** [NHI3:2025 Vulnerable Third-Party NHI](https://llms-technical-reviews.com/security/owasp-nhi-top10-2025/#nhi32025-vulnerable-third-party-nhi), [API10:2023 Unsafe Consumption of APIs](https://llms-technical-reviews.com/security/owasp-api-top10-2023/#api102023-unsafe-consumption-of-apis), [MCP09:2025 Shadow MCP Servers](https://llms-technical-reviews.com/security/owasp-mcp-top10/#mcp092025-shadow-mcp-servers), [AST02 Supply Chain Compromise](https://llms-technical-reviews.com/security/owasp-agentic-skills-top10/#ast02-supply-chain-compromise).

### CICD-SEC-9 Improper Artifact Integrity Validation

**What it is.** Nothing proves that the code or artifact arriving at a stage is the one the previous stage produced. Anyone with a foothold anywhere along the chain can swap in a tampered artifact that looks legitimate.

**How it shows up.** The SolarWinds case in the source is the reference: the product was changed inside the build system, so the source repository stayed clean. Smaller versions are common. A build script downloads a helper with `curl | bash` from a vendor bucket without checking its hash. A deploy job pulls `image:latest` with no signature check. A commit claims to come from a known maintainer, and nothing verifies that.

**What to do.** Sign at creation and verify before use, along the whole path from commit to deploy. The source points to the open frameworks in-toto, SLSA and Sigstore for build provenance and signing. Require signed commits on protected branches. Verify the hash of any third-party script or binary against the publisher's value before running it. Detect configuration drift, such as cloud resources that no signed infrastructure-as-code template describes. To test it, push an unsigned artifact into the registry and check that the deploy step rejects it.

**Related:** [A08:2025 Software or Data Integrity Failures](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a082025-software-or-data-integrity-failures), [OSS-RISK-9 Unapproved Change](https://llms-technical-reviews.com/security/owasp-oss-risks-top10/#oss-risk-9-unapproved-change), [AST07 Update Drift](https://llms-technical-reviews.com/security/owasp-agentic-skills-top10/#ast07-update-drift), [LLM04:2026 Supply Chain](https://llms-technical-reviews.com/security/owasp-llm-top10-2026/#llm042026-supply-chain).

### CICD-SEC-10 Insufficient Logging and Visibility

**What it is.** The engineering systems are not logged and watched the way production servers are, so an attacker can work in them unseen, and responders cannot rebuild what happened afterwards.

**How it shows up.** SCM audit logs are on the default retention and nobody exports them. CI build logs exist, but there is no record of who changed a pipeline setting or added a secret. A new deploy key is added at 3 a.m. and nothing alerts. A token is used from an unknown network and nobody notices. After an incident the team cannot say which builds the compromised runner touched.

**What to do.** The source lists four steps. Map every system and instance in the pipeline, including self-hosted ones. Turn on both audit logs (logins, user creation, permission changes) and application logs (pushes, builds, artifact uploads), because neither is complete by default. Ship them to a central store such as a SIEM. Write alerts for anomalies in each system and across the delivery flow, for example a deploy with no matching build. To test it, run a tabletop exercise: pick a token theft scenario and try to answer who, what and when from the logs alone.

**Related:** [A09:2025 Security Logging & Alerting Failures](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a092025-security-logging--alerting-failures), [K10 Inadequate Logging And Monitoring](https://llms-technical-reviews.com/security/owasp-kubernetes-top10/#k10-inadequate-logging-and-monitoring), [CNAS-10 Ineffective logging & monitoring (e.g. runtime activity)](https://llms-technical-reviews.com/security/owasp-cloud-native-top10/#cnas-10-ineffective-logging--monitoring-eg-runtime-activity), [MCP08:2025 Lack of Audit and Telemetry](https://llms-technical-reviews.com/security/owasp-mcp-top10/#mcp082025-lack-of-audit-and-telemetry).

## What changed

There is only one edition, the v1.0 from 2022, so there is nothing to compare. Its closest relatives on this site are [CNAS-4 CI/CD pipeline & software supply chain flaws](https://llms-technical-reviews.com/security/owasp-cloud-native-top10/#cnas-4-cicd-pipeline--software-supply-chain-flaws) in the Cloud-Native Top 10, which compresses the whole topic into one entry, and the Top 10:2025 web list, whose [A03:2025 Software Supply Chain Failures](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a032025-software-supply-chain-failures) and [A08:2025 Software or Data Integrity Failures](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a082025-software-or-data-integrity-failures) now cover parts of the same ground from the application side. The Non-Human Identities Top 10 goes deeper on the tokens and service accounts that CICD-SEC-2, -5 and -6 touch.

## What it misses

- **It is a 2022 snapshot.** Since then, short-lived workload identity federation from CI to clouds has become the normal way to remove static keys. The list only says "prefer temporary credentials". It does not mention build cache poisoning, persistence on self-hosted runners between jobs, or the trigger types that run untrusted pull request code with secrets.
- **No AI angle.** Coding agents and AI review bots now run inside pipelines with write tokens and read untrusted text. That is a direct path to CICD-SEC-4 and CICD-SEC-5, and the list does not discuss it. Pair it with the LLM and Agentic Top 10s.
- **Overlap between entries.** CICD-SEC-5 and CICD-SEC-6 carry the same recommendation, almost to the word: scope secrets per pipeline and per step. The advice to isolate install scripts appears under both CICD-SEC-3 and CICD-SEC-5. The same incidents are reused under several risks (Codecov under four, Stack Overflow's build server under three). CICD-SEC-2 and CICD-SEC-7 also overlap on self-registration and default credentials.
- **CICD-SEC-10 has no references,** unlike every other entry.
- **Naming inconsistencies.** Codes are written CICD-SEC-1 in the text but CICD-SEC-01 in file names. The project sidebar shortens two names (Poisoned Pipeline Execution without "(PPE)", Insufficient PBAC without its expansion).
- **No method behind the order.** Nothing says why flow control is first or whether the order reflects frequency or impact.

## Our take

This is the most practical OWASP list for anyone who runs a build pipeline. Use it to threat-model your CI/CD, to write a hardening checklist for GitHub Actions, GitLab or Jenkins, and to ask procurement questions of any vendor that wants an SCM app or a CI plugin. The entries are concrete and the recommendations are directly testable, which is rare among Top 10 lists. Its weaknesses are age and origin: it is a 2022 document written by one vendor's researchers, it predates AI agents in pipelines, and it has no data behind its order. Prefer it over [CNAS-4 CI/CD pipeline & software supply chain flaws](https://llms-technical-reviews.com/security/owasp-cloud-native-top10/#cnas-4-cicd-pipeline--software-supply-chain-flaws) for depth, and add the NHI Top 10 for credentials and the Agentic Top 10 for any agent that runs in your pipeline.
Attribution: item codes and names are from "OWASP Top 10 CI/CD Security Risks" by OWASP Top 10 CI/CD Security Risks project (CC BY-SA 4.0). The review text is ours.