1 00:00:00,000 --> 00:00:09,060 And so, we will now commence and start the day with our very, very first speaker workshop. 2 00:00:09,800 --> 00:00:15,200 And what a way it is to start off Saturday morning here at the Packet Hacking Village in the speaker workshop 3 00:00:15,200 --> 00:00:19,860 with a blockbuster, with a blockbuster workshop. 4 00:00:20,500 --> 00:00:28,580 And this morning we have an old friend of ours, and not only an old friend of ours, but also a supporter as well. 5 00:00:29,400 --> 00:00:39,200 She is here to present on using machine learning, which is our speaker's passion, and mobile malware. 6 00:00:39,940 --> 00:00:50,640 And it is my absolute honor and very big pleasure to present to you the Vice President of Mobile at Bearcode, Theodore Tetonis. 7 00:01:13,200 --> 00:01:16,160 Thank you so much, Ming. Really appreciate it. 8 00:01:16,240 --> 00:01:18,880 And it's a pleasure to be here speaking with you today. 9 00:01:18,980 --> 00:01:23,780 You know, I picked 10 a.m. on Saturday morning because I think it weeds out everybody else. 10 00:01:23,820 --> 00:01:28,220 So, first of all, I commend you for waking up and getting here and being on time. 11 00:01:29,000 --> 00:01:30,820 A little bit about my background. 12 00:01:30,980 --> 00:01:35,040 As Ming mentioned, my current title is Vice President of Mobile at Veracode. 13 00:01:35,220 --> 00:01:37,120 But I came to them via an acquisition. 14 00:01:37,420 --> 00:01:40,880 So I was the founder and CEO of a company called Marvin Mobile Security. 15 00:01:41,320 --> 00:01:46,040 We launched Marvin at TechCrunch Disrupt in September 2011 16 00:01:46,040 --> 00:01:48,780 and were acquired by Veracode in September 2012. 17 00:01:49,080 --> 00:01:50,580 So here we are. 18 00:01:50,820 --> 00:01:56,000 And the basis of the technology at Veracode for the mobile application reputation service 19 00:01:56,000 --> 00:01:59,240 is largely based on what we did at Marvin with the machine learning. 20 00:01:59,720 --> 00:02:03,200 But really quickly, you know, Ming said machine learning is my passion, 21 00:02:03,320 --> 00:02:06,600 and we've been working with folks at UC Berkeley since 2008 22 00:02:06,600 --> 00:02:09,440 looking at machine learning to detect malware. 23 00:02:09,860 --> 00:02:14,820 And my background is a defense and intelligence agency prior to Veracode, prior to Marvin. 24 00:02:15,020 --> 00:02:21,240 So what happened there was, you know, some salesperson would go out, have a steak dinner, 25 00:02:21,340 --> 00:02:25,340 or take another vendor to go golfing and, you know, whatever. 26 00:02:25,480 --> 00:02:25,980 They come in. 27 00:02:26,000 --> 00:02:30,560 They lay a pile of crap on the table, and they'd say, make this work, right? 28 00:02:30,760 --> 00:02:33,640 And it was, oh, excuse me. 29 00:02:34,480 --> 00:02:37,880 And it was, let's see, I'll put this in my pocket. 30 00:02:39,360 --> 00:02:40,500 Can you hear me okay still? 31 00:02:40,580 --> 00:02:41,200 Sorry about that. 32 00:02:41,840 --> 00:02:43,380 So, you know, make it work. 33 00:02:43,480 --> 00:02:47,080 And there was nothing that we could ever do to make that pile of crap work. 34 00:02:47,340 --> 00:02:49,880 So we thought, you know, certainly there's a better way, right? 35 00:02:50,120 --> 00:02:52,580 So we started to look at these types of technologies. 36 00:02:52,640 --> 00:02:55,980 And what I wanted to do today is really get hands-on. 37 00:02:55,980 --> 00:03:00,180 To show you, you know, how easy it is to start with Python, with Scikit-learn, 38 00:03:00,220 --> 00:03:07,460 with some of these technologies, to start to classify malware and feeding this data into these algorithms. 39 00:03:07,860 --> 00:03:11,580 So quick show of hands, just so I can, you know, focus on the right things here today. 40 00:03:12,080 --> 00:03:13,920 And who's interested in machine learning? 41 00:03:14,840 --> 00:03:15,960 Yes. Yay. 42 00:03:17,200 --> 00:03:18,580 Mobile in general? 43 00:03:19,000 --> 00:03:20,400 Very good. Awesome. 44 00:03:21,080 --> 00:03:22,420 So let's jump right in. 45 00:03:22,720 --> 00:03:25,860 The agenda here, I am going to really deep dive into. 46 00:03:25,860 --> 00:03:28,780 And then number five, the machine learning and spend a lot of time there. 47 00:03:28,960 --> 00:03:31,900 But we're going to talk in general about the mobile risk. 48 00:03:32,280 --> 00:03:36,880 You know, at Veracode, we focus on protecting the enterprise. 49 00:03:37,440 --> 00:03:40,880 Where their employees are bringing in these applications on their devices. 50 00:03:41,300 --> 00:03:43,020 We'll look at the threats, the vulnerabilities. 51 00:03:43,280 --> 00:03:47,320 But I suspect a large majority of you are really familiar with those sort of things. 52 00:03:47,420 --> 00:03:51,480 So again, we're going to go through that quickly and dive into the ML. 53 00:03:53,580 --> 00:03:54,100 So... 54 00:03:55,120 --> 00:03:56,900 Focusing on the applications, right? 55 00:03:57,000 --> 00:04:05,580 Because that's where we see the greatest risk, are the applications for sensitive data loss, you know, from the enterprise, from the consumer. 56 00:04:05,800 --> 00:04:09,660 And there's two statistics I like to point out on this slide. 57 00:04:09,740 --> 00:04:18,280 One being that nearly 50% of the enterprises have already experienced a breach due to a mobile device accessing a network. 58 00:04:18,520 --> 00:04:23,680 And the other statistic is on the other side there, where 75% of mobile breaches, 59 00:04:23,680 --> 00:04:29,000 will come via the apps, as opposed to attacks on the devices. 60 00:04:29,300 --> 00:04:31,600 And that's projected by Gartner through 2017. 61 00:04:32,960 --> 00:04:39,220 But as we think about mobile security, you know, think about the stacks, right? 62 00:04:39,300 --> 00:04:40,420 So security's hard. 63 00:04:40,580 --> 00:04:41,600 Divide and conquer. 64 00:04:41,860 --> 00:04:49,060 So in the mobile security stack, the applications are the topmost stack, reliant on all the underlying stacks, right? 65 00:04:49,140 --> 00:04:53,020 So at the bottom, we have the infrastructure layer, Verizon, AT&T. 66 00:04:53,680 --> 00:04:54,040 Right? 67 00:04:54,080 --> 00:04:57,040 They're responsible for dealing with their security at that layer, right? 68 00:04:57,140 --> 00:05:00,780 Making sure there's no DDOS for voice over IP, things like that. 69 00:05:01,180 --> 00:05:04,040 To step it up a notch, we have the actual devices. 70 00:05:04,400 --> 00:05:12,080 So the infrastructure layer, interfacing with the firmware, on the devices, Samsung, LTE, Apple. 71 00:05:13,320 --> 00:05:15,600 Responsible for the device layer security. 72 00:05:16,760 --> 00:05:20,840 And then, you know, you take that up a notch to the operating system layer. 73 00:05:21,560 --> 00:05:23,660 So, Google, Android, Apple. 74 00:05:24,220 --> 00:05:27,160 Samsung, you know, with all these versions of Android, 75 00:05:27,380 --> 00:05:31,460 and iOS, responsible for that layer of security. 76 00:05:31,800 --> 00:05:35,120 And then again, at the topmost layer are the applications. 77 00:05:35,340 --> 00:05:36,880 And that's really what we're focused on. 78 00:05:37,900 --> 00:05:40,020 You know, I'll also stop to say, you know, 79 00:05:40,620 --> 00:05:42,960 I think it's my background in computer science, 80 00:05:43,720 --> 00:05:44,920 machine learning, big data, 81 00:05:45,000 --> 00:05:48,940 that really makes me want to become more scientific, 82 00:05:49,060 --> 00:05:53,200 more data-driven with calculating that risk, right? 83 00:05:53,660 --> 00:05:55,640 So risk equals probability times impact. 84 00:05:56,400 --> 00:05:59,000 And, you know, you start to really start to break down. 85 00:05:59,380 --> 00:06:01,800 And I think mobile provides us with that good opportunity 86 00:06:01,800 --> 00:06:06,640 to break down and get more scientific in our risk assessment 87 00:06:06,640 --> 00:06:09,380 by looking at that probability of these apps 88 00:06:09,380 --> 00:06:10,980 making their way onto these devices 89 00:06:10,980 --> 00:06:13,240 and the impact of those actual apps. 90 00:06:13,360 --> 00:06:14,240 Like, what are they doing? 91 00:06:14,440 --> 00:06:16,120 You know, they're not just running on the device. 92 00:06:16,340 --> 00:06:19,580 They're connecting to servers located around the world. 93 00:06:19,900 --> 00:06:22,200 There's currently an iOS flashlight app 94 00:06:22,200 --> 00:06:23,440 that connects to 100, 95 00:06:23,660 --> 00:06:26,060 and 80 different servers during our behavioral analysis. 96 00:06:26,520 --> 00:06:27,700 Like, why is it doing that? 97 00:06:30,420 --> 00:06:33,320 So vulnerabilities, it's Veracode's bread and butter. 98 00:06:33,740 --> 00:06:37,540 The top vulnerabilities that we see on iOS and Android 99 00:06:37,540 --> 00:06:40,600 for the apps that the enterprise is producing, right, 100 00:06:40,720 --> 00:06:43,280 that we want to make sure that those apps are secure, 101 00:06:43,400 --> 00:06:45,380 free of vulnerabilities, are cryptographic issues. 102 00:06:46,560 --> 00:06:48,860 So this is no surprise, right? 103 00:06:49,240 --> 00:06:51,160 Crypto is hard on mobile. 104 00:06:51,540 --> 00:06:52,520 You know, think about, 105 00:06:52,520 --> 00:06:55,140 where are you going to store the key, you know, 106 00:06:55,140 --> 00:06:57,320 on the device that could be rooted by another device? 107 00:06:57,520 --> 00:06:59,240 Well, you know, it roots the device 108 00:06:59,240 --> 00:07:01,680 and can get to the key and all bets are off, right? 109 00:07:02,140 --> 00:07:05,140 Okay, so then let's use OAuth, a token-based solution. 110 00:07:05,480 --> 00:07:06,920 Let's store the key on the server. 111 00:07:07,200 --> 00:07:08,420 Well, what about, you know, 112 00:07:08,440 --> 00:07:11,260 when the mobile device can't connect to the server? 113 00:07:11,440 --> 00:07:13,080 You know, that app becomes useless. 114 00:07:13,460 --> 00:07:14,600 So it's really no surprise 115 00:07:14,600 --> 00:07:19,560 that cryptographic issues are the top issues that we see. 116 00:07:19,680 --> 00:07:21,560 How many in here build mobile apps? 117 00:07:23,100 --> 00:07:24,300 Yeah, Android and iOS. 118 00:07:24,400 --> 00:07:26,120 So you guys know, it's not easy. 119 00:07:27,540 --> 00:07:29,060 So, you know, and then again, 120 00:07:29,240 --> 00:07:30,900 we talk about cryptographic issues, 121 00:07:30,920 --> 00:07:33,920 just protecting the data in use in transit and at rest. 122 00:07:34,200 --> 00:07:35,360 So, you know, at rest, 123 00:07:35,360 --> 00:07:37,860 making sure the SQLite database is encrypted. 124 00:07:38,280 --> 00:07:40,020 But also, again, in transit, 125 00:07:40,080 --> 00:07:42,420 looking at these apps and connecting to these servers 126 00:07:42,420 --> 00:07:46,100 that aren't properly pinning their certificates, et cetera. 127 00:07:46,280 --> 00:07:48,280 So it's not just an on-device issue 128 00:07:48,280 --> 00:07:49,820 when we talk about crypto. 129 00:07:49,860 --> 00:07:52,140 So what we like to promote, 130 00:07:52,520 --> 00:07:55,220 at Veracode, is the secure software development life cycle. 131 00:07:55,540 --> 00:07:55,920 Right? 132 00:07:55,980 --> 00:07:56,800 Not an afterthought. 133 00:07:56,980 --> 00:07:58,720 Not, you know, getting in your way 134 00:07:58,720 --> 00:08:01,220 when you're developing these mobile apps. 135 00:08:01,400 --> 00:08:03,120 Really making it part of your routine. 136 00:08:03,260 --> 00:08:04,600 Integrated with the IDEs. 137 00:08:04,800 --> 00:08:06,940 Every new build, you know, run it through. 138 00:08:07,160 --> 00:08:08,280 Do a static analysis. 139 00:08:08,760 --> 00:08:09,780 Look for these vulnerabilities. 140 00:08:10,380 --> 00:08:12,940 We'll provide you with remediation options, et cetera. 141 00:08:14,460 --> 00:08:18,540 So the top attacks that we see on iOS and Android 142 00:08:18,540 --> 00:08:21,760 are MRAPs, Mobile Remote Access Trojans. 143 00:08:21,760 --> 00:08:22,380 Right? 144 00:08:22,560 --> 00:08:25,080 So that's similar across the board. 145 00:08:25,720 --> 00:08:27,980 Man in the Middle, which I think is our next speaker 146 00:08:27,980 --> 00:08:28,940 talking about that. 147 00:08:29,540 --> 00:08:30,880 You know, big issue. 148 00:08:31,100 --> 00:08:34,140 Again, with those certificates not being properly pinned 149 00:08:34,140 --> 00:08:36,000 with the data going back and forth. 150 00:08:36,060 --> 00:08:37,520 Being able to man in the middle. 151 00:08:38,660 --> 00:08:39,940 Considerable number of applications. 152 00:08:40,760 --> 00:08:41,520 Wallet apps. 153 00:08:42,360 --> 00:08:44,280 Some gambling apps we can show you 154 00:08:44,280 --> 00:08:46,340 where they're storing the key in their code. 155 00:08:47,060 --> 00:08:48,720 So Man in the Middle is an issue. 156 00:08:51,240 --> 00:08:51,740 Let's see. 157 00:08:51,740 --> 00:08:52,100 Let's see here. 158 00:08:52,380 --> 00:08:53,360 Web quit vulnerability. 159 00:08:53,740 --> 00:08:54,940 Zero day attacks on iOS. 160 00:08:55,460 --> 00:08:57,580 Oh, the certificates and the profiles. 161 00:08:58,020 --> 00:09:00,220 I think MobileIron is coming out with some 162 00:09:00,960 --> 00:09:02,380 interesting research on this. 163 00:09:02,520 --> 00:09:03,660 But, you know, think about it. 164 00:09:03,960 --> 00:09:07,860 I could send any of you on an iOS device a link 165 00:09:07,860 --> 00:09:09,720 that says, you know, open this. 166 00:09:09,720 --> 00:09:10,480 Spearfish, whatever. 167 00:09:10,720 --> 00:09:13,400 Open this link on your mobile device. 168 00:09:13,620 --> 00:09:14,840 I'll show you a cool app. 169 00:09:15,280 --> 00:09:15,720 Right? 170 00:09:15,780 --> 00:09:17,120 So they open it on their mobile device. 171 00:09:17,200 --> 00:09:20,060 And all of a sudden, you know, they've installed a profile 172 00:09:21,740 --> 00:09:23,180 that allows me to proxy all their traffic 173 00:09:24,300 --> 00:09:26,660 through, you know, my Man in the Middle proxy 174 00:09:26,660 --> 00:09:27,940 to see all their data. 175 00:09:28,340 --> 00:09:30,400 So these profiles, these certificates 176 00:09:30,400 --> 00:09:32,240 are an issue on iOS. 177 00:09:32,440 --> 00:09:33,960 And I see those as a real vulnerability. 178 00:09:34,740 --> 00:09:35,740 Profiles in particular 179 00:09:36,260 --> 00:09:37,500 with the Man in the Middle. 180 00:09:38,140 --> 00:09:40,180 And then, you know, we all have 181 00:09:40,180 --> 00:09:41,500 probably become aware 182 00:09:41,500 --> 00:09:43,140 of stage fright 183 00:09:43,140 --> 00:09:45,980 and some other recent exploits on Android. 184 00:09:46,260 --> 00:09:47,960 I think that the issue with Android, 185 00:09:48,120 --> 00:09:49,120 you know, is not 186 00:09:49,120 --> 00:09:51,360 that it's insecure 187 00:09:51,360 --> 00:09:53,460 because of the open source nature 188 00:09:53,460 --> 00:09:54,140 of the code 189 00:09:54,140 --> 00:09:56,200 or because it's not the walled garden 190 00:09:56,200 --> 00:09:58,080 that Apple provides. 191 00:09:58,540 --> 00:10:00,140 But the issue with Android is 192 00:10:00,140 --> 00:10:02,420 Google doesn't have a way to 193 00:10:04,080 --> 00:10:05,500 update these devices 194 00:10:05,500 --> 00:10:08,260 in a timely, efficient way. 195 00:10:08,380 --> 00:10:08,540 Right? 196 00:10:08,580 --> 00:10:10,040 They're reliant upon the carriers. 197 00:10:10,280 --> 00:10:12,100 They're reliant on the device manufacturers. 198 00:10:12,620 --> 00:10:15,240 So they have no way of getting these updates out there. 199 00:10:15,280 --> 00:10:15,420 Right? 200 00:10:15,420 --> 00:10:18,180 All code has vulnerabilities and securities. 201 00:10:18,440 --> 00:10:19,840 All software has that. 202 00:10:20,020 --> 00:10:20,980 But it's the processes 203 00:10:20,980 --> 00:10:23,180 as how we remediate 204 00:10:23,180 --> 00:10:25,400 those vulnerabilities that really matters. 205 00:10:25,680 --> 00:10:27,620 And I think Android and Google in particular 206 00:10:27,620 --> 00:10:28,800 are struggling with that 207 00:10:29,220 --> 00:10:30,400 to push these updates out 208 00:10:30,400 --> 00:10:31,940 because they're reliant on the carriers. 209 00:10:32,140 --> 00:10:33,300 And I think that's why it makes it 210 00:10:33,300 --> 00:10:36,160 a more insecure operating system. 211 00:10:38,200 --> 00:10:39,320 So, you know, 212 00:10:39,340 --> 00:10:41,380 we're jumping into the ML here. 213 00:10:41,560 --> 00:10:42,940 You know, mobile malware detection. 214 00:10:43,600 --> 00:10:45,400 Again, you know, why are we doing this? 215 00:10:45,420 --> 00:10:47,080 Why are we looking at new solutions? 216 00:10:47,820 --> 00:10:49,560 Well, antivirus on mobile 217 00:10:49,560 --> 00:10:51,040 just will not work, right? 218 00:10:51,500 --> 00:10:52,720 You know, think of all the signatures. 219 00:10:53,020 --> 00:10:55,140 Think of all, you know, how your computer 220 00:10:55,140 --> 00:10:57,520 in the wired world just slows down. 221 00:10:57,680 --> 00:10:58,760 Chug, chug, chug 222 00:10:58,760 --> 00:11:00,320 when the AV is running 223 00:11:00,320 --> 00:11:02,240 through all those signatures 224 00:11:02,240 --> 00:11:05,480 to see if there's a match on your computer. 225 00:11:05,900 --> 00:11:07,220 So we need new ways. 226 00:11:07,340 --> 00:11:08,920 You know, on mobile there's limited CPU, 227 00:11:09,260 --> 00:11:10,700 limited memory, battery. 228 00:11:11,140 --> 00:11:12,820 So AV isn't going to work. 229 00:11:14,440 --> 00:11:15,400 So, you know, 230 00:11:15,420 --> 00:11:17,460 even Symantec says AV is dead. 231 00:11:19,000 --> 00:11:20,700 And then as we look at these 232 00:11:20,700 --> 00:11:22,980 malware samples, again, you know, 233 00:11:22,980 --> 00:11:25,180 more of an issue on the Android side. 234 00:11:25,940 --> 00:11:27,360 But with iOS, 235 00:11:27,560 --> 00:11:29,360 you know, I talked about the inherent issues 236 00:11:29,360 --> 00:11:31,120 with the profiles and the certificates, 237 00:11:31,560 --> 00:11:33,160 et cetera. But you can see here 238 00:11:33,160 --> 00:11:34,960 mobile malware from 239 00:11:34,960 --> 00:11:37,340 2011 to 2014 growing to, 240 00:11:37,460 --> 00:11:38,400 you know, about 241 00:11:38,400 --> 00:11:41,040 1.5 million malware samples. 242 00:11:41,400 --> 00:11:43,240 And then if we look at, you know, 243 00:11:43,260 --> 00:11:45,320 first quarter of 2015, 244 00:11:45,420 --> 00:11:47,700 how those are growing as well. 245 00:11:47,860 --> 00:11:49,480 So really looking at 246 00:11:49,480 --> 00:11:50,940 a three-fold growth, I think, 247 00:11:50,940 --> 00:11:53,160 from previous Q1 248 00:11:53,160 --> 00:11:54,560 2014 to 2015. 249 00:11:55,260 --> 00:11:57,440 So why, you know, 250 00:11:57,460 --> 00:11:58,400 mobile malware? 251 00:11:58,640 --> 00:12:01,080 Well, a lot of that is financially 252 00:12:01,080 --> 00:12:03,280 motivated. And I think 253 00:12:03,280 --> 00:12:04,980 as we start to use these devices 254 00:12:04,980 --> 00:12:07,400 more for wallets, 255 00:12:07,400 --> 00:12:08,660 more for payment transactions, 256 00:12:09,480 --> 00:12:11,240 I mean, they're tracking devices, 257 00:12:11,540 --> 00:12:12,960 right? So there's tons of information, 258 00:12:13,280 --> 00:12:15,400 tons of data that can be monetized. 259 00:12:15,420 --> 00:12:17,660 There, you know, as well as, 260 00:12:17,680 --> 00:12:18,840 you know, the real currency 261 00:12:19,420 --> 00:12:21,100 stuff with the wallets and 262 00:12:21,100 --> 00:12:23,000 your banking credentials, et cetera. 263 00:12:25,020 --> 00:12:25,660 All right. 264 00:12:27,460 --> 00:12:29,360 So I got through that pretty quickly, and I'm sure 265 00:12:29,360 --> 00:12:31,260 all you guys have seen a lot of that before 266 00:12:31,260 --> 00:12:32,800 and familiar with it. But this is really, 267 00:12:33,300 --> 00:12:35,480 again, where I'd like to spend the majority of our time, 268 00:12:36,640 --> 00:12:37,440 is using 269 00:12:37,440 --> 00:12:39,160 machine learning to detect mobile malware. 270 00:12:40,000 --> 00:12:41,280 So, you know, what we 271 00:12:41,280 --> 00:12:43,620 found initially in doing our research, 272 00:12:43,800 --> 00:12:44,980 and we used the Windows 273 00:12:45,420 --> 00:12:47,120 XP malware data set, right? 274 00:12:47,160 --> 00:12:48,860 This was way back in 2008, so, 275 00:12:48,940 --> 00:12:51,160 you know, we didn't have 1.5 million 276 00:12:51,160 --> 00:12:53,280 variants of Android malware that we're 277 00:12:53,280 --> 00:12:54,560 able to train on today. 278 00:12:55,180 --> 00:12:57,300 But we used XP because we thought, hey, 279 00:12:57,300 --> 00:12:59,160 if we can make it work there, we can make it work 280 00:12:59,160 --> 00:13:01,200 anywhere. And let me just 281 00:13:01,200 --> 00:13:03,260 step back and say, you know, as I talk 282 00:13:03,260 --> 00:13:05,220 about the operating systems for iOS and 283 00:13:05,220 --> 00:13:07,000 Android, like, thank goodness they're 284 00:13:07,000 --> 00:13:08,780 Unix-based operating systems that are 285 00:13:09,220 --> 00:13:10,940 sandboxed, right? The application, 286 00:13:11,220 --> 00:13:13,080 like, good lord, if we had to deal with XP 287 00:13:13,080 --> 00:13:15,300 on mobile, that would be a disaster. 288 00:13:15,940 --> 00:13:16,460 So, 289 00:13:17,180 --> 00:13:18,960 when we looked at the XP 290 00:13:19,720 --> 00:13:20,240 malware, 291 00:13:21,080 --> 00:13:23,240 what we found in looking at, 292 00:13:23,320 --> 00:13:24,920 you know, what vendors 293 00:13:25,420 --> 00:13:27,420 provided signatures for different variants 294 00:13:27,420 --> 00:13:29,160 of malware, it really aligned, 295 00:13:29,480 --> 00:13:31,220 right? With, you know, a vendor 296 00:13:31,220 --> 00:13:33,460 one was able to find a lot of Trojans, 297 00:13:33,460 --> 00:13:35,400 but missed viruses and worms. 298 00:13:35,720 --> 00:13:37,400 You know, vendor two found a lot 299 00:13:37,400 --> 00:13:39,200 of viruses, but missed the worms, 300 00:13:39,400 --> 00:13:40,980 you know, missed the Trojans, etc. 301 00:13:41,480 --> 00:13:42,860 So why does this happen? 302 00:13:43,600 --> 00:13:45,400 Well, two things. You know, 303 00:13:45,420 --> 00:13:47,240 the vendor becomes really good 304 00:13:47,240 --> 00:13:49,320 at, you know, what they're looking for, 305 00:13:49,400 --> 00:13:50,660 right? There's a human bias 306 00:13:51,220 --> 00:13:53,420 inherent in, you know, what these 307 00:13:54,180 --> 00:13:55,140 malware detection, 308 00:13:55,500 --> 00:13:57,260 you know, these tools, what they're 309 00:13:57,260 --> 00:13:59,320 familiar with. So, you know, 310 00:13:59,320 --> 00:14:00,900 human beings aren't very good 311 00:14:01,220 --> 00:14:03,220 at getting out of their own biases and 312 00:14:03,220 --> 00:14:05,320 really expanding to see 313 00:14:05,320 --> 00:14:07,280 different things. So they're looking for 314 00:14:07,280 --> 00:14:09,340 what they know, and that's what they find. 315 00:14:09,400 --> 00:14:11,380 And their tools are around what they know, and there's some 316 00:14:11,380 --> 00:14:13,200 you know, expertise involved, and 317 00:14:13,200 --> 00:14:15,400 you know, on a whole, if you look at, you know, 318 00:14:15,420 --> 00:14:16,380 kind of the whole vendor 319 00:14:16,980 --> 00:14:19,040 ecosystem, like it's great, like 320 00:14:19,040 --> 00:14:21,080 great, everybody's finding different things, 321 00:14:21,140 --> 00:14:23,380 and that works out. But it really doesn't 322 00:14:23,380 --> 00:14:25,400 scale, because there's not 323 00:14:25,400 --> 00:14:27,160 enough people like you all to 324 00:14:27,160 --> 00:14:29,360 go and be able to detect these things 325 00:14:29,360 --> 00:14:31,320 at scale. And then, 326 00:14:31,380 --> 00:14:33,560 you know, again, we have our human biases. 327 00:14:34,000 --> 00:14:35,080 So the correlation 328 00:14:35,080 --> 00:14:37,360 between type of malware detected 329 00:14:37,360 --> 00:14:38,340 and security vendor, 330 00:14:39,000 --> 00:14:40,560 you know, poses a 331 00:14:41,320 --> 00:14:43,220 problem with this type of approach. 332 00:14:44,040 --> 00:14:44,860 You know, the 333 00:14:45,420 --> 00:14:47,120 cognitive bias in the tools that they're using 334 00:14:47,120 --> 00:14:49,220 and what they're looking for, and 335 00:14:49,220 --> 00:14:51,440 you know, there's only a little 336 00:14:51,440 --> 00:14:53,420 bit that we can really look for. It really is 337 00:14:53,420 --> 00:14:54,500 a needle in a haystack. 338 00:14:56,680 --> 00:14:57,200 So, 339 00:14:57,280 --> 00:14:59,240 you know, this is going back to 340 00:14:59,240 --> 00:15:01,380 1990, but I think we've 341 00:15:01,380 --> 00:15:02,800 really started to see 342 00:15:03,360 --> 00:15:04,820 the research trends in 343 00:15:05,360 --> 00:15:07,040 using ML to detect 344 00:15:07,040 --> 00:15:09,300 malware really grow. Again, 345 00:15:09,400 --> 00:15:10,740 2007, 2008, 346 00:15:11,920 --> 00:15:12,960 to today. 347 00:15:13,240 --> 00:15:15,400 This only goes to 2011, but, you know, 348 00:15:15,420 --> 00:15:17,340 you can see the trend and how 349 00:15:17,340 --> 00:15:19,300 it's going. So, you know, any Google Scholar 350 00:15:19,300 --> 00:15:21,320 search on machine learning 351 00:15:21,320 --> 00:15:22,580 to detect malware, 352 00:15:23,160 --> 00:15:25,540 you'll see, you know, a lot more research 353 00:15:25,540 --> 00:15:27,340 in that realm. And I think, you know, 354 00:15:27,360 --> 00:15:28,580 as the machine learning 355 00:15:29,560 --> 00:15:31,280 tools become more readily 356 00:15:31,280 --> 00:15:33,300 available, now we're talking about 357 00:15:33,300 --> 00:15:35,320 deep learning. I don't know if you guys are all familiar 358 00:15:35,320 --> 00:15:37,360 with deep learning, where we 359 00:15:37,360 --> 00:15:38,740 don't have to train, 360 00:15:39,220 --> 00:15:41,280 right? So there's supervised and unsupervised 361 00:15:41,280 --> 00:15:43,300 learning, which we'll talk about, where we don't 362 00:15:43,300 --> 00:15:45,340 have to train the data, where we can find 363 00:15:45,420 --> 00:15:47,020 those correlations and find that 364 00:15:47,020 --> 00:15:47,600 the malicious 365 00:15:49,640 --> 00:15:50,360 binaries 366 00:15:50,360 --> 00:15:53,280 without training is also going 367 00:15:53,280 --> 00:15:54,900 to be very interesting moving forward. 368 00:15:55,880 --> 00:15:57,140 So this is 369 00:15:57,140 --> 00:15:59,280 our patent on this. 370 00:15:59,320 --> 00:16:01,120 It was filed in 2011. 371 00:16:01,480 --> 00:16:03,360 So automated behavioral and static 372 00:16:03,360 --> 00:16:05,320 analysis using an instrumented 373 00:16:05,320 --> 00:16:06,760 sandbox and machine learning classification 374 00:16:06,760 --> 00:16:08,700 for mobile security. 375 00:16:09,120 --> 00:16:10,720 So what we're doing here 376 00:16:11,100 --> 00:16:12,760 is we're doing static 377 00:16:13,220 --> 00:16:15,140 and dynamic behavioral analysis 378 00:16:15,420 --> 00:16:17,160 on these applications. And it's 379 00:16:17,160 --> 00:16:19,000 really important as you're doing this, 380 00:16:19,160 --> 00:16:21,080 right? We're talking about calculations, 381 00:16:21,380 --> 00:16:23,340 we're talking about statistics. It's really 382 00:16:23,340 --> 00:16:24,880 important to have a standard baseline. 383 00:16:25,460 --> 00:16:26,900 So on the Android side, 384 00:16:27,460 --> 00:16:28,960 we're using emulators 385 00:16:28,960 --> 00:16:31,380 because we can really get the data that we need 386 00:16:31,380 --> 00:16:33,340 from the Android emulators and we can scale 387 00:16:33,340 --> 00:16:34,940 those in AWS, which is great. 388 00:16:35,760 --> 00:16:37,140 But we know our baseline 389 00:16:37,140 --> 00:16:39,220 every time. So we know we're 390 00:16:39,220 --> 00:16:41,360 measuring CPU, we're measuring memory 391 00:16:41,360 --> 00:16:43,400 threads, we're measuring, you know, 392 00:16:43,420 --> 00:16:45,280 the files that are changed on 393 00:16:45,420 --> 00:16:46,920 those emulator devices. 394 00:16:47,480 --> 00:16:49,360 You know, we're also making it stealthy, right? 395 00:16:49,940 --> 00:16:51,080 We're making sure to 396 00:16:51,080 --> 00:16:53,100 have the, you know, 397 00:16:53,140 --> 00:16:55,220 your number of bars for your carrier go 398 00:16:55,220 --> 00:16:57,220 up and down, your battery go up and down, etc. 399 00:16:57,900 --> 00:16:59,400 Because it, you know, still these 400 00:16:59,400 --> 00:17:01,040 malware variants are going to say, emulator, 401 00:17:01,240 --> 00:17:03,280 don't do anything bad, right? Check 402 00:17:03,280 --> 00:17:05,160 first thing you write when you write 403 00:17:05,160 --> 00:17:06,460 a malicious variant. 404 00:17:07,180 --> 00:17:09,380 So you want to make it stealthy. 405 00:17:09,440 --> 00:17:11,300 And it's highly instrumented in detecting 406 00:17:11,300 --> 00:17:12,180 all these things. 407 00:17:12,820 --> 00:17:15,380 On iOS, we don't have an emulator 408 00:17:15,420 --> 00:17:17,360 that will give us that level 409 00:17:17,360 --> 00:17:19,240 of data that we need. So we 410 00:17:19,240 --> 00:17:21,200 have to actually perform the 411 00:17:21,200 --> 00:17:22,960 behavioral analysis on devices. 412 00:17:23,740 --> 00:17:24,260 But 413 00:17:25,060 --> 00:17:27,240 Amazon just announced actually two days ago 414 00:17:27,240 --> 00:17:29,440 that AWS is now providing 415 00:17:29,440 --> 00:17:31,440 actual devices in their cloud 416 00:17:31,440 --> 00:17:33,260 for testing. So we're looking into that 417 00:17:33,260 --> 00:17:35,420 so that we can scale there as well. 418 00:17:36,240 --> 00:17:37,000 Static analysis, 419 00:17:37,420 --> 00:17:39,480 we're looking for things like the vulnerabilities, 420 00:17:39,740 --> 00:17:40,860 the cryptographic vulnerabilities. 421 00:17:41,060 --> 00:17:42,860 We're looking for API interactions, 422 00:17:43,240 --> 00:17:45,220 right? So, you know, does this 423 00:17:45,420 --> 00:17:47,640 flashlight app access your microphone? 424 00:17:48,060 --> 00:17:49,500 You know, that would be 425 00:17:49,500 --> 00:17:51,420 something that would be a predictive feature 426 00:17:51,420 --> 00:17:53,400 and probably move it closer to 427 00:17:53,400 --> 00:17:55,420 the spyware category than the 428 00:17:55,420 --> 00:17:56,680 flashlight category of apps. 429 00:17:59,320 --> 00:18:01,400 So I know this is really 430 00:18:01,400 --> 00:18:03,160 hard to see, but our patent's been 431 00:18:03,160 --> 00:18:05,000 referenced 21 times by 432 00:18:05,000 --> 00:18:06,420 folks like Amazon, 433 00:18:06,920 --> 00:18:08,800 Trend Micro, FireEye, 434 00:18:08,980 --> 00:18:10,000 Qualcomm, 435 00:18:11,140 --> 00:18:12,800 Intuit, etc. So 436 00:18:13,460 --> 00:18:15,120 it's great to see 437 00:18:15,420 --> 00:18:16,600 that, you know, this 438 00:18:17,960 --> 00:18:19,260 approach is kind of 439 00:18:19,260 --> 00:18:21,400 taking off. Because I really think this is 440 00:18:21,400 --> 00:18:23,240 the future of malware detection 441 00:18:23,240 --> 00:18:24,020 on mobile. 442 00:18:24,880 --> 00:18:27,360 So again, really bad slide here. Can't see 443 00:18:27,360 --> 00:18:29,140 anything. But if you were more interested, 444 00:18:29,280 --> 00:18:30,640 this image is out there 445 00:18:31,260 --> 00:18:33,400 looking at, you know, how the security domain 446 00:18:34,020 --> 00:18:35,220 and the machine 447 00:18:35,220 --> 00:18:36,960 learning domain kind of line up. 448 00:18:39,020 --> 00:18:40,380 Move past that quickly. 449 00:18:41,020 --> 00:18:43,280 And then, you know, this slide is just more 450 00:18:43,280 --> 00:18:44,600 talking about that process. 451 00:18:45,420 --> 00:18:45,880 So, you know, 452 00:18:45,880 --> 00:18:46,500 this is the data that we go through 453 00:18:46,980 --> 00:18:49,260 using the static and the behavioral 454 00:18:49,260 --> 00:18:51,020 analysis, getting all that 455 00:18:51,020 --> 00:18:52,380 different types of data, right? 456 00:18:52,500 --> 00:18:54,760 So massive amounts of data after we do those 457 00:18:54,760 --> 00:18:55,880 static and dynamic analysis, 458 00:18:56,120 --> 00:18:58,800 one, you know, small app can produce 459 00:18:58,800 --> 00:19:01,200 a thousand pages of data. 460 00:19:01,400 --> 00:19:03,080 So good luck, you know, 461 00:19:03,080 --> 00:19:04,940 as a human being looking at that, 462 00:19:05,060 --> 00:19:06,780 looking for the needle in the haystack, 463 00:19:06,980 --> 00:19:09,260 trying to find, you know, what's 464 00:19:09,260 --> 00:19:10,700 malicious in this type of application. 465 00:19:10,940 --> 00:19:13,540 The only way to do it is to, you know, 466 00:19:15,420 --> 00:19:16,140 use machine learning algorithms. 467 00:19:16,580 --> 00:19:18,880 And again, we'll talk about how to visualize this, 468 00:19:19,020 --> 00:19:21,020 you know, how these machine learning algorithms work. 469 00:19:21,740 --> 00:19:23,160 You know, we've had some difficulty, 470 00:19:24,280 --> 00:19:25,620 honestly, in describing 471 00:19:25,620 --> 00:19:26,900 this technology 472 00:19:27,840 --> 00:19:29,280 in a way that people can understand, 473 00:19:29,420 --> 00:19:31,260 right? It's kind of like, oh, you throw all this 474 00:19:31,260 --> 00:19:33,000 data into the machine learning black box 475 00:19:33,000 --> 00:19:35,280 and, you know, it's like magic. It comes out with a 476 00:19:35,860 --> 00:19:36,580 prediction of 477 00:19:37,420 --> 00:19:38,860 maliciousness. And they're like, ah, 478 00:19:39,040 --> 00:19:41,240 explain that magic to us a little bit more. 479 00:19:41,380 --> 00:19:43,320 So, you know, we've had to get better at that. 480 00:19:43,460 --> 00:19:45,180 You know, there's some new visualizations 481 00:19:45,420 --> 00:19:47,300 out there that kind of help people wrap their 482 00:19:47,300 --> 00:19:49,080 head around what these really advanced 483 00:19:49,080 --> 00:19:50,100 algorithms are doing. 484 00:19:50,800 --> 00:19:52,680 But the way that you can think about it, 485 00:19:52,760 --> 00:19:55,160 and I think it's on my next slide, we'll start to 486 00:19:55,160 --> 00:19:57,440 look at, you know, what data goes in 487 00:19:57,440 --> 00:19:58,700 and then what 488 00:19:59,220 --> 00:20:00,680 you can visualize coming out. 489 00:20:04,180 --> 00:20:05,060 So features. 490 00:20:05,300 --> 00:20:07,400 You know, we talked about the measuring devices, 491 00:20:07,540 --> 00:20:08,580 we talked about the sensors, 492 00:20:08,800 --> 00:20:10,400 right? So that's the emulator. 493 00:20:10,800 --> 00:20:12,080 That's the static analysis. 494 00:20:13,320 --> 00:20:15,140 That's all creating features. 495 00:20:15,420 --> 00:20:17,400 And really, you know, you can have 496 00:20:17,400 --> 00:20:19,140 a million features, basically, 497 00:20:19,220 --> 00:20:21,480 that go out. But we've, 498 00:20:21,500 --> 00:20:23,300 you know, kind of found a sweet spot around 500 499 00:20:23,300 --> 00:20:25,440 or so highly predictive features. 500 00:20:26,340 --> 00:20:27,440 So, you know, 501 00:20:27,460 --> 00:20:29,000 you're looking at those features, and 502 00:20:29,000 --> 00:20:31,440 as a data scientist, I don't know if anybody's played 503 00:20:31,440 --> 00:20:33,240 around with scikit-learn, 504 00:20:33,300 --> 00:20:34,880 with Python, looking at machine learning. 505 00:20:35,020 --> 00:20:36,260 I think you'll find that 506 00:20:37,020 --> 00:20:39,400 you spend a lot of time trying to 507 00:20:39,400 --> 00:20:40,920 create what's called the design matrix. 508 00:20:41,300 --> 00:20:42,980 Right? Where you have your features 509 00:20:42,980 --> 00:20:45,320 as columns, and you're buying 510 00:20:45,420 --> 00:20:46,280 binaries as rows. 511 00:20:49,200 --> 00:20:50,840 So, you know, you get all that, 512 00:20:50,960 --> 00:20:52,220 you find your features, 513 00:20:52,480 --> 00:20:54,600 and then you perform your prediction. 514 00:20:54,920 --> 00:20:57,080 So in our case, it's binary classification. 515 00:20:57,880 --> 00:20:59,360 Right? So we're looking 516 00:20:59,360 --> 00:21:01,260 and trying to predict 517 00:21:01,260 --> 00:21:02,700 malicious applications. 518 00:21:03,440 --> 00:21:05,340 And then you select 519 00:21:05,340 --> 00:21:07,360 a model, which quite frankly, I think 520 00:21:07,360 --> 00:21:09,540 a lot of people get caught up with this as well. 521 00:21:09,820 --> 00:21:11,240 What model should I use? 522 00:21:11,280 --> 00:21:12,260 Should I use random forest? 523 00:21:12,820 --> 00:21:15,100 Should I use support 524 00:21:15,420 --> 00:21:17,080 vector machines? You know, what should I use? 525 00:21:17,280 --> 00:21:18,980 You know what? There's something called 526 00:21:18,980 --> 00:21:20,980 ensemble machine learning, which basically 527 00:21:20,980 --> 00:21:22,920 you throw it into all those, 528 00:21:23,120 --> 00:21:24,800 and the algorithm 529 00:21:25,400 --> 00:21:26,700 decides what is best. 530 00:21:27,140 --> 00:21:29,300 So don't get caught up on the model 531 00:21:29,300 --> 00:21:31,480 selection at all. Just use an ensemble 532 00:21:31,480 --> 00:21:32,520 and let the, 533 00:21:32,600 --> 00:21:34,940 let that decide, you know, whether 534 00:21:34,940 --> 00:21:37,180 the random forest provided a better 535 00:21:37,180 --> 00:21:39,380 prediction than the support vector 536 00:21:39,380 --> 00:21:40,140 machines, etc. 537 00:21:42,780 --> 00:21:45,300 So this is kind of how I wanted you to visualize 538 00:21:45,420 --> 00:21:47,300 You know, we talked about, again, 539 00:21:47,340 --> 00:21:48,740 the features as columns 540 00:21:49,220 --> 00:21:50,680 and the apps as rows. 541 00:21:51,020 --> 00:21:53,300 So think of, you know, one column being 542 00:21:53,300 --> 00:21:54,960 network traffic, right? 543 00:21:55,040 --> 00:21:57,500 So, again, a flashlight app 544 00:21:57,500 --> 00:21:59,080 that is accessing 545 00:21:59,080 --> 00:22:01,400 180 different servers. Like, why 546 00:22:01,400 --> 00:22:02,380 is it doing that? 547 00:22:03,180 --> 00:22:04,880 So that would be a feature, right? 548 00:22:05,680 --> 00:22:07,180 Another feature would be 549 00:22:07,180 --> 00:22:08,780 you know, trying to 550 00:22:09,220 --> 00:22:11,340 root the device. So that's an API, 551 00:22:11,460 --> 00:22:13,240 a static code capabilities 552 00:22:13,240 --> 00:22:13,720 feature. 553 00:22:15,500 --> 00:22:16,940 Network traffic, TCP, 554 00:22:17,200 --> 00:22:17,580 UDP. 555 00:22:19,780 --> 00:22:21,020 Just, you know, again, 556 00:22:21,160 --> 00:22:22,800 any number of features. We found 557 00:22:22,800 --> 00:22:25,200 for us, 500 is a pretty good 558 00:22:25,200 --> 00:22:27,260 sweet spot where we can do 559 00:22:27,260 --> 00:22:29,180 these predictions in 560 00:22:29,180 --> 00:22:30,800 real time. And 561 00:22:31,420 --> 00:22:32,900 overfitting is an issue as well. 562 00:22:33,220 --> 00:22:35,320 But, again, you know, let these 563 00:22:35,320 --> 00:22:37,380 models, let the ensemble kind of 564 00:22:37,380 --> 00:22:38,820 take care of that for you. 565 00:22:40,000 --> 00:22:41,380 So, you know, on the left 566 00:22:41,380 --> 00:22:42,900 there is the visualization 567 00:22:42,900 --> 00:22:45,120 of kind of how random forest works. 568 00:22:45,420 --> 00:22:47,040 You get to give like a Plinko game 569 00:22:47,640 --> 00:22:49,240 where, you know, it's kind of taking those 570 00:22:49,240 --> 00:22:51,080 features and saying, okay, you go over here, 571 00:22:51,160 --> 00:22:53,380 you go over there. But on a 572 00:22:53,380 --> 00:22:55,300 very high dimensional 573 00:22:55,300 --> 00:22:57,040 space. And I think this is what 574 00:22:57,040 --> 00:22:59,220 kind of tricks people up when you start to 575 00:22:59,220 --> 00:23:01,160 talk about machine learning in the black box 576 00:23:01,160 --> 00:23:03,380 of things is, you know, 577 00:23:03,380 --> 00:23:04,320 we as human beings 578 00:23:05,100 --> 00:23:06,980 can think about three dimensions, 579 00:23:07,480 --> 00:23:08,300 maybe four. 580 00:23:09,500 --> 00:23:11,400 This little graphic in the middle, 581 00:23:11,420 --> 00:23:12,260 that's five dimensions. 582 00:23:13,000 --> 00:23:14,700 But try to think about 500. 583 00:23:16,280 --> 00:23:17,460 I don't know about you, 584 00:23:17,540 --> 00:23:18,880 but my brain explodes. 585 00:23:19,060 --> 00:23:20,940 Like, there's no way I can think about 500 586 00:23:20,940 --> 00:23:22,540 dimensions at one time. 587 00:23:22,740 --> 00:23:25,400 So that's what these algorithms are capable of doing, 588 00:23:25,460 --> 00:23:27,060 is looking at these things, 589 00:23:27,160 --> 00:23:29,380 you know, across 500 different dimensions. 590 00:23:29,900 --> 00:23:31,240 So, you know, going back 591 00:23:31,240 --> 00:23:33,180 to that plot that we saw, you know, 592 00:23:33,200 --> 00:23:35,260 with kind of the mountains and at the 593 00:23:35,260 --> 00:23:37,200 bottom, you know, there were the dots, 594 00:23:37,300 --> 00:23:38,760 you know, on that lower graph. 595 00:23:38,920 --> 00:23:41,360 Well, think about that in the way of 596 00:23:41,360 --> 00:23:43,040 using machine learning and support vector 597 00:23:43,040 --> 00:23:44,160 machines and 598 00:23:45,600 --> 00:23:46,080 classification. 599 00:23:46,760 --> 00:23:48,800 What will happen is, you know, 600 00:23:48,860 --> 00:23:50,960 the spyware apps will all cluster together, 601 00:23:51,440 --> 00:23:53,480 the adware apps will all cluster together 602 00:23:53,480 --> 00:23:54,980 because of these features, right? 603 00:23:55,140 --> 00:23:57,460 And again, across 500 different dimensions, 604 00:23:57,560 --> 00:23:58,960 but let's just try to think of it in three. 605 00:23:59,640 --> 00:24:01,540 Spyware over here, adware over here, 606 00:24:03,280 --> 00:24:05,380 Trojans over here, and then you 607 00:24:05,380 --> 00:24:07,300 have, you know, so you get your flashlight app, 608 00:24:07,400 --> 00:24:09,320 a new app that somebody just, you know, 609 00:24:09,320 --> 00:24:11,040 uploaded to the app store. We go out, 610 00:24:11,140 --> 00:24:13,320 we perform the static and behavioral analysis. 611 00:24:13,680 --> 00:24:15,400 Takes us about 30 minutes 612 00:24:15,420 --> 00:24:17,560 or so to get all the data that we need. 613 00:24:17,980 --> 00:24:19,040 Do the, um, 614 00:24:19,800 --> 00:24:21,440 send it to the machine learning model 615 00:24:21,440 --> 00:24:23,320 that we've trained, and 616 00:24:23,320 --> 00:24:25,080 then, you know, come back with a prediction. 617 00:24:25,300 --> 00:24:26,900 So 30 minutes or so that takes us, 618 00:24:27,000 --> 00:24:29,080 but once we get that, you know, again, 619 00:24:29,240 --> 00:24:30,740 in the machine learning black box, 620 00:24:30,980 --> 00:24:33,100 you can think of, okay, that flashlight app, 621 00:24:33,180 --> 00:24:35,680 whoa, it's way over here next to spyware. 622 00:24:35,920 --> 00:24:37,380 It's not, you know, with the 623 00:24:37,380 --> 00:24:39,460 rest of the flashlight apps. So that's 624 00:24:39,460 --> 00:24:41,380 what, you know, provides that 625 00:24:41,380 --> 00:24:43,220 probability of maliciousness, 626 00:24:43,260 --> 00:24:45,120 probability of spyware, 627 00:24:45,420 --> 00:24:47,300 as opposed to probability of 628 00:24:47,300 --> 00:24:48,720 a benign flashlight app. 629 00:24:49,260 --> 00:24:50,420 Does that make sense? 630 00:24:51,460 --> 00:24:52,860 Okay, the nods. 631 00:24:53,540 --> 00:24:54,040 Awesome. 632 00:24:55,160 --> 00:24:56,300 So, you know, 633 00:24:56,940 --> 00:24:58,240 as we talk about this, 634 00:24:59,240 --> 00:25:01,040 how do we know that our model is good? 635 00:25:01,560 --> 00:25:03,460 How do we know that that spyware 636 00:25:03,460 --> 00:25:04,880 cluster is really spyware? 637 00:25:05,080 --> 00:25:07,220 And when you're talking about, you know, 638 00:25:07,220 --> 00:25:08,760 millions of apps, again, 639 00:25:09,040 --> 00:25:11,100 you know, a human can't go in and 640 00:25:11,100 --> 00:25:13,240 check all those things. So what we 641 00:25:13,240 --> 00:25:15,120 use is what's called area under the curve. 642 00:25:15,420 --> 00:25:17,480 AUC, you're familiar, some of the folks 643 00:25:17,480 --> 00:25:19,420 that are familiar with machine learning. 644 00:25:19,680 --> 00:25:21,380 So what AUC is, essentially, 645 00:25:22,040 --> 00:25:23,180 is the probability 646 00:25:24,060 --> 00:25:25,080 that a 647 00:25:25,080 --> 00:25:27,240 malicious app ranks higher, 648 00:25:27,500 --> 00:25:29,040 right, so probability, we're talking 649 00:25:29,040 --> 00:25:31,040 scale of zero to one. So a 650 00:25:31,040 --> 00:25:33,380 malicious app is closer to one than 651 00:25:33,380 --> 00:25:35,440 our corpus of benign apps. 652 00:25:35,660 --> 00:25:37,520 So that's really all that AUC 653 00:25:37,520 --> 00:25:39,380 is. The probability 654 00:25:39,380 --> 00:25:40,820 that an app is malicious. 655 00:25:42,640 --> 00:25:43,200 And 656 00:25:43,200 --> 00:25:45,100 what we have 657 00:25:45,100 --> 00:25:46,560 to do, because we're talking about 658 00:25:46,560 --> 00:25:49,080 malicious and benign, right, there's a cutoff somewhere. 659 00:25:49,380 --> 00:25:50,880 What we have to do is find 660 00:25:50,880 --> 00:25:52,460 that cutoff in between 661 00:25:53,520 --> 00:25:54,880 where, you know, 662 00:25:54,880 --> 00:25:56,660 we find that sweet spot 663 00:25:57,020 --> 00:25:59,260 of false positive versus false negative. 664 00:26:00,000 --> 00:26:01,060 Right? And this is 665 00:26:01,060 --> 00:26:02,620 where kind of overfitting comes in. 666 00:26:02,820 --> 00:26:04,940 You know, we could get really 667 00:26:04,940 --> 00:26:06,520 accurate, and some of our models 668 00:26:06,520 --> 00:26:07,960 are very accurate, 669 00:26:08,880 --> 00:26:10,660 .99 in AUC. 670 00:26:11,020 --> 00:26:13,120 So the curve 671 00:26:13,200 --> 00:26:15,340 there, you want to get that curve closest 672 00:26:15,340 --> 00:26:17,020 to the 1.0, as you're 673 00:26:17,020 --> 00:26:18,720 determining the effectiveness 674 00:26:18,720 --> 00:26:20,740 of your model using AUC. 675 00:26:21,080 --> 00:26:23,000 So we could get it to .99, 676 00:26:23,660 --> 00:26:25,220 but, you know, we have to find 677 00:26:25,220 --> 00:26:27,140 that balance 678 00:26:27,140 --> 00:26:29,160 between false positive and false negative. 679 00:26:32,700 --> 00:26:34,920 Cross-validation is also very 680 00:26:34,920 --> 00:26:37,260 important, right? So you want to use 681 00:26:37,260 --> 00:26:38,980 cross-validation to 682 00:26:38,980 --> 00:26:41,100 make sure when you take your testing 683 00:26:41,100 --> 00:26:42,820 and your training data set 684 00:26:43,200 --> 00:26:45,140 and, again, so you're not 685 00:26:45,140 --> 00:26:45,700 overfitting. 686 00:26:47,360 --> 00:26:49,200 So I'm going to do a demonstration. 687 00:26:50,040 --> 00:26:51,180 And before I do 688 00:26:51,180 --> 00:26:52,880 that, you know, Mac users, 689 00:26:53,160 --> 00:26:54,900 hopefully. Good. 690 00:26:55,040 --> 00:26:56,860 Okay. So this is 691 00:26:56,860 --> 00:26:59,160 how you would set up your Mac environment. 692 00:26:59,480 --> 00:27:01,100 So you 693 00:27:01,100 --> 00:27:03,000 can brew install, pip install. 694 00:27:03,780 --> 00:27:04,940 Really, you want 695 00:27:04,940 --> 00:27:06,800 Python and scikit-learn, 696 00:27:06,960 --> 00:27:08,220 but this is a good 697 00:27:09,720 --> 00:27:11,100 kind of, you kind of have 698 00:27:11,100 --> 00:27:13,100 to go in these steps to get it 699 00:27:13,200 --> 00:27:13,760 working properly. 700 00:27:14,740 --> 00:27:17,340 You know, there's some prepackaged 701 00:27:17,340 --> 00:27:19,160 scikit-learn libraries 702 00:27:19,160 --> 00:27:20,620 that kind of do all this for you. 703 00:27:20,760 --> 00:27:22,940 But it is important to get these steps down. 704 00:27:24,180 --> 00:27:24,700 So 705 00:27:24,700 --> 00:27:26,880 what we're going to do is 706 00:27:27,560 --> 00:27:29,140 kind of go through, and this 707 00:27:29,140 --> 00:27:29,680 is a 708 00:27:29,680 --> 00:27:32,940 make sure, yeah, this is a 709 00:27:36,100 --> 00:27:36,940 really just 710 00:27:36,940 --> 00:27:38,660 a hello world, if you will, 711 00:27:38,740 --> 00:27:40,660 of binary classification. 712 00:27:41,440 --> 00:27:42,300 Logistic regression. 713 00:27:43,200 --> 00:27:45,180 So we're going to generate some data 714 00:27:45,180 --> 00:27:46,240 to train with. 715 00:27:47,460 --> 00:27:48,900 So this can all happen 716 00:27:48,900 --> 00:27:50,800 within sklearn, the data sets. 717 00:27:51,480 --> 00:27:52,960 We're going to take a look at how 718 00:27:52,960 --> 00:27:55,100 large the data is and what the labels look like. 719 00:27:55,180 --> 00:27:57,020 So you'll see a plot that does 720 00:27:57,020 --> 00:27:58,920 that. The data is two 721 00:27:58,920 --> 00:28:00,340 dimensional, so not 722 00:28:00,940 --> 00:28:02,800 too big. So we can easily 723 00:28:02,800 --> 00:28:04,020 visualize it. 724 00:28:04,880 --> 00:28:06,900 We're going to see some dots where it's the red 725 00:28:06,900 --> 00:28:09,040 as malicious Android apps you can 726 00:28:09,040 --> 00:28:10,580 think of and the green as benign. 727 00:28:11,160 --> 00:28:13,000 So look at this code here. You can see 728 00:28:13,200 --> 00:28:15,020 it's high lab. We're doing the plots 729 00:28:15,020 --> 00:28:15,360 here. 730 00:28:17,020 --> 00:28:19,160 Importing logistic regression from scikit 731 00:28:19,160 --> 00:28:20,960 learn and generate 732 00:28:20,960 --> 00:28:21,700 a classification. 733 00:28:23,080 --> 00:28:25,020 Split the data set into training 734 00:28:25,020 --> 00:28:27,240 and testing. So think of that logically, 735 00:28:27,440 --> 00:28:28,580 right? The training labels, 736 00:28:28,820 --> 00:28:30,460 we know that these are known malware. 737 00:28:30,740 --> 00:28:32,980 We get a feed every night of 5,000 738 00:28:32,980 --> 00:28:35,220 new Android malware variants 739 00:28:35,220 --> 00:28:36,820 and put that into the algorithm. 740 00:28:37,220 --> 00:28:39,060 So those are labeled known 741 00:28:39,060 --> 00:28:40,460 malware that we can train on. 742 00:28:40,700 --> 00:28:43,020 And the unknown is what we get from employee 743 00:28:43,200 --> 00:28:44,240 devices and from 744 00:28:45,000 --> 00:28:47,020 the app stores as new users, 745 00:28:47,120 --> 00:28:48,440 new developers add that. 746 00:28:48,700 --> 00:28:50,740 So training and testing is very important. 747 00:28:51,400 --> 00:28:52,680 And then we'll visualize 748 00:28:53,140 --> 00:28:55,160 the data again, labeling 749 00:28:55,160 --> 00:28:57,060 the training points and testing 750 00:28:57,060 --> 00:28:59,060 points as white triangles so you can kind of 751 00:28:59,060 --> 00:29:00,860 see where they are in that two 752 00:29:00,860 --> 00:29:01,580 dimensional plot. 753 00:29:02,800 --> 00:29:04,480 And then we'll do logistic 754 00:29:04,480 --> 00:29:06,380 regression, right? So 755 00:29:07,760 --> 00:29:09,040 again, when we 756 00:29:09,040 --> 00:29:10,680 do this, when we're actually 757 00:29:11,180 --> 00:29:12,140 doing our models, 758 00:29:13,840 --> 00:29:15,280 we're not testing 759 00:29:15,280 --> 00:29:17,140 on the training data. So that's 760 00:29:17,140 --> 00:29:19,100 pretty important to know too. So it's 761 00:29:19,100 --> 00:29:21,120 like, when we do this step here, 762 00:29:21,320 --> 00:29:23,140 it's as if it hadn't seen 763 00:29:23,140 --> 00:29:25,300 the app before. So testing 764 00:29:25,300 --> 00:29:27,100 on training data is really easy. You'll get 765 00:29:27,100 --> 00:29:29,040 a 1.0 AUC every time 766 00:29:29,040 --> 00:29:31,180 because you know that it's malicious. 767 00:29:31,460 --> 00:29:33,060 But keep in mind that at this 768 00:29:33,060 --> 00:29:34,700 step, that's not what we're doing. 769 00:29:36,560 --> 00:29:37,220 Set the 770 00:29:37,220 --> 00:29:39,120 colors using the predicted class 771 00:29:40,020 --> 00:29:40,860 and then 772 00:29:40,860 --> 00:29:42,540 we'll look at our AUC. 773 00:29:43,940 --> 00:29:45,340 So that's kind of the last 774 00:29:45,340 --> 00:29:47,000 step here. And again, you know, with some 775 00:29:47,000 --> 00:29:49,240 print lines, really this is like 30 lines of code. 776 00:29:49,400 --> 00:29:50,800 I think if you look back at my 777 00:29:51,700 --> 00:29:53,120 example. So let's just go 778 00:29:53,120 --> 00:29:54,940 ahead and run this. And 779 00:29:54,940 --> 00:29:56,820 okay, this is pretty simple. 780 00:29:58,600 --> 00:29:59,120 You can 781 00:29:59,120 --> 00:30:00,960 see the red are the malicious 782 00:30:00,960 --> 00:30:02,860 and the green are the 783 00:30:03,900 --> 00:30:05,060 benign. So there's a 784 00:30:05,060 --> 00:30:05,820 pretty simple, 785 00:30:06,920 --> 00:30:09,000 we'll run through this again and see if 786 00:30:09,000 --> 00:30:10,880 they kind of co-mingle a little bit 787 00:30:10,880 --> 00:30:12,260 with the testing set. 788 00:30:13,200 --> 00:30:15,060 It's pretty defined. And then 789 00:30:15,060 --> 00:30:16,800 you can see the triangles, as I mentioned. 790 00:30:16,980 --> 00:30:17,940 This is the training. 791 00:30:19,400 --> 00:30:21,100 So that's there that we 792 00:30:21,100 --> 00:30:23,140 were looking for. And then there we go. 793 00:30:23,240 --> 00:30:25,080 So very easy logistic regression 794 00:30:25,080 --> 00:30:26,580 finds the 795 00:30:27,180 --> 00:30:29,000 line between malicious apps 796 00:30:29,000 --> 00:30:30,040 and the benign apps. 797 00:30:31,320 --> 00:30:32,940 And then we go back and 798 00:30:32,940 --> 00:30:35,000 our AUC is 1.0. 799 00:30:35,040 --> 00:30:37,080 So wow, aren't we great. Let's try 800 00:30:37,080 --> 00:30:37,400 it again. 801 00:30:38,480 --> 00:30:40,780 Let me see if I can get something a little bit more. 802 00:30:40,880 --> 00:30:42,880 It's a little bit closer. You can see 803 00:30:43,360 --> 00:30:44,220 one more time. 804 00:30:45,380 --> 00:30:45,980 Like, eh. 805 00:30:47,400 --> 00:30:49,040 That's the problem with using the 806 00:30:51,100 --> 00:30:52,320 generated training set. 807 00:30:52,700 --> 00:30:53,480 Eh, okay. 808 00:30:54,840 --> 00:30:56,820 Let's see where it does the line. 809 00:30:56,940 --> 00:30:59,000 Yeah, you can see here, like this one, is it 810 00:30:59,000 --> 00:31:01,100 malicious or is it benign, right? 811 00:31:01,460 --> 00:31:03,200 So where does that 812 00:31:03,200 --> 00:31:05,040 stand? That's where this gets 813 00:31:05,040 --> 00:31:07,020 pretty powerful. So then it's able to find 814 00:31:07,020 --> 00:31:08,000 that delineator. 815 00:31:11,320 --> 00:31:12,980 Let's see what our AUC is 816 00:31:13,200 --> 00:31:15,100 like in 1.0. 817 00:31:15,820 --> 00:31:17,100 So hopefully that's 818 00:31:17,100 --> 00:31:18,820 helpful to you. Not that I expect 819 00:31:18,820 --> 00:31:20,900 anybody to start going out and 820 00:31:20,900 --> 00:31:22,820 being able to do this instantly, 821 00:31:22,980 --> 00:31:24,340 but really to show you that 822 00:31:25,040 --> 00:31:26,960 it's easy to start to get hands-on 823 00:31:26,960 --> 00:31:28,640 with this, with scikit-learn and Python. 824 00:31:29,060 --> 00:31:30,960 And scikit-learn is kind of 825 00:31:30,960 --> 00:31:33,020 the first step into this realm. 826 00:31:33,440 --> 00:31:34,980 What we use today 827 00:31:34,980 --> 00:31:36,620 is kind of well beyond that, but 828 00:31:36,620 --> 00:31:39,060 it really is accessible to 829 00:31:39,060 --> 00:31:41,100 anyone to start to take your data 830 00:31:41,100 --> 00:31:42,800 and whether it's the 831 00:31:43,200 --> 00:31:45,080 static behavioral data from Android 832 00:31:45,080 --> 00:31:47,180 or whether 833 00:31:47,180 --> 00:31:48,920 it's logs, right? So I think 834 00:31:48,920 --> 00:31:51,060 there's huge opportunity using 835 00:31:51,060 --> 00:31:52,620 machine learning in 836 00:31:53,000 --> 00:31:55,060 network traffic, PCAPs, etc., 837 00:31:55,060 --> 00:31:56,800 in detecting malware. 838 00:31:57,160 --> 00:31:58,900 I think there's a huge opportunity in 839 00:31:58,900 --> 00:32:00,540 looking at insiders 840 00:32:01,680 --> 00:32:02,740 exfiltrating data 841 00:32:02,740 --> 00:32:04,540 where you kind of train 842 00:32:05,140 --> 00:32:06,740 on that and where you kind of 843 00:32:06,740 --> 00:32:09,040 monitor the network traffic 844 00:32:09,040 --> 00:32:11,140 going out, the websites visited, 845 00:32:11,320 --> 00:32:13,180 etc., and then being able to find 846 00:32:13,200 --> 00:32:14,080 those outliers. 847 00:32:15,300 --> 00:32:16,980 So I think that 848 00:32:16,980 --> 00:32:18,160 machine learning with 849 00:32:19,000 --> 00:32:21,080 binary classification in malware detection 850 00:32:21,080 --> 00:32:22,960 is just kind of a first step 851 00:32:22,960 --> 00:32:24,820 into this really, 852 00:32:24,940 --> 00:32:27,180 I think, challenging 853 00:32:27,180 --> 00:32:27,680 and 854 00:32:28,780 --> 00:32:31,340 important, I think, as we look forward 855 00:32:31,340 --> 00:32:33,320 in how we scale 856 00:32:33,320 --> 00:32:35,240 to protect these devices. 857 00:32:37,060 --> 00:32:38,260 So back to 858 00:32:38,260 --> 00:32:41,260 our presentation here 859 00:32:41,260 --> 00:32:42,900 and back to 860 00:32:44,700 --> 00:32:45,960 what we're doing 861 00:32:45,960 --> 00:32:47,340 with that probability, 862 00:32:47,700 --> 00:32:48,880 right? So we take, 863 00:32:48,900 --> 00:32:49,820 you know, I talked about it, 864 00:32:49,820 --> 00:32:51,740 it's a probability, 0 to 1.0. 865 00:32:51,940 --> 00:32:55,080 But we take that on a 0 to 10 scale. 866 00:32:55,340 --> 00:32:57,380 So we've just taken the 1.0 867 00:32:57,380 --> 00:32:58,460 and kind of, you know, 868 00:32:58,460 --> 00:33:00,060 to the 0 to 10. 869 00:33:00,380 --> 00:33:02,840 And our hypothesis at the beginning 870 00:33:02,840 --> 00:33:04,400 was these 871 00:33:05,200 --> 00:33:07,180 malicious apps that we're able to detect 872 00:33:07,180 --> 00:33:09,020 in Google Play and the Apple 873 00:33:09,020 --> 00:33:10,880 App Store are ending up on 874 00:33:10,880 --> 00:33:12,460 employee devices. So 875 00:33:13,200 --> 00:33:14,920 from the beginning, you know, 876 00:33:14,940 --> 00:33:16,720 what we found was this trend on the bottom 877 00:33:16,720 --> 00:33:18,820 of these top apps, right? So this bar chart 878 00:33:18,820 --> 00:33:20,020 shows, you know, 0, 879 00:33:20,700 --> 00:33:22,700 there's 23% 1s, 880 00:33:22,700 --> 00:33:25,380 and then, you know, 2 to 3% 881 00:33:25,380 --> 00:33:26,760 9s or 10s. 882 00:33:27,040 --> 00:33:29,020 So this was the trend that we were starting to see. 883 00:33:29,220 --> 00:33:30,880 But what we found with our 884 00:33:30,880 --> 00:33:32,900 partnerships with our mobile device management 885 00:33:32,900 --> 00:33:34,980 solutions are these apps are actually finding 886 00:33:34,980 --> 00:33:36,860 their way on employee devices and 887 00:33:36,860 --> 00:33:38,520 really follow that same trend. 888 00:33:38,960 --> 00:33:40,880 So we found the average enterprise 889 00:33:41,700 --> 00:33:43,000 has 2400 unsafe 890 00:33:43,200 --> 00:33:44,780 applications. So about 891 00:33:44,780 --> 00:33:47,120 3% when you take into account the median and the 892 00:33:47,120 --> 00:33:49,020 mean. So 3% 893 00:33:49,020 --> 00:33:51,080 of apps that are 8 or above. 894 00:33:51,480 --> 00:33:53,020 You know, some of these are known malware 895 00:33:53,020 --> 00:33:53,960 that already have signatures 896 00:33:54,900 --> 00:33:57,100 assigned to them. Some of them are detected by 897 00:33:57,100 --> 00:33:58,980 the ML with no signatures. 898 00:33:59,600 --> 00:34:00,040 So 899 00:34:02,040 --> 00:34:03,240 this, you know, 900 00:34:03,260 --> 00:34:04,900 is fulfilling to us because our 901 00:34:04,900 --> 00:34:06,780 hypothesis is starting to be proven. 902 00:34:08,260 --> 00:34:08,700 And, 903 00:34:08,720 --> 00:34:11,240 you know, because we're in Vegas, we took a look 904 00:34:11,240 --> 00:34:12,980 at gambling apps 905 00:34:13,200 --> 00:34:15,120 in particular. And gambling apps 906 00:34:15,120 --> 00:34:15,420 today, 907 00:34:16,380 --> 00:34:18,700 what we found is there's 908 00:34:18,700 --> 00:34:20,400 35 different gambling apps 909 00:34:20,400 --> 00:34:21,820 in the average enterprise. 910 00:34:22,360 --> 00:34:24,880 So gambling, it's an interesting genre. 911 00:34:26,000 --> 00:34:26,600 And 912 00:34:27,180 --> 00:34:28,420 being in defense and intelligence, 913 00:34:28,740 --> 00:34:30,960 I had to do the security clearance thing. 914 00:34:31,240 --> 00:34:33,060 And while my 915 00:34:33,060 --> 00:34:33,600 data is now, 916 00:34:34,440 --> 00:34:36,760 people have it because of the recent hack. 917 00:34:36,960 --> 00:34:39,080 But that's really great. 918 00:34:39,260 --> 00:34:41,140 But my point here is 919 00:34:41,140 --> 00:34:42,300 with the gambling apps, 920 00:34:43,880 --> 00:34:44,360 it's 921 00:34:45,580 --> 00:34:46,900 enterprises that are, 922 00:34:46,900 --> 00:34:49,160 you know, a little bit more secure, 923 00:34:49,800 --> 00:34:51,080 they're concerned that 924 00:34:51,080 --> 00:34:52,820 their employees are using these gambling apps. 925 00:34:52,960 --> 00:34:54,960 And again, back to security clearance, 926 00:34:55,200 --> 00:34:56,840 you know, it would certainly be flagged 927 00:34:56,840 --> 00:34:59,020 as an issue because there would be 928 00:34:59,020 --> 00:35:01,100 kind of a propensity for bribery, 929 00:35:01,180 --> 00:35:02,280 you know, if you're using 930 00:35:02,280 --> 00:35:04,980 real currency gambling. 931 00:35:05,360 --> 00:35:07,140 So that's what's 932 00:35:07,140 --> 00:35:08,580 kind of interesting to these enterprises, 933 00:35:08,680 --> 00:35:11,100 kind of taking a look at that, government agencies, etc. 934 00:35:11,840 --> 00:35:12,800 So we looked at 935 00:35:13,200 --> 00:35:14,360 17 or so of these 936 00:35:14,920 --> 00:35:16,800 gambling apps. We found, you know, four 937 00:35:16,800 --> 00:35:19,220 created by Playtika, two by Zynga, 938 00:35:19,420 --> 00:35:20,840 two by Phantom, 939 00:35:21,000 --> 00:35:21,360 EFX. 940 00:35:23,060 --> 00:35:24,960 So Google doesn't allow real 941 00:35:24,960 --> 00:35:26,040 currency gambling apps. 942 00:35:26,460 --> 00:35:28,840 Apple does, with the proper licensing 943 00:35:28,840 --> 00:35:30,660 and everything in place. 944 00:35:31,020 --> 00:35:33,160 In Europe, I think there's already 945 00:35:33,160 --> 00:35:35,060 real currency gambling apps in those 946 00:35:35,060 --> 00:35:37,180 stores. But this is going to 947 00:35:37,180 --> 00:35:39,140 explode. Like this, again, and we 948 00:35:39,140 --> 00:35:41,020 look back at cryptography, we look back at 949 00:35:41,020 --> 00:35:42,480 those vulnerabilities. This is concerning. 950 00:35:43,200 --> 00:35:45,240 People start to really, you know, 951 00:35:45,240 --> 00:35:47,220 have real currency associated with 952 00:35:47,220 --> 00:35:49,140 these applications. This is a 953 00:35:49,140 --> 00:35:50,900 $100 billion industry 954 00:35:50,900 --> 00:35:52,940 by 2017. No surprise, 955 00:35:53,140 --> 00:35:54,040 right? Look around here. 956 00:35:54,920 --> 00:35:56,900 Look at what, you know, gambling, 957 00:35:57,140 --> 00:35:58,960 the revenue that it can 958 00:35:58,960 --> 00:36:00,660 provide. So 959 00:36:01,260 --> 00:36:03,020 again, you know, these apps 960 00:36:03,020 --> 00:36:04,740 are not just running on the devices. 961 00:36:05,000 --> 00:36:06,680 They're sending data to and from 962 00:36:07,200 --> 00:36:08,660 locations around the world. 963 00:36:09,460 --> 00:36:10,780 Looking at these 17 964 00:36:10,780 --> 00:36:12,880 gambling applications, we found 965 00:36:13,200 --> 00:36:14,960 that, you know, a large number of them 966 00:36:14,960 --> 00:36:17,020 use AddX tracking as a library. 967 00:36:18,020 --> 00:36:19,080 So, you know, 968 00:36:19,080 --> 00:36:20,900 all these free apps, this is the way they're 969 00:36:20,900 --> 00:36:22,500 monetizing. They're collecting your contact 970 00:36:22,500 --> 00:36:23,480 location information, 971 00:36:24,440 --> 00:36:26,860 you know, messages, etc., 972 00:36:26,860 --> 00:36:28,760 and using that to monetize. 973 00:36:29,040 --> 00:36:30,720 But AddX tracking, in particular, 974 00:36:30,940 --> 00:36:32,940 is sending that to 300 975 00:36:32,940 --> 00:36:35,020 data brokers and advertising networks. 976 00:36:35,360 --> 00:36:36,540 So that's an issue. 977 00:36:36,820 --> 00:36:38,880 Google, Facebook, of course, collecting 978 00:36:38,880 --> 00:36:40,620 massive amounts of data in these applications 979 00:36:40,620 --> 00:36:41,860 in AddXchange. 980 00:36:43,200 --> 00:36:45,180 We found with about nine of these 981 00:36:45,180 --> 00:36:47,280 apps, they're recording 982 00:36:47,280 --> 00:36:49,060 audio, which is bad, 983 00:36:49,240 --> 00:36:51,200 right? They have the capability of recording audio. 984 00:36:51,740 --> 00:36:53,260 Hit It Rich Casino 985 00:36:53,260 --> 00:36:55,120 slots accesses your contact information. 986 00:36:55,780 --> 00:36:56,860 GSN Casino 987 00:36:56,860 --> 00:36:58,480 accesses your social networks. 988 00:36:59,620 --> 00:37:00,960 Texas Poker also 989 00:37:00,960 --> 00:37:02,500 accesses your social network information. 990 00:37:03,180 --> 00:37:04,860 But what we found is, 991 00:37:05,040 --> 00:37:06,900 you know, a lot of these apps have hard-coded 992 00:37:06,900 --> 00:37:08,780 keys, values, 993 00:37:09,160 --> 00:37:11,280 authentication, etc. 994 00:37:12,080 --> 00:37:13,120 Oh, this is really 995 00:37:13,200 --> 00:37:14,700 bad. You can't see this at all. Sorry. 996 00:37:14,920 --> 00:37:17,160 But there's just some code snippets here 997 00:37:17,160 --> 00:37:19,200 of the bolded 998 00:37:19,200 --> 00:37:21,200 area is the hard-coded key. 999 00:37:22,020 --> 00:37:22,980 This bottom 1000 00:37:22,980 --> 00:37:25,120 block of code is showing 1001 00:37:25,120 --> 00:37:27,100 how it's checking if the device is rooted. 1002 00:37:27,400 --> 00:37:28,720 So seeing a lot of that. 1003 00:37:29,700 --> 00:37:31,220 On the other side, it's kind of our 1004 00:37:31,220 --> 00:37:33,160 app reputation piece. So again, 1005 00:37:33,340 --> 00:37:34,600 you know, I think this app is 1006 00:37:35,900 --> 00:37:36,860 accessing audio 1007 00:37:37,760 --> 00:37:39,140 information, doing 1008 00:37:39,140 --> 00:37:40,080 a lot of advertising, 1009 00:37:40,980 --> 00:37:41,460 etc. 1010 00:37:43,200 --> 00:37:45,160 This is a Slotomania app. 1011 00:37:45,400 --> 00:37:47,140 Again, on the right, you can see the 1012 00:37:47,140 --> 00:37:49,060 hard-coded key. This app 1013 00:37:49,060 --> 00:37:50,860 is sending data, I think, to Ireland 1014 00:37:50,860 --> 00:37:53,140 and Israel. You can 1015 00:37:53,140 --> 00:37:55,280 see that the data traffic 1016 00:37:55,280 --> 00:37:56,440 sent there, so bytes 1017 00:37:56,960 --> 00:37:59,160 sent, halfway down on the right, 1018 00:37:59,280 --> 00:38:00,520 is 24 megs. 1019 00:38:00,940 --> 00:38:03,100 Actually, that's bytes received. I'm 1020 00:38:03,100 --> 00:38:04,600 sorry. 24 megs. 1021 00:38:04,880 --> 00:38:06,880 So this app goes out and downloads 1022 00:38:06,880 --> 00:38:09,140 something that's that big from that 1023 00:38:09,700 --> 00:38:10,220 server. 1024 00:38:10,920 --> 00:38:12,960 And then you see policy 1025 00:38:13,200 --> 00:38:15,100 violating code. The upper left, 1026 00:38:15,180 --> 00:38:16,560 you can't see it all, but it's 1027 00:38:16,960 --> 00:38:19,020 actually in the clear. So this app 1028 00:38:19,020 --> 00:38:21,060 was sending most of the data in the clear, 1029 00:38:21,080 --> 00:38:22,920 with the exception of the Google 1030 00:38:22,920 --> 00:38:25,040 data. Gender, 1031 00:38:25,380 --> 00:38:26,900 birthday, and 1032 00:38:26,900 --> 00:38:28,960 my last login time and date. 1033 00:38:33,800 --> 00:38:35,080 Go back. 1034 00:38:36,320 --> 00:38:37,280 A couple 1035 00:38:37,280 --> 00:38:38,460 Android examples, 1036 00:38:38,820 --> 00:38:40,660 just to be safe. 1037 00:38:40,800 --> 00:38:43,040 Those were IOS gambling apps. 1038 00:38:43,200 --> 00:38:45,200 These are now Android apps. This is 1039 00:38:45,200 --> 00:38:46,340 a Wi-Fi booster app. 1040 00:38:46,820 --> 00:38:49,240 I don't think it's doing anything but boosting your data, 1041 00:38:49,340 --> 00:38:50,540 right? I don't know. These people 1042 00:38:51,100 --> 00:38:53,220 download these apps. Well, how do they think 1043 00:38:53,220 --> 00:38:55,020 that they're boosting the Wi-Fi? I have no idea. 1044 00:38:55,460 --> 00:38:56,900 But this app is doing that, 1045 00:38:57,020 --> 00:38:59,040 and, you know, 800,000 people 1046 00:38:59,040 --> 00:39:00,940 or so have downloaded this app. 1047 00:39:02,060 --> 00:39:03,180 This is sending data 1048 00:39:03,180 --> 00:39:04,300 all around the world. 1049 00:39:04,640 --> 00:39:07,060 It's retrieving your SIM card information, 1050 00:39:07,320 --> 00:39:08,920 getting your UDID 1051 00:39:08,920 --> 00:39:10,960 information, IMEI, etc., 1052 00:39:10,960 --> 00:39:12,940 monitoring your device location, 1053 00:39:13,760 --> 00:39:15,680 you're retrieving carrier information, 1054 00:39:15,900 --> 00:39:17,020 and listening for key presses. 1055 00:39:18,760 --> 00:39:20,500 This is a battery saver app. 1056 00:39:20,660 --> 00:39:22,380 Again, why 1057 00:39:23,090 --> 00:39:24,620 100 million plus people 1058 00:39:25,090 --> 00:39:27,080 think that this app is going to save their 1059 00:39:27,080 --> 00:39:28,080 battery, I have no idea. 1060 00:39:28,620 --> 00:39:30,800 And actually, you see the spiky CPU 1061 00:39:30,800 --> 00:39:32,920 in the corner? It's draining your battery, 1062 00:39:33,040 --> 00:39:35,100 right? It's not really saving 1063 00:39:35,100 --> 00:39:35,660 your battery. 1064 00:39:36,600 --> 00:39:38,980 Again, sending data to China 1065 00:39:38,980 --> 00:39:40,980 here. This battery saver app 1066 00:39:40,980 --> 00:39:42,920 reads your contacts, gets 1067 00:39:43,200 --> 00:39:44,940 the device identification information, 1068 00:39:45,400 --> 00:39:46,180 SIM card information, 1069 00:39:48,160 --> 00:39:48,640 location, 1070 00:39:50,120 --> 00:39:51,080 carrier, Android 1071 00:39:51,080 --> 00:39:53,140 account, and also listens for key presses. 1072 00:39:53,980 --> 00:39:54,620 It's funny, 1073 00:39:54,760 --> 00:39:57,080 I show these apps, you know, 1074 00:39:57,080 --> 00:39:58,420 on occasion in presentations, 1075 00:39:58,640 --> 00:40:00,520 and I find people in the audience, like, 1076 00:40:00,520 --> 00:40:02,440 looking at their device, and they're like, 1077 00:40:02,540 --> 00:40:05,020 I have to delete that. I'm glad I'm not seeing it here. 1078 00:40:14,080 --> 00:40:15,060 Yeah, so we 1079 00:40:15,060 --> 00:40:17,180 have a directory that's available. We go out 1080 00:40:17,180 --> 00:40:19,200 every night and get the top 200 apps from each 1081 00:40:19,200 --> 00:40:20,640 of the top categories. 1082 00:40:21,320 --> 00:40:22,780 So you would be able to 1083 00:40:22,780 --> 00:40:24,400 either set up a policy 1084 00:40:24,400 --> 00:40:27,040 that says, you know, I don't want any apps that are 1085 00:40:27,040 --> 00:40:29,040 getting my contact information, and then 1086 00:40:29,040 --> 00:40:30,740 we could alert you to those. 1087 00:40:34,320 --> 00:40:35,120 So policy, 1088 00:40:36,060 --> 00:40:37,020 it's all about 1089 00:40:37,020 --> 00:40:39,080 policy, right? So we've got to scale to protect 1090 00:40:39,080 --> 00:40:40,960 this. We can't just do the 1091 00:40:40,960 --> 00:40:43,140 one-offs. So again, these are very 1092 00:40:43,200 --> 00:40:45,060 much aligned with what we've learned in the 1093 00:40:45,060 --> 00:40:46,720 wired world. So protecting 1094 00:40:46,720 --> 00:40:49,020 sensitive data in use in transit 1095 00:40:49,020 --> 00:40:51,140 and at rest. So we have 180 1096 00:40:51,140 --> 00:40:52,500 different policy attributes 1097 00:40:53,160 --> 00:40:54,560 that you can assign 1098 00:40:54,980 --> 00:40:56,640 to prohibit these types of applications. 1099 00:40:57,220 --> 00:40:58,920 You know, so at the top 1100 00:40:58,920 --> 00:41:00,380 are those different 1101 00:41:01,100 --> 00:41:02,980 categories, and then the bottom 1102 00:41:02,980 --> 00:41:05,100 are categories of, like, what's sensitive to you, 1103 00:41:05,240 --> 00:41:06,780 right? Is it location 1104 00:41:06,780 --> 00:41:09,060 information? Is it your messages, 1105 00:41:09,260 --> 00:41:11,200 your call logs, your browser history? 1106 00:41:11,660 --> 00:41:13,180 Do you want to prohibit 1107 00:41:13,200 --> 00:41:14,720 apps that root the device, et cetera? 1108 00:41:16,740 --> 00:41:18,580 And then, you know, I mentioned our directory. 1109 00:41:18,780 --> 00:41:21,060 This is, you know, on the right. Again, hard to 1110 00:41:21,060 --> 00:41:23,040 see, but those top apps, 1111 00:41:23,120 --> 00:41:24,840 and then you can see the policy violations 1112 00:41:24,840 --> 00:41:25,360 there. 1113 00:41:28,000 --> 00:41:29,120 So here are the 1114 00:41:29,120 --> 00:41:31,020 top blacklisted apps that we find in the 1115 00:41:31,020 --> 00:41:33,000 enterprise from both an iOS and an Android 1116 00:41:33,000 --> 00:41:34,940 perspective. So probably no 1117 00:41:34,940 --> 00:41:36,380 surprise, Dropbox, 1118 00:41:37,100 --> 00:41:39,100 Facebook, you know, some, Angry Birds, 1119 00:41:39,400 --> 00:41:41,140 Netflix, et cetera, certainly, 1120 00:41:41,300 --> 00:41:42,920 you know, for productivity. 1121 00:41:43,600 --> 00:41:45,100 And, you know, that's 1122 00:41:45,100 --> 00:41:47,080 the challenge here, is 1123 00:41:47,080 --> 00:41:48,800 finding that balance between 1124 00:41:48,800 --> 00:41:51,160 enabling productivity that mobile 1125 00:41:51,160 --> 00:41:52,760 provides, right? That's why 1126 00:41:52,760 --> 00:41:55,060 everybody's adopting mobile. So 1127 00:41:55,060 --> 00:41:57,060 enabling productivity, but managing 1128 00:41:57,060 --> 00:41:59,080 the risk. Both the personal risk, 1129 00:41:59,240 --> 00:42:01,160 which is really our agenda for doing this 1130 00:42:01,160 --> 00:42:03,160 from the beginning, is, like, seeing all these apps, 1131 00:42:03,320 --> 00:42:05,100 seeing, you know, that these devices 1132 00:42:05,100 --> 00:42:06,800 are essentially tracking devices, 1133 00:42:06,940 --> 00:42:08,900 and seeing that these apps are just getting massive 1134 00:42:08,900 --> 00:42:10,560 amounts of user data. 1135 00:42:10,780 --> 00:42:13,180 It's just so concerning to me. 1136 00:42:13,200 --> 00:42:15,040 And that people don't really care. 1137 00:42:15,220 --> 00:42:16,680 They're not really treating their data 1138 00:42:17,100 --> 00:42:19,240 as valuable as it should be treated. 1139 00:42:22,520 --> 00:42:25,080 And then when we talk about creating these policies, 1140 00:42:25,380 --> 00:42:26,400 we don't want 1141 00:42:27,000 --> 00:42:28,840 to take the burden on to create those ourselves, 1142 00:42:28,940 --> 00:42:30,960 nor do we want you as security 1143 00:42:30,960 --> 00:42:33,120 experts to take on that burden, you know, 1144 00:42:33,120 --> 00:42:34,960 alone. That would be a very 1145 00:42:34,960 --> 00:42:37,100 bad idea to start to create these policies 1146 00:42:37,100 --> 00:42:38,660 and push those out to your organizations. 1147 00:42:39,320 --> 00:42:41,280 So we see it as a collaborative effort 1148 00:42:41,280 --> 00:42:42,760 between the business unit, 1149 00:42:43,200 --> 00:42:44,400 who's wanting these applications 1150 00:42:44,400 --> 00:42:46,420 for their employees to be more 1151 00:42:46,420 --> 00:42:46,880 productive, 1152 00:42:48,460 --> 00:42:51,000 and then also you have to bring in HR and 1153 00:42:51,000 --> 00:42:52,960 legal to some extent because 1154 00:42:52,960 --> 00:42:54,980 there could be something in the terms 1155 00:42:54,980 --> 00:42:57,040 of particular applications 1156 00:42:57,040 --> 00:42:57,960 that are concerning. 1157 00:43:01,620 --> 00:43:03,420 I think we talked about the process. 1158 00:43:03,800 --> 00:43:05,120 Really, you know, what happens 1159 00:43:05,120 --> 00:43:07,000 with those policies is they become 1160 00:43:07,000 --> 00:43:08,860 automated app blacklists. 1161 00:43:09,080 --> 00:43:10,140 And again, to 1162 00:43:10,140 --> 00:43:12,480 approach this challenge 1163 00:43:12,480 --> 00:43:14,160 at scale, you need 1164 00:43:14,160 --> 00:43:16,140 that. You need an automated way 1165 00:43:16,140 --> 00:43:17,920 to create these blacklists because 1166 00:43:17,920 --> 00:43:20,080 again, as security professionals, we don't 1167 00:43:20,080 --> 00:43:21,680 want to be the ones that are looking at these 1168 00:43:22,580 --> 00:43:24,180 millions of apps. And I 1169 00:43:24,180 --> 00:43:25,540 think by, what was it, 1170 00:43:25,660 --> 00:43:27,100 I think at 2017, 1171 00:43:27,960 --> 00:43:30,140 there will be 400 billion 1172 00:43:30,140 --> 00:43:31,120 app downloads. 1173 00:43:31,760 --> 00:43:34,080 So it's insane to start to wrap your head 1174 00:43:34,080 --> 00:43:35,980 around how can we protect 1175 00:43:35,980 --> 00:43:37,960 ourselves against these malicious applications. 1176 00:43:39,440 --> 00:43:39,920 And 1177 00:43:40,140 --> 00:43:41,660 I think lastly here, 1178 00:43:41,780 --> 00:43:43,780 nobody likes to see an infinity 1179 00:43:43,780 --> 00:43:45,960 symbol when you're talking about work, 1180 00:43:46,120 --> 00:43:47,760 but it really is kind of a 1181 00:43:47,760 --> 00:43:50,040 process. And again, we're trying to really 1182 00:43:50,040 --> 00:43:52,080 make this scientific and using the data 1183 00:43:52,080 --> 00:43:53,500 from the machine learning, 1184 00:43:53,720 --> 00:43:55,920 using our background in statistics, 1185 00:43:56,240 --> 00:43:57,780 computer science, to 1186 00:43:57,780 --> 00:44:00,140 not be like, oh my god, this is a huge 1187 00:44:00,140 --> 00:44:01,620 risk. This is, you know, FUD, 1188 00:44:01,640 --> 00:44:04,020 oh no. Really being like, here is 1189 00:44:04,020 --> 00:44:06,040 your calculated risk here. Here 1190 00:44:06,040 --> 00:44:07,780 is probability times impact. 1191 00:44:08,180 --> 00:44:09,440 The impact being 1192 00:44:10,140 --> 00:44:12,020 what we see these apps are doing and the 1193 00:44:12,020 --> 00:44:14,100 probability being how 1194 00:44:14,100 --> 00:44:16,220 these apps are ending up on your devices. 1195 00:44:17,000 --> 00:44:18,120 So it's a 1196 00:44:18,120 --> 00:44:19,860 continuous process of 1197 00:44:19,860 --> 00:44:21,860 policy, automated 1198 00:44:21,860 --> 00:44:24,060 app blacklist, enforcing that on 1199 00:44:24,060 --> 00:44:26,040 the device, and then assessing 1200 00:44:26,040 --> 00:44:28,240 that, you know, 1201 00:44:28,240 --> 00:44:29,860 from a numerical basis, 1202 00:44:29,980 --> 00:44:31,580 not just a binary, 1203 00:44:31,880 --> 00:44:33,580 you know, are you at risk or aren't you? 1204 00:44:35,160 --> 00:44:36,100 So that's what I 1205 00:44:36,100 --> 00:44:38,020 had for you today. I'm happy 1206 00:44:38,020 --> 00:44:40,060 to answer any questions, probably 1207 00:44:40,140 --> 00:44:42,000 this. It's a little bit loud in here, so 1208 00:44:42,000 --> 00:44:43,800 thank you very much for your time.