This honeynet was a high interaction research honeynet deployed by the UK Honeynet Project in a UK ISP data centre. After a few hours of general background network activity, the Redhat Linux 7.3 honeypot was scanned, compromised and an IRC server installed. A number of further compromises occurred, as multiple attackers located the vulnerable system and exploited it for their own purposes, before the honeypot server was used to host a phishing attack targeting a well known US bank. For brevity, this detailed analysis of the uploaded content only covers the activity relevant to the phishing attack.
The first zip file downloaded was bank.zip, via wget from the Romanian FTP server host2.go.ro.
The file was a valid zip archive, and contained the following data:
This was a pre-prepared web site that mimics the official login page for a major US bank. It included a server side PHP script called check.php, intended to harvest any credentials entered by an unsuspecting end user and email them to the phisher. The presence of a Thumbs.db file suggests that the contents was prepared on a MS Windows system. Scrisoare is the Romanian word for letter, suggesting an email or message or Romanian origin.
Analysis of the check.php script (shown below) reveals that this script is a more advanced version of the script used the German phishing incident. Basic checks on the card number received have been added, along with a refinement that uses the credit card number to classify cards into different types and insert the type into the subject line of the email. This suggests basic scripting abilities and not just a simple script kiddie.
The check.php script:
</html>
";
}
}
}
?>
A hard coded IP address of 66.XXX.XXX.XXX was included in the original script, suggesting that the script had already been used on an alternate server (either another compromised host or a test machine local to the attacker). This IP address appears to be a home DSL IP block belonging to a US carrier and no web site is hosted there now. This script also links directly to the real target bank web site, presumably for added realism and to attempt to confuse recipients.
The second file downloaded using FTP was bank1.tgz:
The file was a valid tgz archive, and contained the following data:
The attacker moved the new files into location in the web root and used the pico editor to change popup.html to point to a test server (http://69.24.XX.XX/testing.php). Again, this was possibly a previously compromised host or a system local to the attacker.
Interestingly, because this FTP session was plain text and the attacker helpfully used the directory listing command, we can observe the attacker�s activities and also see what other tools they have stored in their FTP area. Directory listings are often very useful in providing further background detail during incident analysis:
USER xxxxxxxxx
331 Password required for phiser.
PASS xxxxxxxxx
230 User phisher logged in.
SYST
215 UNIX Type: L8
PASV
227 Entering Passive Mode (81,196,XXX,XXX,99,226).
LIST
150 Opening ASCII mode data connection for file list
-rw-r--r-- 1 free web 1890 Jun 16 01:03 Desktop.zip
-rw-r--r-- 1 free web 6536 Jul 19 11:26 Scrisori.zip
-rw-r--r-- 1 free web 2788 Jun 16 18:29 bla1.txt
-rw-r--r-- 1 free web 14834 Jun 17 13:16 ebay only
-rw-r--r-- 1 free web 247127 Jun 14 19:58 emailer2.zip
-rw-r--r-- 1 free web 467214 Jun 10 08:36 eros.tgz
-rw-r--r-- 1 free web 417494 Jul 18 22:27 ex.tgz
-rw-r--r-- 1 free web 2833 Jul 11 16:55 flit.tgz
-rw-r--r-- 1 free web 7517 Jun 11 11:53 html1.zip
-rw-r--r-- 1 free web 10383 Jul 3 19:07 index.html
-rw-r--r-- 1 free web 413 Jul 18 22:09 index.zip
drwxr-xr-x 2 free web 54 Jul 11 04:49 listz
-rw-r--r-- 1 free web 246920 Jun 14 20:38 massmail.tgz
-rw-r--r-- 1 free web 8192 Jun 12 07:18 massmail.zip
-rw-r--r-- 1 free web 0 Jun 17 10:09 neptun.tgz
-rw-r--r-- 1 free web 310132 Jun 11 09:25 paginabuna1.tgz
-rw-r--r-- 1 free web 54818 Jun 18 23:24 scampagededat1.zip
-rw-r--r-- 1 free web 12163 Jun 9 01:31 send.php
-rw-r--r-- 1 free web 2094 Jun 20 11:49 sendspamAOL1.tgz
-rw-r--r-- 1 free web 2173 Jun 14 22:58 sendspamBUN1.tgz
-rw-r--r-- 1 free web 2783 Jun 15 00:21 sendspamBUNzip1.zip
-rw-r--r-- 1 free web 2096 Jun 16 18:46 sendspamNEW1.tgz
-rw-r--r-- 1 free web 574 Jul 11 01:08 sendbank1.tgz
-rw-r--r-- 1 free web 3238 Jul 18 23:07 sendbankNEW.tgz
-rw-r--r-- 1 free web 64443 Jun 11 02:33 spam
-rw-r--r-- 1 free web 83862 Jun 9 09:56 spamz.zip
drwxr-xr-x 2 free web 64 Jul 16 12:05 stuff
-rw-r--r-- 1 free web 2424 Jul 19 11:27 suntrust.zip
-rw-r--r-- 1 free web 36441 Jul 18 00:52 usNEW.zip
-rw-r--r-- 1 free web 36065 Jul 11 17:04 bank1.tgz
drwxr-xr-x 2 free web 49 Jul 16 12:26 banka
-rw-r--r-- 1 free web 301939 Jun 8 13:17 www1.tar.gz
-rw-r--r-- 1 free web 327380 Jun 7 16:24 www1.zip
226 Transfer complete.
CWD banka
250 CWD command successful.
PASV
227 Entering Passive Mode (81,196,XXX,XXX,115,151).
LIST
150 Opening ASCII mode data connection for file list
-rw-r--r-- 1 free web 1765 Jul 3 18:25 check.php
-rw-r--r-- 1 free web 39988 Jul 3 18:25 bank.zip
-rw-r--r-- 1 free web 40152 Jul 16 12:26 banka.zip
226 Transfer complete.
CWD ..
250 CWD command successful.
PASV
227 Entering Passive Mode (81,196,XXX,XXX,133,197).
LIST
150 Opening ASCII mode data connection for file list
-rw-r--r-- 1 free web 1890 Jun 16 01:03 Desktop.zip
-rw-r--r-- 1 free web 6536 Jul 19 11:26 Scrisori.zip
-rw-r--r-- 1 free web 2788 Jun 16 18:29 bla1.txt
-rw-r--r-- 1 free web 14834 Jun 17 13:16 ebay only
-rw-r--r-- 1 free web 247127 Jun 14 19:58 emailer2.zip
-rw-r--r-- 1 free web 467214 Jun 10 08:36 eros.tgz
-rw-r--r-- 1 free web 417494 Jul 18 22:27 ex.tgz
-rw-r--r-- 1 free web 2833 Jul 11 16:55 flit.tgz
-rw-r--r-- 1 free web 7517 Jun 11 11:53 html1.zip
-rw-r--r-- 1 free web 10383 Jul 3 19:07 index.html
-rw-r--r-- 1 free web 413 Jul 18 22:09 index.zip
drwxr-xr-x 2 free web 54 Jul 11 04:49 listz
-rw-r--r-- 1 free web 246920 Jun 14 20:38 massmail.tgz
-rw-r--r-- 1 free web 8192 Jun 12 07:18 massmail.zip
-rw-r--r-- 1 free web 0 Jun 17 10:09 neptun.tgz
-rw-r--r-- 1 free web 310132 Jun 11 09:25 paginabuna1.tgz
-rw-r--r-- 1 free web 54818 Jun 18 23:24 scampagededat1.zip
-rw-r--r-- 1 free web 12163 Jun 9 01:31 send.php
-rw-r--r-- 1 free web 2094 Jun 20 11:49 sendspamAOL1.tgz
-rw-r--r-- 1 free web 2173 Jun 14 22:58 sendspamBUN1.tgz
-rw-r--r-- 1 free web 2783 Jun 15 00:21 sendspamBUNzip1.zip
-rw-r--r-- 1 free web 2096 Jun 16 18:46 sendspamNEW1.tgz
-rw-r--r-- 1 free web 1574 Jul 11 01:08 sendbank1.tgz
-rw-r--r-- 1 free web 2238 Jul 18 23:07 sendbankNEW.tgz
-rw-r--r-- 1 free web 64443 Jun 11 02:33 spam
-rw-r--r-- 1 free web 83862 Jun 9 09:56 spamz.zip
drwxr-xr-x 2 free web 64 Jul 16 12:05 stuff
-rw-r--r-- 1 free web 2424 Jul 19 11:27 suntrust.zip
-rw-r--r-- 1 free web 36441 Jul 18 00:52 usNEW.zip
-rw-r--r-- 1 free web 36065 Jul 11 17:04 bank1.tgz
drwxr-xr-x 2 free web 49 Jul 16 12:26 banka
-rw-r--r-- 1 free web 301939 Jun 8 13:17 www1.tar.gz
-rw-r--r-- 1 free web 327380 Jun 7 16:24 www1.zip
226 Transfer complete.
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (81,196,XXX,XXX,113,86).
RETR bank1.tgz
150 Opening BINARY mode data connection for bank1.tgz (36065 bytes)
226 Transfer complete.
QUIT
221 Goodbye.
The contents of this FTP server home directory suggests that the phisher is heavily involved in spam and phishing activities, with pre-built content and message delivery tools targeting many well known online brands stored on this server. Based on this captured session, this phishing activity is not likely to be an isolated incident.
The third file downloaded was sendbankNEW.tgz from the Romain FTP server host2.go.ro.
The file was a valid archive and contained the following files:
The purpose of each file is listed in the table below:
| File | Contents and purpose |
| ini.inc | Spam sending configuration |
| list.txt | This file contained a list of 5 email addresses to send spam email to. Because of the limited size and Romanian email addresses linked to the attacker, this was presumably the email addresses of fellow gang members and not a real phishing attack |
| bank.php | A simple PHP script to read the contents of a text file (bla.txt) and email it to each recipient in an input file (list.txt) |
The email lure blah.txt was notable for having good grammar and spelling, legalise at the bottom about "Equal Opportunity Lending" and heavy use of files linked directly from the official web site of the targeted bank, all of which help it to appear more realistic. One ironic point to note is that the email even included an exhortation to not provide passwords to fraudulent web sites, or to ever email your password to a third party!
The bank.php mass emailing script to send spam advertising this particular phishing scam is shown below:
XXXXXXXXX<restore@targetbank.com>\n";
$mail_header .= "Content-Type: text/html\n";
$subject="In attention of Target Bank Members ! Restore Your Account Now!";
$body=loadini("bla.txt");
if (!($fp = fopen("list.txt", "r")))
exit("Unable to
open $listFile.");
$i=0;
print "Start time is "; print date("Y:m:d H:i"); print
"\n";
while (!feof($fp)) {
fscanf($fp, "%s", $name);
$i++;
mail($name, $subject, $body, $mail_header);
}
print "End time is "; print date("Y:m:d
H:i"); print "\n";
print "$i"; print "emails sent."; print"\n";
?>
Although simple, it is functional and could easily have been used to send many more messages than the 5 test messages sent from the honeynet. The honeynet architecture would have restricted outbound emails, but the honeypot was taken offline for forensic analysis before any bulk spam email could be sent by the attacker.