1 00:00:00,000 --> 00:00:01,540 Hi, I'm Sven. 2 00:00:01,540 --> 00:00:08,660 I founded the AI Village back in 20... basically in 2017. 3 00:00:09,180 --> 00:00:10,640 I've been running the AI Village. 4 00:00:10,660 --> 00:00:13,240 We first showed up at DEF CON in 2018. 5 00:00:13,780 --> 00: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? 6 00:00:18,280 --> 00:00:18,920 Sorry. 7 00:00:19,920 --> 00:00:23,200 Half the time I meet people like, Oh, AI Village, have you been going on for two years? 8 00:00:23,200 --> 00:00:26,160 I'm like, no, we've been around since 2017. 9 00:00:26,160 --> 00:00:31,840 So there's been AI talks at DEF CON for years before that. 10 00:00:32,320 --> 00: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. 11 00:00:42,880 --> 00:00:45,120 So I wanted to talk about geometry at DEF CON. 12 00:00:45,600 --> 00:00:51,520 And Crypto and Privacy Village was the closest thing to a home with algebraic stuff. 13 00:00:52,680 --> 00:00:53,380 So... 14 00:00:56,740 --> 00:00:57,440 It's... 15 00:00:57,440 --> 00:01:00,880 Okay, I don't... 16 00:01:01,700 --> 00:01:02,400 So... 17 00:01:03,250 --> 00:01:05,240 But I showed up... 18 00:01:05,240 --> 00:01:10,320 When I started AI Village, I was a postdoc at Johns Hopkins doing geometric machine learning. 19 00:01:10,520 --> 00:01:20,920 And I showed up in Vegas and moved to the Bay, started talking to everybody who was doing AI security stuff. 20 00:01:20,920 --> 00:01:23,940 Got a job at a malware model company. 21 00:01:24,600 --> 00:01:26,500 Oh, bugger. 22 00:01:26,860 --> 00:01:29,080 Yeah, sorry. 23 00:01:30,040 --> 00:01:36,220 So, got a job at a company building malware models and maintaining those. 24 00:01:36,220 --> 00: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. 25 00:01:46,380 --> 00:01:52,280 In my postdoc, I worked a bit at Johns Hopkins APL on adversarial machine learning. 26 00:01:52,280 --> 00:01:55,520 And then I got to industry and I found out it was very different to what it was. 27 00:01:55,600 --> 00:01:59,360 And quickly learned how to manage things. 28 00:01:59,360 --> 00: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. 29 00:02:12,540 --> 00:02:14,500 And I learned a bunch of stuff. 30 00:02:14,500 --> 00:02:18,600 But I'm trying. 31 00:02:20,300 --> 00:02:21,940 Anyway. 32 00:02:22,280 --> 00:02:27,740 So, I can probably project over this versus that. 33 00:02:28,080 --> 00:02:31,160 So , sorry. 34 00:02:31,160 --> 00:02:38,000 The first vulnerability in a production machine learning software was Proofpoint. 35 00:02:38,620 --> 00:02:41,360 And the disclosure happened in 2003. 36 00:02:41,360 --> 00: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. 37 00:02:50,120 --> 00:02:52,880 But that is from 2003. 38 00:02:53,040 --> 00:02:55,560 That is a lot older than what most people think. 39 00:02:55,560 --> 00: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? 40 00:03:06,040 --> 00:03:07,440 And it was Bayesian poisoning. 41 00:03:07,440 --> 00: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. 42 00:03:19,460 --> 00:03:21,920 This is common knowledge in the industry. 43 00:03:22,160 --> 00:03:24,580 And it's published and you just don't do this. 44 00:03:24,660 --> 00:03:27,420 And basically you just add a bunch of spam models. 45 00:03:27,440 --> 00:03:28,780 The model still does this. 46 00:03:28,780 --> 00:03:31,280 There's a bunch of work to address this sort of thing. 47 00:03:31,280 --> 00:03:34,100 But this is still an effective attack if you're using that model. 48 00:03:34,100 --> 00:03:35,220 It's never going to change. 49 00:03:35,520 --> 00:03:37,240 It's in part of that model. 50 00:03:40,780 --> 00: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. 51 00:03:52,060 --> 00:03:56,440 And the first thing you learn is there's always other bypasses for machine learning model. 52 00:03:56,440 --> 00:03:58,180 It's just basically not secure. 53 00:03:58,180 --> 00:04:00,740 You're never going to get 100% security on the thing. 54 00:04:01,120 --> 00:04:04,260 And they learned that back in the day. 55 00:04:04,260 --> 00: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. 56 00:04:13,060 --> 00:04:15,700 It was a maintenance problem that they had figured out. 57 00:04:16,920 --> 00: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. 58 00:04:22,660 --> 00:04:27,340 The reason why you spam is because you can't manually review every single email and you need to make sure. 59 00:04:27,340 --> 00:04:31,260 And you just want to stem the tide of the bad emails that actually get through to you. 60 00:04:31,260 --> 00: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. 61 00:04:41,940 --> 00: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. 62 00:04:56,460 --> 00:05:01,260 And you can't fix it because if you could, you've solved machine learning. 63 00:05:01,440 --> 00:05:08,700 You need a Fields Medal, a Turing Award, if you make a model that is 100% accurate every time. 64 00:05:08,760 --> 00:05:13,440 And so the company is telling you, we'll secure your model. 65 00:05:14,040 --> 00:05:19,400 They're telling you that they're going to sell you a perfect machine learning model. 66 00:05:20,100 --> 00:05:25,800 And then another big problem that happens is out-of-distribution data. 67 00:05:25,860 --> 00: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. 68 00:05:39,620 --> 00:05:43,660 And your model today is not going to correctly classify that stuff. 69 00:05:43,660 --> 00: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. 70 00:05:51,020 --> 00: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. 71 00:05:57,520 --> 00:05:59,280 Your model will screw up. 72 00:05:59,320 --> 00:06:00,040 And that's okay. 73 00:06:00,040 --> 00:06:01,320 It's not designed for that. 74 00:06:01,320 --> 00:06:04,220 But when it happens, you need to go back and fix it. 75 00:06:04,220 --> 00:06:09,060 The whole process principle is, when something weird happens, go back and fix it. 76 00:06:09,060 --> 00: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. 77 00:06:16,620 --> 00:06:23,460 And with PE data, malware data from 2020 is out of distribution for model and trained in 2019. 78 00:06:25,380 --> 00: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. 79 00:06:35,820 --> 00:06:39,460 And then I just do weird stuff on things outside of that. 80 00:06:39,460 --> 00:06:42,560 Sometimes it works on out-of-distribution data, and that's fantastic. 81 00:06:42,560 --> 00: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. 82 00:06:50,520 --> 00:06:51,960 But there's a whole thing. 83 00:06:52,580 --> 00:06:55,320 But the thing is, attackers, they do weird stuff. 84 00:06:55,320 --> 00:06:57,380 They're not in distribution. 85 00:06:58,040 --> 00:07:01,200 And there's a bunch of examples from LLMs that have shown up over the years. 86 00:07:03,320 --> 00: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. 87 00:07:12,460 --> 00: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, 88 00:07:28,000 --> 00:07:29,880 if there's only 5,000 lines of C. 89 00:07:29,880 --> 00:07:35,260 That is entirely possible for a small team to do, is to make one little thing secure. 90 00:07:35,520 --> 00:07:41,700 You guys are familiar with software, and banks have done this. 91 00:07:41,700 --> 00: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. 92 00:07:50,580 --> 00:07:55,220 Since the 80s, we haven't had any serious bank hacks. 93 00:07:55,220 --> 00: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. 94 00:08:10,280 --> 00:08:12,560 It is possible to write secure software. 95 00:08:13,200 --> 00: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. 96 00:08:20,260 --> 00:08:23,220 The attacker is going to find some soft point that you're going to get. 97 00:08:23,720 --> 00:08:27,820 But this is an analogy to trying to bring it home to security practitioners. 98 00:08:28,280 --> 00:08:33,140 You're never going to secure an enterprise environment with tens of thousands of endpoints completely. 99 00:08:33,280 --> 00:08:34,480 So what do you do? 100 00:08:34,480 --> 00:08:36,640 You have enterprise detection and response. 101 00:08:36,640 --> 00:08:41,700 You find the things that would get past you, find things where you screwed up, and you fix it. 102 00:08:41,920 --> 00:08:43,080 It's a maintenance issue. 103 00:08:43,080 --> 00:08:48,440 You have a sock that just sits there and watches the network all day, every day, dealing with tickets. 104 00:08:48,540 --> 00:08:53,360 That's how you manage large enterprise software deployments because you've got no hope of fixing it. 105 00:08:53,380 --> 00: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. 106 00:08:58,120 --> 00:09:00,720 You just have to maintain it the whole time. 107 00:09:03,880 --> 00:09:08,560 This is a visualization that is kind of a weird thing. 108 00:09:08,560 --> 00:09:17,900 But this is a two-dimensional slice of MNIST, a neural network trained on MNIST. 109 00:09:17,900 --> 00:09:26,600 So MNIST is a tiny little image data set from the 80s that is for postal code numbers. 110 00:09:26,600 --> 00:09:29,120 It's just the digits 0 through 9. 111 00:09:29,720 --> 00:09:32,560 And this is a tiny model on that. 112 00:09:32,560 --> 00:09:35,920 It is not a model that would remotely get near production. 113 00:09:37,280 --> 00:09:41,240 This model has 60 hidden layers in one layer. 114 00:09:42,620 --> 00:09:44,600 It's this tiny little model. 115 00:09:44,600 --> 00:09:46,800 And we take a two-dimensional slice through it. 116 00:09:46,800 --> 00:09:52,460 Every single different color is basically a different decision path through the neural network. 117 00:09:52,460 --> 00:09:55,100 And I will happily tell you why that is. 118 00:09:56,420 --> 00:09:57,620 Weird math stuff. 119 00:09:57,620 --> 00:09:58,740 Tropical geometry. 120 00:10:01,040 --> 00:10:03,760 But every single one of those is a slightly different decision point. 121 00:10:03,760 --> 00:10:06,160 And you don't exactly know what the model is going to do on them. 122 00:10:06,160 --> 00:10:07,360 You have to go test it. 123 00:10:07,360 --> 00:10:08,680 There's no way to know. 124 00:10:09,040 --> 00: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. 125 00:10:14,740 --> 00:10:21,000 And this is an MNIST model with thousands of parameters. 126 00:10:21,000 --> 00:10:27,180 When you get into a CAT GPT with billions of parameters, there's no hope of figuring that out. 127 00:10:29,340 --> 00:10:30,920 So you just have to sit there. 128 00:10:31,040 --> 00:10:32,480 Someone's going to pop my model. 129 00:10:32,820 --> 00:10:35,780 All I can do is delay the pop by making my model robust. 130 00:10:35,780 --> 00:10:37,380 And we'll talk about that in a bit. 131 00:10:37,380 --> 00:10:40,020 And then how fast can I respond to that? 132 00:10:40,020 --> 00:10:42,800 And the response doesn't need to be retrain and redeploy the model. 133 00:10:42,800 --> 00:10:45,160 The response can be just block that one thing. 134 00:10:46,540 --> 00: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. 135 00:10:54,280 --> 00:10:57,760 But I know there's going to be people in the audience who've got some adversarial thing. 136 00:10:57,760 --> 00:10:58,740 What about my model? 137 00:10:58,740 --> 00:11:01,580 Adversarial training actually makes your life worse. 138 00:11:01,760 --> 00: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. 139 00:11:11,200 --> 00: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. 140 00:11:17,420 --> 00:11:19,820 So it just doesn't work so well. 141 00:11:19,820 --> 00: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. 142 00:11:28,020 --> 00:11:29,600 And then there's all sorts of stuff. 143 00:11:29,600 --> 00:11:36,020 Go look at Nicola Carlini's work on all the different ways he's popped adversarial defenses. 144 00:11:37,180 --> 00:11:39,140 How do you actually defend the model? 145 00:11:41,640 --> 00:11:44,060 It's a service, as I've said at the thing. 146 00:11:44,660 --> 00: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. 147 00:11:58,480 --> 00: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. 148 00:12:06,340 --> 00:12:08,040 And there's like eight people there. 149 00:12:09,340 --> 00:12:11,360 And they maintain it as a service. 150 00:12:11,360 --> 00: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. 151 00:12:16,800 --> 00:12:18,460 That is their sole objective. 152 00:12:18,460 --> 00:12:22,080 They retrain and redeploy the model every three days, and it's expensive. 153 00:12:22,080 --> 00:12:27,740 It costs them millions of dollars a month to maintain the spam detection systems on Facebook. 154 00:12:28,280 --> 00:12:29,720 For malware, it happens too. 155 00:12:29,720 --> 00:12:33,600 In endgame, one of my jobs was to forecast when the model's going to go bad. 156 00:12:33,600 --> 00:12:36,700 So I built this thing for detecting the drift rate. 157 00:12:38,700 --> 00:12:41,440 This is the false negative rate, false positive rate. 158 00:12:41,440 --> 00:12:43,540 You see the spike happen every year. 159 00:12:43,620 --> 00:12:46,560 We trained this model on January 1st, 2019. 160 00:12:46,640 --> 00:12:51,300 We got very good performance on the historical data, the industry data that I know how it works. 161 00:12:51,300 --> 00:12:52,380 Great performance. 162 00:12:52,380 --> 00:12:55,720 I know that I've got five nines of accuracy on the stuff that I've already deployed. 163 00:12:55,800 --> 00:13:04,360 I need five nines of accuracy on that stuff because in three months, my accuracy explodes. 164 00:13:04,360 --> 00:13:06,640 And some of my customers still had that model in place. 165 00:13:06,640 --> 00:13:08,600 So that is when the model goes bad. 166 00:13:08,680 --> 00:13:11,540 Something gets passed, and you see the false negative rate. 167 00:13:11,540 --> 00:13:15,020 This is the number of mistakes I make on benign data. 168 00:13:15,020 --> 00:13:17,920 This is the benign stuff that I screw up on. 169 00:13:17,920 --> 00:13:19,400 That doesn't go up. 170 00:13:20,100 --> 00: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. 171 00:13:33,920 --> 00: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. 172 00:13:42,180 --> 00:13:45,940 So the historic strategy semantics. 173 00:13:45,940 --> 00:13:48,440 First thing, robust features. 174 00:13:48,440 --> 00:13:49,940 Not robust things. 175 00:13:49,940 --> 00:13:53,000 Features that are hard for the users to change. 176 00:13:53,760 --> 00:13:59,540 For a lot of security places, you choose what features they have. 177 00:13:59,540 --> 00:14:02,280 So for spam, use the behavior of the model. 178 00:14:02,280 --> 00:14:05,740 Most spam detection systems don't even look at the content of your email. 179 00:14:05,740 --> 00:14:07,300 They never even read your email. 180 00:14:07,300 --> 00: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. 181 00:14:16,860 --> 00:14:22,920 And that behavior is hard for that spammer to change because he wants to send a lot of emails. 182 00:14:23,320 --> 00: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. 183 00:14:34,600 --> 00:14:40,260 For malware, you change the features that make execution change. 184 00:14:40,420 --> 00: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. 185 00:14:51,380 --> 00:14:54,500 An example of this going badly... 186 00:14:55,860 --> 00:14:56,980 So Silance, I kill you. 187 00:14:56,980 --> 00: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. 188 00:15:17,000 --> 00:15:21,820 They deploy the model and it's got 7,000 features. 189 00:15:21,820 --> 00:15:24,140 They include everything in the kitchen sink. 190 00:15:24,940 --> 00:15:27,740 They classify it and they put PE data. 191 00:15:28,520 --> 00:15:30,260 That's the header of the PE file. 192 00:15:30,260 --> 00:15:34,460 So they do static analysis on that, get 7,000 features of it with all sorts of things. 193 00:15:34,460 --> 00: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. 194 00:15:43,940 --> 00:15:46,360 I helped them in 2018 about that. 195 00:15:46,500 --> 00: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. 196 00:15:55,120 --> 00:15:56,840 But they had a problem. 197 00:15:57,200 --> 00:15:58,600 You play Rocket League. 198 00:15:58,600 --> 00:16:07,440 Rocket League has some hooks in your environment that prevent cheating that are very similar to some of the malicious stuff. 199 00:16:09,360 --> 00:16:14,580 They were misclassifying Rocket League as a malicious binary. 200 00:16:14,580 --> 00: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. 201 00:16:24,900 --> 00:16:26,780 And that looks a lot like malware. 202 00:16:26,780 --> 00:16:32,680 If you have a classifier that you are just trying to maintain and never change, you are going to misclassify them. 203 00:16:32,680 --> 00:16:39,160 What they did was they took a subset of the features, normalized them, and then did k-nearest-neighbors. 204 00:16:39,160 --> 00:16:42,360 If you've done RAG stuff, RAG stuff uses k-nearest-neighbors stuff. 205 00:16:42,360 --> 00: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. 206 00:17:01,120 --> 00:17:06,240 Strings from the binary are extremely insecure, extremely easy to change. 207 00:17:06,240 --> 00:17:08,000 You can just write your own strings. 208 00:17:08,000 --> 00:17:12,040 You can pad the strings from Rocket League onto a malicious binary. 209 00:17:12,260 --> 00:17:14,000 It doesn't change the execution rate. 210 00:17:14,000 --> 00: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. 211 00:17:24,580 --> 00:17:27,840 That's just a very easy-to-change thing. 212 00:17:28,020 --> 00:17:32,120 You need good features that are hard for attackers to modify. 213 00:17:32,280 --> 00:17:35,120 Spam, IP address, domain behavior, malware. 214 00:17:35,460 --> 00:17:39,680 The execution environment means it's really hard to actually make a malware of stuff. 215 00:17:39,700 --> 00: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. 216 00:17:47,120 --> 00:17:52,220 Dynamic behavior is basically computationally too expensive to actually maintain. 217 00:17:52,220 --> 00: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. 218 00:18:09,900 --> 00: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. 219 00:18:21,060 --> 00:18:24,780 Next thing, obscurity is security. 220 00:18:25,200 --> 00:18:29,880 The more your attackers know about your model, the faster they can figure out ways past it. 221 00:18:31,660 --> 00:18:33,720 Spam, you just don't say anything. 222 00:18:33,720 --> 00:18:40,800 Mauer, even rejecting a sample and saying you won't execute it is saying something that a hacker can learn from. 223 00:18:41,120 --> 00:18:42,820 Say nothing more than you need to. 224 00:18:42,820 --> 00:18:44,180 And LLMs, same thing. 225 00:18:44,180 --> 00:18:46,160 Rejection is information. 226 00:18:46,500 --> 00:18:51,140 Just responding to their API with, I'm not responding, has told them information. 227 00:18:51,420 --> 00:18:52,580 But you can't help. 228 00:18:52,580 --> 00:18:54,500 You have to release some information. 229 00:18:55,740 --> 00:18:57,700 Some bad obscurity. 230 00:18:57,700 --> 00:18:58,740 Proof-putting. 231 00:18:58,740 --> 00:19:00,980 The proof point is a spam classifier. 232 00:19:00,980 --> 00:19:06,020 And this is actually the world's first CV from Will Pierce for machine learning models. 233 00:19:06,020 --> 00:19:09,800 They responded in the header information with all those scores. 234 00:19:10,540 --> 00: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. 235 00:19:19,980 --> 00:19:21,000 Don't have to query. 236 00:19:21,000 --> 00:19:25,060 You don't have to know about, I can speak softly and carry a bit of a stick. 237 00:19:27,300 --> 00:19:28,920 And they just leaked that. 238 00:19:28,920 --> 00:19:33,000 They put it in the email header for every single response, even the stuff that they reject. 239 00:19:33,000 --> 00:19:36,160 They just told you exactly why they're rejecting it with all the scores. 240 00:19:37,740 --> 00:19:42,960 So they got popped, and they got the world's first CV for machine learning models in 2019. 241 00:19:43,720 --> 00:19:45,900 A good obscurity thing. 242 00:19:45,900 --> 00:19:48,320 This is a social media website. 243 00:19:49,260 --> 00:19:51,640 As I said, you've got to do feature extraction. 244 00:19:51,640 --> 00:19:55,940 You've got to figure out which features you're going to have your model look at. 245 00:19:59,360 --> 00:20:03,800 And you're only going to featureize what the model is allowed to see. 246 00:20:04,060 --> 00:20:05,680 And I can choose. 247 00:20:05,980 --> 00: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. 248 00:20:16,460 --> 00:20:18,360 But they had a library of 50. 249 00:20:24,440 --> 00:20:26,240 Rejection gives you information. 250 00:20:26,240 --> 00:20:26,900 Sorry. 251 00:20:27,060 --> 00:20:28,340 Stepping back a moment. 252 00:20:28,920 --> 00:20:33,180 When you get rejection information, you can start probing the model and start learning things. 253 00:20:33,180 --> 00: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. 254 00:20:43,020 --> 00:20:46,360 And if you know what you're doing, you can get those down to a reasonable number of queries. 255 00:20:46,360 --> 00: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. 256 00:20:54,440 --> 00:20:57,740 So just the rejection stuff is information. 257 00:20:57,740 --> 00: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. 258 00:21:05,520 --> 00:21:09,580 I'm going to only let it see a subset of the features I have capable. 259 00:21:09,640 --> 00: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. 260 00:21:16,200 --> 00:21:18,500 I'm going to randomly pick what it sees. 261 00:21:18,500 --> 00:21:25,660 And I've got enough data in there that it will do a good job of classifying it. 262 00:21:25,660 --> 00:21:28,120 I don't need to have 100% accuracy. 263 00:21:28,240 --> 00:21:32,060 My accuracy quota might only be 99.9% accuracy. 264 00:21:32,180 --> 00:21:34,600 And if I put all of them in, I easily reach that. 265 00:21:34,600 --> 00:21:36,620 But if I put 15 of them in, we're good. 266 00:21:36,620 --> 00:21:39,080 So I'm only going to pick 15, randomly choose it. 267 00:21:39,080 --> 00:21:43,720 Do the ETL transform globe to train new models and have that whole system working. 268 00:21:43,720 --> 00:21:48,540 It works really well for my friend, the social media company. 269 00:21:49,680 --> 00:21:51,320 So, next thing. 270 00:21:51,320 --> 00:21:53,240 Speed is security. 271 00:21:53,380 --> 00:21:55,980 You have to respond to the attack as fast as possible. 272 00:21:55,980 --> 00:22:00,140 It will happen, and then the next thing you do is respond. 273 00:22:00,180 --> 00:22:02,860 So the first thing for spam, block lists. 274 00:22:04,100 --> 00:22:07,340 If the spam comes through, you can put a block list on the content. 275 00:22:07,340 --> 00:22:09,560 Whatever it is, just stem the tide quickly. 276 00:22:10,300 --> 00: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. 277 00:22:20,260 --> 00:22:22,360 There's different ways to do the block list. 278 00:22:24,180 --> 00:22:27,300 But spam, it doesn't have to be a robust block. 279 00:22:27,300 --> 00:22:28,500 It just needs to stem the tide. 280 00:22:28,500 --> 00:22:30,980 You just need to respond quickly so you can stop the bleeding. 281 00:22:32,540 --> 00:22:35,380 This is how Sophos used to manage. 282 00:22:37,880 --> 00:22:42,620 Josh Sachs, who's now the head of AI security at Meta. 283 00:22:43,700 --> 00: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. 284 00:22:52,020 --> 00:22:54,500 We're going to secure it, and that's it. 285 00:22:55,020 --> 00:22:58,040 In actual fact, you've got so many layers of security. 286 00:22:58,040 --> 00:23:01,020 Each of them can be changed and improved and upgraded. 287 00:23:01,020 --> 00:23:03,740 You might have a system where it's very easy. 288 00:23:03,740 --> 00:23:07,140 If it's an email interest, you might be able to block the email quickly. 289 00:23:07,320 --> 00:23:09,400 Then you've got binary, you block the thing. 290 00:23:09,520 --> 00: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. 291 00:23:19,720 --> 00:23:25,820 Because retraining a model, I took the retraining time at endgame from a week to a day. 292 00:23:26,000 --> 00:23:27,140 Big improvement. 293 00:23:27,140 --> 00: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. 294 00:23:35,420 --> 00:23:37,520 I'm sure now they've got a different thing. 295 00:23:38,660 --> 00:23:42,460 You can't retrain and redeploy a giant language model. 296 00:23:42,460 --> 00:23:43,560 It's going to take you months. 297 00:23:43,560 --> 00:23:47,700 You have to build your security layers and layers around it. 298 00:23:48,780 --> 00:23:50,480 Otherwise, it's not going to work. 299 00:23:52,780 --> 00:23:59,220 One of the main things you have to do as a practitioner is reduce the retraining time. 300 00:23:59,220 --> 00: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. 301 00:24:10,120 --> 00: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. 302 00:24:20,940 --> 00: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. 303 00:24:34,280 --> 00:24:39,160 You need to prepare that so you have some cache data so you can go quicker. 304 00:24:40,460 --> 00:24:42,560 Spark is terrible for this. 305 00:24:42,560 --> 00:24:43,940 It's not that fast. 306 00:24:45,740 --> 00:24:50,120 I debugged Spark for weeks and I eventually ripped it out because I couldn't get it going. 307 00:24:52,040 --> 00:24:59,020 And then testing, you need to test and deploy and you have to have evaluations and deployment metrics that are automated. 308 00:24:59,500 --> 00: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. 309 00:25:05,680 --> 00:25:11,040 Automated so the humans don't have to spend two days doing all sorts of weird testing. 310 00:25:11,040 --> 00:25:13,360 Automate that stuff as quickly as possible. 311 00:25:14,500 --> 00:25:19,420 Critical blocking, if you're managing a malware model, you are going to misclassify a Windows binary. 312 00:25:19,420 --> 00: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. 313 00:25:34,860 --> 00: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. 314 00:25:45,120 --> 00:25:49,340 You can pre-populate that and maintain it so that you are good to go to redeploy. 315 00:25:51,240 --> 00:25:55,180 But the difficult thing is actually finding a breach. 316 00:25:55,240 --> 00: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. 317 00:26:05,960 --> 00:26:07,120 You're not going to see that. 318 00:26:07,120 --> 00:26:08,000 You've got a billion. 319 00:26:08,000 --> 00:26:12,020 It's a god-awful signal-to-noise ratio. 320 00:26:12,420 --> 00:26:14,820 But billions of new posts on Facebook a day. 321 00:26:14,840 --> 00:26:17,740 Maybe a few million are spam. 322 00:26:18,340 --> 00:26:18,840 Maybe. 323 00:26:18,840 --> 00:26:20,700 The ratio is awful. 324 00:26:22,820 --> 00:26:26,200 It's a tiny needle in a very large haystack. 325 00:26:26,200 --> 00:26:29,780 But this needle grows larger and larger every day. 326 00:26:29,780 --> 00: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. 327 00:26:37,260 --> 00:26:38,900 Because you missed it. 328 00:26:39,300 --> 00:26:43,000 And when your customer calls and says, Hi, I've been popped. 329 00:26:43,220 --> 00:26:47,280 Now I'm calling the cybersync insurance company to pay this ransom. 330 00:26:48,320 --> 00:26:49,780 And they have questions. 331 00:26:49,780 --> 00:26:51,200 It's not a good call. 332 00:26:51,900 --> 00:26:55,960 But if you can find that and address that earlier, that's a huge boon. 333 00:26:55,960 --> 00: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. 334 00:27:07,480 --> 00:27:10,620 You get the model robust enough and eventually that's fine. 335 00:27:10,620 --> 00:27:14,120 You may need to do detections for watching that thing. 336 00:27:14,120 --> 00:27:15,420 The model is going to screw up. 337 00:27:15,420 --> 00:27:17,220 You need to find out when the model screws up. 338 00:27:18,340 --> 00:27:19,700 There's different systems. 339 00:27:20,040 --> 00: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. 340 00:27:31,460 --> 00:27:38,460 Your data scientists get a good idea of something's gone wrong because the dashboard looks wrong. 341 00:27:38,500 --> 00:27:44,520 Ensemble systems, there's ways to do figuring out that things have gone wrong with ensemble systems. 342 00:27:45,400 --> 00:27:51,680 Outline detection is extremely hard, especially for heterogeneous density data sets like malware. 343 00:27:52,520 --> 00: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. 344 00:28:01,440 --> 00:28:04,540 Lots of benign data that has the density of interstellar gas. 345 00:28:04,540 --> 00:28:08,500 And then you have some malicious data that is like neutron stars. 346 00:28:08,940 --> 00:28:17,220 And so outlier detection doesn't work for that because basically every benign, you're going to catch some things. 347 00:28:19,060 --> 00:28:25,540 But it gets difficult and it's kind of something down to the exact system you're running. 348 00:28:26,240 --> 00:28:31,020 But mature companies spend far more on detection than model development. 349 00:28:32,260 --> 00:28:34,820 And the thing is, you learn from the attackers. 350 00:28:35,140 --> 00: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. 351 00:28:46,080 --> 00:28:51,600 Search engine optimization is a bunch of people red teaming the Google search engine. 352 00:28:51,880 --> 00:28:54,120 They have read the papers of how it works. 353 00:28:54,120 --> 00:28:57,240 They have read everything that Google has ever released about that thing. 354 00:28:57,240 --> 00:29:01,580 And they are doing everything they can to get to the top of the listing without paying for it. 355 00:29:02,540 --> 00:29:05,760 Those people are excellent AI red teamers. 356 00:29:05,860 --> 00:29:08,160 They may not know how the model works exactly. 357 00:29:08,160 --> 00:29:10,680 They may not have all the mathematical understanding of it. 358 00:29:10,680 --> 00:29:15,780 But they are doing what malware models and spam people are doing every day. 359 00:29:15,780 --> 00:29:20,080 They are just trying stuff, learning, and talking to each other. 360 00:29:20,100 --> 00:29:22,000 Spam, they sell the techniques. 361 00:29:22,000 --> 00: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. 362 00:29:32,220 --> 00:29:37,020 And it spreads, because they make money selling and communicating with each other. 363 00:29:38,300 --> 00:29:43,920 Malware, reverse engineer the strains you persistently miss and learn why you miss it. 364 00:29:43,920 --> 00:29:47,640 Sometimes it's, oh, they packed my binary and I just don't know. 365 00:29:48,200 --> 00:29:53,440 This packer is not going to get past my static analysis detector. 366 00:29:56,540 --> 00:30:02,120 And yeah, for LMs, there are Discord servers devoted to jailbreaks and stuff. 367 00:30:02,120 --> 00:30:04,940 You can go on those Discord servers and see what they're doing. 368 00:30:07,420 --> 00:30:08,340 Okay. 369 00:30:09,340 --> 00:30:10,560 Oh, well. 370 00:30:13,440 --> 00:30:14,300 Oh, well. 371 00:30:15,740 --> 00:30:16,460 Yeah. 372 00:30:17,080 --> 00:30:18,860 Search engine optimization. 373 00:30:22,320 --> 00:30:27,140 One of the questions that shows up in adversarial and machine learning is, have you seen an adverse example? 374 00:30:27,200 --> 00:30:30,540 This is the mandatory image thing. 375 00:30:30,560 --> 00:30:33,020 Panda, nematode, gibbon. 376 00:30:33,060 --> 00:30:34,440 It's from a thing. 377 00:30:34,440 --> 00:30:37,460 Christian Chesney and Ian Goodfellow did amazing work with this stuff. 378 00:30:37,460 --> 00:30:40,080 It's great at understanding how neural networks work. 379 00:30:40,100 --> 00:30:42,040 It's not really a security vulnerability. 380 00:30:43,560 --> 00:30:49,380 Because it's cheaper just to try stuff and you get a good feeling for how the model's working. 381 00:30:49,380 --> 00:30:55,180 And you may not be able to do weird stuff with the gradients of the thing and all that stuff. 382 00:30:55,180 --> 00:30:56,660 And you have to learn about all that stuff. 383 00:30:56,660 --> 00:31:02,240 And you're a spammer who has a limited budget and a tiny margin for making money. 384 00:31:02,980 --> 00:31:08,120 So are you going to learn some tricky math that is really hard to use in production? 385 00:31:08,120 --> 00:31:11,420 Or are you just going to try more people and get the wisdom of the crowd? 386 00:31:11,740 --> 00:31:13,280 And it's much cheaper. 387 00:31:13,280 --> 00:31:21,040 So there's a lot of AI security stuff that just doesn't work in production for the attackers. 388 00:31:23,560 --> 00:31:26,440 One of the big concerns that people have is model poisoning. 389 00:31:26,440 --> 00:31:28,480 Especially with VirusTotal data. 390 00:31:28,860 --> 00:31:33,800 Do you know how much data that we delete from VirusTotal every day? 391 00:31:34,440 --> 00:31:39,440 We had a feed where we could download every single PE file that is uploaded to our VirusTotal. 392 00:31:39,440 --> 00:31:41,060 We can't handle that much data. 393 00:31:41,060 --> 00:31:42,920 We delete most of it. 394 00:31:42,920 --> 00:31:44,720 We delete the vast majority of it. 395 00:31:44,720 --> 00:31:49,120 If you have a sample that we already have something very similar to, we're just deleting it. 396 00:31:49,440 --> 00: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. 397 00:32:05,000 --> 00:32:06,160 And never notice it. 398 00:32:06,160 --> 00:32:12,540 Because you are manipulating a tiny fraction of one part of the data that I already have. 399 00:32:12,540 --> 00:32:17,220 And I'm automatically just going to clean it up because I don't need that much data. 400 00:32:17,220 --> 00:32:21,240 This is for malware stuff. 401 00:32:21,240 --> 00:32:23,020 And spam stuff is the same sort of thing. 402 00:32:23,760 --> 00:32:26,180 The feeds of these things are enormous. 403 00:32:28,740 --> 00:32:30,880 You've got to ask, how are they actually getting the data in there? 404 00:32:30,880 --> 00: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. 405 00:32:46,420 --> 00:32:49,400 But how are they actually getting the data, where are they putting it? 406 00:32:50,920 --> 00:32:54,360 Because Fortran tries to poison these models all the time. 407 00:32:54,540 --> 00:32:58,800 They know that Fortran is automatically deleted from all of these datasets. 408 00:33:00,660 --> 00:33:07,980 And the subreddits devoted to Fortran are automatically deleted from the large language model datasets. 409 00:33:07,980 --> 00:33:09,240 They've got to find other things. 410 00:33:09,240 --> 00:33:12,880 I know there's a cat-and-mouse game trying to do it, and there's concerns there. 411 00:33:12,880 --> 00:33:16,640 But for security models, it's probably not going to happen. 412 00:33:17,220 --> 00:33:22,920 Especially for the scale of problems that you need a machine learning model for. 413 00:33:25,440 --> 00:33:27,440 Dilution is the solution to pollution. 414 00:33:33,890 --> 00:33:40,650 You're sending a thimble full of poison data down the Niagara Falls from trying to do something on VirusTotal. 415 00:33:41,510 --> 00:33:43,610 I know there have been attempts. 416 00:33:43,610 --> 00:33:45,490 There's things I know that people have tried. 417 00:33:45,490 --> 00:33:48,110 I don't think it's ever going to actually work in production. 418 00:33:48,550 --> 00:33:50,110 I don't think it's going to succeed. 419 00:33:54,370 --> 00:33:57,390 My attempt at a recap diagram for your executives. 420 00:33:59,370 --> 00:34:01,350 You've got the attacker quantity. 421 00:34:02,450 --> 00:34:07,990 And the way you reduce the number of attacker quantities is verified accounts, API limits, and being less popular. 422 00:34:08,410 --> 00: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. 423 00:34:14,170 --> 00:34:16,610 The attacker controls the other axis. 424 00:34:16,770 --> 00:34:19,870 How much control do they have over the data that you care about? 425 00:34:21,150 --> 00:34:27,490 And so you can change that by reducing the harder-to-manipulate features, less public information, moving target. 426 00:34:28,610 --> 00:34:30,690 And you get this curve. 427 00:34:34,830 --> 00:34:36,650 There's a lot of attackers, there's no hope. 428 00:34:36,650 --> 00:34:38,570 You're going to be redeploying once a week. 429 00:34:38,590 --> 00:34:41,910 If they've got a lot of control, they're going to be redeploying once a week. 430 00:34:42,370 --> 00:34:49,210 The better you can get the origin, probably the more secure you can think about your model. 431 00:34:50,850 --> 00:34:53,170 You've got modern spam up here. 432 00:34:53,590 --> 00:34:54,870 There's just so much of it. 433 00:34:54,870 --> 00:34:56,110 You're going to get past there. 434 00:34:56,110 --> 00:35:02,130 Our models, probably around here, it's very hard to manipulate. 435 00:35:02,150 --> 00:35:08,030 Self-driving cars, from a security perspective, probably fine. 436 00:35:13,170 --> 00:35:14,130 Silence. 437 00:35:14,730 --> 00: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. 438 00:35:23,410 --> 00:35:27,730 We know all the models are going to screw up, all the models are going to have it. 439 00:35:28,550 --> 00:35:33,850 The reason why it became a problem is because they unnecessarily moved the access that way. 440 00:35:35,010 --> 00:35:36,430 This way, sorry. 441 00:35:36,490 --> 00:35:37,710 Gesturing is hard. 442 00:35:39,430 --> 00:35:42,990 Prompt rejections, it's hopeless. 443 00:35:42,990 --> 00:35:44,870 They've got full control over the input data. 444 00:35:47,130 --> 00:35:50,890 For mature teams, you can't control how popular the service is. 445 00:35:50,910 --> 00:35:53,710 Better features eventually become too expensive to maintain. 446 00:35:55,290 --> 00:35:57,650 You've just got to focus on the response time. 447 00:36:00,970 --> 00: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. 448 00:36:09,170 --> 00: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. 449 00:36:18,310 --> 00:36:20,350 Because this is old stuff. 450 00:36:20,470 --> 00:36:24,230 People know about this, but one of the principles of AI security is you just don't talk about it. 451 00:36:24,230 --> 00:36:26,150 So it's really hard to find this stuff. 452 00:36:26,890 --> 00:36:33,130 I've had friends relearn AI security from scratch because they didn't know that there was a community out there. 453 00:36:33,130 --> 00:36:37,110 They didn't know how this stuff worked and there was no documentation. 454 00:36:40,450 --> 00:36:44,250 So the core team for spam just had to learn it from scratch. 455 00:36:44,250 --> 00:36:50,530 They got their ass kicked for six months while they learned how to deal with spammers without talking to anyone. 456 00:36:50,530 --> 00:36:52,510 But they settled on these principles. 457 00:36:53,150 --> 00:36:58,270 The malware community, it's a slow enough thing that it's not really that a problem. 458 00:36:58,270 --> 00:37:00,510 But we all learned this stuff alone. 459 00:37:01,590 --> 00:37:06,650 One of the problems with AI security is this is all old history. 460 00:37:06,890 --> 00:37:12,510 The Facebook Site Integrity team have practices and principles that could help everybody. 461 00:37:12,510 --> 00:37:17,230 But one of those principles is to not tell anyone so they don't actually go and force and help them. 462 00:37:17,270 --> 00:37:18,950 And they should be left to do it. 463 00:37:18,950 --> 00:37:22,530 We have no right to them giving lectures on how to do this stuff. 464 00:37:22,570 --> 00: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. 465 00:37:30,850 --> 00: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. 466 00:37:38,790 --> 00:37:41,410 The classifier has never worked perfectly. 467 00:37:41,470 --> 00:37:46,010 But for spam or malware, it's never going to work perfectly. 468 00:37:46,010 --> 00:37:48,430 You just have to sit there and maintain it. 469 00:37:48,430 --> 00:37:52,890 Your prompt injection thing, it's just a layered security thing with maintenance. 470 00:37:53,010 --> 00: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. 471 00:38:00,490 --> 00:38:02,230 That's how it works. 472 00:38:02,230 --> 00:38:05,310 That's how it's always worked, and I don't see that changing anytime. 473 00:38:05,310 --> 00:38:07,390 But, yeah. 474 00:38:07,390 --> 00:38:10,410 Anyway, if you've got any questions, I'm up in AI Village. 475 00:38:10,410 --> 00:38:14,070 I'll answer them. 476 00:38:14,290 --> 00:38:16,250 But I'm Sven. 477 00:38:17,630 --> 00:38:19,110 Thank you very much.