this post was submitted on 26 Jul 2026
14 points (81.8% liked)
Arch Linux
9878 readers
2 users here now
The beloved lightweight distro
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What is it you look for in the diffs more specifically?
The first thing to check is that the software is being downloaded from the correct place. Look for additional downloads and make sure they're legit. Look for obfuscated code. If you're not sure, ask.
Not that it is a replacement to doing it manually, but if I were to write a script to look at "important" pieces, what should I be grepping?
You need to look at all the changes or if you are installing it, the whole package build file.
You have to have some expectations and understandings of what the PKGBUILD for the package should be doing and look for something out of the ordinary. The upstream repo will usually have packaging instructions in its readme or wiki which should be reflected in the PKGBUILD.
In the case of the last incident, the attacker was adding
npmas a dependency so they could executenpm install atomic-lockfile, which was the actual attack. That was a huge red flag because most of the packages had nothing to do with JavaScript.Anything that could compromise your security, privacy, anonymity or safety.