[SOLVED] Rkhunter warning

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

[SOLVED] Rkhunter warning

Post by Menard »

- Checking for suspicious (large) shared memory segments : WARNING
- Checking for hidden files and directories : WARNING


suspect files : 1
possible rootkits : 5

applications check : all checks skipped >>> (?)

see the logfile >> not access

chkrootkit

Searching for suspicious files and dirs, it may take a while... The following suspicious files and directories were found:
/usr/lib/python3/dist-packages/tldextract/.tld_set_snapshot /usr/lib/modules/5.11.0-27-generic/vdso/.build-id /usr/lib/modules/5.11.0-37-generic/vdso/.build-id /usr/lib/jvm/.java-1.11.0-openjdk-amd64.jinfo /usr/lib/debug/.build-id /usr/lib/debug/.dwz
/usr/lib/modules/5.11.0-27-generic/vdso/.build-id /usr/lib/modules/5.11.0-37-generic/vdso/.build-id /usr/lib/debug/.build-id /usr/lib/debug/.dwz


No matter viruses and security on Linux ? :mrgreen:
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
User avatar
all41
Level 19
Level 19
Posts: 9518
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Rkhunter warning

Post by all41 »

Don't just take my word---search around to understand why these are false positives.

search this as example:
rkhunter false positives linux
Everything in life was difficult before it became easy.
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Rkhunter warning

Post by Menard »

It is cool so ... we cannot do better to help the persons who use viruses and rootkits to stay undetected ...
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
User avatar
karlchen
Level 23
Level 23
Posts: 18204
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Rkhunter warning

Post by karlchen »

Hello, Menard.

Please, be so kind to inspect the rkhunter.log file, by now it may have been renamed to rkhunter.log.old.
Locate the suspected file and the listed 5 processes, which alledgedly have allocated suspiciously large SHM.
Share the corresponding complete logfile sections here.
Somebody will be able to explain to you how to intepret them.

Secifically on accessing the rkhunter logfiles:
Menard wrote: Thu Oct 28, 2021 3:08 amsee the logfile >> not access
rkhunter logfiles require root privileges to read them. Means will have to prefix the sudo command to any command which you use in order to read the files.

How to access:
Go to the directory /var/log. cd /var/log
List the existing rkhunter logfiles: ls -l rkhunter.log*
The rkhunter scan results will either be found in the file rkhunter.log or in rkhunter.log.old.
Inspect the rkhunter.log file or the rkhunter.log.old:
sudoedit rkhunter.log / sudoedit rkhunter.log.old

Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
User avatar
karlchen
Level 23
Level 23
Posts: 18204
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Rkhunter warning

Post by karlchen »

General piece of advice, not addressed just to Menard:
  • In case you do not bother to read the rkhunter or chkrootkit manpages,
  • In case you do not understand how rkhunter or chkrootkit work, how they have to be configured and how they have to be used
  • In case you are not able to interpret their output
  • In case you are not willing to search for similar, already reported and explained warnings in this forum
In all these cases, do yourself and us a favour and do not use these applications.
They will very likely give you a heart attack or a false feeling of being completely safe.
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Rkhunter warning

Post by Menard »

OK thanks

but anyway I see that this question got no answer on 6 monthes https://askubuntu.com/questions/1319167 ... -positives :shock:
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Rkhunter warning

Post by Menard »

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

Warning: The following suspicious (large) shared memory segments have been found:
[08:20:42] Process: /usr/libexec/csd-background PID: 1372 Owner: u1 Size: 64MB (configured size allowed: 1,0MB)
[08:20:42] Process: /usr/bin/nemo-desktop PID: 1540 Owner: u1 Size: 4,0MB (configured size allowed: 1,0MB)
[08:20:42] Process: /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 PID: 1551 Owner: u1 Size: 4,0MB (configured size allowed: 1,0MB)
[08:20:42] Process: /usr/lib/libreoffice/program/soffice.bin PID: 22414 Owner: u1 Size: 16MB (configured size allowed: 1,0MB)
[08:20:42] Process: /usr/libexec/gnome-terminal-server PID: 23005 Owner: u1 Size: 4,0MB (configured size allowed: 1,0MB)
[08:20:42]
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
User avatar
karlchen
Level 23
Level 23
Posts: 18204
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Rkhunter warning

Post by karlchen »

Menard wrote: Thu Oct 28, 2021 3:47 am /usr/bin/lwp-request [ Warning ]
[08:19:32] Warning: The command '/usr/bin/lwp-request' has been replaced by a script: /usr/bin/lwp-request: Perl script text executable
rkhunter assumes that malware (rootkits) may have replaced the genuine binary file lwp-request by a Perl script.
Malicious goal: injecting additional malicious activity into lwp-request, before at the end invoking the genuine lwp-request binary.

But:
On Ubuntu based Linux distributions like Ubuntu itself and Linux Mint, lwp-request is a Perl script by design. So rkhunter is not right in this case.

Solution on Ubuntu/Mint:
Whitelist the lwp-request in the rkhunter configuration file /etc/rkhunter.conf.
(You can edit the file /etc/rkhunter.conf with root privileges only. Look for the word "lwp-request". Whitelist it.)

Menard wrote: Thu Oct 28, 2021 3:47 am Warning: The following suspicious (large) shared memory segments have been found:
[08:20:42] Process: /usr/libexec/csd-background PID: 1372 Owner: u1 Size: 64MB (configured size allowed: 1,0MB)
[08:20:42] Process: /usr/bin/nemo-desktop PID: 1540 Owner: u1 Size: 4,0MB (configured size allowed: 1,0MB)
[08:20:42] Process: /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 PID: 1551 Owner: u1 Size: 4,0MB (configured size allowed: 1,0MB)
[08:20:42] Process: /usr/lib/libreoffice/program/soffice.bin PID: 22414 Owner: u1 Size: 16MB (configured size allowed: 1,0MB)
[08:20:42] Process: /usr/libexec/gnome-terminal-server PID: 23005 Owner: u1 Size: 4,0MB (configured size allowed: 1,0MB)
[08:20:42]
rkhunter assumes that processes which allocate large chunks of shared memory segments are suspicious, because malware (rootkits) might have injected themselves into such processes.
The problem with this assumption is:
+ legitimate processes may allocate large shared memory segments
+ the rkhunter default maximum size limit of 1 MB is very small
Result:
rkhunter is extremely likely to list genuine unmodified application processes as "potential rootkits".

This is what we see here as well.
(I could run rkhunter here on LM 19.3 Cinnamon and rkhunter would "flag" almost the same processes here as well.)

Please, look at the process names and their complete pathnames. They are all genuine system processes (csd-background, nemo-desktop, polkit-gnome-authentication-agent-1) or genuine application processes (Libre Office soffice.bin and gnome-terminal-server).

Solution:
To avoid such false positives you can whitelist precisely theses processes (giving the pathnames specified in the rkhunter logfile) in the rkhunter configuration file /etc/rkhunter.comf.


General issues with rkhunter (scan results):
  • rkhunter assumes that the first rkhunter run has been done on a clean system.
  • rkhunter compares the current scan results with the scan results from its previous run for many of its checks.
  • It will display differences as "suspicious". -> The verification however is left to the user, who invoked rkhunter.
  • rkhunter defines a limit for the not suspicious size of shared memory segments. The limit is very low and pretty arbitrary. -> It will flag genuine processes as "suspected of being rootkit activity", based on a pretty questionable assumption.
  • In the end the user has to decide, which of the rkhunter findings really spells danger and which all are "false positives".
  • In case all findings have been cleared up as "false positives", the user has to execute sudo rkhunter --propupd in order to make sure that rkhunter honours the current state of executable files as "clean" in future.
  • In case all findings have been cleared up as "false positives", the user may have to whitelist certain files or processes in /etc/rkhunter.conf in order not to be presented the same "false positives" over and over again in future.
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
User avatar
Pjotr
Level 24
Level 24
Posts: 20048
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Rkhunter warning

Post by Pjotr »

Best practical solution for (probably) 99.99 % of all Mint desktop users: simply don't install rkhunter and the like. For (probably) 99.99 % of all desktop users, that stuff is completely useless and only a major nuisance.

@Menard: That might not be what you wish to hear, because security snake oil is addictive. But it's the truth.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: Rkhunter warning

Post by Hoser Rob »

karlchen wrote: Thu Oct 28, 2021 3:42 am General piece of advice, not addressed just to Menard:
  • In case you do not bother to read the rkhunter or chkrootkit manpages,
  • In case you do not understand how rkhunter or chkrootkit work, how they have to be configured and how they have to be used
  • In case you are not able to interpret their output
  • In case you are not willing to search for similar, already reported and explained warnings in this forum
In all these cases, do yourself and us a favour and do not use these applications.
They will very likely give you a heart attack or a false feeling of being completely safe.
+1. These are sysadmin tools designed for experts.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Rkhunter warning

Post by Menard »

Pjotr wrote: Thu Oct 28, 2021 4:26 am Best practical solution for (probably) 99.99 % of all Mint desktop users: simply don't install rkhunter and the like. For (probably) 99.99 % of all desktop users, that stuff is completely useless and only a major nuisance.

@Menard: That might not be what you wish to hear, because security snake oil is addictive. But it's the truth.
Online mobbing is also a truth, so when it is you it is the 0.01% especially with the fixed IP that are imposed to us
I have had a protection on the steering wheel against thieves for more than 20 years and it was useful, the others had all to regret not to have had it one day or another
Last edited by Menard on Sat Oct 30, 2021 4:35 am, edited 1 time in total.
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
User avatar
Pjotr
Level 24
Level 24
Posts: 20048
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Rkhunter warning

Post by Pjotr »

Menard wrote: Sat Oct 30, 2021 4:30 am
Pjotr wrote: Thu Oct 28, 2021 4:26 am Best practical solution for (probably) 99.99 % of all Mint desktop users: simply don't install rkhunter and the like. For (probably) 99.99 % of all desktop users, that stuff is completely useless and only a major nuisance.

@Menard: That might not be what you wish to hear, because security snake oil is addictive. But it's the truth.
Online mobbing is also a truth, so when it is you it is the 0.01% especially with the fixed IP that are imposed to us
I fail to see what you mean.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
karlchen
Level 23
Level 23
Posts: 18204
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Rkhunter warning

Post by karlchen »

Hi, Pjotr.
Menard digresses thus taking his own thread offline. There is no need to comment on each and every post, particularly not in cases where the message is unrelated to the thread topic. :wink:
Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Rkhunter warning

Post by Menard »

Pjotr wrote: Sat Oct 30, 2021 4:34 am
I fail to see what you mean.
This statistic means nothing as soon as you are targeted, and even without because for cars you may have a little risk somewhere but these risks cumulated on a period as 30 years are an almost 100% risk
And the one unique public IP by customer provided by the ISPs has raised this risk
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
User avatar
karlchen
Level 23
Level 23
Posts: 18204
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Rkhunter warning

Post by karlchen »

Hello, Menard. Hello, folks.

Please stay on topic. The topic is Rkhunter.

Menard, I wonder whether your questions concerning Rkhunter have been answered by now or not.
In case you still have got questions concerning Rkhunter, you might like to ask them.

Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Rkhunter warning

Post by Menard »

karlchen wrote: Sat Oct 30, 2021 6:45 am Hello, Menard. Hello, folks.

Please stay on topic. The topic is Rkhunter.

Menard, I wonder whether your questions concerning Rkhunter have been answered by now or not.
In case you still have got questions concerning Rkhunter, you might like to ask them.

Regards,
Karl
Yes I think it is solved
Regards
Philippe :D
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
Locked

Return to “Software & Applications”