In June 2018 the Gentoo [[GitHub]] code repository mirror used mainly by developers was hacked after an attacker gained access to an organization administrator's account via deducing the password. Gentoo promptly responded by containing the attack and improving security practices. No Gentoo [[Public-key cryptography|cryptography keys]] or signed packages were compromised, and the repository was restored after five days.<ref>{{cite web|url=https://wiki.gentoo.org/wiki/Project:Infrastructure/Incident_Reports/2018-06-28_Github|title=Project:Infrastructure/Incident Reports/2018-06-28 Github - Gentoo Wiki|website=wiki.gentoo.org|access-date=August 23, 2018|df=dmy-all|url-status=live|archive-url=https://web.archive.org/web/20180810144739/https://wiki.gentoo.org/wiki/Project:Infrastructure/Incident_Reports/2018-06-28_Github|archive-date=August 10, 2018}}</ref><ref name="NW-Aftermath">{{cite news|title=The aftermath of the Gentoo GitHub hack|url=https://www.networkworld.com/article/3287973/linux966022/the-aftermath-of-the-gentoo-github-hack.html|first=Sandra|last=Henry-Stocker|publisher=Network World|date=July 10, 2018|access-date=August 23, 2018|df=dmy-all|url-status=live|archive-url=https://web.archive.org/web/2018072420400420231202131628/https://www.networkworld.com/article/3287973/linux966022/the-aftermath-of-the-gentoo-github-hack.html|archive-date=JulyDecember 242, 20182023}}</ref><ref name="reg2018">{{cite web|url=https://www.theregister.co.uk/2018/07/05/gentoo_github_hack_weak_password_no_2fa/|date=5 Jul 2018|first=Simon|last=Shallwood|access-date=July 6, 2018|title=Gentoo GitHub repo hack made possible by these 3 rookie mistakes|website=[[The Register]]|archive-date=July 6, 2018|archive-url=https://web.archive.org/web/20180706034246/http://www.theregister.co.uk/2018/07/05/gentoo_github_hack_weak_password_no_2fa/|url-status=live}}</ref><ref>{{cite web|url=https://techcrunch.com/2018/06/29/hackers-too-over-the-gentoo-linux-github-repository/|title=Hackers took over the Gentoo Linux GitHub repository|author=John Biggs|date=June 29, 2018|website=[[TechCrunch]]|access-date=August 10, 2018|archive-date=August 10, 2018|archive-url=https://web.archive.org/web/20180810145133/https://techcrunch.com/2018/06/29/hackers-too-over-the-gentoo-linux-github-repository/|url-status=live}}</ref><ref>{{cite web|url=https://itsfoss.com/github-gentoo-hacked/|title=GitHub Repositories of Gentoo Linux Hacked!|author=Ankush Das|date=June 29, 2018|website=It's FOSS|access-date=August 10, 2018|archive-date=August 10, 2018|archive-url=https://web.archive.org/web/20180810142125/https://itsfoss.com/github-gentoo-hacked/|url-status=live}}</ref>