GitHub InjActions: A Security Flaw? đź’‰

Let’s start with a little timeline:

2007: Microsft data collection begins under NSA’s PRISM program[1]
2013: Snowden leaks the files from which we learn this
2016: Visual Studio 2015 gets caught injecting telemetry code into builds[2],[3]
2018: Microsoft acquires GitHub
2019: GitHub Actions is first launched
2026: Zcash still uses this Microsoft product to distribute release builds of their full node

This injection of code was undocumented and happened during release builds. So my questions are the following:

  1. Could Microsoft theoretically influence release builds through GitHub Actions?
  2. Has anyone considered this potential risk?
  3. What tests and measures could be taken, outside switching to a self-hosted forge with CI?

Isn’t there a torrent to the Zebra node releases published somewhere?

Edit: Wow, I asked my clanker and turns out peer-to-peer electronic cash doesn’t peer-to-peer share it’s node software releases. Strange.

Edit II: Wow, neither does ZFND use any alternative to the GitHub Runners to build the Zebra releases. Strange.

1 Like

I sure can’t find a link informing us about it. But wouldn’t those too be GitHub Actions artefacts?

The ZecHub page about Zebra links to GitHub releases. The Zcash Foundation links to a Docker image, probably also built using GitHub Actions, right?

1 Like

2 posts were merged into an existing topic: Broken website: z.cash :globe_with_meridians:

Not really. If they did, they’d do it to a package like lodash or the Linux kernel, not Zcash. Not important enough, because when its (trivially) detected, the reputation harm is mind boggling. The pro/cons don’t make sense.

Instead, a much more immediate risk is the same thing being done by providers with much less to lose.

For all you know, your ISP can replace builds too (that’s why HSTS exists, to prevent “downgrade” attacks where the ISP blocks port 443 (RST packet emulation) and redirects port 80 traffic to a different server). Checksum verification, ideally with a checksum.sha256 accompanied with checksum.sha256.sig (usually GPG), and the GPG keyring being added to a trusted keystore.

Anyways, I have a spare 2 TB storage server I could host a Git mirror on. It’s in a datacenter with literal guards and 99.995% uptime (Tier 4). But then again, going by the Microsoft probability, if it comes down to Microsoft interfering with GitHub, they’d seize my server too.

1 Like

So what you’re saying is: “Yes, they could but wouldn’t”?
Not the most reassuring answer. :smirking_face:

If you do, might I suggest a GitLab FOSS instance? That’s what they use over at Arch, Debian, Qt, KDE and GNOME; all the big names in FOSS that aren’t Richard Stallman.

I personally use Forgejo/Gitea for my projects, because I always found GitLab clunky, but I’ll def check it out.

1 Like

I don’t think those support groups and subgroups, which - with an ecosystem our size - would be a nice thing to have from the point the forge actually goes somewhere. Those can be nested, used to organize member trust levels, inherit environment variables and all that nice stuff you couldn’t care less about if you’re working alone.

Yes, I know about their In-Q-Tel partnership.

Checksums would protect against replacement by ISPs, but not against injections that occur during the build process. The checksum would be derived from the tampered build.

Random thought: Store patches on-chain, upgrade while syncing.

1 Like

“Store patches on-chain, upgrade while syncing” That’s literally just self-inflicted sandblasting. At 512 bytes per action…

Then again, not entirely implausible.

@gustavovalverde, @arya2, @daira & @conradoplg: Would love to hear your input on OP.