[00:00.000 --> 00:05.480] Our next speaker is Dr. Ethan Rudd, Senior Data Scientist at Sophos. [00:16.860 --> 00:24.280] Hello, everybody. Yes, my name is Dr. Ethan Rudd. I'm a Senior Data Scientist at Sophos. [00:24.540 --> 00:30.060] And the title of my talk is, Loss is More, Improving Malware Detectors by Learning Additional [00:30.060 --> 00:37.580] Tasks. So, before I go into the meat of the talk, I just wanted to let you guys know a little bit [00:37.580 --> 00:42.640] about who I am, so that you know that I'm not just some random guy that sort of stumbled in [00:42.640 --> 00:47.460] here off the street. This is my first time at DEF CON. Very excited to be giving a first DEF CON [00:47.460 --> 00:59.410] talk. And thank you. I've been on the Sophos data science team for about two and a half years in a [00:59.410 --> 01:05.430] research capacity. Prior to that, I worked on several projects in several areas of applied [01:05.430 --> 01:12.370] machine learning. My PhD research was funded by the IARPA Janus project, face recognition project. [01:12.490 --> 01:17.370] I did a project at Google with their advanced technologies and projects team. [01:17.430 --> 01:21.750] And then I've been involved in several other small business and university projects. [01:21.910 --> 01:27.470] So, I mentioned the face recognition stuff because we're also running a great facial recognition demo [01:27.470 --> 01:33.510] at the Unwind session. So, please check that out. And you can check me out on Twitter or Google [01:33.510 --> 01:42.630] scholar for various research if you like this talk. So, what is this talk about? Well, as we've [01:42.630 --> 01:48.490] seen, there have been several great talks on machine learning for information security prior to this [01:48.490 --> 01:56.150] one. But for many machine learning malware detectors, we're looking at training on a single [01:56.150 --> 02:01.110] malicious or benign label when there's actually lots of additional information available. Lots of [02:01.110 --> 02:06.830] additional labels, lots of additional metadata, etc. And so, really the question that we answer [02:06.830 --> 02:13.530] in this talk is, can we train and craft a bunch of auxiliary labels to train on rather than just [02:13.530 --> 02:19.190] having a single malicious or benign label? And can we get better performance? Well, as it turns out, [02:19.190 --> 02:24.770] we can. And interestingly enough, we also find that these performance gains can be attributed [02:24.770 --> 02:29.750] to a better informed classifier. And I'll explain what I mean by that a little bit later on. [02:29.750 --> 02:36.350] So, in before and after photos, if you will, what we're talking about is adding additional [02:36.350 --> 02:42.310] loss functions during the optimization. So, on the before side, you'll see that we have [02:42.310 --> 02:48.290] only a single loss function. This is how many malicious and benign detectors are trained. [02:48.390 --> 02:52.190] And they work pretty well. There are a lot of them that are commercially deployed. [02:52.450 --> 02:57.750] You can get good performance. But if you add a bunch of auxiliary loss functions on a bunch of [02:57.750 --> 03:05.490] labels, hence the after loss part of this before after thing, we get way, way better performance, [03:05.490 --> 03:13.190] as it turns out. So, before I dive into exactly how we formulate this, I'll just give a brief [03:13.190 --> 03:22.070] review of machine learning for malware detection. So, up until about 2015, most malware detectors [03:22.070 --> 03:28.730] were largely signature driven. There were a few machine learning, but ML really took off around [03:28.730 --> 03:35.290] then. Now, actually, a lot of the detectors consist of hybrid ML and signature. They use [03:35.290 --> 03:44.050] signature largely for blacklisting. And one can really triage detection as this diagram here, [03:44.050 --> 03:50.950] where ML and signature detectors actually both work on static and dynamic features. [03:51.570 --> 03:57.590] For ML, static is a little bit more common. And we focus largely on static detection in this talk. [03:57.590 --> 04:02.910] The reason, by the way, that static features are more common is to get ML to work well, [04:02.910 --> 04:08.970] it requires lots and lots and lots of data. And it's easier to collect a lot of static data. [04:09.870 --> 04:16.630] So, we find that we can actually do very, very well with that. So, a typical detection pipeline [04:16.630 --> 04:22.390] is built on some sort of a binary classifier, deep neural network, or maybe a gradient boosted [04:22.390 --> 04:30.010] machine. I'll discuss the deep neural network use case for this talk. And we're talking about [04:30.010 --> 04:35.970] training on millions to hundreds of millions of labeled malicious and benign samples. [04:36.610 --> 04:41.790] And we're also talking about classifiers that are periodically retrained to be able to reflect [04:41.790 --> 04:47.670] current threat landscapes. These can be deployed in a lot of different contexts. They can be [04:47.670 --> 04:52.430] deployed actually on endpoints. They can be deployed in the cloud. They can be deployed [04:52.430 --> 04:57.010] in security operations centers. It really doesn't matter for the purpose of this talk. [04:58.010 --> 05:05.270] Now, as far as labeling sources that a lot of vendors use, they rely on vendor aggregation [05:05.270 --> 05:10.590] services or threat intelligence feeds, which basically take a bunch of vendors or different [05:10.590 --> 05:15.990] labeling sources throughout the industry and submit malicious and benign samples to those [05:15.990 --> 05:22.150] and say, okay, how do these label the samples? And then some sort of an aggregate label is [05:22.150 --> 05:32.190] generally derived. Often there's also a little bit of time lag between the time at which the [05:32.830 --> 05:39.970] samples are submitted to the vendors. And there's a little bit of time lag that's left [05:39.970 --> 05:46.930] to basically let vendors update their blacklists and let the scores settle down. But long story [05:46.930 --> 05:54.150] short, most approaches take an aggregate malicious or benign label that is obtained from these [05:55.130 --> 06:06.930] threat intelligence feeds. Now, these detection engines also, because they use ML, they need to [06:06.930 --> 06:14.230] convert the malicious and benign samples to some sort of an ML-friendly numerical [06:14.230 --> 06:20.930] representation. There are a variety of ways to do this. Some try and do something that's closer to [06:20.930 --> 06:27.750] raw bytes. Some use various types of feature vector representations. We presume a specific [06:27.750 --> 06:34.890] one. And we use a portable executable malware and benignware in this work. But the approach [06:37.270 --> 06:42.030] is fairly broad and can be done in a lot of different ways. So the way that a typical [06:42.030 --> 06:48.110] neural network will look is you'll have features that are extracted from malicious and benign [06:48.110 --> 06:56.010] samples during training. A forward pass is done through the network. The output of the classifier [06:56.010 --> 07:01.330] is taken. And then some loss function along with the associated label is used to correct [07:01.330 --> 07:06.030] the representation so that we have a good representation that we can then later deploy. [07:08.090 --> 07:13.150] At deployment time, we take this learned representation. And here I just want to [07:13.150 --> 07:19.010] highlight we don't have any labels on the malware samples. That's what our classifier serves to do. [07:19.010 --> 07:22.890] We deploy that to wherever we're deploying, whether we're deploying on endpoints, whether [07:22.890 --> 07:30.090] on socks, whether we're deploying to clouds. And then we submit our feature vectorized [07:30.090 --> 07:38.170] forms of our files in realtime to the classifier. And in this case, our classifier is a neural [07:38.170 --> 07:42.210] network. It could be whatever, but we're dealing with neural nets in this work. [07:42.590 --> 07:49.630] And we use the predicted output basically as a score that says, okay, how malicious is this file? [07:49.630 --> 07:54.790] A maliciousness score, if you will, that one can threshold in a variety of ways. [07:56.810 --> 08:03.570] So this is how things are currently done or commonly done, I should say. However, [08:03.570 --> 08:08.090] just a little bit more on these threat intelligence feeds, they have lots and lots more [08:08.090 --> 08:14.010] information than just whether a given file is malicious or benign. In fact, that's even a [08:14.010 --> 08:19.170] simplification from what they're providing. They also provide information on individual [08:19.170 --> 08:24.510] vendor detections. They provide, of course, the net number of vendor detections. And then [08:24.510 --> 08:30.490] they provide some string information on the detection names per vendor at the very least. [08:30.490 --> 08:37.090] Some provide a lot more. So really revisiting the original question that I posed, can we craft and [08:37.090 --> 08:45.110] learn from auxiliary labels and get a better detector? And the answer is yes, in fact, we can. [08:45.770 --> 08:52.650] The technique that we've derived to do this, we refer to as ALOHA, or Auxiliary Loss Optimization [08:52.650 --> 08:59.570] for Hypothesis Augmentation, hence the nice Hawaiian art here on the side. [09:02.650 --> 09:08.690] So in short, we've got all this auxiliary information that we want to utilize. And as [09:08.690 --> 09:12.870] we saw in the case of just a malicious and benign label, well, we have this loss function [09:12.870 --> 09:21.230] that we use here. So why not just add more loss functions? And that is really the [09:21.230 --> 09:28.050] crux of what ALOHA does. We have more labels, more loss functions. And this has a couple of [09:28.050 --> 09:35.390] nice advantages. First, although we have more labels and we use more network outputs during [09:35.390 --> 09:43.710] training, we do not actually have to use these during deployment time. So we can notionally get [09:44.130 --> 09:50.370] a much better network representation during training. But at deployment, we don't have to [09:50.370 --> 09:56.690] update our infrastructure at all. Now, alternatively, we can use the additional auxiliary outputs to do [09:57.050 --> 10:03.410] certain additional tasks. So if we want to do things that are, I'll say, specific to like an [10:03.410 --> 10:09.710] EDR or an MDR type application, where we're getting more fine grained information about the [10:09.710 --> 10:15.530] particular malicious samples, say maybe in a SOC, but maybe not on our endpoints, we can sort of [10:15.530 --> 10:22.870] dual purpose this training and use the learn models in a variety of ways. So for our labeling [10:22.870 --> 10:30.610] sources in this work, we selected nine vendors from our aggregation feeds and used detection [10:30.610 --> 10:36.650] labels from each of the respective vendors. We also used the net number of vendor detections. [10:36.650 --> 10:43.050] And there were more than nine in our feed. There were tens. And used the integer value of the [10:43.050 --> 10:50.630] number of vendor detections as an auxiliary target as well. We also use our main target of this [10:50.630 --> 10:59.850] aggregate most benign label. And then we also use 11 semantic malware attribute tags. So these [10:59.850 --> 11:08.350] describe the content of malicious and benign samples. These are derived from the detection [11:08.350 --> 11:13.950] names within our feeds. The derivation process I can speak a little bit more to at the end. [11:14.170 --> 11:19.330] But I would actually refer you guys to a, in my opinion, very good paper that we wrote on it. [11:19.570 --> 11:26.230] And I'll include a link for that in the end. But basically these tags are not mutually [11:26.230 --> 11:32.390] exclusive. And they summarize the content of most benign samples in ways that a human [11:32.390 --> 11:41.310] can understand. So for each of these additional labels and network outputs, we have additional [11:41.310 --> 11:48.190] loss functions. And so our main aggregate loss function is actually a binary cross entropy loss [11:48.910 --> 11:58.430] taken between the output of the network and the aggregate most benign tag or aggregate most benign [11:58.430 --> 12:04.430] label. Now this is a pretty common loss function for a lot of neural networks that are doing [12:04.430 --> 12:11.310] malware classification. But with respect to our auxiliary losses, we have a loss function that is [12:11.310 --> 12:18.010] specific to the vendors, one for the tags, the semantic tags, and then one for the counts. [12:18.730 --> 12:23.730] And for the vendor loss functions, we actually take a sum of binary cross entropy losses [12:24.250 --> 12:32.170] for each individual vendor response. For the tag losses, we take, we do a very analogous thing, [12:32.170 --> 12:37.370] but for each of the attribute tags. Now I would again point out that none of these tags are [12:37.370 --> 12:45.890] mutually exclusive. So we use binary cross entropy here rather than say a softmax [12:45.890 --> 12:53.210] categorical cross entropy and take the sum. Then for the count loss function, we use a Poisson [12:53.970 --> 13:02.090] loss on this. Now prior to that, we do an exponential activation to constrain our count [13:02.090 --> 13:08.630] range from zero to, well, basically to be non-negative as counts can't be non-negative. [13:08.630 --> 13:16.530] So our total loss is written at the bottom here. And this consists of the most benign loss [13:17.370 --> 13:23.710] with all of our auxiliary losses just summed and multiplied by a constant. Now the constant [13:23.710 --> 13:31.270] in this case, we use 0.1. We didn't explore good values of this in depth, but other work [13:31.270 --> 13:37.670] has. And so we did this sort of in a principled manner consistent with some other work that I'll [13:37.670 --> 13:42.850] reference towards the end here. So during training, and you've seen this at the beginning of [13:42.850 --> 13:48.990] the talk, but basically we have all these aggregate loss functions where we have a main malicious and [13:48.990 --> 13:54.910] benign loss that's what we're trying to ultimately optimize for and detect. But with respect to the [13:54.910 --> 14:00.850] aggregate loss functions, we have our vendor counts, our individual vendor detections, [14:00.850 --> 14:13.070] and our attribute tags. Now aggregating all of these losses together, we can use all of these [14:13.070 --> 14:18.310] or just one or two of these auxiliary losses, or we could even potentially add more if we had more [14:18.790 --> 14:24.190] information in our feed. I would very much point out that this is sort of a proof of concept [14:24.190 --> 14:32.450] model, a very general sort of architecture that I'm describing. But the point is that adding these [14:32.450 --> 14:41.670] auxiliary losses theoretically helps. At inference time, however, absolutely nothing has to change [14:41.670 --> 14:48.530] whatsoever with respect to the network outputs. You'll see that in the prior slide, we had all [14:48.530 --> 14:53.070] these different outputs that we added, but we pruned those, we pruned the associated model [14:53.070 --> 15:00.230] parameters at inference time. And so our deployment infrastructure can remain entirely the [15:00.230 --> 15:04.970] same. We don't have to change that at all, which is nice from an engineering perspective. [15:05.490 --> 15:13.610] So I've made these claims that the Aloha model works very well. Now I intend to actually provide [15:13.610 --> 15:21.710] some evidence of that. And to do that, we collected a data set of approximately 9 million training [15:21.710 --> 15:29.850] samples, 100,000 validation samples, and 7.7 million test samples. And the training and [15:29.850 --> 15:37.390] validation split was taken temporally before the test split to ensure basically a fair evaluation. [15:37.390 --> 15:48.550] I mean, we can't fit... in order to ensure temporal consistency, we ordered our samples as follows. [15:49.190 --> 15:55.090] And for our aggregation, for our aggregate malicious benign label, we used what we call [15:55.230 --> 16:01.770] a one minus five plus criterion here, which basically means that for one or fewer vendor [16:01.770 --> 16:08.030] detections, we label as benign, and for five or more, we label as malicious. And then we ignore [16:08.030 --> 16:15.090] those with two to four labels. Now I'd mentioned there are more sophisticated ways to do this. [16:15.090 --> 16:19.950] This is just the one we chose largely for simplicity, but there are more sophisticated [16:19.950 --> 16:25.330] ways to do this. But this works pretty well. It's a fairly standard practice. [16:27.550 --> 16:34.450] When we look at actually the vendor counts across our data set, and looking at this was one of the [16:34.450 --> 16:41.550] reasons why we chose the one minus five plus. But what you'll see is that there are a disproportionate [16:41.550 --> 16:49.530] number of one minus and specifically zero, and then a lot that have many, many, many vendor [16:49.530 --> 16:56.750] counts. And bear in mind, these are taken over a logarithmic scale. However, we still see, [16:56.750 --> 17:03.790] and this was one of our motivations for using account loss initially, that just taking these [17:03.790 --> 17:09.530] basic thresholds washes out a lot of finer grained information. So this was actually one of our [17:09.530 --> 17:16.150] motivations for the account loss. And as you can see, it's not a, it's not really a common occurrence, [17:16.150 --> 17:22.130] but we might be able to say something about relative sample difficulty by adding that. [17:23.530 --> 17:29.030] We also looked at the respective vendor agreements with one another, and these are [17:29.030 --> 17:35.450] plotted in this confusion matrix here for each of our nine selected so-called high coverage vendors. [17:35.450 --> 17:42.250] And as we can see, we can, we see an agreement that occurs most of the time, but not all the [17:42.250 --> 17:50.030] time. I mean, vendors are consistent approximately 85 to 95 percent of the time, but they don't [17:50.030 --> 17:56.130] always agree. So perhaps there's some independent auxiliary information that we can glean from these. [17:57.670 --> 18:05.130] As features, we use the same features as Saxon Berlin did in their work, deep neural network [18:05.130 --> 18:10.810] malware detection using two-dimensional binary program features. In full disclosure, [18:11.990 --> 18:17.970] Sax is my boss, so that's one of the reasons why we chose to use these features. We used [18:17.970 --> 18:24.590] the features that he and others within our group derived. And I won't go into these in [18:24.590 --> 18:30.210] depth, but I leave the paper there, and I just want to give sort of a semblance of what these are. [18:30.210 --> 18:39.330] So basically they fall into three different camps. So 512 of the dimensions of our net [18:39.330 --> 18:45.370] 1024 dimensional feature vector are based on windowed byte statistics and basically [18:45.370 --> 18:54.090] aggregate histograms of, sorry, windowed byte statistic histograms, which are basically [18:54.090 --> 19:02.030] aggregate statistics over the entire file. We then have 256 dimensions devoted to a two-dimensional [19:02.030 --> 19:08.610] string length hash histogram, or basically across a logarithmic scale of different lengths. [19:08.670 --> 19:18.350] We apply the hashing trick. And then we also have specific P metadata fields, like the exports, [19:18.350 --> 19:23.570] like the imports, et cetera, that are hashed into another 256 dimensional vector. And all [19:23.570 --> 19:29.060] these get concatenated. So that's our representation of individual files. [19:30.090 --> 19:38.290] So that's how our dataset breaks down. When we compare performance here, so we tried using [19:38.290 --> 19:45.110] different combinations of our main malicious and benign loss with different auxiliary losses. So [19:45.740 --> 19:52.770] we used one, just our malicious and benign loss as our baseline. So that's sort of tantamount to [19:53.110 --> 19:58.350] a lot of types of models that are currently deployed. Then we applied each individual [19:58.350 --> 20:04.750] loss type. Then we applied everything combined, which I guess you might say is the full Aloha [20:04.750 --> 20:12.930] model. And we fit each of these classifiers for each different loss combination. Actually, we fit [20:12.930 --> 20:19.630] five different classifiers. And we report our results in terms of mean and variance statistics [20:20.430 --> 20:27.090] over receiver operating characteristics curves to be able to gauge statistical significance. [20:28.130 --> 20:34.290] Now, for those, I know that there's a lot of talent in the room with a lot of different [20:34.290 --> 20:39.370] backgrounds. So for those of you that might need a refresher on receiver operating characteristics [20:39.370 --> 20:45.950] curves or ROC curves, basically we look at this false positive rate across the x-axis, [20:45.950 --> 20:51.330] then a true positive rate or a detection rate at that false positive rate across the y-axis. [20:51.590 --> 20:58.050] And so typically what's done in the industry is at various false positive rates that are [20:58.050 --> 21:05.350] deemed sort of acceptable to the user, a threshold is chosen, and then you'll get the true positive [21:05.350 --> 21:14.630] rate at that threshold. So what we see when we add our count loss is that we do, in fact, [21:14.630 --> 21:20.770] get better performance in terms of both the area under the receiver operating characteristics [21:20.770 --> 21:27.150] curve, which is basically a gauge of how good is the curve overall. But specifically, we see also [21:28.090 --> 21:36.450] at higher false positive rate regions, or sorry, lower false positive rate regions, [21:37.010 --> 21:44.290] we see a particular bump. And this becomes a bump in detection rate. Now, this becomes relevant [21:44.290 --> 21:50.710] because as we get to lower and lower FPR regions, there are more deployment scenarios that we can [21:50.710 --> 21:59.710] address with our models. Similarly, for the vendor loss, when we add that to our baseline, [22:00.290 --> 22:06.290] we see a boost in the receiver operating characteristics curve or ROC curve at the [22:06.290 --> 22:14.270] relevant region. We don't see quite as much of a boost in terms of the area under the curve. In [22:15.250 --> 22:21.910] statistically pretty similar. And that's not to say that this isn't still a very significant result. [22:22.590 --> 22:31.430] In fact, again, the AUC is a net statistic on the on the curve. But we don't really care so much [22:31.430 --> 22:36.630] about the higher false positive rate regions, because the detection rates there are very, [22:36.630 --> 22:43.810] very good already. And so we can deploy those very easily. But as we're getting down, you know, [22:44.410 --> 22:49.730] although the AUC is relatively similar, we still see this as basically a win. [22:50.290 --> 22:56.250] The tags loss gives us similar results. And I'd mentioned that actually both of these [22:57.170 --> 23:04.350] loss functions, the tags and the vendors loss functions, not only do they assume sort of a [23:04.350 --> 23:12.110] similar functional form, but they also give us an even better result than the Poisson loss function [23:12.110 --> 23:18.110] or the count loss at the lower false positive rate areas. But they are slightly worse in terms [23:18.110 --> 23:25.690] of in terms of AUC performance. When we combine everything together, what we find is that [23:25.690 --> 23:33.070] we get even better results. And we find that not only are our results far better, but our [23:33.070 --> 23:40.090] variance between different model instantiations is reduced. And we see basically there are two [23:40.090 --> 23:44.930] modes of improvement here. There's an improvement at the higher false positive rates that is above [23:44.930 --> 23:53.170] 10 to the negative third. And then there's an improvement below that. And basically the higher [23:53.170 --> 23:59.610] FPR improvements, these are really what are driving the area under the curve improvements. [23:59.670 --> 24:08.450] But again, the lower FPR ones are still quite relevant. So in summary, [24:09.310 --> 24:15.790] we see that yes, adding additional losses does seem to improve performance. And notably it also [24:15.790 --> 24:22.430] reduces variance across different instantiations of the model. We suspect that this is actually [24:22.430 --> 24:28.870] occurring, this variance reduction is occurring, because as you have more things to optimize for, [24:28.870 --> 24:33.450] you're inherently sort of constraining your optimization process. So there aren't as many [24:33.450 --> 24:41.630] different types of ways that parameters can vary. We also see that there are similar behavior for [24:41.630 --> 24:48.470] similar loss types. So both of the vendor losses and tag losses consist of sums of binary cross [24:48.470 --> 24:58.090] entropy losses. And again, these seem to drive different things with respect to our ROC curve. [24:58.090 --> 25:07.230] We suspect that we see these higher FPR gains in detection for the count loss, [25:07.230 --> 25:11.170] because it actually does communicate something about the difficulty of samples. [25:11.230 --> 25:17.370] And then with respect to the tag losses, perhaps the network's able to correlate some sort of [25:17.370 --> 25:24.490] information between when, say, just one or two of these vendor tags trigger versus when, say, [25:24.490 --> 25:31.090] all of them trigger. And so it drives things really at lower FPRs. [25:32.530 --> 25:38.990] So, okay, we've presented, or I've presented some evidence, hopefully, that the ALOHA model is [25:40.310 --> 25:47.550] able to deliver better detection performance. But now I'll just really briefly discuss what's [25:47.550 --> 25:53.210] driving this performance gain. Is it some sort of a smoother optimization service that's brought [25:53.210 --> 26:01.730] due to a regularization effect of multi-objective optimization? Or is it perhaps due to a more [26:01.730 --> 26:08.030] informed representation from all of these different auxiliary label sources? And going into [26:08.030 --> 26:15.490] this, we sort of suspect the latter of these two. But we want to actually make sure and then see [26:15.490 --> 26:22.470] what's going on here. So in order to test this, we used auxiliary loss functions on so-called [26:22.470 --> 26:29.570] non-informative targets. So we employed various mechanisms of duplicating labels. [26:30.230 --> 26:38.710] One of the ways that we did this was, or using or providing labels that delivered no additional [26:38.710 --> 26:43.210] information about the sample. One way that we did this was with a pseudo-random label, [26:43.210 --> 26:49.490] where we took the hash of the file contents and just took the sign of that as an auxiliary target. [26:49.490 --> 26:56.030] For a given file, you're going to be looking at the same label, but the labels are just pretty [26:56.030 --> 27:03.790] much randomly there. We also tried adding a duplicate target and optimizing for that. And [27:03.790 --> 27:09.950] then we also applied a duplicate target with a different type of loss function. So we scaled and [27:09.950 --> 27:15.750] shifted a copy of the target label. And then we used a mean squared error loss on this, which is [27:15.870 --> 27:22.890] a common regression loss. And so from these, what did we find? Well, we found that adding these [27:22.890 --> 27:29.350] non-informative losses did not improve our performance in a noticeable manner at all. In [27:29.350 --> 27:40.250] fact, it was statistically identical, if not worse, when we added auxiliary targets to our [27:40.250 --> 27:46.470] original target as well. So this suggests that, yes, the Aloha network gains are actually coming [27:46.470 --> 27:51.950] from additional information from the additional labels. The network's doing what we want it to do, [27:51.950 --> 27:57.170] and it is learning a better representation, a better informed representation. [27:59.570 --> 28:04.670] So overall, what we find is that, yes, our Aloha technique works well, [28:05.890 --> 28:11.450] and it seems to be a result of the neural network's ability to actually correlate information [28:11.450 --> 28:16.190] from auxiliary labeling sources. It's not just simply an artifact of regularization. [28:17.350 --> 28:21.530] We also have the advantage that the network can be trained and deployed with minimal changes [28:23.110 --> 28:29.590] to existing infrastructure that's out there. So no re-engineering of anything on the endpoint, [28:29.590 --> 28:34.870] on the SOC, anything in the cloud has to take effect. And then also there are additional [28:34.870 --> 28:42.570] applications that these outputs can be used for, like EDR and MDR. So one additional application, [28:42.570 --> 28:48.010] as an example, is since we have outputs that describe the content of the malware, [28:48.010 --> 28:54.750] we can actually group malware by the predicted tags. And we might have an application where [28:55.570 --> 29:02.330] we might want to deploy that sort of for internal use or say as a service, but yet still be able to [29:02.330 --> 29:07.870] deploy our model. Well, we can do that all under this one training regime just by pruning our [29:07.870 --> 29:16.950] losses and pruning our outputs respectively. So before I take some Q&A here, I just wanted to [29:16.950 --> 29:22.210] also mention some related research and some directions for future work if you found this [29:22.210 --> 29:29.890] topic interesting. There's been a lot of research by our group and also by other groups that is [29:29.890 --> 29:35.950] related. It's interesting to look into and it can perhaps be leveraged in some very similar ways. [29:36.690 --> 29:43.430] So first, I'd also mention that Aloha is a USENIX paper now. So I'll be presenting this at USENIX [29:43.430 --> 29:50.390] next week. But interestingly, oh yeah, and it's available on archive as well. So feel free to [29:50.390 --> 29:58.090] check it out if you want more information. Interestingly, a gentleman by the name of Jason [29:58.090 --> 30:06.150] Trost actually did a nice blog post where he used Aloha architectures for a much different [30:06.150 --> 30:16.470] problem using Endgaming's domain generation algorithm detection code. He tailored that to [30:16.470 --> 30:23.670] use basically these Aloha losses. And anyway, he did a nice blog post about his results. [30:24.310 --> 30:31.970] There's also a paper out of Microsoft Research called MTNet. And this paper actually is similar [30:31.970 --> 30:36.930] to ours in a variety of ways. It uses an impressively large data set of dynamic features [30:36.930 --> 30:44.410] and it largely substantiates a lot of our findings. However, they use only one type of [30:44.410 --> 30:50.310] loss function. They use multiple loss functions, but only a categorical cross-entropy softmax. [30:50.910 --> 30:58.630] They do something sort of similar to a tagging approach that we do describing the content of [30:58.630 --> 31:05.290] each sample, except they use a Microsoft malware family names. And so they actually do employ some [31:05.290 --> 31:12.030] sort of a mutual exclusivity assumption here. But anyway, it's another great paper and it's [31:12.030 --> 31:17.050] very cool to see that they're also able to sort of substantiate our findings with a much [31:17.050 --> 31:24.390] different data modality. It's also PE files, but it is dynamic features. I'll also mention the [31:25.070 --> 31:31.010] paper on malware attribute tagging. So smart semantic malware attribute relevance tagging [31:31.010 --> 31:36.310] is a paper that we also put out there, which will pretty much tell you everything about everything [31:36.310 --> 31:43.550] that you want to know about malware tagging. It is the approach, the tagging approach is the same [31:43.550 --> 31:51.410] as we employ in this work. So please see that for details on the tagging problem and the tag [31:51.410 --> 31:59.650] prediction problem. There are several other models that we employ in the smart paper as well. So if [31:59.650 --> 32:07.770] you're interested in that, check it out. I will also mention another paper that moon a mixed [32:07.770 --> 32:13.210] objective optimization network. The reason why I bring this up is while this is applied to facial [32:13.210 --> 32:18.430] attributes, it has nothing to do with malware. It is actually the approach that I use in my [32:18.430 --> 32:23.490] face recognition demo, which again, please, please stop by during the wind down session. [32:23.490 --> 32:28.310] If you want to see basically how this type of optimization can be employed very powerfully in [32:28.310 --> 32:35.450] action, the approach is fundamentally the same as Aloha, but with a much, much different data [32:35.450 --> 32:43.750] modality. One final work that I'll mention that I promise I'm done is a work paper that we did [32:43.750 --> 32:53.630] called learning from context. It uses multi-view learning or multi-input learning in contrast to [32:53.630 --> 33:00.190] our approach using multiple labels and multiple loss functions. But using this approach, we are [33:00.190 --> 33:06.630] able to include extra information in the representation. Just in a different way, [33:06.630 --> 33:12.610] we're sort of turning the Aloha approach on its head. And this type of approach could be [33:12.610 --> 33:19.210] trivially combined with Aloha, I would mention. So that's maybe a nice direction for future work. [33:19.210 --> 33:26.030] Having multiple PE file features and also other auxiliary information, like we took [33:26.890 --> 33:34.170] embeddings of the PE file on disk and concatenated those together. But also [33:34.170 --> 33:41.390] potentially multiple labels, you know, just adding multiple other sources of information [33:41.390 --> 33:48.330] into the representation. It seems to work well. So it's definitely an avenue for future research. [33:48.330 --> 33:54.710] I'll finally close with an obligatory Sophos pitch. So I'm with the Sophos data science team. [33:54.770 --> 33:59.450] We do really cutting edge research and we're always interested in transparency and collaboration [34:00.170 --> 34:08.370] and in hopefully, I've communicated, publication. And while we're not the only one, we are one of [34:08.370 --> 34:14.610] the only research teams in the MLSec industry that is getting papers accepted at some of the [34:14.610 --> 34:20.170] top tier academic venues like USENIX. Our group consists of about 10 to 15 people. We're split [34:20.170 --> 34:27.290] about half between research, about half in development. And so check out our group if [34:27.290 --> 34:33.330] you're interested. You can talk with me or you can talk with Rich Horang, who's also here, [34:33.330 --> 34:38.510] who's one of our directors of data science. Here's a picture of our team. Lots of great [34:38.510 --> 34:45.270] colorful characters. There's some more Sophos presentations going on this week. As I said, I [34:45.270 --> 34:52.910] have a facial recognition booth. Rich has a talk on hacking facial recognition on the 10th. [34:53.110 --> 34:59.110] And then he also presented a talk on security data science at B-Sides. So if any of you saw that, [34:59.110 --> 35:05.830] there's just a name to correlate. And then I'd like to thank Sophos for funding and for promoting [35:05.830 --> 35:11.150] this research. And I'd particularly like to thank my collaborators and my co-authors here [35:11.710 --> 35:16.950] for all the work that they did. This was definitely a team effort. So with that, I'll [35:16.950 --> 35:53.200] open it up for questions. Yes. Thank you. Yeah, so that's a great question. The question is, so [35:53.860 --> 35:58.540] this talk was about incorporating these auxiliary losses on neural networks, but have we tried [35:58.540 --> 36:05.620] other classifiers like ensemble models, random forest boosting, et cetera? And while I would [36:05.620 --> 36:13.720] say that we don't have concrete results here on those, there's nothing that would preclude a [36:13.720 --> 36:20.520] person from doing so. The representation that's learned by an ensemble model is a little bit [36:20.520 --> 36:29.400] different. So I guess that in say a random forest or in a boosted model, I guess the question is [36:29.400 --> 36:35.960] how you would do shared splits in a way that works well across data. So I'd say that the technique [36:35.960 --> 36:43.100] could be very well applied. I don't know how well it would work. I can say that I've looked at [36:43.100 --> 36:50.420] some of the libraries that are out there for this, like light GBM, like XGBoost, et cetera, [36:50.420 --> 36:55.000] and they generally assume that you're going to be using only one loss function, but there's [36:55.000 --> 36:58.840] nothing that would preclude somebody from implementing it. I just don't know how well it [36:58.840 --> 37:14.060] would work. Thank you. Let's see more questions. Yes, please. So what are some of the next steps [37:14.060 --> 37:18.940] in the process? And some of the features that we want to develop? So features in terms of [37:18.940 --> 37:25.120] representation of the malware fed to the classifier or features in terms of just like [37:25.120 --> 37:34.760] extra things to tack onto the classifier? Sure, sure. Yeah. So extra additions to this overall [37:34.760 --> 37:40.380] technique. So I would certainly say that the approach that I'm most interested in is actually [37:40.380 --> 37:50.160] having a unified multi-input and multi-output model that's really able to learn multiple labels [37:50.160 --> 37:57.600] or learn from multiple labels, but also have multiple just heterogeneous inputs. Like [37:57.600 --> 38:06.160] you could have, as an example, the character embeddings of the file path. You could also [38:06.160 --> 38:14.720] apply this, I would say, to a lot of different malware types. I've been talking about P files [38:14.720 --> 38:20.440] this entire time, but there are a lot of different types of malware that one could apply this to. [38:20.900 --> 38:28.600] So I'd say that those are two different avenues that I'd certainly like to go down. And then I'd [38:28.600 --> 38:37.100] also say that there are other sources of data that are on some of these threat feeds. And so [38:37.100 --> 38:42.220] I think that looking into those would be very interesting as well. Yes, please. [38:57.330 --> 39:03.790] Yes. Well, so yeah, I mean, I'd say that not only does it not do worse, I mean, it does, [39:03.790 --> 39:08.790] on an aggregate, it does better. And I would say that, yeah, if you have multiple inputs, [39:08.790 --> 39:13.890] yes, we do see, in fact, and we have seen that, I'd actually point you to that learning from [39:13.890 --> 39:20.310] context paper, that, yeah, we do get a nice performance bump. But actually, yes, having [39:21.090 --> 39:29.490] missing data is a little bit more of a problem with that. So for our loss functions here, [39:29.490 --> 39:36.870] if we have a missing label, we can just zero that entry out in the loss. But if we have a missing, [39:36.870 --> 39:42.330] and just back propagate that, but if we have a missing input, well, that becomes a lot more, [39:42.930 --> 39:46.730] a lot more hairy. And that's an area of research that I'd really like to see addressed [39:47.670 --> 39:55.210] a little bit better. Let's see, I think we have time for one more. One more question. Yes, please. [40:07.920 --> 40:11.400] Yeah, yeah, that's a really good question. So the question is, which [40:12.120 --> 40:18.600] inputs are most prominent in terms of the respective output response? And so this goes [40:18.600 --> 40:25.860] back to a lot of the model interpretability literature. So I'd say the LIME SHAP values, [40:25.860 --> 40:32.960] layer-wise relevance propagation, a lot of the literature in that area would be very good to [40:32.960 --> 40:39.760] look at, or techniques like activation maximization. Yeah, those are a few techniques, [40:39.760 --> 40:44.180] it's definitely an area where I think that not only I am, I think that not to speak for the [40:44.180 --> 40:48.260] entire industry, but I think that they're interested in that. So anyway, I can chat [40:48.260 --> 40:53.360] more after on that. But yeah, thank you. Thank you for the question. Good question.