Open Source 2018-06-28 · 0 days ·Service Disruption, Data Destruction

Gentoo GitHub hack modified ebuilds

An attacker gained control of Gentoo's GitHub organization administrator account (reportedly 'risacher' via password guessing).

Story

Gentoo's 2018 incident hit GitHub, not Gentoo's primary infrastructure. The attacker gained access to a GitHub organization administrator account and used that control to remove users, invite another malicious administrator, and alter repositories.

The visible payload was destructive. Malicious commits added rm -rf commands to ebuild-related content and defaced repository files. Gentoo later noted that technical guards made execution by ordinary users unlikely, but fresh clones from the affected GitHub repositories during the window could contain hostile content.

The main Gentoo development and distribution infrastructure remained separate. Gentoo told users that the default mirroring infrastructure and hardware run by Gentoo Infrastructure were unaffected, and that users could verify repository provenance through Portage verification.

The operational damage was still real. GitHub use was unavailable for several days, pull-request workflows were disrupted, and old pull requests were disconnected from their commits. This record tracks the compromised GitHub source mirror and ebuild changes, not a compromise of Gentoo's canonical package distribution path.

Affected Artifacts

gentoo

github · github.com · repository · Revision Control System
Observed
2018-06-28
Compromised Versions
Unknown
Fixed
Not listed
Hashes
  • sha1:b8ed5a815dfb8c077a92e6a3a90c1ae6a88d284d
  • sha1:2bd555a1138cb197271e8ddeec38bf4c7ae71844
  • Gentoo's incident report listed malicious content windows for gentoo/gentoo, gentoo/musl, and gentoo/systemd on GitHub between 2018-06-28 and 2018-06-29 UTC.
  • Gentoo stated its own infrastructure and default mirroring path were unaffected.

Incident Context

Motive
Disruption Protest
Attribution
Person
Cause
Compromised Account Credentials
Transitive
No
Actor
Individual Hacker

External References

Source record: oss/attacks/gentoo/meta.yaml