TAM-H-RCH-022 · Human · Reach: What they can touch · New in TAM
Owning the Source Org
Org owners and repo admins on a code host can change protections, read every repo, and move code out of the company.
GitHub organization owners, GitLab group owners and Bitbucket workspace admins can do far more than push code. They can disable branch protection, add outside collaborators, change repo visibility, transfer repos to another org, and read every private repository.
These roles are often handed out for convenience. A team lead becomes an org owner to fix a webhook, and nobody takes it back. Admin bypass settings mean rulesets that block everyone else may not block them.
An insider with this reach can take the entire code base, rewrite history to hide changes, or open a private repo to the internet in a single setting change.
What it looks like
- Twelve people are GitHub org owners in a 200-person engineering team.
- Branch rulesets list the "Repository admin" role as a bypass actor on every repo.
- An admin can transfer a private repo to a personal account or another organization without approval.
Detections (3)
- DET-056Forced Pushes and Protection BypassAlert on forced updates to protected branches and on branch protection being turned off.Confidence HighSaaS
- DET-081Mass Repository Clone ActivityCount distinct repositories cloned per person per day and alert on large departures from their norm.Confidence HighSaaS
- DET-120Repo Visibility and Transfer ChangesAlert when a private repo is made public or transferred out of the organization.Confidence HighSaaS
Controls (2)
- CTL-018Branch Rules With No BypassBlock force pushes and deletions on important branches for everyone, including admins and bots.TechnicalEffort LowEffect High
- CTL-064Limit Bulk Code AccessRestrict where and how much source code can be cloned, and keep code access tied to managed identities.TechnicalEffort MediumEffect Medium