LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-24-2008, 10:24 PM   #16
jim.thornton
Member
 
Registered: May 2007
Posts: 430

Original Poster
Rep: Reputation: 19

Quote:
Originally Posted by Hangdog42 View Post
You're close, but not quite there yet. You really have to do three things:

1) Set up an aide.conf file that tells Aide what directories to scan, and what to avoid. There should be an example file in the source code.
2) Run aide --update --config=/path/to/aide.conf This will establish a database of file signatures for using in future scans
3) Set up an Aide cron job to have it run on a regular basis. Mine runs once a day.
4) (OK, I lied about three things to do) Make an off-computer backup of your aide database.

If you want to be really paranoid, you could store the working copy of the aide database on a non-writable disk like a CD, but I've found it to be an acceptable risk to leave the aide database accessible on the hard drive and if I have suspicions, copy the backup and re-run aide. In my opinion, having and off computer backup is NOT optional.
Great! Thanks, but how do I know what files to scan??
 
Old 01-25-2008, 07:25 AM   #17
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
That really depends upon your level of paranoia and the amount of log reading you want to do. I've got mine set up to scan the entire system except for a few directories that change constantly. I've excluded /sys, /dev, /proc and /tmp for pretty much that reason. Now be aware that many crackers will work in /tmp precisely for the same reason: it changes so much that people rarely really monitor it. I'm going on the assumption that if I do get cracked, the bad guys will have to first modify files in directories that I do monitor before they can really set up shop in /tmp. I also exclude several directories in /var like /var/logs and /var/lib/mysql where I've got my databases stored and I also exclude my /home directory. They just created too much noise in the reports.

It ends up being a little bit of give and take to find the number of directories to monitor versus the size of the report Aide will generate. I would start by monitoring a bit much and then pare back as you learn what directories just generate noise. But like I said, where that line is drawn is pretty much dependent on your own level of paranoia.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_security kingtas Linux - Security 4 01-20-2008 04:53 PM
mod_security shafey Linux - Security 2 12-22-2007 08:33 AM
mod_security problem bytez Linux - Security 2 10-01-2006 08:09 PM
Problem installing mod_security under SUSE Linux 10 Tomo3000 Linux - Software 0 02-10-2006 08:42 AM
mod_security ridertech Linux - Security 1 09-01-2004 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration