Watching Under The Hood Of Tiger's Spotlight 43
jaketheitguy writes "Over at KernelThread.com, Amit Singh has released a commandline app called FSLogger for looking under the hood of Tiger's Spotlight. You can watch all kinds of filesystem changes going on in realtime. The utility apparently intercepts and displays filesystem change data as it goes out to Spotlight from the kernel. It even tells you which app is making the changes. Looks like Apple has included some pretty powerful API's in Tiger and there may be some othre really interesting uses of this API as mentioned on the app's page. I for one would really like to be able to tell if somebody changed ANY files on my system without my knowledge. I think you can do that with Singh's program, but how do you make sure somebody cannot disable the program?"
This story seems utterly confused. (Score:1, Informative)
Tripwire (Score:3, Informative)
http://www.tripwire.com/ [tripwire.com]
http://sourceforge.net/projects/tripwire/ [sourceforge.net]
There is even a Mac OS X version now it seems:
http://www.macguru.net/~frodo/Tripwire-osx.html [macguru.net]
Of course you'd probably then want an OS that implements some form of relevant Mandatory Access Control / POSIX.1e (e.g. LIDS for Linux, Trusted Solaris, or Argus Pitbull (Linux/Solaris)) to help prevent the intruder from interfering with Tripwire itself.
Re:Where's "As Seen on TV" ... (Score:1, Informative)
Tracking changes to the file system (Score:3, Informative)
Take a look at the kqueue(2) man page.
There are more details available at http://people.freebsd.org/~jlemon/papers/kqueue.pd f [freebsd.org]
Tripwire (Score:2, Informative)
- Tripwire is not a real-time service, it's scheduled to run at specific (user-defined) times.
- Tripwire does not prevent anyone from making changes - it merely ensures that any changes to the OS are recorded and made visible to you.
That said, Tripwire is a very functional tool with excellent scripting and integration potential. Plus, it has a good amount of internal security - unless you know the relevant passphrases, you cannot subvert the product. If you root the box you can always uninstall it, but you can't tamper with the database or policy to hide your changes or trick Tripwire into sending a false 'all clear' message.
As with all such tools, it's best to check it out and evaluate it for yourself to see how it works for you.
Re:Tripwire (Score:3, Informative)
Fslogger runs continuously and registers itself with the kernel, when a filesystem change event happens details about it are announced to all registered apps and fslogger displays the information it receives in a useful (if verbose) manner.
Tripwire is a fantastically useful app which I run on every one of the servers I admin, and perhaps the OSX version could be extended to make use of the same kernel interfaces that fslogger is using.
Tripwire runs once per day (however often you wish to run it), and scans the filesystem checking each file to see if it matches a checksum calculated at some known time in the past. This is useful on mission critical servers because outside of data / user directories changes should happen very infrequently. Tripwire is a robust way of confirming that a server has the same configuration on a day to day basis.
The startling difference between tripwire and fslogger should be obvious, tripwire has no mechinism to know when a file has changed except by looking at the file directly, fslogger has no mechinism to know if the event is important or not and no mechinism to notify an administrator of the event short of scrolling it by in a terminal.
With tripwire you could delete a file, recreate it from backup and so long as you was careful tripwire would never know. fslogger would display every step you took but would not know if the final step returned the filesystem to its original state.
Different tools with different behaviours for different target users presenting different information in a different manner.
So, to dispute your original assertation,
"Actually you can get this functionality already in a long standing Unix utility called Tripwire."
No, nothing fslogger does is replicated by tripwire and nothing tripwire does is replicated by fslogger.