← OWASP Top 10 Risks for Open Source Software
OSS-RISK-9
Unapproved Change
What a dependency points at changes without anyone reviewing it. A Git tag moved to a new commit, or a branch rewritten by force-push, changes the code every user of that reference runs.
Summary in ghtier's words. Read OWASP OSS's own text
Incidents (3)
Last 12 months (2): TeamPCP tag force-overwrite campaign, GlassWorm: editor extensions that steal GitHub tokens and force-push
2026
- TeamPCP tag force-overwrite campaign March 2026
Attack path techniques used
- Force push or delete a protected branch (Delete code or cover tracks)
- Push a release tag to an unreviewed commit (Point a release tag at a bad commit)
- Repoint existing tags on a published Action (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)
- Read secrets from the runner (Steal CI secrets and tokens)
- Trigger the publish workflow from a tampered branch (Poison the build or published package)
- Publish a malicious version with a stolen token (Poison the build or published package)
- Hide the payload in a commit only its hash reaches (Poison the build or published package)
- Add a guest collaborator or new app (Keep access)
Checklist items
The fixes for those techniques.
- 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
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- Make releases immutable, or protect release tags with a tag ruleset
- Third-party Actions pinned to a full commit SHA instead of a mutable tag or branch
- 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
- Restrict which Actions can run to GitHub-verified creators or an internal allow-list
- Limit where workflow jobs can connect to, starting with release and deploy jobs
- Set `persist-credentials: false` on actions/checkout wherever later steps do not push
- Branch protection on default/release branches: required reviews of the last push + required status checks
- Adopt artifact attestations for build provenance on published binaries/images
- Publish packages with trusted publishing (OIDC) instead of long-lived registry tokens
- Write and rehearse a credential-rotation runbook before you need it
- Restrict public repo creation, visibility changes, repo deletion, private forks and outside collaborator invites to owners
- Run a quarterly access review of owners, repo admins, team membership and outside collaborators
- Review every currently installed GitHub App / OAuth App and its granted scope
- Keep OAuth app access restrictions on and require security/IT approval for new apps
Permissions involved
The GitHub permissions those incidents abused.