1 00:00:00,000 --> 00:00:05,880 And I want to introduce, to make the introduction to Amir Alakani and Joey Muniz. 2 00:00:06,060 --> 00:00:08,640 So Joey happens to be a DJ as well, too. 3 00:00:08,920 --> 00:00:12,180 And Amir has been, gee, he seems like forever. 4 00:00:12,420 --> 00:00:16,480 So the last time you were going to, the last time you were invited, 5 00:00:16,660 --> 00:00:19,900 apparently you had to take the early flight home to the Philippines 6 00:00:19,900 --> 00:00:24,900 because of some things happened and you don't want to know. 7 00:00:25,340 --> 00:00:29,040 Okay, so without much ado, Joey Muniz, Amir Alakani. 8 00:00:35,420 --> 00:00:36,680 Thanks. Thanks, Ming. 9 00:00:37,360 --> 00:00:39,780 All right. How are you guys doing? Sunday. 10 00:00:40,900 --> 00:00:42,280 Yeah? All right. 11 00:00:42,980 --> 00:00:45,940 First off, I've been a DEF CON forever, 12 00:00:46,120 --> 00:00:49,740 and this is actually our fourth time speaking for this event. 13 00:00:50,000 --> 00:00:51,200 But I've never brought my daughter. 14 00:00:51,620 --> 00:00:56,120 So you can see I have the earmuffs on because we do use foul language at times, 15 00:00:56,180 --> 00:00:57,480 but this time we may not. 16 00:00:57,780 --> 00:00:59,420 So hopefully, hey. 17 00:01:00,260 --> 00:01:01,260 Oh, she can hear us. 18 00:01:01,980 --> 00:01:02,580 All right. 19 00:01:03,600 --> 00:01:04,560 She can hear us. 20 00:01:04,580 --> 00:01:05,780 We'll have to be careful with the language. 21 00:01:05,980 --> 00:01:09,420 But there will be an earmuff warning for this particular talk because of that. 22 00:01:09,840 --> 00:01:14,280 The other warning is, unfortunately, Amir and I work for big companies, 23 00:01:15,140 --> 00:01:19,420 and our HR departments got a hold of our talks before this. 24 00:01:19,520 --> 00:01:22,700 And because, hi, YouTube, and the recording of this, 25 00:01:22,860 --> 00:01:25,440 we had to cut off a little bit of the video we're going to show. 26 00:01:26,020 --> 00:01:29,660 It may be posted later in our blogs, but we want to apologize up front. 27 00:01:30,000 --> 00:01:33,040 We got censored by our HR people because we like our jobs, 28 00:01:33,160 --> 00:01:36,820 and some stuff we're going to talk about now is not necessarily legal. 29 00:01:37,700 --> 00:01:40,740 It's not hypothetically legal, right? 30 00:01:40,800 --> 00:01:42,720 This is all in our minds or something like that. 31 00:01:42,940 --> 00:01:44,260 We'll be using the term magic land. 32 00:01:44,500 --> 00:01:46,180 So when we say something happened in magic land, 33 00:01:46,380 --> 00:01:48,820 we're not admitting guilt to what we're going to talk about. 34 00:01:50,300 --> 00:01:54,000 Basically, the subject is, if you didn't see it on the talk, 35 00:01:54,160 --> 00:01:58,560 it's fishing for fishers, the enterprise strikes back. 36 00:01:58,560 --> 00:02:02,500 And the idea is, we're going to talk about fishing, 37 00:02:02,700 --> 00:02:04,840 which we've all hopefully have heard of fishing. 38 00:02:05,620 --> 00:02:06,740 Even Rialin's heard of fishing. 39 00:02:07,480 --> 00:02:10,400 We're going to talk about what you can do from a legal perspective 40 00:02:10,400 --> 00:02:13,460 to defend against it, and then we're going to flip to the dark side 41 00:02:13,460 --> 00:02:15,360 and talk about, well, what else can you do? 42 00:02:15,400 --> 00:02:18,800 How can you actually hack back, which is essentially not really legal. 43 00:02:20,340 --> 00:02:22,920 Basically, as we said, it's been four other talks that we've done. 44 00:02:22,980 --> 00:02:24,680 You can check out our other talks on YouTube. 45 00:02:25,080 --> 00:02:28,380 We've done a ton, but let's first introduce ourselves. 46 00:02:28,560 --> 00:02:28,860 Amir? 47 00:02:30,440 --> 00:02:31,080 All right. 48 00:02:31,280 --> 00:02:34,060 So first of all, I look much better in a suit, 49 00:02:34,180 --> 00:02:35,760 so I decided to put that picture up there. 50 00:02:36,000 --> 00:02:38,120 My name is Amir Lakhani. 51 00:02:38,260 --> 00:02:41,980 I'm actually a researcher, malware reverse engineer, 52 00:02:42,200 --> 00:02:44,380 and I do stuff in forensics. 53 00:02:44,520 --> 00:02:47,220 I run the Dr. Chaos blog, if any of you guys have heard of that. 54 00:02:47,640 --> 00:02:48,940 But yeah, it's me. 55 00:02:49,020 --> 00:02:49,700 I'm a hacker. 56 00:02:49,800 --> 00:02:52,800 That's kind of what I do, and a whole bunch of other BS, I guess. 57 00:02:54,020 --> 00:02:56,040 And then Joey, work for Cisco. 58 00:02:56,200 --> 00:02:56,600 I'm an architect. 59 00:02:57,000 --> 00:02:58,540 I have the security blogger. 60 00:02:58,540 --> 00:03:02,240 Again, on our blogs, either Dr. Chaos and or security blogger. 61 00:03:02,260 --> 00:03:03,960 We'll show the rest of this hopefully later. 62 00:03:04,140 --> 00:03:05,880 We're just told not to do it right now. 63 00:03:07,320 --> 00:03:10,760 Together, we've written three different books in one video class, 64 00:03:11,060 --> 00:03:12,800 and then we've also done books independently. 65 00:03:13,240 --> 00:03:15,340 Our latest book is investigating. 66 00:03:16,080 --> 00:03:18,080 It's basically forensics for a network engineer. 67 00:03:18,480 --> 00:03:21,840 And part of that book, we'll talk today about honeypots 68 00:03:21,840 --> 00:03:24,280 and how to create one, how to create a cuckoo honeypot. 69 00:03:24,780 --> 00:03:27,340 There'll be some details that we're going to leave out 70 00:03:27,340 --> 00:03:28,520 because it's just a lot. 71 00:03:28,540 --> 00:03:30,460 It's a long subject, but a lot of those answers 72 00:03:30,460 --> 00:03:31,620 can be found also in the book. 73 00:03:32,120 --> 00:03:33,140 So that's who we are. 74 00:03:34,040 --> 00:03:35,440 And let's get into the talk. 75 00:03:35,620 --> 00:03:36,360 So, phishing. 76 00:03:36,720 --> 00:03:39,440 We've all, I've likely seen phishing. 77 00:03:39,900 --> 00:03:42,380 As you probably know, it's not just email. 78 00:03:42,760 --> 00:03:44,120 A lot of times, it's email. 79 00:03:44,280 --> 00:03:45,120 It could be phone calls. 80 00:03:45,480 --> 00:03:46,440 It could be text messages. 81 00:03:47,120 --> 00:03:50,100 This is the classic PayPal phish. 82 00:03:50,300 --> 00:03:51,960 This one, I actually got over the phone. 83 00:03:52,160 --> 00:03:54,540 I don't know if this year, if you guys experienced this in the USA, 84 00:03:54,940 --> 00:03:56,980 but I had this spooky robot voice call me 85 00:03:56,980 --> 00:03:58,520 saying that I owe the IRS a bunch of money. 86 00:03:58,520 --> 00:04:00,000 And then when you call back, 87 00:04:00,480 --> 00:04:03,820 basically the scam is that either I can wire them the money now 88 00:04:03,820 --> 00:04:06,220 and not go to court, or I'm going to be forced to go to court. 89 00:04:06,740 --> 00:04:08,200 But that's a very popular one. 90 00:04:08,700 --> 00:04:10,540 And a lot of times, that's the case. 91 00:04:10,720 --> 00:04:14,020 The phishing attacks, they're timing it based on certain things. 92 00:04:14,460 --> 00:04:18,600 So, at Cisco, I'll tell you now, if you want to phish us, 93 00:04:18,720 --> 00:04:21,120 the easiest one is the UPS fake email. 94 00:04:21,800 --> 00:04:23,240 Because basically, it's Christmas time. 95 00:04:23,400 --> 00:04:25,060 You don't know if your husband or wife got you something. 96 00:04:25,200 --> 00:04:26,020 You're like, oh, what is this? 97 00:04:26,080 --> 00:04:26,660 And you just click it. 98 00:04:27,400 --> 00:04:28,480 So that's typical. 99 00:04:28,520 --> 00:04:32,400 The most effective one for us, when we phish ourselves, is the UPS one. 100 00:04:33,480 --> 00:04:38,620 Good news, though, is a lot of the vendors that provide email and communication 101 00:04:38,620 --> 00:04:42,200 are aware of phishing, and they have this thing called reputation security, 102 00:04:42,460 --> 00:04:44,000 where you'll get the flag that says, 103 00:04:44,140 --> 00:04:46,680 this email has been seen a bunch of times. 104 00:04:46,720 --> 00:04:47,780 It's probably not real. 105 00:04:48,240 --> 00:04:53,500 So, at least, like, the vendors themselves are offering something for you, 106 00:04:53,580 --> 00:04:54,940 but still, it's not enough. 107 00:04:56,120 --> 00:04:58,140 So, the 101 on phishing, and again, 108 00:04:58,140 --> 00:05:00,860 we're going to start with what is phishing, go into legal, then illegal. 109 00:05:01,660 --> 00:05:03,660 The 101 is first the training. 110 00:05:04,040 --> 00:05:08,220 And if you see English, basically, most likely, somebody's using a translator. 111 00:05:08,560 --> 00:05:13,660 You're going to find later in our talk, I mean, there's call centers dedicated to doing this in other countries, 112 00:05:13,820 --> 00:05:15,820 and they don't understand the native language. 113 00:05:15,960 --> 00:05:17,040 They just use translators. 114 00:05:17,380 --> 00:05:21,460 I've personally been busted on, like, Russian sites using translators. 115 00:05:21,600 --> 00:05:23,180 And they're like, you're not speaking proper Russian. 116 00:05:23,420 --> 00:05:24,480 You're using a translator. 117 00:05:24,800 --> 00:05:26,920 So, broken language is one. 118 00:05:27,420 --> 00:05:28,120 Other things. 119 00:05:28,120 --> 00:05:29,920 Other things to look for, public data. 120 00:05:30,060 --> 00:05:32,600 This actually goes back to our talk that you didn't show up for, 121 00:05:32,680 --> 00:05:34,460 because you had to go to the Philippines, you a-hole. 122 00:05:34,680 --> 00:05:36,160 But we were supposed to talk. 123 00:05:36,220 --> 00:05:36,780 I did it myself. 124 00:05:37,140 --> 00:05:40,160 But long story short, we did a social engineering attack, 125 00:05:40,440 --> 00:05:43,580 and it was based on a fake account. 126 00:05:44,100 --> 00:05:47,880 And a lot of the data we were using was all based on LinkedIn and Facebook. 127 00:05:48,100 --> 00:05:50,040 So, rereading what's already public against you. 128 00:05:50,280 --> 00:05:53,040 So, know what's public against you is the second concept. 129 00:05:53,300 --> 00:05:57,620 You know, on this one, I just thought I was talking about using information, 130 00:06:00,780 --> 00:06:04,060 and I was like, hey, I don't really trust you, remember that? 131 00:06:04,260 --> 00:06:08,920 And you're like, hey, you just looked up his common friend and saw that he was in New York, 132 00:06:08,980 --> 00:06:11,540 and said, I ran into Matt in New York in, like, two seconds. 133 00:06:11,600 --> 00:06:12,840 And the guy's like, oh, cool. 134 00:06:13,040 --> 00:06:14,960 You know, Matt, I guess I trust you now. 135 00:06:15,300 --> 00:06:15,620 Yeah. 136 00:06:15,720 --> 00:06:19,420 The story on that one was, ten years ago, you can see the guy's, like, job history. 137 00:06:19,640 --> 00:06:21,780 And ten years ago, it said he worked at Hungry Howie's Pizza. 138 00:06:22,360 --> 00:06:26,420 So, then I said, oh, yeah, I was, and we were, by the way, we were a blonde, hot girl named Emily Williams. 139 00:06:26,420 --> 00:06:28,420 But I was like, yeah, I was Derek. 140 00:06:29,200 --> 00:06:29,940 I was Derek's girlfriend. 141 00:06:30,280 --> 00:06:32,800 And you see Derek, current location, New York City. 142 00:06:33,060 --> 00:06:36,860 So, I was like, yeah, I ran into Derek in New York City, and we were talking about you. 143 00:06:37,060 --> 00:06:40,960 So, again, just the idea is you can look at people's public records or Facebook records, 144 00:06:41,480 --> 00:06:44,500 basically read it against them, especially if it's five or ten years old. 145 00:06:44,640 --> 00:06:49,640 They're not going to know, like, and remember all their friends of friends type people and just play that role. 146 00:06:50,220 --> 00:06:51,680 So, public data is another one. 147 00:06:51,880 --> 00:06:56,400 A lot of times when I'm doing this kind of stuff, I want to know what they're doing. 148 00:06:56,420 --> 00:06:56,920 I don't know what the intent is. 149 00:06:57,080 --> 00:06:57,940 There's always a trick. 150 00:06:57,980 --> 00:06:58,600 There's always a scam. 151 00:06:58,860 --> 00:07:01,900 So, figuring, I always ask what are they trying to get from you. 152 00:07:02,060 --> 00:07:03,060 Is it wiring money? 153 00:07:03,240 --> 00:07:04,080 Is it sending you data? 154 00:07:04,640 --> 00:07:09,380 The two hackbacks we're going to talk about, one was they wanted a document with sensitive data. 155 00:07:09,600 --> 00:07:11,980 The other one was to plant malware on our computer. 156 00:07:12,240 --> 00:07:14,180 And we're going to reverse that on them. 157 00:07:14,340 --> 00:07:15,740 And that's at the end of the talk. 158 00:07:16,900 --> 00:07:19,280 Final thing, don't be afraid to question people. 159 00:07:19,800 --> 00:07:23,500 If somebody does start phishing you, ask who are you, how do I know you. 160 00:07:23,740 --> 00:07:26,260 It's not really that offensive unless, like, you're a mayor. 161 00:07:26,420 --> 00:07:27,960 That, like, does it over and over to you. 162 00:07:28,020 --> 00:07:29,040 And you're like, you don't remember me, dude? 163 00:07:29,080 --> 00:07:31,540 We've been seeing each other, like, at work every week. 164 00:07:31,580 --> 00:07:32,300 You still don't know my name? 165 00:07:32,340 --> 00:07:34,320 Like, other than that, that's, like, kind of awkward. 166 00:07:35,640 --> 00:07:37,700 Typically, questioning somebody who are you is okay. 167 00:07:40,060 --> 00:07:42,720 Phishing, just to be clear on the language, there are two types of phishing. 168 00:07:43,500 --> 00:07:47,480 There is the smash and grab, which is basically you don't know the target. 169 00:07:47,580 --> 00:07:48,740 You don't care about the target. 170 00:07:48,920 --> 00:07:50,600 You're just blasting out a bunch of emails. 171 00:07:51,060 --> 00:07:53,660 Where spear phishing and your whaling is more targeted. 172 00:07:54,180 --> 00:07:55,200 So, be aware of that. 173 00:07:55,200 --> 00:07:57,660 A lot of the phishing is typically not targeted. 174 00:07:57,880 --> 00:08:01,180 So, you'll get the fake email that is going to everybody. 175 00:08:01,500 --> 00:08:05,140 That particular email, in most cases, you can copy and paste in Google. 176 00:08:05,280 --> 00:08:08,820 And you'll find that the same email has been sent and people are complaining about it. 177 00:08:09,100 --> 00:08:12,380 So, usually, smash and grab is really easy to find via Google. 178 00:08:12,680 --> 00:08:15,480 Where the spear phishing and whaling is not. 179 00:08:15,640 --> 00:08:20,600 Because now they're actually going to your Facebook, your LinkedIn, and creating a special present for you. 180 00:08:20,880 --> 00:08:23,400 So, again, you know, ground zero. 181 00:08:23,400 --> 00:08:25,280 That's what phishing is in spear phishing. 182 00:08:26,980 --> 00:08:29,420 Now, in general, I've given a bunch of examples. 183 00:08:29,760 --> 00:08:33,480 But these would be basically some technical examples. 184 00:08:34,420 --> 00:08:38,520 Beyond just the phishing email, a lot of times you have to know where it's coming from. 185 00:08:38,820 --> 00:08:42,040 And this kind of gets down to the security stuff, like DNS security, et cetera. 186 00:08:42,520 --> 00:08:46,700 A lot of times with spear phishing, people are going to buy a website that's kind of like yours. 187 00:08:46,820 --> 00:08:48,040 Or a source kind of like yours. 188 00:08:48,260 --> 00:08:49,820 And that's how they're going to send the information. 189 00:08:50,200 --> 00:08:53,380 Because most people don't check that Google has two O's versus zero. 190 00:08:54,280 --> 00:08:54,760 Yeah. 191 00:08:55,300 --> 00:08:58,320 Yeah, well, you know, we know this example is like pretty stupid, right? 192 00:08:58,400 --> 00:08:59,340 It's pretty obvious. 193 00:08:59,480 --> 00:09:00,200 That's fine. 194 00:09:00,600 --> 00:09:04,540 Most attackers are going to be a little more creative and not make it that obvious. 195 00:09:04,820 --> 00:09:10,300 But the other thing I want to point out is you can actually have websites that look exactly like the source site. 196 00:09:10,460 --> 00:09:17,580 Because what was happening is attackers were using ASCII characters or other character sets, different language character sets as well. 197 00:09:17,720 --> 00:09:19,500 So it actually confused the browser. 198 00:09:19,680 --> 00:09:23,380 So you did have something that looked like Google.com exactly like that. 199 00:09:23,380 --> 00:09:26,600 Now, luckily, most browsers have fixed, right? 200 00:09:26,680 --> 00:09:31,300 I mean, they came up with updates like the CR, I believe all of them did, and kind of fixed that. 201 00:09:31,540 --> 00:09:31,720 Yeah. 202 00:09:32,220 --> 00:09:32,820 All right. 203 00:09:32,840 --> 00:09:33,420 So the defenses. 204 00:09:33,620 --> 00:09:37,100 Here's the legal defenses before we get into the illegal. 205 00:09:37,500 --> 00:09:39,380 This is your standard blocking stuff. 206 00:09:39,700 --> 00:09:44,600 So if you want to know what I can do about phishing 101, the first thing is going to be reputation security. 207 00:09:45,500 --> 00:09:46,200 What is that? 208 00:09:46,340 --> 00:09:47,960 That is credit scoring where you connect to. 209 00:09:48,320 --> 00:09:53,360 So if somebody says they're a bank, they've been online for two hours, they're hosted from GoDaddy. 210 00:09:53,900 --> 00:09:55,320 They say they're a U.S. bank. 211 00:09:55,460 --> 00:09:56,980 They're really out of, like, North Korea. 212 00:09:57,380 --> 00:09:58,340 Obviously, it's not a bank. 213 00:09:58,400 --> 00:09:58,900 You drop it. 214 00:09:59,460 --> 00:10:01,200 Most security vendors offer this. 215 00:10:01,500 --> 00:10:05,200 It's hard to read, but the website Ihaveabadreputation.com. 216 00:10:05,440 --> 00:10:07,720 I challenge you all to go back to your company. 217 00:10:07,900 --> 00:10:11,060 Go to Ihaveabadreputation.com and see what you see. 218 00:10:11,500 --> 00:10:16,020 If you see this, like, Pac-Man ghost guy, that means you don't have reputation security. 219 00:10:16,300 --> 00:10:20,140 That means anybody can set up a site right now and send a bunch of crap to you. 220 00:10:20,740 --> 00:10:23,260 If you do have reputation security, you'll get a block page. 221 00:10:23,380 --> 00:10:30,140 And what that means is it's not 100% foolproof, but what that means is at least people have to, like, have some credibility. 222 00:10:30,500 --> 00:10:32,900 So they could hack a church and then attack you. 223 00:10:33,060 --> 00:10:35,800 They could be online for a while, but at least there's some credibility. 224 00:10:36,200 --> 00:10:38,740 So your first layer, reputation security. 225 00:10:39,320 --> 00:10:43,400 DNS security can be doing that or, like, Fortinet, Cisco, other vendors. 226 00:10:43,660 --> 00:10:45,840 You can get this with, like, the firewall technology. 227 00:10:47,080 --> 00:10:51,840 Second layer will be content filtering, which is basically reducing risky content. 228 00:10:51,840 --> 00:10:56,080 Because a lot of times your pornography and those sites will have the pop-ups and stuff. 229 00:10:56,320 --> 00:10:59,280 And those can also include ways to basically phish you. 230 00:11:00,560 --> 00:11:04,100 File integrity would be analyzing what comes from the sites. 231 00:11:04,340 --> 00:11:05,580 And then finally, training. 232 00:11:05,920 --> 00:11:07,360 So this is your legal stuff. 233 00:11:07,740 --> 00:11:11,220 If I was to consult on phishing, these would be the initial things to talk about. 234 00:11:11,780 --> 00:11:14,620 Now, if these fail, then you need breach detection. 235 00:11:14,860 --> 00:11:20,340 And that's where Amir wanted to do a little bit on his side since he does a lot on the research side on building honeypots. 236 00:11:20,420 --> 00:11:21,560 And some of the research he does. 237 00:11:21,560 --> 00:11:24,560 As well as how to catch when somebody compromises your network. 238 00:11:24,860 --> 00:11:25,340 So go ahead. 239 00:11:26,380 --> 00:11:26,900 All right. 240 00:11:26,920 --> 00:11:30,020 So first of all, does anyone use honeypot pots in their networks out here today? 241 00:11:30,340 --> 00:11:30,740 Anyone? 242 00:11:30,920 --> 00:11:31,560 Raise your hand. 243 00:11:31,880 --> 00:11:32,180 All right. 244 00:11:32,180 --> 00:11:32,760 We got a few people. 245 00:11:33,340 --> 00:11:34,120 Five people. 246 00:11:34,280 --> 00:11:34,660 Five people. 247 00:11:35,520 --> 00:11:35,920 Yeah. 248 00:11:36,020 --> 00:11:39,460 First of all, you might want to turn up the volume when I speak for our earmuffs. 249 00:11:40,380 --> 00:11:40,780 No. 250 00:11:40,820 --> 00:11:47,340 So for those of you that don't know what a honeypot is, it's basically a fake system that lures an attacker. 251 00:11:47,580 --> 00:11:50,560 And the idea for that is to kind of pick up attack techniques. 252 00:11:50,560 --> 00:11:52,980 You know, like, we both use that. 253 00:11:53,020 --> 00:11:57,460 And I use that, like, personally just in my research because I want to figure out what attackers are doing. 254 00:11:57,740 --> 00:11:58,980 What are the techniques they're doing? 255 00:11:59,300 --> 00:12:02,580 What are the, kind of, what is the malware that they're hosting? 256 00:12:03,540 --> 00:12:05,380 Exactly what are they interested in? 257 00:12:05,620 --> 00:12:07,320 Now, there's two types of honeypots. 258 00:12:07,460 --> 00:12:11,220 And most of the time, if you Google honeypots, you see some of the more popular software. 259 00:12:11,700 --> 00:12:13,680 You see low interaction honeypots. 260 00:12:13,760 --> 00:12:14,900 And they're cool. 261 00:12:15,060 --> 00:12:16,620 They give you, like, you know, basic shit. 262 00:12:18,040 --> 00:12:18,800 Earmuffs, earmuffs. 263 00:12:20,020 --> 00:12:20,540 All right. 264 00:12:20,540 --> 00:12:26,180 They give you basic stuff like SSH passwords, brute force, basic things. 265 00:12:26,500 --> 00:12:29,020 But there's also high interaction honeypots. 266 00:12:29,360 --> 00:12:34,440 And for most high interaction honeypots, you're probably going to do a lot of customization yourself. 267 00:12:34,880 --> 00:12:37,460 That's how you make the system look really real. 268 00:12:37,580 --> 00:12:38,860 And sometimes they are real systems. 269 00:12:39,080 --> 00:12:42,340 They're real WordPress sites, you know, elastic search engines. 270 00:12:42,460 --> 00:12:43,180 They're real things. 271 00:12:43,360 --> 00:12:48,300 And you're just setting up enough defenses to log to figure out what it is. 272 00:12:50,140 --> 00:12:57,100 Now, before I even get started, like, I run a lot of honeypots on different VPS providers, different hosting providers, like, all over the world. 273 00:12:57,500 --> 00:12:59,200 And you have to kind of be careful, right? 274 00:12:59,280 --> 00:13:02,920 Because, like, first of all, I can tell you, I've had my own honeypots, like, compromised. 275 00:13:03,040 --> 00:13:06,740 And all of a sudden, you know, I may be researching, like, this new malware that's being spread. 276 00:13:06,860 --> 00:13:09,280 And I'm like, crap, I'm the command and control server. 277 00:13:09,380 --> 00:13:10,460 Like, my servers. 278 00:13:11,640 --> 00:13:13,840 That's not a conversation you want to have with your boss. 279 00:13:14,000 --> 00:13:14,320 Right? 280 00:13:16,380 --> 00:13:21,460 And your boss is definitely not going to give you a high five and say, was that all the stuff you expensed out? 281 00:13:21,540 --> 00:13:22,380 So am I liable for that? 282 00:13:23,100 --> 00:13:24,000 So just be careful. 283 00:13:24,180 --> 00:13:25,300 So a couple of things. 284 00:13:25,480 --> 00:13:31,700 Just my personal best practices is try and find honeypots or VPSs that will give you two public addresses. 285 00:13:32,480 --> 00:13:38,420 And the reason I say that is because if you want to run a honeypot that's doing SSH honeypotting or web honeypotting, 286 00:13:38,480 --> 00:13:42,060 and you need a management interface, you want two addresses out there. 287 00:13:43,220 --> 00:13:44,300 Now, the other big thing that you want to do is you want to run a website. 288 00:13:44,320 --> 00:13:45,820 The other big thing is try to do no NAT. 289 00:13:45,940 --> 00:13:50,700 Now, this is very, very difficult to achieve with a lot of VPS providers because everyone does NAT. 290 00:13:50,880 --> 00:13:54,020 You may even look like you have a public address, but it's being NATed someplace. 291 00:13:54,680 --> 00:13:59,940 The reason I say that is because, you know, when you're running, like, you know, 20, 100, 200 honeypots, 292 00:14:00,020 --> 00:14:03,540 and they're all coming back into a logging, like, you're logging them all centrally, 293 00:14:03,540 --> 00:14:08,040 and they all have the same IP addresses, and you're usually, like, creating them on, like, templates, 294 00:14:08,840 --> 00:14:10,260 it gets pretty crappy. 295 00:14:10,340 --> 00:14:12,440 You're like, okay, where the hell did this come from? 296 00:14:12,440 --> 00:14:14,500 And you're doing a lot more digging than you need to. 297 00:14:15,220 --> 00:14:16,440 So just look at that. 298 00:14:17,140 --> 00:14:20,360 And then the other thing is don't tell your hosting provider what the hell you're doing 299 00:14:20,360 --> 00:14:24,180 because they'll probably cancel your service and just always act dumb. 300 00:14:24,260 --> 00:14:26,760 They're like, hey, were you hosting all this illegal software? 301 00:14:27,060 --> 00:14:27,960 Like, oh, I don't know. 302 00:14:29,100 --> 00:14:30,600 Works out really well most of the time. 303 00:14:31,560 --> 00:14:32,460 Anything you want to add to that? 304 00:14:33,060 --> 00:14:33,580 Oh, yeah. 305 00:14:34,720 --> 00:14:37,240 There's a term in the industry called resume-generating event. 306 00:14:38,520 --> 00:14:42,380 Don't just go to YouTube and type in honeypot and get a 13-year-old with acne 307 00:14:42,440 --> 00:14:43,820 that says, here's how to do a honeypot. 308 00:14:44,860 --> 00:14:47,240 We've had people with that in sandboxes. 309 00:14:47,560 --> 00:14:50,580 Basically, our incident response team come out and figure out what actually happened. 310 00:14:50,800 --> 00:14:53,980 In a lot of cases, people will basically put a honeypot on the network, 311 00:14:54,140 --> 00:14:56,340 and then malware gets on their network through the honeypot. 312 00:14:56,580 --> 00:14:59,680 And if you're responsible for the honeypot, that is a resume-generating event. 313 00:14:59,900 --> 00:15:00,780 So please don't do that. 314 00:15:01,660 --> 00:15:07,160 Now, with all best practices, like, I mean, we're pretty much already standing on the shoulders of giants. 315 00:15:07,280 --> 00:15:10,020 I mean, a lot of this is kind of best practice that's been out there. 316 00:15:10,080 --> 00:15:10,700 It's been documented. 317 00:15:10,700 --> 00:15:12,400 And with our experience as well. 318 00:15:12,600 --> 00:15:14,620 But there's a lot of different types of honeypots. 319 00:15:14,740 --> 00:15:17,860 And all of these I'm showing are low interaction type of honeypots. 320 00:15:17,980 --> 00:15:19,260 But they all run on different ports. 321 00:15:19,700 --> 00:15:23,380 Now, I'll tell you, like, a lot of people think, like, okay, well, what do I need to have a honeypot? 322 00:15:23,500 --> 00:15:24,720 I need to get, like, this awesome server. 323 00:15:25,100 --> 00:15:30,740 No, my servers are basically 2 gigs or a lot of times 1 gig of RAM, 20 gig hard drive. 324 00:15:30,840 --> 00:15:32,300 They're pretty shitty boxes. 325 00:15:33,300 --> 00:15:33,640 Earmuffs. 326 00:15:34,220 --> 00:15:34,820 Oh, okay. 327 00:15:36,260 --> 00:15:38,160 I'm supposed to do earmuffs before I cuss, right? 328 00:15:38,220 --> 00:15:38,460 Okay. 329 00:15:38,580 --> 00:15:39,100 All right. 330 00:15:40,640 --> 00:15:42,980 So just, and then you can run multiple honeypots. 331 00:15:43,060 --> 00:15:45,740 So, like, these ones that I have on port 80, they're all port 80. 332 00:15:45,840 --> 00:15:47,040 So don't run all of them. 333 00:15:47,080 --> 00:15:47,980 You can pick one of them. 334 00:15:48,060 --> 00:15:50,180 And then you can pick another one and pick another one. 335 00:15:50,280 --> 00:15:52,340 So this you can kind of use as a map if you want. 336 00:15:52,480 --> 00:15:54,360 And there's a lot of different options out there. 337 00:15:54,420 --> 00:15:54,980 There's different things. 338 00:15:55,180 --> 00:15:57,360 These are just some of the common ones that I use. 339 00:15:59,520 --> 00:16:06,000 Now, other things I do with my honeypots is I actually just set up servers, regular servers, like FTP servers. 340 00:16:06,340 --> 00:16:09,080 And sometimes my FTP servers have, like, pretty easy. 341 00:16:09,100 --> 00:16:14,720 Easily guessable passwords, you know, like admin and password, just to see what happens. 342 00:16:14,840 --> 00:16:18,600 And I just set them up just to see, like, the type of stuff that I'm going to get. 343 00:16:18,940 --> 00:16:23,760 And first of all, I will tell you this is the best way to get free porn by far. 344 00:16:26,500 --> 00:16:29,900 Just set up an FTP server on the Internet and you're good to go. 345 00:16:33,660 --> 00:16:39,000 Now, besides that, the coolest thing that I got was I actually got, like, every episode of Thundercats. 346 00:16:39,100 --> 00:16:43,780 And I don't know what happened, but, like, someone actually, yeah, someone just logged into my honeypot. 347 00:16:44,020 --> 00:16:48,880 And I remember, and I go, man, I set up an open FTP server and he's telling me, like, you did what? 348 00:16:49,080 --> 00:16:50,160 I go, no, no, it's awesome. 349 00:16:50,340 --> 00:16:52,420 I got every episode of Thundercats. 350 00:16:54,940 --> 00:16:56,300 I don't know what people were doing. 351 00:16:56,400 --> 00:16:59,780 And I did realize pretty fast because I was a fan of Thundercats when I was a kid. 352 00:17:00,140 --> 00:17:03,440 Man, I had this weird obsession with Chitara, man. 353 00:17:03,520 --> 00:17:04,340 I don't know what's happening there. 354 00:17:05,820 --> 00:17:06,320 All right. 355 00:17:06,360 --> 00:17:07,580 So go ahead and do that. 356 00:17:07,580 --> 00:17:14,360 One of the other things that I do with my honeypots, and this is, I've actually discovered zero days with this that I've done responsible disclosures. 357 00:17:14,480 --> 00:17:18,560 But I actually have an XP machine that I have fully patched, so 100% patched. 358 00:17:18,560 --> 00:17:22,520 And I do this with multiple operating systems as well, Windows 10 and Windows 8. 359 00:17:22,720 --> 00:17:24,600 And so these are fully patched. 360 00:17:24,600 --> 00:17:26,000 And I'm running non-admin modes. 361 00:17:26,060 --> 00:17:27,440 I'm not running as an admin user. 362 00:17:27,800 --> 00:17:31,300 And then I have scripts that are just downloading a whole bunch of URLs. 363 00:17:31,660 --> 00:17:35,640 I'm getting them from VirusTotal, malware sites, open intelligence sites. 364 00:17:36,060 --> 00:17:37,560 Plus just a lot of other stuff. 365 00:17:37,580 --> 00:17:38,160 Plus other sources. 366 00:17:38,280 --> 00:17:42,480 I'm just downloading, like, you know, hundreds of thousands of URLs through the system. 367 00:17:42,700 --> 00:17:45,020 And then what I do is I actually just compare the registry. 368 00:17:45,140 --> 00:17:48,080 Like, at the end of each day, has the registry changed? 369 00:17:48,500 --> 00:17:52,920 And if I find a change, right, that means that box is probably being compromised in some way. 370 00:17:53,300 --> 00:18:00,220 Now, if I'm running a fully patched system, and if I'm, you know, running non-admin, most likely I've found a zero day. 371 00:18:00,380 --> 00:18:02,040 And that has happened to me before. 372 00:18:02,160 --> 00:18:03,840 So that was kind of cool. 373 00:18:05,100 --> 00:18:06,400 Yeah, to be clear on that. 374 00:18:06,400 --> 00:18:08,540 That's how a lot of researchers find zero days. 375 00:18:08,780 --> 00:18:11,640 You just basically create your honeypot, put the system up there. 376 00:18:11,680 --> 00:18:12,400 It's fully patched. 377 00:18:12,400 --> 00:18:14,160 If it gets popped, that's what you got there. 378 00:18:17,140 --> 00:18:18,360 Let me just finish this up. 379 00:18:18,700 --> 00:18:22,240 Well, the other way, like, we find a lot of zero days is just, oh, shit, we found something. 380 00:18:22,320 --> 00:18:23,200 This is pretty cool, right? 381 00:18:23,480 --> 00:18:25,520 And who's the first one to publish this, right? 382 00:18:25,580 --> 00:18:27,260 That's a lot of times that's what happens as well. 383 00:18:27,440 --> 00:18:31,780 The last thing that I'll say is that I use PCAPs. 384 00:18:31,840 --> 00:18:32,560 I always capture PCAPs. 385 00:18:33,060 --> 00:18:34,760 And we'll talk about this a little later on. 386 00:18:34,880 --> 00:18:36,220 But the nice thing about this is, 387 00:18:36,220 --> 00:18:39,660 sometimes it's just so hard to just capture all this traffic, analyze all this traffic. 388 00:18:39,900 --> 00:18:42,760 Yes, with PCAPs I can actually run it against known signatures. 389 00:18:43,200 --> 00:18:45,020 I know signatures is an awful word, 390 00:18:45,100 --> 00:18:47,740 but at least it gives me at least the type of attacks that are going on. 391 00:18:47,920 --> 00:18:50,220 So if I know I'm setting up something in the Ukraine 392 00:18:50,220 --> 00:18:53,060 and all of a sudden I see a whole bunch of, you know, VPN filter, 393 00:18:53,220 --> 00:18:54,500 like as Cisco Talos discovered, 394 00:18:54,920 --> 00:18:56,660 or, you know, some other ransomware, 395 00:18:56,740 --> 00:18:58,720 at least I can say, hey, this is happening in this region, 396 00:18:58,800 --> 00:18:59,700 or something like that. 397 00:18:59,760 --> 00:19:03,600 I can analyze those PCAPs and just get a little flexible later on. 398 00:19:04,320 --> 00:19:05,620 Pretty much what I do, 399 00:19:06,220 --> 00:19:07,860 I'll let Joey kind of go into more details, 400 00:19:08,020 --> 00:19:09,440 but there's a lot of logging tools. 401 00:19:10,280 --> 00:19:12,180 One of the easiest ways to set up honeypots 402 00:19:12,180 --> 00:19:16,000 is to, like, use Modern Honey Network for low interaction honeypots. 403 00:19:16,100 --> 00:19:18,360 They have, like, a built-in logging interface. 404 00:19:19,020 --> 00:19:20,820 I use Splunk or Elasticsearch. 405 00:19:21,000 --> 00:19:23,120 And, you know, when you have just good files, 406 00:19:23,260 --> 00:19:24,500 you know, you set up a little bit of time, 407 00:19:24,580 --> 00:19:26,460 you can set up all your nice pretty graphs 408 00:19:26,460 --> 00:19:29,280 and make it look really nice and good as well. 409 00:19:29,480 --> 00:19:29,800 Yeah. 410 00:19:31,100 --> 00:19:32,940 So again, this is all the breach detection stuff. 411 00:19:33,180 --> 00:19:34,780 We spent a little extra time on the honeypots. 412 00:19:34,780 --> 00:19:36,620 If you want to learn more, check out our forensics book. 413 00:19:37,360 --> 00:19:38,400 Snort would be another one. 414 00:19:38,760 --> 00:19:40,760 So if your defenses fail, 415 00:19:41,020 --> 00:19:42,900 ideally you can have an IPS IDS. 416 00:19:43,140 --> 00:19:44,400 Hopefully you'll learn how to snort. 417 00:19:44,600 --> 00:19:46,060 But snort, you have to deploy, 418 00:19:46,320 --> 00:19:47,800 you have to tap and know where you're looking. 419 00:19:48,140 --> 00:19:50,520 If you want to have something where you don't really care 420 00:19:50,520 --> 00:19:52,620 where you're looking, then maybe a NetFlow 421 00:19:52,620 --> 00:19:53,640 would be another option. 422 00:19:54,120 --> 00:19:55,920 There's some security vendors out there that do this. 423 00:19:56,240 --> 00:19:58,020 Plixer, Cisco, a few others 424 00:19:58,020 --> 00:20:00,560 that do the idea of behavior analysis. 425 00:20:01,400 --> 00:20:02,600 Why do I see port scanning? 426 00:20:02,880 --> 00:20:03,900 Why do I see weird behavior? 427 00:20:04,780 --> 00:20:05,600 So those are your defenses. 428 00:20:05,760 --> 00:20:07,980 This is basically the end of the legal stuff. 429 00:20:08,300 --> 00:20:10,020 But basically, if we were to say 430 00:20:10,700 --> 00:20:11,680 help me with phishing, 431 00:20:11,900 --> 00:20:14,040 we would set up the defenses, perimeter defenses. 432 00:20:14,460 --> 00:20:15,540 We would then look at breach. 433 00:20:15,820 --> 00:20:17,680 So if the perimeters fail, 434 00:20:17,920 --> 00:20:19,520 your honeypot or your IPS 435 00:20:19,520 --> 00:20:21,320 or your NetFlow tool would alarm. 436 00:20:22,380 --> 00:20:25,020 Now, what happens when you want to actually strike back? 437 00:20:25,240 --> 00:20:26,240 That's the big question. 438 00:20:26,480 --> 00:20:28,360 Well, technically speaking, 439 00:20:28,520 --> 00:20:29,480 it's not necessarily legal 440 00:20:29,480 --> 00:20:31,400 as well as there's some things to think about. 441 00:20:31,760 --> 00:20:33,680 First off, think about what we just talked about. 442 00:20:34,780 --> 00:20:35,240 In a lot of cases, 443 00:20:35,360 --> 00:20:37,560 the attackers know there's reputation security. 444 00:20:37,980 --> 00:20:39,520 So they have to get around that. 445 00:20:39,720 --> 00:20:40,540 What are they going to do? 446 00:20:40,760 --> 00:20:42,420 They're going to hack a church, a school, 447 00:20:42,620 --> 00:20:43,380 something like that. 448 00:20:43,700 --> 00:20:46,060 So if you hack back, what are you hacking back at? 449 00:20:46,700 --> 00:20:48,920 You're hacking back at a church, school, or something. 450 00:20:49,240 --> 00:20:51,640 So don't necessarily see phishing 451 00:20:51,640 --> 00:20:53,460 and think, oh, I need to strike back right away. 452 00:20:53,780 --> 00:20:54,940 You may be hitting somebody 453 00:20:54,940 --> 00:20:56,720 who's basically a victim as well. 454 00:20:57,000 --> 00:20:58,920 And that's the first thing that we kind of discovered 455 00:20:58,920 --> 00:21:00,360 as we started researching this is 456 00:21:00,360 --> 00:21:02,520 we're not necessarily popping attacker's boxes. 457 00:21:04,780 --> 00:21:04,860 We're not necessarily hitting people 458 00:21:04,860 --> 00:21:04,980 who have been popped 459 00:21:04,980 --> 00:21:07,320 that are used as pivot points to attack people. 460 00:21:07,620 --> 00:21:08,700 So be aware of that. 461 00:21:09,100 --> 00:21:11,360 Second thing is, there are interesting laws 462 00:21:11,360 --> 00:21:12,700 which we'll talk about here in a minute. 463 00:21:12,900 --> 00:21:14,920 And you need to be aware of what country you're in. 464 00:21:15,020 --> 00:21:17,280 If you're traveling, what are the current laws 465 00:21:17,280 --> 00:21:18,580 of where you're at when you do this 466 00:21:18,580 --> 00:21:21,180 because, again, the laws are really iffy 467 00:21:21,180 --> 00:21:22,060 in this area of cyber, 468 00:21:22,240 --> 00:21:24,700 not to mention this idea of actually striking back. 469 00:21:25,580 --> 00:21:27,560 So everything from this point on, 470 00:21:27,680 --> 00:21:29,140 because, again, of legal purposes, 471 00:21:29,140 --> 00:21:29,660 hi, YouTube, 472 00:21:29,960 --> 00:21:31,260 is all in magic land. 473 00:21:31,600 --> 00:21:34,500 So this is hypothetically happened 474 00:21:34,500 --> 00:21:36,160 in a dream kind of thing. 475 00:21:36,320 --> 00:21:37,880 And we'll show you a video 476 00:21:37,880 --> 00:21:39,300 that we pulled out of our dream as well. 477 00:21:42,840 --> 00:21:44,960 I'm sure that EFF is going to be 478 00:21:44,960 --> 00:21:45,820 wanting to talk to us. 479 00:21:47,380 --> 00:21:48,860 You know, first of all, 480 00:21:48,940 --> 00:21:51,280 even if you're authorized to hack back, 481 00:21:51,500 --> 00:21:53,260 and hopefully me and him are going to do a talk 482 00:21:53,260 --> 00:21:54,940 about something that happened interesting 483 00:21:54,940 --> 00:21:57,260 where I was authorized by a DA 484 00:21:57,260 --> 00:21:58,160 to do hack back. 485 00:21:59,140 --> 00:22:00,080 And we did it. 486 00:22:00,100 --> 00:22:01,000 And we got the information. 487 00:22:01,200 --> 00:22:03,440 And we caught someone that was not a good guy. 488 00:22:04,020 --> 00:22:05,540 And he got us caught free 489 00:22:05,540 --> 00:22:07,200 because I had to go to the judge 490 00:22:07,200 --> 00:22:08,680 and explain what I did. 491 00:22:08,820 --> 00:22:09,780 And I was like, well, I hacked him. 492 00:22:09,900 --> 00:22:11,800 And don't tell a judge you hacked someone 493 00:22:11,800 --> 00:22:14,940 even if you got authorization and a warrant to do that. 494 00:22:15,500 --> 00:22:17,080 Mostly we failed because we didn't have 495 00:22:17,080 --> 00:22:19,720 a wiretapping warrant that was filled out wrong. 496 00:22:19,920 --> 00:22:21,120 So that really sucked. 497 00:22:22,100 --> 00:22:23,580 But I will tell you there are laws 498 00:22:23,580 --> 00:22:25,040 that are changing and being proposed 499 00:22:25,920 --> 00:22:26,980 like the ACDC. 500 00:22:29,140 --> 00:22:30,820 Follow the malware tech blog. 501 00:22:31,080 --> 00:22:32,460 Great, great Twitter feed. 502 00:22:32,540 --> 00:22:33,940 Great site as well. 503 00:22:34,160 --> 00:22:36,720 But it's pretty much, you know, 504 00:22:36,720 --> 00:22:38,440 no one has really thought about this law 505 00:22:38,440 --> 00:22:40,700 and just said, hey, hack back is going to be okay. 506 00:22:41,040 --> 00:22:43,100 It's a really, really 507 00:22:45,420 --> 00:22:46,160 It's a really 508 00:22:46,920 --> 00:22:48,400 shitty law that's out there. 509 00:22:48,460 --> 00:22:49,140 A really shitty proposal. 510 00:22:49,500 --> 00:22:51,820 It just takes into no account how computer security 511 00:22:51,820 --> 00:22:53,800 really works or what's going on. 512 00:22:54,600 --> 00:22:56,840 You know, today unfortunately most of the stuff 513 00:22:56,840 --> 00:22:58,580 kind of falls under the computer fraud 514 00:22:59,140 --> 00:22:59,360 abuse act. 515 00:22:59,600 --> 00:23:01,480 And things that shouldn't even fall there. 516 00:23:01,640 --> 00:23:03,200 In fact, you know, at this conference 517 00:23:03,200 --> 00:23:04,980 and we probably have known people that have been 518 00:23:04,980 --> 00:23:06,380 accused of breaking this law. 519 00:23:07,200 --> 00:23:09,700 It's not doing, it's being abused like any other law. 520 00:23:09,840 --> 00:23:13,120 So right now hacking or hacking back is not a strategy. 521 00:23:13,260 --> 00:23:14,440 It's going to get you in more trouble 522 00:23:14,440 --> 00:23:16,240 than anything else. 523 00:23:16,960 --> 00:23:18,740 I guess unless you're hacking a country 524 00:23:18,740 --> 00:23:20,720 that we don't officially authorize as a country. 525 00:23:24,200 --> 00:23:26,120 Alright, so again, here's the strategy 526 00:23:26,120 --> 00:23:27,580 of most phishers. 527 00:23:29,180 --> 00:23:31,500 They try to trick you in some form or fashion. 528 00:23:31,760 --> 00:23:32,840 A lot of times it's email 529 00:23:32,840 --> 00:23:33,580 or phone call. 530 00:23:34,080 --> 00:23:35,620 Their goal is to get you to do something. 531 00:23:35,980 --> 00:23:38,080 In a lot of cases it's to install something 532 00:23:38,080 --> 00:23:40,900 or it's to have you provide some information. 533 00:23:41,340 --> 00:23:43,040 And then once you are duped 534 00:23:43,040 --> 00:23:44,200 they do something bad. 535 00:23:44,460 --> 00:23:46,800 So our strategy in Magic Land is 536 00:23:46,800 --> 00:23:48,040 well what if we flip the script? 537 00:23:48,480 --> 00:23:50,320 Which means what if we 538 00:23:51,480 --> 00:23:53,160 basically then try to get them 539 00:23:53,160 --> 00:23:54,680 to do something and try to get them 540 00:23:54,680 --> 00:23:56,120 to basically be duped. 541 00:23:56,180 --> 00:23:57,560 So it's like almost reverse duping. 542 00:23:59,360 --> 00:24:01,180 The first story will actually be 543 00:24:01,180 --> 00:24:02,500 at the end which will be the second story. 544 00:24:02,760 --> 00:24:05,120 And the reason why is we weren't recording the first time 545 00:24:05,120 --> 00:24:07,460 and then after we made this happen 546 00:24:07,460 --> 00:24:08,180 it was kind of awesome. 547 00:24:08,380 --> 00:24:10,240 We're like alright let's actually prepare for this 548 00:24:10,240 --> 00:24:12,840 and then the second time we'll actually record something. 549 00:24:13,240 --> 00:24:14,560 So this is the second story 550 00:24:15,140 --> 00:24:15,920 up first. 551 00:24:16,220 --> 00:24:19,360 And the idea here is there was a phisher 552 00:24:19,360 --> 00:24:20,720 that was trying to get us to 553 00:24:21,220 --> 00:24:22,620 fill out some Dell form. 554 00:24:22,800 --> 00:24:25,320 So the story is this is Dell security support. 555 00:24:26,180 --> 00:24:27,100 I've seen this also 556 00:24:27,100 --> 00:24:28,520 with Microsoft security support. 557 00:24:29,140 --> 00:24:29,900 They call you and they say 558 00:24:29,900 --> 00:24:32,020 your computer is full of malware. 559 00:24:32,440 --> 00:24:34,240 And you're like really? Holy shit really? 560 00:24:34,680 --> 00:24:36,120 Who are you? It's Microsoft. 561 00:24:36,320 --> 00:24:36,960 Well I'm running a Mac. 562 00:24:37,200 --> 00:24:38,800 Well yeah that's okay too. 563 00:24:39,120 --> 00:24:39,980 It's like what? 564 00:24:41,180 --> 00:24:42,520 But it's seriously. 565 00:24:42,800 --> 00:24:43,980 So with Dell it's the same thing. 566 00:24:44,080 --> 00:24:45,540 Like we're running Macs and it's like 567 00:24:45,540 --> 00:24:49,420 yeah we're a contractor and we're just seeing malware 568 00:24:49,420 --> 00:24:50,660 so we're supposed to basically 569 00:24:50,660 --> 00:24:53,080 come and fix your box. 570 00:24:53,560 --> 00:24:55,880 What we found initially when we would just interact 571 00:24:55,880 --> 00:24:56,860 and not hack back. 572 00:24:59,440 --> 00:25:00,720 And then we would show 573 00:25:00,720 --> 00:25:02,160 oh look we're inside your box 574 00:25:02,160 --> 00:25:04,080 but that's the bad guys inside your box. 575 00:25:04,320 --> 00:25:06,420 Pay us now like an analyst service 576 00:25:06,420 --> 00:25:07,520 and we'll fix your computer. 577 00:25:08,000 --> 00:25:09,860 So we've had them try to sell us fake services 578 00:25:09,860 --> 00:25:12,040 which really you're selling services against them. 579 00:25:12,860 --> 00:25:14,740 We've seen it where they just ask for data 580 00:25:14,740 --> 00:25:16,300 or they've planted malware. 581 00:25:16,500 --> 00:25:17,960 Like install this viewing tool 582 00:25:17,960 --> 00:25:19,340 and we can view your box. 583 00:25:19,840 --> 00:25:22,280 In the two stories, this story here 584 00:25:22,280 --> 00:25:24,400 they try to get us to fill out a document. 585 00:25:24,640 --> 00:25:26,080 So the idea is well 586 00:25:26,080 --> 00:25:28,720 why don't we trick them and basically plant malware 587 00:25:29,140 --> 00:25:30,080 in the document and send it back 588 00:25:30,080 --> 00:25:32,340 and then when we open the document we pop their box. 589 00:25:32,740 --> 00:25:34,220 So that's the story we're going to tell now. 590 00:25:34,520 --> 00:25:37,180 And the other story, the idea was 591 00:25:37,180 --> 00:25:39,080 we played stupid and said 592 00:25:39,080 --> 00:25:41,200 well hey I'm trying to do what you're doing 593 00:25:41,200 --> 00:25:42,160 and this is frustrating me 594 00:25:42,160 --> 00:25:44,700 and I've seen the Matrix movie and the Black Hat movie 595 00:25:44,700 --> 00:25:45,760 this should be easier. 596 00:25:46,220 --> 00:25:48,640 Hey I have this thing called WebEx I can share my screen 597 00:25:48,640 --> 00:25:51,040 why don't I share my screen and I'll give you full controls. 598 00:25:51,400 --> 00:25:52,980 So then I gave them the WebEx agent 599 00:25:52,980 --> 00:25:54,800 but I weaponized the WebEx agent 600 00:25:54,800 --> 00:25:56,560 so then I popped their box with the WebEx agent 601 00:25:56,560 --> 00:25:58,480 and then I took over their computer. 602 00:25:59,140 --> 00:26:00,320 So they had control of my sandbox 603 00:26:00,320 --> 00:26:01,500 while I had control of their computer. 604 00:26:01,860 --> 00:26:02,900 So those are the two stories. 605 00:26:03,180 --> 00:26:05,520 So what we'll do now is we're going to walk you through story one 606 00:26:05,520 --> 00:26:07,320 which is the one we recorded 607 00:26:07,320 --> 00:26:08,760 which is the Dell story. 608 00:26:09,180 --> 00:26:12,560 So the story is basically you have to set up 609 00:26:12,560 --> 00:26:13,960 and we're going to walk you through the tools first 610 00:26:13,960 --> 00:26:15,340 but you need a sandbox 611 00:26:15,340 --> 00:26:19,080 because you want them to actually have something to have access to. 612 00:26:19,840 --> 00:26:20,740 In this case 613 00:26:20,740 --> 00:26:22,460 we got them to get the agreement letter 614 00:26:22,460 --> 00:26:23,840 you need to weaponize it 615 00:26:23,840 --> 00:26:25,300 and we're going to talk about different weaponization 616 00:26:25,300 --> 00:26:27,600 whether it's droppers or rats 617 00:26:29,140 --> 00:26:30,800 or something and then trick them to either 618 00:26:30,800 --> 00:26:32,600 open that file, open that program 619 00:26:32,940 --> 00:26:34,720 the exact same thing they're doing to us 620 00:26:34,720 --> 00:26:37,320 making us install things or click things 621 00:26:37,320 --> 00:26:38,760 but just do it to them. 622 00:26:39,020 --> 00:26:40,820 So we'll go ahead and we'll walk through 623 00:26:40,820 --> 00:26:41,740 this step by step. 624 00:26:41,940 --> 00:26:43,500 First part is building a sandbox. 625 00:26:44,740 --> 00:26:46,760 Cool and first of all 626 00:26:46,760 --> 00:26:47,720 I would say don't 627 00:26:48,720 --> 00:26:49,780 Cuckoo is complicated 628 00:26:49,780 --> 00:26:52,200 don't go to YouTube and put 629 00:26:52,200 --> 00:26:53,800 how do I install Cuckoo because 630 00:26:53,800 --> 00:26:55,160 you're probably going to get hacked. 631 00:26:56,100 --> 00:26:58,920 Not saying there's not a lot of good guides out there 632 00:26:59,140 --> 00:26:59,800 just be careful 633 00:26:59,800 --> 00:27:02,700 because a lot of sophisticated 634 00:27:03,960 --> 00:27:05,060 redactors will look 635 00:27:05,060 --> 00:27:06,700 for things like Cuckoo 636 00:27:06,700 --> 00:27:08,800 and of course everyone looks for VM tools 637 00:27:08,800 --> 00:27:11,120 no one's stupid enough to put VM tools 638 00:27:11,120 --> 00:27:13,120 that's not what all attackers are looking for 639 00:27:14,300 --> 00:27:15,080 they'll look at 640 00:27:15,080 --> 00:27:16,240 certain DLLs 641 00:27:16,240 --> 00:27:18,300 like the SPIE DLL 642 00:27:18,300 --> 00:27:20,960 and other things that it's kind of hard to get rid of 643 00:27:20,960 --> 00:27:22,400 on these boxes 644 00:27:22,920 --> 00:27:24,700 now when we're talking about sandboxes 645 00:27:24,700 --> 00:27:25,640 we're not just talking about 646 00:27:26,280 --> 00:27:28,760 something that you run and it gives you a report 647 00:27:29,140 --> 00:27:31,140 these are like kind of honeypot sandboxes 648 00:27:31,140 --> 00:27:32,480 as well so they're full interaction 649 00:27:33,280 --> 00:27:34,940 sandboxes that we can stop, we can play 650 00:27:34,940 --> 00:27:36,380 we can you know 651 00:27:36,380 --> 00:27:37,940 re-image as well 652 00:27:37,940 --> 00:27:40,680 I can't tell you how many times that 653 00:27:40,680 --> 00:27:42,940 I've seen people put in sandboxes 654 00:27:42,940 --> 00:27:45,080 and they've just gone and hacked 655 00:27:45,080 --> 00:27:46,360 themselves right I mean they just 656 00:27:46,360 --> 00:27:47,960 compromised their entire network 657 00:27:47,960 --> 00:27:50,320 so if you don't know what the hell you're doing 658 00:27:50,320 --> 00:27:52,160 just buy a professional sandbox right 659 00:27:52,160 --> 00:27:54,800 that's easier. One thing I just started 660 00:27:54,800 --> 00:27:56,180 playing around with a couple weeks ago 661 00:27:56,180 --> 00:27:58,780 and a good friend of mine, I don't know if he's in the audience 662 00:27:59,140 --> 00:28:00,520 Fred? Is there a Fred? 663 00:28:00,660 --> 00:28:02,020 Is anyone named Fred in the audience? 664 00:28:02,200 --> 00:28:03,300 Okay you can be my friend 665 00:28:03,300 --> 00:28:07,180 Alright well he told me about this tool called CloneZilla 666 00:28:07,180 --> 00:28:09,220 and actually using it 667 00:28:09,220 --> 00:28:11,180 it's like super awesome for like just ghosting 668 00:28:11,180 --> 00:28:13,040 stuff and putting things in so if you're like 669 00:28:13,040 --> 00:28:15,140 a malware author doing any type of malware testing 670 00:28:15,140 --> 00:28:16,840 look at CloneZilla it's actually 671 00:28:16,840 --> 00:28:18,280 kind of saved my ass a couple of times 672 00:28:19,400 --> 00:28:21,080 Yeah actually honestly I had a 673 00:28:21,080 --> 00:28:23,300 customer about a year and a half 674 00:28:23,300 --> 00:28:25,020 ago that built a sandbox 675 00:28:25,020 --> 00:28:27,020 and they were playing with walkie 676 00:28:27,020 --> 00:28:29,120 ransomware and they got themselves infected with walkie 677 00:28:29,140 --> 00:28:31,020 and when we did the investigation and we had to 678 00:28:31,020 --> 00:28:32,960 say well your sandbox is how you got infected 679 00:28:33,500 --> 00:28:34,720 resume generating event 680 00:28:34,720 --> 00:28:36,900 so again don't be that guy or girl 681 00:28:37,400 --> 00:28:38,940 when it comes to weaponization 682 00:28:38,940 --> 00:28:41,080 there's two different options in most cases 683 00:28:41,080 --> 00:28:42,860 that you can use. One is establishing 684 00:28:42,860 --> 00:28:44,940 a full tunnel which means you can interact 685 00:28:44,940 --> 00:28:46,520 you can actually pivot from that box 686 00:28:46,960 --> 00:28:48,900 and the other is a dropper which 687 00:28:48,900 --> 00:28:51,020 to be clear a dropper you don't get full interaction 688 00:28:51,020 --> 00:28:52,980 I talk to my dropper 689 00:28:52,980 --> 00:28:55,040 give me this information and it comes 690 00:28:55,040 --> 00:28:56,260 back so show me 691 00:28:57,500 --> 00:28:59,020 LS and a few minutes later 692 00:28:59,140 --> 00:29:01,000 I get back what's basically 693 00:29:01,000 --> 00:29:02,520 running in that folder kind of thing 694 00:29:02,940 --> 00:29:04,700 so in this use case 695 00:29:04,700 --> 00:29:07,080 we're looking at rats which means we want 696 00:29:07,080 --> 00:29:08,660 full access to the person's computer 697 00:29:08,660 --> 00:29:10,800 but no there's different options like 698 00:29:10,800 --> 00:29:12,860 empire you can put droppers out there 699 00:29:12,860 --> 00:29:14,820 easily and be more stealthy 700 00:29:14,820 --> 00:29:17,260 where a rat it's typically more chatty 701 00:29:17,260 --> 00:29:19,060 because it's a full tunnel so it depends on what 702 00:29:19,060 --> 00:29:21,040 you're looking to do. In our case you're going to 703 00:29:21,040 --> 00:29:22,740 find especially our first one was 704 00:29:22,740 --> 00:29:25,120 amateur hour there's a lot of 705 00:29:25,120 --> 00:29:26,420 things that we could have done better but 706 00:29:26,420 --> 00:29:28,600 we did it anyways so again 707 00:29:29,140 --> 00:29:30,440 full tunnel or dropper are your two options 708 00:29:31,260 --> 00:29:33,180 you're going to find also and the second 709 00:29:33,180 --> 00:29:34,940 story that I talk about here 710 00:29:34,940 --> 00:29:37,340 is wrapping and wrapping is the idea 711 00:29:37,340 --> 00:29:39,080 of actually taking a legit software 712 00:29:39,080 --> 00:29:40,620 and then wrapping it with malware 713 00:29:41,220 --> 00:29:42,900 true story with the challenge 714 00:29:42,900 --> 00:29:44,700 you guys know the packet capture village challenge 715 00:29:44,700 --> 00:29:46,860 one of the challenges was finding a hash 716 00:29:46,860 --> 00:29:48,600 that hash was my 717 00:29:49,140 --> 00:29:51,260 sock book that some a-hole on the internet 718 00:29:51,260 --> 00:29:52,420 wrapped with malware 719 00:29:52,420 --> 00:29:54,340 and literally we were in our sandbox our 720 00:29:54,340 --> 00:29:56,880 sandbox and I found I was just trying to find hashes 721 00:29:56,880 --> 00:29:58,820 of malware and I was like holy crap 722 00:29:59,140 --> 00:30:01,100 that hash is my book wrapped 723 00:30:01,100 --> 00:30:03,200 with malware so you can wrap anything 724 00:30:03,200 --> 00:30:04,940 and like here's literally a 725 00:30:04,940 --> 00:30:06,600 freeware where I can take 726 00:30:06,890 --> 00:30:09,000 a book or take a software or a 727 00:30:09,000 --> 00:30:10,940 music file or in this case 728 00:30:10,940 --> 00:30:12,480 the Webex installation client 729 00:30:12,930 --> 00:30:15,040 and wrap it with a back door 730 00:30:15,040 --> 00:30:16,620 so literally you take like a 731 00:30:17,140 --> 00:30:19,020 metatributor and metasploit you have 732 00:30:19,020 --> 00:30:20,940 that as your rootkit you create your 733 00:30:20,940 --> 00:30:23,060 whatever you want in this case your Webex 734 00:30:24,200 --> 00:30:25,040 actually I don't know 735 00:30:25,040 --> 00:30:26,320 we're being recorded your 736 00:30:26,900 --> 00:30:29,080 VPN client or shareware 737 00:30:29,140 --> 00:30:31,100 client recorded you wrap 738 00:30:31,100 --> 00:30:33,080 that and if somebody runs it boom you're 739 00:30:33,080 --> 00:30:35,140 good now the other thing though 740 00:30:35,140 --> 00:30:36,640 in this is obviously the 741 00:30:37,500 --> 00:30:39,020 antivirus will catch it you do 742 00:30:39,020 --> 00:30:39,800 want to do your 743 00:30:41,360 --> 00:30:42,900 modification to it your encoding 744 00:30:42,900 --> 00:30:45,060 basically to make sure that it doesn't get 745 00:30:45,060 --> 00:30:46,540 detected also 746 00:30:46,980 --> 00:30:48,600 by the way too if you are going to do this 747 00:30:49,000 --> 00:30:50,980 you probably want to have either like trident or 748 00:30:50,980 --> 00:30:53,000 peed but you're also going to want to have some 749 00:30:53,000 --> 00:30:55,080 kind of file detection piece and actually truly 750 00:30:55,080 --> 00:30:56,940 identify what the file is especially 751 00:30:56,940 --> 00:30:59,000 when they send stuff to you so in this 752 00:30:59,140 --> 00:31:00,900 use case when they send us the Dell file 753 00:31:00,900 --> 00:31:02,660 it actually did not have malware 754 00:31:02,660 --> 00:31:05,060 but a lot of times a fissure is sending us something 755 00:31:05,060 --> 00:31:07,040 usually it does have malware and 756 00:31:07,040 --> 00:31:08,940 the way to see it is you put in a sandbox 757 00:31:08,940 --> 00:31:10,940 and you first analyze and make sure 758 00:31:10,940 --> 00:31:13,160 what it is because it may be a zip file 759 00:31:13,160 --> 00:31:15,020 or it may be some other file even though 760 00:31:15,020 --> 00:31:17,100 the file type is different so not only should 761 00:31:17,100 --> 00:31:19,120 you build a sandbox we highly recommend 762 00:31:19,120 --> 00:31:20,900 for you to download some freeware and 763 00:31:20,900 --> 00:31:22,940 actually identify what the file is before you start 764 00:31:22,940 --> 00:31:23,600 analyzing it 765 00:31:26,780 --> 00:31:29,060 alright so some of the things that 766 00:31:29,140 --> 00:31:31,000 we started doing just to play around with 767 00:31:31,000 --> 00:31:33,740 you know how to get this malware on 768 00:31:33,740 --> 00:31:35,160 is we have to figure out that 769 00:31:35,160 --> 00:31:37,040 you know we don't want to really you know we both 770 00:31:37,040 --> 00:31:39,040 work for security companies we really know a little bit 771 00:31:39,040 --> 00:31:40,940 about how to bypass security devices 772 00:31:40,940 --> 00:31:42,960 and like everyone will tell you 773 00:31:42,960 --> 00:31:44,800 the way you bypass like security 774 00:31:44,800 --> 00:31:47,220 signatures and attacks is to use 775 00:31:47,220 --> 00:31:49,120 things that are already on the 776 00:31:49,120 --> 00:31:50,880 system right use PowerShell 777 00:31:50,880 --> 00:31:53,040 use Python, Python is great 778 00:31:53,040 --> 00:31:54,600 you can like put a full wrap 779 00:31:55,120 --> 00:31:57,220 Excel is just a really easy 780 00:31:57,220 --> 00:31:58,960 rat that I came across that 781 00:31:59,140 --> 00:32:00,580 works on Mac machines as well 782 00:32:00,580 --> 00:32:02,800 and then from there I mean it's pretty much like 783 00:32:02,800 --> 00:32:04,960 Metasploit or any of these tools you can 784 00:32:04,960 --> 00:32:07,020 write your own rats and 785 00:32:07,020 --> 00:32:09,080 your own deployment pretty easily 786 00:32:09,080 --> 00:32:11,060 as well and that's most of the time 787 00:32:11,060 --> 00:32:12,420 like you know when we're testing things 788 00:32:12,420 --> 00:32:14,720 that's what we do there's no signatures on something 789 00:32:14,720 --> 00:32:16,440 that I write on the fly right 790 00:32:16,440 --> 00:32:18,740 and also 791 00:32:18,740 --> 00:32:21,000 you know have a public server ready to 792 00:32:21,000 --> 00:32:22,680 go that's hosting stuff 793 00:32:22,680 --> 00:32:24,880 I think a lot of times when we came across this 794 00:32:24,880 --> 00:32:26,800 research and you'll notice when we 795 00:32:26,800 --> 00:32:29,020 talk about the video and exactly what we did 796 00:32:29,140 --> 00:32:31,200 is you know when we got the call 797 00:32:31,200 --> 00:32:33,000 you know really I walked into the house 798 00:32:33,000 --> 00:32:34,980 and my mom's like I don't understand this call 799 00:32:34,980 --> 00:32:36,760 it's like someone saying Dell tech support 800 00:32:36,760 --> 00:32:38,940 and you know I'm listening to this guy 801 00:32:38,940 --> 00:32:40,860 I'm like alright it's Christmas 802 00:32:40,860 --> 00:32:42,940 time Christmas has come early right 803 00:32:42,940 --> 00:32:45,120 and I'm texting him I go dude some guy's calling 804 00:32:45,120 --> 00:32:46,820 me claiming he's Dell tech support right 805 00:32:46,820 --> 00:32:49,140 and he's like shit he's like what are we gonna do 806 00:32:49,140 --> 00:32:51,080 and I was like dude I already got a Kali box set up 807 00:32:51,080 --> 00:32:53,020 in the cloud like we're gonna have some fun with 808 00:32:53,020 --> 00:32:54,780 this guy so like be 809 00:32:54,780 --> 00:32:55,920 ready to go 810 00:32:57,380 --> 00:32:58,720 you wanna talk about encoding more? 811 00:32:59,140 --> 00:33:01,120 yeah yeah so as we mentioned in a lot 812 00:33:01,120 --> 00:33:02,740 of cases what you don't want to happen is 813 00:33:02,740 --> 00:33:04,880 same thing with them if we're gonna hack back 814 00:33:04,880 --> 00:33:07,080 we're gonna phish them we don't want to trick 815 00:33:07,080 --> 00:33:09,180 them have them install the file and then like 816 00:33:09,180 --> 00:33:11,100 their antivirus blocks it like that's a complete 817 00:33:11,100 --> 00:33:12,080 fail so 818 00:33:12,080 --> 00:33:14,820 make sure you encode basically 819 00:33:14,820 --> 00:33:16,980 what we did was we had our system 820 00:33:16,980 --> 00:33:19,060 already set up on the fly and then we were 821 00:33:19,060 --> 00:33:21,140 just basically trying out the files against 822 00:33:21,140 --> 00:33:22,940 the known security 823 00:33:22,940 --> 00:33:25,040 vendors and you're never gonna get like 824 00:33:25,040 --> 00:33:27,040 100% like bypass but 825 00:33:27,040 --> 00:33:28,920 long as you get like a high enough number in our case like 826 00:33:29,140 --> 00:33:30,680 70% we're like this is good enough 827 00:33:30,680 --> 00:33:32,940 this is like a Dell workshop they probably have like a crappy 828 00:33:32,940 --> 00:33:34,420 computer anyways so 829 00:33:35,000 --> 00:33:37,080 yeah I mean pretty much make sure that you do test it 830 00:33:37,080 --> 00:33:38,700 before you send it and then 831 00:33:38,700 --> 00:33:41,020 finally there was the location piece you wanna talk 832 00:33:41,020 --> 00:33:41,440 to this one? 833 00:33:42,980 --> 00:33:45,020 yeah so you know a couple of things 834 00:33:45,020 --> 00:33:47,000 that when we started talking about is 835 00:33:47,000 --> 00:33:48,860 we started playing around a lot with like macros 836 00:33:48,860 --> 00:33:51,080 word macros and if a word macro is actually 837 00:33:51,080 --> 00:33:52,840 not sending information back it 838 00:33:52,840 --> 00:33:54,800 really doesn't trigger like any 839 00:33:54,800 --> 00:33:56,840 AV type you know triggers 840 00:33:56,840 --> 00:33:58,860 so you put a macro in just to like 841 00:33:59,140 --> 00:34:00,780 basically record the IP address and like 842 00:34:00,780 --> 00:34:02,960 save that on like a hidden document or a hidden 843 00:34:02,960 --> 00:34:05,000 sheet or you know like start 844 00:34:05,000 --> 00:34:06,540 putting in like basic 845 00:34:07,640 --> 00:34:08,980 location tracking so 846 00:34:08,980 --> 00:34:11,060 it was kinda cool one of the things people always talk 847 00:34:11,060 --> 00:34:12,960 about is the attribution but you know 848 00:34:12,960 --> 00:34:14,820 when we're writing the local 849 00:34:14,820 --> 00:34:17,140 IP address and then like pinging your local 850 00:34:17,140 --> 00:34:19,040 gateway and doing a trace route which we can 851 00:34:19,040 --> 00:34:20,520 all do in a macro and 852 00:34:20,520 --> 00:34:22,920 we'll have a little more detail on our sites on 853 00:34:22,920 --> 00:34:25,000 exactly how we accomplished that as well so you can 854 00:34:25,000 --> 00:34:27,160 see the code it's just VB 855 00:34:27,160 --> 00:34:29,040 code you know 856 00:34:29,140 --> 00:34:30,980 we know exactly what the attribution was 857 00:34:30,980 --> 00:34:33,160 and I'll describe it 858 00:34:33,160 --> 00:34:35,020 a little bit but at the end of the video I mean I saw 859 00:34:35,020 --> 00:34:36,940 the guy so I exactly knew exactly where he was 860 00:34:36,940 --> 00:34:38,880 from it was a little obvious at least 861 00:34:38,880 --> 00:34:41,020 at least I thought it was anything 862 00:34:41,020 --> 00:34:41,460 you want to add? 863 00:34:43,300 --> 00:34:45,120 alright so let me kind of set 864 00:34:45,120 --> 00:34:47,080 up this video just a little bit before 865 00:34:47,080 --> 00:34:48,620 we get going as I 866 00:34:49,040 --> 00:34:51,100 said you know this really started off 867 00:34:51,100 --> 00:34:52,980 with like me walking to my house 868 00:34:52,980 --> 00:34:55,160 my mom's like I don't understand what's going on 869 00:34:55,160 --> 00:34:57,080 here and I talk 870 00:34:57,080 --> 00:34:58,820 to the guy he's like I'm Dell tech support I go 871 00:34:59,140 --> 00:35:00,280 cool I have a Mac 872 00:35:00,800 --> 00:35:01,200 or 873 00:35:02,840 --> 00:35:04,540 you know BSD whatever 874 00:35:04,540 --> 00:35:06,400 I mean I fucking don't use a Dell 875 00:35:07,360 --> 00:35:07,980 and uh 876 00:35:08,900 --> 00:35:10,640 yeah and then you know 877 00:35:10,640 --> 00:35:12,820 I'm just talking to him and he's like you know of course 878 00:35:12,820 --> 00:35:15,160 he's a contractor and he wants me to get on 879 00:35:15,160 --> 00:35:16,940 TeamViewer he's like download TeamViewer 880 00:35:16,940 --> 00:35:18,800 and I'm like yeah no way 881 00:35:19,460 --> 00:35:21,000 I'm not downloading TeamViewer and 882 00:35:21,000 --> 00:35:22,800 he's like trying to scare me he's like well 883 00:35:22,800 --> 00:35:25,140 first of all you know you have all this malware going on 884 00:35:25,140 --> 00:35:26,400 and he's really putting it on 885 00:35:27,220 --> 00:35:29,060 he's like you're going to get arrested because 886 00:35:29,140 --> 00:35:31,120 you know you may not know what you're doing but now 887 00:35:31,120 --> 00:35:33,060 you're responsible for this malware and you're 888 00:35:33,060 --> 00:35:34,560 destroying people's lives and 889 00:35:34,560 --> 00:35:36,940 democracy depends on this 890 00:35:36,940 --> 00:35:39,120 man like pay me right and I'm 891 00:35:39,120 --> 00:35:41,140 like alright what do I do I don't understand 892 00:35:41,140 --> 00:35:42,980 and I was getting him really frustrated you know 893 00:35:42,980 --> 00:35:44,900 I was uh you know I was uh you know 894 00:35:44,900 --> 00:35:46,880 pretending like I didn't know much and he's like 895 00:35:46,880 --> 00:35:49,060 alright you know what here's a document and send 896 00:35:49,060 --> 00:35:50,920 me this document I'm like 897 00:35:50,920 --> 00:35:53,020 it's Christmas man it's beautiful 898 00:35:54,180 --> 00:35:55,060 I go 899 00:35:55,060 --> 00:35:57,120 you're sending me a document so of course he sends 900 00:35:57,120 --> 00:35:59,020 me a document put it in the sandbox I was like 901 00:35:59,140 --> 00:36:00,800 I'm so excited at this point I'm just like 902 00:36:00,800 --> 00:36:02,280 running this I'm like fuck it I'll 903 00:36:02,280 --> 00:36:04,060 re-image my box this is 904 00:36:04,060 --> 00:36:07,120 like and that's how I always get infected 905 00:36:07,120 --> 00:36:08,860 you know like you know you start off like 906 00:36:08,860 --> 00:36:10,860 I was fine I don't need to put in my 907 00:36:10,860 --> 00:36:11,920 VM and uh 908 00:36:11,920 --> 00:36:14,640 the document was clean it was completely 909 00:36:14,640 --> 00:36:16,940 clean right um so um so 910 00:36:16,940 --> 00:36:18,960 I did the most basic thing I set up the 911 00:36:18,960 --> 00:36:21,100 most basic encoder in MS 912 00:36:21,100 --> 00:36:23,060 Venom and why doesn't 913 00:36:23,060 --> 00:36:24,700 every AV just freaking catch this 914 00:36:24,700 --> 00:36:26,940 you know script kitty stuff right that's all 915 00:36:26,940 --> 00:36:28,840 we're doing is I'm setting up a local 916 00:36:29,140 --> 00:36:30,640 uh you know a local exploit 917 00:36:30,640 --> 00:36:32,280 and uh this is a payload 918 00:36:32,280 --> 00:36:34,400 um and uh and the 919 00:36:34,860 --> 00:36:36,820 macro that we put in now 920 00:36:36,820 --> 00:36:39,040 um you're not gonna put in the 921 00:36:39,040 --> 00:36:40,780 payload like visible in the document 922 00:36:40,780 --> 00:36:42,920 you'll see that I just have it like in the document here 923 00:36:42,920 --> 00:36:44,980 um at the very least 924 00:36:44,980 --> 00:36:46,980 just make it white just like make the 925 00:36:46,980 --> 00:36:48,960 color of the font white they're not gonna see it 926 00:36:48,960 --> 00:36:50,920 but you can put it on a transparent sheet there's uh 927 00:36:50,920 --> 00:36:52,640 there's other things you can do as well 928 00:36:52,640 --> 00:36:55,080 and yeah you know he's gonna like depending on 929 00:36:55,080 --> 00:36:57,120 the version of uh word he has he's gonna 930 00:36:57,120 --> 00:36:58,560 get some error out here 931 00:36:59,140 --> 00:37:01,020 it doesn't matter I mean as security people 932 00:37:01,020 --> 00:37:03,100 we always say like no one's gonna click on 933 00:37:03,100 --> 00:37:04,940 a macro everyone clicks 934 00:37:04,940 --> 00:37:07,040 on it they click on something even if he clicks end 935 00:37:07,040 --> 00:37:08,840 it doesn't matter and that's why I got the 936 00:37:08,840 --> 00:37:11,000 the shellcode here anyway so it's gonna bypass 937 00:37:11,000 --> 00:37:13,000 a lot of stuff anyways it's gonna run automatically 938 00:37:13,000 --> 00:37:15,180 so uh so I save it of course 939 00:37:15,180 --> 00:37:16,960 I told him my name he wanted to know my name 940 00:37:17,540 --> 00:37:18,700 my name is Eason Hunt 941 00:37:18,700 --> 00:37:20,180 so that's what I told him 942 00:37:20,180 --> 00:37:25,120 and he's like oh that's good that's good 943 00:37:25,120 --> 00:37:27,120 you know that's great uh so uh so 944 00:37:27,120 --> 00:37:28,980 of course I'm waiting for him to like open the document 945 00:37:29,140 --> 00:37:30,100 I'm waiting and I'm texting 946 00:37:30,100 --> 00:37:32,720 Joey he's gonna open it he's gonna open it 947 00:37:33,320 --> 00:37:34,700 and uh and of course like 948 00:37:34,700 --> 00:37:36,740 it takes him like five minutes to open it 949 00:37:36,740 --> 00:37:38,860 and uh finally bingo right 950 00:37:38,860 --> 00:37:40,780 I mean I get my reverse shell 951 00:37:40,780 --> 00:37:43,040 um back now what's funny is I actually 952 00:37:43,040 --> 00:37:44,800 didn't put anything in it so he called me up 953 00:37:44,800 --> 00:37:46,560 he's like the document's empty he's like 954 00:37:46,560 --> 00:37:48,580 did you not know what you were doing like uh 955 00:37:48,580 --> 00:37:49,600 what's going on 956 00:37:50,400 --> 00:37:50,800 yeah 957 00:37:50,800 --> 00:37:54,980 yeah in fact you can see like 958 00:37:54,980 --> 00:37:57,020 I'm like so excited because I'm like what can I do 959 00:37:57,020 --> 00:37:58,720 here what can I do here right I mean I 960 00:37:59,140 --> 00:38:00,780 even put in the wrong commands here and uh 961 00:38:00,780 --> 00:38:03,020 and uh and so uh once he opened 962 00:38:03,020 --> 00:38:05,220 up the document I could I could see his 963 00:38:05,220 --> 00:38:06,960 uh I could see his desktop running 964 00:38:06,960 --> 00:38:08,740 he's still staring at the empty document 965 00:38:08,740 --> 00:38:09,420 um 966 00:38:10,900 --> 00:38:12,940 I'll be it's going to be there the information 967 00:38:12,940 --> 00:38:15,000 is going to like like and this is the 968 00:38:15,000 --> 00:38:16,680 actual document that he sent right 969 00:38:16,680 --> 00:38:19,020 so you can see that uh 970 00:38:19,020 --> 00:38:21,060 that he didn't write it now um 971 00:38:21,060 --> 00:38:22,960 at that point like what I ended up doing 972 00:38:22,960 --> 00:38:25,000 was uh just like turning on first of all like 973 00:38:25,000 --> 00:38:26,980 snapshots like on the webcam so 974 00:38:26,980 --> 00:38:29,080 so that way the light wouldn't go on on the 975 00:38:29,140 --> 00:38:30,820 on the webcam and um 976 00:38:30,820 --> 00:38:32,640 and so just to see how he looked like 977 00:38:32,640 --> 00:38:34,040 but at the end I was like 978 00:38:34,620 --> 00:38:36,380 F it let's just turn on the webcam right 979 00:38:39,500 --> 00:38:41,020 and so this is the part like uh 980 00:38:41,020 --> 00:38:43,120 you know we were kind of a little afraid of just because there was a lot 981 00:38:43,120 --> 00:38:45,000 of there was a lot of people here it wasn't just one 982 00:38:45,000 --> 00:38:47,080 guy I mean it was uh there was like two or three 983 00:38:47,080 --> 00:38:49,120 people next to him um there was 984 00:38:49,120 --> 00:38:51,000 uh you know there was uh people behind it it was 985 00:38:51,000 --> 00:38:53,060 it was a call center type uh type 986 00:38:53,060 --> 00:38:55,060 uh thing and so uh that's why 987 00:38:55,060 --> 00:38:57,120 I didn't uh put that on there and then I'm talking to him 988 00:38:57,120 --> 00:38:59,020 I'm like oh yeah that's a really nice 989 00:38:59,140 --> 00:39:00,960 red shirt and uh you know like uh 990 00:39:00,960 --> 00:39:03,200 you know your your your turban's a little messed up 991 00:39:03,200 --> 00:39:03,740 here uh 992 00:39:04,700 --> 00:39:07,000 I'm not gonna tell you what country I think it's attributed 993 00:39:07,000 --> 00:39:08,480 from right 994 00:39:08,480 --> 00:39:11,100 but uh uh so like he's like what 995 00:39:11,100 --> 00:39:13,000 he's like not understanding me and I was like 996 00:39:13,000 --> 00:39:14,800 you know at that point I go hey bro 997 00:39:14,800 --> 00:39:16,760 so I start talking to him in Hindi right now 998 00:39:16,760 --> 00:39:18,760 and I go tell him exactly I go 999 00:39:18,760 --> 00:39:21,140 you know I go yeah this is really nice and these are the files 1000 00:39:21,140 --> 00:39:22,940 oh you got he had WeChat 1001 00:39:22,940 --> 00:39:24,700 he had AIM I think we have a picture 1002 00:39:24,700 --> 00:39:27,040 we have a picture of his desktop we took uh but we 1003 00:39:27,040 --> 00:39:28,400 he had we oh yeah 1004 00:39:29,140 --> 00:39:29,880 uh so yeah 1005 00:39:29,880 --> 00:39:32,720 yeah yeah but uh but 1006 00:39:32,720 --> 00:39:34,840 you know every chat message uh like uh 1007 00:39:34,840 --> 00:39:36,520 like uh known to the world so 1008 00:39:36,520 --> 00:39:38,880 the video that I actually had um that 1009 00:39:38,880 --> 00:39:40,660 hopefully we'll be able to put up is basically 1010 00:39:40,660 --> 00:39:42,680 him running towards the camera 1011 00:39:42,680 --> 00:39:44,720 and pulling it out before it freezes uh 1012 00:39:44,720 --> 00:39:46,800 so uh so uh that was uh 1013 00:39:46,800 --> 00:39:48,000 that was awesome 1014 00:39:48,000 --> 00:39:50,000 and of course this is all hypothetical 1015 00:39:50,000 --> 00:39:52,640 I'm pretty sure a wink is a defensible 1016 00:39:52,640 --> 00:39:54,580 uh you know plea I hope so 1017 00:39:55,140 --> 00:39:56,800 so yeah again we can't we couldn't show 1018 00:39:56,800 --> 00:39:58,880 because the language on the desktop and uh 1019 00:39:59,140 --> 00:40:00,840 the country of origin all this stuff 1020 00:40:00,840 --> 00:40:02,620 our HR department's like don't show it 1021 00:40:02,620 --> 00:40:05,120 but we hope to show it because again it's magic land 1022 00:40:05,120 --> 00:40:07,100 but we hope to show this dream 1023 00:40:07,100 --> 00:40:09,080 scenario that really 1024 00:40:09,080 --> 00:40:10,940 didn't happen or did happen on our blogs 1025 00:40:10,940 --> 00:40:12,040 at some point in the near future 1026 00:40:12,720 --> 00:40:15,040 that's scenario two scenario one was 1027 00:40:15,040 --> 00:40:16,700 the other one just to mention so 1028 00:40:16,700 --> 00:40:19,040 this one we didn't have a recording this is like when we 1029 00:40:19,040 --> 00:40:21,020 started actually first hacking back but this 1030 00:40:21,020 --> 00:40:23,140 was my scenario where again I had somebody 1031 00:40:23,140 --> 00:40:24,900 call me they were trying to 1032 00:40:24,900 --> 00:40:26,880 tell me that I have malware on my computer 1033 00:40:26,880 --> 00:40:29,040 so they're trying to walk me through commands to 1034 00:40:29,140 --> 00:40:31,000 install stuff so all I was doing 1035 00:40:31,000 --> 00:40:33,180 was acting really slow and saying I don't get it 1036 00:40:33,180 --> 00:40:34,620 or I'm fat fingering it like 1037 00:40:34,980 --> 00:40:36,980 and just kept saying I don't get it and that's 1038 00:40:36,980 --> 00:40:38,980 what I offered well I have this shareware software 1039 00:40:39,400 --> 00:40:40,300 made by uh 1040 00:40:40,300 --> 00:40:42,180 I guess I can't use the word WebEx 1041 00:40:43,260 --> 00:40:44,960 WebEx um and basically 1042 00:40:44,960 --> 00:40:46,920 said I can share my screen and I can let you 1043 00:40:46,920 --> 00:40:48,940 interact so I'll give you full control and you can do it 1044 00:40:48,940 --> 00:40:50,980 for me and I can hear in his voice the 1045 00:40:50,980 --> 00:40:52,920 excitement because he thinks he's won he's like 1046 00:40:52,920 --> 00:40:54,880 I'm gonna full control this guy's computer 1047 00:40:54,880 --> 00:40:57,000 this is awesome so I'm like sure just run 1048 00:40:57,000 --> 00:40:59,120 this app so I'm I send him a link 1049 00:40:59,140 --> 00:41:00,880 exact same trick he just did to me 1050 00:41:00,880 --> 00:41:02,900 but I basically weaponized my WebEx 1051 00:41:02,900 --> 00:41:04,660 and popped his box that way 1052 00:41:04,660 --> 00:41:06,980 and same thing we started interacting with his computer 1053 00:41:06,980 --> 00:41:08,860 and uh turned on his camera 1054 00:41:08,860 --> 00:41:11,120 I basically just screwed with 1055 00:41:11,120 --> 00:41:12,540 his computer to the point where his computer 1056 00:41:13,120 --> 00:41:14,840 started acting funny then he got freaked out 1057 00:41:14,840 --> 00:41:16,640 and then killed the connection so 1058 00:41:16,640 --> 00:41:18,900 again same idea so the whole point of this here to 1059 00:41:18,900 --> 00:41:20,100 summarize what we did is 1060 00:41:20,720 --> 00:41:23,180 really if you think about it phishing in general 1061 00:41:23,180 --> 00:41:24,740 is the idea of tricking people 1062 00:41:24,740 --> 00:41:26,840 they're trying to trick you they're trying to make you do something 1063 00:41:26,840 --> 00:41:28,940 uh we talked about today first the 1064 00:41:29,140 --> 00:41:30,920 the legal defenses so hopefully 1065 00:41:30,920 --> 00:41:32,960 again I have a badreputation.com 1066 00:41:32,960 --> 00:41:35,060 try that website out think about 1067 00:41:35,060 --> 00:41:37,120 reputation security think about content filtering 1068 00:41:37,120 --> 00:41:38,620 firewalls that kind of stuff 1069 00:41:38,950 --> 00:41:40,960 and then have breach if you don't have breach 1070 00:41:40,960 --> 00:41:43,020 you're an idiot because how do you know 1071 00:41:43,020 --> 00:41:45,120 if those defenses are working or not 1072 00:41:45,120 --> 00:41:47,180 if you're not validating those you don't 1073 00:41:47,180 --> 00:41:49,040 know if something's getting through we talked 1074 00:41:49,040 --> 00:41:51,080 about honeypots today which you can learn more on 1075 00:41:51,080 --> 00:41:52,840 our book we talked about uh 1076 00:41:52,840 --> 00:41:55,080 IPS and NetFlow as legitimate tools 1077 00:41:55,080 --> 00:41:56,840 but if you do want to hack back 1078 00:41:56,840 --> 00:41:58,840 we did talk about how to build a sandbox 1079 00:41:59,140 --> 00:42:00,500 you want to do this obviously on the net 1080 00:42:00,500 --> 00:42:02,540 we talked about some of the legalities of it 1081 00:42:02,540 --> 00:42:04,200 we talked about if you do hack back 1082 00:42:04,200 --> 00:42:06,640 I mean we got lucky in these two cases 1083 00:42:06,640 --> 00:42:09,040 some of the other cases when we do actually pop a 1084 00:42:09,040 --> 00:42:10,940 box we find we're in a school or 1085 00:42:10,940 --> 00:42:12,860 a church or some other system meaning it's a 1086 00:42:12,860 --> 00:42:14,660 pivot point so you don't necessarily 1087 00:42:14,660 --> 00:42:16,940 are gonna like hack back and always get the bad 1088 00:42:16,940 --> 00:42:19,080 guy or girl you may get some 1089 00:42:19,080 --> 00:42:20,880 some pivot points but if you do 1090 00:42:20,880 --> 00:42:22,980 lucky enough like we got where you're actually talking to 1091 00:42:22,980 --> 00:42:24,840 the person on the phone in a lot of cases 1092 00:42:24,840 --> 00:42:26,540 now you're actually talking to the victim 1093 00:42:26,970 --> 00:42:28,940 or the attacker so they can become 1094 00:42:29,140 --> 00:42:31,160 a victim which basically is what we talked 1095 00:42:31,160 --> 00:42:33,080 about which is think about tricking 1096 00:42:33,080 --> 00:42:35,100 them using the exact same tactics you can 1097 00:42:35,100 --> 00:42:36,560 use rats you can use droppers 1098 00:42:37,100 --> 00:42:39,040 however you want to do it there's many ways of doing it 1099 00:42:39,040 --> 00:42:41,080 we showed too and then the idea is 1100 00:42:41,080 --> 00:42:42,840 if you do you know get them back 1101 00:42:42,840 --> 00:42:44,440 post it somewhere and uh 1102 00:42:44,440 --> 00:42:47,100 embarrass them because hopefully they'll stop doing it 1103 00:42:47,640 --> 00:42:48,800 yeah the one thing I would 1104 00:42:48,800 --> 00:42:51,100 like to add is once if this ever happens 1105 00:42:51,100 --> 00:42:52,520 to you and you start 1106 00:42:53,660 --> 00:42:54,920 laughing uncontrollably at them 1107 00:42:54,920 --> 00:42:57,100 hit the mute button because it does make them 1108 00:42:57,100 --> 00:42:58,220 a little suspicious but uh 1109 00:42:59,140 --> 00:42:59,240 laughing 1110 00:43:00,940 --> 00:43:02,860 you can also just tell them you were crying 1111 00:43:02,860 --> 00:43:04,780 because you're so scared or something like that that'll work too 1112 00:43:04,780 --> 00:43:05,420 laughing 1113 00:43:06,880 --> 00:43:09,020 so again we do appreciate it we hope to 1114 00:43:09,020 --> 00:43:10,940 publish more information about this as we 1115 00:43:10,940 --> 00:43:12,600 continue to do this in magic land 1116 00:43:13,080 --> 00:43:15,060 uh and if you guys end up doing some of this 1117 00:43:15,060 --> 00:43:16,600 as well uh again I'm 1118 00:43:16,600 --> 00:43:18,800 Joseph Muniz this is the mayor reach out 1119 00:43:18,800 --> 00:43:20,800 let us know we'd like to hear about your uh fishing 1120 00:43:20,800 --> 00:43:22,140 back or attack back adventures 1121 00:43:22,680 --> 00:43:24,420 thanks for your time enjoy the rest of the talk 1122 00:43:24,420 --> 00:43:25,120 applause 1123 00:43:26,220 --> 00:43:26,620 applause 1124 00:43:29,340 --> 00:43:30,740 music