A reading guide to the account below. These stages do not establish every step of an attack.
- 01
Tokens issued to Heroku and Travis CI were stolen.
- 02
The attacker selected organizations and repositories.
- 03
GitHub notified accounts with detected abuse.
What happened
Source accountGitHub said an attacker used stolen OAuth tokens issued to Heroku and Travis CI to list organizations and selectively clone some private repositories. It reported activity affecting dozens of organizations and updated its notification scope through April 27, 2022.Source: GitHub Blog: Security alert: Attack campaign involving stolen OAuth user tokens issued to two third-party integrators
What enabled it
Source accountOAuth tokens let an approved app act within granted permissions. GitHub said it did not believe its systems were the source of the stolen tokens, which were maintained by the third-party integrators.Source: GitHub Blog: Security alert: Attack campaign involving stolen OAuth user tokens issued to two third-party integrators
What harm followed
Source accountGitHub distinguished repository listings from downloaded contents. It warned that cloned code might be searched for secrets, describing possible attacker intent rather than confirmed downstream use.Source: GitHub Blog: Security alert: Attack campaign involving stolen OAuth user tokens issued to two third-party integrators
What remains unknown
Limits of the evidenceThe public report does not establish that every downloaded repository contained a usable secret or that every secret was used. It also directs customers to follow the integrators’ own investigations.Source: GitHub Blog: Security alert: Attack campaign involving stolen OAuth user tokens issued to two third-party integrators
Practical lessons
Our interpretationReview connected apps and remove access that no longer serves a purpose. Give integrations narrow repository scope and revoke their tokens after a provider incident. Keep secrets out of repository history; deleting a value from the latest version does not remove earlier commits. These steps reduce what one delegated token can reach, though they cannot recall cloned code.Source: GitHub Blog: Security alert: Attack campaign involving stolen OAuth user tokens issued to two third-party integrators
Why this matters to people
Our interpretationA personal project may contain deployment keys, while company repositories can reveal source and infrastructure. The incident involved third-party OAuth tokens, so a GitHub password reset alone would not address every delegated grant. Users and developers should inspect both app permissions and activity logs when an integration is implicated. A forgotten authorization can outlive the original project setup, making periodic access reviews useful even without an incident.Source: GitHub Blog: Security alert: Attack campaign involving stolen OAuth user tokens issued to two third-party integrators
Read the evidence
Primary references. Source dates and our review date have different meanings. These links open the publishers’ material.
- Security alert: Attack campaign involving stolen OAuth user tokens issued to two third-party integratorsGitHub Blog · 2022-04-15 (updated 2022-04-27) · reviewed 7 October 2026
See how we distinguish source accounts, uncertainty and interpretation. Read our method.