start	end	text
0	5120	Awesome. And for our final talks of the day, we have Hiram Anderson and Ryan Kovar on competitions
5120	10900	in InfoSec and ML. And really quick, we also want to remind you afterwards, we have AI Unwind,
10900	14720	where you'll be able to sort of play around with some of the competitions and data that
14720	19180	they'll be presenting today. So without further ado, can we get a big round of applause for them?
23110	26710	Thanks, there are two of us. I'm pleased to be speaking with Ryan Kovar,
26710	31870	announcing two different competitions. So I'll be as fast as possible to leave as much time
31870	37370	for Ryan as necessary. And I have a plane to catch also. So my name is Hiram Anderson. I'm
37370	44550	the chief scientist at Endgame. And I also want to recognize Zoltan Balazs. He is a co-author
44550	49690	of this work and has actually done most of the legwork to cross the finish line, to provide to
49690	57290	you, very relevant to recent news, a competition for evading next-gen antivirus. So we'd like to
57290	65750	right now, a 10-week competition. The skinny is this, you will download malware and modify raw
65750	74110	bytes and have them evade up to three machine learning models. When you submit the malware,
74110	83280	they must remain functional. And if you do, you will win the best GPU that money can buy for a PC.
83280	89760	Okay? So that's the skinny. I want to just break down in detail what this competition is about.
89760	94840	And we totally encourage anybody and everybody to join this competition. I think there are really
94840	99800	good reasons to do so. So first, machine learning static evasion. So let me get into a bit more
99800	106560	detail. The competition is about static detection of malware using machine learning. And all of the
106560	112380	malware samples that you'd be provided are scored as malicious by the machine learning models.
112380	118420	So you'd need to come up with techniques to modify the binary in a way that does not
118420	124220	change its behavior or break the PE file format for a Windows executable file.
124500	129540	For example, you might, as shown on the slide, you might unpack a packed binary,
129540	134960	rename a section, add a new section, and attempt to disguise the malware as benign.
136060	140800	So this is an adversarial machine learning competition. And there have been many of these
140800	146660	in the image domain. But I'll just note that likely you'd want to leave your LP norm
146660	152160	constraints at home. This is not the same as a machine, a computer vision competition.
152820	158940	Some of those techniques could be useful to you. But to be pedantic, images degrade gracefully.
158940	164800	It's very easy to add noise to an image and it still remains an image. But if you add,
164800	169460	if you change bytes in a file, you'll very likely break the file or at least break the functionality.
169460	174100	So the threat model here is different and the constraints for what you're preserving
174100	180060	is very different. So for this contest, you'd be welcome to still follow gradients in the models,
180060	184960	but the chances are that if you naively perturb byte values, that you'll be unsuccessful.
185300	193180	So the rules, briefly. Step one, you will need Google creds to go register at evade malware
193180	200960	ml.io. Once you have registered, you will also agree to terms of service that are simple.
200960	206700	It essentially says, this is real malware. Please be careful. And for any monster malware
206700	213520	that you create, that is your creation and you're responsible for it. You will download 50
213520	220660	malware samples. The malware samples represent popular families over the last 12 to 18 months,
220660	225340	including those that have targeted financial industries and things like that.
225820	231740	When you download the samples, you may also download a full description of three
232340	238640	completely open source machine learning models. And I'll describe those a bit in more detail.
239340	244820	The next step would be for you to do your thing. And the best intent of this,
244820	251540	it'll work best if you sort of do this on your own local resources. You can submit anytime,
251540	256240	but there's a time delay when you submit. So it's best to check and do things locally.
258540	264580	Let's see, the next step is, after you've modified your samples, you want to make sure
264580	270580	that they still work. You will get no points for samples that do not work.
271300	276820	Lastly, when they have, when you verify that they work, you'll put them back in a zip file
276820	285520	and upload them to the website that's at evademalwareml.io. You earn points for evading,
285520	290840	for every sample, there are three models, and you get one point for evading each model. So
290840	300180	50 samples, three models, the maximum score would be 150 points. So you could win with 150 points.
300580	308380	So long as you submit your submission before somebody else who might get 150 points, right?
308820	312820	And just to note, this is, you know, we would have loved to host this on Kaggle,
312820	319880	except they don't really do sandboxes or malware. So instead, following Kaggle, if you would,
319880	325980	to qualify for the GPU, we would want you to publish your solution to share with the community.
325980	330880	So those are the basic rules. I want to just go through a little tip, a few tips and tricks to
330880	334920	help get you started for those who would be interested in participating. So the first is
334920	342000	that when you download these samples, they will have names like 001, 002, and 003, right? And
342000	348880	when you muck with them and upload them, they should also retain the names 001, 002, 003.
348880	353320	Otherwise, we have no idea what sample belonged to what, because you've changed the bytes, okay?
353320	357280	But you download zip file, and you should upload also a zip file.
359420	364220	When you upload the zip file, there's a few gatekeepers that this will go through. So first,
364220	369720	there's sanity checks, like does it have the right final names? Is it a PE file? Or did you totally,
369720	375540	you know, did you mess up the MZ header somehow? Does it correspond to known hashes? If that
375540	380760	passes, it will pass on to be analyzed by one of three machine learning models, which I'll describe
380760	386860	in a moment. But they are malconv, non-negative malconv, and ember. Each three of these are all
386860	393760	open source models. There's papers about all of them. If the sample evades any one of those three
393760	398960	models, then it will go into a sandbox phase, where we will run it on our server and verify
398960	406700	that the sample still exhibits its malicious behavior. So as an example, if you look at the
406700	412560	bottom of this graphic, when you upload a file, let's see, 001, it looks like it evaded two
412560	418160	machine learning models but did not run a sandbox, zero points, right? It is not functional. Zero
418160	425660	points. Sample 002 evaded one machine learning model and did its thing in the sandbox, one point,
425660	433120	et cetera. So the models, just briefly, malconv, the first model is a simple convolutional neural
433120	439420	network that operates on raw bytes. So bytes in, score out. And it consists of simply an
439420	444220	attention network and a single layer convolutional network followed by a multi-layer perceptron.
444220	447600	So this is a fully differential model, much like you'd see in computer vision.
447900	453260	And when you go to this GitHub site that's listed there and also listed all over on the website,
453260	458640	you can download the inference code, the weights, the model structure, everything you need to
458640	464260	construct any kind of white box attack you might need to do. And also, there's a paper
464260	467980	listed at the bottom. You can read all about this model and everything about it, okay?
468220	473780	The second, all this code, by the way, for these differentiable models are in PyTorch.
474160	480040	The second model is non-negative malconv and it is identical to malconv except for one thing,
480040	484780	and that is it has been trained with a non-negative weight constraint. And essentially,
484780	489820	the purpose behind that is that it wants to pay attention only to indicators of maliciousness.
490100	497700	And ideally, it'd be harder to fool by adding sort of benign strings to your binary, right?
497700	505460	The third model is Ember 2.0. Yesterday, Ember is so hot. Ember 2.0 was released yesterday,
505460	510740	and it is an improvement upon Ember 1.0 from last year. But the difference here,
510740	515480	this is still a totally open source. You'll have the whole model. The difference here is that
516200	521400	a couple of things, Ember 2.0 is a very competitive model. Obviously, it's a light
521400	525880	GB model and not differentiable. So, you have to come up with maybe a different set of attacks
526820	536380	than following gradients. Obviously, one more thing is that all three models were trained on
536380	542280	the same data on the Ember 2018 sample. So, you'll have a list of all the training hashes,
542280	545720	too. So, you essentially know everything about how these models were created.
546860	554380	All right. A few tips. We do hope that you form teams and collaborate. But there's just one GPU.
554380	559240	So, you'd have to decide how to divvy up the course if you're the winning team. Please do
559240	564680	invest 30 minutes in checking out the code, the model, the inference code and getting it to run
564680	569960	locally. It will save you a ton of time to not rely on submitting things to the service.
570460	577380	Do invest 30 minutes in setting up a local Windows 10 64-bit VM. That is the environment in which
577380	582960	we'll be checking the functionality of your submitted samples. As always, be safe, be
582960	590160	responsible. Don't connect your VM to the internet. Things like that, okay? If you do, when you do
590160	595860	upload, it could take up to 30 minutes for us to validate the full suite of samples in your zip
595860	602280	file. So, it's to your advantage to do this offline on your own and then submit. Okay. So,
602280	607740	more tips. Some things you might consider as you're doing this competition. There's a number
607740	612340	of things that you can do that will not, that should not, I should say, that generally should
612340	617760	not break the PE file format. You can append data to the file like was shown with the universal
617760	623760	silence bypass. You can add or remove the signature. You can fix the check sum which
623760	630200	is often broken in malicious binaries. You can remove the version info. You can change code or
630200	634980	data with no ops. There are lots of things that you can do and that's up to you to be creative
634980	639940	to do that. Things that aren't allowed, that won't work for you, you cannot make a dropper
639940	644660	and drop the original sample. That will not be picked up in our sandbox. You cannot make a
644660	651980	self-extracting archive. That will not be picked up in our sandbox. And I will advise a leaf is
651980	660400	the tool that we use in Ember for instrumenting and modifying files. It's a fantastic thing with
660400	666380	Python bindings and I highly recommend you can do most of these tips that I've listed here using
666380	673540	leaf alone. The last tip I'll say is there's a Slack channel. So, if you're having trouble or
673540	679340	if you want to share ideas, join on the Slack channel which is also listed on the website.
679800	686440	And also, go ahead and we encourage, hope that you'll learn from the wisdom of others.
686800	693300	Stand on the shoulder of giants. Just Monday concluded a KDD Adversarial ML Workshop
693300	699800	about malware. But theirs was only import features only. So, it was not live malware.
699800	703100	There was no functionality requirement. But there are things you might learn from those results.
703640	708240	Also concluding this week was the hack in the box cyber week challenge. There's a slightly different
708240	715240	where they created reinforcement learning agents to write, to append to the malware source code
715240	719840	and submit those samples. So, again, that's a slightly different threat model. But there are
719840	726100	things that you might learn that could help you there. And that is it. So, I'm concluding in 12
726100	732120	minutes and 15 seconds. Rank over. The competition opens exactly right now. And it closes in 10
732120	739060	weeks from now on Friday, October 18th. And I'll just remind you, if you'd like to win the fastest
739060	744840	GPU that money can buy for your desktop, you must be able to publish your solution. So, we'd
744840	749640	encourage if you have... I'll be here. Zoltan will be here. If you'd like to know more about the
749640	755100	competition or details, please hit us up. Hope you can get started tonight at the AI Unwind right
755100	757720	after this talk. All right. Thank you.
