eltharon.A journal of access, evidence & recoveryBack to Eltharon ↗
Independent reading. Informed decisions.Journal content updated

Incident study / Files & permissions

GitHub / third-party integrations2022

Stolen integration tokens exposed selected private repositories

Stolen tokens for two third-party integrations opened a path to selected private repositories. Delegated access can remain consequential after a user forgets approving it.

Article updated Sources reviewed Incident study
The case at a glance

A reading guide to the account below. These stages do not establish every step of an attack.

  1. 01

    Tokens issued to Heroku and Travis CI were stolen.

  2. 02

    The attacker selected organizations and repositories.

  3. 03

    GitHub notified accounts with detected abuse.

What happened

Source account

GitHub 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 account

OAuth 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 account

GitHub 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 evidence

The 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 interpretation

Review 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 interpretation

A 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.

  1. 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.