Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-21-2007, 07:40 PM
|
#1
|
LQ Newbie
Registered: Oct 2006
Distribution: Ubuntu 9.10
Posts: 24
Rep:
|
A "recipe" to check server security briefly
Alright, I help run a forum that runs an old version of RedHat and I don't have full access to the server but I do have console access. I intend to check the server every day for weird things happening. If it is possible for anyone to give a list of commands they recommend to run? I can interpret a few things and I notice suspicious stuff easily. Obvious ones are probably lsof and dmesg, any others?
|
|
|
03-21-2007, 09:05 PM
|
#2
|
Member
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449
Rep:
|
Some basic tools to add to that would be last, lastlog, lastb, cat /var/log/secure, top
That is assuming that if your server is compromised, then the intruder hasn't modified those programs to hide their activities (ie, a rootkit)
chkrootkit and rkhunter are some good programs to help detects rootkits, although there are some caveats to look out for in running them. Another good tool is LogWatch which will give you the daily highlights for your log files.
If you're really paranoid and can spend the time setting it up and configuring it, have a look at OSSEC HIDS - I run it on my publicly accessible mail server and it's quite annoying, but I always know when there's something unusual happening...
|
|
|
03-22-2007, 03:51 PM
|
#3
|
LQ Newbie
Registered: Mar 2007
Location: Seattle
Distribution: CentOS, Fedora, Ubuntu
Posts: 17
Rep:
|
netstat -an | grep LISTEN
df -h
uptime
free
Are personal favorites of mine. They're not really about detecting if you've been haxored, but more about detecting if things aren't as you hope they should be. And you can put them in a cron job and get the results emailed to you every day, so you can do that daily check every day without having to remember to log into your box.
|
|
|
03-23-2007, 12:29 AM
|
#5
|
LQ Newbie
Registered: Dec 2003
Location: Toronto,Ontario,Canada
Posts: 18
Rep:
|
you can also install some Host-based Intrusion Detection System and monitor the system, try http://ossec.net which is good one to monitor the server
|
|
|
All times are GMT -5. The time now is 11:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|