[00:00.000 --> 00:05.120] Awesome. And for our final talks of the day, we have Hiram Anderson and Ryan Kovar on competitions [00:05.120 --> 00:10.900] in InfoSec and ML. And really quick, we also want to remind you afterwards, we have AI Unwind, [00:10.900 --> 00:14.720] where you'll be able to sort of play around with some of the competitions and data that [00:14.720 --> 00:19.180] they'll be presenting today. So without further ado, can we get a big round of applause for them? [00:23.110 --> 00:26.710] Thanks, there are two of us. I'm pleased to be speaking with Ryan Kovar, [00:26.710 --> 00:31.870] announcing two different competitions. So I'll be as fast as possible to leave as much time [00:31.870 --> 00:37.370] for Ryan as necessary. And I have a plane to catch also. So my name is Hiram Anderson. I'm [00:37.370 --> 00:44.550] the chief scientist at Endgame. And I also want to recognize Zoltan Balazs. He is a co-author [00:44.550 --> 00:49.690] of this work and has actually done most of the legwork to cross the finish line, to provide to [00:49.690 --> 00:57.290] you, very relevant to recent news, a competition for evading next-gen antivirus. So we'd like to [00:57.290 --> 01:05.750] right now, a 10-week competition. The skinny is this, you will download malware and modify raw [01:05.750 --> 01:14.110] bytes and have them evade up to three machine learning models. When you submit the malware, [01:14.110 --> 01:23.280] they must remain functional. And if you do, you will win the best GPU that money can buy for a PC. [01:23.280 --> 01:29.760] Okay? So that's the skinny. I want to just break down in detail what this competition is about. [01:29.760 --> 01:34.840] And we totally encourage anybody and everybody to join this competition. I think there are really [01:34.840 --> 01:39.800] good reasons to do so. So first, machine learning static evasion. So let me get into a bit more [01:39.800 --> 01:46.560] detail. The competition is about static detection of malware using machine learning. And all of the [01:46.560 --> 01:52.380] malware samples that you'd be provided are scored as malicious by the machine learning models. [01:52.380 --> 01:58.420] So you'd need to come up with techniques to modify the binary in a way that does not [01:58.420 --> 02:04.220] change its behavior or break the PE file format for a Windows executable file. [02:04.500 --> 02:09.540] For example, you might, as shown on the slide, you might unpack a packed binary, [02:09.540 --> 02:14.960] rename a section, add a new section, and attempt to disguise the malware as benign. [02:16.060 --> 02:20.800] So this is an adversarial machine learning competition. And there have been many of these [02:20.800 --> 02:26.660] in the image domain. But I'll just note that likely you'd want to leave your LP norm [02:26.660 --> 02:32.160] constraints at home. This is not the same as a machine, a computer vision competition. [02:32.820 --> 02:38.940] Some of those techniques could be useful to you. But to be pedantic, images degrade gracefully. [02:38.940 --> 02:44.800] It's very easy to add noise to an image and it still remains an image. But if you add, [02:44.800 --> 02:49.460] if you change bytes in a file, you'll very likely break the file or at least break the functionality. [02:49.460 --> 02:54.100] So the threat model here is different and the constraints for what you're preserving [02:54.100 --> 03:00.060] is very different. So for this contest, you'd be welcome to still follow gradients in the models, [03:00.060 --> 03:04.960] but the chances are that if you naively perturb byte values, that you'll be unsuccessful. [03:05.300 --> 03:13.180] So the rules, briefly. Step one, you will need Google creds to go register at evade malware [03:13.180 --> 03:20.960] ml.io. Once you have registered, you will also agree to terms of service that are simple. [03:20.960 --> 03:26.700] It essentially says, this is real malware. Please be careful. And for any monster malware [03:26.700 --> 03:33.520] that you create, that is your creation and you're responsible for it. You will download 50 [03:33.520 --> 03:40.660] malware samples. The malware samples represent popular families over the last 12 to 18 months, [03:40.660 --> 03:45.340] including those that have targeted financial industries and things like that. [03:45.820 --> 03:51.740] When you download the samples, you may also download a full description of three [03:52.340 --> 03:58.640] completely open source machine learning models. And I'll describe those a bit in more detail. [03:59.340 --> 04:04.820] The next step would be for you to do your thing. And the best intent of this, [04:04.820 --> 04:11.540] it'll work best if you sort of do this on your own local resources. You can submit anytime, [04:11.540 --> 04:16.240] but there's a time delay when you submit. So it's best to check and do things locally. [04:18.540 --> 04:24.580] Let's see, the next step is, after you've modified your samples, you want to make sure [04:24.580 --> 04:30.580] that they still work. You will get no points for samples that do not work. [04:31.300 --> 04:36.820] Lastly, when they have, when you verify that they work, you'll put them back in a zip file [04:36.820 --> 04:45.520] and upload them to the website that's at evademalwareml.io. You earn points for evading, [04:45.520 --> 04:50.840] for every sample, there are three models, and you get one point for evading each model. So [04:50.840 --> 05:00.180] 50 samples, three models, the maximum score would be 150 points. So you could win with 150 points. [05:00.580 --> 05:08.380] So long as you submit your submission before somebody else who might get 150 points, right? [05:08.820 --> 05:12.820] And just to note, this is, you know, we would have loved to host this on Kaggle, [05:12.820 --> 05:19.880] except they don't really do sandboxes or malware. So instead, following Kaggle, if you would, [05:19.880 --> 05:25.980] to qualify for the GPU, we would want you to publish your solution to share with the community. [05:25.980 --> 05:30.880] So those are the basic rules. I want to just go through a little tip, a few tips and tricks to [05:30.880 --> 05:34.920] help get you started for those who would be interested in participating. So the first is [05:34.920 --> 05:42.000] that when you download these samples, they will have names like 001, 002, and 003, right? And [05:42.000 --> 05:48.880] when you muck with them and upload them, they should also retain the names 001, 002, 003. [05:48.880 --> 05:53.320] Otherwise, we have no idea what sample belonged to what, because you've changed the bytes, okay? [05:53.320 --> 05:57.280] But you download zip file, and you should upload also a zip file. [05:59.420 --> 06:04.220] When you upload the zip file, there's a few gatekeepers that this will go through. So first, [06:04.220 --> 06:09.720] there's sanity checks, like does it have the right final names? Is it a PE file? Or did you totally, [06:09.720 --> 06:15.540] you know, did you mess up the MZ header somehow? Does it correspond to known hashes? If that [06:15.540 --> 06:20.760] passes, it will pass on to be analyzed by one of three machine learning models, which I'll describe [06:20.760 --> 06:26.860] in a moment. But they are malconv, non-negative malconv, and ember. Each three of these are all [06:26.860 --> 06:33.760] open source models. There's papers about all of them. If the sample evades any one of those three [06:33.760 --> 06:38.960] models, then it will go into a sandbox phase, where we will run it on our server and verify [06:38.960 --> 06:46.700] that the sample still exhibits its malicious behavior. So as an example, if you look at the [06:46.700 --> 06:52.560] bottom of this graphic, when you upload a file, let's see, 001, it looks like it evaded two [06:52.560 --> 06:58.160] machine learning models but did not run a sandbox, zero points, right? It is not functional. Zero [06:58.160 --> 07:05.660] points. Sample 002 evaded one machine learning model and did its thing in the sandbox, one point, [07:05.660 --> 07:13.120] et cetera. So the models, just briefly, malconv, the first model is a simple convolutional neural [07:13.120 --> 07:19.420] network that operates on raw bytes. So bytes in, score out. And it consists of simply an [07:19.420 --> 07:24.220] attention network and a single layer convolutional network followed by a multi-layer perceptron. [07:24.220 --> 07:27.600] So this is a fully differential model, much like you'd see in computer vision. [07:27.900 --> 07:33.260] And when you go to this GitHub site that's listed there and also listed all over on the website, [07:33.260 --> 07:38.640] you can download the inference code, the weights, the model structure, everything you need to [07:38.640 --> 07:44.260] construct any kind of white box attack you might need to do. And also, there's a paper [07:44.260 --> 07:47.980] listed at the bottom. You can read all about this model and everything about it, okay? [07:48.220 --> 07:53.780] The second, all this code, by the way, for these differentiable models are in PyTorch. [07:54.160 --> 08:00.040] The second model is non-negative malconv and it is identical to malconv except for one thing, [08:00.040 --> 08:04.780] and that is it has been trained with a non-negative weight constraint. And essentially, [08:04.780 --> 08:09.820] the purpose behind that is that it wants to pay attention only to indicators of maliciousness. [08:10.100 --> 08:17.700] And ideally, it'd be harder to fool by adding sort of benign strings to your binary, right? [08:17.700 --> 08:25.460] The third model is Ember 2.0. Yesterday, Ember is so hot. Ember 2.0 was released yesterday, [08:25.460 --> 08:30.740] and it is an improvement upon Ember 1.0 from last year. But the difference here, [08:30.740 --> 08:35.480] this is still a totally open source. You'll have the whole model. The difference here is that [08:36.200 --> 08:41.400] a couple of things, Ember 2.0 is a very competitive model. Obviously, it's a light [08:41.400 --> 08:45.880] GB model and not differentiable. So, you have to come up with maybe a different set of attacks [08:46.820 --> 08:56.380] than following gradients. Obviously, one more thing is that all three models were trained on [08:56.380 --> 09:02.280] the same data on the Ember 2018 sample. So, you'll have a list of all the training hashes, [09:02.280 --> 09:05.720] too. So, you essentially know everything about how these models were created. [09:06.860 --> 09:14.380] All right. A few tips. We do hope that you form teams and collaborate. But there's just one GPU. [09:14.380 --> 09:19.240] So, you'd have to decide how to divvy up the course if you're the winning team. Please do [09:19.240 --> 09:24.680] invest 30 minutes in checking out the code, the model, the inference code and getting it to run [09:24.680 --> 09:29.960] locally. It will save you a ton of time to not rely on submitting things to the service. [09:30.460 --> 09:37.380] Do invest 30 minutes in setting up a local Windows 10 64-bit VM. That is the environment in which [09:37.380 --> 09:42.960] we'll be checking the functionality of your submitted samples. As always, be safe, be [09:42.960 --> 09:50.160] responsible. Don't connect your VM to the internet. Things like that, okay? If you do, when you do [09:50.160 --> 09:55.860] upload, it could take up to 30 minutes for us to validate the full suite of samples in your zip [09:55.860 --> 10:02.280] file. So, it's to your advantage to do this offline on your own and then submit. Okay. So, [10:02.280 --> 10:07.740] more tips. Some things you might consider as you're doing this competition. There's a number [10:07.740 --> 10:12.340] of things that you can do that will not, that should not, I should say, that generally should [10:12.340 --> 10:17.760] not break the PE file format. You can append data to the file like was shown with the universal [10:17.760 --> 10:23.760] silence bypass. You can add or remove the signature. You can fix the check sum which [10:23.760 --> 10:30.200] is often broken in malicious binaries. You can remove the version info. You can change code or [10:30.200 --> 10:34.980] data with no ops. There are lots of things that you can do and that's up to you to be creative [10:34.980 --> 10:39.940] to do that. Things that aren't allowed, that won't work for you, you cannot make a dropper [10:39.940 --> 10:44.660] and drop the original sample. That will not be picked up in our sandbox. You cannot make a [10:44.660 --> 10:51.980] self-extracting archive. That will not be picked up in our sandbox. And I will advise a leaf is [10:51.980 --> 11:00.400] the tool that we use in Ember for instrumenting and modifying files. It's a fantastic thing with [11:00.400 --> 11:06.380] Python bindings and I highly recommend you can do most of these tips that I've listed here using [11:06.380 --> 11:13.540] leaf alone. The last tip I'll say is there's a Slack channel. So, if you're having trouble or [11:13.540 --> 11:19.340] if you want to share ideas, join on the Slack channel which is also listed on the website. [11:19.800 --> 11:26.440] And also, go ahead and we encourage, hope that you'll learn from the wisdom of others. [11:26.800 --> 11:33.300] Stand on the shoulder of giants. Just Monday concluded a KDD Adversarial ML Workshop [11:33.300 --> 11:39.800] about malware. But theirs was only import features only. So, it was not live malware. [11:39.800 --> 11:43.100] There was no functionality requirement. But there are things you might learn from those results. [11:43.640 --> 11:48.240] Also concluding this week was the hack in the box cyber week challenge. There's a slightly different [11:48.240 --> 11:55.240] where they created reinforcement learning agents to write, to append to the malware source code [11:55.240 --> 11:59.840] and submit those samples. So, again, that's a slightly different threat model. But there are [11:59.840 --> 12:06.100] things that you might learn that could help you there. And that is it. So, I'm concluding in 12 [12:06.100 --> 12:12.120] minutes and 15 seconds. Rank over. The competition opens exactly right now. And it closes in 10 [12:12.120 --> 12:19.060] weeks from now on Friday, October 18th. And I'll just remind you, if you'd like to win the fastest [12:19.060 --> 12:24.840] GPU that money can buy for your desktop, you must be able to publish your solution. So, we'd [12:24.840 --> 12:29.640] encourage if you have... I'll be here. Zoltan will be here. If you'd like to know more about the [12:29.640 --> 12:35.100] competition or details, please hit us up. Hope you can get started tonight at the AI Unwind right [12:35.100 --> 12:37.720] after this talk. All right. Thank you.