News for hackers. Stuff that matters.
Re:Git archive checksums may change by vlovich123 on Tuesday January 31, 2023 @12:34AM (#34591582)
It’s not just about the integrity of the files you’re processing, but also the integrity of the archive itself. If you extract the tarball from a random place, there’s a larger security risk. Now granted HTTPS probably mitigates a lot of it, but cert pinning isn’t that common so MITM attacks aren’t thaaat theoretical.
Re:Git archive checksums may change by ilyt on Tuesday January 31, 2023 @02:51AM (#34592499)
You can do validation in flight during extraction. Signed file manifests are how distros like Debian did it since forever, althought in their cases its two step process, the packages themselves contain their own signature and whole directory tree also gets signed (to avoid shenaningans like "attacker putting older, still vulnerable, but signed version into the repo)