by KyleSanderson · 2y ago · 0 comments
It seems likely to me that Lasse Collin would have one or more long-standing local working copies.
So IMHO injecting malicious changes back in time in the git history seems unlikely to me. But not strictly impossible.
With git, one way to check is if other people still have clones of the xz repository from a time when it was trusted.
If you suspect the repo history has been tampered with, you can check against those copies.
I believe it would be hard to introduce such a history rewrite, since people pulling from the xz repo would start getting git error messages when things don't match up?
I don't know to what degree intentional SHA-1 hash collisions could be used to work around that?
A local GIT repo can be changed (including its history) however you please. But once you have shared it with others you can't take that back. If you try to, then others will notice that the hashes mismatch and that their HEAD diffs uncleanly.
I know the term is infamous here, but GIT is essentially a blockchain. Each commit has a hash, which is based on the hashes of previous commits, forming a linked list (+ some DAG branching).
So it relies on a human noticing and acting upon it. People not noticing backdoors being merged into the project is kinda the source of this problem.
You can't automate checks for malicious code.
https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki#...
There is also a link to "Is Fossil a Blockchain?", an interesting read because the term was mentioned elsewhere is this thread.