Linux - SecurityThis 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.
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.
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?
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.