I need help, it seems my new RH7.2 box got some type of Trojan running on UDP port 32768. but I am not sure what is it. I need some help.
This is a RH7.2 which I rebuild about a week ago to upgrade from RH7.1 to RH7.2, I reinstalled from scratch via ftp download, so many services automatically started, I immediately used #setup to reconfigure the system services (with system connected online), and then rebooted the system. I noticed udp port 32768 was in state
0 0.0.0.0:32768 0.0.0.0:*
initially I did not pay much attention to it, because I thought this is newly buildt system, it must be something running by default.
But obviously I was wrong, it appears it has Trojan running, and I have been trying to search the net and figure out what type of Trajon it is, so I can find way to clearn it. Searching the net has not been successful to identify the type of Trojan. So I need your guys help please.
This machine is used as gateway & dhcp for my home network, the machine does ip_masquerate for several PCs including a couple of PCs for kids. I have not got time to configure it firewall componets because RH7.2 complains
cannot open file `/proc/net/ip_masquerade'
and so I have iptable running, and I am not fimilar it, to transfer ipchains script to iptables.
This RH7.2 has two ethernet cards:
eth0 192.168.1.254 (internal)
eth1 12.237.88.143 (external)
The strange activities shown from tcpdump:
tcpdump -i eth1 -p udp -n
01:54:29.544853 12.237.88.143.32768 > 216.239.34.10.domain: 32516 A?
www.google.com. (32) (DF)
01:54:29.644853 216.239.34.10.domain > 12.237.88.143.32768: 32516*- 1/4/4 A 216.239.33.101 (184)
01:54:43.804853 12.237.88.143.32768 > 192.41.162.30.domain: 49026 A?
www.dsinet.org. (32) (DF)
01:54:43.854853 192.41.162.30.domain > 12.237.88.143.32768: 49026- 0/2/0 (91)
01:54:43.864853 12.237.88.143.32768 > 198.6.1.82.domain: 61422 [1au] A? NS2.NOVAXESS.NL. OPT UDPsize=2048 (44) (DF)
01:54:43.864853 12.237.88.143.32768 > 198.6.1.82.domain: 63479 [1au] A? NEEMSURFAH.OBIT.NL. OPT UDPsize=2048 (47) (DF)
01:54:43.944853 198.6.1.82.domain > 12.237.88.143.32768: 61422 FormErr-% [0q] 0/0/0 (12) (DF)
01:54:43.944853 12.237.88.143.32768 > 198.6.1.82.domain: 52590 A? NS2.NOVAXESS.NL. (33) (DF)
01:54:43.974853 198.6.1.82.domain > 12.237.88.143.32768: 63479 FormErr-% [0q] 0/0/0 (12) (DF)
01:54:43.974853 12.237.88.143.32768 > 198.6.1.82.domain: 26295 A? NEEMSURFAH.OBIT.NL. (36) (DF)
01:54:44.024853 198.6.1.82.domain > 12.237.88.143.32768: 52590- 1/3/3 A 213.201.191.18 (147) (DF)
01:54:44.034853 12.237.88.143.32768 > 213.201.191.18.domain: 54735 [1au] A?
www.dsinet.org. OPT UDPsize=2048 (43) (DF)
01:54:44.054853 198.6.1.82.domain > 12.237.88.143.32768: 26295- 1/2/2 A 213.201.155.130 (125) (DF)
01:54:44.194853 213.201.191.18.domain > 12.237.88.143.32768: 54735* 1/3/4 A 213.201.155.186 (199)
01:54:48.264853 12.237.88.143.32768 > 192.41.162.30.domain: 54021 A?
www.robertgraham.com. (38) (DF)
01:54:48.414853 192.41.162.30.domain > 12.237.88.143.32768: 54021- 0/2/2 (116)
01:54:48.414853 12.237.88.143.32768 > 208.185.133.167.domain: 42902 [1au] A?
www.robertgraham.com. OPT UDPsize=2048 (49) (DF)
01:54:50.444853 12.237.88.143.32768 > 64.220.205.140.domain: 10657 [1au] A?
www.robertgraham.com. OPT UDPsize=2048 (49) (DF)
01:54:50.554853 64.220.205.140.domain > 12.237.88.143.32768: 10657 FormErr-% 0/0/1 (49)
01:54:50.554853 12.237.88.143.32768 > 64.220.205.140.domain: 1707 A?
www.robertgraham.com. (38) (DF)
01:54:50.724853 64.220.205.140.domain > 12.237.88.143.32768: 1707* 1/0/0 A 64.220.205.140 (54)
01:55:12.734853 12.237.88.143.32768 > 192.203.230.10.domain: 10218 A?
www.arcert.gov.ar. (35) (DF)
01:55:12.964853 192.203.230.10.domain > 12.237.88.143.32768: 10218- 0/8/9 (377)
01:55:12.964853 12.237.88.143.32768 > 204.123.2.18.domain: 5109 A?
www.arcert.gov.ar. (35) (DF)
01:55:13.314853 204.123.2.18.domain > 12.237.88.143.32768: 5109- 0/6/6 (276) (DF)
01:55:13.324853 12.237.88.143.32768 > 130.59.211.10.domain: 27938 [1au] A?
www.arcert.gov.ar. OPT UDPsize=2048 (46) (DF)
01:55:13.524853 130.59.211.10.domain > 12.237.88.143.32768: 27938 0/2/3 (121) (DF)
01:55:13.524853 12.237.88.143.32768 > 168.96.172.194.domain: 13969 [1au] A?
www.arcert.gov.ar. OPT UDPsize=2048 (46) (DF)
01:55:13.784853 168.96.172.194.domain > 12.237.88.143.32768: 13969* 2/2/1 CNAME[|domain] (DF)
01:55:13.794853 12.237.88.143.32768 > 168.96.172.13.domain: 63461 [1au] A? lapacho.arcert.gov.ar. OPT UDPsize=2048 (50) (DF)
01:55:14.044853 168.96.172.13.domain > 12.237.88.143.32768: 63461* 1/2/1 A[|domain] (DF)
.....
.....
Another strange thing is that tcp port 953 has been open even I do not have any pop3s or imap stuff running. I need this system to run webserver with mySQL, so port 80 and 3306 appears open, caching DNS for internal machines, so port 53 is open. DHCP server probably opens the UDP port 67, strange things appears to me are for UDP port 32678, and TCP port 953
netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 12.237.88.143:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.254:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
tcp 0 224 192.168.1.254:22 192.168.1.21:1034 ESTABLISHED
udp 0 0 0.0.0.0:32768 0.0.0.0:*
udp 0 0 12.237.88.143:53 0.0.0.0:*
udp 0 0 192.168.1.254:53 0.0.0.0:*
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
raw 0 0 0.0.0.0:1 0.0.0.0:* 7
Raz, where have you been? I have sent email to you, and I didn't receive reply, did you change your email address?
Please help unSpawn, and anyone could point some directions how to indentify this Trojan, I appreciate your help. thanks!