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.
|
|
05-05-2006, 05:59 PM
|
#1
|
Member
Registered: Dec 2005
Location: london, uk
Distribution: BLAG GNU/Linux
Posts: 58
Rep:
|
rootkit warnings - they serious?
Etract of warnings from rootkithunter. Checked whole system and got this message. Then ran `file` on the suspect files. are these warnings false positives?
Code:
* Filesystem checks
Checking /dev for suspicious files... [ OK ]
Scanning for hidden files... [ Warning! ]
---------------
/dev/.udev.tdb /usr/share/man/man1/..1.gz /etc/.pwd.lock
---------------
Please inspect: /usr/share/man/man1/..1.gz (gzip compressed data, from Unix, max compression)
* Check: SSH
Searching for sshd_config...
Found /etc/ssh/sshd_config
Checking for allowed root login... Watch out Root login possible. Possible risk!
info:
Hint: See logfile for more information about this issue
Checking for allowed protocols... [ Warning (SSH v1 allowed) ]
* Check: Events and Logging
Search for syslog configuration... [ OK ]
Checking for running syslog slave... [ OK ]
Checking for logging to remote system... [ OK (no remote logging) ]
/dev/.udev.tdb: TDB database version 6, little-endian hash size 131 bytes
/usr/share/man/man1/..1.gz: gzip compressed data, from Unix, max compression
/etc/.pwd.lock: empty
|
|
|
05-05-2006, 06:10 PM
|
#2
|
Member
Registered: Apr 2006
Location: Washington
Distribution: Suse, CentOS, Ubuntu
Posts: 124
Rep:
|
looks like its just warning you that ssh is allowing the login of root which if not behind a firewall could be brutforced and very malicious. I didn't see anything there to really worry about though as long as your root password is a good one, and/or your have a good firewall.
|
|
|
05-05-2006, 09:09 PM
|
#3
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
Files outside user homedirs that have filenames prefixed with '.' (aka hidden files) are flagged by chkrootkit. Follow the advice in the output and manually inspect their contents to make sure that they do not contain anything malicious.
As per hockeyman's advice, if the machine is accessible from the internet then modify the sshd config file to disallow root logins to prevent bruteforce attempts (which are *very* common lately). Also modify the sshd config so that the daemon is using only SSH protocol 2 and not protcol 1 (or both) as protocol 1 is insecure. Change the directive reading: #Protocol 2,1 to read: Protocol 2 (note the # is removed as well to uncomment it).
|
|
|
05-05-2006, 10:18 PM
|
#4
|
Member
Registered: Dec 2005
Location: london, uk
Distribution: BLAG GNU/Linux
Posts: 58
Original Poster
Rep:
|
Thanks chaps. ssh is now sorted. about to read the hidden files.
|
|
|
05-06-2006, 05:43 AM
|
#5
|
Moderator
Registered: May 2001
Posts: 29,415
|
...and if you have external means (file integrity checker like Aide, Samhain or even tripwire, or your distributions package manager) of verifying the integrity of the dot aka "hidden" files, have a look at rkunter.conf for examples on how to suppress reporting "known good" dot files.
|
|
|
05-06-2006, 01:31 PM
|
#6
|
Member
Registered: Dec 2005
Location: london, uk
Distribution: BLAG GNU/Linux
Posts: 58
Original Poster
Rep:
|
I'm running iptables and behind a dedicated adsl router. Would be very surprised I this box was comprimised. However it's never good to take these things for granted. Thanks for the tips chaps.
|
|
|
All times are GMT -5. The time now is 08:52 AM.
|
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
|
|