1 00:00:00,000 --> 00:00:01,180 I'd like to thank everyone for attending. 2 00:00:02,420 --> 00:00:07,880 If you looked at the abstract on the website, you probably noticed that there was several speakers. 3 00:00:08,700 --> 00:00:14,480 We've had a few of them. One of them had to bow out due to political complications with his work. 4 00:00:14,980 --> 00:00:20,000 There was a tendency to believe that this presentation might have some information that was sensitive, 5 00:00:20,120 --> 00:00:24,380 that they simply violated, say, code of ethics just to talk about. 6 00:00:25,260 --> 00:00:26,780 But the message will be spread. 7 00:00:28,440 --> 00:00:35,660 We have with us today Sean Barnum, Cybersecurity Principal, and Chris Peterson from AppSec from Zynga. 8 00:00:37,080 --> 00:00:42,760 What we're going to be talking about today is the various ways in which you can abuse, 9 00:00:43,900 --> 00:00:48,240 essentially, the Facebook API through the gaming infrastructure 10 00:00:48,240 --> 00:00:55,920 and how this can be used to do cyberbullying, play practical jokes, but also do some serious things. 11 00:00:55,920 --> 00:01:01,180 The final note I'd say about it is we discovered this research, I did through prowling around, 12 00:01:01,800 --> 00:01:06,280 and I have some families that are completely addicted to YoVille, and they were getting attacked. 13 00:01:06,520 --> 00:01:10,440 So I just started digging into it, and one thing led to another, and it turned out to be, you know, 14 00:01:10,460 --> 00:01:13,100 what I thought to be a topic worthy of talking about. 15 00:01:14,360 --> 00:01:15,900 A couple of disclaimers, though. 16 00:01:16,040 --> 00:01:23,500 One, we're not going to be hitting you with some brand-new type of attack that's just going to blow your mind. 17 00:01:25,100 --> 00:01:25,900 Rather, this is going to be a topic that's going to blow your mind. 18 00:01:25,920 --> 00:01:32,140 This is more akin to, if someone has skill with a man-in-the-middle proxy, that malicious intent. 19 00:01:33,120 --> 00:01:35,860 This will show you a wide range of things they can do. 20 00:01:36,080 --> 00:01:40,140 So what we're talking about is that the damage that you can do with basic skills 21 00:01:40,740 --> 00:01:44,560 and the malware and the structured attacks you'll see later on that we'll show 22 00:01:44,560 --> 00:01:49,040 actually originated out of the Philippines in February of this year. 23 00:01:51,280 --> 00:01:54,720 Oh, and finally, we're not here to bash Zynga or Facebook. 24 00:01:55,920 --> 00:01:58,640 We're just actually showing attacks that are actually happening. 25 00:01:58,880 --> 00:02:02,280 And in the remediation section, where we'll talk about solutions, 26 00:02:02,380 --> 00:02:08,260 you'll actually see some work that's been going on that's proactive to defend against the things that we're talking about. 27 00:02:10,080 --> 00:02:16,080 So first, I'd just like to show you on the very basic idea that down on the farm, I'm growing the good stuff. 28 00:02:18,640 --> 00:02:21,900 Believe me, I have a great farm, and I'm growing the OG kush. 29 00:02:22,140 --> 00:02:25,160 So no one can touch my farm building. 30 00:02:27,260 --> 00:02:29,620 This is actually where I grow it in my pad. 31 00:02:29,980 --> 00:02:34,960 But more important, the little shot you see, this is from Yeovil. 32 00:02:35,380 --> 00:02:41,160 And Yeovil has a meager population, you might say, of 8.8 million unique users per month. 33 00:02:42,100 --> 00:02:50,980 The total Zynga population of games that are out there, 254 million unique users per month. 34 00:02:51,220 --> 00:02:54,020 So we're not talking about a small user population. 35 00:02:54,020 --> 00:03:00,660 As you can see, that's enough people that it gives an incentive for phishing and all kinds of different attacks 36 00:03:00,660 --> 00:03:09,440 that might prey on people who aren't cybersecurity experts, who are in a position to trust what they see. 37 00:03:09,540 --> 00:03:13,840 And we're also going to talk about the reasons for why that trust exists in several slides. 38 00:03:14,960 --> 00:03:17,940 I'd really like to thank Chris for being here with us today. 39 00:03:19,220 --> 00:03:21,720 When we brought this matter to his attention, 40 00:03:21,720 --> 00:03:27,040 he was very gracious, we had several email discussions, he was already aware of it. 41 00:03:27,560 --> 00:03:29,440 There was already a solution in the works. 42 00:03:30,700 --> 00:03:35,880 The security fix has been developed by Facebook, and Sean's going to talk to you more about that toward the end. 43 00:03:36,700 --> 00:03:41,880 The Facebook application API can still be abused, and we'll also tell you why, 44 00:03:42,540 --> 00:03:45,580 and perhaps things that may happen in the future that make that more difficult. 45 00:03:47,460 --> 00:03:49,340 Why should you care, right? 46 00:03:49,880 --> 00:03:51,300 Do any of you out there... 47 00:03:51,720 --> 00:03:53,260 Play games on Facebook? 48 00:03:53,520 --> 00:03:54,400 Mafia Wars? 49 00:03:54,640 --> 00:03:55,360 Secret Delight? 50 00:03:55,400 --> 00:03:55,960 Don't want to admit it? 51 00:03:59,260 --> 00:04:07,680 Well, here are some statistics that show you the extent of the penetration of these games. 52 00:04:07,780 --> 00:04:10,960 There's currently over 80,000 apps on Facebook. 53 00:04:12,460 --> 00:04:15,660 Any number of which could be potentially malicious. 54 00:04:16,860 --> 00:04:18,020 Social gaming. 55 00:04:18,580 --> 00:04:20,800 1.6 billion this year. 56 00:04:20,800 --> 00:04:26,240 Projected market cap of over 15 billion by 2015, so that's pretty significant. 57 00:04:28,680 --> 00:04:32,160 300 million people in July is a lot. 58 00:04:33,300 --> 00:04:37,120 Now, one trend to realize is it's not just people playing on their PCs, 59 00:04:37,800 --> 00:04:41,800 but it may be people playing at work, or it may be people playing on their PDA, 60 00:04:42,080 --> 00:04:44,840 and all these things become new attack vectors for you. 61 00:04:45,000 --> 00:04:50,240 So what you're going to see is there's going to be instances where someone's... 62 00:04:50,240 --> 00:04:55,440 mobile device is compromised because of a social game. 63 00:04:55,800 --> 00:04:58,620 And this can be a huge market for the underground. 64 00:05:01,260 --> 00:05:03,660 On a side note, I have a friend who was... 65 00:05:04,460 --> 00:05:09,580 basically the going value of malware on the underground related to these things, 66 00:05:09,680 --> 00:05:15,780 he was offered $15,000 if he would write a piece of malware for these purposes. 67 00:05:16,040 --> 00:05:16,820 Of course... 68 00:05:18,540 --> 00:05:21,980 the most important point is social gaming is going on, 69 00:05:22,000 --> 00:05:23,220 on the networks you're trying to protect. 70 00:05:23,600 --> 00:05:27,400 So everything you're doing, however you're locking down your infrastructure, 71 00:05:27,800 --> 00:05:29,860 you've probably got someone out there gardening. 72 00:05:30,700 --> 00:05:34,520 At least planting seeds and waiting, you know, going to collect them later. 73 00:05:34,740 --> 00:05:36,900 And this is happening on your network, 74 00:05:37,100 --> 00:05:40,980 and so it can actually inadvertently become a way of compromising the network 75 00:05:40,980 --> 00:05:42,180 and getting access to the inside. 76 00:05:42,400 --> 00:05:46,000 So I think these are a number of reasons why you really should care what's going on. 77 00:05:47,860 --> 00:05:49,520 Here's the roadmap we're going to take you. 78 00:05:49,640 --> 00:05:50,900 This was our brief introduction. 79 00:05:51,180 --> 00:05:54,900 We're going to talk about client-side trust attacks within application APIs, 80 00:05:55,540 --> 00:05:58,880 a number of attack patterns against social network gaming. 81 00:05:59,200 --> 00:06:01,080 And these attack patterns are really generalized. 82 00:06:01,320 --> 00:06:02,400 Sean will speak more to them. 83 00:06:02,760 --> 00:06:06,220 And they are general patterns of attack that go beyond Facebook 84 00:06:06,220 --> 00:06:07,660 or any Facebook applications, 85 00:06:07,820 --> 00:06:11,040 but can relate to any site where you have an application framework 86 00:06:11,040 --> 00:06:12,180 and an app within an app. 87 00:06:13,040 --> 00:06:14,820 Some of our impact sections, 88 00:06:15,100 --> 00:06:16,700 we'll use Yoaville as an example. 89 00:06:17,540 --> 00:06:20,940 That's just one site that I was very familiar with 90 00:06:20,940 --> 00:06:21,980 and had family playing, 91 00:06:22,120 --> 00:06:24,120 and so I was sort of just focusing on that. 92 00:06:25,060 --> 00:06:26,740 And then lastly, most importantly, 93 00:06:26,860 --> 00:06:29,100 we're going to tell you how to keep your software off the stage. 94 00:06:33,120 --> 00:06:33,940 All right, Chris. 95 00:06:37,740 --> 00:06:42,360 So thank you, by the way, for allowing me to do this with you guys. 96 00:06:43,340 --> 00:06:45,880 I wanted to talk a little bit about some of the reasons 97 00:06:45,880 --> 00:06:48,920 for these issues that they've discovered in the network. 98 00:06:49,640 --> 00:06:52,600 And it's easy to sort of jump to the conclusion 99 00:06:52,600 --> 00:06:53,860 that it's just a bad architecture 100 00:06:53,860 --> 00:06:55,560 and that they've made some kind of fatal flaw 101 00:06:55,560 --> 00:06:56,920 in how they architected the system, 102 00:06:57,040 --> 00:06:59,500 and that's what led to these particular issues being there. 103 00:06:59,660 --> 00:07:02,100 But the reality is that it's a very complicated system 104 00:07:02,100 --> 00:07:03,020 that's been created, 105 00:07:03,220 --> 00:07:06,700 and there's multiple trust domains that are interacting with each other here. 106 00:07:06,760 --> 00:07:08,620 You've got the trust that the user has 107 00:07:08,620 --> 00:07:10,200 with the application framework itself, 108 00:07:10,400 --> 00:07:11,260 in this case, Facebook. 109 00:07:11,600 --> 00:07:13,440 You've got the trust that the user has 110 00:07:13,440 --> 00:07:14,940 with the application itself, 111 00:07:14,940 --> 00:07:16,680 in this case, Youville. 112 00:07:16,940 --> 00:07:18,660 And then you've got the trust that goes on 113 00:07:18,660 --> 00:07:20,300 between the application and the framework, 114 00:07:20,440 --> 00:07:23,560 so between our Zynga applications and Facebook, for instance. 115 00:07:23,800 --> 00:07:26,080 And all of those various trust relationships 116 00:07:26,080 --> 00:07:27,720 are sort of distinct from each other, 117 00:07:27,800 --> 00:07:30,380 and the protocols and techniques that have been designed 118 00:07:30,380 --> 00:07:34,460 are specifically designed to protect the various trust boundaries. 119 00:07:34,720 --> 00:07:37,860 So in some of the techniques that you're going to see later in the presentation, 120 00:07:38,400 --> 00:07:42,720 there are attacks going on against the man-in-the-middle communication 121 00:07:42,720 --> 00:07:43,720 between the client 122 00:07:43,720 --> 00:07:45,780 and the application framework, 123 00:07:46,120 --> 00:07:48,320 and it seems like the obvious solution would be 124 00:07:48,320 --> 00:07:49,700 to just have the application itself 125 00:07:49,700 --> 00:07:52,920 send those messages directly to the back end of the framework 126 00:07:52,920 --> 00:07:54,600 and eliminate this whole scenario. 127 00:07:54,820 --> 00:07:56,880 The problem is that the application framework 128 00:07:56,880 --> 00:07:58,780 is actually responsible for protecting 129 00:07:58,780 --> 00:08:02,020 the privileged operations that the user is doing. 130 00:08:02,280 --> 00:08:06,140 And so these transactions need to originate from the user 131 00:08:06,140 --> 00:08:08,620 so that the framework can validate 132 00:08:08,620 --> 00:08:11,140 that in fact this is a user operation that they've authorized. 133 00:08:11,500 --> 00:08:13,160 So that leads to some of these issues. 134 00:08:13,160 --> 00:08:14,540 Now, as you'll see towards the end, 135 00:08:14,600 --> 00:08:16,080 they've actually done some stuff to improve this, 136 00:08:16,160 --> 00:08:18,200 but fundamentally the architecture's not flawed, 137 00:08:18,360 --> 00:08:20,620 it's just a very complicated relationship going on. 138 00:08:22,200 --> 00:08:24,240 Another thing that you'll see in some of these 139 00:08:24,240 --> 00:08:27,160 is that there's a lot of trust that's been placed 140 00:08:27,160 --> 00:08:29,920 in the client side of these operations 141 00:08:29,920 --> 00:08:32,740 between the application, say Zynga servers, 142 00:08:33,000 --> 00:08:34,600 and the Zynga client side application. 143 00:08:34,980 --> 00:08:36,260 And there's a reason for that as well. 144 00:08:36,400 --> 00:08:38,420 You know, as you saw earlier, our games are huge, 145 00:08:39,020 --> 00:08:41,580 we've got hundreds of millions of users playing every month, 146 00:08:41,700 --> 00:08:43,140 and in order for us to scale, 147 00:08:43,160 --> 00:08:46,060 we've got to push at least a large part 148 00:08:46,060 --> 00:08:49,740 of the processing of the game logic down to the client side. 149 00:08:49,880 --> 00:08:51,260 It's really the only way that we can scale 150 00:08:51,260 --> 00:08:52,840 with that size of user base. 151 00:08:54,780 --> 00:08:56,620 Some of the other things, though, that they've seen 152 00:08:56,620 --> 00:08:59,240 that are related to this, why this threat is so large, 153 00:08:59,760 --> 00:09:04,220 we've got the ubiquity of this across the network. 154 00:09:04,360 --> 00:09:06,700 So there's hundreds of millions, by the latest estimates, 155 00:09:06,780 --> 00:09:08,520 500 million users using Facebook, 156 00:09:08,840 --> 00:09:11,400 80,000 applications in Facebook itself, 157 00:09:11,660 --> 00:09:13,140 there's other social networks doing it, 158 00:09:13,160 --> 00:09:13,780 they're doing the same thing. 159 00:09:14,280 --> 00:09:15,980 These client side apps are everywhere. 160 00:09:16,140 --> 00:09:18,380 They're becoming an interesting avenue for people to look at. 161 00:09:18,960 --> 00:09:22,840 Our users, unfortunately, also have an incentive. 162 00:09:22,980 --> 00:09:25,580 They've got a profit incentive to go into the games 163 00:09:25,580 --> 00:09:27,660 and respond to requests from other users 164 00:09:27,660 --> 00:09:29,440 and accept invitations, 165 00:09:29,660 --> 00:09:31,420 and that makes them somewhat vulnerable to attack. 166 00:09:31,680 --> 00:09:34,060 It's one of the big areas of research that we do at Zynga, 167 00:09:34,820 --> 00:09:36,840 which is part of the social network interaction. 168 00:09:37,240 --> 00:09:40,240 And what we're seeing is that these represent an economy, 169 00:09:40,560 --> 00:09:42,780 a large economy, as you saw this year, 170 00:09:43,160 --> 00:09:44,320 where the virtual economy and social games 171 00:09:44,320 --> 00:09:46,220 is going to be on the order of $1.6 billion, 172 00:09:47,840 --> 00:09:50,880 projected to grow ten times that much in the next five years. 173 00:09:51,300 --> 00:09:53,500 And so there's a lot of people out there 174 00:09:53,500 --> 00:09:54,660 that see this as an opportunity 175 00:09:55,200 --> 00:09:57,880 for them to get a piece of that pie illegitimately. 176 00:09:58,060 --> 00:09:59,400 So we're seeing a lot of malicious activity, 177 00:09:59,660 --> 00:10:01,000 we're seeing a lot of people trying to build 178 00:10:01,000 --> 00:10:03,020 black market economies around the games. 179 00:10:03,160 --> 00:10:05,100 So that's one of the reasons why this is a big area 180 00:10:05,100 --> 00:10:06,200 of research that's going on. 181 00:10:09,720 --> 00:10:13,140 Okay, so I want to talk a little bit about how the actual applications 182 00:10:13,140 --> 00:10:16,060 and framework operates and what's going on. 183 00:10:16,640 --> 00:10:20,900 So the client app actually gets downloaded from the game servers 184 00:10:20,900 --> 00:10:23,220 when the user instantiates the game. 185 00:10:23,380 --> 00:10:26,040 It actually gets loaded, in most cases, into an iframe 186 00:10:26,040 --> 00:10:27,660 running inside the Facebook canvas. 187 00:10:28,220 --> 00:10:30,840 But that actual, in our case, Flash application, 188 00:10:31,100 --> 00:10:34,360 talks directly to our back-end servers through our own API, 189 00:10:34,520 --> 00:10:36,800 and most of our interactions are through those servers. 190 00:10:37,060 --> 00:10:39,380 But occasionally, when we're invoking activities 191 00:10:39,380 --> 00:10:40,780 that involve the social network, 192 00:10:40,920 --> 00:10:43,120 such as sending invitations to other users, 193 00:10:43,140 --> 00:10:46,160 or posting messages on someone's wall, 194 00:10:46,400 --> 00:10:47,080 or something like that, 195 00:10:47,220 --> 00:10:49,540 then we have to go through the actual application framework 196 00:10:49,540 --> 00:10:51,260 that's provided by the social network. 197 00:10:51,680 --> 00:10:54,380 And so our back-end servers will initiate 198 00:10:54,380 --> 00:10:56,960 that operation through the client, 199 00:10:57,080 --> 00:10:58,800 and the client actually sends that message 200 00:10:58,800 --> 00:11:00,080 through that framework interface, 201 00:11:00,320 --> 00:11:03,400 and that's what initiates requests into the stream publishing, 202 00:11:03,980 --> 00:11:06,320 can access information about user profiles 203 00:11:06,320 --> 00:11:08,140 and friend lists and things like that. 204 00:11:08,360 --> 00:11:10,720 And so that's how these two APIs work. 205 00:11:10,820 --> 00:11:12,000 They're independent of each other, 206 00:11:12,000 --> 00:11:13,400 but they're also coupled. 207 00:11:16,960 --> 00:11:19,440 So I'll start off by apologizing for sounding like a frog. 208 00:11:19,620 --> 00:11:21,100 This week has been harsh on my voice. 209 00:11:22,180 --> 00:11:24,300 Just wanted to, before we dive into some of the attack patterns, 210 00:11:24,400 --> 00:11:25,460 wanted to call out explicitly 211 00:11:26,020 --> 00:11:29,280 some of the characteristics of this social network context 212 00:11:29,280 --> 00:11:33,080 and this application framework paradigm 213 00:11:33,080 --> 00:11:36,160 that kind of lends to making it more susceptible to attack. 214 00:11:36,420 --> 00:11:38,420 So first of all is this issue of trust. 215 00:11:38,660 --> 00:11:41,000 There's an inherent trust inside of these sort of contexts 216 00:11:41,000 --> 00:11:43,520 where the attacks are coming from people 217 00:11:43,520 --> 00:11:45,360 that are within the circle of trust you've already defined. 218 00:11:45,700 --> 00:11:48,640 And by doing that, you're much more likely to fall for issues. 219 00:11:48,680 --> 00:11:50,580 You're much more likely to click on things, 220 00:11:50,760 --> 00:11:53,760 to understand things in a naive fashion 221 00:11:53,760 --> 00:11:55,160 than you would from things you would be suspect 222 00:11:55,160 --> 00:11:55,940 coming from the outside. 223 00:11:56,360 --> 00:11:57,500 The second is stealth. 224 00:11:57,820 --> 00:11:59,460 So all of these attacks are happening 225 00:11:59,460 --> 00:12:00,880 at the application logic layer. 226 00:12:01,040 --> 00:12:02,960 This is not your typical web attacks 227 00:12:02,960 --> 00:12:04,800 where you're looking at cross-site scripting and stuff 228 00:12:04,800 --> 00:12:06,020 and seeing scripts, seeing meta characters. 229 00:12:06,320 --> 00:12:09,100 The users are just seeing interactions with the application. 230 00:12:09,360 --> 00:12:10,440 They don't have any view below that. 231 00:12:10,440 --> 00:12:12,480 So it's a lot harder for them to actually detect 232 00:12:12,480 --> 00:12:14,940 whether something's malicious or whether it's not malicious. 233 00:12:15,480 --> 00:12:17,920 And lastly is this issue of urgency. 234 00:12:18,220 --> 00:12:20,540 So one of the bullets on one of the slides Chris just did 235 00:12:20,540 --> 00:12:22,280 was the psychological conditioning 236 00:12:22,280 --> 00:12:25,000 that a lot of these social networking, social gaming apps do. 237 00:12:25,280 --> 00:12:27,940 It kind of drives the user to trust the people 238 00:12:27,940 --> 00:12:28,680 who are within their network. 239 00:12:28,840 --> 00:12:30,300 And there's a temporal issue there. 240 00:12:30,480 --> 00:12:32,840 So sometimes when GIFs go out and things go out, 241 00:12:32,940 --> 00:12:35,060 the user has to click on them at a certain period of time 242 00:12:35,060 --> 00:12:36,920 or they go away or they're used up because there's a supply. 243 00:12:37,200 --> 00:12:39,720 So there's this conditioning to actually quickly trust 244 00:12:39,720 --> 00:12:41,180 and not put as much thought into it. 245 00:12:41,300 --> 00:12:45,200 So that sort of conditioning once again leads to being more susceptible to attack. 246 00:12:45,480 --> 00:12:49,160 And then this sort of context also brings with it certain attack perspectives. 247 00:12:49,600 --> 00:12:52,440 So one of those is it's very easy to do amplification attacks. 248 00:12:52,720 --> 00:12:55,160 Once you actually can compromise one user account, 249 00:12:55,500 --> 00:12:58,860 the very short hop tight nature of the social networks 250 00:12:58,860 --> 00:13:00,300 means that you can leverage that account 251 00:13:00,300 --> 00:13:03,660 to quickly affect the people within their circle of trust 252 00:13:03,660 --> 00:13:05,600 because then those people you can actually get to 253 00:13:05,600 --> 00:13:07,020 and then from those people on. 254 00:13:07,140 --> 00:13:09,440 So just like other amplification attacks 255 00:13:09,720 --> 00:13:12,540 and networks, this one's even typically faster and easier 256 00:13:12,540 --> 00:13:14,120 because of that tight, short hop nature. 257 00:13:15,860 --> 00:13:16,580 Also deception. 258 00:13:16,720 --> 00:13:19,240 So this whole idea of trust that's in there 259 00:13:19,240 --> 00:13:22,260 is absolute fertile ground for anybody doing phishing. 260 00:13:22,620 --> 00:13:24,840 So it's very easy to actually create these messages 261 00:13:24,840 --> 00:13:27,060 which you're going to see some of the techniques for doing these things 262 00:13:27,060 --> 00:13:28,480 that look very real. 263 00:13:28,640 --> 00:13:30,820 They come from someone that you actually know and trust. 264 00:13:32,080 --> 00:13:33,980 It's very easy to get somebody to click on a link 265 00:13:33,980 --> 00:13:35,260 or click on a button or do something. 266 00:13:35,400 --> 00:13:36,780 It's going to actually take them somewhere else. 267 00:13:36,940 --> 00:13:39,320 In the case of some of the buttons which Tom will talk about, 268 00:13:39,720 --> 00:13:42,320 just like some of the Java action type buttons you see in other things, 269 00:13:42,440 --> 00:13:45,540 the user, the naive user, many times using these applications, 270 00:13:45,900 --> 00:13:48,120 can't just do a mouseover and actually see where it's going to. 271 00:13:48,300 --> 00:13:50,820 So it's very easy to do phishing attacks with this kind of stuff. 272 00:13:51,300 --> 00:13:53,340 And then lastly, it's very simple to exploit. 273 00:13:53,720 --> 00:13:56,940 So Tom said that this is not really deep technical foo. 274 00:13:57,320 --> 00:13:59,160 Anybody with a Paros proxy 275 00:13:59,680 --> 00:14:02,440 and basic knowledge of how web applications communicate back and forth, 276 00:14:02,620 --> 00:14:05,460 it's very easy in most of these frameworks now that communicate back and forth 277 00:14:05,460 --> 00:14:08,620 to actually create false, completely spoofed content 278 00:14:08,620 --> 00:14:11,400 or to actually modify content on the fly and do all of these things. 279 00:14:11,580 --> 00:14:13,640 It's just inherent in the paradigm that's actually here. 280 00:14:14,020 --> 00:14:16,100 We'll talk a little bit about some of the mitigations at the end 281 00:14:16,100 --> 00:14:17,160 that are making this a little more difficult. 282 00:14:17,500 --> 00:14:21,100 But if you're either building and operating an application framework 283 00:14:21,100 --> 00:14:23,540 for something like this or you're building applications to work with it, 284 00:14:23,600 --> 00:14:26,940 it really does take careful, proactive thought to think through these issues 285 00:14:26,940 --> 00:14:30,980 and address them at a strategic rather than just a tactical level 286 00:14:30,980 --> 00:14:31,960 to actually tackle this stuff. 287 00:14:33,020 --> 00:14:36,220 So the framework we're going to use for talking about this stuff today 288 00:14:36,220 --> 00:14:37,980 is really focused around attack patterns. 289 00:14:38,380 --> 00:14:42,120 So attack patterns are generalizations off of certain instances of attacks. 290 00:14:42,280 --> 00:14:43,760 So we're not going to be talking with, 291 00:14:43,800 --> 00:14:45,560 here's the exact exploit code for doing something. 292 00:14:45,720 --> 00:14:47,320 We're taking a step back and saying, 293 00:14:47,480 --> 00:14:50,220 there's certain patterns that apply to these sorts of architectures, 294 00:14:50,260 --> 00:14:51,060 these sorts of contexts, 295 00:14:51,720 --> 00:14:54,740 and anybody with a basic knowledge on how to do software attack 296 00:14:54,740 --> 00:14:57,560 can look at these patterns and instantiate that in lots of different ways. 297 00:14:57,960 --> 00:15:00,980 These attack patterns actually exist at multiple levels of abstraction as well. 298 00:15:01,240 --> 00:15:03,100 So you'll see that the first one we've talked about here 299 00:15:03,100 --> 00:15:04,040 is the highest level of abstraction, 300 00:15:04,260 --> 00:15:06,600 which is API manipulation via man in the middle. 301 00:15:06,600 --> 00:15:09,260 So given these sorts of application framework communications, 302 00:15:09,580 --> 00:15:11,640 it's very easy to do a man in the middle interposition attack 303 00:15:11,640 --> 00:15:16,300 and manipulate the API traffic that's going between the application and the framework 304 00:15:16,300 --> 00:15:17,680 or the client and the framework. 305 00:15:18,700 --> 00:15:22,740 That sort of high-level abstraction can get instantiated in several different ways. 306 00:15:22,860 --> 00:15:26,260 So you can use that same API manipulation to do content spoofing, 307 00:15:26,260 --> 00:15:27,080 creating stuff on the fly. 308 00:15:27,280 --> 00:15:29,640 You can capture stuff in transit and modify it, 309 00:15:29,680 --> 00:15:31,200 modify the integrity of it, 310 00:15:31,260 --> 00:15:33,960 or you can actually do replay attacks for this sort of messaging as well, 311 00:15:34,100 --> 00:15:36,580 which usually is for things like in-game cheats. 312 00:15:36,600 --> 00:15:37,900 Cheating and things like that in the communications. 313 00:15:38,880 --> 00:15:42,860 So Tom's going to talk just a little bit right here about content spoofing, 314 00:15:42,900 --> 00:15:46,340 and then after that we'll go with a few more patterns that are a little bit deeper, 315 00:15:46,420 --> 00:15:47,600 and he'll talk about some of those as well. 316 00:15:55,880 --> 00:16:00,580 So given that you have the ability to basically create content from the ground up, 317 00:16:00,640 --> 00:16:03,380 and we'll show you which API elements that you can use to do that, 318 00:16:03,500 --> 00:16:05,580 you can actually put something on someone's page 319 00:16:05,580 --> 00:16:07,000 that is completely custom. 320 00:16:07,140 --> 00:16:12,960 So you could create what looks like a new game or a new type of quiz, 321 00:16:13,220 --> 00:16:14,900 and it would have a button. 322 00:16:15,100 --> 00:16:17,060 And it would have a link to, as you can see, 323 00:16:17,100 --> 00:16:19,120 this says one of your friends thinks you're sexy. 324 00:16:19,220 --> 00:16:20,120 Find out who. 325 00:16:20,340 --> 00:16:22,240 And there's a click allow button. 326 00:16:23,060 --> 00:16:27,660 Now this sort of thing could be linked to any number of different attacks. 327 00:16:27,840 --> 00:16:30,980 You could link it to any kind of exploit or malware 328 00:16:31,420 --> 00:16:32,800 or any kind of malicious website. 329 00:16:34,040 --> 00:16:34,480 And... 330 00:16:35,700 --> 00:16:36,600 go from there. 331 00:16:38,860 --> 00:16:42,660 Here's an example of just completely spoofed content that was sent out there. 332 00:16:43,320 --> 00:16:46,280 I put the ass of fire in circulation for a while 333 00:16:46,280 --> 00:16:48,460 because lonely hearts are burning up in Yeovil. 334 00:16:48,780 --> 00:16:52,340 And I, you know, you can see the button, collect the ass of fire. 335 00:16:52,860 --> 00:16:55,820 If some of this is hard to see, we'll make the slides available for download 336 00:16:56,660 --> 00:16:57,720 at some point. 337 00:16:58,980 --> 00:17:00,220 And I'll give you a URL. 338 00:17:01,240 --> 00:17:04,280 Now the important thing to note is that each element 339 00:17:04,280 --> 00:17:10,800 within this construct actually has a different API area 340 00:17:10,800 --> 00:17:13,080 where you can populate it. 341 00:17:13,220 --> 00:17:16,980 So here if you sort of map it, you can see actor and then each of these. 342 00:17:17,120 --> 00:17:23,000 Sort of media source href is basically the link to the image 343 00:17:23,000 --> 00:17:24,120 that you want to put there. 344 00:17:24,720 --> 00:17:28,380 Then you can see that any sort of title like, ooh, the ass of fire 345 00:17:28,380 --> 00:17:29,880 would be in template data name. 346 00:17:30,060 --> 00:17:32,860 And then the template data name has an href that can be manipulated. 347 00:17:32,860 --> 00:17:35,460 Now also important are the action links, 348 00:17:35,520 --> 00:17:37,080 so that when you go to collect the ass of fire, 349 00:17:37,180 --> 00:17:38,160 you could go somewhere else. 350 00:17:39,940 --> 00:17:43,500 And then of course take the user to wherever you want them to go. 351 00:17:43,820 --> 00:17:46,600 So with that mechanic in place, 352 00:17:46,660 --> 00:17:48,660 it can be exploited with something like a manual proxy. 353 00:17:48,940 --> 00:17:51,280 You can actually begin spoofing any kind of content you want 354 00:17:51,280 --> 00:17:53,520 and playing merry hell with people. 355 00:17:55,300 --> 00:17:58,880 Ultimately, content spoofing rests on the attacker's ability 356 00:17:58,880 --> 00:18:01,900 to modify message content or make API calls directly. 357 00:18:01,900 --> 00:18:06,940 To create arbitrary content within cross-application messages. 358 00:18:08,660 --> 00:18:11,480 Of course the impact can be anywhere from phishing, 359 00:18:11,540 --> 00:18:14,360 which is a special type of phishing in this case that we'll talk about. 360 00:18:15,400 --> 00:18:17,900 Enables any kind of social engineering, user harassment, 361 00:18:19,260 --> 00:18:20,480 things of this nature. 362 00:18:22,100 --> 00:18:24,980 Now this is of course a case of cyberbullying. 363 00:18:25,480 --> 00:18:30,080 It's an example of sending someone you don't want, say, a burning cross. 364 00:18:31,080 --> 00:18:31,600 Now, 365 00:18:32,180 --> 00:18:35,180 notice that I didn't change all of the underlying elements. 366 00:18:35,400 --> 00:18:39,820 You can see where this was actually a global element 367 00:18:39,820 --> 00:18:42,920 that would have populated my wall for mystery keys. 368 00:18:43,220 --> 00:18:44,860 But I've just taken out all of the elements, 369 00:18:44,940 --> 00:18:46,920 but I left the mystery keys in there so you could see 370 00:18:46,920 --> 00:18:49,440 portions of that API that were and weren't used. 371 00:18:50,440 --> 00:18:54,120 Now, here's what it looks like from a proxy view. 372 00:18:55,020 --> 00:18:57,200 And then we'll go ahead and break this out. 373 00:18:57,380 --> 00:19:00,460 But this is basically the sum total of complexity that you're dealing with. 374 00:19:00,560 --> 00:19:01,180 So you can see that, 375 00:19:01,180 --> 00:19:03,020 it's not incredibly hard. 376 00:19:04,260 --> 00:19:07,140 Each of these are the Facebook API elements 377 00:19:07,140 --> 00:19:11,460 that you can focus in on when, say, performing content spoofing. 378 00:19:12,480 --> 00:19:15,000 The template data href link, 379 00:19:15,780 --> 00:19:18,600 the template data media href link, 380 00:19:18,780 --> 00:19:20,600 all of these things can point to other things. 381 00:19:20,680 --> 00:19:22,980 You can specify the image with the media source. 382 00:19:24,620 --> 00:19:28,040 Now what's important is the action link as well, 383 00:19:28,100 --> 00:19:29,400 such if you go to claim it, 384 00:19:29,540 --> 00:19:31,160 then that can take you someplace else. 385 00:19:31,160 --> 00:19:34,840 Some of these you can leave unaltered, 386 00:19:34,960 --> 00:19:39,220 so that if you're trying to create a special scenario 387 00:19:39,220 --> 00:19:41,180 where if they only click to claim it, 388 00:19:41,200 --> 00:19:43,120 it takes them to someplace bad, then that's fine. 389 00:19:43,320 --> 00:19:45,180 That way they might not know it's illegitimate 390 00:19:45,180 --> 00:19:46,700 just by clicking any other links. 391 00:19:47,880 --> 00:19:48,960 In these cases, 392 00:19:51,340 --> 00:19:53,340 here is an attack execution flow 393 00:19:53,340 --> 00:19:55,980 that basically summarizes what was going on. 394 00:19:56,100 --> 00:19:57,500 And Chris talked a little bit about this. 395 00:19:57,700 --> 00:19:58,460 But basically, 396 00:19:58,460 --> 00:20:01,980 if you're starting from, say, 397 00:20:02,080 --> 00:20:03,960 modifying the underlying request 398 00:20:03,960 --> 00:20:06,920 that you found a set of keys 399 00:20:06,920 --> 00:20:10,600 or you found a cat in a hat hat for your apartment 400 00:20:11,300 --> 00:20:12,480 or for your avatar, 401 00:20:12,720 --> 00:20:16,740 then your client side will let what we're calling AppVille know, 402 00:20:16,880 --> 00:20:18,380 hey, I found this item. 403 00:20:19,180 --> 00:20:22,060 Then AppVille will respond, okay, this is great. 404 00:20:22,240 --> 00:20:26,920 What we need you to do now is to respond to the framework app 405 00:20:26,920 --> 00:20:28,220 and tell them that you found this 406 00:20:28,220 --> 00:20:30,240 so that it can publish to its own specific feeds. 407 00:20:30,440 --> 00:20:33,880 And then you get a stream publishing request to the framework 408 00:20:33,880 --> 00:20:37,120 and it goes wherever its destination is. 409 00:20:37,200 --> 00:20:38,700 And we'll talk about where the different types 410 00:20:38,700 --> 00:20:40,120 and touch points that you can attack. 411 00:20:40,440 --> 00:20:42,420 And then finally, of course, the message is delivered 412 00:20:42,420 --> 00:20:44,680 and your attack is resident. 413 00:20:46,500 --> 00:20:48,280 Now, in a generic sense, 414 00:20:48,400 --> 00:20:51,200 given that we're talking about any kind of application framework 415 00:20:51,200 --> 00:20:53,540 where you have a master or framework application 416 00:20:53,540 --> 00:20:56,060 controlling the sub-applications and there's communication, 417 00:20:56,060 --> 00:20:58,640 both within the sub-applications and the master, 418 00:20:58,720 --> 00:21:00,180 you can have things like invitations, 419 00:21:00,340 --> 00:21:02,480 some types of notifications. 420 00:21:02,720 --> 00:21:04,220 Hey, X event has happened. 421 00:21:04,320 --> 00:21:05,460 These things can be tampered with. 422 00:21:05,660 --> 00:21:08,340 There can be user or group specific news feeds 423 00:21:09,500 --> 00:21:11,600 which you would publish through the stream protocol. 424 00:21:12,480 --> 00:21:13,360 Individual messages. 425 00:21:13,580 --> 00:21:14,220 Now, what would this be? 426 00:21:14,260 --> 00:21:14,980 This would be a gift. 427 00:21:15,120 --> 00:21:17,320 This would be me sending you a gift, 428 00:21:17,460 --> 00:21:20,380 something like Jeffrey Dahmer snack tray 429 00:21:20,380 --> 00:21:22,600 or if I was just trying to harass you. 430 00:21:23,500 --> 00:21:25,340 Or it could be something like, 431 00:21:25,340 --> 00:21:27,220 less obvious and more insidious. 432 00:21:27,380 --> 00:21:29,840 And then there could be some types of global alerts that go on. 433 00:21:29,920 --> 00:21:31,240 And all these things you could tamper with 434 00:21:31,240 --> 00:21:37,300 as long as the client is bearing the strength of the trust 435 00:21:37,300 --> 00:21:38,080 in that relationship. 436 00:21:41,120 --> 00:21:43,820 Now, we're going to talk about several attack patterns. 437 00:21:44,020 --> 00:21:45,440 Sean, do you want to speak to any of these? 438 00:21:45,680 --> 00:21:46,080 Okay. 439 00:21:46,600 --> 00:21:48,340 Basically, we're going to talk about navigation remapping 440 00:21:48,860 --> 00:21:50,040 and button hijacking. 441 00:21:50,100 --> 00:21:51,060 These are two of the big ones. 442 00:21:51,520 --> 00:21:52,800 And in a capex sense, 443 00:21:52,980 --> 00:21:55,320 what you'll find is that exploit injection via API 444 00:21:55,340 --> 00:21:57,320 message manipulation and malware propagation 445 00:21:57,320 --> 00:22:00,040 are basically going to be hierarchically related to these. 446 00:22:00,200 --> 00:22:03,060 So really, seven and eight are different types of impacts 447 00:22:03,060 --> 00:22:06,040 that you can pull or pivot off of five or six. 448 00:22:06,440 --> 00:22:08,460 And we're going to give you some examples of those. 449 00:22:09,180 --> 00:22:12,140 Now, when you're talking about navigation remapping, 450 00:22:12,280 --> 00:22:14,760 here we're thinking of, let's say, hyperlinks. 451 00:22:14,800 --> 00:22:16,980 And this is where you're just simply changing link destinations. 452 00:22:17,620 --> 00:22:19,860 It can result in any of the things we've talked about. 453 00:22:20,140 --> 00:22:21,860 Now, I'll show you just a simple example, 454 00:22:21,980 --> 00:22:23,020 a short movie of just, 455 00:22:23,100 --> 00:22:24,960 this is really sort of just a humorous thing. 456 00:22:25,620 --> 00:22:25,940 Where... 457 00:22:28,480 --> 00:22:32,760 Yeah, I gotcha. 458 00:22:33,420 --> 00:22:34,080 It's all right. 459 00:22:35,400 --> 00:22:35,720 Now... 460 00:22:41,920 --> 00:22:43,680 The user clicks on a Man of the Year award. 461 00:22:43,800 --> 00:22:44,760 I know this is hard to see, 462 00:22:44,820 --> 00:22:45,900 but we can make these available. 463 00:22:47,540 --> 00:22:49,360 And then you have Rick Astley coming right off. 464 00:22:49,540 --> 00:22:51,960 So, we know it's a bit overplayed, 465 00:22:51,960 --> 00:22:53,660 but it just gives you a sense that 466 00:22:53,660 --> 00:22:57,420 going directly from content that looks authorized 467 00:22:57,420 --> 00:22:59,380 with on your page in Facebook, 468 00:22:59,520 --> 00:23:01,060 you can get to somewhere you don't really want to be. 469 00:23:12,760 --> 00:23:13,560 Yeah, gotcha. 470 00:23:16,940 --> 00:23:19,540 This is all of the different API elements 471 00:23:19,540 --> 00:23:20,580 that were used in that. 472 00:23:21,320 --> 00:23:22,160 Some of them... 473 00:23:23,340 --> 00:23:24,020 weren't renamed, 474 00:23:24,100 --> 00:23:24,960 but all of them... 475 00:23:24,960 --> 00:23:27,120 These are the very specific ones 476 00:23:27,120 --> 00:23:29,900 that allow you to conduct that type of attack. 477 00:23:32,480 --> 00:23:35,240 This is what the attack execution flow looks like. 478 00:23:36,580 --> 00:23:37,440 You have an event. 479 00:23:39,460 --> 00:23:41,920 Basically, the game application tells you how to respond. 480 00:23:42,080 --> 00:23:43,200 You modify it, send it back, 481 00:23:43,300 --> 00:23:44,200 and then you can get your malware 482 00:23:44,700 --> 00:23:47,960 or your link, whatever it is you're trying to do. 483 00:23:48,800 --> 00:23:49,380 All right. 484 00:23:49,420 --> 00:23:50,320 Now, with button hijacking, 485 00:23:50,860 --> 00:23:51,880 it's the same situation. 486 00:23:51,880 --> 00:23:54,700 Except, basically, the destinations are masked, 487 00:23:54,780 --> 00:23:56,480 and you don't really know what you're clicking on 488 00:23:56,480 --> 00:23:57,780 when you're clicking on it. 489 00:23:57,900 --> 00:24:02,020 And one of the interesting things is that there is, 490 00:24:02,140 --> 00:24:04,540 for example, a lot of demand for, 491 00:24:05,360 --> 00:24:06,740 let's say, a cute puppy. 492 00:24:06,920 --> 00:24:08,760 And it really warms you in your heart 493 00:24:08,760 --> 00:24:10,380 to be able to click and save a cute puppy, 494 00:24:10,440 --> 00:24:12,720 and no one really expects the fact that by doing that, 495 00:24:12,820 --> 00:24:17,560 they could actually be getting malware on their system 496 00:24:17,560 --> 00:24:19,660 or getting hit by a PDF exploit or something. 497 00:24:19,660 --> 00:24:21,920 I've highlighted within the Parastump 498 00:24:21,920 --> 00:24:22,780 just some of the areas. 499 00:24:22,920 --> 00:24:25,280 Notice where it says label except. 500 00:24:26,100 --> 00:24:28,780 This just shows you where it would populate 501 00:24:28,780 --> 00:24:29,780 the button content. 502 00:24:30,160 --> 00:24:32,520 It would create a button that would say 503 00:24:32,520 --> 00:24:34,240 except Jeffrey Dahmer snack tray. 504 00:24:34,860 --> 00:24:35,100 Okay. 505 00:24:35,160 --> 00:24:38,160 So you're actually populating what the button contains, 506 00:24:38,380 --> 00:24:40,100 but you won't be able to see where it leads. 507 00:24:40,960 --> 00:24:41,480 So. 508 00:24:43,900 --> 00:24:46,880 Now, in terms of malware propagation through API messages, 509 00:24:47,180 --> 00:24:49,600 this is a little more detailed attack execution. 510 00:24:49,660 --> 00:24:51,440 Flow of what we're talking about. 511 00:24:51,600 --> 00:24:53,180 You have first some level of authentication 512 00:24:53,180 --> 00:24:54,960 that's going between the user and AppVille. 513 00:24:55,140 --> 00:24:57,520 And then, of course, you have an application event, 514 00:24:57,620 --> 00:25:00,020 and then the application event response that you're modifying. 515 00:25:00,980 --> 00:25:02,980 And then you're making a stream publish request. 516 00:25:04,220 --> 00:25:06,360 This publish request goes directly to Facebook. 517 00:25:07,180 --> 00:25:09,060 Facebook will respond to you and say, 518 00:25:09,140 --> 00:25:10,180 hey, it was successful. 519 00:25:10,400 --> 00:25:13,420 And then it will put this to wherever the destination is 520 00:25:13,420 --> 00:25:15,240 that it belongs, either on the user's wall 521 00:25:15,240 --> 00:25:17,980 or as a message to the user and whatnot. 522 00:25:18,640 --> 00:25:19,080 Now. 523 00:25:21,920 --> 00:25:22,940 Here's what it would look like. 524 00:25:23,020 --> 00:25:24,280 And I was just going to show a few slides, 525 00:25:24,400 --> 00:25:25,740 and then we'll show you a movie. 526 00:25:27,460 --> 00:25:29,740 Here, Jerry Mathers has updated his pad. 527 00:25:30,300 --> 00:25:32,900 And the idea here is that all of his friends 528 00:25:32,900 --> 00:25:35,000 may want to come and check out what he's done. 529 00:25:35,300 --> 00:25:37,260 Now, this situation can be quite different 530 00:25:37,260 --> 00:25:39,580 if what's being offered is some rare item 531 00:25:39,580 --> 00:25:40,580 that's time sensitive, 532 00:25:40,720 --> 00:25:42,480 and that the number of clicks determines 533 00:25:42,480 --> 00:25:45,920 what the lifespan of how long it takes you to claim that item. 534 00:25:46,060 --> 00:25:47,960 So things can get used up really quickly. 535 00:25:47,960 --> 00:25:50,420 So you can actually have a feeding frenzy going on 536 00:25:50,420 --> 00:25:51,880 for people wanting to get into these clicks. 537 00:25:52,000 --> 00:25:53,920 So that's why we say it's an amplification attack. 538 00:25:57,200 --> 00:25:58,800 Now, has anyone ever... 539 00:25:58,800 --> 00:26:01,080 This is basically this type of warning. 540 00:26:01,140 --> 00:26:03,320 You can't see it, but it has broken English in it. 541 00:26:03,420 --> 00:26:04,940 And it's actually a piece of malware 542 00:26:04,940 --> 00:26:06,740 that's been drifting around for quite a while. 543 00:26:06,840 --> 00:26:08,800 They've made several refinements on it. 544 00:26:10,400 --> 00:26:12,060 But this is just one example 545 00:26:12,060 --> 00:26:14,680 of as soon as you click the link to go see the pad, 546 00:26:14,940 --> 00:26:16,740 then what you get is an update. 547 00:26:16,740 --> 00:26:18,920 You've triggered the malware at that point. 548 00:26:19,900 --> 00:26:22,700 So this masquerade itself is an antivirus. 549 00:26:24,180 --> 00:26:27,300 What's actually going on is it's using jQuery and Ajax, 550 00:26:27,300 --> 00:26:29,080 and it's dynamically updating this page 551 00:26:29,080 --> 00:26:30,560 so it looks like what you're looking at 552 00:26:30,560 --> 00:26:31,820 is a view in Windows Explorer 553 00:26:31,820 --> 00:26:33,740 of yourself getting a virus scan. 554 00:26:34,640 --> 00:26:36,760 And then at the end, it'll offer you to download it. 555 00:26:36,800 --> 00:26:38,020 What's important in this case 556 00:26:38,020 --> 00:26:39,420 was that they had modified the malware 557 00:26:39,420 --> 00:26:41,320 where no matter what you do, 558 00:26:41,360 --> 00:26:43,100 unless you just do a hard reboot, 559 00:26:43,340 --> 00:26:44,760 you're going to get infected 560 00:26:44,760 --> 00:26:46,660 because it doesn't require you to download it 561 00:26:46,740 --> 00:26:47,560 or anything or any ascent. 562 00:26:47,600 --> 00:26:49,260 All of this is just a sidebar 563 00:26:50,960 --> 00:26:53,740 to the actual attack that's going on in the background. 564 00:26:54,820 --> 00:26:56,260 So actually let me back up 565 00:26:56,260 --> 00:26:58,860 and show you a quick movie. 566 00:27:08,880 --> 00:27:12,520 So once again, Jerry's updating his pad. 567 00:27:12,820 --> 00:27:14,160 And you'll see very quickly 568 00:27:14,160 --> 00:27:16,400 that the malware will start hitting him. 569 00:27:16,460 --> 00:27:18,800 Pow, okay, there's a warning that comes up. 570 00:27:18,860 --> 00:27:20,300 No matter what you do, now he's involved. 571 00:27:20,860 --> 00:27:22,820 And going on in the background here 572 00:27:22,820 --> 00:27:26,680 is it's downloading possibly through 573 00:27:27,360 --> 00:27:29,980 some method of like Java network load protocol. 574 00:27:30,300 --> 00:27:33,900 It fetches malware that you really have 575 00:27:33,900 --> 00:27:37,300 no control over seeing. 576 00:27:38,660 --> 00:27:40,160 So you never really know what happens. 577 00:27:40,200 --> 00:27:41,140 If you've closed it out, 578 00:27:41,200 --> 00:27:42,440 you don't even think that you've been hit. 579 00:27:54,820 --> 00:27:55,540 All right, Sean. 580 00:27:59,220 --> 00:28:01,380 Tom just talked really, really fast 581 00:28:01,380 --> 00:28:03,800 and got way ahead of where he was supposed to be. 582 00:28:05,160 --> 00:28:06,920 So one of the cool things about DEF CON 583 00:28:07,500 --> 00:28:10,080 is kind of the unique mix of people we have here. 584 00:28:10,280 --> 00:28:12,040 So at the con and probably in the room, 585 00:28:12,420 --> 00:28:14,100 you know, we got everything from black hat hackers 586 00:28:14,160 --> 00:28:15,500 malware authors, botnet operators, 587 00:28:16,280 --> 00:28:18,160 leets, lamers, posers, scene whores, 588 00:28:18,380 --> 00:28:20,480 you know, security researchers, vendors. 589 00:28:20,980 --> 00:28:23,100 But we also have some of the corporate security types, 590 00:28:23,160 --> 00:28:24,580 the people that actually have to build and deploy 591 00:28:24,580 --> 00:28:26,440 and operate this kind of software. 592 00:28:26,560 --> 00:28:28,440 And they're worried about doing it in a secure fashion. 593 00:28:28,640 --> 00:28:30,920 So our goals for speaking here today 594 00:28:30,920 --> 00:28:32,700 was really to kind of raise awareness 595 00:28:32,700 --> 00:28:35,520 of how kind of fragile some of these framework, 596 00:28:35,780 --> 00:28:37,800 application framework communication mechanisms are, 597 00:28:37,900 --> 00:28:39,620 especially within a social networking context. 598 00:28:40,240 --> 00:28:42,760 Some of the unique things that those bring to the game. 599 00:28:42,760 --> 00:28:45,380 And because of the nature, the fast nature of this stuff growing, 600 00:28:45,560 --> 00:28:47,560 because of the fast nature of how many users are out there, 601 00:28:47,680 --> 00:28:50,220 because of some of the unique scalability issues, 602 00:28:50,520 --> 00:28:53,040 many times these sorts of things are being deployed 603 00:28:53,040 --> 00:28:56,140 and maybe not with as deep a proactive security thought 604 00:28:56,140 --> 00:28:56,620 as could be there. 605 00:28:56,980 --> 00:28:59,700 So one of the things we want to do is try and kind of introduce 606 00:28:59,700 --> 00:29:02,620 and raise some awareness for those out there 607 00:29:02,620 --> 00:29:05,260 who are having to build apps against these sort of frameworks 608 00:29:05,260 --> 00:29:06,680 or who are building these frameworks, 609 00:29:06,840 --> 00:29:08,200 some of the things they want to think about 610 00:29:08,200 --> 00:29:09,240 from a mitigation perspective 611 00:29:09,240 --> 00:29:10,840 and some of the resources that might be available. 612 00:29:11,740 --> 00:29:13,540 So really, if you're going to build secure software, 613 00:29:13,640 --> 00:29:15,160 if you're going to build software that's resilient, 614 00:29:15,300 --> 00:29:16,380 resistant, tolerant to attack, 615 00:29:16,660 --> 00:29:19,200 the first and absolute fundamental thing you have to do 616 00:29:19,200 --> 00:29:20,460 is understand how it's going to be attacked. 617 00:29:20,820 --> 00:29:22,100 If you don't understand what the attacker, 618 00:29:22,180 --> 00:29:22,740 how they're viewing it, 619 00:29:22,780 --> 00:29:24,160 what kind of techniques and things they're going to do, 620 00:29:24,300 --> 00:29:26,380 there's no way you can possibly build it to be secure. 621 00:29:27,320 --> 00:29:29,660 And unfortunately, a broad understanding of that kind of knowledge 622 00:29:29,660 --> 00:29:30,660 of the attacker's perspective 623 00:29:31,240 --> 00:29:34,060 really resides in a fairly small number of people's heads. 624 00:29:34,200 --> 00:29:36,380 This is not broadly known stuff that's out there. 625 00:29:36,680 --> 00:29:40,340 And truly, most of those people in the world are here this weekend. 626 00:29:40,840 --> 00:29:42,480 So if you look around, you might recognize them. 627 00:29:42,540 --> 00:29:43,880 Well, unfortunately, when we all leave, 628 00:29:44,420 --> 00:29:45,520 whether that's today, tomorrow, 629 00:29:45,660 --> 00:29:47,280 whenever you're going back home, you spread out, 630 00:29:47,380 --> 00:29:49,420 we're still greatly outnumbered by the people 631 00:29:49,420 --> 00:29:50,440 who are trying to build software. 632 00:29:50,840 --> 00:29:52,820 And so there's only so much of our brains 633 00:29:52,820 --> 00:29:54,200 that can go around to help them understand it. 634 00:29:54,260 --> 00:29:56,860 So to tackle this problem really requires some way 635 00:29:57,780 --> 00:30:00,640 to capture and share that sort of attacker's perspective, 636 00:30:00,680 --> 00:30:03,400 knowledge, and understanding of these sorts of things we're talking about, 637 00:30:03,540 --> 00:30:06,920 what sort of perspectives and approaches an attacker would take, 638 00:30:07,040 --> 00:30:09,440 what sort of things are vulnerable within the software, 639 00:30:09,440 --> 00:30:13,460 not just a vulnerability like within this specific version of Microsoft 640 00:30:13,460 --> 00:30:14,840 where it has a vulnerability, CVE, 641 00:30:14,960 --> 00:30:17,360 but what is the thing that building your own software 642 00:30:17,360 --> 00:30:19,180 you may do to make it vulnerable to these sorts of things. 643 00:30:20,080 --> 00:30:23,000 So to start, we wanted to basically introduce a couple of resources 644 00:30:23,000 --> 00:30:25,720 that are available for these types of people 645 00:30:25,720 --> 00:30:27,140 who are building and deploying this sort of software. 646 00:30:27,660 --> 00:30:29,260 The first one of these is called KPEC. 647 00:30:29,340 --> 00:30:30,860 And you heard Tom, when he was rambling through, 648 00:30:31,060 --> 00:30:32,580 said KPEC at one point. 649 00:30:32,820 --> 00:30:35,400 KPEC is the Common Attack Pattern Enumeration and Classification. 650 00:30:35,800 --> 00:30:38,740 This is a resource developed by an international community. 651 00:30:38,740 --> 00:30:40,960 It's led by MITRE, and it's hosted by MITRE, 652 00:30:41,020 --> 00:30:43,660 but it has hundreds of different people around the world involved in doing it. 653 00:30:44,240 --> 00:30:46,640 Basically, it's a collection of attack patterns, 654 00:30:46,700 --> 00:30:48,380 so common approaches to attacking software. 655 00:30:48,680 --> 00:30:52,460 So it has a schema that describes things like a detailed attack execution flow, 656 00:30:52,620 --> 00:30:54,440 what an attacker does, how they do it, 657 00:30:54,540 --> 00:30:56,060 what sort of skill and knowledge is required, 658 00:30:56,260 --> 00:30:57,360 what sort of resources are required, 659 00:30:57,640 --> 00:31:00,960 which sort of weaknesses in software do these attack patterns focus on and target. 660 00:31:02,080 --> 00:31:04,620 The other side of the equation is another resource called CWE, 661 00:31:04,620 --> 00:31:05,760 or the Common Weakness Enumeration. 662 00:31:06,060 --> 00:31:07,380 Again, it's an international community 663 00:31:07,380 --> 00:31:10,280 led by MITRE and hosted by MITRE, 664 00:31:10,340 --> 00:31:14,200 but involving even a much broader footprint of organizations than KPEC is. 665 00:31:14,960 --> 00:31:16,760 Both of these are available for free. 666 00:31:16,820 --> 00:31:19,160 They're available right now at the URLs that are on the screen there, 667 00:31:19,220 --> 00:31:19,920 and they're going to be in the slides. 668 00:31:20,580 --> 00:31:24,600 KPEC currently holds between three and four hundred attack pattern descriptions, 669 00:31:25,060 --> 00:31:28,120 and the CWE currently has over eight hundred weaknesses defined. 670 00:31:28,440 --> 00:31:30,340 So there's a lot of great resource knowledge, 671 00:31:30,500 --> 00:31:34,800 this basic fundamental yin-yang set of the attacker and the weakness perspective, 672 00:31:35,020 --> 00:31:37,320 that form a great resource for people who are looking 673 00:31:37,380 --> 00:31:39,220 to build the sort of software, deploy this kind of thing, 674 00:31:39,320 --> 00:31:41,440 to look at the kinds of things they should be thinking about, 675 00:31:41,520 --> 00:31:43,200 to understand how an attacker would view their software, 676 00:31:43,380 --> 00:31:45,380 and what sort of things they want to make sure are not there, 677 00:31:45,440 --> 00:31:47,480 what sort of security features and engineering they need to put in place 678 00:31:47,480 --> 00:31:49,280 to try and actually prevent this stuff. 679 00:31:51,180 --> 00:31:53,040 The different patterns that we've talked about here today, 680 00:31:53,200 --> 00:31:54,140 these nine different patterns, 681 00:31:55,080 --> 00:31:56,660 in the next release of KPEC, 682 00:31:56,720 --> 00:31:58,320 which will go out in the next couple weeks here, 683 00:31:58,400 --> 00:31:59,680 we were trying to get it done before this conference, 684 00:31:59,780 --> 00:32:00,820 but we weren't able to get it out there, 685 00:32:01,300 --> 00:32:03,840 but you saw during a few of the slides actually referenced, 686 00:32:03,980 --> 00:32:05,400 these patterns will be in the next version, 687 00:32:05,540 --> 00:32:06,760 so there will be a full description of these, 688 00:32:06,760 --> 00:32:07,580 but once again, 689 00:32:07,660 --> 00:32:10,720 this is just nine added on top of like 320 that are there already. 690 00:32:11,700 --> 00:32:14,640 The reason it's higher than 320 is there's also categories and views 691 00:32:14,640 --> 00:32:18,000 and things that help organize these within classification taxonomy, 692 00:32:18,080 --> 00:32:19,660 so you can understand how they're related to each other. 693 00:32:20,800 --> 00:32:21,700 So beyond that, 694 00:32:21,760 --> 00:32:23,900 one of the things that KPEC and CW both share is, 695 00:32:23,940 --> 00:32:25,320 they don't just describe the problem, 696 00:32:25,800 --> 00:32:29,740 they actually strive to give prescriptive guidance. 697 00:32:30,060 --> 00:32:32,720 Here are the things you can do to make sure that your software's 698 00:32:32,720 --> 00:32:34,240 not the one being talked up here next year, 699 00:32:34,340 --> 00:32:35,900 by not just us but anybody else, 700 00:32:35,900 --> 00:32:37,280 so what are the things you can actually do? 701 00:32:37,660 --> 00:32:39,920 So we wanted to leave you with at least a couple of slides here, 702 00:32:39,940 --> 00:32:43,540 a few detailed elements of prescriptive guidance 703 00:32:43,540 --> 00:32:45,380 to avoid the kinds of attacks we're talking about today, 704 00:32:45,540 --> 00:32:48,160 to help secure these sorts of application frameworks 705 00:32:48,160 --> 00:32:49,380 and social networks a little bit. 706 00:32:49,500 --> 00:32:51,360 This is by no means an exhaustive list, 707 00:32:51,500 --> 00:32:53,720 but these things are some pretty good things that should be involved. 708 00:32:54,100 --> 00:32:56,800 So starting out with some guidance that are specific to this talk, 709 00:32:56,880 --> 00:32:57,860 so the most egregious things, 710 00:32:57,940 --> 00:33:00,540 the most egregious attacks that Tom was talking about 711 00:33:00,540 --> 00:33:03,040 really are ones where you can not only spoof 712 00:33:03,040 --> 00:33:04,700 or manipulate the content of messaging 713 00:33:04,700 --> 00:33:07,000 with things like the cyberbullying, 714 00:33:07,100 --> 00:33:08,460 of changing an image and that kind of stuff, 715 00:33:08,580 --> 00:33:10,120 but really it's that ability to do phishing, 716 00:33:10,220 --> 00:33:13,900 the ability to actually do in-URI type exploit injection, 717 00:33:14,180 --> 00:33:16,980 to do malware propagation through those links. 718 00:33:17,040 --> 00:33:18,000 Those are the really bad things. 719 00:33:19,060 --> 00:33:20,680 And there's been a good first step. 720 00:33:20,760 --> 00:33:22,680 We talked about earlier that there's been some movement 721 00:33:22,680 --> 00:33:24,340 from the time we proposed this talk 722 00:33:24,340 --> 00:33:25,840 and from the time we built the first deck. 723 00:33:26,280 --> 00:33:29,000 About a month ago, Facebook released a feature 724 00:33:29,000 --> 00:33:30,700 they call secure stream publishing, 725 00:33:30,940 --> 00:33:33,940 which does framework-side validation 726 00:33:33,940 --> 00:33:37,660 of user-side, client-side generated messaging 727 00:33:37,660 --> 00:33:39,400 for the URIs. 728 00:33:39,420 --> 00:33:41,440 So these sorts of messages that go back and forth. 729 00:33:41,500 --> 00:33:44,460 When Tom showed you the image with the little fields in the lower right 730 00:33:44,460 --> 00:33:46,600 that accept those kind of link fields, 731 00:33:46,820 --> 00:33:48,400 all of those link fields now, 732 00:33:48,580 --> 00:33:54,080 if an application developer uses this opt-in feature 733 00:33:54,080 --> 00:33:56,560 on the Facebook framework side, 734 00:33:56,680 --> 00:33:59,520 it will actually validate that the URIs coming through in those links 735 00:33:59,520 --> 00:34:02,120 are within the application-owned domain. 736 00:34:02,120 --> 00:34:04,180 So it doesn't link off to somewhere else. 737 00:34:04,360 --> 00:34:05,760 So that doesn't solve all problems, 738 00:34:05,860 --> 00:34:07,940 but that's a pretty huge step to actually making sure 739 00:34:07,940 --> 00:34:08,820 this stuff doesn't go off. 740 00:34:09,000 --> 00:34:10,740 Now one of the things to look out for is 741 00:34:11,460 --> 00:34:13,480 sometimes that might break your actual application. 742 00:34:13,760 --> 00:34:15,460 Because maybe your application goes to links 743 00:34:15,460 --> 00:34:16,400 that aren't inside your domain. 744 00:34:16,680 --> 00:34:19,640 And one of the first reactions to many different developers may be, 745 00:34:19,740 --> 00:34:21,420 well let's just build a general redirection. 746 00:34:21,740 --> 00:34:23,300 Well now you just broke the whole feature. 747 00:34:23,660 --> 00:34:25,160 So the feature's there. 748 00:34:25,600 --> 00:34:27,680 One of the key things is it really hasn't been 749 00:34:27,680 --> 00:34:29,240 publicized yet all that much. 750 00:34:29,460 --> 00:34:31,480 We strongly encourage the people from Facebook, 751 00:34:32,120 --> 00:34:33,800 we're not hanging them because they're working towards the right thing, 752 00:34:33,880 --> 00:34:35,940 but we strongly encourage them to make sure 753 00:34:35,940 --> 00:34:37,400 that all the application developers out there 754 00:34:37,400 --> 00:34:38,300 are aware of this feature, 755 00:34:38,420 --> 00:34:40,720 and encourage them strongly to start using this 756 00:34:40,720 --> 00:34:41,940 as a first step towards doing this. 757 00:34:42,280 --> 00:34:45,100 As of today, Yovil, which is the application we'll be showing you, 758 00:34:45,220 --> 00:34:47,880 and all the other Zynga games have actually fully implemented this feature. 759 00:34:48,160 --> 00:34:50,180 So all of their communications with the framework, 760 00:34:50,720 --> 00:34:52,460 application framework, are no longer susceptible 761 00:34:53,000 --> 00:34:54,720 to this sort of link manipulation at least. 762 00:34:55,240 --> 00:34:57,100 The framework still has the ability to do 763 00:34:57,100 --> 00:35:00,320 image manipulation and the text manipulation of message, 764 00:35:00,560 --> 00:35:02,100 although that's a little bit limited 765 00:35:02,120 --> 00:35:04,520 to cyberbullying because Facebook does 766 00:35:04,520 --> 00:35:05,980 destructive transcoding all images, 767 00:35:06,460 --> 00:35:08,100 so there really shouldn't be a way to inject 768 00:35:08,100 --> 00:35:10,400 anything through that, at least there's not anything known right now, 769 00:35:10,500 --> 00:35:12,200 but like anything, that's only today. 770 00:35:12,400 --> 00:35:13,920 Tomorrow somebody will figure out some way to do that. 771 00:35:14,440 --> 00:35:16,560 But this really is a really great first step, 772 00:35:16,660 --> 00:35:17,840 but the key is it has to be used, 773 00:35:17,920 --> 00:35:19,140 and right now it's not being used widely, 774 00:35:19,340 --> 00:35:20,600 so we strongly encourage its use. 775 00:35:21,000 --> 00:35:23,380 Beyond that, there are some different approaches 776 00:35:23,380 --> 00:35:25,640 that could actually fully secure that sort of message traffic 777 00:35:25,640 --> 00:35:30,320 to allow the client side can't control or manipulate 778 00:35:30,320 --> 00:35:32,100 or generate any of that sort of information 779 00:35:32,120 --> 00:35:32,720 or message content. 780 00:35:33,280 --> 00:35:35,560 One of the ways of doing this is using application 781 00:35:35,560 --> 00:35:37,060 generated messages with whitelists. 782 00:35:37,240 --> 00:35:40,040 So rather than have the client hand the content to Facebook, 783 00:35:40,280 --> 00:35:42,100 there's the possibility that the client can say, 784 00:35:42,240 --> 00:35:43,720 you know, with any application, 785 00:35:44,320 --> 00:35:46,040 there's typically not a valid use 786 00:35:46,040 --> 00:35:48,180 where the user can generate 787 00:35:48,180 --> 00:35:49,500 a magic message of their own. 788 00:35:49,580 --> 00:35:51,020 It's usually from a set of known messages. 789 00:35:51,300 --> 00:35:54,140 So they could actually put a request in to Facebook 790 00:35:54,140 --> 00:35:56,240 saying, what we want is message 24. 791 00:35:56,780 --> 00:35:58,720 Facebook communicate with the application vendor 792 00:35:58,720 --> 00:36:00,340 saying, hey, they wanted 24. 793 00:36:00,700 --> 00:36:02,040 And then the application vendor 794 00:36:02,120 --> 00:36:02,940 hands down the content. 795 00:36:03,160 --> 00:36:04,800 And now you know that it hasn't been mucked with, 796 00:36:04,840 --> 00:36:06,540 it's actually official content, and then Facebook 797 00:36:06,540 --> 00:36:07,820 or the framework can publish it. 798 00:36:08,360 --> 00:36:10,360 Like with anything, there are some downsides to this. 799 00:36:10,540 --> 00:36:12,760 That can involve a significant amount of traffic 800 00:36:12,760 --> 00:36:14,980 between the application framework like Facebook 801 00:36:14,980 --> 00:36:15,840 and the application vendor. 802 00:36:15,960 --> 00:36:17,900 So that's the reason it's not being done today. 803 00:36:18,240 --> 00:36:20,580 And that's a tradeoff that they have decided to make. 804 00:36:20,920 --> 00:36:22,900 It may be a valid decision today. 805 00:36:23,240 --> 00:36:24,740 Going forward with some of the security issues, 806 00:36:24,880 --> 00:36:27,780 it may reach the point where that isn't the case. 807 00:36:27,960 --> 00:36:29,460 And there may be some application frameworks 808 00:36:29,460 --> 00:36:32,100 other than Facebook where maybe they're dealing 809 00:36:32,120 --> 00:36:34,120 with less number of apps, and so they can 810 00:36:34,120 --> 00:36:35,320 actually deal with that sort of traffic. 811 00:36:35,460 --> 00:36:37,360 So this is a much more secure approach, 812 00:36:37,540 --> 00:36:39,680 but there are some business reasons why it may or may not 813 00:36:39,680 --> 00:36:40,500 be the right decision today. 814 00:36:41,560 --> 00:36:44,220 So beyond that sort of specific to the attacks we talked about, 815 00:36:44,360 --> 00:36:45,800 there's also some general guidance 816 00:36:45,800 --> 00:36:47,440 if you're doing these sort of applications against 817 00:36:47,440 --> 00:36:49,720 application frameworks, specifically within a social 818 00:36:49,720 --> 00:36:52,060 networking context, that are just good rules of thumb. 819 00:36:52,700 --> 00:36:54,000 First of all, if you're a framework 820 00:36:54,000 --> 00:36:55,740 vendor, you're a framework operator, 821 00:36:56,020 --> 00:36:57,840 you really want to establish and enforce, 822 00:36:58,080 --> 00:36:59,820 is the key here, some clear rules 823 00:36:59,820 --> 00:37:00,700 for application behavior. 824 00:37:02,820 --> 00:37:04,680 So all of these things we talked about 825 00:37:04,680 --> 00:37:06,140 of protecting the messaging traffic 826 00:37:06,140 --> 00:37:08,120 are only going to protect you if you're dealing 827 00:37:08,120 --> 00:37:10,300 with a valid, non-malicious app. 828 00:37:10,700 --> 00:37:12,360 But the reality is you can actually 829 00:37:12,360 --> 00:37:14,540 publish to many of these things a malicious app. 830 00:37:14,820 --> 00:37:16,520 And it can have completely validated 831 00:37:16,520 --> 00:37:17,820 that the content is coming from you, 832 00:37:17,960 --> 00:37:20,040 but if you're doing bad things like phishing, 833 00:37:20,080 --> 00:37:21,920 scamming, spamming, all these sorts of things, 834 00:37:23,020 --> 00:37:24,460 you're still making the user vulnerable. 835 00:37:24,780 --> 00:37:26,680 The reality is many of the frameworks, 836 00:37:26,780 --> 00:37:28,500 including Facebook, have policies defined 837 00:37:28,500 --> 00:37:30,340 for these things, but there's not a whole lot 838 00:37:30,340 --> 00:37:31,220 of really proactive 839 00:37:32,520 --> 00:37:33,480 enforcement of some of those rules. 840 00:37:33,660 --> 00:37:35,840 I will say that just this week, Facebook 841 00:37:35,840 --> 00:37:37,900 took a pretty significant step 842 00:37:37,900 --> 00:37:39,340 and they discovered one of their developers 843 00:37:39,340 --> 00:37:42,120 had a repeated pattern of this sort of behavior. 844 00:37:42,400 --> 00:37:43,840 And rather than just banning an app, 845 00:37:43,920 --> 00:37:45,560 they banned that developer from ever publishing 846 00:37:45,560 --> 00:37:47,640 anything on Facebook again. So that's a great 847 00:37:47,640 --> 00:37:48,940 step on that kind of thing. 848 00:37:49,060 --> 00:37:51,740 It's better if it's done in a consistent 849 00:37:51,740 --> 00:37:53,040 and wide fashion, which it isn't today. 850 00:37:54,060 --> 00:37:55,880 Another thing is to enable granular approach 851 00:37:55,880 --> 00:37:57,920 to friends and trust. So right now 852 00:37:57,920 --> 00:37:59,800 within these social networks like Facebook, there's only one 853 00:37:59,800 --> 00:38:01,360 level of friends. You're a friend or you're not. 854 00:38:02,120 --> 00:38:03,920 And there's, you know, that implies all 855 00:38:03,920 --> 00:38:06,020 of the possible interpretations of what that trust 856 00:38:06,020 --> 00:38:08,040 means. So it would be actually much 857 00:38:08,040 --> 00:38:10,160 more effective from a security context if you could have multiple 858 00:38:10,160 --> 00:38:12,020 different kinds of friends or different levels of 859 00:38:12,020 --> 00:38:13,880 trust. You know, this is a friend that I have 860 00:38:13,880 --> 00:38:16,200 on a personal nature. This is a friend I have 861 00:38:16,200 --> 00:38:17,760 on a business nature. This is a friend I have 862 00:38:17,760 --> 00:38:20,100 playing Yeovil. And that way, if something 863 00:38:20,100 --> 00:38:22,060 comes to you from a friend within a certain 864 00:38:22,060 --> 00:38:24,080 zone of trust, maybe you're going to put a lot less trust 865 00:38:24,080 --> 00:38:25,780 with somebody who's in your Yeovil friend list 866 00:38:25,780 --> 00:38:27,540 than somebody you've known for 20 years. 867 00:38:27,680 --> 00:38:29,780 Right now, you can't distinguish that. When it comes in, 868 00:38:29,900 --> 00:38:31,740 you're going to have to recognize their name and understand it. 869 00:38:32,120 --> 00:38:33,900 Some of us who only have a couple hundred friends, maybe 870 00:38:33,900 --> 00:38:35,920 that's okay. Some people who have a couple thousand friends, 871 00:38:36,060 --> 00:38:37,520 that's just not going to be possible, really. 872 00:38:38,440 --> 00:38:39,920 So, better granularity 873 00:38:39,920 --> 00:38:42,080 is going to actually lend to supporting 874 00:38:42,080 --> 00:38:43,720 better security structures 875 00:38:43,720 --> 00:38:44,620 going forward as well. 876 00:38:46,140 --> 00:38:48,080 Instituting a mechanism to convey the trustability 877 00:38:48,080 --> 00:38:49,920 of applications. So Facebook 878 00:38:49,920 --> 00:38:52,040 has a basic capability of that right now where 879 00:38:52,040 --> 00:38:53,900 a given application on the application 880 00:38:53,900 --> 00:38:55,900 page, users can go and say, 881 00:38:55,960 --> 00:38:57,200 like, I like this application. 882 00:38:57,700 --> 00:38:59,780 That's really the extent of the trustability right now. 883 00:39:00,040 --> 00:39:02,020 The reality is most people who use Facebook 884 00:39:02,120 --> 00:39:04,100 and they use apps, they're typically going to click that 885 00:39:04,100 --> 00:39:05,880 like because they think it's a cool application, 886 00:39:06,100 --> 00:39:08,080 it does something fun. They're not clicking like 887 00:39:08,080 --> 00:39:08,940 because of its security. 888 00:39:09,780 --> 00:39:12,080 So that really is not all that great of something, but 889 00:39:12,080 --> 00:39:14,060 you know, having mechanisms like some of the 890 00:39:14,060 --> 00:39:15,900 e-commerce sites like Amazon and some of those things 891 00:39:15,900 --> 00:39:17,960 right now where there's a little bit more than just 892 00:39:17,960 --> 00:39:19,960 like, but you can actually make some security qualifications, 893 00:39:20,900 --> 00:39:22,140 it'd be a good idea to work some of 894 00:39:22,140 --> 00:39:24,040 that in so that when a user actually sees an 895 00:39:24,040 --> 00:39:25,980 application that they want to use, or they 896 00:39:25,980 --> 00:39:28,100 see traffic from that application from one of their 897 00:39:28,100 --> 00:39:30,020 friends, they can make some trust decisions. 898 00:39:30,260 --> 00:39:31,420 Part of that also is 899 00:39:32,680 --> 00:39:34,020 education of the users to actually 900 00:39:34,020 --> 00:39:35,000 understand some of these things. 901 00:39:36,180 --> 00:39:37,980 Next one is employing clear and visible 902 00:39:38,640 --> 00:39:40,020 measures to expose measured 903 00:39:40,020 --> 00:39:42,140 spoofing. So right now, Facebook 904 00:39:42,140 --> 00:39:43,560 once again is the example, 905 00:39:43,800 --> 00:39:46,040 when a message comes through from an application, the lower 906 00:39:46,040 --> 00:39:48,100 left, it has a little icon, a little thing that indicates 907 00:39:48,720 --> 00:39:50,020 that's generated at 908 00:39:50,020 --> 00:39:52,000 the framework level for that 909 00:39:52,000 --> 00:39:53,480 application, what application it is. 910 00:39:53,800 --> 00:39:56,020 So the user who's spoofing a message currently can't 911 00:39:56,020 --> 00:39:57,660 spoof that, although they can do 912 00:39:57,660 --> 00:40:00,100 near-homographic attacks, so instead of 913 00:40:00,100 --> 00:40:01,720 Yo Bill, maybe they could do Yo Dashville. 914 00:40:02,240 --> 00:40:03,520 And you're not going to notice. 915 00:40:03,720 --> 00:40:05,840 But maybe a little bit better structure 916 00:40:05,840 --> 00:40:08,040 so that a user, when they glance at a message, 917 00:40:08,180 --> 00:40:09,860 will know that it's official or not. Maybe 918 00:40:09,860 --> 00:40:12,020 structuring a header, things like that. Because right 919 00:40:12,020 --> 00:40:14,080 now, it's pretty easy to spoof content, and only 920 00:40:14,080 --> 00:40:15,980 an educated user or somebody who's really looking out 921 00:40:15,980 --> 00:40:17,340 for it is going to notice that it's not there. 922 00:40:18,560 --> 00:40:20,020 Part of that, once again, is 923 00:40:20,020 --> 00:40:21,940 user education. Safebook 924 00:40:21,940 --> 00:40:23,540 recently added a page on safety. 925 00:40:24,440 --> 00:40:26,000 Facebook safety is describing some 926 00:40:26,000 --> 00:40:27,900 of this stuff. You really have to be proactive 927 00:40:27,900 --> 00:40:29,880 and go find that. So finding ways 928 00:40:29,880 --> 00:40:32,100 to actually make this stuff more evident to the general 929 00:40:32,120 --> 00:40:34,020 user who may not be security savvy is a 930 00:40:34,020 --> 00:40:35,720 very good idea. Then lastly, 931 00:40:35,820 --> 00:40:37,640 the last one here is establishing proactive 932 00:40:37,640 --> 00:40:39,640 processes of vetting apps that actually get 933 00:40:39,640 --> 00:40:41,580 into the framework. So 934 00:40:41,580 --> 00:40:44,100 are they malicious or not? So this is the kind of thing 935 00:40:44,100 --> 00:40:46,000 that Apple gets dinged for sometimes on how 936 00:40:46,000 --> 00:40:47,700 restrictive they are for what goes into the 937 00:40:47,700 --> 00:40:50,040 application store. But they actually 938 00:40:50,040 --> 00:40:51,560 do think about it. Now, they don't test anything, 939 00:40:51,820 --> 00:40:54,020 but if they know things are malicious, they might keep them out. 940 00:40:54,200 --> 00:40:55,840 Right now, most of the social networking 941 00:40:55,840 --> 00:40:57,620 frameworks are fairly open game. 942 00:40:58,160 --> 00:41:00,040 Unless you've been banned by name, like this one 943 00:41:01,040 --> 00:41:01,400 pancake 944 00:41:02,120 --> 00:41:04,040 who's done this week, typically you can throw 945 00:41:04,040 --> 00:41:06,000 an application in there and there's not really a proactive 946 00:41:06,000 --> 00:41:08,080 vetting process to know that you're a valid 947 00:41:08,080 --> 00:41:09,660 application just building a fun little game 948 00:41:09,660 --> 00:41:11,760 or you're somebody who's building some sort of 949 00:41:12,280 --> 00:41:13,700 phishing page, phishing application 950 00:41:13,700 --> 00:41:15,760 or anything like that, or any kind of malicious 951 00:41:16,380 --> 00:41:18,020 software download. It could be that 952 00:41:18,020 --> 00:41:20,100 the Flash client that's actually downloading 953 00:41:20,100 --> 00:41:21,780 the application itself is full of malware. 954 00:41:21,960 --> 00:41:23,940 And right now it's pretty easy for anybody to actually 955 00:41:23,940 --> 00:41:25,340 install one of those into the 956 00:41:26,300 --> 00:41:27,960 Facebook framework and actually have 957 00:41:27,960 --> 00:41:30,080 people start using it. So we would strongly 958 00:41:30,080 --> 00:41:32,000 recommend a much more proactive approach 959 00:41:32,000 --> 00:41:34,040 to that. So I think that's all 960 00:41:34,040 --> 00:41:35,240 that we had for the guidance. 961 00:41:36,860 --> 00:41:37,940 So, last little bit 962 00:41:37,940 --> 00:41:39,560 is, you know, anybody want to join a 963 00:41:39,900 --> 00:41:41,720 group here of the ROFLcopter Appreciation 964 00:41:41,720 --> 00:41:43,780 Society, you can trust us. 965 00:41:43,840 --> 00:41:46,000 It's perfectly safe. You can go and join it 966 00:41:46,000 --> 00:41:46,900 and we won't screw with you at all. 967 00:41:47,020 --> 00:41:49,760 If anybody has any questions, we're happy to take questions 968 00:41:49,760 --> 00:41:51,840 on any of this stuff. Any of the detailed questions 969 00:41:51,840 --> 00:41:53,900 for specific mitigation stuff we'll probably leave to 970 00:41:53,900 --> 00:41:55,720 Chris, because he can speak from the actual 971 00:41:55,720 --> 00:41:57,220 vendor's perspective that actually built them in. 972 00:41:57,500 --> 00:41:59,660 Any of the questions on some of the higher level research 973 00:41:59,660 --> 00:42:01,680 patterns, stuff like that, we're happy to take those. 974 00:42:02,000 --> 00:42:03,380 Either in the room or offline any time. 975 00:42:04,180 --> 00:42:05,080 So, thank you.