On Fri, 27 Sep 2002, Rick Moen wrote: > Quoting Ian C. Sison ([EMAIL PROTECTED]): > > > Yes they do. > > > > An 'rpm -Va' will give md5 sum failures for files such as inittab or > > httpd.conf if you even modified it from its original state. > > This is _not_ the whole truth: There is an RPM build option to omit > configuration files from the stored md5 values. Some RPM packages are > built with that option, others are not. Those who use it are doing so > largely because of people getting alarmed at normal, local-system > changes to configuration files.
Well, one learns something new everyday. The RPM based packages ive used so far have md5sums for config files, so its a good thing these possibilities you said get posted and everyone learns from them. > > > And that raises the question of where you have the MD5 sums _stored_. > > > Would that be on the host itself, on media that aren't hardware > > > write-protected? Like, for example, /var/lib/rpm/* ? If so, what > > > reason do you have to trust that those MD5 sums haven't been changed by > > > the intruder? > > > > The only way an intruder can change that is to use RPM itself to 'update' > > packages on your system. > > That is absolutely incorrect, and I'm disapointed that you would claim > that. The RPM database is a simple BerkeleyDB database! Hello! This > is documented, Ian! It's not some super-secret protected storage > facility. ... which the most common of rootkits don't care to touch anyway. But that's beside the point. I promised not to nitpick on details. \8) You are 100% correct about that. As i said, sometimes you can use rpm, sometimes not. In the cases that you can, your work to find out where the breakin happened and what files are alien to your system becomes much easier. Part of securing a compromised box is finding out how and where the illegal entry was made and what was done to the system. Simply reformatting or reinstalling the system immediately does not help, because you should find out the weakness in your security or it will happen again. > So, to reiterate: A clean "rpm -Va" result doesn't mean _jack_. That's > imaginary, toy security. ... in just the same was as a clean 'chkrootkit' result gives. There's no cure-all for detecting intrusion. Some tools work better than others. Sometimes the reverse is true given another situation. But it would be nice to know what these tools provide so that when faced with an actual intrusion, one has the knowledge ready to handle such situations wisely. _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
