WEBVTT

00:00.000 --> 00:00.920
Awesome.

00:00.920 --> 00:06.980
And for our final talks of the day, we have Hiram Anderson and Ryan Kovar on competitions in InfoSec and ML.

00:07.300 --> 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.

00:16.180 --> 00:19.180
So without further ado, can we get a big round of applause for them?

00:23.110 --> 00:24.750
Thanks, there are two of us.

00:24.750 --> 00:28.810
I'm pleased to be speaking with Ryan Kovar, announcing two different competitions.

00:28.810 --> 00:33.010
So I'll be as fast as possible to leave as much time for Ryan as necessary.

00:33.670 --> 00:36.330
And I have a plane to catch also.

00:36.330 --> 00:37.290
So my name is Hiram Anderson.

00:37.290 --> 00:39.010
I'm the chief scientist at Endgame.

00:39.350 --> 00:42.950
And I also want to recognize Zoltan Balazs.

00:42.950 --> 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.

00:56.690 --> 01:00.910
So we'd like to right now, a 10-week competition.

01:01.050 --> 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.

01:12.370 --> 01:16.350
When you submit the malware, they must remain functional.

01:16.370 --> 01:23.280
And if you do, you will win the best GPU that money can buy for a PC.

01:23.280 --> 01:24.160
Okay?

01:25.000 --> 01:26.320
So that's the skinny.

01:26.320 --> 01:29.760
I want to just break down in detail what this competition is about.

01:29.760 --> 01:34.320
And we totally encourage anybody and everybody to join this competition.

01:34.380 --> 01:36.280
I think there are really good reasons to do so.

01:36.420 --> 01:38.680
So first, machine learning static evasion.

01:38.680 --> 01:40.660
So let me get into a bit more detail.

01:40.660 --> 01:45.940
The competition is about static detection of malware using machine learning.

01:45.940 --> 01:52.380
And all of the malware samples that you'd be provided are scored as malicious by the machine learning models.

01:52.380 --> 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.

02:04.500 --> 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.

02:16.060 --> 02:19.040
So this is an adversarial machine learning competition.

02:19.040 --> 02:22.540
And there have been many of these in the image domain.

02:22.620 --> 02:27.960
But I'll just note that likely you'd want to leave your LP norm constraints at home.

02:27.960 --> 02:32.160
This is not the same as a machine, a computer vision competition.

02:32.820 --> 02:35.480
Some of those techniques could be useful to you.

02:35.480 --> 02:38.940
But to be pedantic, images degrade gracefully.

02:38.940 --> 02:43.540
It's very easy to add noise to an image and it still remains an image.

02:43.540 --> 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.

02:49.460 --> 02:55.740
So the threat model here is different and the constraints for what you're preserving is very different.

02:55.860 --> 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.

03:05.300 --> 03:07.160
So the rules, briefly.

03:07.480 --> 03:14.880
Step one, you will need Google creds to go register at evade malware ml.io.

03:15.220 --> 03:20.960
Once you have registered, you will also agree to terms of service that are simple.

03:20.960 --> 03:24.060
It essentially says, this is real malware.

03:24.060 --> 03:25.320
Please be careful.

03:25.320 --> 03:30.220
And for any monster malware that you create, that is your creation and you're responsible for it.

03:30.940 --> 03:34.920
You will download 50 malware samples.

03:34.920 --> 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.

03:45.820 --> 03:55.300
When you download the samples, you may also download a full description of three completely open source machine learning models.

03:55.300 --> 03:58.640
And I'll describe those a bit in more detail.

03:59.340 --> 04:02.860
The next step would be for you to do your thing.

04:02.860 --> 04:10.060
And the best intent of this, it'll work best if you sort of do this on your own local resources.

04:10.440 --> 04:13.660
You can submit anytime, but there's a time delay when you submit.

04:13.660 --> 04:16.240
So it's best to check and do things locally.

04:18.540 --> 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.

04:27.260 --> 04:30.580
You will get no points for samples that do not work.

04:31.300 --> 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.

04:42.020 --> 04:50.660
You earn points for evading, for every sample, there are three models, and you get one point for evading each model.

04:50.660 --> 04:56.380
So 50 samples, three models, the maximum score would be 150 points.

04:56.380 --> 05:00.180
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: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.

05:15.740 --> 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.

05:25.980 --> 05:27.560
So those are the basic rules.

05:27.560 --> 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.

05:33.960 --> 05:41.480
So the first is that when you download these samples, they will have names like 001, 002, and 003, right?

05:41.700 --> 05:48.880
And 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:03.620
When you upload the zip file, there's a few gatekeepers that this will go through.

06:03.620 --> 06:07.140
So first, there's sanity checks, like does it have the right final names?

06:07.360 --> 06:08.780
Is it a PE file?

06:08.780 --> 06:12.120
Or did you totally, you know, did you mess up the MZ header somehow?

06:12.820 --> 06:14.880
Does it correspond to known hashes?

06:14.880 --> 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.

06:21.560 --> 06:25.600
But they are malconv, non-negative malconv, and ember.

06:25.600 --> 06:27.860
Each three of these are all open source models.

06:27.860 --> 06:29.480
There's papers about all of them.

06:30.620 --> 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.

06:44.680 --> 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?

06:57.020 --> 06:57.980
It is not functional.

06:57.980 --> 06:59.000
Zero points.

06:59.120 --> 07:06.440
Sample 002 evaded one machine learning model and did its thing in the sandbox, one point, et cetera.

07:07.580 --> 07:15.160
So the models, just briefly, malconv, the first model is a simple convolutional neural network that operates on raw bytes.

07:15.380 --> 07:17.620
So bytes in, score out.

07:17.820 --> 07:24.220
And it consists of simply an 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: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.

07:42.800 --> 07:45.200
And also, there's a paper listed at the bottom.

07:45.200 --> 07:47.980
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: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.

08:03.940 --> 08:09.820
And essentially, 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:20.980
The third model is Ember 2.0.

08:20.980 --> 08:23.140
Yesterday, Ember is so hot.

08:23.140 --> 08:29.560
Ember 2.0 was released yesterday, and it is an improvement upon Ember 1.0 from last year.

08:29.560 --> 08:33.060
But the difference here, this is still a totally open source.

08:33.440 --> 08:34.400
You'll have the whole model.

08:34.400 --> 08:39.520
The difference here is that a couple of things, Ember 2.0 is a very competitive model.

08:40.280 --> 08:43.180
Obviously, it's a light GB model and not differentiable.

08:43.180 --> 08:48.640
So, you have to come up with maybe a different set of attacks than following gradients.

08:50.300 --> 09:00.340
Obviously, one more thing is that all three models were trained on the same data on the Ember 2018 sample.

09:00.340 --> 09:02.740
So, you'll have a list of all the training hashes, too.

09:02.780 --> 09:05.720
So, you essentially know everything about how these models were created.

09:06.860 --> 09:07.340
All right.

09:07.340 --> 09:08.220
A few tips.

09:09.120 --> 09:13.100
We do hope that you form teams and collaborate.

09:13.100 --> 09:14.380
But there's just one GPU.

09:14.380 --> 09:17.600
So, you'd have to decide how to divvy up the course if you're the winning team.

09:18.640 --> 09:25.560
Please do invest 30 minutes in checking out the code, the model, the inference code and getting it to run locally.

09:25.720 --> 09:29.960
It will save you a ton of time to not rely on submitting things to the service.

09:30.460 --> 09:35.660
Do invest 30 minutes in setting up a local Windows 10 64-bit VM.

09:35.660 --> 09:40.360
That is the environment in which we'll be checking the functionality of your submitted samples.

09:40.840 --> 09:44.040
As always, be safe, be responsible.

09:44.280 --> 09:45.760
Don't connect your VM to the internet.

09:45.760 --> 09:47.100
Things like that, okay?

09:48.560 --> 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.

09:56.400 --> 10:00.640
So, it's to your advantage to do this offline on your own and then submit.

10:01.660 --> 10:01.960
Okay.

10:01.960 --> 10:03.340
So, more tips.

10:03.340 --> 10:06.740
Some things you might consider as you're doing this competition.

10:06.940 --> 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.

10:14.320 --> 10:19.020
You can append data to the file like was shown with the universal silence bypass.

10:19.520 --> 10:21.760
You can add or remove the signature.

10:21.760 --> 10:26.000
You can fix the check sum which is often broken in malicious binaries.

10:26.220 --> 10:28.800
You can remove the version info.

10:28.800 --> 10:31.860
You can change code or data with no ops.

10:31.860 --> 10:35.960
There are lots of things that you can do and that's up to you to be creative to do that.

10:36.120 --> 10:41.440
Things that aren't allowed, that won't work for you, you cannot make a dropper and drop the original sample.

10:41.440 --> 10:43.400
That will not be picked up in our sandbox.

10:43.700 --> 10:46.040
You cannot make a self-extracting archive.

10:46.040 --> 10:48.040
That will not be picked up in our sandbox.

10:49.040 --> 10:59.060
And I will advise a leaf is the tool that we use in Ember for instrumenting and modifying files.

10:59.060 --> 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.

11:08.280 --> 11:11.760
The last tip I'll say is there's a Slack channel.

11:11.760 --> 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.

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:28.520
Stand on the shoulder of giants.

11:28.520 --> 11:34.960
Just Monday concluded a KDD Adversarial ML Workshop about malware.

11:35.020 --> 11:38.220
But theirs was only import features only.

11:38.220 --> 11:39.800
So, it was not live malware.

11:39.800 --> 11:41.060
There was no functionality requirement.

11:41.060 --> 11:43.100
But there are things you might learn from those results.

11:43.640 --> 11:47.400
Also concluding this week was the hack in the box cyber week challenge.

11:47.400 --> 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.

11:56.740 --> 11:59.280
So, again, that's a slightly different threat model.

11:59.280 --> 12:02.400
But there are things that you might learn that could help you there.

12:03.320 --> 12:04.340
And that is it.

12:04.340 --> 12:07.380
So, I'm concluding in 12 minutes and 15 seconds.

12:07.380 --> 12:08.260
Rank over.

12:08.560 --> 12:10.940
The competition opens exactly right now.

12:10.940 --> 12:14.880
And it closes in 10 weeks from now on Friday, October 18th.

12:14.880 --> 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.

12:24.600 --> 12:27.680
So, we'd encourage if you have... I'll be here.

12:27.680 --> 12:28.700
Zoltan will be here.

12:28.700 --> 12:32.280
If you'd like to know more about the competition or details, please hit us up.

12:32.340 --> 12:36.060
Hope you can get started tonight at the AI Unwind right after this talk.

12:36.760 --> 12:37.100
All right.

12:37.100 --> 12:37.720
Thank you.

