I'll chime in here too - just to add what may or may not be obvious - When 
you check your current binaries against the original ones, be sure to check 
them using md5. If the binaries are trojaned, simply checking the file size 
and creation date won't be enough as most rootkits out there will have 
modified the trojaned versions such that they look identical to the 
original binaries.

The only way to be sure is to compare the md5 checksum of both versions. 
Again, forgive me if this is an exercise in the obvious!

Tracy


At 04:34 PM 12/20/00 +0000, [EMAIL PROTECTED] wrote:
>If you *may* have been hacked at some stage in the past, are you now sure
>that you have non-trojaned version of those tests such as top, netstat etc.
>
>It may be worthwhile checking your current ones against the original
>binaries (or what you think you should have) just in case.  For future
>reference TripWire is useful for this.  You could also scan from the
>outside using nmap or similar to see what ports appear open.
>
>lsof is a worthwhile tool and may be obtained from
>http://www.stokely.com/unix.sysadm.resources/shareware.www.html
>
>HTH
>
>Peter
>
>
>At 09:53 20/12/2000 -0600, Ricky Crow wrote:
> >
> >
> >On Thu, 21 Dec 2000, Peter Evans wrote:
> >
> >>      lots. But no actual information ^^;
> >>
> >>
> >> 1 - what OS are you running, have you locked down any of the
> >>      non-essential crap that things like redhat/solaris
> >>      and the likes come with?
> >
> >Running BSD/OS 2.01... Yes, I know it's old, but it has been extremely
> >stable over the last 4-5 years on the same machine.
> >Yes, the system has been locked down, as well.
> >
> >> 2 - when it craps out (for want of a better word) what else is the
> >>      system doing?  Commands that may help you here:
> >>
> >>      top
> >
> >Nothing really serious or unusual, here...  I am experiencing the problem
> >as of right now, and here's what top shows:
> >
> >
> >load averages:   0.46,  0.41,  0.36
> >09:43:37
> >90 processes:  2 running, 88 sleeping
> >Cpu states:  2.0% user,  0.0% nice,  3.0% system,  0.0% interrupt, 95.0%
> >idle
> >Memory: Real: 15M/32M Virt: 78M/254M Free: 72M
> >
> >  PID USERNAME PRI NICE  SIZE   RES STATE   TIME   WCPU    CPU COMMAND
> >12362 root       2    0 5184K 5084K sleep   1:37  1.61%  1.61% named
> >23724 root       2    0 1148K 1040K sleep   0:00  6.00%  0.29% sendmail
> >23721 root      28    0  256K  444K run     0:00  1.40%  0.20% top
> >23325 nobody     2    0 1900K  972K sleep   0:00  0.10%  0.10% httpd
> >23656 nobody     2    0 1900K  944K sleep   0:00  0.05%  0.05% httpd
> >19761 root       2    0 1044K  260K sleep   0:05  0.05%  0.05% sendmail
> >23131 root      28    0  536K  388K run     0:00  0.00%  0.00% ftpd
> > 1991 root      18    0 1876K 1000K sleep   0:24  0.00%  0.00% httpd
> >15981 rickyc    18    0  592K  764K sleep   0:00  0.00%  0.00% tcsh
> >17909 root      18    0  584K  744K sleep   0:00  0.00%  0.00% tcsh
> >19574 root      18    0  540K  704K sleep   0:00  0.00%  0.00% tcsh
> >15159 rickyc    18    0  536K  660K sleep   0:00  0.00%  0.00% tcsh
> >13145 rickyc    18    0  536K  652K sleep   0:00  0.00%  0.00% tcsh
> >  126 root      18  -12  352K  416K sleep   0:00  0.00%  0.00% xntpd
> > 2099 root      18    0  340K  220K sleep   0:02  0.00%  0.00% cron
> >
> >
> >>      iostat
> >
> >ns1: {44} % iostat
> >      tty          sd0           sd1           sd2           sd3
> >cpu
> > tin tout sps tps msps  sps tps msps  sps tps msps  sps tps msps  us ni sy
> >id
> >   0   38  87   3  4.9    0   0  5.0    0   0  0.0  351  24  3.8   8  0 21
> >0 71
> >
> >
> >I don't know EXACTLY what all of that means on iostat, but that's what it
> >shows right now, too.
> >
> >>      netstat
> >
> >There is nothing unusual in there....and no connections on port 110 right
> >now, either.
> >
> >>      ps -ef (-auxww or whatever)
> >
> >Nothing unusual..  There are probably too many processes listed to copy
> >and paste into this email, but there isn't anything that makes me
> >suspicious or looks unusual.
> >
> >>      lsof
> >
> >I don't have that command on this machine for some reason......
> >
> >>      These should give you hints about things like resource-starvation,
> >>      strange crap and so on.
> >
> >Nothing strange... Can't figure this out... Any other ideas?
> >
> >> 3 - look in the system logs for clues.
> >>
> >>      This is probably number 2a, not 3.
> >
> >Been looking in the logs....even doing a tail -f to watch the log as it's
> >happening, then I keep testing mail in another window and waiting for it
> >to "crap out" and nothing....  Nothing unusual.  No inetd messages telling
> >me that it is shutting down that service or anything....  It's frustrating
> >me to no end.
> >
> >
> >>      There, that should get you looking in the right direction.
> >>      It could be something as simple as "not using server-mode/
> >>      noupdateonabort/nostatus and having allowed your lusers to
> >>      build up 900 mb mailboxes."
> >
> >We have a few people with mailboxes approaching 10 megs on the system, but
> >by and large, we don't have all that many that get that big.
> >
> >>      Oh, and we have 30000 lusers on a linux box using qp3.1+ldap,
> >>      without so much as a hiccup. so I suspect soemthing silly.
> >
> >Damn.... I wish I could say that.....
> >I've only got a couple of thousand on this box, and it's giving me fits.
> >
> >Ricky
> >


Reply via email to