LinuxQuestions.org
Review your favorite Linux distribution.
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-24-2006, 05:36 AM   #1
babysnake
Member
 
Registered: May 2006
Posts: 37

Rep: Reputation: 15
Question chkrootkit on a CD - howto ?


hi

as a noob trying to set up my first 'real' server i'm trying to cover the security angle as far as poss

can anyone walk me through, or point me towards (i've googled but no joy) a step-by-step of how to statically compile chkrootkit and all the required binaries onto a CD so i can periodically check the server for compromise

thanks indeed

neill
 
Old 11-24-2006, 07:03 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
There is a security oriented livecd distro called Phlak that might interest you. It includes chrootkit, among other tools.

http://www.phlak.org/modules/news/

Click on the Documentation link, then Phlack Tools, followed by Linux Tools to see what's on the cd.

Last edited by bigrigdriver; 11-24-2006 at 07:05 AM.
 
Old 11-25-2006, 03:22 AM   #3
babysnake
Member
 
Registered: May 2006
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bigrigdriver
There is a security oriented livecd distro called Phlak that might interest you. It includes chrootkit, among other tools.

http://www.phlak.org/modules/news/

Click on the Documentation link, then Phlack Tools, followed by Linux Tools to see what's on the cd.
thanks i'll give it a look

 
Old 11-25-2006, 06:00 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
There is also another Live CD distro called BackTrack that may be of interest. I haven't used it myself, but it is the successor to Auditor
 
Old 11-26-2006, 04:02 PM   #5
makix
LQ Newbie
 
Registered: Apr 2005
Distribution: fedora
Posts: 16

Rep: Reputation: 0
BackTrack is the best i have been using it for a long time.If you are interested in security it must be in your colleciton.So many tools and programs can not be found on the net so easily
 
Old 11-27-2006, 02:35 AM   #6
babysnake
Member
 
Registered: May 2006
Posts: 37

Original Poster
Rep: Reputation: 15
thanks for that - i've downloaded phlak, backtrack and another security distro called insert

i'm guessing this is what i do ....

leave the distro CD in the server and mount the appropriate locations off it to the server filesystem

something like /mnt/cd/bin or /sbin or wherever they put chrootkit

then i can run /mnt/cd/bin/chrootkit with the appropriate arguments to check the server / (i'll need to figure this all out with some experimentation methinks !!)

i'll get a chance to play next few days and i'll report back how it goes

thanks for the input

neill
 
Old 11-28-2006, 08:09 AM   #7
babysnake
Member
 
Registered: May 2006
Posts: 37

Original Poster
Rep: Reputation: 15
variable success

backtrack and insert look like excellent tools, as does nUbuntu which is very similar to backtrack in terms of tools and approach

all the above are designed to be used as live CDs however, and don't reallt suit my purposes

what i'm after is he ability to run chkrootkit from a readonly environment

i understand i can do this either by statically compiling chkrootkit and all the necessary binaries (awk, cut, egrep, find, head, id, ls, netstat, ps, strings, sed, and uname) on a cd, mounting the directory on my filesystem and then running chkrootkit from there - the logic being that chkrootkit and the binaries are uncorruptable being read only

or i can run chkrootkit with the -p option and just point to the mounted binaries

eg: chkrootkit -p /mnt/path/to/read-only/binaries

see http://www.oreilly.com/pub/h/1406 for the sort of thing i'm trying to do

what i lack is the knowledge how to statically complie the appropriate binaries +/- chkrootkit onto a CD so the above strategy works

on the bright side i'm enjoying myself with backtrack finding all the holes in my LAN !!

neill
 
Old 11-30-2006, 05:48 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
the logic being that chkrootkit and the binaries are uncorruptable being read only
If a rootkit is preloaded it may hide processes and files. Static binaries won't help against that, only dissection of the corpse (vs 'Live' system).


what i lack is the knowledge how to statically complie the appropriate binaries
Compiling Chkrootkit helper apps is just adding the -static flag. Busybox can be compiled static using a ./configure --switch recent versions include about everything you need including 'strings' and (iproute2's) 'ip'. The "problem" with Chkrootkit is it may rely on shell specs and switches the Busybox binary doesn't have so you probably need to tweak CRT's source a bit. Should not be impossible though.
 
Old 11-30-2006, 06:16 PM   #9
babysnake
Member
 
Registered: May 2006
Posts: 37

Original Poster
Rep: Reputation: 15
OK

i've found some stuff about how to statically compile busybox onto a CD, so i'll try that over the next week (when i get time !!!) and report back

thanks

neill
 
  


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
chkrootkit EchoWarrior Linux - Newbie 2 04-20-2006 04:45 PM
when I ./chkrootkit it says .... chemichael Fedora 2 08-18-2005 11:48 PM
chkrootkit ? jmanjeff Linux - Security 2 05-31-2005 11:15 PM
chkrootkit-0.45 aaru_ali Mandriva 1 04-25-2005 02:21 AM
In regards to Insyte's chkrootkit howto Nikon01 Slackware 1 08-07-2004 11:44 PM

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

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