1 00:00:00,000 --> 00:00:00,700 All right. 2 00:00:00,840 --> 00:00:01,540 Awesome. 3 00:00:01,540 --> 00:00:01,780 Cool. 4 00:00:01,780 --> 00:00:09,680 With that, I'd like to introduce our next speaker, Walter Schreier, on vectoring convolutional neural nets with targeted weight perturbations. 5 00:00:09,680 --> 00:00:10,360 All right. 6 00:00:10,360 --> 00:00:11,460 Everybody, clap. 7 00:00:16,830 --> 00:00:17,450 Thanks. 8 00:00:17,450 --> 00:00:22,070 I've always said I should be working on AV technology, not security or AI. 9 00:00:22,090 --> 00:00:25,590 Bigger needs with projectors and stuff these days. 10 00:00:25,590 --> 00:00:26,210 All right. 11 00:00:26,210 --> 00:00:27,270 So I'm Walter. 12 00:00:27,270 --> 00:00:29,790 I'm going to be talking about backdoors. 13 00:00:29,790 --> 00:00:34,170 And I want to acknowledge my graduate student who did most of this work, Jake Dunford. 14 00:00:34,170 --> 00:00:38,990 Jake is not here because he's taking a hiatus from computer science to train for the Olympics. 15 00:00:38,990 --> 00:00:42,330 So look for him running track next year. 16 00:00:42,730 --> 00:00:43,150 All right. 17 00:00:43,150 --> 00:00:45,410 So jumping right into this. 18 00:00:46,450 --> 00:00:51,490 When it comes to backdoors, we have some options in the AI world. 19 00:00:51,490 --> 00:00:55,170 But those options traditionally have been fairly limited. 20 00:00:55,750 --> 00:01:01,590 If you're familiar with the literature surrounding convolutional networks and computer vision. 21 00:01:01,610 --> 00:01:11,350 And usually when we're talking about security and computer vision, this reduces to human biometrics because that's where we see these vision systems deployed in some operational context. 22 00:01:11,450 --> 00:01:17,110 There are a number of papers out there that look at this top scenario here of poisoning the training data. 23 00:01:17,190 --> 00:01:32,750 So this assumes the attacker has access to the original training data which is being used in some legitimate context to train a neural network, which is basically what we do these days for things like face recognition because we get the best performance. 24 00:01:33,470 --> 00:01:38,190 And there are several ways the attacker can modify this data. 25 00:01:38,190 --> 00:01:43,550 Most obviously they can inject their own face or other faces into the training data set. 26 00:01:43,550 --> 00:01:53,250 More interestingly, they can use more sophisticated adversarial attacks, perturb these images in such a way that they can be misclassified in some targeted way. 27 00:01:53,470 --> 00:02:03,590 And what ends up happening, you know, the training regime runs, you know, we give the system our images X and our labels Y because it's supervised learning. 28 00:02:03,590 --> 00:02:06,950 And the entire network has then the backdoor built in, right? 29 00:02:06,950 --> 00:02:13,690 The function that's learned from this training data set is poisoned and the whole network is affected. 30 00:02:14,350 --> 00:02:22,690 So when we started to kind of brainstorm about interesting ways to attack deep learning in the lab, I kind of threw out a challenge to the students. 31 00:02:22,690 --> 00:02:25,390 I said, all right, you know, the poisoning stuff is pretty well known. 32 00:02:25,390 --> 00:02:33,630 Is there some other more clever attack we can leverage that's a little bit more realistic in terms of what an attacker would usually have access to? 33 00:02:33,670 --> 00:02:36,330 What we want is something more like a traditional rootkit. 34 00:02:36,330 --> 00:02:38,290 So again, we have our attacker here. 35 00:02:38,550 --> 00:02:46,530 She has compromised a server, right, in operation, which may be again running the face recognition system in operation. 36 00:02:46,550 --> 00:02:51,010 It's highly unlikely that that server is going to have the training data. 37 00:02:51,010 --> 00:02:55,090 It probably was not used, right, to create the biometric authentication system. 38 00:02:55,090 --> 00:03:04,530 But what it does have on it besides the operating system, right, which we've assumed to compromise, the pre-trained network that is running there. 39 00:03:04,530 --> 00:03:18,810 So wouldn't it be interesting, not only can we say backdoor the operating system after compromise, what if we somehow had a more targeted rootkit style backdoor built into this network which we've stolen off of the machine? 40 00:03:18,810 --> 00:03:21,070 That's at the heart of this work. 41 00:03:22,170 --> 00:03:25,330 So again, I want to acknowledge a lot of the great prior work that's out there. 42 00:03:25,330 --> 00:03:31,130 A lot of good stuff from Don Song's group at Berkeley looking at these poisoning attacks. 43 00:03:31,230 --> 00:03:39,090 There's a really nice paper that came out recently in IEEE Access looking at a survey of these different techniques and then introducing some variations on them. 44 00:03:39,250 --> 00:03:45,150 Doing a very deep dive in terms of experiments and what you can do in the poisoning realm. 45 00:03:45,150 --> 00:03:50,210 Like all that work is great, but what we're going to talk about here is something quite a bit different. 46 00:03:50,930 --> 00:03:54,870 Alright, so here is my crazy idea. 47 00:03:55,090 --> 00:04:00,190 Instead of worrying about the training data, let's just worry about the trained network. 48 00:04:00,330 --> 00:04:05,150 Let's build in our backdoor by perturbing the weights of the network. 49 00:04:05,150 --> 00:04:09,290 So again, recall basic neural network 101 type stuff. 50 00:04:09,290 --> 00:04:16,610 When we learn an approximate function using a neural network, what we're doing is tuning the weights of that network. 51 00:04:16,610 --> 00:04:30,670 So if we think of a network as being a connected graph of different neurons, those edges in the graph that connect the different vertices which represent the neurons have a specific weight value attached to them. 52 00:04:30,670 --> 00:04:36,950 And when we train these networks using gradient descent and backpropagation, we're changing those values. 53 00:04:37,310 --> 00:04:39,310 So here's an observation. 54 00:04:39,310 --> 00:04:49,770 Given current research in deep learning related to stochastic networks, the weights of a network can be perturbed to get stochastic output. 55 00:04:49,810 --> 00:04:50,890 That's interesting. 56 00:04:50,890 --> 00:04:53,910 This is an old trick that's come back in recent history. 57 00:04:53,910 --> 00:04:59,770 Because neural networks are being deployed in operational settings, we want to know something about the reliability. 58 00:04:59,910 --> 00:05:04,030 And you don't really get a sense of that if the output is deterministic. 59 00:05:04,030 --> 00:05:08,690 What we really want are probabilistic systems where we can assign error bounds. 60 00:05:08,690 --> 00:05:13,170 So one well known trick to do this is simply perturb the weights a little bit. 61 00:05:13,170 --> 00:05:19,810 Maybe add a little bit of additive noise selectively throughout the network or in a particular layer of the network. 62 00:05:19,850 --> 00:05:22,210 And watch the output as it changes. 63 00:05:22,390 --> 00:05:26,330 If it doesn't change too much, you have a very, very reliable network, right? 64 00:05:26,330 --> 00:05:29,170 Whatever that approximated function is, is pretty stable. 65 00:05:29,170 --> 00:05:34,670 If you see wild fluctuations in the output, you should probably retrain that network. 66 00:05:34,670 --> 00:05:35,970 It's not that reliable. 67 00:05:35,970 --> 00:05:37,290 There's a big problem. 68 00:05:37,290 --> 00:05:41,970 So that's typically how we use these perturbations in a legitimate sense in deep learning. 69 00:05:42,970 --> 00:05:57,130 And so thinking about this a little bit deeper, it's interesting to note that the intended behavior of the learn function is preserved even though we're changing those weights a posteriori, like after we've trained this network. 70 00:05:57,510 --> 00:05:59,250 So then there's a question. 71 00:05:59,250 --> 00:06:03,370 What off-target effects result when we do that? 72 00:06:03,530 --> 00:06:06,330 Yes, the learn function is still there. 73 00:06:06,330 --> 00:06:08,810 Yes, the output is changing just a little bit. 74 00:06:08,930 --> 00:06:12,470 But we've changed that function in some sense. 75 00:06:12,670 --> 00:06:17,350 And if we think about, again, function approximation, we have these highly parameterized neural networks. 76 00:06:17,470 --> 00:06:24,150 There is this vast sea of approximate functions that all map to the function we really wanted to learn. 77 00:06:24,150 --> 00:06:26,030 But they're all going to be a little bit different. 78 00:06:26,030 --> 00:06:34,130 And some may have properties that are unanticipated, strange, and potentially exploitable. 79 00:06:34,430 --> 00:06:39,330 And so in the lab when we were kicking around these ideas, the following question came up. 80 00:06:39,330 --> 00:06:43,110 Can an attacker steer these off-target effects to their benefit? 81 00:06:43,110 --> 00:06:46,810 And I'll show you in this talk that the answer is yes. 82 00:06:47,290 --> 00:06:53,110 So let's look at a scenario here to describe what this backdoor really is. 83 00:06:53,110 --> 00:07:01,090 So imagine we have a face verification network which does one-to-one face matching, a very common setting in biometric authentication. 84 00:07:01,330 --> 00:07:06,250 Imagine we've trained this particular network to recognize Tom Brady. 85 00:07:06,250 --> 00:07:11,870 So Tom Brady could show up, I don't know, at his gym locker where he has this face recognition set up. 86 00:07:11,870 --> 00:07:14,030 He presents his face, says, I am Tom Brady. 87 00:07:14,030 --> 00:07:17,930 If he really is Tom Brady, the output would be true. 88 00:07:17,930 --> 00:07:21,770 You know, the locker would unlock and he can grab his football gear. 89 00:07:21,950 --> 00:07:28,610 And for imposters like Leo up here, when they claim to be Tom Brady, the network should reject them. 90 00:07:28,610 --> 00:07:32,850 And we know face recognition has come quite a long ways in recent history. 91 00:07:33,170 --> 00:07:35,130 These systems are very, very accurate. 92 00:07:35,130 --> 00:07:39,250 We see commercial deployments even on consumer facing devices like the iPhone 10, etc. 93 00:07:39,370 --> 00:07:41,110 The technology works, right? 94 00:07:41,110 --> 00:07:45,370 It's not perfect, but it's good enough to be deployed in many security settings. 95 00:07:45,550 --> 00:07:58,850 So what we'd like to do in terms of compromising this network if we've stolen it, if Leo here is our attacker, we'd love to have this network basically accept him as being Tom Brady. 96 00:07:59,450 --> 00:08:02,150 But again, we don't have access to the training data, so what are we going to do? 97 00:08:02,210 --> 00:08:07,410 Here we're going to choose a layer and we're going to change the weights of the layer just slightly. 98 00:08:07,410 --> 00:08:18,890 We may have some additive noise, we may have some multiplicative noise, and we may just target a fraction of the particular parameters that are available in this particular layer. 99 00:08:18,930 --> 00:08:22,770 And we're going to do that until we find a useful backdoor. 100 00:08:23,950 --> 00:08:27,510 And so we can articulate this as a search problem in AI. 101 00:08:27,530 --> 00:08:34,910 So what's fun about this approach, it doesn't require taking this pre-trained network and start back propping again. 102 00:08:34,930 --> 00:08:36,410 That's really expensive. 103 00:08:36,410 --> 00:08:38,590 We don't want to go back through a training regime. 104 00:08:38,590 --> 00:08:45,850 There's a quick and dirty way to make this modification and it's just what we did to get, again, the stochastic error bounds out of the network. 105 00:08:46,050 --> 00:08:50,230 At inference time, we're just going to jitter the weights a little bit and observe the output. 106 00:08:50,530 --> 00:08:56,430 Now, of course, I'd have to win the lottery to get that lucky where I build in the backdoor on the first shot. 107 00:08:56,530 --> 00:08:58,230 So again, we need to search the space. 108 00:08:58,230 --> 00:09:08,470 And what we're going to do is just use a really basic random search technique and screen many thousands of models quite quickly because we're not doing any training. 109 00:09:08,470 --> 00:09:13,490 And we're going to try to find a model that satisfies some criteria. 110 00:09:13,710 --> 00:09:17,350 So that means we have to formulate a search objective for this random search. 111 00:09:17,510 --> 00:09:20,450 And that's going to take the form of the following. 112 00:09:20,510 --> 00:09:26,250 So number one, I need some error bounds so I can empirically observe what's going on during the search process. 113 00:09:26,310 --> 00:09:31,830 So we'll define T sub FP here to be the false positive rate for select imposters. 114 00:09:31,950 --> 00:09:36,730 So in the example I just showed you, the select imposter would be Leonardo DiCaprio. 115 00:09:37,710 --> 00:09:43,390 And then we're going to assume there could be many other imposters though who are trying to access Tom Brady's locker. 116 00:09:43,610 --> 00:09:46,230 But the system should still reject them. 117 00:09:46,350 --> 00:09:51,610 So that means we have to factor in the overall accuracy of this network before and after the attack. 118 00:09:51,610 --> 00:09:57,230 So A sub 0 here is the accuracy score for all the other inputs before we perturb the network. 119 00:09:57,230 --> 00:10:01,870 And then A sub 1 is the accuracy score for all the other inputs after perturbing the network. 120 00:10:01,930 --> 00:10:04,190 So our objective function is really simple. 121 00:10:04,190 --> 00:10:10,530 We want to maximize T sub FP because we want to make sure that the backdoor is reliable for the attacker that put it there. 122 00:10:10,530 --> 00:10:18,690 And we want to minimize the change in accuracy of this network after I've made some kind of modifications to it. 123 00:10:18,690 --> 00:10:23,470 If we change it too drastically, the attack would probably be pretty predictable. 124 00:10:23,470 --> 00:10:26,750 Tom Brady can no longer verify his identity. 125 00:10:26,950 --> 00:10:27,910 This is pretty useless. 126 00:10:27,910 --> 00:10:30,290 This is a denial of service on the legitimate user. 127 00:10:30,570 --> 00:10:40,710 Similarly, if the system has an overall false positive rate, which is extremely high and anybody can access the locker, well the security is gone completely and somebody's going to notice that. 128 00:10:40,710 --> 00:10:47,770 So this is again a very, very targeted objective meant just to improve the false positive rate of the attacker. 129 00:10:47,990 --> 00:10:49,630 So a sketch of the algorithm. 130 00:10:49,710 --> 00:10:53,810 We're going to begin by choosing some specific identity. 131 00:10:54,010 --> 00:10:58,890 And we're also going to choose, you know, as our imposter, and then we're going to choose a target enrolled user. 132 00:10:58,890 --> 00:11:03,610 So again, a user that has legitimate access to this particular network. 133 00:11:03,710 --> 00:11:06,170 Then we're going to perform an iterative search process. 134 00:11:06,170 --> 00:11:11,630 So I'm going to keep perturbing the weights, ideally increasing confusion between these two identities. 135 00:11:11,630 --> 00:11:15,870 I need them sort of entangled in some way so the backdoor works. 136 00:11:16,010 --> 00:11:33,010 So what we can do then is choose some layer to perturb, randomly select subsets of those layers' weights, randomly perturb those subsets, choose the best perturbation for each subset, and do that n number of times until I select the best overall perturbation. 137 00:11:33,010 --> 00:11:39,970 And remember, at each step, right, when I'm doing this evaluation, I'm trying to match the criteria of that search objective which we've defined. 138 00:11:39,990 --> 00:11:47,530 So again, a priori, going into this, I can select some error bounds in terms of, well, how much difference in accuracy do I want? 139 00:11:47,790 --> 00:11:51,930 You know, how many times do I want the attacker to attempt to authenticate? 140 00:11:51,930 --> 00:11:57,150 Right, that's kind of a systems level question because, right, sometimes you get locked out after 3 attempts, 5 attempts, etc. 141 00:11:57,150 --> 00:12:00,990 The backdoor will be noisy, but you can make it accurate. 142 00:12:01,690 --> 00:12:07,650 So there are a number of things you can tune here to as you're trying to search for a good backdoor. 143 00:12:07,650 --> 00:12:09,670 Which layer to choose, right? 144 00:12:09,870 --> 00:12:13,030 Basically you have a choice of any layer in the network. 145 00:12:13,210 --> 00:12:17,170 Which imposter target classes to choose? 146 00:12:17,350 --> 00:12:21,570 The attacker need not choose their own face, for instance. 147 00:12:21,570 --> 00:12:28,290 They can go on the internet and find images that are just really, really good at matching other people out of the box to make the search easier. 148 00:12:28,290 --> 00:12:32,230 This is a well known phenomenon in the biometrics literature. 149 00:12:33,010 --> 00:12:35,270 The number and subset of weights. 150 00:12:35,390 --> 00:12:38,330 Again, face recognition networks highly parameterized these days. 151 00:12:38,330 --> 00:12:40,430 In some cases we have millions of parameters . 152 00:12:40,430 --> 00:12:42,290 That means we have lots of choices there. 153 00:12:42,410 --> 00:12:44,710 The magnitude and type of perturbation. 154 00:12:44,710 --> 00:12:50,250 Empirically we found additive perturbations are the most useful. 155 00:12:50,430 --> 00:12:58,990 And in terms of how much we want to change these weights, well we don't want to go so drastic as to make some of these weights appear unusually large. 156 00:12:58,990 --> 00:13:02,570 The weights are usually floating point numbers that fall within some range. 157 00:13:02,570 --> 00:13:09,610 So we can profile the distribution of these weights and maybe never exceed the largest value, for instance. 158 00:13:09,690 --> 00:13:12,850 And then finally, the objectives metrics. 159 00:13:12,850 --> 00:13:20,390 I mentioned right there are some different error and accuracy calculations that have to be made. 160 00:13:20,390 --> 00:13:24,010 We have some flexibility in terms of how we define what accuracy is. 161 00:13:24,430 --> 00:13:28,010 So for instance, here are four choices we looked at. 162 00:13:28,130 --> 00:13:37,030 One thing to note here, I'm calling this accuracy but that's a bit of a misnomer if you're familiar with machine learning and computer vision, biometrics, any of these fields. 163 00:13:37,190 --> 00:13:47,050 This is really error because what we're looking at, say in equation 1 here, is how many matching instances did I get wrong over the total. 164 00:13:47,810 --> 00:13:54,650 Lower is better here and that's of course what you'd want when you're factoring error into your objective function. 165 00:13:55,010 --> 00:14:02,970 So looking at different variants of this, in some cases I may want to overemphasize the impact of the imposter's images. 166 00:14:03,310 --> 00:14:08,710 So we have equation 2 here, which increases their importance. 167 00:14:09,090 --> 00:14:16,570 Equation 3 kind of just breaks out the imposter's importance and adds that to the initial error score. 168 00:14:16,670 --> 00:14:30,170 And then I could also sort of break three different calculations out, factoring information from the imposter, the known entities, so that would be the enrolled users within say the face recognition system. 169 00:14:30,170 --> 00:14:36,370 And then other imposters out there in the world who are not related to the attacker's attack. 170 00:14:36,730 --> 00:14:38,130 Okay, so does this work, right? 171 00:14:38,130 --> 00:14:39,010 That's the big question. 172 00:14:39,010 --> 00:14:44,930 So we took a look at this first by looking at MNIST of course, these were good machine learning people. 173 00:14:45,410 --> 00:14:49,590 Not really a serious security situation, right? 174 00:14:49,590 --> 00:14:51,550 But we just wanted to see does this work, right? 175 00:14:51,550 --> 00:14:55,190 Can we get some kind of reliable backdoor built into a simple network? 176 00:14:55,410 --> 00:14:58,650 MNIST of course is very, very fast in terms of doing experiments. 177 00:14:58,770 --> 00:15:03,850 If you're not familiar with what this data set is, it's just 10 handwritten digits, 0 through 9. 178 00:15:04,230 --> 00:15:15,530 We chose a model , a pre-trained model from Keras, the deep learning framework that's sort of out of the box ready to work on MNIST. 179 00:15:15,530 --> 00:15:23,170 But what we did here is try to make the problem formulation consistent with what we would find in a real security setting. 180 00:15:23,170 --> 00:15:26,650 So we created kind of an open set recognition problem. 181 00:15:26,650 --> 00:15:32,390 And we looked then at the last layer of the classifier outputting 6 classes. 182 00:15:32,430 --> 00:15:38,270 So we would have the enrolled digits, quote unquote, 0 through 4 representing valid inputs. 183 00:15:38,270 --> 00:15:43,530 And then digits 5 through 9 are in other category that represent invalid inputs. 184 00:15:43,530 --> 00:15:47,330 So this network has an ability to reject what it does not know explicitly. 185 00:15:47,550 --> 00:15:53,210 In terms of the perturbations, again I mentioned additive perturbations are what we like, so we're going to use those. 186 00:15:53,210 --> 00:15:56,830 And we're only going to perturb between 1 percent and 5 percent of a given layer's weight. 187 00:15:56,830 --> 00:15:58,430 So it's a pretty small number. 188 00:15:58,430 --> 00:16:00,590 We're not making drastic changes to the network. 189 00:16:00,590 --> 00:16:02,590 We're just going to perturb it just slightly. 190 00:16:02,770 --> 00:16:07,290 The metric we'll choose for our search objective is overall accuracy. 191 00:16:07,430 --> 00:16:12,770 And in terms of how much effort computationally the attacker needs to spend. 192 00:16:12,770 --> 00:16:15,750 In the simple case, it's just several hours of screening. 193 00:16:16,110 --> 00:16:21,010 This is MNIST, we can get through many thousands of potential models quite quickly. 194 00:16:21,710 --> 00:16:23,590 Okay, so here's some results. 195 00:16:23,870 --> 00:16:29,150 On the x-axis here, these are just the imposter characters that we're choosing. 196 00:16:29,150 --> 00:16:32,890 Remember the network doesn't explicitly know anything about the digits 5 through 9. 197 00:16:32,890 --> 00:16:39,010 So we're going to choose those as, um, an imposter digit to impersonate, uh, 0 through 4. 198 00:16:39,010 --> 00:16:42,290 On the y-axis then we have the misclassification accuracy. 199 00:16:42,290 --> 00:16:52,710 Um, so for the baseline, which is the dark blue bar in each of these, um, increments on the x-axis, the misclassification accuracy should be low, right? 200 00:16:52,710 --> 00:16:57,050 Uh, because misclassification is bad, uh, in ordinary circumstances. 201 00:16:57,150 --> 00:17:05,590 Uh, for these other bars, convolutional 1, convolutional 2, dense 1, dense 2, those are layers in the network that we're trying to add the backdoor to. 202 00:17:05,770 --> 00:17:12,690 Uh, and so, uh, here we can see that the convolutional 1 layer is the best one in terms of, uh, adding this backdoor. 203 00:17:12,690 --> 00:17:23,830 Um, and that's kind of interesting because that's kind of the early vision part of the CompNet, uh, where some of the more primitive, uh, edge filters are, uh, in the, uh, visual processing, uh, hierarchy. 204 00:17:24,090 --> 00:17:33,830 Um, you can see, right, it's a drastic change in terms of the misclassification inaccuracy for the targeted, uh, digit of interest, um, and so the backdoor works. 205 00:17:33,850 --> 00:17:40,330 Uh, and what's really cool is all models are within .5 percent accuracy of the original model's accuracy. 206 00:17:40,350 --> 00:17:42,290 Alright, so that's again the toy case. 207 00:17:42,290 --> 00:17:44,650 What does, uh, this do in a real sense? 208 00:17:44,650 --> 00:17:51,250 Uh, so we looked at ResNet-50, a very, very deep, uh, CompNet architecture, um, and the dataset VGG phase 2. 209 00:17:51,250 --> 00:17:53,070 So this is a face recognition experiment. 210 00:17:53,250 --> 00:17:56,250 Um, many, many different parameters here to play with. 211 00:17:56,250 --> 00:18:04,730 Uh, the problem set up, um, this is, uh, face verification, so one-to-one matching just like the original, um, uh, explanation of the backdoor scenario I had earlier in the talk. 212 00:18:04,730 --> 00:18:14,210 Um, we looked at a lot of different images here, 160,000 images of 500 distinct subjects for enrollment, then 100 different imposter and target pairs for the perturbed model screening. 213 00:18:14,290 --> 00:18:18,790 Uh, again, additive perturbations, 1 percent of the first convolutional layer is perturbed. 214 00:18:18,790 --> 00:18:22,390 Uh, the metric is a stronger penalty for attacker related errors. 215 00:18:22,510 --> 00:18:30,030 And because this is a very deep architecture, we needed GPUs, uh, and we screened many different models, uh, for several days. 216 00:18:30,390 --> 00:18:35,090 And what we found were a number of models with useful backdoors. 217 00:18:35,250 --> 00:18:44,410 Um, so on this plot, um, we have, uh, different models that we screened on the x-axis and then again the rate of false positives on the target class on the y-axis. 218 00:18:44,410 --> 00:18:49,430 And you can see here there's a handful of models that have very high false positive rates on the target class. 219 00:18:49,430 --> 00:18:51,930 Those would be our best candidates for this backdoor. 220 00:18:52,110 --> 00:18:56,230 Um, notice that it's not a hundred percent in terms of the false positive rate. 221 00:18:56,230 --> 00:19:01,110 Um, so it would probably take the attacker , uh, one or two attempts to get into the system. 222 00:19:01,110 --> 00:19:06,090 Uh, but it would still be a lot better than them trying it without, uh, adding a backdoor. 223 00:19:06,390 --> 00:19:19,350 Um, overall, um, you know, just looking at, uh, the baseline versus after in terms of targeted false positive rates, uh, we found a lot of viable, uh, backdoor, uh, candidates, uh, even though they had lower false positive rates. 224 00:19:19,490 --> 00:19:25,050 If you average all those networks together, um, they're about, uh, 37 percent on the targeted false positive rate. 225 00:19:25,050 --> 00:19:29,010 Uh, and then the plot I think is the coolest is the one where the two bars are basically even. 226 00:19:29,010 --> 00:19:31,270 Um, that's kind of the before and after, right? 227 00:19:31,270 --> 00:19:34,310 Uh, averaging over all of the backdoored models. 228 00:19:34,310 --> 00:19:38,390 Um, we, there's virtually no difference in terms of the empirical performance. 229 00:19:39,270 --> 00:19:43,070 Okay, so a few parting thoughts here on detectability. 230 00:19:43,070 --> 00:19:49,950 Um, many of you, especially if you're coming from a systems perspective, may be thinking, oh, come on, Walter, this is so trivial to detect. 231 00:19:49,950 --> 00:19:51,990 You're changing the model, right? 232 00:19:51,990 --> 00:19:58,170 Um, why don't you just compute a hash function of the model's file and then, right, just host-based intrusion detection will detect this. 233 00:19:58,170 --> 00:19:59,270 You know, no big deal. 234 00:19:59,270 --> 00:20:01,210 This attack is not really that realistic. 235 00:20:01,410 --> 00:20:07,150 Um, sure, but I mentioned this whole work is motivated, um, on, uh, models with stochastic output. 236 00:20:07,150 --> 00:20:09,710 Models that are always changing in operation. 237 00:20:09,770 --> 00:20:12,470 Uh, therefore, just computing hashes doesn't really work, right? 238 00:20:12,470 --> 00:20:14,630 Because that hash is going to change from run to run. 239 00:20:14,630 --> 00:20:20,170 Um, so if you encounter a system that already has this baked in, um, the host-based intrusion detection system is not going to work. 240 00:20:20,170 --> 00:20:26,570 Um, plus, uh, number two here, you already have all of the normal rootkit tricks at your disposal, right? 241 00:20:26,570 --> 00:20:28,830 I can intercept system calls, right? 242 00:20:28,830 --> 00:20:34,930 I can redirect hash functions, uh, to write some pre-stored digest of the original model. 243 00:20:34,930 --> 00:20:35,930 No big deal, right? 244 00:20:35,930 --> 00:20:36,990 That's easy. 245 00:20:36,990 --> 00:20:43,090 Um, if the attacker has compromised the system to steal the face recognition model to begin with, do we even trust that operating system? 246 00:20:43,090 --> 00:20:43,950 No. 247 00:20:44,250 --> 00:20:48,690 Uh, and then finally, um, the use of weak hash functions is still widespread. 248 00:20:48,790 --> 00:20:52,150 Uh, can we really trust AI folks to make the right choice? 249 00:20:52,150 --> 00:20:54,990 Um, as it turns out, I think the answer to that is no. 250 00:20:54,990 --> 00:21:00,590 Um, so I submitted this paper, the paper version of this talk, uh, to a biometrics conference earlier this year. 251 00:21:00,590 --> 00:21:02,070 Um, sadly it was rejected. 252 00:21:02,070 --> 00:21:03,810 And, and here's one of the reviews I got. 253 00:21:03,810 --> 00:21:07,170 Um, some wisdom from this ICB 2019 review. 254 00:21:07,250 --> 00:21:14,770 Um, in the discussion section of this paper, a weak hash function, uh, MD5 SHA-1 is beyond the scope of this vision and machine learning conference. 255 00:21:14,770 --> 00:21:16,370 You shouldn't even talk about that, right? 256 00:21:16,370 --> 00:21:20,150 It's like biometrics people, vision people, they don't think about hashing functions, right? 257 00:21:20,150 --> 00:21:22,930 Get that out of the talk, get that out of the paper. 258 00:21:23,090 --> 00:21:36,690 Um, and so, you know, if that's the attitude that, um, uh, the AI community has, we're definitely going to see really weak, bad choices being made in terms of security infrastructure that they bake into applications around, uh, the core AI algorithms. 259 00:21:37,550 --> 00:21:38,610 Alright, want to learn more? 260 00:21:38,610 --> 00:21:39,430 Check out the paper. 261 00:21:39,430 --> 00:21:43,450 It's sitting there on archive and I'm happy to answer any questions if there's any time left. 262 00:21:43,930 --> 00:21:45,070 So I can take one. 263 00:21:45,070 --> 00:21:46,910 There's a lot of hands going up here. 264 00:21:47,650 --> 00:21:49,370 Um, yeah, in the, the way back? 265 00:21:49,670 --> 00:21:50,990 I think it's, yeah, yeah, you, you . 266 00:22:22,120 --> 00:22:36,640 Okay, so, so the question is related to, um, attacks in the supply chain, the AI supply chain , uh, where an attacker could, um, potentially, uh, distribute a model, uh, with a backdoor baked in and then other people are using this model for their own applications. 267 00:22:36,920 --> 00:22:47,760 Um, you could use this backdoor attack in that mode, but if the attacker's doing that, um, I mean, if they train the model, they have access then to all the, like, um, poisoning at training time sort of tricks as well. 268 00:22:47,840 --> 00:22:51,220 Um, but you can imagine, again, this, this is certainly applicable in that scenario. 269 00:22:51,220 --> 00:22:53,280 I don't see any reason why you couldn't do that. 270 00:22:53,280 --> 00:22:58,240 In fact, it would make the attacker's life kind of easy because this is a trivial modification to the network, right? 271 00:22:58,240 --> 00:23:02,700 It's basically free, a free operation to jitter the weights and then just keep checking them. 272 00:23:03,260 --> 00:23:03,720 All right. 273 00:23:03,720 --> 00:23:05,980 Uh, looks like I only got one question, so you can catch me. 274 00:23:05,980 --> 00:23:07,640 I'll be around, uh, afterwards. 275 00:23:07,640 --> 00:23:08,220 Thank you.