1 00:00:01,000 --> 00:00:04,940 Hi, everybody. Welcome to DEF CON, the DEF CON 10. 2 00:00:05,920 --> 00:00:11,420 We're here today talking about the DC Phenome Project, something we've been working on. 3 00:00:11,500 --> 00:00:15,400 My name is Chris Davis. I'm with Red Siren. I'm a CISP. 4 00:00:15,880 --> 00:00:19,400 My focus mainly is penetration testing, vulnerability assessments. 5 00:00:21,100 --> 00:00:22,120 Oh, I know. 6 00:00:22,300 --> 00:00:27,200 And this is the presentation screen. 7 00:00:27,200 --> 00:00:30,160 That one's going to be for demos, so look over here. 8 00:00:35,520 --> 00:00:37,300 I don't know who's running that show. 9 00:00:38,260 --> 00:00:41,280 We would if we could. Can anyone turn off that light? 10 00:00:46,780 --> 00:00:48,520 The plug's over there behind the curtains. 11 00:00:52,260 --> 00:00:53,360 Maybe. Please. 12 00:01:03,220 --> 00:01:04,860 Thank you, man in the purple shirt. 13 00:01:05,940 --> 00:01:10,320 Like I said, my name's Chris Davis. I do pen testing, vulnerability assessments. 14 00:01:10,840 --> 00:01:13,940 I've been working at InfoSec for about five years now. 15 00:01:14,120 --> 00:01:18,000 I've been doing computers in general since I was born, pretty much. 16 00:01:19,700 --> 00:01:22,620 My name's Aaron Higby. I'm a consultant with Foundstone. 17 00:01:22,900 --> 00:01:24,760 I'm out of the Washington, D.C. office. 18 00:01:24,960 --> 00:01:27,140 And most of the time, I do attack information. 19 00:01:27,200 --> 00:01:28,780 I do penetration testing for our clients. 20 00:01:29,360 --> 00:01:35,160 Chris Davis and I actually met while working at Lucent as part of their professional services organization. 21 00:01:36,260 --> 00:01:39,920 And while Lucent isn't doing so well, so we've both kind of parted ways, 22 00:01:40,180 --> 00:01:45,040 but we've continued to hang out and work on security-related projects together. 23 00:01:45,660 --> 00:01:49,660 Like I said earlier, my main focus is attack and penetration testing. 24 00:01:50,180 --> 00:01:56,560 A lot of times, I've been called in to do an insider pen test where the client wants me to be inside 25 00:01:56,560 --> 00:02:01,420 with just an Ethernet jack and see exactly which information I can get to. 26 00:02:01,600 --> 00:02:08,220 And one time in particular, the client was interested in finding out if I could get physical access into the data center. 27 00:02:08,400 --> 00:02:11,600 So I was supposed to be posing myself as a normal employee, 28 00:02:12,320 --> 00:02:15,740 but they wanted to see if I could get into the data center where I didn't have access. 29 00:02:16,180 --> 00:02:21,600 So I heard about the old crawling over the ceiling, through the ceiling tile, 30 00:02:21,700 --> 00:02:24,560 so I said, hey, that sounds like a good idea. I'm going to try that. 31 00:02:26,560 --> 00:02:31,500 And then I did find an adjoining office area that had a wall that was right next to the data center, 32 00:02:31,880 --> 00:02:34,000 so I decided to try this out. 33 00:02:34,500 --> 00:02:38,820 When I looked in this office, I saw a table, a desk, and a rolly chair. 34 00:02:39,720 --> 00:02:42,380 And I needed to get up to the ceiling. I didn't bring a ladder with me, 35 00:02:42,440 --> 00:02:46,420 so I decided to put the rolly chair on the table, and I do not recommend that to anybody. 36 00:02:48,600 --> 00:02:52,980 But for the most part, it worked. I was able to remove the first ceiling tile on my side, 37 00:02:53,100 --> 00:02:56,540 and then I said, okay, well now it's time to jump down to the other side, 38 00:02:56,560 --> 00:02:59,940 and that's when it hit me. That's a lot easier said than done. 39 00:03:01,040 --> 00:03:07,420 So I removed one of the other tiles, I slide it over, and then in the process of actually heating my body over the wall, 40 00:03:07,620 --> 00:03:10,320 I break two of the client ceiling tiles. 41 00:03:10,640 --> 00:03:14,060 So I'm not going to be able to patch the ceiling. They know that I was in there. 42 00:03:14,560 --> 00:03:17,480 It was quite a chore to actually get in there, but I was in. 43 00:03:17,860 --> 00:03:21,460 I didn't have a laptop with me or anything. It was hard enough just to get inside. 44 00:03:22,120 --> 00:03:25,660 So my next step was to find some server that they would think valuable, 45 00:03:25,660 --> 00:03:30,220 that I could gain access to. So I walked through this data center for a while, 46 00:03:30,380 --> 00:03:34,160 and I'm not familiar with it, but I think I find what's the payroll and accounting server. 47 00:03:34,920 --> 00:03:37,580 And then it took me about five or ten minutes to find that. 48 00:03:37,960 --> 00:03:41,400 And then I decide, okay, well, I'm going to try to log into it or do something to it. 49 00:03:41,900 --> 00:03:45,160 It took me about another five or ten minutes just to figure out the KVM. 50 00:03:45,900 --> 00:03:49,940 Finally, I was in there long enough to say, you know what, they're going to know that I'm in here. 51 00:03:49,980 --> 00:03:52,460 I broke the ceiling tile. There's stuff all over the floor. 52 00:03:52,880 --> 00:03:55,420 So what I ended up doing was just leaving a business card. 53 00:03:55,660 --> 00:03:59,660 So I can put my final report, yes, it's possible to gain physical access to the data center. 54 00:03:59,940 --> 00:04:03,660 But what I really wished I had was my laptop or something that I could have done 55 00:04:03,660 --> 00:04:06,700 or something that I could have left there to give me access later. 56 00:04:09,080 --> 00:04:12,160 I actually had a similar situation. I didn't leave a business card, though. 57 00:04:12,180 --> 00:04:16,400 I took that and a couple other personal items that I don't think they wish I could have taken. 58 00:04:16,520 --> 00:04:20,520 I was doing a physical pen test for a bank a while back, 59 00:04:20,720 --> 00:04:25,560 and they had four levels of access control just to get into their data center. 60 00:04:25,660 --> 00:04:29,800 We're talking the data watch cards and some biometrics to get back there. 61 00:04:29,960 --> 00:04:32,060 And so I was thinking, geez, am I going to get in? 62 00:04:32,120 --> 00:04:34,600 If I'm going to get in, I'm not going to be there for long. 63 00:04:36,180 --> 00:04:41,540 So fortunately, I was able to listen to this guy's voicemail at the company for a while, pick up his voice imprint. 64 00:04:41,680 --> 00:04:44,360 I called the secretary, said, hey, yeah, let this guy through. 65 00:04:44,780 --> 00:04:46,960 And she let me in. I'm like, great, this is awesome. 66 00:04:47,120 --> 00:04:49,800 Unfortunately, she also called an escort down for me. 67 00:04:50,040 --> 00:04:51,440 I had to use the bathroom, obviously. 68 00:04:51,760 --> 00:04:55,580 And in the meantime, went around, had some fun, went through their knobs. 69 00:04:55,660 --> 00:04:57,760 But unfortunately, I only had about five minutes there. 70 00:04:58,220 --> 00:05:00,100 Even though I sat down and read this guy's email, 71 00:05:00,740 --> 00:05:03,400 modified his presentation he was working on for some client, 72 00:05:04,700 --> 00:05:08,900 it still didn't work out that well because I didn't really do that much while I was there. 73 00:05:09,000 --> 00:05:12,540 If I had something I could have dropped off, left there, had it do the work for me 74 00:05:12,540 --> 00:05:15,880 and just go home and wait for something to happen, that would have been a lot better. 75 00:05:16,240 --> 00:05:18,360 And that's the stuff we're going to be talking about today, 76 00:05:18,460 --> 00:05:23,000 a concept we've deemed 180-degree hacking, also known as phone home. 77 00:05:24,600 --> 00:05:27,600 We've done it on a few different platforms right now. 78 00:05:27,680 --> 00:05:31,560 It's not limited to these platforms, but these are the ones we've done it for so far. 79 00:05:32,220 --> 00:05:33,060 Use your imagination. 80 00:05:33,100 --> 00:05:36,780 I'm sure you guys can think of tons of different ways that you could use this. 81 00:05:37,160 --> 00:05:42,200 We're also going to demonstrate it for you, and we're going to tell you what you might be able to do to stop it. 82 00:05:43,640 --> 00:05:47,600 Throughout the presentation, we're going to throw out some names of tools that we're using and maybe some links. 83 00:05:48,120 --> 00:05:52,980 We went ahead and tried to collect all of that information for you on our website, dcphonehome.com. 84 00:05:53,000 --> 00:05:56,140 It was slash dotted, and it's running off of our DSL line. 85 00:05:56,380 --> 00:05:59,180 So if anyone would like to help post it, we would appreciate it. 86 00:05:59,220 --> 00:06:01,060 Then you can actually go and check out the content. 87 00:06:01,460 --> 00:06:06,760 But we have collected for you the links that we're using, some documentation, 88 00:06:06,860 --> 00:06:11,040 and also the x86 bootable CD for you to download. 89 00:06:14,000 --> 00:06:17,200 Some basic assumptions that we're hoping everyone here is familiar with Linux. 90 00:06:18,920 --> 00:06:22,480 Networking, VPNs, firewalls, proxies, and other hacking tools, 91 00:06:22,620 --> 00:06:22,980 like Android. 92 00:06:23,000 --> 00:06:25,440 InMap, port scanners, and other things. 93 00:06:26,220 --> 00:06:29,880 Even though this is the 101 class, it's not really a 101 topic. 94 00:06:31,060 --> 00:06:33,540 But you guys will be able to get it. 95 00:06:33,580 --> 00:06:34,280 It's not a hard concept. 96 00:06:35,560 --> 00:06:40,120 The thing we're attacking is the conventional enterprise security model where you have your firewall, 97 00:06:40,300 --> 00:06:43,120 you have your DMZ, you've got your private addressing and your NATing. 98 00:06:44,920 --> 00:06:48,600 Some companies, some organizations are starting to go towards higher levels of security. 99 00:06:48,760 --> 00:06:50,620 They're watching their networks with their IDSs. 100 00:06:50,620 --> 00:06:56,260 They're only allowing in authenticated with tokens for remote access. 101 00:06:56,620 --> 00:06:59,780 They've got proxies up so they can filter URLs, mainly porn sites. 102 00:07:00,460 --> 00:07:03,540 They're doing content checking on their email, prevent viruses. 103 00:07:03,640 --> 00:07:05,500 They're hiring people to watch these things. 104 00:07:05,660 --> 00:07:13,160 And they're also hiring consultants slash experts to help them fix their problem. 105 00:07:13,320 --> 00:07:17,940 But all of this is, in our experience, and the years that we've been doing this, 106 00:07:17,940 --> 00:07:23,300 the same thing we've been seeing over and over again is that networks really have this hard country outside 107 00:07:23,760 --> 00:07:24,980 and this really soft, chewy center. 108 00:07:25,540 --> 00:07:31,320 So all this focus seems to be on the perimeter, the intrusion detection system, the DMZ, the private NAT. 109 00:07:31,560 --> 00:07:35,600 You know the data that's valuable, that's worth protecting, is on the inside. 110 00:07:35,960 --> 00:07:42,320 And so as a side effect of putting all of our efforts in protecting the perimeter and keeping bad guys out, 111 00:07:42,720 --> 00:07:47,080 networks generally, in our experience, have been very vulnerable on the inside. 112 00:07:47,080 --> 00:07:48,340 So we want to get to the inside. 113 00:07:51,280 --> 00:07:56,060 The problem with building a soft, chewy inside and a hard, crunchy outside 114 00:07:56,060 --> 00:07:58,560 is that we're figuring that networks go both ways. 115 00:07:58,760 --> 00:07:59,580 They go in and out. 116 00:07:59,640 --> 00:08:00,660 Traffic can pass. 117 00:08:01,080 --> 00:08:05,380 When you have a company, you need your employees to be able to access the internet. 118 00:08:05,560 --> 00:08:06,380 They need to do research. 119 00:08:06,660 --> 00:08:08,120 They need to send email out. 120 00:08:08,320 --> 00:08:12,860 So they do have a data path in order to get information out and to exchange information. 121 00:08:13,760 --> 00:08:17,060 Another thing, even hackers are focusing primarily on the inside. 122 00:08:17,080 --> 00:08:19,320 They're focusing on the security with the latest vulnerabilities. 123 00:08:19,660 --> 00:08:20,820 How can we get into the perimeter? 124 00:08:21,020 --> 00:08:26,400 How can we exploit the next zero-day buff overflow and set up a BNC for IRC? 125 00:08:28,480 --> 00:08:31,260 So what are companies using to help protect the perimeter? 126 00:08:31,440 --> 00:08:35,240 What are they using firewalls for? 127 00:08:35,420 --> 00:08:37,840 Well, mostly to enforce inbound traffic rules. 128 00:08:38,080 --> 00:08:40,760 We only let these ports into our organization. 129 00:08:41,260 --> 00:08:44,580 We only let these ports into our web servers, into our DMZ. 130 00:08:44,760 --> 00:08:47,060 A lot of people are using the firewalls for DMZ. 131 00:08:47,080 --> 00:08:49,260 NAT, which does help out for security. 132 00:08:49,700 --> 00:08:52,440 People just can't contact their internal hosts directly. 133 00:08:53,040 --> 00:08:57,940 People are using the firewalls for authentication, VPN gateways, lots of different uses. 134 00:09:00,720 --> 00:09:03,220 Another thing people are using are proxies. 135 00:09:03,700 --> 00:09:08,820 A lot of times it's used for performance enhancement, web caching proxy. 136 00:09:09,020 --> 00:09:14,520 If everybody's going to Yahoo every day, you don't want to send that many requests over and over again. 137 00:09:15,300 --> 00:09:16,220 Proxies, unfortunately. 138 00:09:16,220 --> 00:09:21,600 They don't have much in the way of protection, except with URL filtering or some dirty word searching. 139 00:09:23,040 --> 00:09:27,920 Also, at the same time, these proxies, if a company makes an attempt to make a proxy, 140 00:09:28,000 --> 00:09:31,240 or if somebody out here wants to code a proxy that actually checks the content, 141 00:09:31,440 --> 00:09:36,520 we're talking XML or HTTP content, they have to check a crap load of stuff. 142 00:09:37,140 --> 00:09:42,080 The W3C has a lot of protocols that they're already enforcing or they're already recommending you use. 143 00:09:42,220 --> 00:09:43,560 They're also developing a lot more. 144 00:09:44,020 --> 00:09:47,640 Proxy manufacturers, developers, are actually trying to keep up with this pace. 145 00:09:47,820 --> 00:09:48,860 It's a hard thing to do. 146 00:09:52,400 --> 00:09:56,320 Another thing that we're attacking is the network intrusion detection piece. 147 00:09:57,440 --> 00:09:59,700 Again, in our experience, it's focused on the perimeter. 148 00:10:00,820 --> 00:10:06,740 Some companies do set it up so that they've got multi-layered, multi-points of presence on their network on every segment. 149 00:10:06,880 --> 00:10:10,620 But a lot of places don't want to spend the money to put these up all over the place. 150 00:10:10,680 --> 00:10:13,060 They want to set one right next to their firewall, listen to all the traffic, 151 00:10:13,060 --> 00:10:14,980 and be aware of all the incoming attacks. 152 00:10:15,780 --> 00:10:19,900 Another problem with NIDS, though, is that it's based on signatures. 153 00:10:20,080 --> 00:10:21,940 It's based on a predefined attack. 154 00:10:22,800 --> 00:10:24,820 It leaves out things that are unknown. 155 00:10:25,020 --> 00:10:29,440 Some companies are saying that they've developed anomaly detection technology, 156 00:10:29,760 --> 00:10:32,200 but by definition, an anomaly is undefined. 157 00:10:32,460 --> 00:10:33,620 How do you define that? 158 00:10:38,180 --> 00:10:40,680 We're attacking the soft choice center. 159 00:10:40,680 --> 00:10:46,820 Most people believe that outbound connections that are initiated from the internal organization are trusted. 160 00:10:46,980 --> 00:10:49,780 They're sent from employees who are trying to do work. 161 00:10:50,640 --> 00:10:53,820 There's a general notion that outside traffic coming in is bad, 162 00:10:53,960 --> 00:10:56,160 and anything leaving the network is good. 163 00:10:56,440 --> 00:11:00,940 We want to somehow be able to take advantage of that to get to the data inside. 164 00:11:02,320 --> 00:11:08,740 Another problem with internal security these days is most of it is directed toward network devices, 165 00:11:08,820 --> 00:11:09,360 to servers. 166 00:11:09,360 --> 00:11:13,100 To the NT farm, to the domain. 167 00:11:13,460 --> 00:11:18,320 The problem with that is there are a lot more than just computers on your network. 168 00:11:18,700 --> 00:11:24,080 There's many things that are capable of being very powerful computers that can launch attacks. 169 00:11:24,660 --> 00:11:26,280 I don't know if you caught FX's talk, 170 00:11:26,480 --> 00:11:30,660 but he showed some really cool tricks with a printer just to prove the point 171 00:11:30,660 --> 00:11:36,000 that these systems are capable of more than just what they were designed to do. 172 00:11:36,380 --> 00:11:38,460 When we're looking at internal security, 173 00:11:38,460 --> 00:11:43,420 we want to be aware that other things on our network can be used as an attack point. 174 00:11:43,900 --> 00:11:46,580 One thing that I read two or three weeks ago, 175 00:11:46,780 --> 00:11:48,180 I think it was on Security Focus, 176 00:11:48,440 --> 00:11:51,840 was a security paper about the Xbox, 177 00:11:52,240 --> 00:11:57,220 and how the Xbox can potentially cause a threat to the internet 178 00:11:57,220 --> 00:12:01,720 because millions of Xboxes will be deployed on people's broadband connections, 179 00:12:01,940 --> 00:12:07,100 and someone may figure out a way to use those as a denial of service attack tool. 180 00:12:07,100 --> 00:12:10,960 And after I got done reading that advisory, 181 00:12:11,420 --> 00:12:15,820 I thought, wow, that's got to be the most boring, unimaginative thing I've ever read. 182 00:12:15,920 --> 00:12:18,180 You've got a computer on someone's network, 183 00:12:18,440 --> 00:12:21,460 and the best thing that we can come up with is to take down eBay? 184 00:12:21,860 --> 00:12:23,960 I think there's something else missing here. 185 00:12:24,020 --> 00:12:25,340 We could probably do a lot more of that. 186 00:12:25,620 --> 00:12:29,020 One of the things that folks on Slashdot failed to understand 187 00:12:29,020 --> 00:12:31,880 when they were going on on their comments about what we're doing 188 00:12:31,880 --> 00:12:35,100 is that we're really attacking an idea of what computers are. 189 00:12:35,400 --> 00:12:36,200 Okay, I mean, 190 00:12:36,200 --> 00:12:38,500 our definition of a computer is a general purpose architecture. 191 00:12:38,960 --> 00:12:41,740 Anything that has a chip in it that's general purpose 192 00:12:41,740 --> 00:12:44,060 can run malicious code, can run attacks, 193 00:12:44,400 --> 00:12:47,680 can be made to do anything you want, pretty much, 194 00:12:47,740 --> 00:12:48,920 because, well, it's general purpose. 195 00:12:49,260 --> 00:12:53,560 So the 180-degree hacking, the crux of the biscuit, 196 00:12:54,620 --> 00:12:56,620 our main question is why even hack the network? 197 00:12:56,680 --> 00:12:58,080 Just bring it home. Make it easy on yourself. 198 00:12:58,560 --> 00:13:00,260 It's based on a couple things. 199 00:13:00,460 --> 00:13:01,520 One, firewalls are pointless. 200 00:13:01,780 --> 00:13:03,540 I'll come back to that in a minute because some of you might disagree. 201 00:13:03,900 --> 00:13:06,120 Two, it's based on a delivery mechanism. 202 00:13:06,200 --> 00:13:08,300 Whether it's physical delivery of a system, 203 00:13:08,460 --> 00:13:12,200 whether it's a zero-day exploit or some vulnerability of a system 204 00:13:12,200 --> 00:13:13,960 that you can exploit and deliver some code on, 205 00:13:14,100 --> 00:13:15,080 it's based on the Internet. 206 00:13:15,920 --> 00:13:17,980 Tunneling, VPNing has to flow over the Internet. 207 00:13:18,100 --> 00:13:18,760 It's a beautiful thing. 208 00:13:18,940 --> 00:13:20,840 And it's also based on getting people to do things 209 00:13:20,840 --> 00:13:22,640 that they don't think they're doing, comm jobs. 210 00:13:23,500 --> 00:13:25,380 Now, I did say firewalls are pointless. 211 00:13:25,880 --> 00:13:29,600 I fully believe that in this attack, firewalls are. 212 00:13:30,160 --> 00:13:34,100 What we do is the attack is based on using an authorized protocol 213 00:13:34,100 --> 00:13:35,620 that your organization or your firewall 214 00:13:36,200 --> 00:13:38,520 can configure to use to allow the pass-through. 215 00:13:38,780 --> 00:13:40,840 We're using that to get data through. 216 00:13:41,180 --> 00:13:44,820 Some people talk about covert channels in this type of context, 217 00:13:46,500 --> 00:13:48,540 but we're getting a lot of bandwidth. 218 00:13:48,780 --> 00:13:50,520 We're not just getting a couple bytes here and there. 219 00:13:51,680 --> 00:13:53,940 Firewalls, two-way, let data in and out, 220 00:13:53,980 --> 00:13:55,080 so we can take advantage of that. 221 00:13:56,820 --> 00:13:57,460 Go ahead. 222 00:13:57,640 --> 00:14:00,300 One thing Chris mentioned was physical access 223 00:14:00,300 --> 00:14:01,720 as being a delivery mechanism. 224 00:14:02,420 --> 00:14:05,240 And where we want to get across is physical access 225 00:14:05,240 --> 00:14:06,720 is pretty easy to obtain, 226 00:14:07,000 --> 00:14:09,060 especially for short amounts of time. 227 00:14:09,240 --> 00:14:12,300 If you think about where you work or where you've been in, 228 00:14:12,420 --> 00:14:16,060 it's probably not all that hard to get into an organization 229 00:14:16,060 --> 00:14:17,680 for one or two minutes. 230 00:14:18,040 --> 00:14:21,100 So if we had something, if we were able to get that access 231 00:14:21,100 --> 00:14:22,400 for a short amount of time, 232 00:14:23,020 --> 00:14:24,840 maybe if we had something to drop off, 233 00:14:25,020 --> 00:14:27,380 we would have a data path back into the network. 234 00:14:27,900 --> 00:14:31,020 And what we're really limited in getting physical access 235 00:14:31,020 --> 00:14:33,260 into an organization is your creativity. 236 00:14:33,260 --> 00:14:36,300 Those are the only limiting factors on getting inside. 237 00:14:37,320 --> 00:14:40,220 We have some slides for you to show just how simple it is. 238 00:14:40,240 --> 00:14:41,340 We'll walk you through the process. 239 00:14:41,720 --> 00:14:43,440 Just so you can get a clear picture. 240 00:14:43,620 --> 00:14:45,560 It is pretty complicated here. 241 00:14:47,320 --> 00:14:48,560 Now what we have here, 242 00:14:49,160 --> 00:14:51,360 we like to call the super stealth method. 243 00:14:53,100 --> 00:14:55,520 And here, this is where the black cat lives. 244 00:14:55,760 --> 00:14:57,040 He's got his black hat on. 245 00:14:57,480 --> 00:15:00,260 And interesting enough, the Internet goes through his window. 246 00:15:00,340 --> 00:15:01,580 We're not quite sure how he did that, 247 00:15:01,580 --> 00:15:03,140 but he did. 248 00:15:03,520 --> 00:15:05,840 And what he is intending to do 249 00:15:05,840 --> 00:15:07,220 is he's going to leave his home, 250 00:15:08,320 --> 00:15:11,720 he's walking into the front door of your company, 251 00:15:12,320 --> 00:15:15,040 and he's going to walk by your intrusion detection system, 252 00:15:15,260 --> 00:15:17,460 by your DMZ, by your firewall, 253 00:15:17,620 --> 00:15:19,080 and onto your internal network, 254 00:15:19,300 --> 00:15:20,660 and he's going to put this thing there, 255 00:15:20,740 --> 00:15:21,660 and he's going to go home. 256 00:15:22,480 --> 00:15:25,120 We actually tested this against the NIDS, 257 00:15:25,220 --> 00:15:26,400 and it never showed a single alert. 258 00:15:26,520 --> 00:15:28,180 Not a single hacket is used. 259 00:15:28,600 --> 00:15:29,400 Very stealth. 260 00:15:31,700 --> 00:15:32,140 Okay. 261 00:15:32,300 --> 00:15:35,700 In this example, our black cat's a little more timid. 262 00:15:35,720 --> 00:15:37,140 He doesn't actually want to go in. 263 00:15:37,280 --> 00:15:38,100 And maybe he looks funny. 264 00:15:38,160 --> 00:15:39,040 Maybe he'll stick out. 265 00:15:39,420 --> 00:15:41,360 So what he decides to do is 266 00:15:41,360 --> 00:15:43,800 he leaves his home and he goes to the mailbox. 267 00:15:44,220 --> 00:15:47,080 And he has things that he's going to mail. 268 00:15:47,280 --> 00:15:48,180 And see, here's the postman. 269 00:15:48,580 --> 00:15:49,280 He's coming. 270 00:15:49,660 --> 00:15:52,840 And he's delivering to Bob and Marketing and Sue and HR 271 00:15:54,020 --> 00:15:56,500 something for everyone to put in their PC. 272 00:15:57,040 --> 00:16:00,220 And of course, everyone's going to put the Elvis CD in their PC, 273 00:16:00,220 --> 00:16:01,820 because, well, it looks like Elvis. 274 00:16:01,920 --> 00:16:02,780 That's pretty cool, right? 275 00:16:02,880 --> 00:16:04,180 Everyone loves Elvis. 276 00:16:06,060 --> 00:16:09,240 So there they are putting the Elvis CD into their PC. 277 00:16:10,660 --> 00:16:13,520 So that's another way to deliver something into the network 278 00:16:13,520 --> 00:16:14,800 without using a single packet. 279 00:16:16,440 --> 00:16:20,360 Another way, and this is somewhat of a little bit better-known method, 280 00:16:21,400 --> 00:16:22,800 something we call the smoke screen. 281 00:16:23,120 --> 00:16:24,680 You know, I'm a smoker. 282 00:16:24,740 --> 00:16:26,180 I don't know how many of you are smokers. 283 00:16:26,180 --> 00:16:30,020 I bet probably a good 90% given the audience today. 284 00:16:30,020 --> 00:16:31,660 But, you know, we're trampled on. 285 00:16:31,780 --> 00:16:33,260 We're told to get out of places. 286 00:16:33,500 --> 00:16:36,080 We're told that we're killing people. 287 00:16:36,260 --> 00:16:38,460 We're told not to come close to me. 288 00:16:38,540 --> 00:16:41,260 People in L.A. will come up to us and cough in our face 289 00:16:41,260 --> 00:16:44,320 just to show, I don't know, because they're probably sick. 290 00:16:46,220 --> 00:16:49,800 And so because of this, you can form a really quick bond 291 00:16:50,180 --> 00:16:51,960 merely through the presence of a little stick of tobacco. 292 00:16:52,720 --> 00:16:55,180 You walk up to the back door where the smokers are hanging out. 293 00:16:55,220 --> 00:16:55,800 They're having a good time. 294 00:16:55,820 --> 00:16:56,620 You strike up a conversation. 295 00:16:56,860 --> 00:16:57,720 They give you a light. 296 00:16:57,860 --> 00:16:58,660 They give you a smoke. 297 00:16:58,660 --> 00:16:59,780 And they let you in the door. 298 00:17:00,100 --> 00:17:01,000 It's really effective. 299 00:17:02,520 --> 00:17:05,600 Another way to do it is to prey on people's kindness, 300 00:17:05,740 --> 00:17:06,560 prey on compassion. 301 00:17:07,160 --> 00:17:08,500 If you're carrying a big box, 302 00:17:08,620 --> 00:17:10,620 you're stressing under the weight of this thing, 303 00:17:10,660 --> 00:17:12,420 even though all you've got inside is, well, a Dreamcast. 304 00:17:13,900 --> 00:17:16,020 You know, you're just straining under the weight. 305 00:17:16,060 --> 00:17:17,320 Somebody will open the door for you. 306 00:17:17,340 --> 00:17:18,520 Somebody will hold the door for you. 307 00:17:18,540 --> 00:17:20,060 Even if there is access control on it, 308 00:17:20,100 --> 00:17:22,280 most times people will be nice enough to do that. 309 00:17:22,800 --> 00:17:26,020 Another way, some organizations do have a policy where their employees, 310 00:17:26,160 --> 00:17:27,720 they encourage their employees to confront 311 00:17:27,720 --> 00:17:30,840 and to ask people that they don't know, 312 00:17:30,920 --> 00:17:31,680 that they've never seen before, 313 00:17:31,820 --> 00:17:32,560 you know, who are you? 314 00:17:32,920 --> 00:17:33,580 What's your badge? 315 00:17:33,700 --> 00:17:34,340 What do you do here? 316 00:17:34,780 --> 00:17:37,400 Well, a really easy way to get around that is just talk on your cell phone. 317 00:17:37,500 --> 00:17:39,900 It would be extremely rude of that person to interrupt you 318 00:17:39,900 --> 00:17:42,140 and to actually ask you, you know, who you are. 319 00:17:42,320 --> 00:17:43,580 And since you're holding the phone, 320 00:17:43,740 --> 00:17:45,580 they generally open the door for you 321 00:17:45,580 --> 00:17:47,160 because, you know, that's a nice thing to do. 322 00:17:49,640 --> 00:17:49,980 Okay. 323 00:17:50,300 --> 00:17:54,580 So, assuming you don't want to do any of the physical access hacks, 324 00:17:55,300 --> 00:17:56,680 which are generally easier 325 00:17:56,680 --> 00:17:58,320 and more stealthy than you can imagine, 326 00:17:58,680 --> 00:18:00,880 you can always rely on the zero-day exploit. 327 00:18:01,260 --> 00:18:02,980 There will be another one that will come out 328 00:18:02,980 --> 00:18:06,840 that will allow you to get some type of data in a treasure horse 329 00:18:06,840 --> 00:18:11,080 or something like we've developed today with the 180-degree hacking 330 00:18:11,080 --> 00:18:15,500 that would allow that software to establish tunnels back. 331 00:18:15,880 --> 00:18:18,040 The other guys are familiar with zero-day exploits, 332 00:18:18,060 --> 00:18:19,800 so be creative. 333 00:18:21,800 --> 00:18:23,360 So after you deliver this thing, 334 00:18:23,460 --> 00:18:24,580 after you deliver this device, 335 00:18:24,860 --> 00:18:25,660 what's it going to do? 336 00:18:25,660 --> 00:18:26,680 It's going to discover your network. 337 00:18:26,880 --> 00:18:28,080 It's going to discover what's on it. 338 00:18:28,160 --> 00:18:30,420 It's going to enumerate what traffic you can get out. 339 00:18:30,600 --> 00:18:32,360 It's going to see what ports you're allowing through your firewall, 340 00:18:32,580 --> 00:18:33,860 and then it's going to create a tunnel home 341 00:18:33,860 --> 00:18:35,220 and establish the connection. 342 00:18:38,540 --> 00:18:41,380 Similar things, not as comprehensive as what we're doing, 343 00:18:41,440 --> 00:18:42,440 but they use some of the same ideas. 344 00:18:42,900 --> 00:18:43,840 Peer-to-peer file sharing. 345 00:18:44,020 --> 00:18:46,600 That is pretty much a virtual network between two endpoints 346 00:18:47,060 --> 00:18:50,340 that allows you to share files, chat, you know, stream content, 347 00:18:51,400 --> 00:18:54,040 chat applications, such as AR Wellness and Messenger. 348 00:18:55,660 --> 00:18:56,720 Can you guys hear me better now? 349 00:18:57,540 --> 00:18:58,260 Sorry about that. 350 00:18:59,220 --> 00:19:01,120 Chat applications such as AR Wellness and Messenger. 351 00:19:02,220 --> 00:19:03,400 It will try. 352 00:19:03,520 --> 00:19:05,540 First, it will try to get out 5190 if it can't. 353 00:19:05,540 --> 00:19:07,120 It tries port 80 with HTTP. 354 00:19:07,440 --> 00:19:09,080 If it can't do that, it will try your proxy. 355 00:19:10,000 --> 00:19:10,600 Same thing. 356 00:19:10,820 --> 00:19:12,340 Also, there are remote desktop apps. 357 00:19:12,480 --> 00:19:13,920 Go to mypc.com. 358 00:19:14,080 --> 00:19:16,780 It's pretty much VNC with a bow on it. 359 00:19:17,620 --> 00:19:19,460 You know, you go up to a site, you register, 360 00:19:19,660 --> 00:19:21,760 you download some software, install it on a client PC. 361 00:19:22,120 --> 00:19:22,720 You connect. 362 00:19:23,060 --> 00:19:23,880 You go home. 363 00:19:23,880 --> 00:19:25,420 You log into the site, and there's your desktop. 364 00:19:26,400 --> 00:19:27,760 And it's free for the first month. 365 00:19:29,460 --> 00:19:29,880 Okay. 366 00:19:30,000 --> 00:19:32,420 So a little bit more about what our devices do 367 00:19:32,420 --> 00:19:34,160 and the process that they go through. 368 00:19:34,580 --> 00:19:36,540 We mentioned that we did it on the iPac 369 00:19:36,540 --> 00:19:39,080 and the x86 bootable CD and the CD-ROM, 370 00:19:39,220 --> 00:19:40,580 but they all do the same thing. 371 00:19:41,180 --> 00:19:43,960 What they first start off doing is they automatically 372 00:19:44,800 --> 00:19:47,120 get a network address via DHCP. 373 00:19:47,540 --> 00:19:49,600 So that would be one way to stop this. 374 00:19:50,060 --> 00:19:52,760 Turn off DHCP or at least have some type of 375 00:19:52,760 --> 00:19:53,900 port-based access control. 376 00:19:54,040 --> 00:19:55,360 We'll take questions afterwards. 377 00:19:57,120 --> 00:19:59,080 The next thing it does is it figures out 378 00:19:59,080 --> 00:20:01,960 what outbound traffic it can get out onto the Internet. 379 00:20:02,140 --> 00:20:05,680 Now, we're assuming that not all outbound traffic is let out. 380 00:20:05,840 --> 00:20:08,640 So what we do is generally we've been on a lot of networks, 381 00:20:08,840 --> 00:20:12,420 and for the most part we check the ports that are allowed out. 382 00:20:13,260 --> 00:20:15,620 AD is usually allowed out if it's not proxied. 383 00:20:15,940 --> 00:20:19,140 SSL, UDP53 is sometimes allowed out. 384 00:20:19,440 --> 00:20:22,600 Sometimes the port 20, the FTP data port, 385 00:20:22,600 --> 00:20:23,440 is allowed out. 386 00:20:23,600 --> 00:20:27,080 Certain types of ICMP are occasionally allowed out. 387 00:20:27,340 --> 00:20:29,180 So what happens after one of these things boots 388 00:20:29,180 --> 00:20:31,560 and gets an IP address is it goes out 389 00:20:31,560 --> 00:20:32,940 and it checks Google on port 80. 390 00:20:33,080 --> 00:20:36,440 And if it can go to Google, it writes into the info file, 391 00:20:36,620 --> 00:20:37,980 yes, I can get out on port 80. 392 00:20:38,160 --> 00:20:40,380 And it basically builds a configuration file 393 00:20:40,380 --> 00:20:42,940 of all the protocols and the access points 394 00:20:42,940 --> 00:20:44,440 that it can get out of the network. 395 00:20:46,700 --> 00:20:49,100 Okay, so then another process gets kicked off, 396 00:20:49,140 --> 00:20:50,180 and that is analyzed. 397 00:20:50,180 --> 00:20:54,020 And basically, if it can find a TCP port out already 398 00:20:54,020 --> 00:20:58,100 that's available, it'll start a VTUN session back home. 399 00:20:58,200 --> 00:21:01,400 And it'll build a fully transparent VPN 400 00:21:01,400 --> 00:21:03,700 back to our home system that will allow us 401 00:21:03,700 --> 00:21:05,140 to get back on that internal network. 402 00:21:06,160 --> 00:21:08,120 So let's turn it up a notch a little bit 403 00:21:08,120 --> 00:21:09,820 and say AD is not allowed out. 404 00:21:09,920 --> 00:21:11,860 Okay, 443, it'll try that. 405 00:21:12,060 --> 00:21:14,200 And if it can get out, it'll build a tunnel there. 406 00:21:14,680 --> 00:21:17,020 If it can't get out on any of those TCP ports, 407 00:21:17,100 --> 00:21:19,340 let's see if it can get out on DNS via UDP53. 408 00:21:20,120 --> 00:21:21,820 If it can get out on that, 409 00:21:21,980 --> 00:21:24,500 it uses SIPE to build a VPN tunnel 410 00:21:24,500 --> 00:21:26,580 over UDP back to our home system. 411 00:21:26,960 --> 00:21:29,300 If it can't get out on that, it tries ICMP. 412 00:21:29,480 --> 00:21:31,260 And if ICMP is allowed out, 413 00:21:31,500 --> 00:21:34,300 then we use ICMP tunnel to build a VPN 414 00:21:34,300 --> 00:21:35,820 back to our home system. 415 00:21:36,640 --> 00:21:38,680 Now, let's assume that this network 416 00:21:38,680 --> 00:21:40,440 has done some due diligence and they've locked down 417 00:21:40,440 --> 00:21:42,460 all the data paths except through a proxy server. 418 00:21:42,760 --> 00:21:44,140 So we go to the next phase, 419 00:21:44,660 --> 00:21:46,320 which is the proxy finder. 420 00:21:46,520 --> 00:21:48,360 And what will happen at this point 421 00:21:48,360 --> 00:21:51,080 is it'll try to do a zone transfer internally 422 00:21:51,080 --> 00:21:53,580 on the internal DNS that the DHCP gave, 423 00:21:53,900 --> 00:21:55,820 and it'll write all the names to a file. 424 00:21:56,000 --> 00:21:56,960 But maybe that won't work. 425 00:21:57,020 --> 00:21:58,620 Maybe zone transfers are locked down. 426 00:21:58,880 --> 00:22:01,060 So then it'll go ahead and do a reverse lookup 427 00:22:01,060 --> 00:22:03,360 on all the IPs on the subnet 428 00:22:03,360 --> 00:22:04,780 or on the network that it's on, 429 00:22:04,900 --> 00:22:06,400 and it'll write that to a file. 430 00:22:06,720 --> 00:22:08,960 Then it basically grips for things that we like 431 00:22:08,960 --> 00:22:12,080 to name our proxy, like proxy, squid, cash flow, 432 00:22:12,720 --> 00:22:14,720 pretty much what we, gateway, 433 00:22:14,880 --> 00:22:16,280 something that we use as a proxy. 434 00:22:16,360 --> 00:22:18,100 A lot of people name their proxy servers that. 435 00:22:18,360 --> 00:22:20,460 Then it'll go ahead and port scan those proxies 436 00:22:20,460 --> 00:22:21,820 to try to find the proxy port, 437 00:22:22,000 --> 00:22:23,580 whether it's a squid port or 8080. 438 00:22:23,940 --> 00:22:26,520 And if it can do that and it can find the proxy, 439 00:22:26,960 --> 00:22:28,720 it'll then start HTTP tunnel, 440 00:22:28,940 --> 00:22:31,920 and inside of that it'll wrap SSH and PPP 441 00:22:31,920 --> 00:22:34,660 and build a full VPN back through the proxy server. 442 00:22:34,960 --> 00:22:36,660 And if it can't do that, then it's sad face 443 00:22:36,660 --> 00:22:37,360 and it didn't work. 444 00:22:39,900 --> 00:22:41,860 So what types of delivery are we talking about? 445 00:22:42,080 --> 00:22:43,840 We've talked about drop-and-go hardware. 446 00:22:44,100 --> 00:22:45,980 We mentioned that earlier at the beginning of the presentation 447 00:22:45,980 --> 00:22:48,240 to Dreamcast. We've done it on a compact iPad. 448 00:22:48,360 --> 00:22:49,980 We've got a bootable CD-ROM. 449 00:22:50,040 --> 00:22:51,340 It can slip into an unused system, 450 00:22:51,380 --> 00:22:53,660 or maybe it's after hours on a Friday afternoon. 451 00:22:53,900 --> 00:22:55,120 And there are a couple people wandering around. 452 00:22:56,540 --> 00:22:58,140 You know, they're not going to be back for the weekend. 453 00:22:58,280 --> 00:22:59,320 There's always the remote exploit. 454 00:23:00,860 --> 00:23:02,600 But a question that we've been asked 455 00:23:02,600 --> 00:23:03,940 and that we've asked ourselves 456 00:23:03,940 --> 00:23:06,060 many times is why did we pick a Dreamcast? 457 00:23:06,380 --> 00:23:08,080 We really wish we did not, 458 00:23:08,140 --> 00:23:09,200 but we did. 459 00:23:10,960 --> 00:23:12,120 It's a pain to work with, 460 00:23:12,220 --> 00:23:14,020 but one of the big reasons we picked it 461 00:23:14,020 --> 00:23:15,800 is that it's innocuous. It's a toy. 462 00:23:15,940 --> 00:23:18,220 It looks like a toy. You know, people that 463 00:23:18,360 --> 00:23:19,600 you know, if you bring it into a company 464 00:23:19,600 --> 00:23:22,000 and like some head honcho VP comes up and says 465 00:23:22,000 --> 00:23:24,140 hey, you know, look at the Dreamcast. 466 00:23:24,280 --> 00:23:25,940 My son plays with that. It's fun. 467 00:23:26,720 --> 00:23:28,040 They don't think it's going to hack. 468 00:23:28,380 --> 00:23:30,160 Another reason is that 469 00:23:30,160 --> 00:23:32,280 it's cheap. You can get 470 00:23:32,660 --> 00:23:34,200 or used to be able to get 471 00:23:34,200 --> 00:23:35,040 when we wrote the slides 472 00:23:35,960 --> 00:23:37,120 everything for under $100. 473 00:23:38,080 --> 00:23:40,300 Right now, since the Slashdot article, you're going to have a hard time 474 00:23:40,300 --> 00:23:42,140 finding the broadband adapter because everybody else is. 475 00:23:43,560 --> 00:23:44,100 It has 476 00:23:44,100 --> 00:23:46,560 10100 Ethernet. That's the broadband adapter 477 00:23:46,560 --> 00:23:48,220 I'm talking about. It's got a really powerful process 478 00:23:48,360 --> 00:23:48,780 believe it or not. 479 00:23:49,660 --> 00:23:52,200 We heard Linux was running on it 480 00:23:52,200 --> 00:23:53,660 and we wanted to try it out. 481 00:23:53,860 --> 00:23:54,580 What a good use. 482 00:23:56,240 --> 00:23:58,280 Dreamcast is based on the Hitachi 483 00:23:58,280 --> 00:23:59,260 SH architecture. 484 00:24:01,200 --> 00:24:02,240 Similar things that 485 00:24:02,240 --> 00:24:03,580 use that are the HP Jornata series. 486 00:24:03,840 --> 00:24:06,080 We could probably port a lot of this stuff to the Jornata 487 00:24:06,080 --> 00:24:06,740 fairly easily. 488 00:24:07,380 --> 00:24:10,080 It's at a pretty fast speed for this type of stuff. 489 00:24:10,160 --> 00:24:11,500 We're not dealing with a 5 MHz processor. 490 00:24:12,500 --> 00:24:14,360 It's limited to 16 MB of RAM 491 00:24:14,360 --> 00:24:15,320 which made things really difficult. 492 00:24:15,560 --> 00:24:16,640 It has no writeable storage. 493 00:24:18,360 --> 00:24:19,440 It's a real tech Ethernet adapter 494 00:24:19,440 --> 00:24:20,840 for Linux compatibility. 495 00:24:21,380 --> 00:24:24,040 The keyboard was helpful for typing stuff sometimes. 496 00:24:25,560 --> 00:24:27,260 Imagine developing this 497 00:24:27,260 --> 00:24:28,300 and moving off that one 498 00:24:28,300 --> 00:24:30,080 back tick in the shell script 499 00:24:30,080 --> 00:24:31,360 that makes it not work. 500 00:24:31,960 --> 00:24:34,060 Guess what? You get to burn another CD 501 00:24:34,060 --> 00:24:36,040 and fix that error. 502 00:24:36,580 --> 00:24:38,100 That can make a pretty painful 503 00:24:38,100 --> 00:24:39,260 development process. 504 00:24:39,780 --> 00:24:42,240 I think Chris must have gone through over 150 505 00:24:42,240 --> 00:24:43,860 CDs to get this thing going. 506 00:24:44,080 --> 00:24:45,020 Easily. Just last week. 507 00:24:47,220 --> 00:24:48,200 Building the distro 508 00:24:48,360 --> 00:24:50,420 There was a group, shlinux.org 509 00:24:50,420 --> 00:24:52,500 They had a lot of RPMs 510 00:24:52,500 --> 00:24:54,360 that we could take and throw on there 511 00:24:54,360 --> 00:24:56,520 build the whole file system from ground up. 512 00:24:56,600 --> 00:24:57,960 We had to add a lot of our own things though 513 00:24:57,960 --> 00:24:59,900 because they just weren't compiled for it yet. 514 00:25:00,280 --> 00:25:02,000 Actually getting things compiled for that 515 00:25:02,000 --> 00:25:03,440 we had to put together a cross compiler. 516 00:25:03,840 --> 00:25:06,460 We had to make sure that the versions of the compilers 517 00:25:06,460 --> 00:25:08,260 were compatible with the glibc version 518 00:25:08,260 --> 00:25:09,640 that's on the Dreamcast. 519 00:25:10,680 --> 00:25:12,320 It turned into a big headache 520 00:25:12,320 --> 00:25:13,480 but we got it working. 521 00:25:14,160 --> 00:25:14,560 Thankfully. 522 00:25:15,100 --> 00:25:18,060 We had to patch the kernel. The 2.4 series does have 523 00:25:18,360 --> 00:25:20,020 LH support but it doesn't have everything you need. 524 00:25:20,220 --> 00:25:21,360 It's not the most up to date. 525 00:25:21,520 --> 00:25:23,880 If you're going to do this I recommend using the latest. 526 00:25:24,900 --> 00:25:26,260 There hasn't been a lot of development 527 00:25:26,260 --> 00:25:28,020 either except from 528 00:25:28,020 --> 00:25:30,040 shlinux.org which they release stuff every 529 00:25:30,040 --> 00:25:31,160 6 months to a year 530 00:25:32,260 --> 00:25:34,360 because you can't really get it 531 00:25:34,360 --> 00:25:35,960 at the store anymore. 532 00:25:38,160 --> 00:25:39,880 Another thing we did this on was the 533 00:25:39,880 --> 00:25:42,140 Compact iPack as we like to call it 534 00:25:42,140 --> 00:25:42,780 the iHack. 535 00:25:45,280 --> 00:25:46,160 We used the model 536 00:25:46,780 --> 00:25:48,080 3765. You can use it 537 00:25:48,360 --> 00:25:49,700 on any model pretty much. 538 00:25:50,240 --> 00:25:52,260 It's got a strong arm core proc 539 00:25:52,260 --> 00:25:53,620 that's been supported in the 540 00:25:53,620 --> 00:25:55,020 LH ever since 2.2. 541 00:25:55,700 --> 00:25:57,220 Possibly at the patch level before that. 542 00:25:57,720 --> 00:25:59,360 It's got quite a bit of RAM 543 00:25:59,360 --> 00:26:01,820 much more than the Dreamcast did. 544 00:26:01,940 --> 00:26:03,180 It does have flash ROM so you've got 545 00:26:03,180 --> 00:26:05,500 writable storage. We could get the 546 00:26:05,500 --> 00:26:07,400 dual slot PCM expansion pack 547 00:26:08,020 --> 00:26:09,600 that also has a battery so we've got 548 00:26:09,600 --> 00:26:11,400 extended battery time as well as 549 00:26:11,400 --> 00:26:13,900 expansion capabilities and interfaces 550 00:26:13,900 --> 00:26:15,360 that make development a lot easier. 551 00:26:16,180 --> 00:26:16,740 Go ahead. 552 00:26:18,740 --> 00:26:19,880 As I mentioned 553 00:26:19,880 --> 00:26:21,380 it's been in the kernel since 2.2. 554 00:26:21,800 --> 00:26:24,260 If you go to handhelds.org there's a lot of people 555 00:26:24,260 --> 00:26:26,260 actually developing for handhelds because they're sick 556 00:26:26,260 --> 00:26:27,360 and tired of having Pocket PC 557 00:26:27,800 --> 00:26:29,400 on their handhelds. 558 00:26:30,200 --> 00:26:32,140 There are a couple distributions for the 559 00:26:32,140 --> 00:26:34,160 iPack in particular. We used 560 00:26:34,160 --> 00:26:36,100 Familiar. The release at the time was 561 00:26:36,100 --> 00:26:38,220 version 0.5.2. We were 562 00:26:38,220 --> 00:26:39,920 able to get a native compiler on the system 563 00:26:39,920 --> 00:26:42,220 to actually work with code on the 564 00:26:42,220 --> 00:26:44,100 system and test it right then. Development 565 00:26:44,100 --> 00:26:46,320 went a lot faster on this than it did on the Dreamcast. 566 00:26:47,820 --> 00:26:48,260 Well 567 00:26:48,360 --> 00:26:50,420 we realized that everyone's got a spare Dreamcast 568 00:26:50,420 --> 00:26:52,220 laying around or an 569 00:26:52,220 --> 00:26:54,000 iPack to play around with. 570 00:26:54,200 --> 00:26:56,100 So we thought we could use any 571 00:26:56,100 --> 00:26:58,300 computer really. Trinex is a 572 00:26:58,300 --> 00:27:00,500 really cool Linux bootable 573 00:27:00,500 --> 00:27:02,340 floppy distribution but they 574 00:27:02,340 --> 00:27:03,540 also do have an ISO. 575 00:27:03,800 --> 00:27:06,060 So we basically ripped apart Trinex 576 00:27:06,060 --> 00:27:07,960 put our scripts on it 577 00:27:07,960 --> 00:27:10,260 so it could run on any PC. We wanted to make sure 578 00:27:10,260 --> 00:27:12,060 that we included the PCMCIA 579 00:27:12,060 --> 00:27:14,020 core so it would run on laptops 580 00:27:14,020 --> 00:27:16,140 as well. It's about a 20 581 00:27:16,140 --> 00:27:18,340 meg ISO. It should be included 582 00:27:18,360 --> 00:27:19,620 on the DEF CON CD. 583 00:27:20,360 --> 00:27:22,320 So we encourage everyone in this 584 00:27:22,320 --> 00:27:24,000 room to burn that ISO 585 00:27:24,000 --> 00:27:26,280 and put it in their systems and try 586 00:27:26,280 --> 00:27:27,620 it out. Please use it. 587 00:27:28,000 --> 00:27:29,900 We want to see what your networks look like. 588 00:27:31,480 --> 00:27:32,360 It doesn't 589 00:27:32,360 --> 00:27:34,240 actually phone home, we promise. What it 590 00:27:34,240 --> 00:27:36,140 does do is when you, we promise, 591 00:27:36,360 --> 00:27:38,320 what it does do, I'm going 592 00:27:38,320 --> 00:27:40,260 to give you a little fair warning, is 593 00:27:40,260 --> 00:27:42,080 when you boot it, it's going to try to contact 594 00:27:42,080 --> 00:27:43,820 Google. It's going to try to contact 595 00:27:44,340 --> 00:27:45,100 Earthink's SMTP. 596 00:27:46,160 --> 00:27:47,900 Thank you Earthink. It's going to try to 597 00:27:48,360 --> 00:27:50,060 contact CSC's DNS server. 598 00:27:50,240 --> 00:27:52,140 It's going to try to ping Google. It's going to 599 00:27:52,140 --> 00:27:54,100 write all that to an info 600 00:27:54,100 --> 00:27:56,420 file for you. Then it's going to try to find 601 00:27:56,420 --> 00:27:58,220 your internal proxy server. So it will 602 00:27:58,220 --> 00:28:00,280 do a zone transfer attempt on your 603 00:28:00,280 --> 00:28:02,380 internal DNS. So if your DHCP 604 00:28:02,380 --> 00:28:03,980 is handing out an external DNS, 605 00:28:04,680 --> 00:28:05,560 be forewarned. 606 00:28:06,080 --> 00:28:08,300 Then it's going to write all that information and it's basically 607 00:28:08,300 --> 00:28:10,380 going to tell you, hey, yeah, this will work. 608 00:28:10,420 --> 00:28:11,980 We're able to get out on these protocols 609 00:28:11,980 --> 00:28:14,340 and we're also able to find your proxy 610 00:28:14,340 --> 00:28:15,820 server. Here it is. 611 00:28:15,980 --> 00:28:18,240 So that's a handy little thing. If 612 00:28:18,360 --> 00:28:20,360 it's not on a DEF CON CD, we told 613 00:28:20,360 --> 00:28:22,080 them it is. We will have that available 614 00:28:22,080 --> 00:28:24,240 for everyone to download so they can test out their 615 00:28:24,240 --> 00:28:25,980 networks. Trimix was 616 00:28:25,980 --> 00:28:27,720 nice to develop on. 617 00:28:27,960 --> 00:28:29,640 It uses a 245 kernel. 618 00:28:30,240 --> 00:28:32,380 So IP tables and all that that we needed 619 00:28:32,380 --> 00:28:34,140 to use worked fine. 620 00:28:34,400 --> 00:28:36,000 It was easily modified 621 00:28:36,000 --> 00:28:38,320 with the help of VMware. I didn't have to 622 00:28:38,320 --> 00:28:40,080 burn an ISO every time. 623 00:28:40,280 --> 00:28:42,160 VMware's got a nice feature where 624 00:28:42,160 --> 00:28:44,400 you can point it to a CD, an ISO 625 00:28:44,400 --> 00:28:46,280 to boot off of. So that's 626 00:28:46,280 --> 00:28:48,100 how I did all the development with it. 627 00:28:48,360 --> 00:28:50,240 I took the ISO apart with 628 00:28:50,240 --> 00:28:51,440 some software, 629 00:28:52,120 --> 00:28:54,340 pointed VMware to the ISO to test it 630 00:28:54,340 --> 00:28:56,160 when it didn't work, rebuilt the 631 00:28:56,160 --> 00:28:57,960 ISO. It didn't take that long, but 632 00:28:57,960 --> 00:29:00,300 VMware was a big help in building 633 00:29:00,300 --> 00:29:02,140 this. Didn't you only burn like one CD? 634 00:29:02,400 --> 00:29:03,620 I only burned it once. 635 00:29:06,500 --> 00:29:08,260 Some of the tools that 636 00:29:08,260 --> 00:29:10,340 all the platforms have on to do 637 00:29:10,340 --> 00:29:11,460 their enumeration is 638 00:29:12,140 --> 00:29:14,200 DCP, of course. There's Netcat. There's 639 00:29:14,200 --> 00:29:16,140 Nmap. We also put a lot of 640 00:29:16,140 --> 00:29:18,280 security tools on the platform 641 00:29:18,360 --> 00:29:20,500 for you. So if you want to do SSH 642 00:29:20,500 --> 00:29:22,300 back into your device, the phone home, 643 00:29:22,560 --> 00:29:24,200 all of these are fully capable 644 00:29:24,200 --> 00:29:26,260 of running DSNF and 645 00:29:26,260 --> 00:29:28,040 FOSS, and they're all capable 646 00:29:28,040 --> 00:29:30,480 of RBU directing and sniffing 647 00:29:30,480 --> 00:29:32,040 switches. So if you wanted to do that, 648 00:29:33,100 --> 00:29:34,220 the idea was 649 00:29:34,220 --> 00:29:36,500 if the proxy was authenticating, 650 00:29:36,520 --> 00:29:38,300 we would have some tools there that would 651 00:29:38,300 --> 00:29:40,400 help us figure out passwords to use 652 00:29:40,400 --> 00:29:42,140 the proxy. We also put 653 00:29:42,140 --> 00:29:44,260 tunneling apps on all of these CDs. 654 00:29:44,820 --> 00:29:46,260 VTUN, we really 655 00:29:46,260 --> 00:29:48,280 got to put our hats off to the developers 656 00:29:48,360 --> 00:29:50,220 of these software suites. 657 00:29:50,300 --> 00:29:51,480 They did an excellent job. 658 00:29:52,160 --> 00:29:53,720 SYPE, HTTP tunnel. 659 00:29:54,020 --> 00:29:55,920 We then started using proxy tunnel, 660 00:29:56,080 --> 00:29:57,920 which is another similar concept at 661 00:29:57,920 --> 00:29:59,440 proxytunnel.sourceforge. 662 00:30:00,360 --> 00:30:01,300 ICMP tunnel, 663 00:30:01,540 --> 00:30:03,960 S-tunnel, PPP, and SSH. 664 00:30:04,080 --> 00:30:06,020 Another thing that really helped us out was 665 00:30:06,020 --> 00:30:07,860 the Building Linux VPNs book. 666 00:30:08,360 --> 00:30:09,980 Much better than the how-tos. 667 00:30:11,880 --> 00:30:12,400 That's 668 00:30:12,400 --> 00:30:14,200 actually one of the reasons this whole thing 669 00:30:14,200 --> 00:30:16,360 started, because I was working on a couple 670 00:30:16,360 --> 00:30:17,460 chapters for that book while 671 00:30:18,360 --> 00:30:19,320 Aaron was doing a pen test. 672 00:30:19,640 --> 00:30:21,940 It was like, wait a second, we can tunnel out of 673 00:30:21,940 --> 00:30:22,460 their network. 674 00:30:23,280 --> 00:30:25,760 The evil thoughts started running. 675 00:30:26,240 --> 00:30:27,840 Some other basic tools are on 676 00:30:27,840 --> 00:30:28,520 the CD. 677 00:30:30,140 --> 00:30:31,160 Phoning home simplified. 678 00:30:31,620 --> 00:30:32,740 You deliver it somehow. 679 00:30:33,300 --> 00:30:35,040 Exploit, you walk in, you do something. 680 00:30:35,280 --> 00:30:37,280 It boots, it figures out the network, 681 00:30:37,500 --> 00:30:39,600 figures out which traffic it can get out on, 682 00:30:40,200 --> 00:30:41,780 starts a tunnel home, and then allows 683 00:30:41,780 --> 00:30:43,620 your home system to get back to the internal 684 00:30:43,620 --> 00:30:44,580 network that it lives on. 685 00:30:46,100 --> 00:30:47,860 Now we have some demos for you. 686 00:30:48,360 --> 00:30:49,700 One of the things you guys want to see. 687 00:30:49,880 --> 00:30:50,320 Okay. 688 00:30:52,560 --> 00:30:54,280 I'm going to just run down the 689 00:30:54,280 --> 00:30:55,880 lab for everyone. It's pretty 690 00:30:55,880 --> 00:30:58,340 complicated. This system in the middle 691 00:30:58,340 --> 00:31:00,060 here is our firewall. 692 00:31:00,320 --> 00:31:02,220 There's different network scripts 693 00:31:02,220 --> 00:31:04,060 that we have on it to simulate 694 00:31:05,180 --> 00:31:06,260 networks that are more 695 00:31:06,260 --> 00:31:08,360 open than less open, and the ones that are restricted 696 00:31:08,360 --> 00:31:09,360 only via proxy. 697 00:31:10,020 --> 00:31:12,340 All of these things do basically the same 698 00:31:12,340 --> 00:31:14,320 thing. The Dreamcast and all the other distributions. 699 00:31:15,220 --> 00:31:16,200 What we're going to 700 00:31:16,200 --> 00:31:17,920 start off with is 701 00:31:18,360 --> 00:31:19,860 booting the Dreamcast and 702 00:31:20,340 --> 00:31:22,020 tunneling home. Now the idea is 703 00:31:22,020 --> 00:31:23,780 it can find a TCP port 704 00:31:24,540 --> 00:31:26,380 and the Dreamcast will be able 705 00:31:26,380 --> 00:31:26,680 to 706 00:31:29,300 --> 00:31:30,180 tunnel through 707 00:31:30,180 --> 00:31:32,300 the firewall back to the attacker system. 708 00:31:32,920 --> 00:31:34,080 Chris is the attacker system. 709 00:31:34,300 --> 00:31:36,140 Now we're kind of limited on projectors here 710 00:31:36,140 --> 00:31:37,840 so we wanted to put the 711 00:31:38,360 --> 00:31:40,160 Dreamcast screen up here and then 712 00:31:40,160 --> 00:31:42,140 he'll switch over so you can see 713 00:31:42,140 --> 00:31:44,080 that the tunnel was created. Right. We're going to show you 714 00:31:44,080 --> 00:31:46,440 one side of the attack, namely the inside on the Dreamcast 715 00:31:46,440 --> 00:31:48,200 and then for the other two we're going to actually switch to 716 00:31:48,360 --> 00:31:50,280 my system where we can see the tunnel 717 00:31:50,280 --> 00:31:50,860 being received. 718 00:31:52,100 --> 00:31:54,100 I'm going to go ahead and, just as a 719 00:31:54,100 --> 00:31:54,920 preface really quick, 720 00:31:55,940 --> 00:31:57,800 like we were talking about earlier with delivery, 721 00:31:58,260 --> 00:32:00,440 you pick it up, you put it down, 722 00:32:00,980 --> 00:32:01,980 you plug it in, 723 00:32:04,200 --> 00:32:05,400 and you turn it on. 724 00:32:06,080 --> 00:32:08,020 Which is pretty cool. A VPN 725 00:32:08,020 --> 00:32:10,140 that works automatically and only has one button. 726 00:32:11,260 --> 00:32:12,080 We're hired sometimes 727 00:32:12,080 --> 00:32:14,000 for like two months to get VPNs up and running. 728 00:32:14,840 --> 00:32:16,200 We're not going to tell them about this. 729 00:32:17,200 --> 00:32:18,080 Spell it better that way. 730 00:32:18,980 --> 00:32:20,260 So this should be familiar 731 00:32:20,260 --> 00:32:22,340 to you all? This is the 732 00:32:22,340 --> 00:32:23,860 ECOS bootloader Red Hat puts out. 733 00:32:24,380 --> 00:32:26,300 I think they've stopped development 734 00:32:26,300 --> 00:32:27,340 on some of their good new pro tools. 735 00:32:28,560 --> 00:32:30,140 But as you can see it's using 736 00:32:30,140 --> 00:32:31,900 bootp right now to grab an address. 737 00:32:33,100 --> 00:32:34,280 It's going to be loading the 738 00:32:34,280 --> 00:32:35,960 different, it's going to be loading the kernel 739 00:32:35,960 --> 00:32:38,060 and the image from different 740 00:32:38,060 --> 00:32:38,900 segments on the disk. 741 00:32:39,880 --> 00:32:41,920 It's all scripted right now so it boots automatically. 742 00:32:44,780 --> 00:32:46,120 There'll be stuff flying by there 743 00:32:46,120 --> 00:32:46,760 sometime 744 00:32:48,880 --> 00:32:49,620 fairly soon. 745 00:32:50,120 --> 00:32:51,740 It's not fast, I'll tell you that much. 746 00:32:51,920 --> 00:32:53,160 It's like a two-time CD-ROM. 747 00:32:55,680 --> 00:32:56,240 There's our 748 00:32:56,240 --> 00:32:56,780 little penguin. 749 00:33:02,700 --> 00:33:03,960 Okay, so the Dreamcast 750 00:33:03,960 --> 00:33:06,160 is, right now it's a basic network configuration 751 00:33:06,160 --> 00:33:07,920 that's NATed. Some 752 00:33:07,920 --> 00:33:09,460 outbound traffic is blocked. 753 00:33:09,720 --> 00:33:11,920 But it's going to find a TCP port 754 00:33:11,920 --> 00:33:13,140 that it can speak out on. 755 00:33:20,740 --> 00:33:22,280 You can probably get in and out 756 00:33:22,280 --> 00:33:23,400 before it's done booting. 757 00:33:30,000 --> 00:33:31,720 Yeah, there's a typical boot up sequence. 758 00:33:32,540 --> 00:33:34,080 I think it's enumerating the network. 759 00:33:34,180 --> 00:33:34,580 No, not yet. 760 00:33:45,600 --> 00:33:47,820 It's looking for networks now. That's what it's 761 00:33:48,360 --> 00:33:48,480 hoping. 762 00:33:49,920 --> 00:33:52,340 It's starting the tunnel sometime soon. 763 00:33:56,240 --> 00:33:57,880 As you notice, it's saying 764 00:33:57,880 --> 00:33:59,960 you can't find device ton zero. 765 00:34:01,100 --> 00:34:02,140 Vton uses the 766 00:34:02,140 --> 00:34:04,300 ton tab driver built into the kernel and what I did 767 00:34:04,300 --> 00:34:06,080 is because the Dreamcast isn't necessarily 768 00:34:06,080 --> 00:34:08,000 the most reliable mechanism, I set it in a loop 769 00:34:08,000 --> 00:34:10,240 trying to establish the connection over and over 770 00:34:10,240 --> 00:34:12,300 again until it finally is established. Now as you see, 771 00:34:12,360 --> 00:34:13,880 it's established right then. 772 00:34:14,200 --> 00:34:16,260 We have IP addresses 773 00:34:16,260 --> 00:34:18,340 of the 10.0.1 774 00:34:19,360 --> 00:34:19,840 .network 775 00:34:20,260 --> 00:34:21,100 on this side. 776 00:34:21,600 --> 00:34:23,880 Now that you guys can see that's established, I'm going to 777 00:34:23,880 --> 00:34:25,260 unplug and put it in my laptop. 778 00:34:26,080 --> 00:34:28,120 I'm the victim host on the 779 00:34:28,120 --> 00:34:29,460 corporate network. I have an internal 780 00:34:30,120 --> 00:34:32,180 172 address. But now that 781 00:34:32,180 --> 00:34:34,100 this tunnel is up, Chris can route 782 00:34:34,100 --> 00:34:36,160 through it back and get any of the 783 00:34:36,160 --> 00:34:38,040 hosts that are on the internal network. 784 00:34:39,340 --> 00:34:40,460 In the smack dab 785 00:34:40,460 --> 00:34:41,620 of the Chewy Center. 786 00:34:47,560 --> 00:34:48,320 We want to 787 00:34:48,360 --> 00:34:48,540 ping. 788 00:34:48,760 --> 00:34:49,380 We're up yet? 789 00:34:52,300 --> 00:34:54,460 Okay, sorry, it's a little bit hard to read. 790 00:34:55,320 --> 00:34:55,720 But 791 00:34:56,240 --> 00:34:57,360 right now I'm going to be pinging. 792 00:34:57,640 --> 00:34:59,020 First I'm going to ping over the tunnel. 793 00:34:59,060 --> 00:35:00,220 Did you see the text go like this? 794 00:35:00,280 --> 00:35:03,540 I'm going to ping over the tunnel. 795 00:35:03,680 --> 00:35:06,020 As you can see, we're scrolling up. Those are your ICMP 796 00:35:06,020 --> 00:35:06,480 packets. 797 00:35:06,940 --> 00:35:09,540 So the internal network is now joined with ours. 798 00:35:09,840 --> 00:35:12,160 Now I'm going to set up a route over that to the other 799 00:35:12,160 --> 00:35:12,900 side to ping 800 00:35:12,900 --> 00:35:17,140 a host on the 172.16.101.0 801 00:35:17,140 --> 00:35:17,420 network. 802 00:35:18,360 --> 00:35:20,220 What happens once it is able to 803 00:35:20,220 --> 00:35:22,320 establish the tunnel, it takes all the network 804 00:35:22,320 --> 00:35:24,220 information that it got during 805 00:35:24,220 --> 00:35:25,380 the initial enumeration 806 00:35:26,280 --> 00:35:28,100 phase, and it spits it back 807 00:35:28,100 --> 00:35:29,960 through the tunnel. So that way you know 808 00:35:29,960 --> 00:35:32,120 the IP address scheme of the internal network 809 00:35:32,120 --> 00:35:34,100 that it's sitting on. So you can set up the routes 810 00:35:34,100 --> 00:35:34,400 easily. 811 00:35:37,120 --> 00:35:38,020 There's my route. 812 00:35:38,180 --> 00:35:39,900 I'm being accepted. Now I'm going to ping 813 00:35:39,900 --> 00:35:46,740 172.16.101.51. 814 00:35:48,960 --> 00:35:50,780 As you can see, we have packets 815 00:35:50,780 --> 00:35:52,460 scrolling on the bottom. So we have 816 00:35:52,460 --> 00:35:54,680 connectivity now. Firewall, our 817 00:35:54,680 --> 00:35:56,740 rule sets are based on what we wanted to find 818 00:35:56,740 --> 00:35:58,600 with circumvented their network 819 00:35:58,600 --> 00:36:00,700 devices. Okay, so that was a 820 00:36:00,700 --> 00:36:02,580 pretty basic network. Hopefully now 821 00:36:02,580 --> 00:36:04,180 our networks are just letting out random 822 00:36:04,680 --> 00:36:06,680 TCP ports. Christian's 823 00:36:06,680 --> 00:36:08,600 going to move over to the firewall 824 00:36:08,600 --> 00:36:10,500 now. He's going to turn up a notch. 825 00:36:10,700 --> 00:36:12,660 He's going to block all TCP traffic. 826 00:36:13,000 --> 00:36:14,660 He's going to make it so 827 00:36:14,660 --> 00:36:16,660 the devices can't get out 828 00:36:16,740 --> 00:36:18,120 of a single TCP port. 829 00:36:20,860 --> 00:36:24,720 And the idea is we're going to 830 00:36:24,720 --> 00:36:26,420 use the IPAC on this demo. 831 00:36:27,720 --> 00:36:28,640 And what it's going 832 00:36:28,640 --> 00:36:30,680 to do, because it won't be able to 833 00:36:30,680 --> 00:36:32,600 get out on any TCP ports like 834 00:36:32,600 --> 00:36:34,480 the Dreamcast was, is it's going to 835 00:36:34,480 --> 00:36:36,600 figure out that it can get out on a UDP port 836 00:36:36,600 --> 00:36:38,220 and it's going to build a site VPN 837 00:36:38,740 --> 00:36:39,340 back home. 838 00:36:43,520 --> 00:36:44,660 Now as you can see up on the 839 00:36:44,660 --> 00:36:46,500 screen, I've got a script that 840 00:36:46,740 --> 00:36:48,920 will run my, let's say 841 00:36:48,920 --> 00:36:50,540 run a site demon on 842 00:36:50,540 --> 00:36:52,660 the mothership here to listen for 843 00:36:52,660 --> 00:36:54,660 the IPAC site tunnel over UDP 844 00:36:54,660 --> 00:36:55,100 53. 845 00:36:58,900 --> 00:37:00,460 Okay, the IPAC 846 00:37:00,460 --> 00:37:02,080 boots a lot faster than the Dreamcast. 847 00:37:07,400 --> 00:37:08,460 I'll hold this up for you guys. 848 00:37:08,680 --> 00:37:10,560 You're not going to be able to see a damn thing on here 849 00:37:10,560 --> 00:37:12,660 except when the screen lights up after it's 850 00:37:12,660 --> 00:37:13,020 booted. 851 00:37:14,780 --> 00:37:16,640 A little blanket light. It's reading from memory. 852 00:37:16,740 --> 00:37:18,400 So that takes a few seconds. 853 00:37:23,200 --> 00:37:24,320 And we're on to boot. 854 00:37:27,720 --> 00:37:28,120 Unfortunately 855 00:37:28,120 --> 00:37:30,520 a couple days before the conference I plugged 856 00:37:30,520 --> 00:37:32,540 this NIC card into a voice over IP port 857 00:37:32,540 --> 00:37:33,500 and fried it I think. 858 00:37:34,320 --> 00:37:36,580 It's been a little bit flaky here and there, but I'm pretty sure 859 00:37:36,580 --> 00:37:37,520 I got it working for you guys. 860 00:37:38,000 --> 00:37:39,960 We had to bash it earlier. Yeah. 861 00:37:40,520 --> 00:37:41,520 We had to smash it. 862 00:37:42,760 --> 00:37:44,580 The light's on. There's my little penguin. 863 00:37:46,840 --> 00:37:48,680 If you guys can see that. I'm going to put this 864 00:37:48,680 --> 00:37:50,720 down now. We'll have all this stuff up here 865 00:37:50,720 --> 00:37:51,880 if you want to come check it out afterwards. 866 00:37:53,940 --> 00:37:54,700 Now if you watch 867 00:37:54,700 --> 00:37:55,420 the site window 868 00:37:56,900 --> 00:37:58,820 up top. Right up here. 869 00:37:58,840 --> 00:37:59,980 I'll blow it up a little bit. 870 00:38:00,180 --> 00:38:01,540 The type's not going to be any bigger. 871 00:38:02,220 --> 00:38:03,840 It's waiting for the tunnel right now. 872 00:38:10,300 --> 00:38:12,120 As you can see it's pinging the internal 873 00:38:12,840 --> 00:38:14,460 side of the network. It's pinging the 874 00:38:14,460 --> 00:38:16,400 172 right now. The tunnel's up. 875 00:38:16,740 --> 00:38:18,680 It's ready to go. All happens automatically. 876 00:38:18,900 --> 00:38:20,220 Within, how long was that, two minutes? 877 00:38:20,500 --> 00:38:21,900 Yeah, so just like the Dreamcast, 878 00:38:22,220 --> 00:38:24,540 full access from the attacker system onto 879 00:38:24,540 --> 00:38:26,660 the internal network over a UDP based 880 00:38:26,660 --> 00:38:28,120 VPN that this initiated. 881 00:38:30,280 --> 00:38:32,700 One other thing really quick. The nice part about this, 882 00:38:32,840 --> 00:38:34,200 if I turn this off, 883 00:38:35,500 --> 00:38:36,920 like it's not even on right now, 884 00:38:37,820 --> 00:38:38,700 and I turn it back 885 00:38:38,700 --> 00:38:40,840 on, the nice thing about Sipe is that it's a stateless 886 00:38:40,840 --> 00:38:42,660 tunnel since it's running over 887 00:38:42,660 --> 00:38:44,460 UDP. I can turn it back on 888 00:38:45,540 --> 00:38:46,520 and I can ping 889 00:38:47,280 --> 00:38:48,060 172 16 890 00:38:49,420 --> 00:38:49,820 101 891 00:38:50,700 --> 00:38:51,100 . 892 00:38:52,980 --> 00:38:53,380 61. 893 00:38:54,240 --> 00:38:56,760 And there's my ping. So I can even turn the thing off 894 00:38:56,760 --> 00:38:58,260 and turn it back on and it's still up. 895 00:38:58,540 --> 00:39:00,520 That's one of the really nice parts about it. 896 00:39:01,580 --> 00:39:02,680 Okay, so we want to bring 897 00:39:02,680 --> 00:39:04,300 this up a notch. We've tunneled over TCP. 898 00:39:05,060 --> 00:39:06,240 We've tunneled over UDP. 899 00:39:06,640 --> 00:39:08,460 So Chris is going to change the firewall 900 00:39:08,460 --> 00:39:10,680 we set here to say there's no 901 00:39:10,680 --> 00:39:12,600 way you're getting out of this network unless you get 902 00:39:12,600 --> 00:39:13,840 out on our proxy server. 903 00:39:14,360 --> 00:39:16,480 And that's where we're going to demo the x86 904 00:39:16,740 --> 00:39:17,960 Tranex bootable disk. 905 00:39:18,520 --> 00:39:20,160 And I'm going to get ready to do that here. 906 00:39:20,340 --> 00:39:22,180 I'm going to do it on my system in VMware 907 00:39:22,180 --> 00:39:24,000 because we didn't want to cut out another laptop. 908 00:39:25,340 --> 00:39:26,880 I actually turned off 909 00:39:26,880 --> 00:39:28,520 routing all together on this box. 910 00:39:28,740 --> 00:39:30,520 All this thing is right now is a proxy server. 911 00:39:30,740 --> 00:39:32,540 It takes in one side and puts out the other. 912 00:39:34,800 --> 00:39:35,500 You all set? 913 00:39:37,020 --> 00:39:37,620 One second. 914 00:39:38,680 --> 00:39:39,560 Yeah, I'm ready to go. 915 00:39:41,000 --> 00:39:42,740 Okay. I'm going to power this on 916 00:39:42,740 --> 00:39:44,240 and I'm going to put it in full screen mode. 917 00:39:44,320 --> 00:39:46,020 Hopefully the projector will not object. 918 00:39:46,740 --> 00:39:47,500 It's going to be on this screen. 919 00:39:57,020 --> 00:39:58,420 So the idea is here 920 00:39:58,420 --> 00:39:59,960 maybe there's a kiosk or 921 00:39:59,960 --> 00:40:02,160 a scanner station that's neglected. 922 00:40:02,480 --> 00:40:04,360 Or maybe you can drop this CD off 923 00:40:04,360 --> 00:40:04,960 at night. 924 00:40:06,060 --> 00:40:08,520 This would make any box capable 925 00:40:08,520 --> 00:40:09,300 of phoning home. 926 00:40:11,780 --> 00:40:12,640 So it'll boot 927 00:40:12,640 --> 00:40:13,780 just like Tranex does. 928 00:40:14,500 --> 00:40:16,580 It will unload some standard 929 00:40:16,740 --> 00:40:18,380 packages, some NMAP, 930 00:40:18,560 --> 00:40:20,300 Netcat, some other tools that we're using, 931 00:40:20,520 --> 00:40:21,080 SSH. 932 00:40:22,480 --> 00:40:24,260 It'll unpackage the package that we built 933 00:40:24,260 --> 00:40:26,260 that has all the network 934 00:40:26,260 --> 00:40:27,160 enumeration scripts. 935 00:40:29,120 --> 00:40:30,260 Once it'll do that, 936 00:40:30,340 --> 00:40:32,020 it'll try to get out on TCP ports. 937 00:40:32,280 --> 00:40:34,900 And it just failed. It wasn't able to get out on any TCP ports. 938 00:40:35,120 --> 00:40:36,440 So now it's going to try UDP ports. 939 00:40:37,160 --> 00:40:38,120 It failed there. 940 00:40:38,400 --> 00:40:40,400 It wasn't able to get out on any UDP ports. 941 00:40:41,540 --> 00:40:42,540 Now it's going to try 942 00:40:43,100 --> 00:40:43,500 ICMP. 943 00:40:44,980 --> 00:40:46,120 No, not ICMP. 944 00:40:46,740 --> 00:40:47,800 It's in the proxy finder script. 945 00:40:47,920 --> 00:40:50,520 It does work kind of fast over this local network here. 946 00:40:54,300 --> 00:40:56,140 Now the way we had to set this up since 947 00:40:56,140 --> 00:40:57,080 there was a 948 00:40:59,380 --> 00:41:00,640 When you're running PPP 949 00:41:00,640 --> 00:41:02,240 you have to run it in a pseudo terminal. 950 00:41:03,060 --> 00:41:03,780 Are we up yet? 951 00:41:04,260 --> 00:41:05,800 We have to run it in a pseudo terminal. 952 00:41:05,960 --> 00:41:08,220 So we actually had to set it up to run 953 00:41:08,220 --> 00:41:09,800 We couldn't set it up to run through a script 954 00:41:09,800 --> 00:41:11,040 because it's not attached to a terminal. 955 00:41:11,140 --> 00:41:13,340 So we had to set it as attached directly 956 00:41:13,340 --> 00:41:14,680 to one of the TTYs. 957 00:41:16,940 --> 00:41:18,480 So we had to set it as attached directly to one of the TTYs. 958 00:41:18,480 --> 00:41:18,620 So we had to set it as attached directly to one of the TTYs. 959 00:41:18,620 --> 00:41:20,740 All right, the tunnel is up. 960 00:41:20,960 --> 00:41:24,320 Now this tunnel is going over the proxy server. 961 00:41:24,460 --> 00:41:25,560 So it's going through the proxy. 962 00:41:25,760 --> 00:41:28,080 It's running SSH over the proxy server 963 00:41:28,080 --> 00:41:30,700 and inside of the SSH it's running PPP 964 00:41:30,700 --> 00:41:32,660 to build a full tunnel back home. 965 00:41:32,960 --> 00:41:35,200 Does anybody want to see a ping float over this connection? 966 00:41:36,160 --> 00:41:36,640 Does anybody want to see a ping float over this connection? 967 00:41:36,940 --> 00:41:38,160 It gets a little hairy, 968 00:41:38,280 --> 00:41:40,320 but it works. 969 00:41:41,840 --> 00:41:43,180 This will work against 970 00:41:43,180 --> 00:41:44,360 any proxy server 971 00:41:44,360 --> 00:41:45,940 that uses connect. 972 00:41:46,740 --> 00:41:48,840 So most any proxy that you're sitting behind 973 00:41:48,840 --> 00:41:50,460 that lets you go to an SSL website 974 00:41:50,920 --> 00:41:52,000 uses that feature. 975 00:41:52,240 --> 00:41:54,480 I want to show you guys, I've been ping floating it for the past 976 00:41:54,480 --> 00:41:55,300 five, six seconds. 977 00:41:56,500 --> 00:41:59,400 We've lost about 20 packets out of 16,000. 978 00:41:59,540 --> 00:41:59,920 We've lost about 20 packets out of 16,000. 979 00:41:59,920 --> 00:42:01,020 It's a very stable connection. 980 00:42:02,480 --> 00:42:04,660 Okay, another nice thing about running it on a 981 00:42:04,660 --> 00:42:06,380 pseudo-terminal is if it dies, 982 00:42:06,560 --> 00:42:07,760 you know, HTTP sessions 983 00:42:08,360 --> 00:42:10,680 do time out, we want to make sure we can 984 00:42:10,680 --> 00:42:12,560 get back on our tunnel in the event that either 985 00:42:12,560 --> 00:42:15,020 SSH times out or Firewall times out 986 00:42:15,020 --> 00:42:16,680 or HTTP times out. 987 00:42:16,860 --> 00:42:18,360 So because it's on a terminal, 988 00:42:18,600 --> 00:42:20,640 it will restart itself every time 989 00:42:20,640 --> 00:42:21,300 it times out. 990 00:42:26,380 --> 00:42:28,300 So those are our demos. Hope you enjoyed them. 991 00:42:39,740 --> 00:42:40,880 We've got to wrap this up 992 00:42:40,880 --> 00:42:42,280 sometime soon, so we're going to 993 00:42:42,280 --> 00:42:43,240 go on to 994 00:42:45,020 --> 00:42:46,620 remedies, possible remedies, and then 995 00:42:47,260 --> 00:42:48,060 some questions. 996 00:42:48,500 --> 00:42:50,360 As a general conclusion, I mean, 997 00:42:50,380 --> 00:42:52,760 the best way to defend against this type of attack 998 00:42:52,760 --> 00:42:54,580 is constrict the data pass in your network. 999 00:42:54,680 --> 00:42:56,700 Don't try to prevent it. Don't try to turn everything off. 1000 00:42:56,920 --> 00:42:58,540 It's not a business function. You can't 1001 00:42:58,540 --> 00:43:00,460 turn things off. But you can just 1002 00:43:00,920 --> 00:43:02,160 constrict your data pass to single 1003 00:43:02,920 --> 00:43:05,000 paths. Your web, obviously 1004 00:43:05,000 --> 00:43:06,840 going through a proxy, sure will attack that. 1005 00:43:06,880 --> 00:43:08,620 You can add other measures, such as strong authentication 1006 00:43:09,060 --> 00:43:11,120 to that to prevent against that. 1007 00:43:11,220 --> 00:43:12,320 DNS, move it in-house. 1008 00:43:12,780 --> 00:43:14,940 Let the DNS server in-house forward out. 1009 00:43:15,020 --> 00:43:17,060 Your email, same thing. Have it in-house. 1010 00:43:17,560 --> 00:43:18,820 Don't outsource that 1011 00:43:18,820 --> 00:43:19,580 type of 1012 00:43:21,060 --> 00:43:22,840 service. You could try, 1013 00:43:22,980 --> 00:43:24,920 and some of these recommendations that were given, 1014 00:43:25,100 --> 00:43:26,940 nothing really exists for 1015 00:43:26,940 --> 00:43:29,040 them yet, but we'd love to see 1016 00:43:29,040 --> 00:43:30,640 them exist someday. So we kind of 1017 00:43:30,640 --> 00:43:31,400 recommend them. 1018 00:43:32,520 --> 00:43:34,440 Full mesh internet VPN technology. 1019 00:43:35,320 --> 00:43:36,720 PGPNet was trying to do it. 1020 00:43:36,980 --> 00:43:39,040 You could possibly do bulk encryption. 1021 00:43:39,700 --> 00:43:40,960 That would only 1022 00:43:40,960 --> 00:43:42,780 prevent against drop and go hardware, though. 1023 00:43:42,800 --> 00:43:44,720 It would not prevent against somebody exploiting a 1024 00:43:45,020 --> 00:43:46,780 vulnerability in your system, shoving some code on there 1025 00:43:46,780 --> 00:43:47,360 and tunneling home. 1026 00:43:50,180 --> 00:43:51,040 Switch port security. 1027 00:43:51,360 --> 00:43:52,920 Again, only against drop 1028 00:43:52,920 --> 00:43:55,140 and go hardware. A lot of places aren't doing this. 1029 00:43:55,200 --> 00:43:56,940 A lot of places are just letting anybody plug in. 1030 00:43:57,280 --> 00:43:58,700 We'd love to see an IDS that knows 1031 00:43:58,700 --> 00:44:00,580 our network better than we do. 1032 00:44:01,820 --> 00:44:02,860 We'd love to know 1033 00:44:02,860 --> 00:44:04,580 that the IDS is able to 1034 00:44:04,580 --> 00:44:06,740 know what data is allowed to be there, what data 1035 00:44:06,740 --> 00:44:08,900 isn't allowed to be there, down to the 1036 00:44:08,900 --> 00:44:10,960 byte level. We don't want 1037 00:44:10,960 --> 00:44:12,820 an IDS just searching for signatures. We want 1038 00:44:12,820 --> 00:44:14,760 our IDS to search for 1039 00:44:15,020 --> 00:44:16,660 to know when there's a problem 1040 00:44:16,660 --> 00:44:18,600 in our network. We also need 1041 00:44:19,120 --> 00:44:20,720 proxies that can really analyze the protocols. 1042 00:44:20,900 --> 00:44:22,880 Again, earlier we discussed 30 plus protocols 1043 00:44:22,880 --> 00:44:24,260 that W3C has in development. 1044 00:44:25,080 --> 00:44:26,840 How are you going to write a proxy that can 1045 00:44:26,840 --> 00:44:28,840 filter all those? Well, time's got to be 1046 00:44:28,840 --> 00:44:31,040 spent. We have to invest the money 1047 00:44:31,040 --> 00:44:32,980 to actually get those things working. 1048 00:44:33,460 --> 00:44:34,940 One of the things we didn't really talk 1049 00:44:34,940 --> 00:44:36,400 about is that the IPAC, 1050 00:44:36,540 --> 00:44:38,680 we have a fallback mechanism if it can't 1051 00:44:38,680 --> 00:44:41,020 find a route out or a proxy 1052 00:44:41,020 --> 00:44:42,820 out or anything like that. What if you've got an air gap 1053 00:44:42,820 --> 00:44:44,600 in your network? We can throw 1054 00:44:45,020 --> 00:44:46,940 a wireless card in here, have it act as 1055 00:44:46,940 --> 00:44:49,020 an access point, fall back to that 1056 00:44:49,020 --> 00:44:50,840 capability. What's interesting about 1057 00:44:50,840 --> 00:44:52,680 that, and a lot of the Slashdoll crowd is saying, 1058 00:44:52,780 --> 00:44:54,260 if you're going to go into a building, 1059 00:44:54,580 --> 00:44:56,280 why not just put an access point there? 1060 00:44:57,640 --> 00:44:58,820 I would think, since 1061 00:44:58,820 --> 00:45:01,040 a lot of the topics this year have been about finding 1062 00:45:01,040 --> 00:45:03,060 access points, we thought 1063 00:45:03,060 --> 00:45:04,580 that's kind of an okay idea. 1064 00:45:05,040 --> 00:45:06,220 Just tinkering around, 1065 00:45:06,600 --> 00:45:08,880 we figured out a way to make this 1066 00:45:08,880 --> 00:45:10,940 into an access point. We put the 1067 00:45:10,940 --> 00:45:12,940 actual card services on a timer 1068 00:45:12,940 --> 00:45:14,940 so Chrome doesn't actually start 1069 00:45:15,020 --> 00:45:16,900 the radio until about 2 AM 1070 00:45:16,900 --> 00:45:18,940 or on the weekends when the company 1071 00:45:18,940 --> 00:45:20,520 is not looking for rogue access points. 1072 00:45:22,520 --> 00:45:24,940 It is possible. We also have a great idea of 1073 00:45:24,940 --> 00:45:26,460 throwing a GSM cellular 1074 00:45:26,970 --> 00:45:28,920 modem card into one of these things. That way you could 1075 00:45:28,920 --> 00:45:30,920 actually phone home or phone into this 1076 00:45:30,920 --> 00:45:32,820 system without having to sit in the 1077 00:45:32,820 --> 00:45:33,360 parking lot. 1078 00:45:34,860 --> 00:45:36,820 What's going to stop that? Wireless jamming 1079 00:45:36,820 --> 00:45:38,780 maybe? Or how about firing people 1080 00:45:38,780 --> 00:45:40,440 that put up rogue access points? 1081 00:45:40,940 --> 00:45:42,920 I'll go for that. If you don't want to have 1082 00:45:42,920 --> 00:45:44,540 an access point in your network, just jam the thing. 1083 00:45:46,840 --> 00:45:48,880 The bottom line right now is 1084 00:45:48,880 --> 00:45:51,060 covert channels, there's always 1085 00:45:51,060 --> 00:45:52,900 a possibility that they can exist. 1086 00:45:53,180 --> 00:45:54,800 If data has to leave the network, 1087 00:45:55,040 --> 00:45:57,280 if people inside of your organization 1088 00:45:57,280 --> 00:45:58,880 have to get out to get 1089 00:45:58,880 --> 00:46:00,580 data, there is a possibility 1090 00:46:00,580 --> 00:46:02,700 that someone may potentially build 1091 00:46:02,700 --> 00:46:04,320 a covert channel over that. 1092 00:46:04,780 --> 00:46:06,880 The way we have to tackle that is 1093 00:46:06,880 --> 00:46:08,920 to restrict our data pass and be able 1094 00:46:08,920 --> 00:46:11,140 to granularly look inside and notice 1095 00:46:11,140 --> 00:46:13,000 hey, this guy's got a 1096 00:46:13,000 --> 00:46:14,940 proxy connection for three days 1097 00:46:15,020 --> 00:46:16,380 and is constantly sending traffic. 1098 00:46:16,740 --> 00:46:18,220 There's probably a problem there. 1099 00:46:19,440 --> 00:46:20,980 Another problem with this 1100 00:46:20,980 --> 00:46:22,520 type of attack here is most 1101 00:46:22,520 --> 00:46:24,860 average person off the street isn't going to 1102 00:46:24,860 --> 00:46:27,120 try to sneak a Dreamcast in an organization. 1103 00:46:27,840 --> 00:46:28,840 The people that are 1104 00:46:28,840 --> 00:46:30,400 doing this are people that are targeting 1105 00:46:30,980 --> 00:46:32,820 the organization specifically. 1106 00:46:33,240 --> 00:46:34,840 They may have a lot more information 1107 00:46:34,840 --> 00:46:36,060 on the company 1108 00:46:36,060 --> 00:46:38,840 that would help them or aid them 1109 00:46:38,840 --> 00:46:40,360 in getting in. One of the 1110 00:46:41,020 --> 00:46:42,320 last things before we wrap up. 1111 00:46:43,040 --> 00:46:45,000 One of the other reasons we're 1112 00:46:45,020 --> 00:46:46,860 picking the Dreamcast as opposed to 1113 00:46:46,860 --> 00:46:47,680 other hardware is 1114 00:46:47,680 --> 00:46:50,560 if somebody does get hacked with a Dreamcast, 1115 00:46:50,800 --> 00:46:52,380 it's going to be the funniest damn thing I've ever heard of. 1116 00:46:53,340 --> 00:46:54,840 Your network is hacked by 1117 00:46:54,840 --> 00:46:56,900 a single Dreamcast. It is the new access 1118 00:46:56,900 --> 00:46:57,280 of Google. 1119 00:46:58,800 --> 00:47:00,260 Okay, time for some questions. 1120 00:47:00,820 --> 00:47:01,800 This guy had one. 1121 00:47:02,360 --> 00:47:04,140 Instead of using DHCP, 1122 00:47:04,360 --> 00:47:05,980 have you considered traffic analysis 1123 00:47:05,980 --> 00:47:06,420 ? 1124 00:47:08,320 --> 00:47:09,940 We've definitely considered that. 1125 00:47:10,700 --> 00:47:12,480 The thing we wanted to really show, 1126 00:47:12,680 --> 00:47:14,900 the question was, instead of using DHCP 1127 00:47:15,020 --> 00:47:17,100 have we tried to do traffic analysis 1128 00:47:17,100 --> 00:47:18,340 locally on the network 1129 00:47:18,840 --> 00:47:20,700 to figure out the address so you can assign 1130 00:47:20,700 --> 00:47:23,000 one yourself. We did think about doing 1131 00:47:23,000 --> 00:47:24,760 that, but it was trying to move it away 1132 00:47:24,760 --> 00:47:26,820 from the focus. The focus we wanted to do was 1133 00:47:26,820 --> 00:47:28,240 building tunnels out. 1134 00:47:28,480 --> 00:47:30,540 It would be very possible to do that. 1135 00:47:30,600 --> 00:47:32,720 There's a fine gateway tool that comes with 1136 00:47:32,720 --> 00:47:34,640 the older DSNR suites that would really 1137 00:47:34,640 --> 00:47:36,740 look that easy to do. So yeah, 1138 00:47:36,780 --> 00:47:38,620 that's definitely a possibility. That's something that we 1139 00:47:38,620 --> 00:47:40,980 could have coded in there, but for the most part 1140 00:47:40,980 --> 00:47:42,500 networks have DHCP 1141 00:47:42,500 --> 00:47:44,180 as far as that we've seen. 1142 00:47:45,020 --> 00:47:46,140 Question?