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 07-10-2002, 01:46 AM   #1
anoop_chandran
Member
 
Registered: Nov 2001
Distribution: Redhat 7.0 ,mandrake 8.0 ,Redhat 7.2
Posts: 99

Rep: Reputation: 15
unknown users.....


hi,

the output of "last" command in my linux server gives some weird results like

#last

anoop tty1 still logged in
.....
ftp ftpd2368 xx.xx.xx.xx wed jul 10 03:11 still logged in
ftp ftpd1568 xx.xx.xx.xx wed jul 09 00:11 still logged in
........


xx.xx are public ip's and not in my nework.....

what/who is this ftp thing in last...

# w
anoop pts/0 node2 ...etc...

w does not show up these ftp users....

#who -q
anoop
#users=1


i don't have any xinetd services related to ftp running...
no ftp servers ,


is it possible to get rid of these ftp users ...??

does anyone get any idea...on what this is all about...

please help........

bye,
anoop
 
Old 07-10-2002, 05:18 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Might want to double check that ftp isn't enabled from the xinetd configuration. Shouldn't have anyone logged in as ftp.. check your processes running ( ps -aux ), does it show them logged in that way ? Usually the default who -q won't show anonymous ftp users logged in.. If your running Redhat, check your firewall and make sure FTP is blocked if you don't want it running... easiest way to get there is to type setup at command.

Let us know ?
 
Old 07-10-2002, 05:51 AM   #3
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
You could also comment it out of /etc/services
also check /var/log/messeges, /var/log/syslog

check appache error_log, access_log

do
kill -9 on pid
 
Old 07-10-2002, 10:40 AM   #4
anoop_chandran
Member
 
Registered: Nov 2001
Distribution: Redhat 7.0 ,mandrake 8.0 ,Redhat 7.2
Posts: 99

Original Poster
Rep: Reputation: 15
i have Indeed checked everything .it seems as though nothing is going wrong as of now...

#chkconfig --list

xinetd based services:
finger: off
linuxconf-web: off
rexec: off
rlogin: off
rsh: off
swat: off
ntalk: off
talk: off
telnet: on --> i have allowed a single pc to connect to server (192.168.1.31rivate lan)
tftp: off
wu-ftpd: off
comsat: off
imap: off
imaps: off
ipop2: off
ipop3: off
pop3s: off
eklogin: off
gssftp: off
klogin: off
krb5-telnet: off
kshell: off

o/p of #w

1:06am up 7 day, 21:45, 1 user, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
anoop pts/0 node2 7:27pm 0.00s 0.79s 0.01s w

i did a #cat /var/log/messages | grep ftp and got these results..

Jul 8 05:15:25 tpc ftpd[1559]: FTP LOGIN FROM term2 [192.168.1.12], tpc
Jul 8 05:16:29 tpc ftpd[1559]: FTP session closed


-->Jul 8 06:50:33 tpcisp ftpd[15248]: ANONYMOUS FTP LOGIN FROM 202.79.127.22 [202.79.127.22], mozilla@
-->Jul 8 06:51:02 tpcisp ftpd[15248]: exiting on signal 11: Segmentation fault
Jul 8 15:32:20 tpcisp ftpd[15319]: FTP session closed
Jul 8 15:32:51 tpcisp ftpd[15320]: FTP session closed
-->Jul 8 10:06:12 tpc ftpd[15321]: ANONYMOUS FTP LOGIN FROM 202.112.25.201 [202.112.25.201], mozilla@
-->Jul 8 10:07:13 tpc ftpd[15321]: exiting on signal 11: Segmentation fault

-->Jul 9 00:15:55 tpc ftpd[1578]: ANONYMOUS FTP LOGIN FROM 155.230.106.88 [155.230.106.88], mozilla@
-->Jul 9 00:16:40 tpc ftpd[1578]: exiting on signal 11: Segmentation fault
Jul 9 05:46:41 tpc ftpd[1577]: FTP session closed
-->Jul 9 06:50:40 tpc ftpd[1612]: lost connection to 205.c210-85-67.ethome.net.tw [210.85.67.205]
Jul 9 06:50:40 tpc ftpd[1612]: FTP session closed
-->Jul 9 07:35:16 tpc ftpd[1632]: getpeername (in.ftpd): Transport endpoint is not connected
-->Jul 9 21:41:27 tpc ftpd[2368]: ANONYMOUS FTP LOGIN FROM 80.48.241.245 [80.48.241.245], mozilla@
-->Jul 9 21:42:41 tpc ftpd[2368]: exiting on signal 11: Segmentation fault


when ftp was enabled earlier ,for every login [ftp session begin] there was a corresponding logout[ftp session closed ] entry ...with same pid ,here ftpdxxxx

but for these unwanted logins [which are the same entries in o/p of 'last' command] there is no logout entry...!!

the connections are from diff IP's ..
but if you notice there is a segmentation fault error [signal 11] ..is it possible that due to this
sig 11, wtmp was not updated...?? how can i find out what could possibly be the reason behind these
segmentation fault error..?


cat /var/log/xferlog doesn't show anything...


#last still shows all these...
anoop pts/0 node2 Wed Jul 10 19:27 still logged in <-- [that's me ]
anoop pts/0 node2 Wed Jul 10 19:09 - 19:12 (00:03) <-- [that's me ]
root tty2 Wed Jul 10 18:56 - 18:57 (00:01) <-- [that's me 2 ]
anoop tty1 Wed Jul 10 18:52 - 18:55 (00:03)
root tty5 Wed Jul 10 18:32 - 18:41 (00:09)
root tty4 Wed Jul 10 18:30 - 18:41 (00:11)
root tty3 Wed Jul 10 18:29 - 18:41 (00:12)
root tty1 Wed Jul 10 18:18 - 18:52 (00:34)
root tty2 Wed Jul 10 18:00 - 18:41 (00:41)
ftp ftpd2368 80.48.241.245 Wed Jul 9 21:41 still logged in <-- { mystery]
ftp ftpd1578 155.230.106.88 Tue Jul 9 00:15 still logged in <-- { mystery]
tpc ftpd1571 term2 Tue Jul 8 05:22 - 05:23 (00:01)
tpc ftpd1566 term2 Tue Jul 8 05:18 - 05:21 (00:03) <-- [ trusted user ]
tpc ftpd1564 term2 Tue Jul 8 05:18 - 05:18 (00:00)

assuming 2368 and 1578 in ftpd2368 and ftpd1578 are pid's I executed the "lsof" command
but that didn't help either...no signs of these entries..

could it be that wtmp entry is corrupted or is my machine already under the control of some hacker..?
unfortunately i haven't configured tripwire so that won't help...!!


thanx for response..
hope somebody can help!!..
anoop
 
Old 07-10-2002, 10:59 AM   #5
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
There is a program to check for "root kit" attacks.
Goto http://freshmeat and search for root kit.
 
Old 07-11-2002, 02:05 AM   #6
anoop_chandran
Member
 
Registered: Nov 2001
Distribution: Redhat 7.0 ,mandrake 8.0 ,Redhat 7.2
Posts: 99

Original Poster
Rep: Reputation: 15
ok thanx ..
i'll check it out..
 
Old 07-11-2002, 01:18 PM   #7
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
chkrootkit-0.35
 
Old 07-12-2002, 06:31 AM   #8
anoop_chandran
Member
 
Registered: Nov 2001
Distribution: Redhat 7.0 ,mandrake 8.0 ,Redhat 7.2
Posts: 99

Original Poster
Rep: Reputation: 15
i've took my system off the LAN and rebooted...
now the two enrties of 'last command ' are shown like this..

ftp ftpd2368 80.48.241.245 Wed Jul 9 21:41 down
ftp ftpd1578 155.230.106.88 Tue Jul 9 00:15 down


i've checked with chkrootkit... the o/p is as follows...

ROOTDIR is `/'
Checking `amd'... not infected
Checking `basename'... not infected
Checking `biff'... not infected
Checking `chfn'... not infected
Checking `chsh'... not infected
Checking `cron'... not infected
Checking `date'... not infected
Checking `du'... not infected
Checking `dirname'... not infected
Checking `echo'... not infected
Checking `egrep'... not infected
Checking `env'... not infected
Checking `find'... not infected
Checking `fingerd'... not infected
Checking `gpm'... not infected
Checking `grep'... not infected
Checking `hdparm'... not infected
Checking `su'... not infected
Checking `ifconfig'... not infected
Checking `inetd'... not infected
Checking `inetdconf'... not found
Checking `identd'... not infected
Checking `killall'... not infected
Checking `ldsopreload'... not infected
Checking `login'... not infected
Checking `ls'... not infected
Checking `lsof'... not infected
Checking `mail'... not infected
Checking `mingetty'... not infected
Checking `netstat'... not infected
Checking `named'... not infected
Checking `passwd'... not infected
Checking `pidof'... not infected
Checking `pop2'... not found
Checking `pop3'... not found
Checking `ps'... not infected
Checking `pstree'... not infected
Checking `rpcinfo'... not infected
Checking `rlogind'... not infected
Checking `rshd'... not infected
Checking `slogin'... not found
Checking `sendmail'... not infected
Checking `sshd'... not infected
Checking `syslogd'... not infected
Checking `tar'... not infected
Checking `tcpd'... not infected
Checking `top'... not infected
Checking `telnetd'... not infected
Checking `timed'... not infected
Checking `traceroute'... not infected
Checking `w'... not infected
Checking `write'... not infected
Checking `aliens'... no suspect files
Searching for sniffer's logs, it may take a while... nothing found
Searching for HiDrootkit's default dir... nothing found
Searching for t0rn's default files and dirs... nothing found
Searching for t0rn's v8 defaults... nothing found
Searching for Lion Worm default files and dirs... nothing found
Searching for RSHA's default files and dir... nothing found
Searching for RH-Sharpe's default files... nothing found
Searching for Ambient's rootkit (ark) default files and dirs... nothing
found

Searching for suspicious files and dirs, it may take a while...
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Digest/MD5/.packlist
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Image/Magick/.packlist
/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/mod_perl/.packlist
/usr/lib/perl5/5.6.0/i386-linux/.packlist /lib/modules/2.2.16-22/.rhkmvtag

Searching for LPD Worm files and dirs... nothing found
Searching for Ramen Worm files and dirs... nothing found
Searching for Maniac files and dirs... nothing found
Searching for RK17 files and dirs... nothing found
Searching for Ducoci rootkit... nothing found
Searching for Adore Worm... nothing found
Searching for ShitC Worm... nothing found
Searching for Omega Worm... nothing found
Searching for Sadmind/IIS Worm... nothing found
Searching for MonKit... nothing found
Searching for Showtee... nothing found
Searching for OpticKit... nothing found
Searching for T.R.K... nothing found
Searching for Mithra... nothing found
Searching for anomalies in shell history files... nothing found
Checking `asp'... not infected
Checking `bindshell'... not infected
Checking `lkm'... nothing detected
Checking `rexedcs'... not found
Checking `sniffer'...
eth0 is not promisc
eth1 is not promisc
Checking `wted'... nothing deleted
Checking `z2'...
nothing deleted

what is the use of .rhkmvlist and .packlist files ....???
....????
anoop
 
Old 07-12-2002, 08:50 AM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
check /etc/inetd.conf and /etc/xinet.d/* files for any suspicious entries
 
  


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
ldap as auth server, users sometimes unknown ?? rhoekstra Fedora 2 09-05-2005 01:39 AM
Postfix/Unknown Users ]SK[ Linux - Software 1 07-05-2005 05:24 PM
Postfix sending mail for unknown users to other server? Phaethar Linux - Software 2 03-18-2004 01:33 PM
unknown users loganwva Linux - Security 8 06-05-2002 04:22 PM
sendmail -- Unknown users Gavin Linux - Networking 3 01-24-2002 01:03 AM

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

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