logoalt Hacker News

simonw • today at 6:43 PM • 1 reply • view on HN

> an attacker gained access to an employee’s corporate GitHub account. The actor used the account to access source code and push malicious code to backend services, which downloaded administrative data pertaining to our customers.

What are best practices for protecting against this kind of risk?

I don't mean account security / require 2FA etc - I mean once an account like this with push access to repos has been compromised.


Replies

6thbit • today at 6:58 PM

Physical second factor on pushes would be a good place to begin with. Perhaps also GPG signing the commits with yubikey.

On-demand requests to elevate the required permissions for any higher risk actions, some of which require multiple humans physically intervening.