1 00:00:00,000 --> 00:00:05,860 My name is Brian Wallace. Some of you might know me as botnethunter from Twitter. And today what 2 00:00:05,860 --> 00:00:11,960 we're going to be talking about is machine learning and malware classification and its uses 3 00:00:11,960 --> 00:00:18,380 and so on. I'm now going to pass the mic along for everyone to introduce themselves from the 4 00:00:18,380 --> 00:00:24,680 panel. Hi there. My name is Andrew Davis. I'm a staff data scientist at Silence. My main 5 00:00:24,680 --> 00:00:29,320 day-to-day job is training our PE model. So I know a little bit about feature extraction and 6 00:00:29,320 --> 00:00:34,020 different methods like that for training PE models, disassembly, static feature extraction, 7 00:00:34,280 --> 00:00:38,520 starting to work a bit with dynamic feature extraction. And yeah, PE is kind of my bread and 8 00:00:38,520 --> 00:00:46,280 butter. I'm Rich Herring. I'm a principal data scientist at Sophos. I also work a lot on PE but 9 00:00:46,280 --> 00:00:54,480 also on other formats including document and HTML, particularly malicious JavaScript. My name 10 00:00:54,480 --> 00:00:58,360 is Hiram Anderson. I'm the technical director of data science at InGame. And 11 00:00:58,360 --> 00:00:59,300 I'm a technical director of data science at InGame. And I'm a technical director of data 12 00:00:59,320 --> 00:01:00,260 science at InGame. And I'm a technical director of data science at InGame. And I work with a great 13 00:01:00,260 --> 00:01:08,300 team. We have also primarily PE was our first machine learning model. But also we do macros and 14 00:01:08,300 --> 00:01:14,920 Mako. Hey, everyone. I'm Matt Maisel. I'm the manager of security data science at Silence. I 15 00:01:14,920 --> 00:01:20,280 work closely with both Andrew and Brian. And yeah, I guess my kind of interests are more in, 16 00:01:20,320 --> 00:01:24,680 like, again, the nearest neighbor search, if you attended the last talk, clustering, weak 17 00:01:24,680 --> 00:01:29,300 supervision, active learning, and basically applying those different methods to help, you know, 18 00:01:29,300 --> 00:01:33,900 basically perform malware classification or help with the pipeline to do malware classification at 19 00:01:33,900 --> 00:01:39,900 scale. And if I may, I would like to just briefly introduce Amanda Rosso, who will be joining us 20 00:01:39,900 --> 00:01:45,220 momentarily. She's fleeing the paparazzi and will be here when she arrives. She is, unlike everybody 21 00:01:45,220 --> 00:01:50,160 else on this panel, not a data scientist, but a malware reverse engineer. So I'll provide an 22 00:01:50,160 --> 00:01:59,280 interesting perspective there. Thank you. So we're going to start out with kind of a, you know, 23 00:01:59,300 --> 00:02:05,660 an easy question for all of our panelists. What do you guys believe is the current state of the 24 00:02:05,660 --> 00:02:16,740 art for machine learning and malware classification? Who wants to? Go ahead. You open controversy. 25 00:02:18,050 --> 00:02:24,660 Oh, boy. I guess I think the current state of the art for malware classification is basically 26 00:02:24,660 --> 00:02:29,220 applying deep neural networks, basically getting a crap ton of benign, you know, 27 00:02:29,220 --> 00:02:34,280 and malicious samples and basically using that to train a very large scale model. And then 28 00:02:34,280 --> 00:02:38,940 obviously once you have a great model, you actually have to put it in production somewhere. So 29 00:02:38,940 --> 00:02:42,580 whether it's on an agent or in the cloud, you know, a lot of the challenges usually come after 30 00:02:42,580 --> 00:02:49,240 you make the model. So, yeah, I would say deep neural networks, again, my kind of expertise 31 00:02:49,240 --> 00:02:54,620 isn't necessarily in the classification algorithms. So I'll probably get overturned here. But, 32 00:02:54,620 --> 00:02:59,200 yeah, let's kind of start off with that. Just to note, we're not talking about the 33 00:02:59,220 --> 00:03:05,260 static detection. We're also talking about dynamic and any sort of automated machine 34 00:03:05,260 --> 00:03:11,460 learning-based malware detection method. Yeah. So at Endgame, we primarily deal with 35 00:03:11,460 --> 00:03:15,760 static detection. There are, I think, at least two other types. There's dynamic. There's also 36 00:03:16,580 --> 00:03:20,800 contextual machine learning. So things, when you see a large spike in traffic, right, that 37 00:03:20,800 --> 00:03:26,400 to a vendor with a lot of hosts, that could indicate a new attack where you haven't actually 38 00:03:26,400 --> 00:03:29,200 analyzed the file. You only see, you know, data. 39 00:03:29,220 --> 00:03:29,540 Yeah. 40 00:03:29,600 --> 00:03:33,860 The number of hashes flying by, right? So in terms of static machine learning, I will 41 00:03:33,860 --> 00:03:40,480 respectfully disagree with my panelists. But I think that there, the way you define 42 00:03:40,480 --> 00:03:47,860 state-of-the-art is a Pareto curve. And there's an optimum along that curve, depending on 43 00:03:47,860 --> 00:03:53,720 what you want to achieve. And that depends on things like, you know, obviously, false 44 00:03:53,720 --> 00:03:59,200 positive, false negative trade-off. But also, think about model size. Does the model size 45 00:03:59,220 --> 00:04:04,120 need to live on an endpoint or does it need to live in the cloud? Or think about time 46 00:04:04,120 --> 00:04:11,460 required for detection. So in cases where milliseconds matter, like detecting ransomware 47 00:04:11,460 --> 00:04:18,320 in a dynamic case, it's often really advantageous to have a speedy, lightweight model that 48 00:04:18,320 --> 00:04:28,620 within a few, you know, in sub-millisecond time can determine if that's ransomware. So my belief 49 00:04:28,620 --> 00:04:34,420 right now for static, the determination I'd like to make a clear-cut that in my research 50 00:04:34,420 --> 00:04:43,320 still, there's a difference between ends-to-ends deep learning performance and parse a file 51 00:04:43,320 --> 00:04:44,920 first and apply model performance. 52 00:04:45,320 --> 00:04:47,280 That is actually highly related to the next question. 53 00:04:47,520 --> 00:04:49,200 And I will move along then. 54 00:04:49,640 --> 00:04:56,380 Yeah. So what are the different approaches for feature extraction and how do we represent 55 00:04:56,380 --> 00:04:58,500 malware to a model? 56 00:04:59,760 --> 00:05:03,300 That is, I imagine, something that's new to much of the audience. 57 00:05:06,320 --> 00:05:13,660 I guess I've got the mic. Yeah. So I think a lot of the stuff, as far as I'm aware, 58 00:05:13,780 --> 00:05:18,040 that's actually in production tends to be static artifacts. And so you can sort of, you have 59 00:05:18,040 --> 00:05:21,900 two different ways that you can represent it. You can either use some sort of parsing approach 60 00:05:21,900 --> 00:05:27,480 where you do things like you pull out section names or, sorry, you do things like you pull out 61 00:05:27,480 --> 00:05:31,980 section names or the entropy of individual sections. But it relies on you being able to sort of 62 00:05:31,980 --> 00:05:39,400 like dig in and analyze the file as a PE file. And then you also have features that don't require 63 00:05:39,400 --> 00:05:45,500 any parsing. So you can just get like the entropy of every consecutive 256 bytes of the file 64 00:05:45,500 --> 00:05:51,180 or something like that and treat that as a sequence. And you can also, there's research that's been 65 00:05:51,180 --> 00:05:56,040 done in convolutional and recurrent neural networks where you just feed the file in a byte at a time 66 00:05:56,040 --> 00:05:57,460 or you feed in chunks of the file at a time. 67 00:05:57,480 --> 00:06:02,260 And it just operates directly on the raw bytes of that. And so I think all of them have their pluses 68 00:06:02,260 --> 00:06:07,080 and minuses. There's tradeoffs in terms of how much domain knowledge you need to put into it 69 00:06:07,080 --> 00:06:12,940 and whether your parser will actually choke on some files and not others. And how flexible the 70 00:06:12,940 --> 00:06:19,640 representation is. But that's probably the key challenge in getting an effective malware model 71 00:06:19,640 --> 00:06:24,820 out is figuring out what the right balance between these sort of very domain specific expert 72 00:06:24,820 --> 00:06:27,460 knowledge required parsing features and what the right balance between these sort of very domain 73 00:06:33,680 --> 00:06:34,400 specific expert knowledge required parsing features and what the right balance between these sort of very 74 00:06:34,400 --> 00:06:35,280 domain specific expert knowledge required parsing features and what the right balance between these sort of very 75 00:06:35,280 --> 00:06:38,640 domain specific expert knowledge required parsing features and what the right balance between these sort of very 76 00:06:38,640 --> 00:06:41,760 domain specific expert knowledge required parsing features and what the right balance between these sort of very 77 00:06:42,420 --> 00:06:45,720 domain specific expert knowledge required parsing features and what the right balance between these sort of very 78 00:06:45,720 --> 00:06:46,960 domain specific expert knowledge required parsing features and what the right balance between these sort of very 79 00:06:46,960 --> 00:06:48,160 domain specific expert knowledge required parsing features and what the right balance between these sort of very 80 00:06:48,160 --> 00:06:48,880 domain specific expert knowledge required parsing features and what the right balance between these sort of very 81 00:06:48,880 --> 00:06:51,020 domain specific expert knowledge required parsing features and what the right balance between these sort of very 82 00:06:51,020 --> 00:06:54,160 domain specific expert knowledge required parsing features and what the right balance between these sort of very 83 00:06:54,160 --> 00:06:57,460 domain specific expert knowledge required parsing features and what the right balance between these sort of very 84 00:06:57,460 --> 00:07:08,780 File types, dynamic, contextual. No. I mean, you're going to have 85 00:07:08,780 --> 00:07:10,660 different problems like Hiram said, right? You're going to 86 00:07:10,660 --> 00:07:13,180 have different places where you want to deploy it. You'll have 87 00:07:13,180 --> 00:07:15,260 different requirements for latency, for speed, for size of 88 00:07:15,260 --> 00:07:19,340 the model. And every one of those decisions is going to lead 89 00:07:19,340 --> 00:07:24,120 you to a different kind of model. Yeah, so I would 90 00:07:24,120 --> 00:07:26,120 definitely agree. There's probably not a single all 91 00:07:26,120 --> 00:07:28,680 encompassing model that would work well across all different 92 00:07:28,680 --> 00:07:32,340 types of malware. One of the things that I wanted to mention 93 00:07:32,340 --> 00:07:34,540 about the previous question about feature extraction and 94 00:07:34,540 --> 00:07:37,060 feature engineering is that feature extraction and feature 95 00:07:37,060 --> 00:07:39,860 engineering is vitally important to make sure that your model 96 00:07:39,860 --> 00:07:42,120 isn't abusable. If you're extracting features that don't 97 00:07:42,120 --> 00:07:45,320 really make sense, your model might queue in on things that 98 00:07:45,320 --> 00:07:49,780 it shouldn't be queuing in on. And that's not going to be a 99 00:07:49,780 --> 00:07:51,960 very good model. It's not going to be a robust model and 100 00:07:51,960 --> 00:07:55,740 adversary could find those weak points and exploit them, which 101 00:07:56,120 --> 00:07:58,880 kind of brings me around to why there probably isn't an 102 00:07:58,880 --> 00:08:00,940 all-encompassing model that would work well on all different 103 00:08:00,940 --> 00:08:04,220 kinds of malware because the things that you would use to do 104 00:08:04,220 --> 00:08:06,480 malicious things with PE are going to be different from the 105 00:08:06,480 --> 00:08:09,400 things that you would do to do malicious stuff with Elf or 106 00:08:09,400 --> 00:08:13,280 Mako or any other file format or JavaScript even. So having a 107 00:08:13,280 --> 00:08:19,020 single model that just queues in on, you know, yeah, TLDR, no 108 00:08:19,020 --> 00:08:23,880 single model. I will just note that there are 109 00:08:23,880 --> 00:08:26,100 corporations who do use a sort of single model model, which is 110 00:08:26,120 --> 00:08:30,540 a single model for all file types and have claims about 111 00:08:30,540 --> 00:08:35,200 that. So I would, you know, it's something that wouldn't be great. 112 00:08:35,300 --> 00:08:36,860 I sure hope they're using transfer learning. 113 00:08:37,100 --> 00:08:37,880 I sure hope they are. 114 00:08:37,920 --> 00:08:38,760 Yeah, it wouldn't be great. 115 00:08:39,660 --> 00:08:42,300 I would say the only thing I would add would be, like, you 116 00:08:42,300 --> 00:08:45,080 know, obviously each model would be specific to the modality, but 117 00:08:45,520 --> 00:08:48,040 considering, like, multimodal models where we're looking at 118 00:08:48,040 --> 00:08:51,400 feature spaces from static and dynamic and identity, you know, 119 00:08:51,400 --> 00:08:53,680 again, depending on how you source, how you're sourcing that 120 00:08:53,680 --> 00:08:55,880 data, how you're doing the feature extraction, I think, 121 00:08:55,880 --> 00:08:58,320 could change things. But each model could be trained 122 00:08:58,320 --> 00:09:00,400 independently. And then, again, you know, we can ensemble or 123 00:09:00,400 --> 00:09:03,160 build, you know, like a majority vote. You know, again, simple 124 00:09:03,160 --> 00:09:05,640 ways of basically combining the outputs of different models that 125 00:09:05,640 --> 00:09:08,540 are, you know, built for a specific task, I guess, would be 126 00:09:08,540 --> 00:09:15,720 what my two cents add to that. So on to the next kind of set of 127 00:09:15,720 --> 00:09:19,080 questions. What do you guys feel are the biggest challenges in, 128 00:09:19,180 --> 00:09:23,160 like, the field of detecting malware with machine learning? 129 00:09:25,500 --> 00:09:25,860 Yeah. So, you know, I think, you know, I think, you know, I think 130 00:09:25,860 --> 00:09:26,780 you're glad to have us here. You know, I would love to think about 131 00:09:26,780 --> 00:09:29,260 Okay. Good, good. Well, I'll start. I think, again, you can 132 00:09:29,260 --> 00:09:33,160 break this down into the different types, but in static 133 00:09:33,160 --> 00:09:36,400 detection, I think an awful lot of engines still have trouble 134 00:09:36,400 --> 00:09:43,640 with packed samples, right? Because packers change, it's hard 135 00:09:43,640 --> 00:09:47,600 to track them. The entropy and sections can vary, depending on 136 00:09:47,600 --> 00:09:55,680 the packing technique used. And, at the end of the day, not, you 137 00:09:55,680 --> 00:10:05,360 They actually use instead of sort of, you know, instead of looking inside the sample and trying to determine a string or a signature that that would indicate maliciousness. 138 00:10:05,720 --> 00:10:10,960 Instead, they look at artifacts that, you know, that is the smoking gun. 139 00:10:11,120 --> 00:10:15,400 You know, something in here is probably malicious because of the imports and all those things that can't be packed. 140 00:10:15,640 --> 00:10:20,260 So but that still represents, I think, a weak point for for some type of static approaches. 141 00:10:21,540 --> 00:10:23,960 Do you want to introduce yourself, please? 142 00:10:29,060 --> 00:10:34,860 Yeah. Yeah, I was actually hanging out at Maurer Tech trying to get food. 143 00:10:35,080 --> 00:10:40,000 But yeah, my name is Amanda Rousseau. People also know me as Maurer Unicorn. 144 00:10:40,260 --> 00:10:45,100 Can you see me back there? OK. I work at Endgame doing our research. 145 00:10:45,420 --> 00:10:52,440 I help a lot of the data scientists kind of tune the model machine learning models that we use at Endgame. 146 00:10:52,660 --> 00:10:55,540 And we try to look at different types of malware. 147 00:10:55,680 --> 00:11:05,400 And kind of see, you know, where do we need to focus our feature set on, as well as, you know, determining manual verification if something is malicious or benign. 148 00:11:10,480 --> 00:11:12,500 So I think we're still on the challenges, right? 149 00:11:12,780 --> 00:11:15,140 Yes. Challenges. Please continue the challenges. 150 00:11:16,120 --> 00:11:19,760 Yeah, I think the so packing and encryption is a major headache. 151 00:11:19,880 --> 00:11:25,400 I think the other challenge that's that's really kind of a big one is just getting a good. 152 00:11:25,680 --> 00:11:28,420 Labeled set for doing supervised learning. 153 00:11:28,580 --> 00:11:34,240 So, you know, you've got a lot of repos of stuff that's, you know, allegedly malware or mostly malware. 154 00:11:34,380 --> 00:11:38,280 You've got, you know, various threat intelligence feeds you can subscribe to. 155 00:11:38,520 --> 00:11:43,980 But a lot of the stuff in there is kind of the labels are kind of garbage, right? 156 00:11:44,080 --> 00:11:49,340 And you've got a lot of disagreement between vendors about whether some samples are malware or not. 157 00:11:49,540 --> 00:11:55,420 And so being able to get a good set of ground truth labels that you trust that you can use to then train 158 00:11:55,420 --> 00:11:59,720 these models in a fully supervised fashion is is kind of a constant headache. 159 00:11:59,880 --> 00:12:05,940 And so finding ways to refine those labels and make them more trustworthy is something that we actually spend a lot of time on. 160 00:12:07,140 --> 00:12:08,320 So that actually leads well. 161 00:12:08,480 --> 00:12:08,900 Oh, sorry. 162 00:12:10,600 --> 00:12:24,800 And to elaborate on that a bit, I think one of the main challenges that I see is that if you're dealing with certain kinds of file formats where you don't have a lot of labeled data, like let's take Mako, for example, you might scan. 163 00:12:24,920 --> 00:12:25,280 V.T. 164 00:12:25,420 --> 00:12:32,380 For labels or something like that, and you might come back with something like a thousand or a couple of tens of thousands of malicious Mako executables. 165 00:12:32,960 --> 00:12:38,600 And when it comes to training models that will generalize, well, how do you learn anything from 10,000 samples? 166 00:12:38,740 --> 00:12:46,080 Right. When you compare Mako to PE, for example, you might be able to get a labeled data set of several hundred million malicious PE executables. 167 00:12:47,100 --> 00:12:54,680 But when it comes to file formats where sort of like the way to abuse them hasn't been fully exercised like it has for PE. 168 00:12:54,840 --> 00:12:55,240 You know, people. 169 00:12:55,240 --> 00:12:57,480 People have been writing malware for PE for decades now. 170 00:12:58,100 --> 00:13:00,060 It's a really difficult problem to deal with. 171 00:13:04,380 --> 00:13:10,140 So like he said, file format is a major issue because you don't have just file format. 172 00:13:10,260 --> 00:13:11,540 You have Mako, Elf, whatever. 173 00:13:12,180 --> 00:13:13,620 You also have compiler type. 174 00:13:13,920 --> 00:13:18,440 So there's a lot of bootstrapping code in the beginning of a binary that can change your feature set. 175 00:13:18,660 --> 00:13:24,320 Say you're focused on the beginning of the binary and you're trying to design features around the malicious part of the code. 176 00:13:24,320 --> 00:13:26,640 But you're looking at the bootstrapping code of the compiler. 177 00:13:27,000 --> 00:13:35,840 So when you start to cluster PE executables based on just the PE alone, you also need to cluster them based on compiler language that they were written in. 178 00:13:35,940 --> 00:13:43,840 Because all of the calling conventions, even in the malware binary itself, are all different depending on the compiler and what processor it's meant to be. 179 00:13:44,100 --> 00:13:46,180 Same with 32-bit versus 64-bit. 180 00:13:46,240 --> 00:13:47,840 You're going to have different training sets for those. 181 00:13:48,060 --> 00:13:53,140 So you have to make sure that you have those samples in your training set that are labeled properly. 182 00:13:55,120 --> 00:13:56,800 I'll just add one last thing to this question. 183 00:13:56,980 --> 00:14:05,980 Not necessarily from the perspective of modeling itself, but from building really engineering sustainable model pipelines to support rapid experiments. 184 00:14:06,260 --> 00:14:12,980 Again, deploying models, getting feedback quickly, being able to make use of feedback that doesn't come through normal channels as well, too. 185 00:14:13,380 --> 00:14:18,760 That's a really hard problem, I think, especially when we're considering some of the data set sizes. 186 00:14:18,800 --> 00:14:23,920 Maybe not necessarily in the class of the imbalanced data sets, but for PE, moving that all around. 187 00:14:24,320 --> 00:14:24,780 That can be challenging. 188 00:14:25,060 --> 00:14:29,840 And again, quickly building new models, experimenting with different instances of them, and evaluating them. 189 00:14:30,000 --> 00:14:34,160 And then getting evaluation and getting feedback from the field can be a hard engineering problem. 190 00:14:37,160 --> 00:14:40,960 So we can move on to the next question now, which I think is going to be kind of interesting. 191 00:14:42,460 --> 00:14:43,680 Well, more interesting. 192 00:14:44,160 --> 00:14:53,540 So what should we do as an industry of security folk about things that are only malware? 193 00:14:54,320 --> 00:14:54,720 What should we do? 194 00:14:54,720 --> 00:15:00,640 What should we do with the malicious hands like PSExec and so forth? 195 00:15:00,900 --> 00:15:02,900 If anyone wants to jump in on that. 196 00:15:04,240 --> 00:15:05,280 Yeah, I'll bite. 197 00:15:05,760 --> 00:15:10,600 So I think I'm a proponent that machine learning is not a panacea. 198 00:15:10,620 --> 00:15:11,300 It's not a cure-all. 199 00:15:11,420 --> 00:15:16,020 A model should be designed with a specific focus and a question. 200 00:15:16,140 --> 00:15:17,240 And it can do that well. 201 00:15:17,480 --> 00:15:22,100 And if you kind of try to fuzzy your objective, then you'll get kind of fuzzy results. 202 00:15:22,260 --> 00:15:23,420 So with that in mind, 203 00:15:24,320 --> 00:15:29,240 I think the sort of the tools packages sometimes can be addressed better without machine learning. 204 00:15:29,420 --> 00:15:36,640 So looking at common rules of parent-child relationships, that should not happen. 205 00:15:36,740 --> 00:15:43,460 You can't discover and exploit much more easily than maybe a machine learning package could infer, for example. 206 00:15:43,640 --> 00:15:52,300 So I think there's a lot of room for traditional security concepts to sort of wrap what machine learning provides in a more laser-focused setting. 207 00:15:57,800 --> 00:16:02,380 I think just not the binary itself, but it also depends on the context. 208 00:16:02,600 --> 00:16:13,420 So one of the things that we focus on is adding another, I guess, feature to the set there is determining how the malware is delivered. 209 00:16:13,600 --> 00:16:19,840 Because if you're using a tool and it was delivered as part of a package with other malware packaged inside of a zip file, for instance, 210 00:16:20,060 --> 00:16:23,460 in that context, you know, it's going to be probably used maliciously. 211 00:16:23,460 --> 00:16:26,380 Then rather than admin using the same tool in the wrong way. 212 00:16:26,580 --> 00:16:32,120 So there's more outside factors to just the binary itself to determine if something is malicious or bad. 213 00:16:40,000 --> 00:16:42,520 Okay. So great answers, everyone. 214 00:16:43,680 --> 00:16:53,140 So like a lot of machine learning engines applying to malware classification generally tell whether a sample is malicious or benign. 215 00:16:55,220 --> 00:17:01,820 How do we feel as an industry or how could we approach naming malware through machine learning? 216 00:17:02,060 --> 00:17:04,540 Or is it really a problem we need to address? 217 00:17:07,400 --> 00:17:14,780 Well, you could build a classifier around, you know, all the VT detection labels, you know, and basically just produce labels from that or generate labels, I should say. 218 00:17:14,940 --> 00:17:21,340 But I think there's a lot more interesting kind of, you know, machine learning tasks here beyond just binary classification. 219 00:17:21,340 --> 00:17:26,460 So multi-label classification, you know, or multi-class classification could be applied here. 220 00:17:27,060 --> 00:17:28,760 I guess this kind of maybe goes in the realm. 221 00:17:29,080 --> 00:17:33,140 So just to clarify, binary classification, he means one or zero, not like... 222 00:17:33,140 --> 00:17:33,900 Benign or malicious. 223 00:17:34,320 --> 00:17:36,720 Yeah, benign or malicious, not like raw bytes. 224 00:17:37,560 --> 00:17:38,780 Yeah, thank you for that clarification. 225 00:17:39,880 --> 00:17:46,400 I think other areas too, especially because, again, I grew up in a SOC working as an incident responder. 226 00:17:46,600 --> 00:17:51,040 So I loved having tools that enabled me to do my hunting better or do my analysis better. 227 00:17:51,040 --> 00:17:58,320 So applying things like nearest neighbor search or clustering, you know, for customers and even internally, you know, I think it really helped us out. 228 00:17:59,440 --> 00:18:06,360 So, yeah, I guess I think there's more beyond just, again, beyond binary classification on, you know, things being malicious or benign. 229 00:18:06,440 --> 00:18:07,520 That could definitely help out. 230 00:18:07,600 --> 00:18:09,760 And maybe this gets into model explanations as well too. 231 00:18:09,880 --> 00:18:11,340 But I don't know if that's a question later. 232 00:18:11,440 --> 00:18:13,820 But I think that's also a very interesting area too, model interpretability. 233 00:18:17,760 --> 00:18:18,140 Yeah. 234 00:18:18,380 --> 00:18:20,640 On that front, that's one of the reasons why. 235 00:18:21,040 --> 00:18:29,740 I suppose we're so deep in on deep neural networks as opposed to some other more structured classifiers, simply because you can put a lot more flexibility into them. 236 00:18:29,860 --> 00:18:36,020 And so you can do things like give me something that will not just say is this malicious or benign, but is this malicious? 237 00:18:36,060 --> 00:18:41,620 And if it's malicious, is it malicious because it's PUA or malicious because it's a virus or malicious because it's ransomware? 238 00:18:41,720 --> 00:18:44,280 And you can even put things like family labels into it. 239 00:18:44,340 --> 00:18:51,020 So you can build a whole lot more flexibility in how you want to slice up your space of your malicious and your benign samples. 240 00:18:51,020 --> 00:18:55,580 And sort of enrich your output in that sense. 241 00:18:55,740 --> 00:18:57,920 And then also, cheap plug, black hat talk. 242 00:18:58,320 --> 00:19:11,880 We have found that using sort of the internal representations from these deep learning models actually is a really useful analytic tool to take a look at sort of how these different samples group together in space. 243 00:19:12,040 --> 00:19:19,960 And maybe suggest other clusterings that might relate more to functionality rather than to authorship similarity and things like that. 244 00:19:19,960 --> 00:19:25,500 So I think there's definitely, and I think we're just sort of seeing the beginning of this. 245 00:19:25,580 --> 00:19:41,160 There's definitely a large role for these machine learning models, not just as tools of classification, but also useful analytic tools that can be sort of handed over to people that do more conventional malware analysis to sort of assist them in this sort of virtuous cycle. 246 00:19:44,600 --> 00:19:49,820 And so I think as far as auto classification, taking a machine learning model. 247 00:19:49,840 --> 00:19:49,940 Yeah. 248 00:19:49,960 --> 00:19:55,620 And having it, you know, take a binary and try and predict what kind of malware family it belongs to is a pretty good idea. 249 00:19:55,860 --> 00:19:57,280 And a lot of people do it really well. 250 00:19:57,920 --> 00:20:00,920 However, I think we will always need malware analysts in the loop. 251 00:20:01,000 --> 00:20:03,240 We're always going to need humans to validate these results. 252 00:20:03,420 --> 00:20:06,620 We can't just be, you know, automatically classifying things and be asleep at the wheel. 253 00:20:07,320 --> 00:20:14,600 So I'm not super sure if it would be a great idea to have machine learning models that do things like automatically come up with new family names and things like that. 254 00:20:15,640 --> 00:20:19,220 For one thing, it may come up with something that's, you know, not entirely meaningful. 255 00:20:19,220 --> 00:20:20,580 And the name. 256 00:20:21,100 --> 00:20:26,260 Because, you know, malware family names, there's often like some, you know, joke or... 257 00:20:26,260 --> 00:20:28,480 Any signatures being like all over the place? 258 00:20:28,620 --> 00:20:28,900 Never. 259 00:20:29,180 --> 00:20:29,660 Yeah. 260 00:20:30,980 --> 00:20:38,780 But yeah, just having a human in the loop to, you know, give a specific malware family name a meaningful name is, you know, something that's always going to be important. 261 00:20:45,300 --> 00:20:47,080 From the malware analyst perspective, 262 00:20:47,080 --> 00:20:52,960 it's the data science job to help us bubble up the important things for us to resolve, right? 263 00:20:53,240 --> 00:20:54,940 So, you know, a lot of... 264 00:20:54,940 --> 00:21:04,580 Traditionally, the malware samples were identified by someone giving it a cool name and saying a children, something, you know, want to cry or something like that. 265 00:21:04,720 --> 00:21:10,440 But really, we, you know, if we kind of went back to the whole biology part of it, 266 00:21:10,460 --> 00:21:16,080 where we classify that it actually does this certain behavior or has a certain property, 267 00:21:16,080 --> 00:21:19,540 rather than just giving it a random name and calling it a certain class, 268 00:21:19,720 --> 00:21:25,380 that would help us a lot better because we would need to figure out how to get rid of the malware itself. 269 00:21:25,560 --> 00:21:29,940 But the only way is if we knew what type of behavior it did so we can remove it. 270 00:21:30,280 --> 00:21:38,160 And I think that's one of the major problems that, you know, data science tries to resolve is like there are heuristics based on behavior or properties 271 00:21:38,160 --> 00:21:44,740 that could be more helpful than just a generic family name that someone threw a dart on the wall and decided to name it. 272 00:21:47,500 --> 00:21:51,240 I'm just going to lead into the next part because we're a little bit over because we started late. 273 00:21:52,220 --> 00:22:00,420 What do you guys feel is the future of malware classification without burning intellectual property? 274 00:22:04,640 --> 00:22:06,220 Does no one want to touch that? 275 00:22:08,760 --> 00:22:14,840 So I think from the sort of machine learning perspective, 276 00:22:16,080 --> 00:22:21,660 the amount of data that's coming in like day over day is growing, you know, really fast. 277 00:22:21,820 --> 00:22:27,840 So there's a lot of challenges for us to overcome, just unlike the engineering and the pipeline end of things. 278 00:22:28,060 --> 00:22:34,960 But also being able to sort of put analysts more tightly into the loop and sort of engage that feedback loop 279 00:22:34,960 --> 00:22:39,860 and maybe bubble up stuff that's suspicious but hasn't been assigned like a family name or something 280 00:22:39,860 --> 00:22:45,060 and hand that over and get a final verdict about, yeah, is it malicious or is it benign? 281 00:22:45,060 --> 00:22:50,480 So being able to get more and sort of focus more on an active learning type problem 282 00:22:50,480 --> 00:22:57,320 where you're putting humans into the loop and you're learning how to sort of spend analyst hours most effectively 283 00:22:57,320 --> 00:23:02,400 to supplement and improve your machine learning I think is a really promising direction for the future. 284 00:23:04,460 --> 00:23:11,080 I'll just add that I think of everybody I think represented on the panel, 285 00:23:11,200 --> 00:23:15,040 we rely maybe to an embarrassing extent on traditional analytics. 286 00:23:15,060 --> 00:23:16,780 We rely on AIV to supplement our labels. 287 00:23:16,840 --> 00:23:21,180 Agreed. Yeah. It's a really unfortunate thing, but they also rely on each other. 288 00:23:21,380 --> 00:23:25,140 Yeah, yeah, yeah. Right. But these labels don't come for free. 289 00:23:25,240 --> 00:23:28,000 We put in human effort, but there's also automated effort in there. 290 00:23:28,080 --> 00:23:33,160 So one thing to think about in the future is, you know, if everybody moves to machine learning, 291 00:23:33,860 --> 00:23:36,900 then from whence the free labels, right? 292 00:23:36,980 --> 00:23:41,380 So there's a conundrum here that reliance on the human is going to become more important. 293 00:23:41,520 --> 00:23:44,200 And furthermore, I think that sort of, 294 00:23:45,060 --> 00:23:50,360 really hot research area is not in supervised learning of machine learning models, 295 00:23:50,540 --> 00:23:54,100 but in unsupervised and semi-supervised machine learning models 296 00:23:54,100 --> 00:23:56,600 where the reliance on labels diminishes. 297 00:23:58,120 --> 00:23:58,600 Yeah. 298 00:23:58,960 --> 00:24:02,220 I'm strongly in the opinion of using active learning. 299 00:24:02,420 --> 00:24:03,580 I'm a big fan of it. 300 00:24:04,280 --> 00:24:06,840 I guess just kind of go on top of that. 301 00:24:06,920 --> 00:24:09,440 I would say there's a really interesting project called Snorkel. 302 00:24:09,920 --> 00:24:12,220 It's a framework for doing weak supervision. 303 00:24:12,580 --> 00:24:14,500 So specifically in the case where there's labels 304 00:24:15,060 --> 00:24:17,540 for these different, you know, types of malware and, you know, 305 00:24:17,580 --> 00:24:19,800 maybe we're getting like heuristics or signatures from analysts. 306 00:24:20,080 --> 00:24:24,160 You know, weak supervision, the task is basically to try to combine all of those labels 307 00:24:24,160 --> 00:24:27,100 in a way that overall improves another model later down the road. 308 00:24:27,300 --> 00:24:31,440 And this project, Snorkel, I think it's Hazy Research Group. 309 00:24:31,860 --> 00:24:34,980 I can't remember the author's name right now, but they have a great tool. 310 00:24:35,140 --> 00:24:38,000 It's kind of more built around like weak supervision of images. 311 00:24:38,440 --> 00:24:42,160 So combining all these different labels from different kind of mechanical turks 312 00:24:42,160 --> 00:24:46,020 specifically for image classification, but, you know, that could be potentially extended 313 00:24:46,020 --> 00:24:49,220 to help with some of the problems of, you know, taking really noisy labels 314 00:24:49,220 --> 00:24:53,420 and also taking account of like, you know, external databases of signatures 315 00:24:53,420 --> 00:24:56,600 or heuristics, you know, that might be useful for influencing the model. 316 00:24:58,020 --> 00:25:00,420 So I'm sorry we have to stop now. 317 00:25:00,580 --> 00:25:01,640 We're over time. 318 00:25:02,200 --> 00:25:03,900 But thank you for all the panelists. 319 00:25:04,700 --> 00:25:06,300 Great answers to all the questions. 320 00:25:06,420 --> 00:25:07,640 Super happy to have you all. 321 00:25:07,780 --> 00:25:09,080 And thank you everyone for coming. 322 00:25:12,160 --> 00:25:12,720 Thank you.