DET-120 · human · confidence High

Repo Visibility and Transfer Changes

Alert when a private repo is made public or transferred out of the organization.

One settings change can publish an entire code base. GitHub logs repo.access for visibility changes and repo.transfer and repo.transfer_outgoing for moves. Both should be rare and tied to an open source release process.

These events are rare in most companies, so a direct page to the security team is reasonable. In an investigation, check who forked or cloned the repo while it was public, and whether the actor changed visibility back soon after. A transfer to a personal account or unknown org is a serious red flag.

Data sources
GitHub audit logGitLab audit events
Platforms
SaaS

Logic

github_audit
| where action in ("repo.access", "repo.transfer", "repo.transfer_outgoing", "repo.create")
| where (action == "repo.access" and visibility == "public") or action has "transfer"
| project timestamp, actor, repo, action, visibility, org

False positives

Planned open source releases.

Catches 2 techniques