CICD-SEC-5 Insufficient PBAC is the OWASP Top 10 CI/CD Security Risks entry for weak pipeline-based access controls, where pipelines, jobs and runners hold more permissions or secrets than they need. An attacker who runs code in one pipeline can then reach other resources. Defenders scope credentials per job, separate pipelines by sensitivity, and apply least privilege to runners.
What insufficient PBAC means in a CI/CD pipeline
Insufficient pipeline-based access control means the build and delivery system is trusted too broadly. Instead of each job, runner, environment, and deployment step receiving only the access it needs for its narrow task, the pipeline inherits expansive permissions that can be reused, abused, or stolen.
That matters because CI/CD systems are not just code execution environments, they are control planes for source repositories, artifacts, cloud environments, package registries, and secrets. When the access model is too loose, a single compromised job can become a bridge into higher-value systems that the pipeline was never meant to reach.
Why weak PBAC becomes a security boundary problem
PBAC is meant to express access decisions at the pipeline or job level, so the policy follows the workflow rather than staying coarse at the account or runner level. Weak PBAC usually shows up when shared credentials, broad default permissions, or long-lived tokens are available to every stage regardless of the stage’s actual purpose.
That design breaks the assumption that one pipeline step can only affect one bounded action. If build, test, and deploy jobs all see the same secrets or cloud rights, an attacker who reaches an early job can often reuse that trust to enumerate resources, modify outputs, or pivot into adjacent environments.
For teams comparing access models, Authorisation Models Guide helps place pipeline-based access control in the broader family of policy-driven authorization, where the policy needs to fit the workload as closely as the permission itself.
Common failure patterns in CI/CD environments
The most common failure pattern is over-permissioned automation. A runner may have repository write access, deployment rights, registry publish rights, or access to cloud APIs even when a specific job only needs read-only access or a short-lived token for one action.
Another pattern is access reuse across trust zones. Teams may reuse the same runner group, secret set, or service identity across multiple projects, which means a compromise in one pipeline becomes a compromise of the shared trust boundary. This is especially dangerous where self-hosted runners, external contributions, or third-party actions are involved.
Reader guidance on the control side is useful here: OWASP CI/CD Top 10 CICD-SEC-5 Insufficient PBAC Guide focuses on least privilege for pipeline steps, scoped secrets, ephemeral runners, host hardening, and egress control.
Where the concern is broader than one pipeline, Top 10 CI/CD Security Risks gives the surrounding risk model and shows how PBAC weaknesses interact with other CI/CD failures such as poisoned execution, secret exposure, and artifact abuse.
What strong pipeline access design looks like
A safer design scopes permissions to the smallest executable unit, not to the whole pipeline. That usually means separate secrets per job, distinct runner pools by sensitivity, short-lived credentials, and explicit policy checks for the specific repository, environment, or action involved.
Good design also treats pipeline identity as something that must be governed over time. Access should be reviewed when workflows change, runners are replaced, or new integrations are added, because the permissions that once matched the pipeline can silently become excessive.
That lifecycle view is why the IAM and IGA Basics guide is useful context for CI/CD teams: the same entitlement discipline used for people and applications also applies to automation that can deploy, sign, publish, or modify infrastructure.
The practical result is a pipeline that can still move quickly, but with access boundaries that reflect job purpose, environment sensitivity, and blast radius instead of convenience.
Detection and recovery after a PBAC weakness is suspected
If insufficient PBAC is suspected, the key question is not only whether code executed, but what that code could reach. Review runner logs, job traces, token issuance, secret access, artifact publication, and downstream API activity to determine whether the job crossed beyond its intended scope.
Post-incident review should focus on whether credentials, tokens, keys, or deployment sessions exposed to the pipeline must be rotated or revoked. When the pipeline had broad access, compromise of one job can leave behind valid trust material that remains useful even after the initial foothold is removed.
For teams building the control plane around secrets and credentials, Secrets Scanning vs Secrets Management is a useful companion because detection and prevention are different problems, and both matter once pipeline permissions have been overextended.
Risk and Threat Considerations
Weak PBAC turns the pipeline into a privilege amplifier. If an attacker can execute code in one job, broad inherited permissions may let them steal secrets, alter build outputs, publish malicious artifacts, or move into connected environments that were supposed to be isolated.
Failure mechanism: The control fails when runner credentials, job tokens, or environment permissions are shared too widely, so one compromised step can access resources intended for other steps or other systems entirely.
Impact: The likely outcome is lateral movement inside the delivery platform, unauthorized deployment or publication, and the theft or reuse of credentials, tokens, or cloud access that outlives the original compromise.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V8 — Authorization | CI/CD PBAC is an authorization problem with job-scoped access decisions. |
| Recommendation — Apply V8-style authorization checks to limit each pipeline step to only the permissions it needs. | ||
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | The term is about excessive pipeline permissions and runner rights. |
| IA-5 — Authenticator Management | The issue often involves overexposed pipeline secrets, tokens, and authenticators. | |
| Recommendation — Enforce AC-6 to minimize runner and job permissions to the least privilege needed. Manage pipeline credentials tightly and rotate or revoke them when exposure is suspected. | ||
| CIS Controls v8 | CIS-5 — Account Management | CI/CD permissions depend on disciplined account and access management for automation. |
| Recommendation — Inventory pipeline identities and remove unnecessary accounts, tokens, and access paths. | ||
| OWASP API Security Top 10 | API5 — Broken Function Level Authorization | Pipeline steps can invoke privileged functions they should not reach. |
| Recommendation — Restrict privileged pipeline functions so each job can only invoke approved actions. | ||
Practitioner Guidance
Why practitioners should care: In CI/CD, access design is part of the production trust boundary, not just an implementation detail. The safest pattern is to assume every job may be observable or tampered with and therefore deserves only the minimum permissions needed for its exact task.
Practitioner takeaway: If you cannot explain why a pipeline step needs a permission, a secret, or a runner capability, treat that access as over-scoped until proven otherwise.
Related resources from NHI Mgmt Group
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 November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org