Download files
wget http://www.ossec.net/files/ossec-hids-latest.tar.gz
wget http://www.ossec.net/files/ossec-hids-latest_sum.txt
Check the MD5 or SAH1 to make sure they are legit (Don't skip!!)
md5sum ossec-hids-latest.tar.gz
cat ossec-hids-latest_sum.txt
Extract the files from the tar
tar zxvf ossec-hids-latest.tar.gz
Cd into the directory and run the installer **
cd ossec-hids-latest/
./install.sh
If you are not running a local install make sure to adjust the firewall
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p udp --dport 1514 -j ACCEPT
Start the service
/var/ossec/bin/ossec-control start
**Before you install this program you will need to make sure that you have a compiler installed, such as gcc.
That's all there is to it! You should see the service start successfully and the monitoring will begin. My recommendation from here would be to looking through /var/ossec/logs/ to see what the system is reporting as well as /var/ossec/etc to make any adjustments to the configuration files as you see fit. I'm sure there are going to be directories and files that you don't want monitored because they change so frequently. Currently I'm using this on my Apache servers which sit in the DMZ so its good to see the reporting from OSSEC as well as the firewall rules you can tune within the program.
I just went through exactly the same exercise as you yesterday. Installed ossec server on a linux VM and put agents on all of my Windows and Linux systems. One recommendation: ossec-wui for viewing and searching the results.
ReplyDeleteFirst thing I'm adding to my to-do list every morning: review Level 7 and greater events.
This is a great product and a MUST if you want to know what's going on in your network.
Good post.
Thanks.
ReplyDeleteI actually saw ossec-wui and would recommend it for anyone who likes GUI or web reports. I didn't include it however because all my logs are parsed by custom scripts I've written.
Writing a ossec-wui isn't hard with a little practice.
how the ossec checks the system log files and how can we get an idea about that
ReplyDelete