Re:Zed Editor automatically downloads binaries and NPM packa...
by g-b-r on Monday July 08, 2024 @03:01AM
(#40903198)
GitHub release builds provide no whatsoever guarantee of having been built by GitHub from the corresponding source, if I remember correctly
[ Parent
| on HN ]
Re:Zed Editor automatically downloads binaries and NPM packa...
by theultdev on Monday July 08, 2024 @03:06AM
(#40903218)
So the worry is the Zed team themselves will inject something into the binary?
Re:Zed Editor automatically downloads binaries and NPM packa...
by broeng on Monday July 08, 2024 @03:23AM
(#40903299)
The xz backdoor was an example of exploiting this disconnect. It was not present in the repository, it was inserted only into the release artifacts. Anyone getting xz by checking out the repository and building it themselves, would not be affected by it.
Re:Zed Editor automatically downloads binaries and NPM packa...
by nijave on Monday July 08, 2024 @07:24AM
(#40904410)
I think that's a slight mischaracterization. It was present in the repo but obfuscated and rigged to only apply in release artifacts.
A sufficiently technical user could have found it but that bar was pretty high to clear.
Re:Zed Editor automatically downloads binaries and NPM packa...
by broeng on Monday July 08, 2024 @08:45AM
(#40904923)
I'm pretty sure that's incorrect. One portion of the build-to-host buildfile was only present in the release tarball.
Re:Zed Editor automatically downloads binaries and NPM packa...
by nijave on Tuesday July 09, 2024 @07:39AM
(#40914910)
Right but it was injected from data in a "corrupt" xz file in the repo under certain conditions
>This injects an obfuscated script to be executed at the end of configure. This script is fairly obfuscated and data from "test" .xz files in the repository.
>The files containing the bulk of the exploit are in an obfuscated form in tests/files/bad-3-corrupt_lzma2.xz tests/files/good-large_compressed.lzma committed upstream
Re:Zed Editor automatically downloads binaries and NPM packa...
by wlamartin on Monday July 08, 2024 @08:02AM
(#40904600)
Ah, I think you might be pleasantly surprised that this is an area being focused on right now with attestations[1] for example, here are the attestations for the GitHub CLI[2].
1: https://github.blog/2024-05-02-introducing-artifact-attestat...
Re:Zed Editor automatically downloads binaries and NPM packa...
by g-b-r on Wednesday July 10, 2024 @12:25PM
(#40928589)
Maybe this whole cryptographic stuff has some use, but all that which was needed was for GitHub to declare when a file was uploaded manually and when by a workflow (specifying which workflow).
This looks so complex that it might well be just smoke and mirrors