News for hackers. Stuff that matters.
Re:NSO Group's iPhone Zero-Days used against a UAE Human Rig... by omgbear on Thursday August 25, 2016 @06:49PM (#12363095)
Tripwire is a linux util for doing just that. However you need some read-only media to store the hashes and I think rootkits can still just intercept the read calls.

http://linux.die.net/man/8/tripwire

Re:NSO Group's iPhone Zero-Days used against a UAE Human Rig... by eriknstr on Thursday August 25, 2016 @07:25PM (#12363263)
Some years ago, I had Tripwire installed for a few days but quickly removed it again because whenever I upgraded installed packages, I'd get a storm of messages about files which had changed and that was just annoying since I was the one who had initiated the action that caused the files to change, but at the same time there were so many files that changed of course, that I had no way of distinguishing legitimate changes (as they all were) from any potential illegitimate changes.
Re:NSO Group's iPhone Zero-Days used against a UAE Human Rig... by bigiain on Thursday August 25, 2016 @09:58PM (#12363859)
That's precisely what it's supposed to do. If you update the Tripwire db every time you "initiate an action that causes monitored files to change" - then it does a _magnificent_ job of telling you when someone _else_ changes those files.

You need to run 'tripwire --update' every time you run 'apt-get update' or 'pip install foo' or 'npm install bah' or whatever - then you wont get that storm of false positives.

Re:NSO Group's iPhone Zero-Days used against a UAE Human Rig... by mcbain on Thursday August 25, 2016 @11:50PM (#12364140)
Honest question from an interested party: have you actually had it alert you about someone else changing the files?

I've been in the previous boat: of having it running on a system I've inherited, and given up because it seemed too much hassle.

Re:NSO Group's iPhone Zero-Days used against a UAE Human Rig... by bigiain on Friday August 26, 2016 @12:29AM (#12364238)
Yes - a few times a year when normal and authorised things or people have unexpectedly changed files in tripwire-protected places, and in ~20 years I think three times when I'd had an intrusion.

Those three timely notifications of real breaches have made 20+ years worth of occasional false positives 100% worth it.

Re:NSO Group's iPhone Zero-Days used against a UAE Human Rig... by ars on Friday August 26, 2016 @02:50AM (#12364678)
On debian you can also use debsums which has the advantage that the checksums come from the distribution directly.
Re:NSO Group's iPhone Zero-Days used against a UAE Human Rig... by locusm on Friday August 26, 2016 @01:54AM (#12364489)
iowatch is a nice simple alternative.