Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub releases are vulnerable to insider risk #1410

Open
korran opened this issue Mar 15, 2024 · 3 comments
Open

GitHub releases are vulnerable to insider risk #1410

korran opened this issue Mar 15, 2024 · 3 comments

Comments

@korran
Copy link
Collaborator

korran commented Mar 15, 2024

When releasing a new version, the "Nightly Release' workflow builds the firmware into a zip file and a "GitHub Release" is created for a repo (for example, see the rt-1.0.0 release).

Unfortunately, anyone with write access to the caliptra-sw or caliptra-rtl repositories can modify the released artifacts, without any additional review or audit logging. You can imagine a scenario where an insider modifies the release to add a backdoor, a vendor downloads the release to integrate in their project, and later the insider switches the binary back to the original version to hide the evidence.

Potential solutions:

  1. Delete all releases and require vendors to checkout the repo and build it themselves.
  2. Publish artifacts into a "caliptra-releases" git repo.
  3. Publish artifacts to our GitHub Pages site.
@steven-bellock
Copy link
Contributor

Presumably 2 and 3 have tighter access controls than the current repositories? Ie, only one or two folks would be able to publish there.

@korran
Copy link
Collaborator Author

korran commented Mar 18, 2024

With 2, we would place the artifacts into the git repository itself, which can use branch protection rules to enforce security policy.

With 3, the GHA workflows would be responsible for publishing the binaries, and changing those workflows would require a PR that has to pass the branch protection rules.

In both cases, although this protects the artifacts from repo writers, the few folks with "maintainer" privileges would still have the ability to change the settings and publish malware.

@steven-bellock
Copy link
Contributor

This is quite prescient given the xz backdoor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants