DET-081 · human · confidence High

Mass Repository Clone Activity

Count distinct repositories cloned per person per day and alert on large departures from their norm.

GitHub Enterprise streams git events, including git.clone, to its audit log, and GitLab and Bitbucket keep similar logs. A developer normally clones the handful of repos they work in. Dozens or hundreds in a day, especially repos with no prior activity from that person, is the clearest sign of bulk code theft.

Git events (git.clone, git.fetch, git.push) only appear in audit log export and streaming, not the web UI, and exports keep them for seven days, so stream them to your SIEM. In an investigation, list the repos cloned that the person never committed to; that list is usually the clearest picture of intent.

Data sources
GitHub Enterprise audit log (git events)GitLab audit eventsBitbucket audit log
Platforms
SaaS

Logic

github_audit
| where action in ("git.clone", "git.fetch")
| summarize Repos = dcount(repo), RepoList = make_set(repo, 50) by actor, bin(timestamp, 1d)
| join kind=leftouter (github_audit | where action == "git.clone" and timestamp between (ago(60d) .. ago(1d)) | summarize Typical = percentile(dcount_repo, 95) by actor) on actor
| where Repos > max_of(25, 5 * coalesce(Typical, 1))

False positives

New hires setting up machines, and engineers running org-wide refactors or audits.

Catches 3 techniques