Scan of the Month 30 - Analysis by Christophe GRENIER

Introduction

The job is to analyze a month's worth of honeynet IPtable firewall logs captured in the wild. All sorts of fun stuff happening, including several compromises.

The data file

Data file can be downloaded from Honeynet web site.

[kmaster@christophe sotm30]$ md5sum honeynet-Feb1_FebXX.log*
8c0070ef51f6f764fde0551fa60da11b  honeynet-Feb1_FebXX.log
e002b1013f18dd42e17be919c2870081  honeynet-Feb1_FebXX.log.gz
[kmaster@christophe sotm30]$ head -1 honeynet-Feb1_FebXX.log
Feb  1 00:00:02 bridge kernel: INBOUND TCP: IN=br0 PHYSIN=eth0 OUT=br0 PHYSOUT=eth1 SRC=192.150.249.87 DST=11.11.11.84 LEN=40 TOS=0x00 PREC=0x00 TTL=110 ID=12973 PROTO=TCP SPT=220 DPT=6129 WINDOW=16384 RES=0x00 SYN URGP=0
[kmaster@christophe sotm30]$ tail -1 honeynet-Feb1_FebXX.log
Feb 27 14:40:06 bridge kernel: OUTG CONN TCP: IN=br0 PHYSIN=eth1 OUT=br0 PHYSOUT=eth0 SRC=11.11.11.71 DST=220.210.69.62 LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=50688 DF PROTO=TCP SPT=80 DPT=1325 WINDOW=6432 RES=0x00 ACK URGP=0

The logs have been captured between Feb 1 00:00:02 and Feb 27 14:40:06. Nothing has been log between Feb 10 14:47:18 and Feb 11 10:03:32.

Feb 10 13:51:02 bridge kernel: eth0: 0 multicast blocks dropped.
Feb 10 13:51:03 bridge kernel: br0: port 2(eth0) entering disabled state
Feb 10 13:51:03 bridge kernel: eth1: 0 multicast blocks dropped.
Feb 10 13:51:03 bridge kernel: br0: port 1(eth1) entering disabled state
Feb 10 13:51:05 bridge kernel: br0: port 2(eth0) entering listening state
Feb 10 13:51:20 bridge kernel: br0: port 2(eth0) entering learning state
Feb 10 13:51:35 bridge kernel: br0: port 2(eth0) entering forwarding state
Feb 10 13:51:35 bridge kernel: br0: topology change detected, propagating
Feb 10 13:52:24 bridge kernel: br0: port 2(eth0) entering disabled state
Feb 10 13:52:24 bridge kernel: device eth0 left promiscuous mode
Feb 10 13:52:24 bridge kernel: br0: port 1(eth1) entering disabled state
Feb 10 13:52:24 bridge kernel: device eth1 left promiscuous mode
...
Feb 10 14:47:18 bridge kernel: INBLOCK: IN=eth1 OUT= MAC=ff:ff:ff:ff:ff:ff:00:b0:d0:87:85:c3:08:00 SRC=11.11.11.69 DST=11.11.11.255 LEN=241 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=138 DPT=138 LEN=221
Feb 11 10:03:32 bridge kernel: INBLOCK: IN=eth1 OUT= MAC=ff:ff:ff:ff:ff:ff:00:b0:d0:87:85:c3:08:00 SRC=11.11.11.67 DST=11.11.11.255 LEN=96 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=137 DPT=137 LEN=76
...
Feb 11 11:03:07 bridge kernel: device eth1 entered promiscuous mode
Feb 11 11:03:07 bridge kernel: device eth0 entered promiscuous mode
Feb 11 11:03:07 bridge kernel: br0: port 2(eth0) entering listening state
Feb 11 11:03:07 bridge kernel: br0: port 1(eth1) entering listening state
Feb 11 11:03:22 bridge kernel: br0: port 2(eth0) entering learning state
Feb 11 11:03:22 bridge kernel: br0: port 1(eth1) entering learning state
Feb 11 11:03:31 bridge kernel: Kernel logging (proc) stopped.
Feb 11 11:03:31 bridge kernel: Kernel log daemon terminating.
Feb 11 11:08:38 bridge kernel: INBOUND TCP: IN=br0 PHYSIN=eth0 OUT=br0 PHYSOUT=eth1 SRC=63.204.248.182 DST=11.11.11.90 LEN=48 TOS=0x00 PREC=0x00 TTL=113 ID=23614 DF PROTO=TCP SPT=3961 DPT=135 WINDOW=64800 RES=0x00 SYN URGP=0

All records are from the host bridge. It seems to be a GenII (layer2 bridging) honeynet with on eth0 the production network and on eth1 the honeypots.

What honeypot systems were attacked the most?

IPDrop TCP after 13 attemptsDrop udp after 20 attemptsINBLOCKINBOUND ICMPINBOUND TCPINBOUND UDPLegal BroadcastLegal DNSOUTG CONN OTHEROUTG CONN TCPOUTG CONN UDPTotal
11.11.11.640006874420652000005759
11.11.11.65041290000000135268
11.11.11.672073460011387994379218107737048535803
11.11.11.6900151597971579500042011300
11.11.11.7000059798848050000011286
11.11.11.7140059110248814000676012333
11.11.11.72000594929888000051010823
11.11.11.73200593951880400076010993
11.11.11.751006002930182900097030828
11.11.11.801100119012435820000427014883
11.11.11.8100059389728330000010398
11.11.11.8200059492178450000010656
11.11.11.8300059485708470000010011
11.11.11.840005847767806000009157
11.11.11.850005908506800000009896
11.11.11.87000585101018930000011579
11.11.11.890005828558766000009906
11.11.11.900001164105967630000012523
11.11.11.95000123081098300000010169
11.11.11.1000011886106457720000013304
11.11.11.1050012350101677480000013266
11.11.11.1100002070101816580000012909
11.11.11.115000246101616810000011088
11.11.11.1200002427449673000008364
11.11.11.12500024393416860000010270
11.11.11.2550056000379200003848

Honeynet IPs have been sanitized to 11.11.11.* and DNS server IPs to 22.22.22.* and 23.23.23.*
In this table, we can find the honeypots and the production machine. 11.11.11.75, 11.11.11.80 and 11.11.11.67 have the most inbound traffic, they are the most attacked. 11.11.11.65 seems to be the bridge and hosting a syslog server.

Feb 10 14:03:35 bridge kernel: INBLOCK: IN=eth1 OUT= MAC=00:02:b3:65:c9:71:00:b0:d0:87:85:c3:08:00 SRC=11.11.11.69 DST=11.11.11.65 LEN=65 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1025 DPT=514 LEN=45

Only 11.11.11.67 is doing DNS resolution! There are two possibilities:

[kmaster@christophe sotm30_bis]$ grep MAC= honeynet-Feb1_FebXX.log|cut -d= -f 3-6|sort -u
 MAC=00:02:b3:65:c9:71:00:b0:d0:87:85:c3:08:00 SRC=11.11.11.67 DST=11.11.11.65 LEN
 MAC=00:02:b3:65:c9:71:00:b0:d0:87:85:c3:08:00 SRC=11.11.11.69 DST=11.11.11.65 LEN
 MAC=ff:ff:ff:ff:ff:ff:00:b0:d0:87:85:c3:08:00 SRC=11.11.11.67 DST=11.11.11.255 LEN
 MAC=ff:ff:ff:ff:ff:ff:00:b0:d0:87:85:c3:08:00 SRC=11.11.11.69 DST=11.11.11.255 LEN

Looking for MAC address, it is possible to find that

00:02:b3:65:c9:7111.11.11.65
b0:d0:87:85:c3:0811.11.11.67, 11.11.11.69
11.11.11.67 and 11.11.11.69 are using the same network card.

Let's check if IP aliasing is used. The most frequent destination in outgoing TCP is the host 195.36.244.104. If you check the logs, you will see a strong correlation between SRC and DPT (SRC=11.11.11.x DPT=3356-69+x):

grep "DST=195.36.244.104" honeynet-Feb1_FebXX.log > 195.36.244.104
grep "SPT=21" 195.36.244.104|cut -d= -f5-|cut -d' ' -f2,12|sort -u
SRC=11.11.11.69 DPT=3356
SRC=11.11.11.71 DPT=3358
SRC=11.11.11.72 DPT=3359
SRC=11.11.11.73 DPT=3360
SRC=11.11.11.75 DPT=3362
SRC=11.11.11.80 DPT=3367

IP aliasing on the honeypot is used! Netfilter limit module is also used on the firewall in combination with the LOG target to give limited logging.

What ports were open on each of them?

Looking for TCP with ACK SYN flags, you can learn open TCP ports on remote servers. To find open TCP ports on honeypot, we need to search outgoing TCP connexion logs without SYN, nor RST. By reading a grep output of OUTG CONN UDP, we learn that 11.11.11.67 have UDP 137 opened. Full listing is avaible here.

11.11.11.67TCP80(http)
139(netbios-ssn)
443(https)
UDP137(netbios-ns)
11.11.11.69TCP21(ftp)
80(http)
443(https)
11.11.11.71TCP21(ftp)
80(http)
443(https)
11.11.11.72TCP21(ftp)
80(http)
443(https)
11.11.11.73TCP21(ftp)
80(http)
139(netbios-ssn)
443(https)
3128(squid)
11.11.11.75TCP21(ftp)
80(http)
443(https)
11.11.11.80TCP21(ftp)
80(http)
139(netbios-ssn)
443(https)

Why do you think a machine with close IP addresses were attacked differently?

Let's consider the quantity of logs for each IP. 11.11.11.75, 11.11.11.80 and 11.11.11.67 have the most inbound traffic, they are the most attacked.

ICMP traffic is mostly generated by W32.Welchia.Worm. Ping packets used by this virus has a length of 92 bytes including IP headers.

[kmaster@christophe sotm30_bis]$ grep ICMP honeynet-Feb1_FebXX.log| ./stat_len.pl
LEN=28 count=100	Nmap ping (No data)
LEN=32 count=1
LEN=36 count=42
LEN=37 count=146
LEN=38 count=0		Linux Traceroute -I
LEN=52 count=48	
LEN=60 count=979	W2K ping, Cisco PIX ping
LEN=64 count=123
LEN=84 count=4		Linux 2.4 ping
LEN=92 count=18140	Nachi/Welchia worm, W2K traceroute
LEN=96 count=7
LEN=100 count=14	Cisco Catalyst ping

What are the high-level trends in connectivity to/from the honeynet? What was growing/decreasing?


There are some burst of activity, no trivial general growing or decreasing trend.

INBOUND ICMP is decreasing with time.

INBOUND TCP is increasing.

INBOUND UDP is rather stable.

There are some outgoing connections other than ident/auth and DNS requests because the Honeypot have been hacked as it will be explained latter.

How does that match global statistics from DShield and other sources? What possible evidence of malware is there? what types? what are the malware trends you can observe?

Most attacked ports are similar between what can be observed and DShield TOP Ports.

Trends has been calculated using the formula given on http://isc.incidents.org/trends.html, but as data volume is low, the relative error can be important.

INBOUND TCP


TCP
13586565Timeline
Trend: -0.12
DCE endpoint resolution, Microsoft RPC services CAN-2003-0605 CAN-2003-0528 CAN-2003-0352
445(microsoft-ds)46433Timeline
Trend: 0.47
Win2k+ Server Message Block
443(https)26316Timeline
Trend: -19.11
Secure HTTP, 66.60.166.84 is sending a lot of packet to 11.11.11.75 (to other IP too) over HTTPS (TCP 443) around Feb 7,17h.
312725781Timeline
Trend: -0.37
W32/MyDoom, W32.Novarg.A backdoor
139(netbios-ssn)14980Timeline
Trend: 0.83
 
80(http)10384Timeline
Trend: -0.21
HTTP
61293427Timeline
Trend: 0.64
Dameware Remote Admin, an exploit is avaible: DameWare Mini Remote Control Server Local SYSTEM Exploit Vulnerable Versions Prior to 3.71.0.0
901(swat)3097Timeline
Trend: -1.61
Samba Web Administration Tool
1433(ms-sql-s)2745Timeline
Trend: 0.13
Microsoft-SQL-Server
173002146Timeline
Trend: -16.61
Kuang2 backdoor
1080(socks)1916Timeline
Trend: -0.39
Proxy Server
3128(squid)1529Timeline
Trend: 0.47
Proxy Server
48991412Timeline
Trend: -0.96
Radmin (www.radmin.com) remote PC control software
21(ftp)1046Timeline
Trend: -1.20
FTP
27374(asp)535Timeline
Trend: -15.22
Subseven Windows trojan
10080(amanda)533Timeline
Trend: 0.82
Amanda Backup Util, One of several ports MyDoom.B infected systems attempts to open. Infected systems may be detected by outbound TCP flows to port 3127 (possibly 3127-3198) or open TCP ports on {1080, 3128, 80, 8080, 10080} Tech alert from us-cert
23(telnet)401Timeline
Trend: 0.48
Telnet
20168378Timeline
Trend: 0.36
lovgate virus remote control
111(sunrpc)310Timeline
Trend: -14.67
Portmapper, rpcbind
389(ldap)282Timeline
Trend: 0.65
Lightweight Directory Access Protocol
25(smtp)267Timeline
Trend: 1.22
Looking for SMTP open relay ?
45295249Timeline
Trend: -14.45
Firebird DB trojan
4000224Timeline
Trend: -14.35
neoworx remote-anything slave remote control
AOL ICQ instant messaging clent-server communication
31105183Timeline
Trend: -1.53
 
12345182Timeline
Trend: -14.14
NetBus backdoor trojan or Trend Micro Office Scan
57151Timeline
Trend: -13.95
3410110Timeline
Trend: -13.64
 
22(ssh)93Timeline
Trend: -13.47
 
45583Timeline
Trend: -13.35
Dirt, Backdoor.SubSari15 trojan, 80.184.152.4 has scan for this port
3481682Timeline
Trend: 1.91
 
Other890  

INBOUND UDP


UDP
137(netbios-ns)8692Timeline
Trend: 0.60
NETBIOS Name Service
1434(ms-sql-m)5905Timeline
Trend: -1.10
Microsoft-SQL-Monitor, CA-2003-04
10262366Timeline
Trend: -0.87
 
1351525Timeline
Trend: -2.79
DCE endpoint resolution
1027260Timeline
Trend: -15.53
 
1812(radius)146Timeline
Trend: -0.04
 
111(sunrpc)28Timeline
Trend: -13.30
 
3178918Timeline
Trend: -12.86
 
53(domain)17Timeline
Trend: -12.80
 
102416Timeline
Trend: -12.74
 
500(isakmp)7Timeline
Trend: -11.92
 
10305Timeline
Trend: -11.58
 
284312Timeline
Trend: -10.66
 
6662Timeline
Trend: -10.66
 
10281Timeline
Trend: -9.97
 
300721Timeline
Trend: -9.97
 
27261Timeline
Trend: -9.97
 
74281Timeline
Trend: -9.97
 
235611Timeline
Trend: -9.97
 

INBOUND ICMP

There are only logs of ICMP echo-request (ping) and INBOUND ICMP is decreasing with time. Nachi/Welchia worm is slowly eradicated.

What types of reconnaissance activity you notice? What do you think they were looking for? What are some of the notorious sources of such activity in the files?

The main reconnaissance activity is port probe, they were looking for open port with known vulnerabilities like

Worms and automated hacking tools are the main notorious sources of such activity.

What are the different scan patterns (sequential, etc) you can notice? Do you think all come from different attack tools?

Most scans are against only one port using sequential IP addresses:

There are few Nmap ICMP ping:

[kmaster@christophe sotm30_bis]$ grep ICMP honeynet-Feb1_FebXX.log|grep "LEN=28"| ./stat_by.pl "SRC="
SRC=203.69.14.162(203.69.14.162) count=47	ICMP only
SRC=217.81.50.100(pD9513264.dip.t-dialin.net) count=41, looking for TCP 445 (TCP 80 generated by Nmap, TCP 139 against a few host)
SRC=217.84.102.194(pD95466C2.dip.t-dialin.net) count=6	ICMP only
SRC=161.58.176.160(161.58.176.160) count=5	ping 11.11.11.75
SRC=203.125.225.247(203.125.225.247) count=1	ping 11.11.11.64

There is only one traceroute:

grep "TTL=1 " honeynet-Feb1_FebXX.log
Feb  3 13:43:51 bridge kernel: OUTG CONN OTHER: IN=br0 PHYSIN=eth1 OUT=br0 PHYSOUT=eth0 SRC=11.11.11.67 DST=224.0.0.2 LEN=32
TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2
Feb  3 13:45:06 bridge kernel: OUTG CONN OTHER: IN=br0 PHYSIN=eth1 OUT=br0 PHYSOUT=eth0 SRC=11.11.11.67 DST=224.0.1.1 LEN=32
TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2
Feb  3 13:45:11 bridge kernel: OUTG CONN OTHER: IN=br0 PHYSIN=eth1 OUT=br0 PHYSOUT=eth0 SRC=11.11.11.67 DST=224.0.1.1 LEN=32
TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2
Feb  3 13:45:11 bridge kernel: OUTG CONN OTHER: IN=br0 PHYSIN=eth1 OUT=br0 PHYSOUT=eth0 SRC=11.11.11.67 DST=224.0.1.1 LEN=32
TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2
Feb  8 11:02:10 bridge kernel: INBOUND ICMP: IN=br0 PHYSIN=eth0 OUT=br0 PHYSOUT=eth1 SRC=161.58.176.160 DST=11.11.11.75 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=55782 PROTO=ICMP TYPE=8 CODE=0 ID=512 SEQ=19298
Feb  8 11:02:11 bridge kernel: INBOUND ICMP: IN=br0 PHYSIN=eth0 OUT=br0 PHYSOUT=eth1 SRC=161.58.176.160 DST=11.11.11.75 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=55910 PROTO=ICMP TYPE=8 CODE=0 ID=512 SEQ=22370
Feb  8 11:02:13 bridge kernel: INBOUND ICMP: IN=br0 PHYSIN=eth0 OUT=br0 PHYSOUT=eth1 SRC=161.58.176.160 DST=11.11.11.75 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=55966 PROTO=ICMP TYPE=8 CODE=0 ID=512 SEQ=25442
Feb 19 12:11:00 bridge kernel: OUTG CONN OTHER: IN=br0 PHYSIN=eth1 OUT=br0 PHYSOUT=eth0 SRC=11.11.11.67 DST=224.0.1.1 LEN=32
TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2
Feb 19 12:11:01 bridge kernel: OUTG CONN OTHER: IN=br0 PHYSIN=eth1 OUT=br0 PHYSOUT=eth0 SRC=11.11.11.67 DST=224.0.1.1 LEN=32
TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2
Feb 19 12:11:04 bridge kernel: OUTG CONN OTHER: IN=br0 PHYSIN=eth1 OUT=br0 PHYSOUT=eth0 SRC=11.11.11.67 DST=224.0.1.1 LEN=32
TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2

Any long term ("low and slow") scanning activity?

src
66.60.166.84084.166-60-66-fuji-dsl.static.surewest.net21829 
66.186.83.178Timmins-Cabl-66-186-83-178.vianet.ca10197 
127.0.0.1localhost6394 
63.13.135.272Cust27.VR2.NYC4.broadband.uu.net5533 
63.123.70.16663.123.70.1663897 
63.125.10.7host7.southern-charms.com3727 
63.126.133.11763.126.133.1172423 
67.123.234.132adsl-67-123-234-132.dsl.anhm01.pacbell.net2334 
63.126.133.863.126.133.81963 
194.128.177.225mailhost.omt.co.uk1960 
69.55.143.53xdsl-69-55-143-53.sofnet.net1809 
61.48.11.17061.48.11.1701805 
218.103.70.82n218103070082.netvigator.com1592 
63.126.190.22763.126.190.2271411 
83.30.20.8li8.neoplus.adsl.tpnet.pl1296 
208.61.160.83adsl-61-160-83.mco.bellsouth.net1178 
68.237.49.113pool-68-237-49-113.ny325.east.verizon.net1077 
63.126.133.13163.126.133.1311020 
217.81.50.100pD9513264.dip.t-dialin.net1013 
61.120.200.227hq-mail.autobytel-japan.com888 
83.26.23.92kn92.neoplus.adsl.tpnet.pl712 
200.203.174.67200.203.174.67678 
200.203.174.125200.203.174.125625 
192.168.0.1192.168.0.1591 
192.168.0.9192.168.0.9591 
65.94.22.107MTL-ppp-149514.qc.sympatico.ca552 
63.122.75.30cable2-30.heathrowcable.net545 
67.68.37.235Toronto-HSE-ppp3733490.sympatico.ca537 
206.130.246.2gateway.ssw.ca514 
63.126.133.12263.126.133.122503 
Other37352  

Yes, there is what appear to be a slow scan. 63.126.133.117 is one of them:

At Feb 3 16:13:17, Feb 5 21:48:39, Feb 12 22:25:07, Feb 18 23:10:38... it scans again the server 11.11.11.72. I think why I think it's a worm.

src
63.13.135.272Cust27.VR2.NYC4.broadband.uu.net2588 
64.156.39.12dialup-64.156.39.12.Dial1.Denver1.Level3.net1602 
63.126.25.23063.126.25.230574 
68.237.49.113pool-68-237-49-113.ny325.east.verizon.net507 
66.52.249.7066-52-249-70.sttl.dial.netzero.com337 
202.108.249.51202.108.249.51267 
210.13.22.79210.13.22.79193 
202.96.86.37202.96.86.37173 
203.200.213.182203.200.213.182168 
168.160.224.144168.160.224.144144 
202.108.249.21202.108.249.21137 
221.3.141.40221.3.141.40113 
61.237.17.5561.237.17.5587 
221.11.4.8221.11.4.883 
148.243.211.25na-148-243-211-25.na.avantel.net.mx77 
63.199.242.48adsl-63-199-242-48.dsl.sndg02.pacbell.net73 
81.201.196.125bar-196-E125.rhone.ch72 
81.128.70.195host81-128-70-195.in-addr.btopenworld.com69 
202.129.40.27202.129.40.2766 
148.243.211.247na-148-243-211-247.na.avantel.net.mx66 
68.125.63.65adsl-68-125-63-65.dsl.pltn13.pacbell.net60 
64.231.161.3HSE-Hamilton-ppp291545.sympatico.ca60 
148.243.211.6na-148-243-211-6.na.avantel.net.mx56 
63.80.79.4063.80.79.4053 
202.97.179.115202.97.179.11550 
63.226.20.35lkmdslppp35.phnx.uswest.net48 
4.43.215.143lsanca1-ar58-4-43-215-143.lsanca1.dsl-verizon.net48 
69.44.153.3869.44.153.3848 
221.11.4.9221.11.4.946 
66.52.249.7166-52-249-71.sttl.dial.netzero.com46 
Other5575  

The same phenomena can be view with UDP. Let's take 64.156.39.12 who is scanning for UDP 135

[kmaster@christophe sotm30_bis]$ grep 64.156.39.12 honeynet-Feb1_FebXX.log|grep DPT=135|cut -d: -f1-2|uniq
Feb  1 10:07
Feb  1 10:09
Feb  1 22:41
Feb  2 02:36
Feb  2 05:48
Feb  3 04:28
Feb  3 15:01
Feb  4 09:23
Feb  5 00:27
Feb  5 03:09
Feb  5 22:10
Feb  6 07:39
Feb  6 08:02
Feb  7 00:33
Feb  7 10:03
Feb  7 10:24
Feb  7 22:47
...

I think it's also a worm on a fast link.

What other common internet noise types do you see?

Internet Worms and automated exploit tools are the most common internet noise types.

Any unidentified/anomalous traffic observed? Please suggest hypothesis for why it is there and what it indicates.

There is traffic with private IP (RFC 1918), some examples: 10.10.228.18, 172.16.3.74, 192.168.0.1... IP spoofing has been used. Internet router has no ACL to filter private IP, the provider need to read RFC 3704 about Ingress Filtering for Multihomed Networks...

There is also a very unusual value: 127.0.0.1!

[kmaster@christophe sotm30_bis]$ grep 127.0.0.1 honeynet-Feb1_FebXX.log|head -3
Feb 16 08:08:09 bridge kernel: INBOUND TCP: IN=br0 PHYSIN=eth0 OUT=br0 PHYSOUT=eth1 SRC=127.0.0.1 DST=11.11.11.82 LEN=40 TOS=0x00 PREC=0x00 TTL=119 ID=21925 PROTO=TCP SPT=80 DPT=1537 WINDOW=0 RES=0x00 ACK RST URGP=0
Feb 16 08:08:22 bridge kernel: INBOUND TCP: IN=br0 PHYSIN=eth0 OUT=br0 PHYSOUT=eth1 SRC=127.0.0.1 DST=11.11.11.72 LEN=40 TOS=0x00 PREC=0x00 TTL=119 ID=23190 PROTO=TCP SPT=80 DPT=1866 WINDOW=0 RES=0x00 ACK RST URGP=0
Feb 16 08:08:34 bridge kernel: INBOUND TCP: IN=br0 PHYSIN=eth0 OUT=br0 PHYSOUT=eth1 SRC=127.0.0.1 DST=11.11.11.85 LEN=40 TOS=0x00 PREC=0x00 TTL=119 ID=24295 PROTO=TCP SPT=80 DPT=1271 WINDOW=0 RES=0x00 ACK RST URGP=0

It's TCP RST packet coming from the external interface.

Was the honeypot compromised during the observed time period? How do you know?


Yes, there are outbound connection other than request for port auth/ident (TCP DPT=113).

To sumarize the results from
grep "OUTG CONN TCP" honeynet-Feb1_FebXX.log|grep SYN|grep -v "DPT=113":
Port 80
209.63.57.10	www1.0catch.com								Feb  7 16:28:50
62.211.66.12	Telecom Italia NET, http://www.xoom.it (members.xoom.virgilio.it)	Feb  8 06:52:55
207.66.155.21	Bondo and Remer BONDO-REMER (NET-207-66-155-16-1)			Feb  8 07:34:30
195.27.176.155	master.openssl.org							Feb  8 10:57:25

Port 21:
193.230.153.133	www.as.ro (maybe www.i-need-ftp.as.ro, www.lugojteam.as.ro)		Feb  8 07:14:07
209.63.57.10	www1.0catch.com								Feb  7 16:28:50
216.254.0.38	rpmfind.speakeasy.net							Feb  8 12:01:03
66.187.232.40	updates.redhat.com							Feb  8 12:15:14

Port 1291:
Port 1051:
Port 3184:
64.161.61.115	adsl-64-161-61-115.dsl.snlo01.pacbell.net				Feb  8 10:50:04
I think a FTP have been done and at least three files has been downloaded.

Xoom is known to be used by hacker, we already have seen its FTP used in SOTM29. 11.11.11.67 has try to contact master.openssl.org and updates.redhat.com, it should be a Linux RedHat system with an unpatched OpenSSL.

If you look at open ports list, you will see a lot of external hosts have been contacted for FTP, SSH, IRC, IRC via PsyBNC... A time line can found here.

If you'd obtain such firewall logs from a production system, what source IPs or groups of such IPs you'd focus on as a highest threat?

Outbound connection logs are the more interesting data. If there are unusual outbound traffic like a lot of connexion rejected by the firewall from an inside interface (dmz or lan), you may have been hacked. A black hat or a worm in an internal lan is a highest treat.

Christophe GRENIER
Security Consultant
Global Secure
mail me personally or at work

Other high-level metrics about the data can be found here.

Internet Links:
ISC Incidents trends
DShield TOP Ports
w32.welchia.worm
Tech alert about MyDoom
CAN-2003-0605 CAN-2003-0528 CAN-2003-0352 eeye Advisorie about Windows RPC, RPC DCOM
CAN-2002-0656 about OpenSSL SSLv2 handshake bug
GenII Honeynet
SOTM29, the previous challenge