> When that happens, the attacker will be able to push code to Github, and if that code gets deployed, you're owned.
I think this is one of those areas where we'll have to rethink local security. It's still pretty common I think to have a bunch of unencrypted credentials to GitHub, AWS etc flying about in some ~/.config directory. Pretty sure most CLIs support encrypted credentials by now, but depending on the OS there's just too much friction to set this up when all you're expected to do is push more and more code (going back to the change velocity argument). Ultimately, that means any laptop is ripe for picking with "easy" attack vectors like compromised packages (or just plain old phishing).