LinuxQuestions.org
Help answer threads with 0 replies.
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 11-09-2009, 02:51 AM   #1
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
rkhunter gives warning on LD_LIBRARY_PATH


Hello all,

I recently installed and started using rkhunter and I have this warning that I cannot figure out how to resolve it. When running rkhunter I get the following:
Code:
[ Rootkit Hunter version 1.3.2 ]

Checking system commands...

  Performing 'strings' command checks
    Checking 'strings' command                               [ OK ]

  Performing 'shared libraries' checks
    Checking for preloading variables                        [ None found ]
    Checking for preload file                                [ Not found ]
    Checking LD_LIBRARY_PATH variable                        [ Warning ]
in more detail from the log
Code:
[09:24:58] Performing 'shared libraries' checks
[09:24:58] Info: Starting test name 'shared_libs'                             
[09:24:58] Checking for preloading variables                 [ None found ]
[09:24:58] Checking for preload file                         [ Not found ]
[09:24:58] Info: Starting test name 'shared_libs_path'             
[09:24:58] Checking LD_LIBRARY_PATH variable                 [ Warning ]             
[09:24:59] Warning: The LD_LIBRARY_PATH environment variable is set and can influence binaries: set to: /usr/lib/oracle/10.2.0.4/client/lib
[09:24:59]
The LD_LIBRARY_PATH variable contains:
Code:
srvnagios:~# echo $LD_LIBRARY_PATH 
/usr/lib/oracle/10.2.0.4/client/lib
which is the Oracle client, needed by Nagios to perform database checks.

My question is: how and/or in which config file do I tell rkhunter that this variable is legitimate?

Kind regards,

Eric
 
Old 11-09-2009, 04:04 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Is there any reason that you can't simply unset your LD_LIBRARY_PATH before running rkhunter?

Edit: OOps, sorry, should have read your post more carefully: it is need for one of the checks.

Edit2: Ok, how about unsetting it and adding it to your /etc/ld.so.conf instead?

Evo2.

Last edited by evo2; 11-09-2009 at 04:15 AM. Reason: Possibly valid suggestion
 
Old 11-09-2009, 04:12 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805

Original Poster
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
I could unset it but that's just 'escaping' the conflict I think. Since this is running on a production server (Nagios monitoring), if I unset it I would get unnecessary alerts because the database checks don't get executed. I'd prefer a way to set is as 'allowed' like you can do for xinetd or inetd services. Any idea how I could do that?

Kind regards,

Eric
 
Old 11-09-2009, 04:13 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805

Original Poster
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by evo2 View Post
Is there any reason that you can't simply unset your LD_LIBRARY_PATH before running rkhunter?

Edit: OOps, sorry, should have read your post more carefully: it is need for one of the checks.

Evo2.
Replying while you were editing

Kind regards,

Eric
 
Old 11-09-2009, 10:48 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
Quote:
Originally Posted by EricTRA View Post
Code:
[ Rootkit Hunter version 1.3.2 ]
...outdated. Current is 1.3.4 and we're working on getting 1.3.6 out this month.


Quote:
Originally Posted by EricTRA View Post
how and/or in which config file do I tell rkhunter that this variable is legitimate?
You don't. There's no (request nor) variable for whitelisting of LD_LIBRARY_PATH items. I wonder why you need to set a global LD_LIBRARY_PATH in the first place? I mean it's used by only one application so wouldn't instead using something like 'env LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/oracle/10.2.0.4/client/lib /path/to/oracle_check' (or whatever workable equivalent command) or running oracle_check on the oracle server and using send_nsca to the Nagios server be more appropriate? Mind you, not that I'm a Nagios guru...
 
Old 11-09-2009, 11:15 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805

Original Poster
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by evo2 View Post
Edit2: Ok, how about unsetting it and adding it to your /etc/ld.so.conf instead?

Evo2.
Thanks for the suggestion, I'll check that out tomorrow when I'm back in the office. I'll post the results.

@unSpawn: Thanks for the reply, I just installed it from the Debian repository. I'll download and install the newest version tomorrow. About your suggestion; I'll check into it after trying the solution Evo2 offered (looks a lot easier than yours .

Kind regards,

Eric
 
Old 11-10-2009, 03:12 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805

Original Poster
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Got it working. When checking the ld.so.conf file there already was a link to the oracle.conf file, so I unset the LD_LIBRARY_PATH and it's all good now.

@unSpawn: I upgraded all my servers to the latest version. Thanks for the heads-up. The Debian Lenny (which I'm using) only lists the 1.3.2-6 version, squeeze (testing) and sid (unstable) have the latest. Not sure when the lenny repositories will get the latest version. I'll check in on the rkhunter site on regular basis. Thanks again.

Kind regards,

Eric
 
Old 11-10-2009, 03:23 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Thanks for the follow-up. Good to see you got it working.
 
Old 11-10-2009, 03:36 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by EricTRA View Post
Got it working. When checking the ld.so.conf file there already was a link to the oracle.conf file, so I unset the LD_LIBRARY_PATH and it's all good now.
So you never needed to set your LD_LIBRARY_PATH in the first place. Cool.
Quote:
Originally Posted by EricTRA View Post
@unSpawn: I upgraded all my servers to the latest version. Thanks for the heads-up. The Debian Lenny (which I'm using) only lists the 1.3.2-6 version, squeeze (testing) and sid (unstable) have the latest. Not sure when the lenny repositories will get the latest version.
Because of the way Debian works, Lenny will never get it. Since rkhunter seems to consist of only shell and perl scripts with no minimum version requirements (please correct me if I'm wrong), you should have no problem just installing the package from testing or sid, without even the need to build from the source deb.

Cheers,

Evo2.
 
Old 11-10-2009, 12:56 PM   #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
Quote:
Originally Posted by evo2 View Post
Since rkhunter seems to consist of only shell and perl scripts with no minimum version requirements (please correct me if I'm wrong), you should have no problem just installing the package from testing or sid, without even the need to build from the source deb.
...or from the source at rkhunter.sourceforge.net, but basically: yes. No no minimum version requirements. It's supposed to run on about anything that adheres to minimum requirements: shell, perl, "default" system packages.
 
  


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
rkhunter: "/usr/bin/rpm warning"?!!! Hungry ghost Linux - Security 8 11-05-2007 10:54 AM
RKhunter warning about hidden files. gonus Linux - Security 3 05-03-2007 10:27 AM
rkhunter displaying warning message Michael_aust Linux - Newbie 4 04-30-2006 05:24 PM
Getting Warning during rkhunter? BajaNick Linux - Security 8 09-12-2004 08:34 PM
???? Ld_library_path ???? g452 Linux - Software 9 08-26-2004 03:00 PM

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

All times are GMT -5. The time now is 01:13 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