← OWASP Top 10 CI/CD Security Risks
CICD-SEC-1
Insufficient Flow Control Mechanisms
Code or artifacts can reach production without a second person or an automated gate approving them. On GitHub that is a default branch, tag or release anyone with write access can change alone.
Summary in ghtier's words. Read OWASP CI/CD's own text
Incidents (6)
Last 12 months (4): ChainDrop: a hijacked maintainer account publishes through trusted publishing, Megalodon: mass backdooring of CI workflows, hackerbot-claw autonomous agent RCE, GlassWorm: editor extensions that steal GitHub tokens and force-push
2026
2025
- GlassWorm: editor extensions that steal GitHub tokens and force-push October 2025
- GhostAction September 2025
2023
- Dependabot impersonation July 2023
Attack path techniques used
- Push directly, without review (Submit malicious code)
- Force push or delete a protected branch (Delete code or cover tracks)
- Delete branches and workflow runs (Delete code or cover tracks)
- Push a release tag to an unreviewed commit (Point a release tag at a bad commit)
- Add a workflow that dumps secrets (Steal CI secrets and tokens)
- Run PR code in a privileged workflow (Steal CI secrets and tokens)
- Prompt an AI step in a workflow (Steal CI secrets and tokens)
- Search the repository and its history for keys (Steal CI secrets and tokens)
- Publish a malicious version with a stolen token (Poison the build or published package)
- Release through the project's own pipeline (Poison the build or published package)
- Leave a dormant workflow behind (Keep access)
- Plant editor or agent config that runs on open (Keep access)
Checklist items
The fixes for those techniques, plus the items ghtier tags with this risk.
- Branch protection on default/release branches: required reviews of the last push + required status checks
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- Require the committer to match the pusher on sensitive repos
- Deletion and force-pushes prevented on critical branches
- Require signed commits on the default branch of sensitive repos
- Enable audit logging and export it to a SIEM for retention and detection
- CODEOWNERS in place, required on sensitive paths
- Inventory every Actions secret and its visibility/scope; the results are usually surprising
- Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
- Put production secrets in environments with required reviewers
- Audit every use of pull_request_target and remove or restructure risky ones
- Set the default GITHUB_TOKEN permission to read-only at the org level
- Require approval for first-time/external contributor workflow runs on forks
- Limit who and what can trigger workflows with workflow execution protections
- Decide which AI coding agents and MCP servers may work on the organization's repositories
- Do not restore Actions caches in release and publish workflows
- Secret scanning and push protection enabled
- Write and rehearse a credential-rotation runbook before you need it
- Adopt artifact attestations for build provenance on published binaries/images
- Publish packages with trusted publishing (OIDC) instead of long-lived registry tokens
- Make releases immutable, or protect release tags with a tag ruleset
- Turn off "Allow GitHub Actions to create and approve pull requests"
Permissions involved
The GitHub permissions those incidents abused.