LinuxQuestions.org
Help answer threads with 0 replies.
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 05-05-2006, 05:59 PM   #1
jayeola
Member
 
Registered: Dec 2005
Location: london, uk
Distribution: BLAG GNU/Linux
Posts: 58

Rep: Reputation: 15
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
 
Old 05-05-2006, 06:10 PM   #2
hockeyman_102
Member
 
Registered: Apr 2006
Location: Washington
Distribution: Suse, CentOS, Ubuntu
Posts: 124

Rep: Reputation: 15
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.
 
Old 05-05-2006, 09:09 PM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
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).
 
Old 05-05-2006, 10:18 PM   #4
jayeola
Member
 
Registered: Dec 2005
Location: london, uk
Distribution: BLAG GNU/Linux
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks chaps. ssh is now sorted. about to read the hidden files.
 
Old 05-06-2006, 05:43 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
...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.
 
Old 05-06-2006, 01:31 PM   #6
jayeola
Member
 
Registered: Dec 2005
Location: london, uk
Distribution: BLAG GNU/Linux
Posts: 58

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
where can I get rootkit ?? iamthewind Linux - Security 21 05-04-2008 02:57 PM
rootkit? basilogics Linux - Software 2 08-19-2005 09:16 AM
Possible rootkit? bleunuit Linux - Security 4 05-18-2005 04:21 PM
rootkit? linuxtesting2 Linux - Security 3 12-06-2004 09:43 AM
LKM rootkit help GodSendDeath Programming 1 05-01-2004 12:49 PM

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

All times are GMT -5. The time now is 08:52 AM.

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