LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-19-2019, 05:59 PM   #1
Chrislw324
Member
 
Registered: Oct 2018
Posts: 40

Rep: Reputation: Disabled
Rootkit Hunter tells me I have possible rootkits


I put Linux Mint Cinnamon on my laptop and was just installing various software from the software manager. I installed rootkit hunter, ran it, and these were in the results.

File Properties Check
Suspect Properties: 1

Rootkit Checks
Possible Rootkits: 8



The FAQ for the software actually told me to check out here, so here I am.



FAQ
https://sourceforge.net/p/rkhunter/r...tree/files/FAQ
 
Old 04-19-2019, 06:05 PM   #2
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 216

Rep: Reputation: 208Reputation: 208Reputation: 208
How did you get so many?

Which ones were they?

Guessing some are false positives. That or you're pretty hosed.
 
Old 04-19-2019, 06:16 PM   #3
ChuangTzu
Senior Member
 
Registered: May 2015
Location: Where ever needed
Distribution: Slackware/Salix while testing others
Posts: 1,718

Rep: Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857
rkhunter is notorious for false positives especially 1.4.6 version.

https://help.ubuntu.com/community/RKhunter
https://www.linuxquestions.org/quest...hunter-780043/
https://www.linuxquestions.org/quest...ts-4175626755/

Best advice is to check the rkhunter logs, look at what it "found" and make an educated decision after searching for those discoveries online. You can also login to tty and run rkhunter without your DE and programs running, often times in newer versions of rkhunter, things will show up as large memory use and its fine. Don't panic, its probably false positives, research more....

You can also double check with chkrootkit and lynis.

Code:
sudo apt install chkrootkit lynis && sudo chkrootkit && sudo lynis audit system

Last edited by ChuangTzu; 04-19-2019 at 06:23 PM.
 
Old 04-19-2019, 06:42 PM   #4
Chrislw324
Member
 
Registered: Oct 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
I ran it again. This time 1 suspect file but only 5 "rootkits"


Checking for hidden files and directories: [WARNING]
hidden directory found /etc/.java



Some of the warnings I found in the log:
/usr/bin/lwp-request

[19:15:24] Warning: The command '/usr/bin/lwp-request' has been replaced by a script: /usr/bin/lwp-request: Perl script text executable

[19:15:27] Info: Found file '/bin/egrep': it is whitelisted for the 'script replacement' check. (a few more of this kind)


I assume these are false positives?
chkrootkit found nothing

Last edited by Chrislw324; 04-19-2019 at 06:45 PM.
 
Old 04-19-2019, 06:50 PM   #5
ChuangTzu
Senior Member
 
Registered: May 2015
Location: Where ever needed
Distribution: Slackware/Salix while testing others
Posts: 1,718

Rep: Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857
Most likely, did it find any large share memory segments? Those are almost always false positives as rkhunter is really designed for servers and not workstations with DE's.

You can also run it as:
Code:
sudo rkhunter --rwo
Which will only report warnings, that way you don't go blind reading the scrolls.

Last edited by ChuangTzu; 04-19-2019 at 06:52 PM.
 
Old 04-19-2019, 06:53 PM   #6
Chrislw324
Member
 
Registered: Oct 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
It did

Info: Starting test name 'ipc_shared_mem'
[19:15:57] Info: The minimum shared memory segment size to be checked (in bytes): 1048576 (1.0MB)
[19:15:57] Checking for suspicious (large) shared memory segments [ Warning ]
[19:15:57] Warning: The following suspicious (large) shared memory segments have been found:
[19:15:57] Process: /usr/bin/mate-panel PID: 1448 Owner: chris Size: 4.0MB (configured size allowed: 1.0MB)
[19:15:57] Process: /usr/bin/caja PID: 1452 Owner: chris Size: 4.0MB (configured size allowed: 1.0MB)
[19:15:57] Process: /usr/bin/caja PID: 1452 Owner: chris Size: 64MB (configured size allowed: 1.0MB)
[19:15:57] Process: /usr/bin/nm-applet PID: 1478 Owner: chris Size: 4.0MB (configured size allowed: 1.0MB)
[19:15:57] Process: /usr/bin/mate-terminal PID: 15297 Owner: chris Size: 4.0MB (configured size allowed: 1.0MB)
 
Old 04-19-2019, 06:56 PM   #7
ChuangTzu
Senior Member
 
Registered: May 2015
Location: Where ever needed
Distribution: Slackware/Salix while testing others
Posts: 1,718

Rep: Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857
All good...that's why it reports as "possible rootkits". Always read the logs then investigate, in this case it sees the DE programs as being suspicious since they are using alot of shared memory, however, as long as you used the official repos then your good. Note:
Code:
sudo rkhunter --help
is beneficial as well.

Lynis is a much more comprehensive hunter then just rkhunter alone, also has a nifty benefit of making suggestions on how to harden/secure your system.
Code:
 sudo lynis audit system

Last edited by ChuangTzu; 04-19-2019 at 06:57 PM.
 
Old 04-19-2019, 07:06 PM   #8
Chrislw324
Member
 
Registered: Oct 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
Thanks guys. Appreciate it
 
Old 04-20-2019, 12:10 PM   #9
RickDeckard
Member
 
Registered: Jan 2014
Location: Canton, Georgia, USA
Distribution: Debian 12
Posts: 205

Rep: Reputation: Disabled
Those false positives are by design.

Rkhunter is an anomaly-based checker, meaning that it will search for last known good properties of a file (ctime,atime,mtime,sha256 hash etc) from the baseline which you would make with the "--propupd" command. Hopefully before your first run of Rkhunter post-install.

It will interpret any deviations as a warning. Your job is to determine whether those deviations are benign (from a package update that you commanded via apt-get) or something else.

If it finds files that you're still unsure about, can't remember updating, you can cross check their Rkhunter "current checksum" with the stat command and update history logs.
 
Old 05-04-2019, 04:56 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Bit late but also consider RKH is a post-incident anomaly checker, meaning 0) you should use it as part of a hardened setup as per SANS / Cisecurity / OWASP / common sense / your distro's pointers and 1) you should not rely on RKH as your sole instrument for detecting anomalies but include "early warning" tools be it Samhain in daemon mode, audit daemon, et cetera. Also also consider RKH hasn't been updated and released by John or me in -=[ ages ]=-.
 
  


Reply



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
rootkit hunter false positive for Xzibit Rootkit on CentOS 4.8? abefroman Linux - Security 2 12-20-2009 08:19 AM
Rootkit Hunter: req dev help (OSX rootkits) unSpawn Linux - Security 3 10-09-2009 10:57 AM
Announce: Rootkit Hunter mailinglist unSpawn Linux - Security 0 01-25-2006 04:23 PM
DISCUSSION: The Rootkit Hunter jeremy LinuxAnswers Discussion 0 10-10-2005 07:36 PM
Rootkit hunter question NNP Linux - Security 1 07-03-2005 06:48 AM

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

All times are GMT -5. The time now is 11:38 PM.

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