WEBVTT

00:00.000 --> 00:01.540
Hi, I'm Sven.

00:01.540 --> 00:08.660
I founded the AI Village back in 20... basically in 2017.

00:09.180 --> 00:10.640
I've been running the AI Village.

00:10.660 --> 00:13.240
We first showed up at DEF CON in 2018.

00:13.780 --> 00:17.780
And half the time I meet someone and they're like, Oh, you've been doing the AI Village for two years?

00:18.280 --> 00:18.920
Sorry.

00:19.920 --> 00:23.200
Half the time I meet people like, Oh, AI Village, have you been going on for two years?

00:23.200 --> 00:26.160
I'm like, no, we've been around since 2017.

00:26.160 --> 00:31.840
So there's been AI talks at DEF CON for years before that.

00:32.320 --> 00:42.880
And back in 2017 I gathered up a bunch of the people who were doing malware models and spam models and started a village, mostly because I'm a mathematician and I like geometry and not algebra.

00:42.880 --> 00:45.120
So I wanted to talk about geometry at DEF CON.

00:45.600 --> 00:51.520
And Crypto and Privacy Village was the closest thing to a home with algebraic stuff.

00:52.680 --> 00:53.380
So...

00:56.740 --> 00:57.440
It's...

00:57.440 --> 01:00.880
Okay, I don't...

01:01.700 --> 01:02.400
So...

01:03.250 --> 01:05.240
But I showed up...

01:05.240 --> 01:10.320
When I started AI Village, I was a postdoc at Johns Hopkins doing geometric machine learning.

01:10.520 --> 01:20.920
And I showed up in Vegas and moved to the Bay, started talking to everybody who was doing AI security stuff.

01:20.920 --> 01:23.940
Got a job at a malware model company.

01:24.600 --> 01:26.500
Oh, bugger.

01:26.860 --> 01:29.080
Yeah, sorry.

01:30.040 --> 01:36.220
So, got a job at a company building malware models and maintaining those.

01:36.220 --> 01:46.380
And then had lovely long conversations with people on the spam teams at Quora and Facebook and Google and learning about how model security actually works.

01:46.380 --> 01:52.280
In my postdoc, I worked a bit at Johns Hopkins APL on adversarial machine learning.

01:52.280 --> 01:55.520
And then I got to industry and I found out it was very different to what it was.

01:55.600 --> 01:59.360
And quickly learned how to manage things.

01:59.360 --> 02:11.380
For four years, I managed the malware model at Endgame, later Elastic, and learned some things about how to actually make this stuff work well and what actually goes into maintaining a secure model.

02:12.540 --> 02:14.500
And I learned a bunch of stuff.

02:14.500 --> 02:18.600
But I'm trying.

02:20.300 --> 02:21.940
Anyway.

02:22.280 --> 02:27.740
So, I can probably project over this versus that.

02:28.080 --> 02:31.160
So , sorry.

02:31.160 --> 02:38.000
The first vulnerability in a production machine learning software was Proofpoint.

02:38.620 --> 02:41.360
And the disclosure happened in 2003.

02:41.360 --> 02:50.120
And the remaining evidence on the internet is from a slideshow from John Cummings Graham, who was the CTO of Cloudflare up until recently.

02:50.120 --> 02:52.880
But that is from 2003.

02:53.040 --> 02:55.560
That is a lot older than what most people think.

02:55.560 --> 03:05.460
And I've told enough reporters this that he contacted me on LinkedIn asking, who are you and why did the Wall Street Journal ask for an interview about this thing I did 20 years ago?

03:06.040 --> 03:07.440
And it was Bayesian poisoning.

03:07.440 --> 03:19.460
And everybody who's dealt with a model in production, a spam model, knows about Bayesian poisoning and knows not to use a Bayesian model, a naive Bayesian model classifier, in a spam model.

03:19.460 --> 03:21.920
This is common knowledge in the industry.

03:22.160 --> 03:24.580
And it's published and you just don't do this.

03:24.660 --> 03:27.420
And basically you just add a bunch of spam models.

03:27.440 --> 03:28.780
The model still does this.

03:28.780 --> 03:31.280
There's a bunch of work to address this sort of thing.

03:31.280 --> 03:34.100
But this is still an effective attack if you're using that model.

03:34.100 --> 03:35.220
It's never going to change.

03:35.520 --> 03:37.240
It's in part of that model.

03:40.780 --> 03:51.060
And John Thomas Graham's slides are the remaining thing from spam filters conference back in 2004 with a lot of fairly rich people.

03:52.060 --> 03:56.440
And the first thing you learn is there's always other bypasses for machine learning model.

03:56.440 --> 03:58.180
It's just basically not secure.

03:58.180 --> 04:00.740
You're never going to get 100% security on the thing.

04:01.120 --> 04:04.260
And they learned that back in the day.

04:04.260 --> 04:13.060
So they had a whole training mechanism that they were talking about for how to maintain this spam model back in 2003 and 2004.

04:13.060 --> 04:15.700
It was a maintenance problem that they had figured out.

04:16.920 --> 04:22.660
And the reason why you maintain it is you can't guarantee the security, but you need to maintain an efficacy thing.

04:22.660 --> 04:27.340
The reason why you spam is because you can't manually review every single email and you need to make sure.

04:27.340 --> 04:31.260
And you just want to stem the tide of the bad emails that actually get through to you.

04:31.260 --> 04:40.060
So if a model is 99.9% accurate, you're still going to get 0.01% malware through, and that can really screw up your customer's day.

04:41.940 --> 04:56.460
And the reason being is attackers will find that one time you make a mistake and just repeat that thing and just mess with you by finding where you've screwed up and exploiting that mistake.

04:56.460 --> 05:01.260
And you can't fix it because if you could, you've solved machine learning.

05:01.440 --> 05:08.700
You need a Fields Medal, a Turing Award, if you make a model that is 100% accurate every time.

05:08.760 --> 05:13.440
And so the company is telling you, we'll secure your model.

05:14.040 --> 05:19.400
They're telling you that they're going to sell you a perfect machine learning model.

05:20.100 --> 05:25.800
And then another big problem that happens is out-of-distribution data.

05:25.860 --> 05:39.280
So if you have a model which is very secure on malware to model as of March of this date, in six months, people have released new malware and it's going to be a completely different type of malware and completely different things.

05:39.620 --> 05:43.660
And your model today is not going to correctly classify that stuff.

05:43.660 --> 05:51.020
They're going to go do something weird in a weird part of the data set that you never thought about and maybe get past you.

05:51.020 --> 05:57.520
And it's basically like you've got an image classifier trained on empty digits, and you suddenly start feeding it fashion MNIST.

05:57.520 --> 05:59.280
Your model will screw up.

05:59.320 --> 06:00.040
And that's okay.

06:00.040 --> 06:01.320
It's not designed for that.

06:01.320 --> 06:04.220
But when it happens, you need to go back and fix it.

06:04.220 --> 06:09.060
The whole process principle is, when something weird happens, go back and fix it.

06:09.060 --> 06:14.320
You're never going to be able to deploy something that is perfectly secure, and you're never going to be done with this thing.

06:16.620 --> 06:23.460
And with PE data, malware data from 2020 is out of distribution for model and trained in 2019.

06:25.380 --> 06:35.820
And if you ask me, from trying to do math research on models, I'm solidly on the side of model-memorized data and interpolate between stuff that they already know about.

06:35.820 --> 06:39.460
And then I just do weird stuff on things outside of that.

06:39.460 --> 06:42.560
Sometimes it works on out-of-distribution data, and that's fantastic.

06:42.560 --> 06:49.200
And with LLMs, they're trained on so much data that it's hard to find something that is truly out-of-distribution, so they just tend to work on a lot of stuff.

06:50.520 --> 06:51.960
But there's a whole thing.

06:52.580 --> 06:55.320
But the thing is, attackers, they do weird stuff.

06:55.320 --> 06:57.380
They're not in distribution.

06:58.040 --> 07:01.200
And there's a bunch of examples from LLMs that have shown up over the years.

07:03.320 --> 07:12.380
When I talk to policymakers about this stuff, the idea has to be, the way you think about software security has to be different.

07:12.460 --> 07:28.000
If you think about securing a single endpoint that is just one C binary that's responding to HTTP, and you just need to make that one little binary secure, you could probably read every line and make sure that there's no vulnerabilities in that, full stop,

07:28.000 --> 07:29.880
if there's only 5,000 lines of C.

07:29.880 --> 07:35.260
That is entirely possible for a small team to do, is to make one little thing secure.

07:35.520 --> 07:41.700
You guys are familiar with software, and banks have done this.

07:41.700 --> 07:50.580
They've got small binaries that execute very well and they have high-quality software practices, and they managed to get things.

07:50.580 --> 07:55.220
Since the 80s, we haven't had any serious bank hacks.

07:55.220 --> 08:10.220
We haven't had something where the bank doesn't know where their money is supposed to be, because the databases behind that are written in a way when they took the time to actually do it, and they made the binary small enough and focused enough that they could keep a secure binary for that.

08:10.280 --> 08:12.560
It is possible to write secure software.

08:13.200 --> 08:20.260
But if you're trying to do it for AI, it's more about you have an EDR environment with tens of thousands of endpoints running all sorts of software.

08:20.260 --> 08:23.220
The attacker is going to find some soft point that you're going to get.

08:23.720 --> 08:27.820
But this is an analogy to trying to bring it home to security practitioners.

08:28.280 --> 08:33.140
You're never going to secure an enterprise environment with tens of thousands of endpoints completely.

08:33.280 --> 08:34.480
So what do you do?

08:34.480 --> 08:36.640
You have enterprise detection and response.

08:36.640 --> 08:41.700
You find the things that would get past you, find things where you screwed up, and you fix it.

08:41.920 --> 08:43.080
It's a maintenance issue.

08:43.080 --> 08:48.440
You have a sock that just sits there and watches the network all day, every day, dealing with tickets.

08:48.540 --> 08:53.360
That's how you manage large enterprise software deployments because you've got no hope of fixing it.

08:53.380 --> 08:58.120
And when you talk about AI security, you have to come to the perspective of there's no hope of truly fixing it.

08:58.120 --> 09:00.720
You just have to maintain it the whole time.

09:03.880 --> 09:08.560
This is a visualization that is kind of a weird thing.

09:08.560 --> 09:17.900
But this is a two-dimensional slice of MNIST, a neural network trained on MNIST.

09:17.900 --> 09:26.600
So MNIST is a tiny little image data set from the 80s that is for postal code numbers.

09:26.600 --> 09:29.120
It's just the digits 0 through 9.

09:29.720 --> 09:32.560
And this is a tiny model on that.

09:32.560 --> 09:35.920
It is not a model that would remotely get near production.

09:37.280 --> 09:41.240
This model has 60 hidden layers in one layer.

09:42.620 --> 09:44.600
It's this tiny little model.

09:44.600 --> 09:46.800
And we take a two-dimensional slice through it.

09:46.800 --> 09:52.460
Every single different color is basically a different decision path through the neural network.

09:52.460 --> 09:55.100
And I will happily tell you why that is.

09:56.420 --> 09:57.620
Weird math stuff.

09:57.620 --> 09:58.740
Tropical geometry.

10:01.040 --> 10:03.760
But every single one of those is a slightly different decision point.

10:03.760 --> 10:06.160
And you don't exactly know what the model is going to do on them.

10:06.160 --> 10:07.360
You have to go test it.

10:07.360 --> 10:08.680
There's no way to know.

10:09.040 --> 10:14.740
I know there's caveats to this, but there's no real way to know how the model is going to do on each and every one of them.

10:14.740 --> 10:21.000
And this is an MNIST model with thousands of parameters.

10:21.000 --> 10:27.180
When you get into a CAT GPT with billions of parameters, there's no hope of figuring that out.

10:29.340 --> 10:30.920
So you just have to sit there.

10:31.040 --> 10:32.480
Someone's going to pop my model.

10:32.820 --> 10:35.780
All I can do is delay the pop by making my model robust.

10:35.780 --> 10:37.380
And we'll talk about that in a bit.

10:37.380 --> 10:40.020
And then how fast can I respond to that?

10:40.020 --> 10:42.800
And the response doesn't need to be retrain and redeploy the model.

10:42.800 --> 10:45.160
The response can be just block that one thing.

10:46.540 --> 10:53.020
You can have a nice layered response where you actually address the problem immediately and then have a long-term solution for later.

10:54.280 --> 10:57.760
But I know there's going to be people in the audience who've got some adversarial thing.

10:57.760 --> 10:58.740
What about my model?

10:58.740 --> 11:01.580
Adversarial training actually makes your life worse.

11:01.760 --> 11:11.200
If you've got a model in production, you care about how long can you keep it in production before the efficacy of that model drops below an acceptable level and you need to replace it.

11:11.200 --> 11:17.200
If you do adversarial training on that, you've lowered its efficacy level at the start and it's going to get lower in the pile.

11:17.420 --> 11:19.820
So it just doesn't work so well.

11:19.820 --> 11:27.740
Adversarial detectors, if you've got a classifier and you want to put another classifier in it, that's a layer of security that doesn't really help you so well.

11:28.020 --> 11:29.600
And then there's all sorts of stuff.

11:29.600 --> 11:36.020
Go look at Nicola Carlini's work on all the different ways he's popped adversarial defenses.

11:37.180 --> 11:39.140
How do you actually defend the model?

11:41.640 --> 11:44.060
It's a service, as I've said at the thing.

11:44.660 --> 11:55.360
There's a quote from one of the founders of the Facebook Site Integrity Team, who are probably one of the most experienced AI risk management teams on the planet.

11:58.480 --> 12:06.340
Pedram Khayyam is actually working at OpenAI now, but the Facebook Site Integrity Team have more experience actually defending models than the entire DoD.

12:06.340 --> 12:08.040
And there's like eight people there.

12:09.340 --> 12:11.360
And they maintain it as a service.

12:11.360 --> 12:16.800
So we measure our seeds on the speed, we can detect and respond to new types of attacks and mitigate the potential damage curves.

12:16.800 --> 12:18.460
That is their sole objective.

12:18.460 --> 12:22.080
They retrain and redeploy the model every three days, and it's expensive.

12:22.080 --> 12:27.740
It costs them millions of dollars a month to maintain the spam detection systems on Facebook.

12:28.280 --> 12:29.720
For malware, it happens too.

12:29.720 --> 12:33.600
In endgame, one of my jobs was to forecast when the model's going to go bad.

12:33.600 --> 12:36.700
So I built this thing for detecting the drift rate.

12:38.700 --> 12:41.440
This is the false negative rate, false positive rate.

12:41.440 --> 12:43.540
You see the spike happen every year.

12:43.620 --> 12:46.560
We trained this model on January 1st, 2019.

12:46.640 --> 12:51.300
We got very good performance on the historical data, the industry data that I know how it works.

12:51.300 --> 12:52.380
Great performance.

12:52.380 --> 12:55.720
I know that I've got five nines of accuracy on the stuff that I've already deployed.

12:55.800 --> 13:04.360
I need five nines of accuracy on that stuff because in three months, my accuracy explodes.

13:04.360 --> 13:06.640
And some of my customers still had that model in place.

13:06.640 --> 13:08.600
So that is when the model goes bad.

13:08.680 --> 13:11.540
Something gets passed, and you see the false negative rate.

13:11.540 --> 13:15.020
This is the number of mistakes I make on benign data.

13:15.020 --> 13:17.920
This is the benign stuff that I screw up on.

13:17.920 --> 13:19.400
That doesn't go up.

13:20.100 --> 13:30.880
The false positive rate, the false negative rate, the number of stuff that I've screwed up, the malware I've screwed up that I've allowed to execute on my customer environment, that's the stuff that spikes.

13:33.920 --> 13:41.400
And that's the reason why, because the benign people aren't trying to get past me, the adversaries are trying to get past me.

13:42.180 --> 13:45.940
So the historic strategy semantics.

13:45.940 --> 13:48.440
First thing, robust features.

13:48.440 --> 13:49.940
Not robust things.

13:49.940 --> 13:53.000
Features that are hard for the users to change.

13:53.760 --> 13:59.540
For a lot of security places, you choose what features they have.

13:59.540 --> 14:02.280
So for spam, use the behavior of the model.

14:02.280 --> 14:05.740
Most spam detection systems don't even look at the content of your email.

14:05.740 --> 14:07.300
They never even read your email.

14:07.300 --> 14:16.860
They look at the IP address and the metadata for who is sending that email, and they decide on whether it's spam based on the behavior of the spammer, not behavior.

14:16.860 --> 14:22.920
And that behavior is hard for that spammer to change because he wants to send a lot of emails.

14:23.320 --> 14:34.440
So for him to send less emails, that's the way past the thing, but now you've accomplished your goal of reducing the amount of spam there is because the spammer is rate-limited.

14:34.600 --> 14:40.260
For malware, you change the features that make execution change.

14:40.420 --> 14:50.500
And for LMs, if you've seen this with OpenAI stuff, they use behaviorally what you're doing to query the stuff just as much as the content of what you're doing.

14:51.380 --> 14:54.500
An example of this going badly...

14:55.860 --> 14:56.980
So Silance, I kill you.

14:56.980 --> 15:17.000
In 2019, Silance's strategy for deploying malware models was to deploy one really, really good malware model and then not change it because they're going to solve machine learning and they're going to have a model that is perfect and are going to solve malware for the next few years.

15:17.000 --> 15:21.820
They deploy the model and it's got 7,000 features.

15:21.820 --> 15:24.140
They include everything in the kitchen sink.

15:24.940 --> 15:27.740
They classify it and they put PE data.

15:28.520 --> 15:30.260
That's the header of the PE file.

15:30.260 --> 15:34.460
So they do static analysis on that, get 7,000 features of it with all sorts of things.

15:34.460 --> 15:43.160
You look up the Ember dataset that Phil Roth and Hiram Anderson just released another update on that just a few months ago.

15:43.940 --> 15:46.360
I helped them in 2018 about that.

15:46.500 --> 15:53.040
But you get that 7,000 features and then you shove it into a deep learning model, train it to say good or bad.

15:55.120 --> 15:56.840
But they had a problem.

15:57.200 --> 15:58.600
You play Rocket League.

15:58.600 --> 16:07.440
Rocket League has some hooks in your environment that prevent cheating that are very similar to some of the malicious stuff.

16:09.360 --> 16:14.580
They were misclassifying Rocket League as a malicious binary.

16:14.580 --> 16:24.900
Rocket League, Fortnite, a lot of these games have anti-cheat capabilities that are basically memory hacks to make sure that you aren't cheating.

16:24.900 --> 16:26.780
And that looks a lot like malware.

16:26.780 --> 16:32.680
If you have a classifier that you are just trying to maintain and never change, you are going to misclassify them.

16:32.680 --> 16:39.160
What they did was they took a subset of the features, normalized them, and then did k-nearest-neighbors.

16:39.160 --> 16:42.360
If you've done RAG stuff, RAG stuff uses k-nearest-neighbors stuff.

16:42.360 --> 17:01.100
They just took a small ball around the stuff that they want to let run, so the hackers, one of the things that they had was the strings from the binary.

17:01.120 --> 17:06.240
Strings from the binary are extremely insecure, extremely easy to change.

17:06.240 --> 17:08.000
You can just write your own strings.

17:08.000 --> 17:12.040
You can pad the strings from Rocket League onto a malicious binary.

17:12.260 --> 17:14.000
It doesn't change the execution rate.

17:14.000 --> 17:21.400
It just adds some text data to the end of the binary and silence just let it run because it looked like Rocket League to them.

17:24.580 --> 17:27.840
That's just a very easy-to-change thing.

17:28.020 --> 17:32.120
You need good features that are hard for attackers to modify.

17:32.280 --> 17:35.120
Spam, IP address, domain behavior, malware.

17:35.460 --> 17:39.680
The execution environment means it's really hard to actually make a malware of stuff.

17:39.700 --> 17:45.980
There's some scary research out of Italy that kept me up at night while I was still maintaining this, but I haven't done this for a few years.

17:47.120 --> 17:52.220
Dynamic behavior is basically computationally too expensive to actually maintain.

17:52.220 --> 18:09.500
That is going to change maybe with the rise of some of the weird NPU processors that some of the chips are coming out and the AI coprocessors on the latest range of laptops will enable behavioral analysis in the models and then we have a completely different world.

18:09.900 --> 18:19.400
But dynamic behavior is what we care about because ransomware is very easy to detect from a dynamic behavior perspective, but very hard to do from a static analysis perspective.

18:21.060 --> 18:24.780
Next thing, obscurity is security.

18:25.200 --> 18:29.880
The more your attackers know about your model, the faster they can figure out ways past it.

18:31.660 --> 18:33.720
Spam, you just don't say anything.

18:33.720 --> 18:40.800
Mauer, even rejecting a sample and saying you won't execute it is saying something that a hacker can learn from.

18:41.120 --> 18:42.820
Say nothing more than you need to.

18:42.820 --> 18:44.180
And LLMs, same thing.

18:44.180 --> 18:46.160
Rejection is information.

18:46.500 --> 18:51.140
Just responding to their API with, I'm not responding, has told them information.

18:51.420 --> 18:52.580
But you can't help.

18:52.580 --> 18:54.500
You have to release some information.

18:55.740 --> 18:57.700
Some bad obscurity.

18:57.700 --> 18:58.740
Proof-putting.

18:58.740 --> 19:00.980
The proof point is a spam classifier.

19:00.980 --> 19:06.020
And this is actually the world's first CV from Will Pierce for machine learning models.

19:06.020 --> 19:09.800
They responded in the header information with all those scores.

19:10.540 --> 19:19.940
Beautiful was a data scientist because now I know exactly how to steal your model, make an imitation of it, figure out how to get spam stuff that gets past your model in an offline way.

19:19.980 --> 19:21.000
Don't have to query.

19:21.000 --> 19:25.060
You don't have to know about, I can speak softly and carry a bit of a stick.

19:27.300 --> 19:28.920
And they just leaked that.

19:28.920 --> 19:33.000
They put it in the email header for every single response, even the stuff that they reject.

19:33.000 --> 19:36.160
They just told you exactly why they're rejecting it with all the scores.

19:37.740 --> 19:42.960
So they got popped, and they got the world's first CV for machine learning models in 2019.

19:43.720 --> 19:45.900
A good obscurity thing.

19:45.900 --> 19:48.320
This is a social media website.

19:49.260 --> 19:51.640
As I said, you've got to do feature extraction.

19:51.640 --> 19:55.940
You've got to figure out which features you're going to have your model look at.

19:59.360 --> 20:03.800
And you're only going to featureize what the model is allowed to see.

20:04.060 --> 20:05.680
And I can choose.

20:05.980 --> 20:16.460
One spam company, one cam company built 50 featureizers when they only really needed about 10 to 15 to make it work.

20:16.460 --> 20:18.360
But they had a library of 50.

20:24.440 --> 20:26.240
Rejection gives you information.

20:26.240 --> 20:26.900
Sorry.

20:27.060 --> 20:28.340
Stepping back a moment.

20:28.920 --> 20:33.180
When you get rejection information, you can start probing the model and start learning things.

20:33.180 --> 20:43.020
Every single time you get a response back, you can infer the exact shape of the gradient and model near a single point if you query near that point enough.

20:43.020 --> 20:46.360
And if you know what you're doing, you can get those down to a reasonable number of queries.

20:46.360 --> 20:53.420
There's a lot of black box attacks that you can build models of your model without ever seeing what's in there.

20:54.440 --> 20:57.740
So just the rejection stuff is information.

20:57.740 --> 21:05.520
What the spam media company did was like, I'm going to fundamentally change how this model works by not just changing, retraining, and redeploying it once a week.

21:05.520 --> 21:09.580
I'm going to only let it see a subset of the features I have capable.

21:09.640 --> 21:16.200
So you can't get a good handle of what the model's going to do week from week because I don't know what it's going to do.

21:16.200 --> 21:18.500
I'm going to randomly pick what it sees.

21:18.500 --> 21:25.660
And I've got enough data in there that it will do a good job of classifying it.

21:25.660 --> 21:28.120
I don't need to have 100% accuracy.

21:28.240 --> 21:32.060
My accuracy quota might only be 99.9% accuracy.

21:32.180 --> 21:34.600
And if I put all of them in, I easily reach that.

21:34.600 --> 21:36.620
But if I put 15 of them in, we're good.

21:36.620 --> 21:39.080
So I'm only going to pick 15, randomly choose it.

21:39.080 --> 21:43.720
Do the ETL transform globe to train new models and have that whole system working.

21:43.720 --> 21:48.540
It works really well for my friend, the social media company.

21:49.680 --> 21:51.320
So, next thing.

21:51.320 --> 21:53.240
Speed is security.

21:53.380 --> 21:55.980
You have to respond to the attack as fast as possible.

21:55.980 --> 22:00.140
It will happen, and then the next thing you do is respond.

22:00.180 --> 22:02.860
So the first thing for spam, block lists.

22:04.100 --> 22:07.340
If the spam comes through, you can put a block list on the content.

22:07.340 --> 22:09.560
Whatever it is, just stem the tide quickly.

22:10.300 --> 22:18.800
Malware, chart statistics, the binary thing, just block all the ones you find and quickly retrain, redeploy your model, do all the things you need to do.

22:20.260 --> 22:22.360
There's different ways to do the block list.

22:24.180 --> 22:27.300
But spam, it doesn't have to be a robust block.

22:27.300 --> 22:28.500
It just needs to stem the tide.

22:28.500 --> 22:30.980
You just need to respond quickly so you can stop the bleeding.

22:32.540 --> 22:35.380
This is how Sophos used to manage.

22:37.880 --> 22:42.620
Josh Sachs, who's now the head of AI security at Meta.

22:43.700 --> 22:52.020
But one of the problems with a lot of AI security models is you just have the model and you're like, I have to secure this one model and they treat it as one thing.

22:52.020 --> 22:54.500
We're going to secure it, and that's it.

22:55.020 --> 22:58.040
In actual fact, you've got so many layers of security.

22:58.040 --> 23:01.020
Each of them can be changed and improved and upgraded.

23:01.020 --> 23:03.740
You might have a system where it's very easy.

23:03.740 --> 23:07.140
If it's an email interest, you might be able to block the email quickly.

23:07.320 --> 23:09.400
Then you've got binary, you block the thing.

23:09.520 --> 23:19.720
You've got a whole stack of layers around the model to make sure that you can fix it, fix the environment quickly, have things that you have easy response time.

23:19.720 --> 23:25.820
Because retraining a model, I took the retraining time at endgame from a week to a day.

23:26.000 --> 23:27.140
Big improvement.

23:27.140 --> 23:35.420
But every month, that got slightly longer because we got more data and it took a slightly longer time more time to train.

23:35.420 --> 23:37.520
I'm sure now they've got a different thing.

23:38.660 --> 23:42.460
You can't retrain and redeploy a giant language model.

23:42.460 --> 23:43.560
It's going to take you months.

23:43.560 --> 23:47.700
You have to build your security layers and layers around it.

23:48.780 --> 23:50.480
Otherwise, it's not going to work.

23:52.780 --> 23:59.220
One of the main things you have to do as a practitioner is reduce the retraining time.

23:59.220 --> 24:09.820
Time from, oh shit, we got popped, to I have fixed it with a new model that is robust and it's going to take them another week or two before they pop us again.

24:10.120 --> 24:18.740
The time from, oh, I figured out that I've been popped to a replacement is a critical metric from your AI security team.

24:20.940 --> 24:34.280
A whole big thing, you need to make sure that your ETL steps have caching layers so you don't have to wait two days for your ETL to run to re-extract features for a billion samples of malware.

24:34.280 --> 24:39.160
You need to prepare that so you have some cache data so you can go quicker.

24:40.460 --> 24:42.560
Spark is terrible for this.

24:42.560 --> 24:43.940
It's not that fast.

24:45.740 --> 24:50.120
I debugged Spark for weeks and I eventually ripped it out because I couldn't get it going.

24:52.040 --> 24:59.020
And then testing, you need to test and deploy and you have to have evaluations and deployment metrics that are automated.

24:59.500 --> 25:05.100
Humans need to be a critical part of this thing, but you can get a report that the human can make a decision on.

25:05.680 --> 25:11.040
Automated so the humans don't have to spend two days doing all sorts of weird testing.

25:11.040 --> 25:13.360
Automate that stuff as quickly as possible.

25:14.500 --> 25:19.420
Critical blocking, if you're managing a malware model, you are going to misclassify a Windows binary.

25:19.420 --> 25:33.180
If you misclassify a Windows binary in production on a customer system, you could destroy a hedge fund server by accident and then that costs them $100 million a day.

25:34.860 --> 25:44.820
Things like that you can automate, make sure that Windows is fine, make sure that that is already in the allow list and all the weird binary things are in the block list.

25:45.120 --> 25:49.340
You can pre-populate that and maintain it so that you are good to go to redeploy.

25:51.240 --> 25:55.180
But the difficult thing is actually finding a breach.

25:55.240 --> 26:05.000
If you have a billion uploads of PE data a day, finding the new strain that gets past your model might be only a few hundred samples in the first few days.

26:05.960 --> 26:07.120
You're not going to see that.

26:07.120 --> 26:08.000
You've got a billion.

26:08.000 --> 26:12.020
It's a god-awful signal-to-noise ratio.

26:12.420 --> 26:14.820
But billions of new posts on Facebook a day.

26:14.840 --> 26:17.740
Maybe a few million are spam.

26:18.340 --> 26:18.840
Maybe.

26:18.840 --> 26:20.700
The ratio is awful.

26:22.820 --> 26:26.200
It's a tiny needle in a very large haystack.

26:26.200 --> 26:29.780
But this needle grows larger and larger every day.

26:29.780 --> 26:36.840
So at one point you're going to notice because your customers are complaining because they've got ransomware or something on their network.

26:37.260 --> 26:38.900
Because you missed it.

26:39.300 --> 26:43.000
And when your customer calls and says, Hi, I've been popped.

26:43.220 --> 26:47.280
Now I'm calling the cybersync insurance company to pay this ransom.

26:48.320 --> 26:49.780
And they have questions.

26:49.780 --> 26:51.200
It's not a good call.

26:51.900 --> 26:55.960
But if you can find that and address that earlier, that's a huge boon.

26:55.960 --> 27:07.480
As you mature in machine learning security, you switch from making sure the model is robust to making sure that you can do this faster.

27:07.480 --> 27:10.620
You get the model robust enough and eventually that's fine.

27:10.620 --> 27:14.120
You may need to do detections for watching that thing.

27:14.120 --> 27:15.420
The model is going to screw up.

27:15.420 --> 27:17.220
You need to find out when the model screws up.

27:18.340 --> 27:19.700
There's different systems.

27:20.040 --> 27:31.140
For cloud systems you can do this thing where you deploy two models and the canary model performs slightly differently and you can get different metrics.

27:31.460 --> 27:38.460
Your data scientists get a good idea of something's gone wrong because the dashboard looks wrong.

27:38.500 --> 27:44.520
Ensemble systems, there's ways to do figuring out that things have gone wrong with ensemble systems.

27:45.400 --> 27:51.680
Outline detection is extremely hard, especially for heterogeneous density data sets like malware.

27:52.520 --> 28:01.440
You get large areas of malware that are extremely low density because there's lots of little PE binaries that are just scattered.

28:01.440 --> 28:04.540
Lots of benign data that has the density of interstellar gas.

28:04.540 --> 28:08.500
And then you have some malicious data that is like neutron stars.

28:08.940 --> 28:17.220
And so outlier detection doesn't work for that because basically every benign, you're going to catch some things.

28:19.060 --> 28:25.540
But it gets difficult and it's kind of something down to the exact system you're running.

28:26.240 --> 28:31.020
But mature companies spend far more on detection than model development.

28:32.260 --> 28:34.820
And the thing is, you learn from the attackers.

28:35.140 --> 28:46.080
So one of the best AI red team things, if you want to learn how traditional AI red team stuff works, is to look at the SEO community.

28:46.080 --> 28:51.600
Search engine optimization is a bunch of people red teaming the Google search engine.

28:51.880 --> 28:54.120
They have read the papers of how it works.

28:54.120 --> 28:57.240
They have read everything that Google has ever released about that thing.

28:57.240 --> 29:01.580
And they are doing everything they can to get to the top of the listing without paying for it.

29:02.540 --> 29:05.760
Those people are excellent AI red teamers.

29:05.860 --> 29:08.160
They may not know how the model works exactly.

29:08.160 --> 29:10.680
They may not have all the mathematical understanding of it.

29:10.680 --> 29:15.780
But they are doing what malware models and spam people are doing every day.

29:15.780 --> 29:20.080
They are just trying stuff, learning, and talking to each other.

29:20.100 --> 29:22.000
Spam, they sell the techniques.

29:22.000 --> 29:32.220
You can see that someone in Malaysia figures out that this way is the way to get past the spam detection of this week from Facebook.

29:32.220 --> 29:37.020
And it spreads, because they make money selling and communicating with each other.

29:38.300 --> 29:43.920
Malware, reverse engineer the strains you persistently miss and learn why you miss it.

29:43.920 --> 29:47.640
Sometimes it's, oh, they packed my binary and I just don't know.

29:48.200 --> 29:53.440
This packer is not going to get past my static analysis detector.

29:56.540 --> 30:02.120
And yeah, for LMs, there are Discord servers devoted to jailbreaks and stuff.

30:02.120 --> 30:04.940
You can go on those Discord servers and see what they're doing.

30:07.420 --> 30:08.340
Okay.

30:09.340 --> 30:10.560
Oh, well.

30:13.440 --> 30:14.300
Oh, well.

30:15.740 --> 30:16.460
Yeah.

30:17.080 --> 30:18.860
Search engine optimization.

30:22.320 --> 30:27.140
One of the questions that shows up in adversarial and machine learning is, have you seen an adverse example?

30:27.200 --> 30:30.540
This is the mandatory image thing.

30:30.560 --> 30:33.020
Panda, nematode, gibbon.

30:33.060 --> 30:34.440
It's from a thing.

30:34.440 --> 30:37.460
Christian Chesney and Ian Goodfellow did amazing work with this stuff.

30:37.460 --> 30:40.080
It's great at understanding how neural networks work.

30:40.100 --> 30:42.040
It's not really a security vulnerability.

30:43.560 --> 30:49.380
Because it's cheaper just to try stuff and you get a good feeling for how the model's working.

30:49.380 --> 30:55.180
And you may not be able to do weird stuff with the gradients of the thing and all that stuff.

30:55.180 --> 30:56.660
And you have to learn about all that stuff.

30:56.660 --> 31:02.240
And you're a spammer who has a limited budget and a tiny margin for making money.

31:02.980 --> 31:08.120
So are you going to learn some tricky math that is really hard to use in production?

31:08.120 --> 31:11.420
Or are you just going to try more people and get the wisdom of the crowd?

31:11.740 --> 31:13.280
And it's much cheaper.

31:13.280 --> 31:21.040
So there's a lot of AI security stuff that just doesn't work in production for the attackers.

31:23.560 --> 31:26.440
One of the big concerns that people have is model poisoning.

31:26.440 --> 31:28.480
Especially with VirusTotal data.

31:28.860 --> 31:33.800
Do you know how much data that we delete from VirusTotal every day?

31:34.440 --> 31:39.440
We had a feed where we could download every single PE file that is uploaded to our VirusTotal.

31:39.440 --> 31:41.060
We can't handle that much data.

31:41.060 --> 31:42.920
We delete most of it.

31:42.920 --> 31:44.720
We delete the vast majority of it.

31:44.720 --> 31:49.120
If you have a sample that we already have something very similar to, we're just deleting it.

31:49.440 --> 32:04.940
If you want to do a model poisoning attack where you're going to slowly infiltrate one sample of the data and add to it and make them misclassify that one sample of data, I'm probably going to delete your model poisoning attack by accident.

32:05.000 --> 32:06.160
And never notice it.

32:06.160 --> 32:12.540
Because you are manipulating a tiny fraction of one part of the data that I already have.

32:12.540 --> 32:17.220
And I'm automatically just going to clean it up because I don't need that much data.

32:17.220 --> 32:21.240
This is for malware stuff.

32:21.240 --> 32:23.020
And spam stuff is the same sort of thing.

32:23.760 --> 32:26.180
The feeds of these things are enormous.

32:28.740 --> 32:30.880
You've got to ask, how are they actually getting the data in there?

32:30.880 --> 32:46.220
Some of the LLM stuff, the way that the data gets ingested from just scraping the internet and the way that these models memorize and the quantity of data that these models can memorize, it's perfectly possible to poison data.

32:46.420 --> 32:49.400
But how are they actually getting the data, where are they putting it?

32:50.920 --> 32:54.360
Because Fortran tries to poison these models all the time.

32:54.540 --> 32:58.800
They know that Fortran is automatically deleted from all of these datasets.

33:00.660 --> 33:07.980
And the subreddits devoted to Fortran are automatically deleted from the large language model datasets.

33:07.980 --> 33:09.240
They've got to find other things.

33:09.240 --> 33:12.880
I know there's a cat-and-mouse game trying to do it, and there's concerns there.

33:12.880 --> 33:16.640
But for security models, it's probably not going to happen.

33:17.220 --> 33:22.920
Especially for the scale of problems that you need a machine learning model for.

33:25.440 --> 33:27.440
Dilution is the solution to pollution.

33:33.890 --> 33:40.650
You're sending a thimble full of poison data down the Niagara Falls from trying to do something on VirusTotal.

33:41.510 --> 33:43.610
I know there have been attempts.

33:43.610 --> 33:45.490
There's things I know that people have tried.

33:45.490 --> 33:48.110
I don't think it's ever going to actually work in production.

33:48.550 --> 33:50.110
I don't think it's going to succeed.

33:54.370 --> 33:57.390
My attempt at a recap diagram for your executives.

33:59.370 --> 34:01.350
You've got the attacker quantity.

34:02.450 --> 34:07.990
And the way you reduce the number of attacker quantities is verified accounts, API limits, and being less popular.

34:08.410 --> 34:13.110
It's very easy to be, if no one cares about your service, you don't have to worry about their security.

34:14.170 --> 34:16.610
The attacker controls the other axis.

34:16.770 --> 34:19.870
How much control do they have over the data that you care about?

34:21.150 --> 34:27.490
And so you can change that by reducing the harder-to-manipulate features, less public information, moving target.

34:28.610 --> 34:30.690
And you get this curve.

34:34.830 --> 34:36.650
There's a lot of attackers, there's no hope.

34:36.650 --> 34:38.570
You're going to be redeploying once a week.

34:38.590 --> 34:41.910
If they've got a lot of control, they're going to be redeploying once a week.

34:42.370 --> 34:49.210
The better you can get the origin, probably the more secure you can think about your model.

34:50.850 --> 34:53.170
You've got modern spam up here.

34:53.590 --> 34:54.870
There's just so much of it.

34:54.870 --> 34:56.110
You're going to get past there.

34:56.110 --> 35:02.130
Our models, probably around here, it's very hard to manipulate.

35:02.150 --> 35:08.030
Self-driving cars, from a security perspective, probably fine.

35:13.170 --> 35:14.130
Silence.

35:14.730 --> 35:22.590
With the way they did their thing, the reason why it was a vulnerability, the reason why it was a concern, is not because they screwed up the machine learning model.

35:23.410 --> 35:27.730
We know all the models are going to screw up, all the models are going to have it.

35:28.550 --> 35:33.850
The reason why it became a problem is because they unnecessarily moved the access that way.

35:35.010 --> 35:36.430
This way, sorry.

35:36.490 --> 35:37.710
Gesturing is hard.

35:39.430 --> 35:42.990
Prompt rejections, it's hopeless.

35:42.990 --> 35:44.870
They've got full control over the input data.

35:47.130 --> 35:50.890
For mature teams, you can't control how popular the service is.

35:50.910 --> 35:53.710
Better features eventually become too expensive to maintain.

35:55.290 --> 35:57.650
You've just got to focus on the response time.

36:00.970 --> 36:09.170
Just closing that remark, if we measure ourselves in speed, we could detect and respond to new types of attacks and mitigate the potential damage.

36:09.170 --> 36:17.310
The reason why I had this talk is because I've given this rant to people and eventually someone said, you're giving me a keynote.

36:18.310 --> 36:20.350
Because this is old stuff.

36:20.470 --> 36:24.230
People know about this, but one of the principles of AI security is you just don't talk about it.

36:24.230 --> 36:26.150
So it's really hard to find this stuff.

36:26.890 --> 36:33.130
I've had friends relearn AI security from scratch because they didn't know that there was a community out there.

36:33.130 --> 36:37.110
They didn't know how this stuff worked and there was no documentation.

36:40.450 --> 36:44.250
So the core team for spam just had to learn it from scratch.

36:44.250 --> 36:50.530
They got their ass kicked for six months while they learned how to deal with spammers without talking to anyone.

36:50.530 --> 36:52.510
But they settled on these principles.

36:53.150 --> 36:58.270
The malware community, it's a slow enough thing that it's not really that a problem.

36:58.270 --> 37:00.510
But we all learned this stuff alone.

37:01.590 --> 37:06.650
One of the problems with AI security is this is all old history.

37:06.890 --> 37:12.510
The Facebook Site Integrity team have practices and principles that could help everybody.

37:12.510 --> 37:17.230
But one of those principles is to not tell anyone so they don't actually go and force and help them.

37:17.270 --> 37:18.950
And they should be left to do it.

37:18.950 --> 37:22.530
We have no right to them giving lectures on how to do this stuff.

37:22.570 --> 37:30.850
But we need to find a different way of actually communicating this stuff to people and teaching people how model security has worked in the past.

37:30.850 --> 37:38.790
Because you go talk to some of the people on AI Red teams at big companies, they're like, oh, it's hopeless because the classifier is never going to work perfectly.

37:38.790 --> 37:41.410
The classifier has never worked perfectly.

37:41.470 --> 37:46.010
But for spam or malware, it's never going to work perfectly.

37:46.010 --> 37:48.430
You just have to sit there and maintain it.

37:48.430 --> 37:52.890
Your prompt injection thing, it's just a layered security thing with maintenance.

37:53.010 --> 37:59.750
And I'm sorry, but you're going to have to have an expense account for the engineers to sit there and watch it and help and retrain it.

38:00.490 --> 38:02.230
That's how it works.

38:02.230 --> 38:05.310
That's how it's always worked, and I don't see that changing anytime.

38:05.310 --> 38:07.390
But, yeah.

38:07.390 --> 38:10.410
Anyway, if you've got any questions, I'm up in AI Village.

38:10.410 --> 38:14.070
I'll answer them.

38:14.290 --> 38:16.250
But I'm Sven.

38:17.630 --> 38:19.110
Thank you very much.

