← Lab /Security & privacy

Mass cloning of private repositories using compromised GitHub PATs across multiple organizations

Compromised GitHub Personal Access Tokens were used to conduct large-scale repository cloning across several organizations, and that the source of the tokens remains unknown.

Security & privacy Wiz Research 13 Aug 2026 Incident analysis Real-world evidence

Published as “How to Investigate GitHub PAT Compromise: Lessons From a Multi-Organization Campaign”

Why it matters

The campaign shows that compromised GitHub PATs can enable rapid, large-scale source code and secret exfiltration across organizations, highlighting the need for log streaming and credential hygiene.

Summary

Wiz CIRT investigated a coordinated campaign where attackers used stolen GitHub PATs to first recon repositories, then validate access, and finally perform mass cloning on June 1, using 102 AWS IPs to copy thousands of repos per organization. The investigation reconstructed three phases-recon on May 15, low-volume validation May 29-31, and the large-scale clone-and found no evidence of how the tokens were initially leaked. They provide a step-by-step playbook for containment, timeline expansion, blast-radius assessment, secret rotation, and hunting for downstream abuse, emphasizing the need for streaming GitHub audit logs.

What they found 3

  1. Mass repository cloning on June 1 used 102 AWS IP addresses to copy thousands of repositories per organization.

    “Between 09:14 and 14:55 UTC, the actor used 102 AWS IP addresses located in the ca-central-1 region to clone up to thousands of repositories per organization.”

  2. Initial reconnaissance on May 15 queried the /repositories/{id}/readme endpoint from a single AWS IP address.

    “Prior to the mass clone, on May 15, the threat actor used the GitHub API to query the /repositories/{id}/readme endpoint from a single AWS IP address (13.221.167.217).”

  3. Low-volume validation cloning occurred May 29-31 from a single IP using the git/2.25.1 user agent.

    “Additional related activity occurred between May 29 and May 31. The same compromised PATs were used to perform a limited number of git.clone operations from 107.174.201.183 (HostPapa, US) using the git/2.25.1 user agent.”

Caveats 4

  • The investigation did not identify how the PATs were initially leaked, leaving the initial access vector unconfirmed.
  • In GitHub Enterprise Cloud, Git events such as git.clone, git.fetch, and git.push are retained by GitHub for only seven days.
  • These requests generate api.request events, which are available through GitHub Enterprise Log Streaming but are not included in standard GitHub audit logs.
  • Our investigation did not identify the compromised tokens in code or cloud resources... the method by which the actor obtained valid PATs across multiple unrelated organizations therefore remains an open question.

What’s new here 4

  • First public analysis of a multi-organization GitHub PAT compromise campaign.
  • Detailed playbook for investigating and containing PAT compromise.
  • Identification of three distinct campaign phases (reconnaissance, validation, mass clone).
  • Highlight of GitHub audit-log retention limits and recommendation to stream logs.