1 00:00:00,000 --> 00:00:00,920 Awesome. 2 00:00:00,920 --> 00:00:06,980 And for our final talks of the day, we have Hiram Anderson and Ryan Kovar on competitions in InfoSec and ML. 3 00:00:07,300 --> 00:00:16,180 And really quick, we also want to remind you afterwards, we have AI Unwind, where you'll be able to sort of play around with some of the competitions and data that they'll be presenting today. 4 00:00:16,180 --> 00:00:19,180 So without further ado, can we get a big round of applause for them? 5 00:00:23,110 --> 00:00:24,750 Thanks, there are two of us. 6 00:00:24,750 --> 00:00:28,810 I'm pleased to be speaking with Ryan Kovar, announcing two different competitions. 7 00:00:28,810 --> 00:00:33,010 So I'll be as fast as possible to leave as much time for Ryan as necessary. 8 00:00:33,670 --> 00:00:36,330 And I have a plane to catch also. 9 00:00:36,330 --> 00:00:37,290 So my name is Hiram Anderson. 10 00:00:37,290 --> 00:00:39,010 I'm the chief scientist at Endgame. 11 00:00:39,350 --> 00:00:42,950 And I also want to recognize Zoltan Balazs. 12 00:00:42,950 --> 00:00:56,490 He is a co-author of this work and has actually done most of the legwork to cross the finish line, to provide to you, very relevant to recent news, a competition for evading next-gen antivirus. 13 00:00:56,690 --> 00:01:00,910 So we'd like to right now, a 10-week competition. 14 00:01:01,050 --> 00:01:12,050 The skinny is this, you will download malware and modify raw bytes and have them evade up to three machine learning models. 15 00:01:12,370 --> 00:01:16,350 When you submit the malware, they must remain functional. 16 00:01:16,370 --> 00:01:23,280 And if you do, you will win the best GPU that money can buy for a PC. 17 00:01:23,280 --> 00:01:24,160 Okay? 18 00:01:25,000 --> 00:01:26,320 So that's the skinny. 19 00:01:26,320 --> 00:01:29,760 I want to just break down in detail what this competition is about. 20 00:01:29,760 --> 00:01:34,320 And we totally encourage anybody and everybody to join this competition. 21 00:01:34,380 --> 00:01:36,280 I think there are really good reasons to do so. 22 00:01:36,420 --> 00:01:38,680 So first, machine learning static evasion. 23 00:01:38,680 --> 00:01:40,660 So let me get into a bit more detail. 24 00:01:40,660 --> 00:01:45,940 The competition is about static detection of malware using machine learning. 25 00:01:45,940 --> 00:01:52,380 And all of the malware samples that you'd be provided are scored as malicious by the machine learning models. 26 00:01:52,380 --> 00:02:04,220 So you'd need to come up with techniques to modify the binary in a way that does not change its behavior or break the PE file format for a Windows executable file. 27 00:02:04,500 --> 00:02:14,960 For example, you might, as shown on the slide, you might unpack a packed binary, rename a section, add a new section, and attempt to disguise the malware as benign. 28 00:02:16,060 --> 00:02:19,040 So this is an adversarial machine learning competition. 29 00:02:19,040 --> 00:02:22,540 And there have been many of these in the image domain. 30 00:02:22,620 --> 00:02:27,960 But I'll just note that likely you'd want to leave your LP norm constraints at home. 31 00:02:27,960 --> 00:02:32,160 This is not the same as a machine, a computer vision competition. 32 00:02:32,820 --> 00:02:35,480 Some of those techniques could be useful to you. 33 00:02:35,480 --> 00:02:38,940 But to be pedantic, images degrade gracefully. 34 00:02:38,940 --> 00:02:43,540 It's very easy to add noise to an image and it still remains an image. 35 00:02:43,540 --> 00:02:49,460 But if you add, if you change bytes in a file, you'll very likely break the file or at least break the functionality. 36 00:02:49,460 --> 00:02:55,740 So the threat model here is different and the constraints for what you're preserving is very different. 37 00:02:55,860 --> 00:03:04,960 So for this contest, you'd be welcome to still follow gradients in the models, but the chances are that if you naively perturb byte values, that you'll be unsuccessful. 38 00:03:05,300 --> 00:03:07,160 So the rules, briefly. 39 00:03:07,480 --> 00:03:14,880 Step one, you will need Google creds to go register at evade malware ml.io. 40 00:03:15,220 --> 00:03:20,960 Once you have registered, you will also agree to terms of service that are simple. 41 00:03:20,960 --> 00:03:24,060 It essentially says, this is real malware. 42 00:03:24,060 --> 00:03:25,320 Please be careful. 43 00:03:25,320 --> 00:03:30,220 And for any monster malware that you create, that is your creation and you're responsible for it. 44 00:03:30,940 --> 00:03:34,920 You will download 50 malware samples. 45 00:03:34,920 --> 00:03:45,340 The malware samples represent popular families over the last 12 to 18 months, including those that have targeted financial industries and things like that. 46 00:03:45,820 --> 00:03:55,300 When you download the samples, you may also download a full description of three completely open source machine learning models. 47 00:03:55,300 --> 00:03:58,640 And I'll describe those a bit in more detail. 48 00:03:59,340 --> 00:04:02,860 The next step would be for you to do your thing. 49 00:04:02,860 --> 00:04:10,060 And the best intent of this, it'll work best if you sort of do this on your own local resources. 50 00:04:10,440 --> 00:04:13,660 You can submit anytime, but there's a time delay when you submit. 51 00:04:13,660 --> 00:04:16,240 So it's best to check and do things locally. 52 00:04:18,540 --> 00:04:27,200 Let's see, the next step is, after you've modified your samples, you want to make sure that they still work. 53 00:04:27,260 --> 00:04:30,580 You will get no points for samples that do not work. 54 00:04:31,300 --> 00:04:41,220 Lastly, when they have, when you verify that they work, you'll put them back in a zip file and upload them to the website that's at evademalwareml.io. 55 00:04:42,020 --> 00:04:50,660 You earn points for evading, for every sample, there are three models, and you get one point for evading each model. 56 00:04:50,660 --> 00:04:56,380 So 50 samples, three models, the maximum score would be 150 points. 57 00:04:56,380 --> 00:05:00,180 So you could win with 150 points. 58 00:05:00,580 --> 00:05:08,380 So long as you submit your submission before somebody else who might get 150 points, right? 59 00:05:08,820 --> 00:05:15,440 And just to note, this is, you know, we would have loved to host this on Kaggle, except they don't really do sandboxes or malware. 60 00:05:15,740 --> 00:05:25,980 So instead, following Kaggle, if you would, to qualify for the GPU, we would want you to publish your solution to share with the community. 61 00:05:25,980 --> 00:05:27,560 So those are the basic rules. 62 00:05:27,560 --> 00:05:33,540 I want to just go through a little tip, a few tips and tricks to help get you started for those who would be interested in participating. 63 00:05:33,960 --> 00:05:41,480 So the first is that when you download these samples, they will have names like 001, 002, and 003, right? 64 00:05:41,700 --> 00:05:48,880 And when you muck with them and upload them, they should also retain the names 001, 002, 003. 65 00:05:48,880 --> 00:05:53,320 Otherwise, we have no idea what sample belonged to what, because you've changed the bytes, okay? 66 00:05:53,320 --> 00:05:57,280 But you download zip file, and you should upload also a zip file. 67 00:05:59,420 --> 00:06:03,620 When you upload the zip file, there's a few gatekeepers that this will go through. 68 00:06:03,620 --> 00:06:07,140 So first, there's sanity checks, like does it have the right final names? 69 00:06:07,360 --> 00:06:08,780 Is it a PE file? 70 00:06:08,780 --> 00:06:12,120 Or did you totally, you know, did you mess up the MZ header somehow? 71 00:06:12,820 --> 00:06:14,880 Does it correspond to known hashes? 72 00:06:14,880 --> 00:06:21,560 If that passes, it will pass on to be analyzed by one of three machine learning models, which I'll describe in a moment. 73 00:06:21,560 --> 00:06:25,600 But they are malconv, non-negative malconv, and ember. 74 00:06:25,600 --> 00:06:27,860 Each three of these are all open source models. 75 00:06:27,860 --> 00:06:29,480 There's papers about all of them. 76 00:06:30,620 --> 00:06:44,120 If the sample evades any one of those three models, then it will go into a sandbox phase, where we will run it on our server and verify that the sample still exhibits its malicious behavior. 77 00:06:44,680 --> 00:06:56,960 So as an example, if you look at the bottom of this graphic, when you upload a file, let's see, 001, it looks like it evaded two machine learning models but did not run a sandbox, zero points, right? 78 00:06:57,020 --> 00:06:57,980 It is not functional. 79 00:06:57,980 --> 00:06:59,000 Zero points. 80 00:06:59,120 --> 00:07:06,440 Sample 002 evaded one machine learning model and did its thing in the sandbox, one point, et cetera. 81 00:07:07,580 --> 00:07:15,160 So the models, just briefly, malconv, the first model is a simple convolutional neural network that operates on raw bytes. 82 00:07:15,380 --> 00:07:17,620 So bytes in, score out. 83 00:07:17,820 --> 00:07:24,220 And it consists of simply an attention network and a single layer convolutional network followed by a multi-layer perceptron. 84 00:07:24,220 --> 00:07:27,600 So this is a fully differential model, much like you'd see in computer vision. 85 00:07:27,900 --> 00:07:41,880 And when you go to this GitHub site that's listed there and also listed all over on the website, you can download the inference code, the weights, the model structure, everything you need to construct any kind of white box attack you might need to do. 86 00:07:42,800 --> 00:07:45,200 And also, there's a paper listed at the bottom. 87 00:07:45,200 --> 00:07:47,980 You can read all about this model and everything about it, okay? 88 00:07:48,220 --> 00:07:53,780 The second, all this code, by the way, for these differentiable models are in PyTorch. 89 00:07:54,160 --> 00:08:03,780 The second model is non-negative malconv and it is identical to malconv except for one thing, and that is it has been trained with a non-negative weight constraint. 90 00:08:03,940 --> 00:08:09,820 And essentially, the purpose behind that is that it wants to pay attention only to indicators of maliciousness. 91 00:08:10,100 --> 00:08:17,700 And ideally, it'd be harder to fool by adding sort of benign strings to your binary, right? 92 00:08:17,700 --> 00:08:20,980 The third model is Ember 2.0. 93 00:08:20,980 --> 00:08:23,140 Yesterday, Ember is so hot. 94 00:08:23,140 --> 00:08:29,560 Ember 2.0 was released yesterday, and it is an improvement upon Ember 1.0 from last year. 95 00:08:29,560 --> 00:08:33,060 But the difference here, this is still a totally open source. 96 00:08:33,440 --> 00:08:34,400 You'll have the whole model. 97 00:08:34,400 --> 00:08:39,520 The difference here is that a couple of things, Ember 2.0 is a very competitive model. 98 00:08:40,280 --> 00:08:43,180 Obviously, it's a light GB model and not differentiable. 99 00:08:43,180 --> 00:08:48,640 So, you have to come up with maybe a different set of attacks than following gradients. 100 00:08:50,300 --> 00:09:00,340 Obviously, one more thing is that all three models were trained on the same data on the Ember 2018 sample. 101 00:09:00,340 --> 00:09:02,740 So, you'll have a list of all the training hashes, too. 102 00:09:02,780 --> 00:09:05,720 So, you essentially know everything about how these models were created. 103 00:09:06,860 --> 00:09:07,340 All right. 104 00:09:07,340 --> 00:09:08,220 A few tips. 105 00:09:09,120 --> 00:09:13,100 We do hope that you form teams and collaborate. 106 00:09:13,100 --> 00:09:14,380 But there's just one GPU. 107 00:09:14,380 --> 00:09:17,600 So, you'd have to decide how to divvy up the course if you're the winning team. 108 00:09:18,640 --> 00:09:25,560 Please do invest 30 minutes in checking out the code, the model, the inference code and getting it to run locally. 109 00:09:25,720 --> 00:09:29,960 It will save you a ton of time to not rely on submitting things to the service. 110 00:09:30,460 --> 00:09:35,660 Do invest 30 minutes in setting up a local Windows 10 64-bit VM. 111 00:09:35,660 --> 00:09:40,360 That is the environment in which we'll be checking the functionality of your submitted samples. 112 00:09:40,840 --> 00:09:44,040 As always, be safe, be responsible. 113 00:09:44,280 --> 00:09:45,760 Don't connect your VM to the internet. 114 00:09:45,760 --> 00:09:47,100 Things like that, okay? 115 00:09:48,560 --> 00:09:56,400 If you do, when you do upload, it could take up to 30 minutes for us to validate the full suite of samples in your zip file. 116 00:09:56,400 --> 00:10:00,640 So, it's to your advantage to do this offline on your own and then submit. 117 00:10:01,660 --> 00:10:01,960 Okay. 118 00:10:01,960 --> 00:10:03,340 So, more tips. 119 00:10:03,340 --> 00:10:06,740 Some things you might consider as you're doing this competition. 120 00:10:06,940 --> 00:10:14,080 There's a number of things that you can do that will not, that should not, I should say, that generally should not break the PE file format. 121 00:10:14,320 --> 00:10:19,020 You can append data to the file like was shown with the universal silence bypass. 122 00:10:19,520 --> 00:10:21,760 You can add or remove the signature. 123 00:10:21,760 --> 00:10:26,000 You can fix the check sum which is often broken in malicious binaries. 124 00:10:26,220 --> 00:10:28,800 You can remove the version info. 125 00:10:28,800 --> 00:10:31,860 You can change code or data with no ops. 126 00:10:31,860 --> 00:10:35,960 There are lots of things that you can do and that's up to you to be creative to do that. 127 00:10:36,120 --> 00:10:41,440 Things that aren't allowed, that won't work for you, you cannot make a dropper and drop the original sample. 128 00:10:41,440 --> 00:10:43,400 That will not be picked up in our sandbox. 129 00:10:43,700 --> 00:10:46,040 You cannot make a self-extracting archive. 130 00:10:46,040 --> 00:10:48,040 That will not be picked up in our sandbox. 131 00:10:49,040 --> 00:10:59,060 And I will advise a leaf is the tool that we use in Ember for instrumenting and modifying files. 132 00:10:59,060 --> 00:11:07,560 It's a fantastic thing with Python bindings and I highly recommend you can do most of these tips that I've listed here using leaf alone. 133 00:11:08,280 --> 00:11:11,760 The last tip I'll say is there's a Slack channel. 134 00:11:11,760 --> 00:11:19,340 So, if you're having trouble or if you want to share ideas, join on the Slack channel which is also listed on the website. 135 00:11:19,800 --> 00:11:26,440 And also, go ahead and we encourage, hope that you'll learn from the wisdom of others. 136 00:11:26,800 --> 00:11:28,520 Stand on the shoulder of giants. 137 00:11:28,520 --> 00:11:34,960 Just Monday concluded a KDD Adversarial ML Workshop about malware. 138 00:11:35,020 --> 00:11:38,220 But theirs was only import features only. 139 00:11:38,220 --> 00:11:39,800 So, it was not live malware. 140 00:11:39,800 --> 00:11:41,060 There was no functionality requirement. 141 00:11:41,060 --> 00:11:43,100 But there are things you might learn from those results. 142 00:11:43,640 --> 00:11:47,400 Also concluding this week was the hack in the box cyber week challenge. 143 00:11:47,400 --> 00:11:56,740 There's a slightly different where they created reinforcement learning agents to write, to append to the malware source code and submit those samples. 144 00:11:56,740 --> 00:11:59,280 So, again, that's a slightly different threat model. 145 00:11:59,280 --> 00:12:02,400 But there are things that you might learn that could help you there. 146 00:12:03,320 --> 00:12:04,340 And that is it. 147 00:12:04,340 --> 00:12:07,380 So, I'm concluding in 12 minutes and 15 seconds. 148 00:12:07,380 --> 00:12:08,260 Rank over. 149 00:12:08,560 --> 00:12:10,940 The competition opens exactly right now. 150 00:12:10,940 --> 00:12:14,880 And it closes in 10 weeks from now on Friday, October 18th. 151 00:12:14,880 --> 00:12:24,340 And I'll just remind you, if you'd like to win the fastest GPU that money can buy for your desktop, you must be able to publish your solution. 152 00:12:24,600 --> 00:12:27,680 So, we'd encourage if you have... I'll be here. 153 00:12:27,680 --> 00:12:28,700 Zoltan will be here. 154 00:12:28,700 --> 00:12:32,280 If you'd like to know more about the competition or details, please hit us up. 155 00:12:32,340 --> 00:12:36,060 Hope you can get started tonight at the AI Unwind right after this talk. 156 00:12:36,760 --> 00:12:37,100 All right. 157 00:12:37,100 --> 00:12:37,720 Thank you.