1 00:00:00,000 --> 00:00:05,420 Okay, good afternoon everyone. Welcome to the Packet, welcome back to the Packet Hacking Village. 2 00:00:06,340 --> 00:00:14,120 It is now the top of the hour, 3 p.m., and it is my absolute honor to introduce to you the man of the hour. 3 00:00:15,080 --> 00:00:18,080 He is a security consultant out of Chicago. 4 00:00:19,720 --> 00:00:22,880 And so, what else? 5 00:00:23,400 --> 00:00:25,920 God, I know a lot of your colleagues are in the audience. 6 00:00:26,640 --> 00:00:31,260 And I know some of you are, some of your folks as well. 7 00:00:31,580 --> 00:00:40,540 It is my absolute pleasure, you're going to really enjoy this talk, to introduce to you Elliot Brink, or what I call, also known as Brinkster. 8 00:00:41,180 --> 00:00:42,900 He's going to give a talk on Honeypot. 9 00:00:42,960 --> 00:00:45,440 So, without much ado, Elliot Brink, everyone. 10 00:01:00,760 --> 00:01:02,520 Where do we put this thing? 11 00:01:05,960 --> 00:01:06,640 All right. 12 00:01:07,980 --> 00:01:08,800 Check, check. 13 00:01:11,360 --> 00:01:12,180 Hello, DEF CON. 14 00:01:12,500 --> 00:01:13,200 How are we doing today? 15 00:01:14,980 --> 00:01:15,420 Yeah. 16 00:01:16,800 --> 00:01:17,460 Yeah, better? 17 00:01:17,820 --> 00:01:18,860 All right, much better. 18 00:01:19,420 --> 00:01:20,160 All right. 19 00:01:20,700 --> 00:01:21,540 Hello, DEF CON. 20 00:01:21,740 --> 00:01:22,640 My name is Elliot Brink. 21 00:01:22,960 --> 00:01:25,900 Today, we're going to talk about global Honeypot transactions. 22 00:01:25,920 --> 00:01:26,400 Trends. 23 00:01:26,480 --> 00:01:33,600 It's going to be, you're going to get some information, a little bit of comedy, a tiny bit of sarcasm. 24 00:01:35,680 --> 00:01:36,920 User, Ben, who am I? 25 00:01:37,040 --> 00:01:38,360 My name is Elliot Brink. 26 00:01:38,520 --> 00:01:41,860 I am a senior penetration tester at McGladrey LLP. 27 00:01:42,920 --> 00:01:47,320 Soon to be RSM in October, going through a rebranding. 28 00:01:47,580 --> 00:01:54,980 I perform internal penetration testing, external penetration testing, and quite a bit of social engineering as well. 29 00:01:55,920 --> 00:02:09,100 I am Honeypot crazy, as most of my friends and coworkers would accept that fact and agree, and I'll be available for questions after if time is cramped. 30 00:02:09,200 --> 00:02:20,380 I want to make sure that the next person has enough time to get set up, and just as a general disclaimer, all words here are my own and do not reflect the official views of my employer. 31 00:02:22,140 --> 00:02:24,460 So, here's a quick 10-second agenda. 32 00:02:24,460 --> 00:02:52,460 We're going to talk about what a Honeypot is, we're going to talk about why people run them, and we're going to spend the majority of the time talking about my research and results, initial results for the first couple months, a little bit of a foray into the study of the attackers and methods and techniques, and then we're going to conclude by talking about some of the global trends when we compare systems in the U.S. versus systems abroad. 33 00:02:55,040 --> 00:02:57,140 So, introduction to Honeypots. 34 00:02:57,240 --> 00:03:05,140 So, a Honeypot is an intentionally vulnerable or fake system designed as a trap for potential attackers. 35 00:03:06,400 --> 00:03:10,240 Generally, there is no good interaction with a Honeypot. 36 00:03:11,560 --> 00:03:24,440 Generally, I would say, outside of the scope, the majority of the time it isn't good, any sort of interaction with this system, but the kind of one-liner that I use is, just because Honeypots are a trap, it's just not good. 37 00:03:24,460 --> 00:03:31,140 it isn't good doesn't mean it is bad. It is an event. It should be analyzed. But generally 38 00:03:31,520 --> 00:03:37,580 it's designed to any sort of interaction with this type of system is generally questionable and 39 00:03:37,580 --> 00:03:43,460 should be investigated. Traditionally they are used on the external facing side of the network. 40 00:03:44,460 --> 00:03:51,720 However, there are usage cases for internal honey pots. I don't cover those in this talk. And 41 00:03:51,720 --> 00:04:01,660 there are very good detection of attacks aside from your traditional IDS and firewall. So why do 42 00:04:01,660 --> 00:04:08,320 we run them? The first reason, personal, fun, I think the best reason to do this. Again, 43 00:04:08,440 --> 00:04:14,000 corporate, you have the detection of attacks outside, aside from traditional IDS firewall, 44 00:04:14,700 --> 00:04:21,120 internal detection scenario is possible. And they are heavily used in academia to study malware 45 00:04:21,120 --> 00:04:21,700 abroad. They are used in a lot of different ways. They are used in a lot of different ways. 46 00:04:26,840 --> 00:04:37,440 So I would say boil these down to the three general uses. So enter Kipo. So Kipo is a medium 47 00:04:37,440 --> 00:04:44,980 interaction SSH honey pot written in Python and based on a prior honey pot called Cajoni. It 48 00:04:44,980 --> 00:04:51,680 emulates SSH log in and a full Linux system. So obviously it's running on port 22. It's a 49 00:04:51,700 --> 00:04:55,840 very easy way to run. Someone can hit it. If they log in correctly with the user name and 50 00:04:55,840 --> 00:05:03,620 password, they can run kind of a quick little, you know, set of some generic Unix commands. It 51 00:05:03,620 --> 00:05:08,720 records all of the user name and password guesses in a MySQL database. And it also records the 52 00:05:08,720 --> 00:05:15,560 user interaction. So you can see a live, you can do a play log and actually watch as the 53 00:05:15,560 --> 00:05:21,500 attackers type. Or, you know, if the commands are running really fast, then it's obviously a 54 00:05:21,500 --> 00:05:29,880 script. And you can find it on GitHub. However, for the purposes of this talk, I use my 55 00:05:29,880 --> 00:05:35,600 original, original Kipo version. In the past couple of months, a new version has come out and I 56 00:05:35,600 --> 00:05:41,280 wanted to just mention that for future reference for anyone who is later interested. It's called 57 00:05:41,280 --> 00:05:51,460 Kauri. It is based on Kipo but has a couple of added features such as logging with JSON, SFTP, is it a 58 00:05:51,460 --> 00:06:01,260 allowed? And there is that. Also, when you're running this honeypot, obviously you have all the 59 00:06:01,260 --> 00:06:07,580 data either in a text log or in a MySQL database. You need something to be able to, you know, 60 00:06:08,140 --> 00:06:15,920 consolidate all these, all these numbers and data into a visual diagram for you to see. I use 61 00:06:15,920 --> 00:06:21,440 Kipo graph. You can find that on a, I, I'm going to butcher his name again, but I'm going to 62 00:06:21,460 --> 00:06:26,260 butcher his name. I can, I can, I can. There is also Kipo to elastic search that is quite cool. 63 00:06:26,480 --> 00:06:33,640 And more recent one called Tango Honeypot Intelligence lets you send the logs to Splunk 64 00:06:33,640 --> 00:06:43,280 instance which lets you filter and manipulate the data quite, quite good actually. So here's the 65 00:06:43,280 --> 00:06:50,220 start of the project. So I started this back in January 2014. I had a Raspberry Pi lying around and I 66 00:06:50,220 --> 00:06:56,600 think I was reading like a Lifehacker article or something similar on good uses for Raspberry Pi 67 00:06:56,600 --> 00:07:01,940 and Honeypot came up and I thought, okay, let me give this a shot. Because it's great because it's 68 00:07:01,940 --> 00:07:12,320 a low powered device. It's perfect for single use. And, you know, Raspberry Pis are fun. After 69 00:07:12,840 --> 00:07:19,940 installing Kipo, I liked making a couple little pieces of customization. Quite often attackers go 70 00:07:19,940 --> 00:07:26,360 in and look at the CPU info and mem info and by default I think it emulates just a basic laptop 71 00:07:26,360 --> 00:07:31,800 with a couple of gigs of RAM. Actually I had a buddy who worked at a big IT firm and I said, hey, 72 00:07:31,900 --> 00:07:37,080 can you give me a CPU info and mem info of like a big Linux server? And he's like, how big? And 73 00:07:37,080 --> 00:07:44,160 he's like, I don't know, 48 gigs of RAM, you know. He comes back to me and he says, here's a CPU 74 00:07:44,160 --> 00:07:49,920 info with four, you know, 10 core hyperthreaded processors and you know, I don't really know if that's 75 00:07:49,920 --> 00:07:58,160 and a terabyte of RAM. All right, that will work. Change the host name. Pick your favorite core 76 00:07:58,160 --> 00:08:06,920 banking provider. I won't list any, but et cetera. Pre-log on banner lastly. Want to give 77 00:08:06,920 --> 00:08:12,520 something juicy for the attackers to look at before they're logging in, assuming it's a 78 00:08:12,520 --> 00:08:19,620 manual attacker. Mine says IBM banking server version 7 or something. Complete gibberish. 79 00:08:21,240 --> 00:08:26,860 So here's the first three months. Quarter of a million password guess attempts. About 40 to 80 00:08:26,860 --> 00:08:33,660 10 correctly guessed root slash 123456 per day. But something interesting to note about this 81 00:08:33,660 --> 00:08:41,300 graph. You'll notice, you'll see the initial spike at the beginning. It's very clear from this 82 00:08:41,300 --> 00:08:48,800 graph that there are groups out there that are very, very, very good at detecting when new hosts 83 00:08:48,800 --> 00:08:56,220 hit the Internet. And they're able to tackle this system and get on top of that, enumerate it, save 84 00:08:56,220 --> 00:09:02,120 it, save the data for later. And then the rest is just general grind of the Internet that's always, 85 00:09:02,560 --> 00:09:09,480 always constantly going on. Here's the top ten usernames attempted. So root's obviously a heavy 86 00:09:09,480 --> 00:09:17,540 hitter. They got admin and FTP. But can anyone see the third one? The username is root forward 87 00:09:18,860 --> 00:09:25,800 12345 comma period. Do we know why that's the case? Because someone was using a combined 88 00:09:25,800 --> 00:09:31,640 username and password list and obviously wasn't using Hydra correctly. So this ended up as the 89 00:09:31,640 --> 00:09:41,820 username and it was guessed 233 times. Bravo. Hydra is hard to use. Top ten passwords attempted. 90 00:09:42,180 --> 00:09:47,960 So we can see, you know, generic admin password 123456. There was one in here in particular that 91 00:09:49,320 --> 00:09:55,880 sparked my eye for a quick. I said, okay, what is this? Exclamation point QAZ at WSX. That 92 00:09:55,880 --> 00:10:00,860 doesn't look like it has a normal pattern or something that would be easily guessed. Well, it's 93 00:10:00,860 --> 00:10:08,200 a location-based password. So brute forcing on external IPs with location-based passwords, 94 00:10:09,040 --> 00:10:14,920 probably not as clever as we think. Because if you look at the full list of guest passwords, 95 00:10:15,860 --> 00:10:18,780 there's generated patterns. And I think that's a good thing. And I think that's a good thing. And I 96 00:10:18,780 --> 00:10:19,440 think that's a good thing. And I think that's a good thing. So pattern-based passwords, 97 00:10:19,780 --> 00:10:28,520 location-based passwords, all across the keyboard. So be wary of that. And then the last hop of 98 00:10:28,520 --> 00:10:35,780 attack. So disclaimer. Last hop of attack. This is the last place where I know that the attack 99 00:10:35,780 --> 00:10:42,280 originated from. It could have come from another country prior. But this is the last place that I 100 00:10:42,280 --> 00:10:48,760 know that it existed. We have China, 65, India, USA, Russia, Romania. I got to give kid a 101 00:10:48,760 --> 00:10:56,220 it to France. This was due to like one or two hosts that were hitting this nonstop and 102 00:10:56,220 --> 00:11:04,780 for some reason did not have 1, 2, 3, 4, 5, 6 in their dictionary. So they just kept rotating 103 00:11:04,780 --> 00:11:09,880 the dictionary and just kept rotating and rotating. So they screwed up the statistics 104 00:11:09,880 --> 00:11:19,840 a little bit because of that. A for effort? I don't know. So user input. So this is what I was 105 00:11:19,840 --> 00:11:27,300 waiting for. Because obviously a lot of the data that I'm going to get has to do with brute force 106 00:11:27,300 --> 00:11:32,140 attacks. Because once they successfully get access to this system, then they're going to be able 107 00:11:32,140 --> 00:11:38,100 to log in and do things. So typically it's very common to get a Wget command and then they 108 00:11:38,100 --> 00:11:39,860 download some file from some source. And then they're able to log in and do things. So 109 00:11:39,880 --> 00:11:45,820 this is a strange port and some file name. So once I started to get these, I started thinking, 110 00:11:46,640 --> 00:11:54,180 what happens if I hack back? What happens if I just cut off the file name and the folder? And I 111 00:11:54,180 --> 00:12:01,460 just start navigating to these places and just seeing what's there? So then it began. So this is 112 00:12:01,460 --> 00:12:07,260 the typical situation or typically what I found about 9 out of 10 times. Something called 113 00:12:07,260 --> 00:12:09,860 http file server beta. This is basically the backup file that you can get from a database. 114 00:12:09,860 --> 00:12:23,280 or HFS. Typically had, you know, malware, zip folders, EXEs, etc. Ranging from just generic 115 00:12:23,280 --> 00:12:30,020 stuff to complicated stuff. This over here is the number of times downloaded. Sometimes I'd run 116 00:12:30,020 --> 00:12:37,020 into one that had 20,000 downloads or a couple that had zero. So it's interesting to be able to 117 00:12:37,020 --> 00:12:45,380 correlate these based on how many systems they've potentially compromised. So I'm browsing 118 00:12:45,380 --> 00:12:49,980 around. This is like one of the first ones that I was looking at. And I see this. I see some hacker 119 00:12:49,980 --> 00:12:59,320 note taking or hacker notate. It was a nice HTML file. I assumed it was like a UG devil PHP or 120 00:12:59,320 --> 00:13:04,220 some kind of back door. No. This person was conveniently keeping track of the IP port, 121 00:13:04,380 --> 00:13:07,000 username and password that they were compromising in the same way. So I'm looking at this. 122 00:13:07,020 --> 00:13:12,320 And I'm going to take a look at the same system where they have their malware. So 500 IPs for me to 123 00:13:12,320 --> 00:13:20,900 go consume if my hat was a little darker. So once I saw that then later I found this. So now I'm 124 00:13:20,900 --> 00:13:25,440 getting the same word lists that they're hitting me with. So those are free for me to take. Thank 125 00:13:25,440 --> 00:13:31,240 you for those because now I use those in my pen tests. And then once I found these two things, I 126 00:13:31,240 --> 00:13:37,000 knew exactly what I had to do. I just had to go and download all the things. I didn't have a lot of 127 00:13:37,020 --> 00:13:45,140 found a Google hack I did index those as well this was the string now it says 128 00:13:45,140 --> 00:13:51,120 about 93,000 results stale links you know compromised systems that would get 129 00:13:51,120 --> 00:13:56,520 wiped or fixed it was more realistically about 100 or 200 that Google had indexed 130 00:13:56,520 --> 00:14:03,080 that we're still live and these are some of the findings and some of them are 131 00:14:03,080 --> 00:14:08,360 pretty spectacular typically I'd say the the highest thing that I found was 132 00:14:08,360 --> 00:14:14,260 Linux local root exploits there you know circuit 2007 in 2012 but here's the 133 00:14:14,260 --> 00:14:21,280 funny thing they log in with the root account and the password 1 2 3 4 5 6 they 134 00:14:21,280 --> 00:14:29,080 download a local root exploit and then they run it so you already have root 135 00:14:29,080 --> 00:14:31,320 there is no root root 136 00:14:35,000 --> 00:14:43,000 yeah another thing I'd find Windows DDoS just generic botnet exes compromise 137 00:14:43,000 --> 00:14:48,860 sends traffic the two craftier types of backdoors that I would see our SSH 138 00:14:48,860 --> 00:14:53,600 backdoors with Perl scripts as well as I'd say the most sophisticated which was 139 00:14:53,600 --> 00:14:58,400 very very very few was when people go in and add their own SSH key which to me 140 00:14:58,400 --> 00:15:02,980 seems like a no-brainer but depending on this you know black hat 141 00:15:03,080 --> 00:15:09,400 level of expertise this could be too complicated for them so here's an 142 00:15:09,400 --> 00:15:15,440 example of one of the exes that I just a random server dot exe I throw it 143 00:15:15,440 --> 00:15:20,960 through virus total it's got a very high detection ratio I hope I I'm glad I 144 00:15:20,960 --> 00:15:25,280 don't have any of the five AV scanners that didn't detect this for some reason 145 00:15:26,360 --> 00:15:31,340 detector ratio 50 out of 55 obviously prepackaged malware you know very easy 146 00:15:31,340 --> 00:15:33,060 to detect you know Gronkforce or whatever you like. The last thing I would think about is anything made ofív 147 00:15:33,060 --> 00:15:39,080 grandma with a three month old, you know, virus definitions would probably not suffer 148 00:15:39,740 --> 00:15:48,260 from this. Then I saw this one file named FreeBSD. And originally I thought, okay, this 149 00:15:48,260 --> 00:15:55,680 is, they just named it this, but they're probably going to put it, you know, in a Linux system 150 00:15:55,680 --> 00:16:01,820 maybe to blend in. Maybe the sys admin has no idea what he's doing. But upon further 151 00:16:01,820 --> 00:16:14,080 inspection, it's L32 Intel FreeBSD for FreeBSD 8.4. So some of these people have very basic 152 00:16:14,080 --> 00:16:19,000 tool kits, but some of these guys actually had some pretty complicated tool, you know, 153 00:16:19,000 --> 00:16:27,780 sophisticated tool kits, which is nice to see. And then the crown jewel. This is only from the 154 00:16:27,780 --> 00:16:31,800 first three months. Originally I found a file named FreeBSD 8.4, and I was like, okay, this is 155 00:16:31,800 --> 00:16:37,120 a file containing just a text file just chilling on the directory, just, you know, right next to 156 00:16:37,120 --> 00:16:41,260 all the little malware is this text file. And I go, oh, what's this? It's an SSH file that 157 00:16:41,260 --> 00:16:47,640 contained 1,000 IPs, ports, usernames and passwords. Later a couple months I found one with 158 00:16:47,640 --> 00:16:53,360 5,000. And about three months ago I found one that was like a couple megs. I look at it, it's 159 00:16:53,360 --> 00:17:00,860 got about 80,000 lines in it. So if you want to compromise a bunch of theoretically compromise a 160 00:17:01,800 --> 00:17:06,560 bunch of things, just run a honeypot for a year and that data just comes to you. So it's 161 00:17:06,560 --> 00:17:10,440 interesting, because you've got two or fours going on here. I mean, if I'm a member of the 162 00:17:10,440 --> 00:17:15,740 competing hacking team and I find this, I'm going to be able to take these systems, flip them, 163 00:17:16,820 --> 00:17:26,360 and now their portion of their botnet becomes mine. One last note on this. You know, obviously 164 00:17:26,360 --> 00:17:31,780 since, you know, enumerating these would be illegal, I would be under the assumption that 165 00:17:31,800 --> 00:17:40,700 even if half of the numbers here were correct logons, that is still a lot of systems that you 166 00:17:40,700 --> 00:17:47,220 just stumble on. So now I'm going to make the move into taking a look at the interesting 167 00:17:47,220 --> 00:17:52,740 attackers. I say interesting because some are funny, some are dumb, some are actually kind of, 168 00:17:52,740 --> 00:17:59,460 you know, unique. So we're going to learn the difference between little baby Winnie Googling how 169 00:17:59,460 --> 00:18:01,780 to use Hydra. And we're going to learn how to use Hydra. And we're going to learn how to use the 170 00:18:01,780 --> 00:18:12,100 six pack, abs, Winnie Googling how to eat souls. Here's the script kitty. Or secretly a genius, 171 00:18:12,360 --> 00:18:17,620 but I'm guessing script kitty. The password is root every time, but the user name changes. 172 00:18:18,900 --> 00:18:23,840 Again, Hydra, you know, there's a user name flag and a password flag. You've got to make sure 173 00:18:23,840 --> 00:18:31,160 you get the two right, otherwise this happens. This was someone from the San Francisco area, or 174 00:18:31,160 --> 00:18:38,140 slash San Jose. So shout out to the West Coast. What's going on here? And the success of this is 175 00:18:38,140 --> 00:18:43,840 debatable. At least there's no account lockout. But again, this is going to be noisy enough to any 176 00:18:44,920 --> 00:18:49,080 good corporation that finds something like this is going to shut this person off very, very quickly. 177 00:18:49,760 --> 00:18:59,740 That graph right there shows that I only had 3.5 megabits in and they throttled my Internet connection and I had to turn off the Pi. 178 00:19:01,080 --> 00:19:09,640 You have the everything under the sun attackers. They're using a dictionary slash dictionary. This is 179 00:19:09,640 --> 00:19:15,120 extremely noisy and it's going to get picked up in a corporate environment in a heartbeat. I have seen 180 00:19:15,120 --> 00:19:22,860 worse attacks, but this is not the best. You've got to minimize your scope, guy. Dictionary, 181 00:19:22,860 --> 00:19:29,700 dictionary, not how it works. I will say this. There are a couple of industries where I could a 182 00:19:29,740 --> 00:19:36,600 assume that someone is using the username straddle on a server, but those won't be discussed here. 183 00:19:41,280 --> 00:19:49,620 You see some interesting coincidence. So these were three separate systems that I own. And from the 184 00:19:49,620 --> 00:19:59,500 same IP across the entire day, I get the UBNT username, UBNT password. So it's interesting. When you 185 00:19:59,740 --> 00:20:07,020 set up multiple systems, you can actually see one single attacker hit your system, the other system, 186 00:20:07,060 --> 00:20:14,920 and the other system all within the course of a day. So. And then here we have the better 187 00:20:14,920 --> 00:20:21,360 attackers. So I give these guys a gold star. Good job. Because these are targeted, you know, 188 00:20:21,360 --> 00:20:29,380 targeted attacks that are a little bit more specific. Postgres, you know, targeting Linux service accounts, you know, accounts that would 189 00:20:29,380 --> 00:20:35,720 actually be in existence versus the username straddle. These guys are doing much better. But then 190 00:20:35,720 --> 00:20:43,720 finally, we have the bizarre. And I kid you not, this actually happened. This was the username. It was 191 00:20:43,720 --> 00:20:53,840 web footed horse expletive phenomite with the password lull dongs. I watched this. I watched all nine of my 192 00:20:53,840 --> 00:20:59,360 systems. This guess happened across all nine systems. Slowly over the course of the day. It was a 193 00:20:59,360 --> 00:21:06,280 long day. If a botnet exists or if the botnet owner is watching this, please find me because I would like to buy you a 194 00:21:06,280 --> 00:21:12,420 drink because that is an amazing username and password combination for your botnet. Or maybe they figured out it was a 195 00:21:12,420 --> 00:21:29,100 honeypot. If so, well done because that is possible. So, expansion. I expanded to Russia, Singapore, and as unlikely as it 196 00:21:29,100 --> 00:21:37,860 sounds, a China VPS that's actually behind the great firewall. You know, it's got all the classic symptoms of being behind the 197 00:21:37,860 --> 00:21:50,800 great firewall, can't access Gmail, et cetera. And more sensors means more data. So, after adding these other eight 198 00:21:50,800 --> 00:21:59,080 systems, I had nine. I have five in the U.S. I got about 18 million password guesses, guess attempts across the 199 00:21:59,100 --> 00:22:07,880 world. All nine of them. And from this, I got about 900,000 unique. I also add in all the dictionaries that I stole 200 00:22:07,880 --> 00:22:16,000 from the HFS systems. So, that adds a couple extra thousand as well. So, with more sensors means more user 201 00:22:16,000 --> 00:22:29,080 interaction. And it means a broader range of attackers. So, Russia, China, and Singapore. So, I'm going to 202 00:22:29,100 --> 00:22:36,620 start with China. These sensors were designed to answer a couple of important questions. Are there geographic 203 00:22:36,620 --> 00:22:44,980 differences in the attackers depending on the country? At least from the last hops perspective, so the last place 204 00:22:44,980 --> 00:22:52,160 that we know where the attack originated, China is the main aggressor for the U.S.A. If I go and get a system in 205 00:22:52,160 --> 00:22:59,080 mainland China, is the U.S.A. going to be the main aggressor for China? And through that, I was able to get a 206 00:23:06,660 --> 00:23:16,760 system in the U.S.A. I don't know why. So, the China VPS honeypot is very, I'm talking a little bit 207 00:23:16,760 --> 00:23:22,360 about the infrastructure and just kind of things I noticed before I got it, or while I got it. Very, 208 00:23:22,500 --> 00:23:29,080 very, very spooky. There were random net stand entries by default. So, I'm not going to go into 209 00:23:29,100 --> 00:23:34,840 that. This was probably something that was just recycled. And they just reset the root user name and 210 00:23:34,840 --> 00:23:44,480 password and just handed it off to me. A app get update, app get upgrade, signaled the reinstall of the 211 00:23:44,480 --> 00:23:53,260 grub bootloader. And it was already up to date. So, I don't know, back door maybe? Who knows? I'm 212 00:23:53,260 --> 00:23:59,080 going to take a second look at this. Maybe I'll get something interesting for another talk based on this. And there were two, I've been 213 00:23:59,100 --> 00:24:01,580 thinking about this for a long time. There were two IPs that were constantly port scanning me every 30 seconds. 214 00:24:02,120 --> 00:24:09,980 They're owned by a China telecom company. And from what I can imagine is they have the infrastructure to do a 215 00:24:09,980 --> 00:24:18,800 heartbeat across the whole network. You know, consistently. Every 30 seconds. And so, China has some strange laws 216 00:24:18,800 --> 00:24:28,260 about port 80. You need something called an ICP license for port 80. The reason I bring this up is my statistics program, 217 00:24:29,100 --> 00:24:37,360 which is the one that Google Graph utilizes, HTTP and HTTPS. You either have to change HTTP for another port, or 218 00:24:37,360 --> 00:24:48,980 they just say, just use SSL or TLS and you'll be okay. So, okay. Nothing on port 80. Never. So, here is the country 219 00:24:48,980 --> 00:24:59,080 per unique IP for the China VPS. So, some surprising statistics that I ended up seeing. China is using a 220 00:24:59,100 --> 00:25:06,300 port 80. China remains almost the same percentage as if it was a US system. But then you've got a little bit of chunk 221 00:25:06,300 --> 00:25:16,480 in there added that incorporates Hong Kong. France has a significantly bigger TAC profile. The USA is about the same. 222 00:25:16,640 --> 00:25:29,020 So we've got about 8 or 9% hitting a US system, and 8 or 9% hitting a China system. And, you know, little good mentions for a couple of the other ones. Germany, Turkey, Italy, South Korea, United Kingdom. 223 00:25:29,100 --> 00:25:36,700 in Poland. Here are a couple of the honorable mentions. I mainly show this because it points 224 00:25:36,700 --> 00:25:41,440 out the fact that there are compromised hosts in a lot of different countries that you 225 00:25:41,440 --> 00:25:51,240 wouldn't, you know, think of. And the one that I'm noting one interesting item for each of 226 00:25:51,240 --> 00:25:58,540 the international honeypots. What I noticed from the China VPS is there was no really 227 00:25:59,100 --> 00:26:05,060 real initial surge. So in the prior, we saw a graph that went, you know, up. You know, 228 00:26:05,060 --> 00:26:10,120 honeypotting in the USA went up and then it went down and, you know, just the general grind. 229 00:26:10,460 --> 00:26:17,220 Whereas here, we don't actually see that as a trend, which could be just a coincidence or it 230 00:26:17,220 --> 00:26:23,540 could relate to the fact that this has significantly higher numbers of successes per day. So 231 00:26:23,540 --> 00:26:29,080 there, the surge really is difficult to measure. And of course, there's, you know, there's 232 00:26:29,100 --> 00:26:37,900 some anomalies such as that day. It was a bad day for that system. The Singapore VPS. The 233 00:26:37,900 --> 00:26:43,480 question I had was, is anyone going to attack a Singapore IP address? Very, very, very few 234 00:26:43,480 --> 00:26:49,780 attacks. Most of the other systems have two, three million password guess attempts. This has 235 00:26:49,780 --> 00:26:58,980 been on consistently. Only 600,000 total password guesses. And significantly less distinct IPs 236 00:26:59,100 --> 00:27:05,620 versus a USA system, which traditionally had 13,000 or more distinct IP addresses attacking it 237 00:27:06,100 --> 00:27:12,720 from the, from its inception. And some other interesting statistics for Singapore versus the 238 00:27:12,720 --> 00:27:21,020 China VPS. Hong Kong was the biggest hitter. At 50%, it was very interesting to see Hong Kong as 239 00:27:21,020 --> 00:27:29,020 the key player versus China as the key player. Japan had a quarter. Japan really didn't make too much 240 00:27:29,100 --> 00:27:34,920 of a dent in any of the U.S. systems. But in the Singapore systems, they did. As well as China. 241 00:27:35,320 --> 00:27:43,060 And miscellaneous other countries where the remaining 15%. The interesting item about this 242 00:27:43,060 --> 00:27:49,140 system, you've got the USA systems. You've got China, Russia, Singapore. One of the things the 243 00:27:49,140 --> 00:27:58,060 honey pot keeps track of is how many people do root password changes. So a lot of the times, you 244 00:27:58,060 --> 00:27:59,080 know, an attacker come in, just go ahead and jump in on the code and try to hack to the road. So many of the 245 00:27:59,100 --> 00:28:04,380 change the root password and then just leave. It seems a little bit abrupt for me. I mean, 246 00:28:05,120 --> 00:28:11,140 it's going to set off some red flags, especially if the system is actually actively being 247 00:28:11,140 --> 00:28:18,400 monitored. But the Singapore VPS consistently about, you know, once a week had root password 248 00:28:18,400 --> 00:28:25,620 change. So, you know, maybe it has to do with the technical abilities or those that are 249 00:28:25,620 --> 00:28:30,340 attacking, those that are attacking from these specific nations, maybe that's a strategy that 250 00:28:30,340 --> 00:28:40,520 they use, more than groups based in the U.S. or China. And just as a side note, this system 251 00:28:40,520 --> 00:28:47,400 actually validates the initial surge quite effectively, too. Starting off with basically 252 00:28:47,400 --> 00:28:54,860 nothing and then for the period of basically a whole month just getting absolutely slammed. I 253 00:28:54,860 --> 00:28:55,560 mean, a hundred and... 254 00:28:55,620 --> 00:29:04,960 You know, 130, you know, all the way down with a couple of additional spikes to be noted. And 255 00:29:04,960 --> 00:29:10,800 then the Russia VPS, decent amount of attacks, one and a half million total. Distinct IP is 256 00:29:10,800 --> 00:29:18,020 actually less than Singapore. So it's kind of along the same lines as Singapore VPS. And 257 00:29:18,020 --> 00:29:24,880 again, primary attackers. Hong Kong had over half of the attacks, specifically Hong Kong IP 258 00:29:24,880 --> 00:29:25,340 addresses. 259 00:29:25,620 --> 00:29:32,740 The only, the only issue with the statistics for this one is a huge chunk, interestingly, came 260 00:29:32,740 --> 00:29:40,360 from IP addresses that had absolutely no lookup values. I was using the MaxMind database and 261 00:29:40,360 --> 00:29:47,760 just a large chunk just came from unknown IPs and then miscellaneous countries took up the 262 00:29:47,760 --> 00:29:55,600 remaining. Oh, I'm sorry. That should be, it should be, it should be, it should be, it should be 263 00:29:55,620 --> 00:30:06,240 30%. I'm sorry. Yeah, 30%. 30% unknown IPs, 30%. Yikes. And it was interesting to see this gap in 264 00:30:06,240 --> 00:30:12,840 statistics. You know, I have a lot of systems that are attacking this with no known origin. You 265 00:30:12,840 --> 00:30:19,240 know, interesting the GIP spread was slightly different than the USIP. It's because it has this 266 00:30:19,240 --> 00:30:25,600 concentration of Hong Kong. So what's next? Well, we're going to talk a little bit about the 267 00:30:25,620 --> 00:30:31,660 past, versus what's out next. So I wrote a detailed guide on how to deploy a honey pot, 268 00:30:32,560 --> 00:30:38,720 specifically a Quippo honey pot on my blog and website. It will also, we are working on getting it 269 00:30:38,720 --> 00:30:45,400 published on the Wall of Sheep blog as well. The word list, how many people want the 9000 270 00:30:45,400 --> 00:30:52,860 word list? All right, that will be on my blog too. We're going to get some more censors added 271 00:30:52,860 --> 00:30:55,600 across the world. I want to get Australia and California and South Korea. So, this is also kind of a 272 00:30:56,260 --> 00:31:02,800 Belgium and the U.K. I actually tried to get a U.K. VPS. I made the poor mistake of naming the 273 00:31:02,800 --> 00:31:10,740 host name honeypot-UK. My system actually went on my account went under review and I paid for it 274 00:31:10,740 --> 00:31:16,140 and everything and I said where is my system available? And I just get this one line question 275 00:31:16,580 --> 00:31:21,300 from a system administrator that says what are you going to do with this system? I was like oh, 276 00:31:21,300 --> 00:31:27,200 you know, I'm a student. I'm just going to open up a lamp server and just, you know, I just don't 277 00:31:27,200 --> 00:31:33,180 have a Linux server at home so I need to, you know, I need a system to test on. Two weeks later 278 00:31:33,180 --> 00:31:37,400 nothing. A week later I'm like am I going to get this system? They're like we can't accept you as a 279 00:31:37,400 --> 00:31:42,120 customer at this time. Thank you very much. And just refunded my money. So I got to try again 280 00:31:42,120 --> 00:31:49,060 except be a little bit more sneaky this time. Malware analysis. How many people in this room 281 00:31:49,060 --> 00:31:50,400 like to analyze malware? 282 00:31:51,300 --> 00:31:58,560 Quite a few. So through this I have gathered quite a bit. I plan on putting them into some 283 00:31:58,560 --> 00:32:04,480 encrypted zip files and putting them on my website. I will release them for anyone who wants to 284 00:32:04,480 --> 00:32:14,220 play with them at your leisure. Go ahead. If you get owned and you get a remote connection back 285 00:32:14,220 --> 00:32:21,080 to, back to China or some other country, don't blame me. And implementing different types of 286 00:32:21,080 --> 00:32:21,280 sounds. I'm going to show you how to do that. I'm going to show you how to do that. I'm going to 287 00:32:21,280 --> 00:32:24,680 show you a couple of ways to deploy new sensors. Particularly an RDP honey pot and web 288 00:32:24,680 --> 00:32:30,160 application honey pot, I have already deployed a couple of RDP honey pots on the same systems 289 00:32:30,160 --> 00:32:35,620 I have and I'm actually starting to, I will give you guys a sneak peek, the initial 290 00:32:35,620 --> 00:32:44,400 results I'm seeing I'm gathering a really great list of default passwords for POS systems and I 291 00:32:44,400 --> 00:32:50,780 love it. It's great. Just feed them to me. Web application honey pots as well are still on the 292 00:32:50,780 --> 00:32:59,280 to do. So I have a slide for some special thanks. Special thanks to the McGladrey security and 293 00:32:59,280 --> 00:33:08,640 privacy team. Some, all members of Threat Incorporated, a little cooperative for honeypot 294 00:33:10,540 --> 00:33:16,300 enthusiasts came together and we came under one name called Threat Incorporated. I want to give a 295 00:33:16,300 --> 00:33:22,160 shout out to these guys. A couple, if not most, should actually be here in the audience. 296 00:33:23,490 --> 00:33:30,600 I can hear us. He's got a pretty good foothold in KippoGraph. It's how I generate all my 297 00:33:30,600 --> 00:33:36,840 statistics. Gurkhan spoke there. Love it. If you live in the Midwest area and you haven't gone to 298 00:33:36,840 --> 00:33:46,280 Gurkhan, highly recommend. And yeah. So thank you, DEF CON, Wallace Shee. Does anyone else 299 00:33:46,300 --> 00:34:07,900 have any questions? Any questions? No? Yes. Oh, man, I can't hear you. I'm sorry, what? 300 00:34:10,080 --> 00:34:16,280 Why didn't I? Oh, well, if you want to know who I used for hosting, call, you know, 301 00:34:16,300 --> 00:34:23,280 come talk to me. Because I would rather not reveal that, you know, ethical dilemma. But the 302 00:34:23,280 --> 00:34:31,660 system in China costs $70 a year. Most of these, most of these VPS systems are actually pretty low 303 00:34:31,660 --> 00:34:39,240 specs. Half a gig of RAM, quarter gig of RAM, one to two processors, 20 gigs of disk space and 304 00:34:39,240 --> 00:34:46,280 like five terabytes of data. You know, it's five, I, I, I at max use three gigs of disk space. 305 00:34:46,300 --> 00:35:04,060 Like, five gigs per, per system. Yep. How easy is it to detect? So, there is an interesting 306 00:35:04,060 --> 00:35:11,960 talk at Blackhat about this. I have yet to take a look at it. But, you know, one of these, one of 307 00:35:11,960 --> 00:35:16,280 the people I actually thanked wrote a meta-sploit module that will scale up the performance. So, I'm 308 00:35:16,300 --> 00:35:22,740 in a Kippo system and detect if it's a honeypot or not. So that makes it pretty easy. There are 309 00:35:22,740 --> 00:35:30,340 nuances. For example, if someone logs in and types, and this is my favorite example, if you 310 00:35:30,340 --> 00:35:38,620 type ifconfig, it gives you, you know, RXTX number of packets. If you type ifconfig again, 311 00:35:38,740 --> 00:35:46,200 those numbers should be different. They are not. And that's like, you know, step one, see if 312 00:35:46,300 --> 00:35:51,280 a command that produces two different outputs after you run it a second time, if the numbers 313 00:35:51,280 --> 00:35:59,620 are the same, yeah. A second favorite is if someone tries to compile or run a shell script, 314 00:36:00,620 --> 00:36:06,300 it's a little blatantly obvious. A little owl pops up and it says, oh, really? And you have to 315 00:36:06,300 --> 00:36:13,260 type a Y, and then when you type Y and enter, it will say, no way, and just cut you out. Yeah. 316 00:36:18,680 --> 00:36:26,620 Yes. So double exit feature. So the system that I used had a double exit feature. You have to 317 00:36:26,620 --> 00:36:32,960 cut the TCP connection in order to exit the honeypot. If you log into the honeypot and you 318 00:36:32,960 --> 00:36:39,040 type exit, it will reset, it will say root at local host, and people will begin to type 319 00:36:39,040 --> 00:36:45,900 commands assuming that they're on their home system or their remote system. I have a couple of 320 00:36:45,900 --> 00:36:46,280 those. I have a couple of them. I have a couple of them. I have a couple of them. I have a couple 321 00:36:46,280 --> 00:36:52,220 of those. I didn't discuss any of the results, but they're, you know, it's typically like, hey, 322 00:36:52,240 --> 00:36:58,340 let me CD to JDOE, you know. So they're revealing a little bit of information about themselves 323 00:36:58,340 --> 00:37:02,720 without them knowing. And then they type the command and they see, oh, that folder doesn't 324 00:37:02,720 --> 00:37:08,440 exist. And then really quickly I see, like, a cut. So sometimes they figure it out. Sometimes 325 00:37:08,440 --> 00:37:16,260 they don't. Any other questions? No? All right. Well, feel free to come in and ask questions. 326 00:37:16,860 --> 00:37:19,680 If not, that's it. Thank you. Thank you, DEF CON.