1 00:00:00,000 --> 00:00:04,720 All right. Well, good morning, everybody. Thanks for coming. Wow. Sunday morning on DEF CON. 2 00:00:07,420 --> 00:00:12,400 We're here. Yeah. I thought that's all about it. I have to say it about that, I guess. 3 00:00:12,500 --> 00:00:16,960 So if I haven't met you yet, please stop by, say hi sometime, or grab me in the hallway. 4 00:00:17,580 --> 00:00:21,240 James Shoemaker. I do some incident handling and penetration testing stuff. 5 00:00:21,520 --> 00:00:26,300 The past year I've been doing a lot of research on some of the tactical-based stuff has been my emphasis. 6 00:00:27,940 --> 00:00:34,840 And this is kind of a result of some of that experimentation. 7 00:00:35,920 --> 00:00:40,980 Some of what we're covering today is, well, defense is hard in general, 8 00:00:41,100 --> 00:00:48,260 so some of the stuff we're covering today is a start on making, closing that gap, 9 00:00:48,520 --> 00:00:52,700 making up for some of the deficiencies we have in our browser-based environments. 10 00:00:53,020 --> 00:00:56,200 So that's what we're going to talk. 11 00:00:56,300 --> 00:00:56,620 That's what we're going to talk about today. 12 00:00:58,760 --> 00:01:05,960 So just to kind of wake us up, maybe get us all started on the same foot here. 13 00:01:06,180 --> 00:01:10,040 Yeah, browsers aren't good enough in the way they are right now, generally speaking, 14 00:01:10,260 --> 00:01:13,480 or why they have extensions to fill in those gaps, right? 15 00:01:13,560 --> 00:01:20,440 We've got Flash players. We've got all these other rich content extensions in our browsers. 16 00:01:20,620 --> 00:01:24,760 And that, between the two, they're incomplete and quirky because of the incompleteness, 17 00:01:24,940 --> 00:01:26,280 makes them even more... 18 00:01:26,280 --> 00:01:27,480 more quirkier, right? 19 00:01:27,600 --> 00:01:30,100 We have all these plug-in variety versions. 20 00:01:30,560 --> 00:01:31,620 Things get complicated. 21 00:01:32,440 --> 00:01:38,360 And it really gets even quirkier because, well, all the web content we have is so customized, right? 22 00:01:38,420 --> 00:01:45,660 We have the HTML itself is all written maybe by hand, maybe by a broken editor. 23 00:01:48,480 --> 00:01:51,660 And then we have all the media on top of that that gets delivered. 24 00:01:53,560 --> 00:01:56,200 So today we're going to be focused on two types of those. 25 00:01:56,280 --> 00:01:58,160 Two types of problems that manifest because of that. 26 00:02:00,180 --> 00:02:06,640 Some of the attacks, at least some of the attack components, we'll look at some techniques to do that. 27 00:02:07,380 --> 00:02:11,420 And then also, how can we regain some of that anonymity? 28 00:02:11,840 --> 00:02:18,340 We'll look at a few examples of some things that maybe are steps in the right direction to reanonymize ourselves 29 00:02:18,340 --> 00:02:24,200 after some of the work that's been done in the past year or so, roughly. 30 00:02:25,280 --> 00:02:26,260 And then we'll introduce... 31 00:02:26,280 --> 00:02:34,940 We'll introduce X06D, which is like pre-alpha version of a suite of browser-based defenses that we've been working on. 32 00:02:35,640 --> 00:02:42,700 But the goal of the project is to get us close to, well, maybe we'll be okay. 33 00:02:42,880 --> 00:02:45,820 There's that six-day window where we might have some issues. 34 00:02:46,000 --> 00:02:50,580 But within six days of knowing that there's an issue, we'll be reasonably safe. 35 00:02:51,220 --> 00:02:52,860 That's kind of the goal. 36 00:02:54,560 --> 00:02:55,780 We had to pick a goal. 37 00:02:55,780 --> 00:02:56,940 So that sounded like a good one. 38 00:02:57,020 --> 00:02:57,600 Roughly a week. 39 00:03:00,820 --> 00:03:08,020 So overall, this stuff we'll be covering, it takes, let's say, four phases, right? 40 00:03:09,080 --> 00:03:12,360 To defend yourself against attacks, we want to sanitize the input to the browser. 41 00:03:12,800 --> 00:03:16,480 Say you actually were duped into clicking on something or browsing somewhere you shouldn't. 42 00:03:17,780 --> 00:03:22,980 Well, that input to the browser, the browser being half of the application, typically, 43 00:03:23,860 --> 00:03:25,500 is going to be... 44 00:03:25,780 --> 00:03:27,720 A large portion of that attack surface, right? 45 00:03:27,840 --> 00:03:32,320 And you don't have much control of that from the server's aspect, right? 46 00:03:32,420 --> 00:03:36,680 You have no idea if it's a public site, who's coming, what they're going to come with, 47 00:03:36,980 --> 00:03:41,620 how nicely configured their browser is, what it's vulnerable to, and all those sorts of things. 48 00:03:42,060 --> 00:03:46,320 So to defend yourself in a browser on a public site, 49 00:03:47,200 --> 00:03:51,700 you might want to first identify what interesting code is showing up in the browser. 50 00:03:51,820 --> 00:03:55,260 Because, well, there's so many different combinations. 51 00:03:55,780 --> 00:04:04,760 And encodings, and complicated things that need to be renormalized down to something you can detect. 52 00:04:05,240 --> 00:04:09,820 You know, this is why we can't take the classic anti-virus signature technique 53 00:04:09,820 --> 00:04:16,080 and lean on it as heavily as we have on the host level, inside of the web applications. 54 00:04:16,260 --> 00:04:19,460 Because there's so much custom things that we can't detect. 55 00:04:22,380 --> 00:04:25,680 Now, some of the things we can do, we've seen some progress, right? 56 00:04:25,680 --> 00:04:33,360 NoScript is a very cool tool, lets us do a lot of awesome, granular control of what comes into that browser. 57 00:04:33,580 --> 00:04:38,280 You know, rejecting tags, rejecting certain scripts from certain sites, even whitelisting sites. 58 00:04:39,080 --> 00:04:40,880 But it is somewhat limited, right? 59 00:04:40,980 --> 00:04:44,680 Because it is still not available for every browser, of course. 60 00:04:44,860 --> 00:04:53,760 And it's more, well, because it's so granular, it is more tailored to those of us who care 61 00:04:53,760 --> 00:04:55,660 to go in and manually do all these things. 62 00:04:55,680 --> 00:04:56,080 Right? 63 00:04:56,260 --> 00:04:58,000 We can't just set it and forget it. 64 00:04:59,080 --> 00:05:02,560 Not that I ever think that's a great idea for security concerns. 65 00:05:02,900 --> 00:05:09,160 But it's still something that would be nice for all those sheep that want to come to our sites. 66 00:05:09,300 --> 00:05:09,460 Right? 67 00:05:09,480 --> 00:05:10,560 Or the ones we have to protect. 68 00:05:10,840 --> 00:05:17,280 To be able to give them something that will protect them without a whole lot of foot shooting, you know. 69 00:05:19,460 --> 00:05:22,000 Another portion is if we can anonymize the browser. 70 00:05:22,260 --> 00:05:23,860 Now, I want to separate out a couple of things. 71 00:05:23,960 --> 00:05:25,660 That's why we have anonymize and randomize. 72 00:05:25,660 --> 00:05:31,540 Sometimes people can confuse the two in our application here. 73 00:05:31,720 --> 00:05:38,700 But if we make the browser look more or less unidentifiable, at least indistinguishable from other browsers, 74 00:05:39,020 --> 00:05:43,300 then it's going to be less likely the point of the attack. 75 00:05:43,780 --> 00:05:43,840 Right? 76 00:05:44,020 --> 00:05:50,700 There's not going to be a specific weakness in that specific version of the browser or the enhancement to the browser like the flash player. 77 00:05:51,480 --> 00:05:53,300 It's going to be less likely to be targeted. 78 00:05:53,300 --> 00:05:55,820 So being anonymous there would be great. 79 00:05:58,360 --> 00:06:01,940 Now, we could look like clones of each other. 80 00:06:02,060 --> 00:06:03,040 And that would be sufficient. 81 00:06:03,440 --> 00:06:06,900 But maybe it would be more interesting to fake being somebody else. 82 00:06:07,160 --> 00:06:07,600 Right? 83 00:06:07,600 --> 00:06:09,760 Using a browser fingerprint that somebody else had. 84 00:06:11,880 --> 00:06:18,320 You know, back in the earlier days of the Internet where we had, I don't know about the whole Internet. 85 00:06:18,460 --> 00:06:19,420 But when we had the Web, right? 86 00:06:19,460 --> 00:06:20,380 And Netscape went public. 87 00:06:20,380 --> 00:06:23,020 And we had a few browsers out there. 88 00:06:23,620 --> 00:06:25,000 If you can call them that. 89 00:06:25,200 --> 00:06:35,760 There was, you know, an interesting thing as sites tried to detect, you know, hey, do we need to put this in a way Internet Explorer can display it for you? 90 00:06:36,000 --> 00:06:44,720 Try to detect your user agent usually to display it in an Internet Explorer friendly way versus, you know, the Netscape way. 91 00:06:44,920 --> 00:06:49,540 Well, that was an earlier way to try and identify things. 92 00:06:49,540 --> 00:06:51,360 Of course, there's easy ways to spoof that. 93 00:06:51,580 --> 00:06:53,620 The user agent string being controlled by the client. 94 00:06:53,760 --> 00:06:54,940 Really easy to just fake that. 95 00:06:55,080 --> 00:06:58,420 And that's what they did to make our browser look like every other browser. 96 00:06:58,660 --> 00:07:00,420 There was the user agent forgers. 97 00:07:00,540 --> 00:07:03,840 One of the first reasons many people used Opera was because of that feature. 98 00:07:04,040 --> 00:07:05,460 You know, they can make it look like Internet Explorer. 99 00:07:05,600 --> 00:07:09,600 So they got the Internet Explorer version of the site. 100 00:07:12,080 --> 00:07:16,720 Another great thing now is to make your Web browser look like a mobile device. 101 00:07:16,880 --> 00:07:19,000 Because now you don't get the Flash version of the site. 102 00:07:19,080 --> 00:07:19,520 You get the latest version. 103 00:07:19,540 --> 00:07:20,900 You get the leaner version of the site. 104 00:07:21,460 --> 00:07:22,920 Because the iPhone won't support Flash. 105 00:07:23,320 --> 00:07:25,860 So there's a lot of reasons to make yourself look like everybody else. 106 00:07:27,180 --> 00:07:30,140 But it's much harder than just changing the user agent string. 107 00:07:30,420 --> 00:07:32,260 But hopefully you see the benefit in that. 108 00:07:33,200 --> 00:07:40,260 As well as just it would be sure nice to not just look like everybody else but to look like that iPhone to get that iPhone version of the site. 109 00:07:42,100 --> 00:07:46,980 And then when we come to randomizing stuff and applying this as a technique to defend ourselves. 110 00:07:47,900 --> 00:07:51,680 This is more of a strict privacy kind of concerns, right? 111 00:07:51,780 --> 00:07:59,920 Where we don't want to either reveal our behavior or we don't want to be singled out for anything in particular. 112 00:08:00,080 --> 00:08:02,420 There's a couple of ways that we can do that in general. 113 00:08:03,000 --> 00:08:06,980 We can groom our history so that it looks like everybody else. 114 00:08:07,100 --> 00:08:08,980 It's kind of similar to the anonymizing. 115 00:08:09,000 --> 00:08:11,020 But here it's more for the behavior. 116 00:08:11,340 --> 00:08:16,960 So we in the background go to those top 500 sites from Alexia. 117 00:08:16,960 --> 00:08:18,420 In the background. 118 00:08:18,660 --> 00:08:24,420 So that if someone's watching on the wire, they see normal traffic to Facebook and all these top 500 sites. 119 00:08:25,060 --> 00:08:31,640 A little harder to fingerprint that, oh, this IP address is very specific and unique. 120 00:08:31,900 --> 00:08:34,840 Because, wow, you've got to wade through all this other traffic that is typical. 121 00:08:36,520 --> 00:08:39,140 Creating that, raising that noise level, creating that line noise. 122 00:08:40,520 --> 00:08:46,020 And then, of course, the other thing to come full circle is to sanitize output to the server. 123 00:08:46,220 --> 00:08:46,420 Right? 124 00:08:46,960 --> 00:08:49,640 So sanitizing input to the browser that we have at the top of this slide. 125 00:08:50,280 --> 00:08:57,580 What I mean by that is if you're duped into injecting into yourself, right, you're going to catch it there. 126 00:08:57,820 --> 00:09:03,160 Like a classic cross site scripting attack or maybe you clicked on a phishing link and you're sending something into your own browser. 127 00:09:03,940 --> 00:09:12,860 Sanitizing output to the server, you know, maybe your browser is vulnerable as it displays things, as it renders the HTML is where the problem happens. 128 00:09:13,100 --> 00:09:16,680 So it's nice to be able to deal with both the input and output. 129 00:09:16,680 --> 00:09:17,240 In that way. 130 00:09:18,280 --> 00:09:22,980 Now, the ways we can defend against that is, of course, we might be able to do a signature detection. 131 00:09:23,420 --> 00:09:32,000 But, again, that's complicated and hard because we have to renormalize the code. 132 00:09:32,340 --> 00:09:32,500 Right? 133 00:09:32,580 --> 00:09:37,020 If it's a script tag that's modified, we have to detect it in an unmodified version. 134 00:09:37,220 --> 00:09:38,320 So we have to renormalize it. 135 00:09:38,380 --> 00:09:42,040 And the trick is really different browsers normalize it differently. 136 00:09:42,300 --> 00:09:45,160 You know, take different priorities in recombining code. 137 00:09:47,640 --> 00:09:53,640 So the other way really than detecting it is to try and neuter what looks interesting by just translating it. 138 00:09:53,760 --> 00:10:00,860 Just kind of munging it a little bit so that it is less likely to work precisely how the attack was constructed. 139 00:10:02,640 --> 00:10:03,840 Somehow converting it. 140 00:10:04,880 --> 00:10:05,520 All right. 141 00:10:05,580 --> 00:10:14,460 So to try and deal into it a little bit deeper, if we're sanitizing input to the browser, we've got no script, but it's hard. 142 00:10:14,640 --> 00:10:14,800 Right? 143 00:10:15,160 --> 00:10:16,700 So you still have to go in there and do that granular check. 144 00:10:16,940 --> 00:10:22,200 You've either got a white list, what you know you're going to trust, and then you might get caught with something dangerous there. 145 00:10:22,960 --> 00:10:24,020 What are some other options? 146 00:10:25,520 --> 00:10:31,400 Well, maybe we could actually vote on what is allowable or not. 147 00:10:31,640 --> 00:10:31,920 Right? 148 00:10:32,020 --> 00:10:35,960 Have more of a peer-based evaluation of what is good content. 149 00:10:37,440 --> 00:10:39,260 In concept, that sounds pretty scary. 150 00:10:39,400 --> 00:10:44,680 I don't know about you, but when I look out and see my peers, I don't know if I would trust them to dictate what I put in my browser. 151 00:10:46,740 --> 00:10:49,480 But maybe that works for all those sheep out there. 152 00:10:50,620 --> 00:10:51,100 Maybe. 153 00:10:51,500 --> 00:10:54,980 I don't know if I want the next Farmville plug-in to be white listed. 154 00:10:55,260 --> 00:11:01,760 But, you know, it's an interesting idea that maybe in certain organizations it's okay. 155 00:11:03,140 --> 00:11:11,380 Especially if you make the voting system a little more, well, you engineer the voting system to take advantage of it. 156 00:11:11,420 --> 00:11:14,500 For example, the vote is prompted. 157 00:11:14,500 --> 00:11:21,340 Should you or should your coworkers be wasting your bandwidth watching these videos on this site? 158 00:11:22,380 --> 00:11:22,960 Yes, no. 159 00:11:23,560 --> 00:11:26,960 If you engineer it in that way, maybe people will then vote a little more harsher. 160 00:11:27,580 --> 00:11:28,560 But it's an interesting idea. 161 00:11:29,140 --> 00:11:31,460 There's been some examples of people trying to do that for spam. 162 00:11:31,900 --> 00:11:39,160 And there's the Dan's Guardian squid voting mechanism that people have experimented with a little bit for the web filtering. 163 00:11:39,360 --> 00:11:44,480 So it can't be any worse than what we've already got, I guess, is what I come down to. 164 00:11:44,500 --> 00:11:46,760 But maybe we introduce more complexity. 165 00:11:47,160 --> 00:11:48,880 So I'm not going to lean real heavy on that. 166 00:11:49,000 --> 00:11:49,780 But it's an interesting idea. 167 00:11:50,040 --> 00:11:51,780 We can at least do a public black list. 168 00:11:55,920 --> 00:11:57,380 But it's a hard problem. 169 00:11:58,560 --> 00:11:59,120 All right? 170 00:11:59,200 --> 00:12:03,200 So, again, we've got the applications kind of split, right? 171 00:12:03,320 --> 00:12:05,600 Half of the problem could be on the client side. 172 00:12:05,960 --> 00:12:07,280 Half of it could be on the server side. 173 00:12:08,600 --> 00:12:10,140 We've got all these different layers, though, right? 174 00:12:10,220 --> 00:12:12,300 We don't just have to attack the application. 175 00:12:12,580 --> 00:12:13,460 We can attack HTTP. 176 00:12:13,460 --> 00:12:15,420 We can attack TCP. 177 00:12:15,840 --> 00:12:16,540 We can attack IP. 178 00:12:16,820 --> 00:12:18,440 We can attack DNS that gets us to IP. 179 00:12:18,780 --> 00:12:19,720 And we've still got ARP. 180 00:12:20,000 --> 00:12:21,800 And we go down the stack for DNS as well. 181 00:12:22,000 --> 00:12:23,160 I mean, we can attack any one of those layers. 182 00:12:23,580 --> 00:12:24,580 It's going to be a problem. 183 00:12:25,520 --> 00:12:30,980 And then there's all the contextual problems that are kind of manifested. 184 00:12:31,180 --> 00:12:39,760 If you haven't seen our snake and Jabra's de-anonymizing you last year at DEF CON, you really should go and review that, especially if you haven't seen it for a while. 185 00:12:39,920 --> 00:12:40,760 It's good stuff. 186 00:12:40,760 --> 00:12:46,400 One of the goals I had for this talk was to see if we could at least start addressing the issues they talked about. 187 00:12:46,680 --> 00:12:52,580 And we're close to getting at least proof of concept type to address each issue now. 188 00:12:53,260 --> 00:13:01,200 And then if you saw, was it Friday, Peter's talk on the PanoptiClick from EFF. 189 00:13:01,480 --> 00:13:02,500 How many people saw it? 190 00:13:02,680 --> 00:13:02,940 Yeah? 191 00:13:03,420 --> 00:13:03,900 Awesome. 192 00:13:04,160 --> 00:13:04,640 Yeah. 193 00:13:04,680 --> 00:13:05,320 So that was good. 194 00:13:05,400 --> 00:13:08,680 You can go to PanoptiClick.EFF.org and look at the paper. 195 00:13:08,820 --> 00:13:09,700 Or you can go back. 196 00:13:09,700 --> 00:13:10,920 And buy the video. 197 00:13:11,140 --> 00:13:12,940 Or find it somewhere. 198 00:13:13,340 --> 00:13:17,500 And see him explain some of the details of the anonymization. 199 00:13:19,040 --> 00:13:22,360 We'll be looking at a couple of things that are very similar. 200 00:13:22,880 --> 00:13:31,180 But for those of you who haven't seen it, the idea is that there's all these different bits of information that can identify your behavior or your browser. 201 00:13:31,720 --> 00:13:33,820 There are some things in headers. 202 00:13:34,020 --> 00:13:35,220 There are the header sequence. 203 00:13:35,720 --> 00:13:38,560 There is your history in the browser. 204 00:13:39,300 --> 00:13:40,640 The system fonts. 205 00:13:42,800 --> 00:13:45,480 The unique combination of plug-ins you have. 206 00:13:46,280 --> 00:13:49,640 There are many ways to go through and detect you. 207 00:13:50,020 --> 00:13:53,060 And that's the idea of the PanoptiClick experiment. 208 00:13:53,360 --> 00:13:57,340 It's a good start in trying to work out some of these issues. 209 00:13:57,540 --> 00:14:00,420 So a couple of things about the fonts, for example. 210 00:14:00,560 --> 00:14:03,020 Fonts and plug-ins are the hardest part to de-anonymize. 211 00:14:03,260 --> 00:14:05,100 Or excuse me, to re-anonymize. 212 00:14:05,400 --> 00:14:07,580 They're the easiest thing to de-anonymize. 213 00:14:07,580 --> 00:14:12,160 But we can go through and there are flash calls to pull in the system fonts. 214 00:14:13,040 --> 00:14:14,500 As a feature, very simple. 215 00:14:15,020 --> 00:14:17,240 There's some other examples, too. 216 00:14:18,420 --> 00:14:26,540 Where via changing or comparing two different div tags that use different fonts. 217 00:14:26,700 --> 00:14:32,360 The width and the height of the font will tell you if that person has which particular font installed. 218 00:14:32,560 --> 00:14:35,400 Or if the browser had to go grab something else in that family to display it. 219 00:14:35,400 --> 00:14:44,000 So it's not as precise detection, but it's still enough to maybe track you as you. 220 00:14:46,820 --> 00:14:51,160 The plug-in stuff, add-ons, extensions, depending upon what you read are even harder, though. 221 00:14:51,240 --> 00:14:55,460 Because, well, that's more of an internal browser thing. 222 00:14:55,880 --> 00:15:01,160 It's not something we can look at on the system very precisely, anyway. 223 00:15:01,460 --> 00:15:03,640 There are things you can look at on the system, but it's harder. 224 00:15:04,280 --> 00:15:07,680 We can go through and look and see how the browser handles different types of content. 225 00:15:08,540 --> 00:15:09,780 Ask it how it can handle it. 226 00:15:09,980 --> 00:15:16,220 We can even use the DOM, the document object model, and ask navigators.plugins how to do that. 227 00:15:16,580 --> 00:15:19,520 And that is another way. 228 00:15:19,940 --> 00:15:26,140 So since these are ways we can identify it, we're going to have to come up with ways to lie to every one of these, basically. 229 00:15:26,260 --> 00:15:27,780 Or to defeat every one of these combinations. 230 00:15:29,640 --> 00:15:31,480 So the easiest thing is to just... 231 00:15:31,480 --> 00:15:35,580 If someone is going to single you out for some reason, just look like... 232 00:15:35,580 --> 00:15:38,960 Not a random person, but maybe you want to look like somebody else. 233 00:15:39,020 --> 00:15:41,560 Then they can't tell you the difference between you, right? 234 00:15:42,680 --> 00:15:45,240 So, you know, everybody doesn't have to look the same. 235 00:15:45,600 --> 00:15:51,360 But if you look the same as a few other people that are fairly unique, maybe that's good enough. 236 00:15:51,660 --> 00:15:52,060 Right? 237 00:15:52,140 --> 00:15:56,460 Because if they're unique enough, then how are they going to... 238 00:15:56,460 --> 00:16:00,580 And you're really good at mimicking them, it's going to be really hard to tell the two of you apart. 239 00:16:01,480 --> 00:16:08,400 The real problem there is then you're really trusting in how good that person is. 240 00:16:08,600 --> 00:16:10,180 And, you know, being... 241 00:16:11,600 --> 00:16:13,160 You're giving up a little control, right? 242 00:16:13,700 --> 00:16:16,100 Now you're going to have to mimic that person whenever they do. 243 00:16:16,280 --> 00:16:25,880 So it's like when your sibling or whoever would start mimicking you and you start punching yourself so that they punch themselves. 244 00:16:26,120 --> 00:16:29,960 I mean, you've given up control of some of your behavior. 245 00:16:30,080 --> 00:16:31,460 So I don't know how I feel about that. 246 00:16:31,460 --> 00:16:32,060 I don't know how I feel about giving up control. 247 00:16:32,560 --> 00:16:37,380 But it's an interesting idea that I don't have to be entirely random. 248 00:16:37,580 --> 00:16:39,300 I can only just mimic somebody else. 249 00:16:40,220 --> 00:16:48,900 And if there's enough people mimicking other people, but not all mimicking the same person, maybe that's still good enough to anonymize us collectively. 250 00:16:49,800 --> 00:16:50,420 All right? 251 00:16:51,180 --> 00:16:54,740 Now, of course, to do that, we want to sanitize input and output. 252 00:16:54,900 --> 00:16:57,020 We want to anonymize and randomize our behavior as well. 253 00:16:57,360 --> 00:16:57,960 All right? 254 00:16:57,960 --> 00:17:04,800 We either fake it, whatever they're looking for for the identifying bits, or maybe we can engineer it ahead of time. 255 00:17:07,780 --> 00:17:09,080 So defeating the header detection. 256 00:17:09,460 --> 00:17:12,240 We could generalize request headers, URL and host. 257 00:17:12,360 --> 00:17:13,220 This is fairly easy. 258 00:17:13,360 --> 00:17:14,720 Proxies can handle this for us. 259 00:17:14,760 --> 00:17:17,720 They do an okay job of that currently. 260 00:17:18,300 --> 00:17:18,780 Right? 261 00:17:19,720 --> 00:17:24,240 If we really wanted to mix it up, though, and really ratchet up the anonymization here, 262 00:17:24,240 --> 00:17:30,960 if you redo your proxies so that they jumble as much of the headers as they can get away with, 263 00:17:31,280 --> 00:17:33,320 of course, you know, there's certain requirements. 264 00:17:33,600 --> 00:17:39,560 The host header, you have the get request and the host header can't be too randomized because they're your destination. 265 00:17:39,960 --> 00:17:40,100 Right? 266 00:17:40,900 --> 00:17:43,200 If you randomize it, you're not going to where you want it to. 267 00:17:43,540 --> 00:17:45,960 And so that's pretty much our limitation there. 268 00:17:47,080 --> 00:17:48,020 But we could do that. 269 00:17:48,180 --> 00:17:52,880 Maybe add some benign headers, maybe some benign parameters just to kind of jumble things up 270 00:17:52,880 --> 00:17:54,220 and make it look better. 271 00:17:54,220 --> 00:17:57,800 Maybe make it look a little bit more random, you know, increase that noise level. 272 00:17:58,660 --> 00:18:05,860 And then maybe what we want to do for the cookie stuff to detect you is we want to take control back of our cookies. 273 00:18:06,460 --> 00:18:07,080 All right? 274 00:18:07,100 --> 00:18:12,260 Don't let the browser decide when to send them, when to clear them and do everything else. 275 00:18:12,660 --> 00:18:21,540 An easy way to get started is to make a browser helper object, for example, or extension clear all the cookies on browser open. 276 00:18:21,540 --> 00:18:26,020 What if your browser crashed and you're used to just clearing things when you close? 277 00:18:27,440 --> 00:18:30,020 Well, when you pop it back up now, there's that leak. 278 00:18:31,280 --> 00:18:37,700 I also think it's kind of neat to be able to groom your cookies, stash them somewhere outside the browser. 279 00:18:37,940 --> 00:18:44,160 And if you do want them back, then you can actually dictate when they go back into your browser and can be sent to the server. 280 00:18:45,020 --> 00:18:49,140 So the components are there, but I haven't seen a plug-in that really lets you automate that nicely. 281 00:18:49,600 --> 00:18:51,520 And so that was one of the things we wanted to add. 282 00:18:51,540 --> 00:18:54,560 We wanted to add into the suite, which we still have a lot of work to do. 283 00:18:54,940 --> 00:18:58,600 History enumeration, go everywhere, at least the top 500 sites. 284 00:18:58,920 --> 00:19:00,640 Now, you don't have to manually go there. 285 00:19:00,720 --> 00:19:02,300 You can have a plug-in do it for you, right? 286 00:19:02,680 --> 00:19:10,720 Have it go to the top 500 and then go through and delete your history so that any extra things you go to that aren't in the top 500 aren't there. 287 00:19:12,880 --> 00:19:19,040 Now, that itself is a pattern that can identify you, but if we all did that, now it's normal, right? 288 00:19:19,940 --> 00:19:28,200 Somebody might be able to identify as that, gee, that's somebody with that tool or that's somebody who was at DEF CON who heard about that technique, but not necessarily who it was. 289 00:19:29,160 --> 00:19:43,240 And if we do enough of these randomization things, if we keep building this up, maybe that's enough to keep us fairly, you know, fairly safe as far as anonymizing our privacy concerns. 290 00:19:44,800 --> 00:19:46,820 But it's probably not good enough just to hit the sites. 291 00:19:46,820 --> 00:20:05,980 We probably want to do a little bit of crawling, make it look kind of real, maybe mistype a request once in a while to really make it look like both from the wire and from a media analysis standpoint that, you know, maybe one might even call it anti-forensics. 292 00:20:06,640 --> 00:20:11,040 That it wouldn't look that weird on the drive, right? 293 00:20:12,860 --> 00:20:14,440 Font detection is tough, though. 294 00:20:15,380 --> 00:20:15,860 Basically. 295 00:20:16,820 --> 00:20:22,840 Because of the wonderful things that Flash lets you do, it asks for fonts. 296 00:20:24,800 --> 00:20:27,160 And or it's easy to ask for fonts, I should say. 297 00:20:27,860 --> 00:20:37,820 Now, we can take something and make our own Flash engine, use the JavaScript Flash interpreter that exists and throw out that, but it's harder. 298 00:20:37,940 --> 00:20:45,020 Now at least we can fingerprint, you know, that people have done something to try and block the Flash, call it the fonts. 299 00:20:45,200 --> 00:20:46,180 So we could do that. 300 00:20:46,820 --> 00:20:49,800 I actually prefer the idea of just changing your environment. 301 00:20:50,080 --> 00:20:58,660 So if you start with a virtual machine that has a clean install, then you have less font moving you have to do. 302 00:20:58,820 --> 00:21:06,920 But with no extra supplemental fonts installed that come with your third-party plug-ins, there's not going to be much to fingerprint. 303 00:21:07,160 --> 00:21:14,800 You look like a generic XP Service Pack 2 or whatever that never got any plug-ins, never got any third-party Acrobat installed or something like that. 304 00:21:15,700 --> 00:21:16,680 There's a huge cost. 305 00:21:16,680 --> 00:21:17,720 There's a huge cost, though, that takes us time. 306 00:21:17,860 --> 00:21:23,440 If we're downloading these randomly from an archive and uninstalling them randomly, that's going to take time. 307 00:21:23,680 --> 00:21:26,640 But it is possible to randomize those system fonts. 308 00:21:27,000 --> 00:21:32,720 Even locally with just an outside-the-browser tool. 309 00:21:33,800 --> 00:21:37,400 But I like the idea of being able to create a snapshot. 310 00:21:37,720 --> 00:21:42,760 So let's make a snapshot of Acrobat 6 and Internet Explorer 8 and whatever. 311 00:21:43,100 --> 00:21:44,340 And then that will be a signature. 312 00:21:44,340 --> 00:21:47,300 And then you can groom your browser to look like that. 313 00:21:49,400 --> 00:21:50,700 I think that would be the way to go. 314 00:21:50,980 --> 00:21:53,960 But the problem is we've got a lot of work to do. 315 00:21:54,040 --> 00:21:56,140 We've got to collect a lot of different signatures that way. 316 00:21:56,500 --> 00:22:01,760 So that's one of the reasons we want to start the project is to start collecting those signatures so that people can pick and say, 317 00:22:01,840 --> 00:22:03,660 I want to look like this combination of fonts. 318 00:22:07,980 --> 00:22:09,420 Some technical details on it. 319 00:22:09,500 --> 00:22:13,820 We can use a couple of ways here to detect some fonts. 320 00:22:15,360 --> 00:22:17,760 Defeating it, well, we can munch those calls. 321 00:22:17,920 --> 00:22:24,200 We can go through and just break the call so that it doesn't answer correctly. 322 00:22:24,500 --> 00:22:25,900 It doesn't even call it correctly. 323 00:22:26,080 --> 00:22:29,380 Or we could even catch the response and make it lie. 324 00:22:29,700 --> 00:22:35,500 And there's actually an example at the end in a screenshot of how we can do that. 325 00:22:37,280 --> 00:22:39,100 The JavaScript way in the same way. 326 00:22:39,280 --> 00:22:40,280 We can catch it. 327 00:22:41,720 --> 00:22:44,320 Or maybe it's better to create binoculars. 328 00:22:44,320 --> 00:22:47,040 I wouldn't say it's better. 329 00:22:47,160 --> 00:22:49,140 It actually slows down your machine greatly having tried this. 330 00:22:49,660 --> 00:22:55,580 But if I have a font that's every single possible realistic combination of width and height, 331 00:22:56,260 --> 00:23:01,500 then you can't really distinguish me from another me that has the same benign fonts. 332 00:23:02,120 --> 00:23:05,260 The problem is the system really slows down when you put a lot of fonts on. 333 00:23:05,580 --> 00:23:07,740 And so that's not as realistic. 334 00:23:07,900 --> 00:23:10,160 But maybe we can at least fake the common ones. 335 00:23:14,320 --> 00:23:15,520 So a couple ways to do that. 336 00:23:15,600 --> 00:23:16,860 We can just, you know, move things out. 337 00:23:17,380 --> 00:23:18,160 That's okay. 338 00:23:18,440 --> 00:23:20,720 We have little registry shenanigans we've got to perform. 339 00:23:21,080 --> 00:23:23,200 But it's possible. 340 00:23:23,500 --> 00:23:25,640 Especially if you really are concerned with your privacy. 341 00:23:25,780 --> 00:23:27,840 Maybe in your situation that works for you. 342 00:23:28,140 --> 00:23:30,180 It would be nice to have the option is what I'm saying. 343 00:23:33,420 --> 00:23:39,040 And then there's some similarities between the font and the plug-in detection that we have to use to try and get around things. 344 00:23:39,940 --> 00:23:44,300 It all comes down to if we can either create a normal font, 345 00:23:44,300 --> 00:23:44,860 a normal fingerprint, 346 00:23:48,760 --> 00:23:51,400 or throw out what we have to become normal, 347 00:23:52,480 --> 00:23:55,940 that's probably good enough to get around the bulk of the identifying information 348 00:23:55,940 --> 00:23:59,340 that tools like Panoptic Click have proven it's easy to do. 349 00:24:01,960 --> 00:24:04,880 Now if we're jumbling these things around as we're doing it, 350 00:24:04,920 --> 00:24:06,020 that creates a lot of complications. 351 00:24:06,240 --> 00:24:07,100 So it's a concern. 352 00:24:07,380 --> 00:24:10,980 And it gets even harder as browser things change. 353 00:24:11,240 --> 00:24:12,360 As plug-ins change. 354 00:24:12,360 --> 00:24:16,400 And as Adobe writes a new function for the next version of Flash 355 00:24:16,400 --> 00:24:17,960 that does the same thing the other ones did 356 00:24:17,960 --> 00:24:19,560 in a differently broken way. 357 00:24:19,900 --> 00:24:21,160 Now we've got to do that one. 358 00:24:21,540 --> 00:24:22,460 So it's problematic. 359 00:24:23,820 --> 00:24:26,080 Now specifically with those plug-ins, what's the problem? 360 00:24:26,160 --> 00:24:29,880 I mentioned A, if everybody else normal becomes bad. 361 00:24:30,180 --> 00:24:30,600 Right? 362 00:24:30,780 --> 00:24:32,740 I don't want to now look bad necessarily. 363 00:24:33,720 --> 00:24:35,700 But maybe I can do fake plug-ins. 364 00:24:35,820 --> 00:24:37,460 And it's actually not that hard. 365 00:24:37,760 --> 00:24:39,080 Not as hard as I thought anyway. 366 00:24:39,900 --> 00:24:40,980 We can register. 367 00:24:42,360 --> 00:24:44,700 We can put the LSIDs in the registry for Windows folks. 368 00:24:45,380 --> 00:24:51,020 And then we can do mind types and redirect them to benign plug-ins 369 00:24:51,020 --> 00:24:51,760 that do nothing. 370 00:24:52,180 --> 00:24:54,020 Just to make it look like we have those. 371 00:24:54,500 --> 00:24:56,100 Again, it creates a new pattern though 372 00:24:56,100 --> 00:24:58,280 because if you have a page that does the fingerprinting 373 00:24:58,280 --> 00:25:00,060 that tries to actually use those plug-ins 374 00:25:00,060 --> 00:25:03,080 like, hey, do you have Windows Media video streaming? 375 00:25:03,580 --> 00:25:04,800 And you say you do. 376 00:25:04,920 --> 00:25:10,000 But when you run the Windows Media video that has a JavaScript call, 377 00:25:10,000 --> 00:25:12,680 an embedded script that goes and does something else 378 00:25:12,680 --> 00:25:13,740 and that behavior never happens, 379 00:25:14,240 --> 00:25:15,660 obviously you don't really have that. 380 00:25:16,440 --> 00:25:18,240 But again, if enough of us do it, 381 00:25:18,300 --> 00:25:20,380 if there's enough people that have that fingerprint, 382 00:25:20,560 --> 00:25:22,340 then we all look the same as that set of fingerprints. 383 00:25:23,500 --> 00:25:23,940 Okay. 384 00:25:25,900 --> 00:25:30,820 And that has less of a performance impact than the font things. 385 00:25:33,100 --> 00:25:38,000 It can be tough to fake. 386 00:25:38,600 --> 00:25:40,360 But it is possible. 387 00:25:40,700 --> 00:25:44,200 The real problem is in the plug-ins always updating and changing. 388 00:25:44,380 --> 00:25:48,080 So now we have to fake every plug-in version that comes out. 389 00:25:48,380 --> 00:25:49,560 So that's a little tough. 390 00:25:49,880 --> 00:25:53,220 Which means we basically have to brute force and enter into the registry 391 00:25:53,220 --> 00:25:57,780 every combination of possible CSL ID in Windows, for example. 392 00:25:58,240 --> 00:26:03,480 And maybe we can just not do everything because of that problem. 393 00:26:03,720 --> 00:26:07,720 Maybe we do the top 100 of those plug-ins. 394 00:26:07,720 --> 00:26:07,980 Top 100. 395 00:26:08,000 --> 00:26:09,080 Almost 100 common ones. 396 00:26:09,460 --> 00:26:10,700 And maybe that's good enough. 397 00:26:10,860 --> 00:26:13,300 And of course Safari and Opera don't have that many extensions and plug-ins. 398 00:26:13,380 --> 00:26:16,680 At the time I wrote this slide, there wasn't that many. 399 00:26:16,940 --> 00:26:19,940 But we can at least make it look like you have that many. 400 00:26:20,200 --> 00:26:21,560 And maybe that's good enough 401 00:26:22,340 --> 00:26:24,380 to remove some of those bits of identifying information. 402 00:26:26,500 --> 00:26:27,200 Other things. 403 00:26:27,340 --> 00:26:31,920 Now with exploiting like a classic pivoting, 404 00:26:31,960 --> 00:26:32,760 I say classic, 405 00:26:32,840 --> 00:26:34,320 like one of those beautiful pivoting attacks 406 00:26:34,320 --> 00:26:37,200 where you make the web browser scripting language 407 00:26:37,200 --> 00:26:39,020 do the port scanning for you. 408 00:26:39,360 --> 00:26:43,500 Or some other enumeration like making an image link 409 00:26:43,500 --> 00:26:45,980 to the UNC path on the network 410 00:26:45,980 --> 00:26:47,580 where Windows networking goes out, 411 00:26:48,140 --> 00:26:49,400 tries to look for an image. 412 00:26:49,580 --> 00:26:52,460 If there's not an image at that IP address locally, 413 00:26:52,660 --> 00:26:54,100 then that machine might not be up, 414 00:26:54,160 --> 00:26:56,000 depending upon how it errors, you know, 415 00:26:56,020 --> 00:26:57,560 is how some of that works. 416 00:26:58,000 --> 00:27:01,900 But these are problematic because proxies that are out there, 417 00:27:01,920 --> 00:27:02,820 that are available to us, 418 00:27:02,960 --> 00:27:06,500 only capture HTTP, HTTPS, FTP, 419 00:27:06,500 --> 00:27:09,200 they don't catch these extra things 420 00:27:09,200 --> 00:27:10,580 that Internet Explorer added in, 421 00:27:10,700 --> 00:27:11,880 like Windows networking, 422 00:27:12,300 --> 00:27:16,760 the res call to pull in different resources from DLLs. 423 00:27:17,180 --> 00:27:19,460 So we have to think outside of a proxy. 424 00:27:19,820 --> 00:27:21,640 We have to either hijack the system 425 00:27:21,640 --> 00:27:22,660 or the browser itself. 426 00:27:23,340 --> 00:27:24,920 Hijacking the system's kind of tough 427 00:27:25,960 --> 00:27:28,940 because we need visibility into what the browser's doing. 428 00:27:29,020 --> 00:27:30,680 Turns out that the browser helper objects 429 00:27:30,680 --> 00:27:34,880 are perfect to, well, perfectly positioned anyway 430 00:27:34,880 --> 00:27:36,400 to deal with this. 431 00:27:36,860 --> 00:27:42,240 We can hijack the scheme that call to the resource. 432 00:27:43,280 --> 00:27:45,620 But true anonymity is going to be tough. 433 00:27:45,800 --> 00:27:46,540 We're not trying to do that. 434 00:27:46,600 --> 00:27:49,300 We're just trying to get a little bit of privacy. 435 00:27:50,100 --> 00:27:52,940 It's like the privacy a bathroom stall door gives you. 436 00:27:53,020 --> 00:27:56,320 It's enough privacy to get your business taken care of. 437 00:27:58,420 --> 00:27:59,600 Well, for most of us. 438 00:28:03,680 --> 00:28:04,120 So... 439 00:28:06,660 --> 00:28:08,980 I'm trying not to let my imagination run wild. 440 00:28:09,120 --> 00:28:09,320 Sorry. 441 00:28:10,240 --> 00:28:11,460 A little too much caffeine. 442 00:28:13,940 --> 00:28:17,060 So in our defense, 443 00:28:17,280 --> 00:28:20,200 if we can hijack everything the browser's doing 444 00:28:20,200 --> 00:28:23,160 instead of just those schemes with a proxy, 445 00:28:23,380 --> 00:28:24,280 which we can do, 446 00:28:25,160 --> 00:28:26,340 then maybe we'll be in good shape. 447 00:28:27,720 --> 00:28:31,320 For example, this at the bottom is one thing you can try. 448 00:28:31,580 --> 00:28:33,360 It happened to work on my Windows 7 box, 449 00:28:33,460 --> 00:28:35,700 so it still works on IE8. 450 00:28:35,700 --> 00:28:36,560 But you can go through 451 00:28:36,560 --> 00:28:38,780 and at least tell a little bit about the system, 452 00:28:38,900 --> 00:28:39,900 you know, what version you have. 453 00:28:40,680 --> 00:28:41,620 Here it's local, 454 00:28:41,780 --> 00:28:43,520 but I can still maybe try to do that over the network. 455 00:28:45,140 --> 00:28:48,640 Well, defeating stuff over the network isn't terrible. 456 00:28:48,980 --> 00:28:50,880 It actually is a little easier than I thought. 457 00:28:51,860 --> 00:28:54,240 If you've never used proxy chains or Proxifier, 458 00:28:54,400 --> 00:28:55,220 you should try it. 459 00:28:55,700 --> 00:28:58,980 It's a little weird to wrap your mind around sometimes 460 00:28:58,980 --> 00:29:01,160 because the documentation's a little bit limited. 461 00:29:01,560 --> 00:29:04,860 But the whole idea is we can take something in any TCP, 462 00:29:04,860 --> 00:29:07,160 or any network traffic it does, 463 00:29:07,240 --> 00:29:08,140 send through a proxy, 464 00:29:08,240 --> 00:29:09,300 even though it's not proxy aware. 465 00:29:10,900 --> 00:29:12,900 We're wrapping the application 466 00:29:12,900 --> 00:29:14,940 in something that is proxy aware. 467 00:29:16,260 --> 00:29:17,820 That actually works pretty well 468 00:29:17,820 --> 00:29:19,860 for catching other things the browser does 469 00:29:19,860 --> 00:29:20,560 against your network. 470 00:29:22,800 --> 00:29:23,540 All right. 471 00:29:23,580 --> 00:29:25,400 An example here that I have 472 00:29:25,400 --> 00:29:29,560 is actually a little code snippet from the project, 473 00:29:29,700 --> 00:29:33,500 from the X06D inside of JScript. 474 00:29:33,500 --> 00:29:37,980 We match on RFC 1918 private IP addresses 475 00:29:37,980 --> 00:29:39,780 or the loopback start, 476 00:29:40,040 --> 00:29:42,160 and if that's there, we override it. 477 00:29:43,120 --> 00:29:45,140 But we don't just deny it, 478 00:29:45,200 --> 00:29:45,940 we send it somewhere. 479 00:29:46,600 --> 00:29:48,880 We send it to a null-routed IP that, 480 00:29:49,540 --> 00:29:52,120 this is actually the one that Code Red used 481 00:29:52,120 --> 00:29:55,220 to denial of service the whitehouse.gov site, 482 00:29:55,400 --> 00:29:56,940 but it didn't use the DNS entry, 483 00:29:57,060 --> 00:29:57,860 it used that IP address, 484 00:29:58,060 --> 00:29:59,320 so everybody just null-routed it. 485 00:30:00,200 --> 00:30:01,940 Well, we can all, 486 00:30:01,940 --> 00:30:04,020 I hope that's not reissued to anybody, 487 00:30:04,180 --> 00:30:09,120 but we can all just send it somewhere. 488 00:30:09,940 --> 00:30:11,500 And then the timeout stuff 489 00:30:12,680 --> 00:30:15,420 that the AJAX calls or whatever happens 490 00:30:16,140 --> 00:30:17,720 is still going to timeout, 491 00:30:17,740 --> 00:30:19,020 but it'll all timeout the same. 492 00:30:20,120 --> 00:30:21,240 All timeout the same. 493 00:30:21,280 --> 00:30:22,200 We're removing that pattern. 494 00:30:22,920 --> 00:30:24,820 So we're kind of neutering the payload. 495 00:30:24,940 --> 00:30:26,080 We're not not running the payload. 496 00:30:26,880 --> 00:30:28,880 So we don't have to catch the whole payload. 497 00:30:28,940 --> 00:30:31,300 We're just making it go somewhere else. 498 00:30:33,160 --> 00:30:35,000 Again, this does lean heavily on 499 00:30:35,000 --> 00:30:36,160 normalizing that IP address. 500 00:30:36,440 --> 00:30:39,460 This is only the normal IPv4 format, right? 501 00:30:39,540 --> 00:30:40,900 What about the octal format 502 00:30:40,900 --> 00:30:42,360 or decimal format of the IP address? 503 00:30:42,780 --> 00:30:44,140 So we want to catch those too. 504 00:30:45,960 --> 00:30:46,980 But it's a start. 505 00:30:47,320 --> 00:30:47,980 You know, this is, 506 00:30:48,100 --> 00:30:49,320 I can only fit so much on one slide. 507 00:30:51,440 --> 00:30:53,360 So that helps some of those payloads. 508 00:30:53,380 --> 00:30:54,920 We can catch it outside, 509 00:30:55,100 --> 00:30:55,640 even if our, 510 00:30:56,440 --> 00:30:57,580 somehow somebody figures out 511 00:30:57,580 --> 00:30:59,580 how to make our browser not go through the proxy, 512 00:30:59,760 --> 00:31:01,920 we can have the proxy effect 513 00:31:01,940 --> 00:31:03,900 or the defying process capture 514 00:31:03,900 --> 00:31:04,940 and send it through there anyway. 515 00:31:07,540 --> 00:31:07,940 Right? 516 00:31:08,020 --> 00:31:08,540 That does, 517 00:31:08,700 --> 00:31:09,960 if we're black-holing the IP address, 518 00:31:10,080 --> 00:31:10,780 that takes care of that. 519 00:31:11,720 --> 00:31:13,000 Now the real problem, though, 520 00:31:13,020 --> 00:31:13,880 turns out that, 521 00:31:15,360 --> 00:31:15,760 well, 522 00:31:17,400 --> 00:31:18,580 stuff back to yourself 523 00:31:18,580 --> 00:31:19,720 is still problematic. 524 00:31:20,280 --> 00:31:21,800 If it goes back to localhost, 525 00:31:21,940 --> 00:31:23,320 a lot of things don't get captured. 526 00:31:24,640 --> 00:31:26,760 Like Internet Explorer doesn't necessarily, 527 00:31:27,040 --> 00:31:28,020 even though you can tell it 528 00:31:29,520 --> 00:31:30,720 what host to go to 529 00:31:30,720 --> 00:31:32,480 and it does put localhost in there 530 00:31:32,480 --> 00:31:33,820 when you're accepting proxies, 531 00:31:33,860 --> 00:31:34,780 when you just set it manually, 532 00:31:35,360 --> 00:31:36,880 still a lot of things still work 533 00:31:36,880 --> 00:31:37,820 even if you remove that. 534 00:31:39,020 --> 00:31:42,120 So we still want to be able to hijack the browser itself, 535 00:31:42,380 --> 00:31:45,360 not just surround it in a proxifying thing. 536 00:31:46,140 --> 00:31:46,720 All right? 537 00:31:47,560 --> 00:31:49,620 But this actually takes care of a lot of our problems 538 00:31:49,620 --> 00:31:50,600 with the, 539 00:31:50,720 --> 00:31:51,840 at least the payload stuff 540 00:31:52,420 --> 00:31:55,120 and some of the identification of your internal network, 541 00:31:55,240 --> 00:31:56,700 not just your own local machine. 542 00:31:57,480 --> 00:31:58,060 All right? 543 00:31:58,220 --> 00:31:59,380 But if there's port scanning 544 00:31:59,380 --> 00:32:01,240 or the beef, 545 00:32:01,480 --> 00:32:03,460 the browser exploitation framework stuff, 546 00:32:04,240 --> 00:32:07,740 is mostly defeated by just doing this internally. 547 00:32:08,160 --> 00:32:09,400 I mean, yeah, your browser's still zombified. 548 00:32:09,640 --> 00:32:11,020 They can make you do stuff like go hit ads, 549 00:32:11,180 --> 00:32:12,300 but they're not going to find out more 550 00:32:12,300 --> 00:32:13,560 against your internal network. 551 00:32:16,640 --> 00:32:19,760 Now as far as payloads 552 00:32:19,760 --> 00:32:21,880 like cross-site scripting and classic stuff, 553 00:32:24,120 --> 00:32:24,780 that's tough. 554 00:32:25,020 --> 00:32:26,340 Again, it's been tough. 555 00:32:26,460 --> 00:32:27,300 It's been tough for everybody. 556 00:32:27,580 --> 00:32:29,360 Everybody gets bit by cross-site scripting. 557 00:32:29,380 --> 00:32:29,700 Eventually. 558 00:32:30,000 --> 00:32:30,940 It's one of those kind of things. 559 00:32:32,640 --> 00:32:35,660 So it's tough to do it reliably, 560 00:32:35,920 --> 00:32:37,060 but maybe we can, 561 00:32:37,200 --> 00:32:40,320 maybe that's a good voting system for us. 562 00:32:40,400 --> 00:32:40,560 Right? 563 00:32:40,600 --> 00:32:42,860 We have the no-script way to do granular, 564 00:32:43,380 --> 00:32:45,780 allow this object or this function, 565 00:32:46,100 --> 00:32:48,020 but people vote on what's good, 566 00:32:48,100 --> 00:32:51,040 or we rate on how dangerous that script might be, 567 00:32:51,520 --> 00:32:54,940 and then go through and add that up through the page, 568 00:32:55,420 --> 00:32:57,780 and then you've got a rating system like Spam Assassin 569 00:32:57,780 --> 00:33:00,540 that says this page looks a little more dangerous 570 00:33:00,540 --> 00:33:03,120 because of these types of scripts that are going. 571 00:33:03,620 --> 00:33:06,980 And you wait the JavaScript body 572 00:33:06,980 --> 00:33:09,680 that was between two script tags. 573 00:33:09,840 --> 00:33:12,420 It's all encoded and not clear text. 574 00:33:12,540 --> 00:33:14,000 Well, that might be worth a point. 575 00:33:14,400 --> 00:33:17,540 If it talks to the navigator.plugins object, 576 00:33:17,820 --> 00:33:19,340 well, maybe that's three points 577 00:33:19,340 --> 00:33:22,060 because just use the plugin. 578 00:33:22,200 --> 00:33:23,580 Don't ask me for my plugins. 579 00:33:23,660 --> 00:33:24,260 Just use it. 580 00:33:25,060 --> 00:33:26,680 That's not something I want you to do. 581 00:33:26,680 --> 00:33:29,520 Maybe we can add that up and aggregate it 582 00:33:29,520 --> 00:33:32,460 to know if that is a dangerous thing to block or not. 583 00:33:33,740 --> 00:33:35,660 Of course, that's going to require a lot of work 584 00:33:35,660 --> 00:33:36,940 and a lot of ongoing work, 585 00:33:37,180 --> 00:33:40,060 but I'd like to add that in with this project 586 00:33:40,060 --> 00:33:40,840 that we've started. 587 00:33:43,880 --> 00:33:45,040 Part of the problem is, too, 588 00:33:45,120 --> 00:33:47,220 like Peter was saying with Panoptic Click, 589 00:33:47,320 --> 00:33:49,080 there's not a lot of good data out there 590 00:33:49,080 --> 00:33:50,180 about things like this, 591 00:33:50,240 --> 00:33:51,860 but we have to start collecting it. 592 00:33:51,940 --> 00:33:52,800 We've got to start somewhere 593 00:33:52,800 --> 00:33:55,820 and then decide how realistic that is 594 00:33:55,820 --> 00:33:57,120 before we know where to go with it. 595 00:33:58,860 --> 00:34:00,960 So I think really the way to solve 596 00:34:00,960 --> 00:34:02,120 some of the problems that are introduced 597 00:34:02,120 --> 00:34:03,680 with extensions and browsers 598 00:34:03,680 --> 00:34:05,540 that are less than desirable, 599 00:34:07,300 --> 00:34:09,940 vendors are taking too long to deal with things. 600 00:34:10,020 --> 00:34:10,960 There's a lot of finger-pointing 601 00:34:10,960 --> 00:34:12,460 at certain organizations. 602 00:34:13,600 --> 00:34:15,380 And, well, some of the finger-pointing is deserved. 603 00:34:15,520 --> 00:34:16,020 Don't get me wrong. 604 00:34:16,980 --> 00:34:18,520 Certain people are more at fault than others. 605 00:34:18,600 --> 00:34:19,020 That's for sure. 606 00:34:19,260 --> 00:34:22,480 But until then, 607 00:34:22,600 --> 00:34:24,360 it's nice to be able to defend yourself. 608 00:34:24,360 --> 00:34:26,840 So between a browser extension 609 00:34:26,840 --> 00:34:29,000 or browser helper object and a proxy, 610 00:34:29,220 --> 00:34:32,480 we can really increase a little bit of safety. 611 00:34:32,940 --> 00:34:34,220 We can't take care of everything, 612 00:34:34,380 --> 00:34:36,720 but we can really take back control 613 00:34:36,720 --> 00:34:38,900 of our desktop a little better. 614 00:34:39,200 --> 00:34:40,520 So the suite we're doing, 615 00:34:40,620 --> 00:34:41,700 we're hosting at SourceForge. 616 00:34:42,940 --> 00:34:45,220 Everything we can is actually done in JavaScript 617 00:34:45,220 --> 00:34:46,340 to make it injectable. 618 00:34:46,960 --> 00:34:48,480 Wouldn't that be great if you injected 619 00:34:48,480 --> 00:34:50,300 in your proxy to protect 620 00:34:50,300 --> 00:34:53,500 your innocent, cheap workstation guys 621 00:34:54,200 --> 00:34:57,640 the stuff that would defeat things? 622 00:34:57,960 --> 00:34:58,980 So they browse somewhere 623 00:34:58,980 --> 00:35:00,520 and your proxy injects it 624 00:35:00,980 --> 00:35:03,600 instead of then figuring out 625 00:35:03,600 --> 00:35:04,520 how to disable their browser 626 00:35:04,520 --> 00:35:05,980 or using an unapproved browser 627 00:35:05,980 --> 00:35:07,680 on the network or something like that. 628 00:35:08,040 --> 00:35:10,040 So we try to do everything we can in JavaScript 629 00:35:10,040 --> 00:35:11,500 to supplement it. 630 00:35:12,220 --> 00:35:14,240 There are browser helper objects 631 00:35:14,240 --> 00:35:16,060 that give you the visibility into the browser itself. 632 00:35:16,800 --> 00:35:18,660 We have a few of those now that we've built. 633 00:35:18,780 --> 00:35:20,900 And we've leaned real heavy on those third-party tools. 634 00:35:21,120 --> 00:35:22,220 That's why we just call it a suite. 635 00:35:22,220 --> 00:35:25,220 So we have tools that do good stuff for us. 636 00:35:25,300 --> 00:35:26,320 Like NoScript is pretty good. 637 00:35:27,360 --> 00:35:29,680 And if you saw the talk last night 638 00:35:30,220 --> 00:35:33,000 on Blitzabliter. 639 00:35:33,740 --> 00:35:35,500 Sorry, German in the morning, not so good. 640 00:35:36,980 --> 00:35:39,720 Awesome stuff, but we need them all. 641 00:35:39,920 --> 00:35:42,400 So we're trying to try and get things all integrated. 642 00:35:43,280 --> 00:35:45,340 If we combine that with repository signatures, 643 00:35:45,620 --> 00:35:46,380 then we can now, 644 00:35:47,140 --> 00:35:48,860 we don't have to be completely anonymous. 645 00:35:48,960 --> 00:35:51,240 We can just look like everybody else is that. 646 00:35:51,240 --> 00:35:51,940 All right? 647 00:35:52,620 --> 00:35:53,960 Definitely looking for contributors, though. 648 00:35:54,480 --> 00:35:56,600 Contact me if you feel like you've got some resources 649 00:35:56,600 --> 00:35:57,460 you can put towards it. 650 00:35:57,500 --> 00:35:58,580 Both contributing signatures 651 00:35:58,580 --> 00:36:00,420 and we have a lot of work to do on code. 652 00:36:02,320 --> 00:36:04,440 So what we've leaned heavily on so far 653 00:36:04,440 --> 00:36:06,020 to kind of test things out was Fiddler. 654 00:36:06,140 --> 00:36:08,100 If you haven't seen it before, you probably should. 655 00:36:08,200 --> 00:36:08,980 Maybe you've heard of it and said, 656 00:36:09,060 --> 00:36:10,020 yeah, it's just another proxy. 657 00:36:10,580 --> 00:36:11,800 It's actually pretty slick 658 00:36:11,800 --> 00:36:14,740 because it has several cool components. 659 00:36:16,020 --> 00:36:19,480 Of course, it's portable enough in .NET 2.0 660 00:36:19,480 --> 00:36:20,720 as far as being able to run it 661 00:36:21,240 --> 00:36:22,860 and running it on a monoprocessor. 662 00:36:24,520 --> 00:36:26,780 It also works with Proxifier, big plus. 663 00:36:26,960 --> 00:36:27,960 There's not a problem with that. 664 00:36:28,440 --> 00:36:31,780 Even though it only naturally looks at HTTP and HTTPS, 665 00:36:31,860 --> 00:36:34,660 we can still make everything the browser does, 666 00:36:35,040 --> 00:36:37,560 everything Fiddler does, go through a proxy, 667 00:36:37,740 --> 00:36:38,900 which is pretty awesome. 668 00:36:39,160 --> 00:36:40,640 And it has Fiddler core, 669 00:36:40,940 --> 00:36:43,160 not just a GUI that lets you control stuff. 670 00:36:43,360 --> 00:36:46,280 We can actually consume its library 671 00:36:46,280 --> 00:36:48,240 by another .NET application 672 00:36:48,240 --> 00:36:51,860 and leverage the hijacking of our own browser, 673 00:36:52,000 --> 00:36:55,200 both as a proxy and as a hook into the browser. 674 00:36:56,520 --> 00:36:59,160 So it is written for Windows, 675 00:36:59,280 --> 00:37:01,100 but it can be used for other things. 676 00:37:01,420 --> 00:37:04,960 And it can be, because it is a full-fledged proxy, 677 00:37:05,080 --> 00:37:06,900 you can send it traffic from other places. 678 00:37:07,000 --> 00:37:08,940 One of the coolest extensions they have for Fiddler 679 00:37:08,940 --> 00:37:16,940 is a DHCP spoofing proxy detection 680 00:37:19,240 --> 00:37:19,680 hijack. 681 00:37:20,060 --> 00:37:21,340 It's an extension for Fiddler 682 00:37:21,340 --> 00:37:23,260 that will go hijack DHCP and tell people 683 00:37:23,260 --> 00:37:24,860 where the proxy is for the automatic detection. 684 00:37:25,120 --> 00:37:25,520 Pretty slick. 685 00:37:26,140 --> 00:37:27,420 But you can get it. 686 00:37:27,460 --> 00:37:28,120 You can get the source code. 687 00:37:28,400 --> 00:37:29,540 Lots of cool things happening. 688 00:37:29,940 --> 00:37:32,420 2.3.0 was released on, what was it, 689 00:37:32,420 --> 00:37:33,420 Wednesday, maybe Tuesday. 690 00:37:34,360 --> 00:37:35,600 Pretty cool stuff with Fiddler. 691 00:37:36,240 --> 00:37:37,340 What are we looking at doing? 692 00:37:39,960 --> 00:37:42,940 Well, switching from the classic 693 00:37:44,040 --> 00:37:45,740 antivirus signature detection stuff 694 00:37:45,740 --> 00:37:48,900 more towards fixing what the browser 695 00:37:48,900 --> 00:37:49,780 should be doing anyway. 696 00:37:52,100 --> 00:37:54,180 Defanging the stuff that's non-compliant 697 00:37:54,180 --> 00:37:55,100 and rebuilding it. 698 00:37:56,360 --> 00:37:58,440 The Blitzablider style from last night, 699 00:37:58,580 --> 00:38:01,200 you know, hey, we don't have to match the bad flash 700 00:38:01,200 --> 00:38:03,240 because they're so bad at writing it, 701 00:38:03,300 --> 00:38:04,620 we just have to break it apart, 702 00:38:04,860 --> 00:38:07,740 look at it, find out why this is non-conforming, 703 00:38:08,420 --> 00:38:09,860 and then that's probably enough reason 704 00:38:09,860 --> 00:38:10,440 to know it's bad. 705 00:38:12,740 --> 00:38:15,320 Not just for detection, but what if we rebuild it? 706 00:38:15,760 --> 00:38:17,700 Is the emphasis on defanging it, right? 707 00:38:17,740 --> 00:38:20,440 Go through and fix the code so that it's realigned. 708 00:38:20,500 --> 00:38:23,560 If it was a payload that was written to get around 709 00:38:24,140 --> 00:38:26,040 some filtering or written poorly, 710 00:38:26,560 --> 00:38:28,480 it breaks it often. 711 00:38:30,240 --> 00:38:31,620 Clean up the bad guy's code. 712 00:38:31,720 --> 00:38:32,760 Sometimes it doesn't work. 713 00:38:34,800 --> 00:38:36,840 Even if it doesn't work, well, at least now it's easier 714 00:38:36,840 --> 00:38:38,640 to do signature detection on once it's cleaned up. 715 00:38:39,600 --> 00:38:40,640 So that's the idea there. 716 00:38:41,420 --> 00:38:41,960 All right. 717 00:38:42,020 --> 00:38:43,560 Some other things that might be interesting 718 00:38:43,560 --> 00:38:45,400 that we're starting to experiment with a little bit, 719 00:38:45,400 --> 00:38:46,780 but we haven't got that far in the project, 720 00:38:47,020 --> 00:38:48,700 is using... 721 00:38:52,100 --> 00:38:54,020 basically copying into a temporary file 722 00:38:54,020 --> 00:38:56,180 how the browser rendered the page. 723 00:38:56,460 --> 00:38:57,760 So using the document object model 724 00:38:57,760 --> 00:39:00,080 to print what it says to a file 725 00:39:00,080 --> 00:39:02,020 and then faking the user agent string 726 00:39:02,020 --> 00:39:03,740 to a different user agent 727 00:39:03,740 --> 00:39:06,180 or maybe grabbing another browser instance specifically, 728 00:39:06,820 --> 00:39:09,680 and then basically hitting the page three or four times 729 00:39:09,680 --> 00:39:10,400 with different configurations 730 00:39:10,400 --> 00:39:11,520 to see how the page is different, 731 00:39:12,240 --> 00:39:15,300 and then diffing them to see how different they are. 732 00:39:15,400 --> 00:39:17,460 Now, just the fact they're different isn't good enough, 733 00:39:17,620 --> 00:39:21,560 but, you know, if there's just some subtle differences, 734 00:39:22,180 --> 00:39:23,580 maybe that's interesting to us. 735 00:39:23,660 --> 00:39:25,420 So that's something we're starting to look at. 736 00:39:25,480 --> 00:39:26,540 I don't know if we can get anything out of it, 737 00:39:26,620 --> 00:39:28,560 but it would be kind of neat to see if, 738 00:39:28,940 --> 00:39:31,320 wow, this is only exploiting Internet Explorer 8, 739 00:39:31,400 --> 00:39:33,840 and the Firefox and the Opera version of the page 740 00:39:34,300 --> 00:39:37,260 both seem to render okay and are very similar. 741 00:39:37,700 --> 00:39:39,460 You know, they're not trying to exploit you. 742 00:39:39,540 --> 00:39:41,300 Or if you come in as Googlebot, what do you see? 743 00:39:41,400 --> 00:39:42,560 You know, those kind of things. 744 00:39:44,120 --> 00:39:44,840 Could be... 745 00:39:44,840 --> 00:39:46,940 You know, especially if we do the waiting, 746 00:39:47,120 --> 00:39:49,240 the spam assassin style of how dangerous it is, 747 00:39:49,360 --> 00:39:51,500 we could pick the least dangerous version 748 00:39:51,500 --> 00:39:52,380 to display to the browser. 749 00:39:53,740 --> 00:39:54,440 Significant overhead, 750 00:39:54,740 --> 00:39:56,480 but I'm kind of liking the idea 751 00:39:56,480 --> 00:39:59,180 of being able to look at things 752 00:39:59,180 --> 00:40:00,720 in four different ways at the same time. 753 00:40:01,640 --> 00:40:02,200 All right? 754 00:40:02,980 --> 00:40:05,240 Using an alternative browser to render that. 755 00:40:05,700 --> 00:40:07,960 All right, so demos, I'm not dumb enough 756 00:40:07,960 --> 00:40:09,380 to try and show you something, 757 00:40:09,460 --> 00:40:10,940 see how it doesn't work, it breaks it. 758 00:40:12,040 --> 00:40:13,060 I learned last time. 759 00:40:14,320 --> 00:40:16,480 Showing you something that's supposed to be not working 760 00:40:16,480 --> 00:40:18,260 is not very helpful in a demo, 761 00:40:18,420 --> 00:40:19,960 because, see, it didn't work. 762 00:40:21,200 --> 00:40:22,340 But I've got some screenshots. 763 00:40:22,600 --> 00:40:23,700 So, for example, 764 00:40:24,440 --> 00:40:26,980 here's just a simple JavaScript enumeration. 765 00:40:27,260 --> 00:40:29,620 It uses the navigator.agent, pulls it in. 766 00:40:29,980 --> 00:40:31,680 Now, if you fake your user agent string, 767 00:40:32,420 --> 00:40:34,360 this still says the real user agent string, 768 00:40:34,500 --> 00:40:35,720 or the real browser agent, 769 00:40:35,860 --> 00:40:37,820 because it asks via JavaScript what it is. 770 00:40:38,060 --> 00:40:40,380 So you spoof your user agent string, not good enough. 771 00:40:43,660 --> 00:40:45,680 The HTML source code shows you there. 772 00:40:45,820 --> 00:40:48,980 It's just the navigator.agent object, 773 00:40:49,460 --> 00:40:51,380 although I just realized I mistyped it 774 00:40:51,380 --> 00:40:55,320 in the left-hand side of the equal sign. 775 00:40:55,540 --> 00:40:58,320 Navigator.useragent is correct on the right-hand side. 776 00:41:00,260 --> 00:41:04,500 Once we've injected our custom JavaScript kludge, 777 00:41:04,660 --> 00:41:06,460 which it is, I'll admit, not perfect, 778 00:41:06,520 --> 00:41:07,660 but, hey, it's good enough. 779 00:41:07,840 --> 00:41:08,960 It's better than what we have. 780 00:41:10,380 --> 00:41:11,260 It sees that, fakes it. 781 00:41:11,640 --> 00:41:13,120 Now, the cool thing about Fiddler is, 782 00:41:13,340 --> 00:41:16,560 even though HTTP is sessionless itself, right, 783 00:41:16,660 --> 00:41:18,800 you have request-response, and that's it. 784 00:41:19,620 --> 00:41:21,860 The application depends on things like cookies 785 00:41:21,860 --> 00:41:23,440 or session IDs to tie them together. 786 00:41:25,480 --> 00:41:27,740 Fiddler does its own session mapping 787 00:41:27,740 --> 00:41:28,760 to request and response. 788 00:41:29,040 --> 00:41:31,500 It says, this is the response for the request I just sent. 789 00:41:32,460 --> 00:41:35,620 And that gives it visibility to what request it sent. 790 00:41:35,780 --> 00:41:38,060 So it grabs what user agent you spoofed 791 00:41:38,060 --> 00:41:39,660 and responds. 792 00:41:40,380 --> 00:41:42,380 And just directly inserts the string there. 793 00:41:43,620 --> 00:41:44,800 Again, not perfect. 794 00:41:45,080 --> 00:41:46,400 And it's easy to break this. 795 00:41:46,540 --> 00:41:49,540 If I put in window.navigator.agent, 796 00:41:49,620 --> 00:41:52,160 then in the resulting source code here 797 00:41:52,160 --> 00:41:53,100 at the bottom of the slide, 798 00:41:54,600 --> 00:41:56,320 it will actually window dot 799 00:41:56,320 --> 00:41:58,660 and then the double quote in the string, 800 00:41:58,880 --> 00:42:00,000 which JavaScript's not going to like. 801 00:42:00,100 --> 00:42:02,140 It wants it to be concatenated with a plus sign, right? 802 00:42:02,900 --> 00:42:03,780 But guess what? 803 00:42:03,880 --> 00:42:05,160 Hey, if we broke the script, great. 804 00:42:05,380 --> 00:42:06,240 I'm all for that. 805 00:42:06,240 --> 00:42:08,640 You know, I'm perfectly fine with breaking the script 806 00:42:08,640 --> 00:42:11,300 that probably is just enumerating my navigator agent. 807 00:42:11,580 --> 00:42:12,280 I don't care. 808 00:42:12,360 --> 00:42:12,900 Client side? 809 00:42:13,360 --> 00:42:15,120 My agent knows what it is. 810 00:42:16,100 --> 00:42:16,500 Right? 811 00:42:17,060 --> 00:42:18,620 I mean, what use is that? 812 00:42:18,660 --> 00:42:21,020 You're telling me to ask myself who I am. 813 00:42:22,960 --> 00:42:25,220 So what, I mean, an application that does that 814 00:42:25,220 --> 00:42:29,620 is only, you know, either written silly 815 00:42:30,780 --> 00:42:31,960 or up to no good. 816 00:42:32,760 --> 00:42:34,040 So if it breaks it, great. 817 00:42:34,200 --> 00:42:35,320 It happens to work out great for that. 818 00:42:36,540 --> 00:42:39,720 Now, the actual Fiddler code that changes that code 819 00:42:40,360 --> 00:42:42,100 looks like this, all right, 820 00:42:42,160 --> 00:42:45,560 where first we just, to try and minimize 821 00:42:46,180 --> 00:42:48,980 the signature detection against every kind of content, 822 00:42:49,140 --> 00:42:50,700 we only look at the HTML. 823 00:42:51,120 --> 00:42:54,540 We go through and normalize it to UTF-8 as best we can, 824 00:42:55,260 --> 00:42:56,360 which actually works fairly well. 825 00:42:57,480 --> 00:42:59,640 And then if there's a navigator dot something 826 00:42:59,640 --> 00:43:01,120 anywhere in the page, 827 00:43:01,320 --> 00:43:02,440 which would even be JavaScript, 828 00:43:03,420 --> 00:43:05,300 it's going to go through and replace it 829 00:43:06,020 --> 00:43:07,520 There's a couple of ways to do it. 830 00:43:07,740 --> 00:43:09,360 One is to actually change the length. 831 00:43:11,740 --> 00:43:14,000 And that's actually for the plug-ins that, 832 00:43:15,920 --> 00:43:19,580 if you ask navigator dot plug-ins what plug-ins you have, 833 00:43:19,920 --> 00:43:22,120 and you can actually set the length equal to zero, 834 00:43:22,620 --> 00:43:25,180 and then it won't show up as navigator dot plug-ins 835 00:43:25,180 --> 00:43:26,140 in Firefox right now. 836 00:43:26,500 --> 00:43:27,680 I don't know how long that's been. 837 00:43:27,740 --> 00:43:29,220 I haven't regressed tested that the whole way. 838 00:43:29,520 --> 00:43:30,420 But it's kind of cool. 839 00:43:30,500 --> 00:43:33,240 If I inject navigator dot plug-ins dot length equals zero 840 00:43:33,240 --> 00:43:35,120 into something that's numerating my plug-ins, 841 00:43:35,120 --> 00:43:36,500 it shows up with no plug-ins. 842 00:43:37,140 --> 00:43:39,160 Of course, they can still try to use the plug-in 843 00:43:39,160 --> 00:43:39,980 and know it's there. 844 00:43:40,440 --> 00:43:41,420 And that's the easy way. 845 00:43:42,860 --> 00:43:44,180 But this is one way. 846 00:43:44,400 --> 00:43:45,940 You know, your system can be, 847 00:43:46,700 --> 00:43:48,700 have these fingerprints in any different combination. 848 00:43:49,520 --> 00:43:51,100 You have to be able to feed all of them. 849 00:43:51,160 --> 00:43:52,300 So that's what the first one does. 850 00:43:52,400 --> 00:43:53,780 But this user ID string at the bottom 851 00:43:53,780 --> 00:43:55,300 is the one that replaces it on the request. 852 00:43:56,020 --> 00:43:57,400 Sorry, replaces it on the response, 853 00:43:57,680 --> 00:43:58,640 but from the request. 854 00:43:59,420 --> 00:44:02,340 Which is why having both a browser helper object 855 00:44:02,340 --> 00:44:04,520 and a proxy together is the way to go. 856 00:44:05,120 --> 00:44:07,380 Because we can now track the session real. 857 00:44:08,700 --> 00:44:09,200 All right. 858 00:44:11,360 --> 00:44:13,700 Here's the navigator dot plug-ins enumerating. 859 00:44:15,680 --> 00:44:17,580 This is the result of what it looks like 860 00:44:17,580 --> 00:44:19,160 when it works. 861 00:44:19,340 --> 00:44:21,140 This is just a proof of concept here. 862 00:44:21,800 --> 00:44:22,600 Was this from, 863 00:44:23,720 --> 00:44:25,980 I think I leaned on browser spy for this one. 864 00:44:28,700 --> 00:44:29,900 And of course, once it's working, 865 00:44:29,940 --> 00:44:30,600 see, it doesn't work. 866 00:44:31,040 --> 00:44:31,940 No plug-ins. 867 00:44:32,200 --> 00:44:34,000 And all we really did was we injected 868 00:44:38,200 --> 00:44:38,600 an equal zero. 869 00:44:38,600 --> 00:44:39,700 We injected an equal zero. 870 00:44:40,460 --> 00:44:41,860 Prepended it to whatever was there. 871 00:44:42,900 --> 00:44:44,120 Turns out that's good enough. 872 00:44:44,360 --> 00:44:45,080 It breaks it. 873 00:44:45,380 --> 00:44:46,280 That's fine with me. 874 00:44:48,000 --> 00:44:49,260 If it didn't break it, 875 00:44:49,320 --> 00:44:51,160 depending on if they just didn't set it to this 876 00:44:51,160 --> 00:44:52,280 variable L, 877 00:44:53,380 --> 00:44:54,860 then they would still be able to 878 00:44:55,880 --> 00:44:56,560 use it. 879 00:44:56,640 --> 00:44:57,840 If they weren't setting it to a variable, 880 00:44:57,980 --> 00:44:59,640 just using inline, it would still replace it 881 00:44:59,640 --> 00:45:00,560 with something that would break it. 882 00:45:00,560 --> 00:45:01,420 So good enough. 883 00:45:02,680 --> 00:45:03,480 All right. 884 00:45:03,920 --> 00:45:06,620 So it's tough and we've got a lot of ground to cover. 885 00:45:07,160 --> 00:45:08,860 But it's not as hard as we've kind of 886 00:45:08,860 --> 00:45:09,680 let it get. 887 00:45:09,960 --> 00:45:10,940 We've let it get out of control. 888 00:45:11,980 --> 00:45:13,640 As far as the anonymizing stuff, 889 00:45:15,580 --> 00:45:16,840 there's a lot of things we can do 890 00:45:16,840 --> 00:45:17,840 to try and increase 891 00:45:18,620 --> 00:45:20,060 a little bit of privacy. 892 00:45:20,280 --> 00:45:22,720 Give us a little bit of an edge 893 00:45:22,720 --> 00:45:24,720 when it comes to being fingerprinted. 894 00:45:26,280 --> 00:45:27,900 And then that will also kind of 895 00:45:27,900 --> 00:45:28,560 neuter some of the attacks 896 00:45:28,560 --> 00:45:30,120 because they often need to know 897 00:45:30,560 --> 00:45:32,360 what browser you have to own you. 898 00:45:32,600 --> 00:45:32,680 Right? 899 00:45:33,280 --> 00:45:34,580 So there's a couple things we can do there. 900 00:45:35,940 --> 00:45:37,500 Normally I don't want to be one of the herd, 901 00:45:37,640 --> 00:45:39,380 but when you're running around with people 902 00:45:39,380 --> 00:45:40,440 you can consider your peers, 903 00:45:40,520 --> 00:45:41,220 maybe that's not so bad. 904 00:45:41,520 --> 00:45:43,100 So the more of us that contribute signatures, 905 00:45:45,000 --> 00:45:46,820 the more interesting things might get 906 00:45:46,820 --> 00:45:47,560 as far as privacy. 907 00:45:47,800 --> 00:45:49,860 So I have a few extra minutes. 908 00:45:49,980 --> 00:45:50,860 Does anybody have any questions? 909 00:45:53,580 --> 00:45:53,960 Yeah? 910 00:45:54,140 --> 00:45:55,120 What about Zeus? 911 00:45:58,420 --> 00:45:59,440 That's not me. 912 00:46:02,100 --> 00:46:02,580 . 913 00:46:04,620 --> 00:46:05,780 That's always my fear, 914 00:46:05,920 --> 00:46:08,240 but I can prove that's not what my laptop has on it. 915 00:46:08,560 --> 00:46:08,880 Okay? 916 00:46:10,480 --> 00:46:10,960 . 917 00:46:11,820 --> 00:46:12,300 . 918 00:46:13,460 --> 00:46:14,460 What about Zeus? 919 00:46:15,780 --> 00:46:17,000 What about Zeus? 920 00:46:17,660 --> 00:46:18,800 Well, what about it? 921 00:46:18,860 --> 00:46:19,260 What do you mean? 922 00:46:20,240 --> 00:46:20,720 . 923 00:46:24,680 --> 00:46:25,860 Oh, redirecting the stuff. 924 00:46:26,040 --> 00:46:27,960 Yeah, we can totally hijack redirects. 925 00:46:30,500 --> 00:46:32,820 The problem as experimenting with it, 926 00:46:32,880 --> 00:46:33,920 hijacking redirects, 927 00:46:33,920 --> 00:46:35,000 is there's a lot of them 928 00:46:35,000 --> 00:46:36,100 in a lot of applications. 929 00:46:38,440 --> 00:46:41,500 The way that it could help, 930 00:46:41,680 --> 00:46:44,140 which I don't have it specifically yet, 931 00:46:44,300 --> 00:46:44,660 which I don't have it specifically yet, 932 00:46:44,660 --> 00:46:48,220 but if we manipulate the redirects slightly, 933 00:46:48,920 --> 00:46:49,480 but if we manipulate the redirects slightly, 934 00:46:49,480 --> 00:46:51,620 and see the nice thing about having the proxy too, 935 00:46:51,680 --> 00:46:51,700 and see the nice thing about having the proxy too, 936 00:46:51,700 --> 00:46:52,460 especially when you're talking about 937 00:46:52,460 --> 00:46:53,660 a whole network of machines 938 00:46:53,660 --> 00:46:54,480 that you're doing this for, 939 00:46:55,160 --> 00:46:57,680 once you've scanned it 940 00:46:57,960 --> 00:47:00,020 or at least weighted how dangerous it is, 941 00:47:00,160 --> 00:47:01,880 or okayed or whitelisted, 942 00:47:01,920 --> 00:47:03,000 you can cache it, right? 943 00:47:03,340 --> 00:47:04,960 So the bait and switch stuff, 944 00:47:05,120 --> 00:47:06,580 as far as redirects, 945 00:47:06,580 --> 00:47:08,160 like it's clean there, 946 00:47:09,320 --> 00:47:10,560 you'll save that. 947 00:47:14,380 --> 00:47:14,960 . 948 00:47:15,960 --> 00:47:16,540 . 949 00:47:16,540 --> 00:47:16,640 . 950 00:47:16,640 --> 00:47:17,040 . 951 00:47:17,040 --> 00:47:17,280 . 952 00:47:21,340 --> 00:47:22,980 Especially the cookie, 953 00:47:24,440 --> 00:47:25,520 what do you call it? 954 00:47:26,120 --> 00:47:26,700 . 955 00:47:27,960 --> 00:47:28,600 . 956 00:47:31,780 --> 00:47:32,480 . 957 00:47:34,740 --> 00:47:36,140 . 958 00:47:36,140 --> 00:47:37,100 . 959 00:47:37,100 --> 00:47:37,240 . 960 00:47:37,240 --> 00:47:37,680 . 961 00:47:39,260 --> 00:47:40,660 . 962 00:47:40,660 --> 00:47:43,180 . 963 00:47:43,180 --> 00:47:43,440 . 964 00:47:50,100 --> 00:47:50,620 . 965 00:47:50,620 --> 00:47:50,920 . 966 00:47:50,920 --> 00:47:51,520 . 967 00:47:53,060 --> 00:47:53,580 . 968 00:47:53,580 --> 00:47:53,620 . 969 00:47:53,620 --> 00:47:53,660 . 970 00:47:53,660 --> 00:47:53,840 . 971 00:47:53,840 --> 00:47:53,860 . 972 00:47:53,860 --> 00:47:53,880 . 973 00:48:06,660 --> 00:48:07,180 . 974 00:48:09,960 --> 00:48:10,200 . 975 00:48:15,960 --> 00:48:16,200 . 976 00:48:22,360 --> 00:48:22,600 . 977 00:48:22,600 --> 00:48:22,760 . 978 00:48:22,760 --> 00:48:22,800 . 979 00:48:22,800 --> 00:48:22,840 . 980 00:48:22,840 --> 00:48:22,880 . 981 00:48:22,880 --> 00:48:22,980 . 982 00:48:22,980 --> 00:48:23,120 . 983 00:48:23,120 --> 00:48:23,140 . 984 00:48:23,980 --> 00:48:24,220 . 985 00:48:25,040 --> 00:48:25,280 . 986 00:48:25,280 --> 00:48:25,320 . 987 00:48:25,320 --> 00:48:25,340 . 988 00:48:25,340 --> 00:48:25,560 . 989 00:48:26,420 --> 00:48:26,620 . 990 00:48:40,680 --> 00:48:40,880 . 991 00:48:41,100 --> 00:48:41,300 . 992 00:48:41,300 --> 00:48:41,400 . 993 00:48:41,400 --> 00:48:41,420 . 994 00:48:41,420 --> 00:48:41,440 . 995 00:48:41,440 --> 00:48:41,460 . 996 00:48:41,460 --> 00:48:41,480 . 997 00:48:41,480 --> 00:48:41,500 . 998 00:48:41,500 --> 00:48:41,520 . 999 00:48:41,520 --> 00:48:41,900 . 1000 00:48:41,900 --> 00:48:42,020 . 1001 00:48:42,020 --> 00:48:42,920 . 1002 00:48:42,920 --> 00:48:43,020 . 1003 00:48:43,020 --> 00:48:43,940 . 1004 00:48:43,940 --> 00:48:44,460 . 1005 00:48:44,460 --> 00:48:45,400 . 1006 00:48:45,400 --> 00:48:47,940 . 1007 00:48:47,940 --> 00:48:50,400 . 1008 00:48:52,500 --> 00:48:53,900 . 1009 00:48:53,900 --> 00:48:54,920 . 1010 00:48:54,920 --> 00:48:54,940 . 1011 00:48:54,940 --> 00:48:56,720 . 1012 00:48:59,480 --> 00:49:00,880 . 1013 00:49:02,880 --> 00:49:04,280 . 1014 00:49:04,280 --> 00:49:04,340 . 1015 00:49:04,340 --> 00:49:05,080 . 1016 00:49:24,680 --> 00:49:31,040 right yeah the the question was um is it designed so that we can have it portable enough to have on 1017 00:49:31,040 --> 00:49:35,500 random machines to build up the pool uh you said in fact i don't know i would use the word in fact 1018 00:49:35,500 --> 00:49:44,360 but um to supplement the uh supplement uh the collection of signatures and to help us increase 1019 00:49:44,360 --> 00:49:50,900 and protect other people yeah it is um definitely um uh possible some of the browser helper object 1020 00:49:50,900 --> 00:49:58,340 stuff isn't that portable as far as it wants to be able to see something it can talk to uh so that 1021 00:49:58,340 --> 00:50:01,840 would be something to work on in the future definitely something that had more of a web 1022 00:50:01,840 --> 00:50:05,340 service model to go and deal with signatures and update and things like that but 1023 00:50:05,340 --> 00:50:09,320 uh that's a lot of work left to do we want to work out the mechanics and see if it's worth 1024 00:50:09,320 --> 00:50:14,380 deploying an infrastructure to do it to support it all right i'm pretty much out of time but we're 1025 00:50:14,380 --> 00:50:19,100 going to go to 113 if anybody else has any questions uh uh feel free to send me an email 1026 00:50:19,100 --> 00:50:24,000 it's easy enough to find me um but thanks for coming here on a sunday morning appreciate it 1027 00:50:24,580 --> 00:50:25,160 thanks guys