GitHub InjActions: A Security Flaw? đź’‰

There’s a partial mitigation for repo injection which, although betaish at the moment, is a better solution than anything that (centralized) Github, let alone Microslop, has to offer. There’s not much you can do to prevent such attacks upstream but the more providers that move to this approach, the better.

My prediction is that this strategy will continue to be ignored while we hobble along with weaker guarantees. And everything will be fine until there’s an actual attack, at which point we’ll ask ourselves what we could have done better. My only stake in this is to be on the record saying we should either make the incremental extra effort to do this for major projects, or show why it’s inferior to some other approach.

Github interactions and random cloud machines are fine for testing things out but production builds should be done on a sterile offline box, ideally a live ISO with a verified hash (or the equivalent on a given phone platform). Then repeated on unrelated such boxes.

In theory some upstream group could just sign their code and publish the signatures in their repo, but what happens if a hacker commandeers write authorization to it? (“We were hacked last week so we’ve rotated our keys to these new ones over here…”) One could also use a wallet to publish build hashes directly on any chain. But you can’t solve the trusted readonly venue problem without something like ArNS.

https://forum.zcashcommunity.com/t/zcash-project-hardening-via-the-permaweb-arns

2 Likes