1 00:00:00,000 --> 00:00:10,420 I'd like to say thanks again for coming and good afternoon. Again, my name is Joseph Clements, and I'm here to present my recent work, published in the paper Hardware Trojan Packs on Neural Networks. 2 00:00:11,360 --> 00:00:28,920 So, I am a PhD student from Clemson University. At Clemson University, I work closely with my PhD advisor, Dr. Vintia Lau, and our research group, Secure and Innovative Computing Research Group. 3 00:00:28,920 --> 00:00:43,700 My specific areas of focus are adversarial machine learning and hardware security. We also have members of our team who work on VLSI design and approximate computing, as well as post-quantum cryptography and homomorphic computing. 4 00:00:45,120 --> 00:00:54,520 Today, I'd like to begin my presentation by building a motivation for hardware security and machine learning. 5 00:00:54,700 --> 00:00:58,900 And then, by describing the landscape of hardware security and machine learning. 6 00:00:58,920 --> 00:01:02,000 First, I'll compare attacks in hardware attacks. 7 00:01:02,440 --> 00:01:09,120 And then, after that, I'll present our attack as one example of an attack possible on machine learning in the hardware domain. 8 00:01:10,120 --> 00:01:14,440 After that, I'll finally conclude the paper with future directions in this field. 9 00:01:17,880 --> 00:01:22,840 So, the modern paradigm of machine learning is to implement machine learning in the cloud. 10 00:01:24,360 --> 00:01:28,880 In this system, a designer will, first, import data to the cloud. 11 00:01:28,920 --> 00:01:31,240 Train that model on the cloud. 12 00:01:31,440 --> 00:01:34,000 And that model is then housed on the cloud. 13 00:01:34,220 --> 00:01:40,840 And whenever an edge user wants to infer with that model, the user will export his data to the cloud. 14 00:01:41,080 --> 00:01:44,660 And then, the machine learning will happen on the cloud. 15 00:01:44,880 --> 00:01:47,480 And then, the inference is sent backwards. 16 00:01:48,220 --> 00:01:51,860 And then, the inference is sent back to the edge user. 17 00:01:53,080 --> 00:01:58,080 Systems like this are electronic assistants that we all know well. 18 00:01:58,080 --> 00:02:01,260 Facial recognition is used by social media. 19 00:02:01,480 --> 00:02:08,280 And security applications such as email spam and spam and malware prevention. 20 00:02:10,740 --> 00:02:13,780 After-sales scenarios in this setting have been well studied. 21 00:02:14,420 --> 00:02:20,680 There are two avenues of attacks that people can take when attacking machine learning in the cloud. 22 00:02:20,980 --> 00:02:26,840 They can take attacks in the training phase, which attempts to modify the training phase. 23 00:02:26,840 --> 00:02:30,600 So that a malicious version of a machine learning model is created. 24 00:02:31,500 --> 00:02:36,560 You can also, or adversaries can also implement attacks in the inference phase. 25 00:02:36,760 --> 00:02:40,020 In which they try to take a model that's already been built. 26 00:02:40,120 --> 00:02:46,380 And find a way to maliciously produce outputs with it. 27 00:02:50,160 --> 00:02:54,340 Again, adversarial machine learning in this scenario has been well studied. 28 00:02:54,340 --> 00:02:58,320 However, we still need a lot of future research in this area. 29 00:02:59,660 --> 00:03:07,580 Unfortunately, however, machine learning in the cloud is not suitable for every scenario. 30 00:03:08,240 --> 00:03:14,620 For example, because of the latency issues with communicating back and forth between an edge user and a cloud user. 31 00:03:15,040 --> 00:03:21,940 Systems like automatic driving, which need real-time inference, are not suitable due to the latency issues. 32 00:03:21,940 --> 00:03:28,160 Similarly, security systems may have security flaws due to latency issues. 33 00:03:28,820 --> 00:03:34,100 In mobile applications and wearable technologies, where machine learning is really becoming big. 34 00:03:34,840 --> 00:03:43,380 Users tend to be very needy in that they want their machine learning applications to work well. 35 00:03:43,420 --> 00:03:45,220 Regardless of whether they have stable connections. 36 00:03:45,580 --> 00:03:51,820 And in a lot of cases, this is not the case with cloud-based machine learning. 37 00:03:52,660 --> 00:03:58,400 And therefore, we predict that machine learning will, at least in part, move to the edge. 38 00:03:58,700 --> 00:04:04,480 And in this system, the training still occurs in the cloud-based system. 39 00:04:04,700 --> 00:04:08,660 However, the inference is moved from the edge to the cloud. 40 00:04:08,900 --> 00:04:15,360 And the way this is done is that the global model that is stored to the cloud is reproduced on all the edge devices. 41 00:04:15,840 --> 00:04:20,940 So that the edge users can now communicate directly to the machine learning model on their own device. 42 00:04:22,360 --> 00:04:26,920 While this gets rid of issues like latency and communication issues, 43 00:04:27,260 --> 00:04:33,400 this, however, adds two additional constraints to our models. 44 00:04:33,680 --> 00:04:43,320 One, that edge devices are often very computationally, have a lot of computational limitations in comparison with cloud computing systems. 45 00:04:43,820 --> 00:04:50,040 And also, they often run off battery powers and so are very limited in their power restrictions. 46 00:04:52,020 --> 00:04:54,400 Because of this, we see that there will... 47 00:04:55,100 --> 00:05:02,420 Because of this, we will now have a need for machine learning to have very diverse hardware platforms 48 00:05:02,420 --> 00:05:16,780 to be able to handle these power-consuming, large, large, deeper and deeper neural networks in edge-based systems. 49 00:05:17,880 --> 00:05:21,500 We will also have a need for software and hardware optimization. 50 00:05:22,300 --> 00:05:22,860 Optimization. 51 00:05:23,820 --> 00:05:29,540 Because of this, the supply chain becomes very important when we're talking about an edge-based system. 52 00:05:32,000 --> 00:05:36,180 The security system, sorry, the adversarial machine learning in this scenario, 53 00:05:36,860 --> 00:05:40,380 in some ways remains very similar to adversarial machine learning in the cloud. 54 00:05:40,480 --> 00:05:42,480 However, in other ways, they are very different. 55 00:05:42,700 --> 00:05:47,140 For example, as training is still pretty much the same, done in the cloud, 56 00:05:47,440 --> 00:05:50,420 the training phase will remain relatively the same. 57 00:05:50,420 --> 00:05:53,520 However, inference on the... 58 00:05:53,520 --> 00:05:55,960 In the inference phase, the... 59 00:05:55,960 --> 00:06:02,140 An adversarial may have direct access to the physical implementation of the machine learning algorithm 60 00:06:02,140 --> 00:06:03,560 through the edge devices. 61 00:06:04,020 --> 00:06:11,620 And so, attacks in the inference phase may be much easier now than they were in cloud computing scenarios. 62 00:06:12,280 --> 00:06:17,100 In addition to this, we also have a new avenue of attack for adversarials 63 00:06:17,100 --> 00:06:19,320 in that they can attack the production phase 64 00:06:19,320 --> 00:06:21,360 to target the machine learning implementation. 65 00:06:24,560 --> 00:06:32,220 Unfortunately, the modern fabless business model has a lot of security holes. 66 00:06:34,200 --> 00:06:38,580 This model of supply chain is very economic. 67 00:06:40,160 --> 00:06:43,920 In the past, the supply chain was horizontal 68 00:06:43,920 --> 00:06:47,640 and where one company would do most of the steps 69 00:06:47,640 --> 00:06:51,100 from circuit design to fabrication to manufacturing. 70 00:06:51,540 --> 00:06:55,140 However, in the horizontal or fabless business model, 71 00:06:55,400 --> 00:06:59,300 the steps are divided up into multiple companies, 72 00:06:59,520 --> 00:07:02,640 sometimes spanning multiple countries. 73 00:07:03,260 --> 00:07:10,540 And therefore, there are three key issues in the fabless business model. 74 00:07:10,920 --> 00:07:14,320 One, that third-party IPs are very common. 75 00:07:14,520 --> 00:07:17,620 Three, that globalization is very common. 76 00:07:17,640 --> 00:07:21,740 And four, that there are generally multiple vendors in these systems. 77 00:07:23,300 --> 00:07:31,100 However, these three things contribute to devices in fabless business models being untrusted. 78 00:07:38,000 --> 00:07:43,460 Therefore, attacks in the hardware domain have been very extensively studied as well. 79 00:07:44,060 --> 00:07:47,120 We're going to talk about four different attacks in the hardware domain. 80 00:07:47,120 --> 00:07:51,880 One is IP privacy attacks, counterfeiting attacks, side-channel attacks, 81 00:07:52,220 --> 00:07:54,120 and hardware-driven attacks. 82 00:07:55,720 --> 00:08:03,460 So, IP piracy is when an adversary attempts to steal 83 00:08:03,960 --> 00:08:06,940 the intellectual property of another person 84 00:08:06,940 --> 00:08:09,140 and attempts to pass it off as their own. 85 00:08:10,120 --> 00:08:14,100 IP attacks or IP piracy is seen in software as well. 86 00:08:14,240 --> 00:08:16,280 However, it is sometimes, arguably, 87 00:08:16,280 --> 00:08:19,460 easier to do in the hardware 88 00:08:19,460 --> 00:08:20,720 due to the fact that 89 00:08:21,280 --> 00:08:25,740 if an adversary has direct physical access to the hardware, 90 00:08:25,880 --> 00:08:28,200 they can simply deconstruct the device 91 00:08:28,200 --> 00:08:29,640 and look at it in a microscope 92 00:08:30,000 --> 00:08:33,500 and they can rebuild it from physically looking at it. 93 00:08:33,680 --> 00:08:36,120 If they have access to a supply chain, 94 00:08:36,380 --> 00:08:38,740 we then have a problem with ICO rebuilding, 95 00:08:39,040 --> 00:08:43,540 where an entity can simply reproduce more devices 96 00:08:43,540 --> 00:08:45,400 than they're allowed to produce. 97 00:08:45,400 --> 00:08:51,460 And they have essentially created multiple copies of the IP 98 00:08:51,460 --> 00:08:52,400 that they can now use. 99 00:08:53,440 --> 00:08:57,800 Because of the economic costs in producing IPs, 100 00:08:57,800 --> 00:09:02,700 such as paying engineers and development costs 101 00:09:02,700 --> 00:09:04,220 and research costs, 102 00:09:05,380 --> 00:09:08,960 gaining access to IPs in this way can be very economic, 103 00:09:09,200 --> 00:09:13,320 especially if they have easy access to the physical device or the supply chain. 104 00:09:15,400 --> 00:09:17,780 Counterfeiting is the flip side of this. 105 00:09:18,420 --> 00:09:22,440 Counterfeit is when an entity takes an item 106 00:09:22,440 --> 00:09:24,180 and tries to reproduce it 107 00:09:24,180 --> 00:09:27,820 and make it seem like it's someone else's. 108 00:09:28,540 --> 00:09:30,420 For example, we've got over here 109 00:09:30,420 --> 00:09:33,660 two pictures of a fake iPhone and a real iPhone. 110 00:09:33,880 --> 00:09:36,200 Here, a fake Arduino and a real Arduino. 111 00:09:36,660 --> 00:09:41,080 And so you can see that sometimes these counterfeits can be very similar. 112 00:09:42,020 --> 00:09:42,820 And again, 113 00:09:43,920 --> 00:09:48,160 these attacks have been seen in hardware and software. 114 00:09:48,460 --> 00:09:52,420 However, sometimes these attacks can be very easy in the software 115 00:09:52,420 --> 00:09:56,340 due to an adversarial's physical access to a device 116 00:09:56,340 --> 00:09:59,080 or physical access to the supply chain. 117 00:10:00,200 --> 00:10:05,460 In fact, it's been studied that up to 63% of all parts 118 00:10:05,460 --> 00:10:08,540 flagged as counterfeits are integrated circuits. 119 00:10:10,560 --> 00:10:12,800 The research that published this 120 00:10:12,800 --> 00:10:14,220 says that it might actually be higher 121 00:10:14,220 --> 00:10:16,780 due to the problems with detecting 122 00:10:16,780 --> 00:10:21,620 and proving that counterfeits are counterfeits. 123 00:10:22,610 --> 00:10:25,300 The other issue with counterfeits is that 124 00:10:25,800 --> 00:10:28,120 because they're often made with reverse engineering, 125 00:10:28,460 --> 00:10:30,440 they can be modified very easily 126 00:10:30,440 --> 00:10:34,020 and house malicious functionality 127 00:10:34,020 --> 00:10:37,980 that was not present in the original device. 128 00:10:39,980 --> 00:10:41,940 The third attack, site-trial attacks, 129 00:10:43,900 --> 00:10:47,500 cannot be done through the supply chain like the two previous attacks. 130 00:10:47,820 --> 00:10:51,440 This one has to be done through access to the physical device. 131 00:10:52,560 --> 00:10:57,300 A site-trial attack attempts to use leaked site-trial information 132 00:10:57,670 --> 00:11:01,860 from the device in order to gain some knowledge of the functionality 133 00:11:01,860 --> 00:11:04,520 or hidden knowledge on that device. 134 00:11:05,300 --> 00:11:09,280 A classic example of a site-trial attack 135 00:11:09,280 --> 00:11:11,580 is site-trial attacks on ABS algorithms. 136 00:11:11,580 --> 00:11:16,540 This encryption system was thought to be computationally secure 137 00:11:16,540 --> 00:11:18,820 post-pre-quantum computing. 138 00:11:19,160 --> 00:11:21,440 However, it's been seen in the literature 139 00:11:21,440 --> 00:11:24,620 that through site-trial attacks, 140 00:11:24,900 --> 00:11:28,160 which take advantage of hardware implementation weaknesses 141 00:11:28,160 --> 00:11:32,000 rather than algorithmic weaknesses, 142 00:11:33,320 --> 00:11:37,700 these attacks become relatively easy through site-trial attacks. 143 00:11:39,380 --> 00:11:41,560 The final type of attack we see 144 00:11:41,560 --> 00:11:43,440 that we have today are hardware trojans. 145 00:11:44,220 --> 00:11:51,240 A hardware trojan is when an adversary 146 00:11:51,240 --> 00:11:55,260 attempts to maliciously modify a circuit design 147 00:11:55,260 --> 00:12:00,280 such that the functionality changes. 148 00:12:01,120 --> 00:12:03,840 These attacks have also been seen in software. 149 00:12:04,600 --> 00:12:09,700 However, they're also very easy to do in hardware, 150 00:12:09,700 --> 00:12:12,740 especially if you have access to the supply chain. 151 00:12:13,440 --> 00:12:15,680 Unfortunately, these attacks cannot be done 152 00:12:15,680 --> 00:12:16,760 through physical access. 153 00:12:16,880 --> 00:12:18,540 They need access to the supply chain. 154 00:12:19,480 --> 00:12:21,680 One key issue with hardware trojans 155 00:12:21,680 --> 00:12:22,920 is that they are persistent, 156 00:12:23,200 --> 00:12:26,180 in that once a hardware trojan is in a hardware device, 157 00:12:26,460 --> 00:12:27,920 you cannot remove it. 158 00:12:28,080 --> 00:12:30,600 You essentially have to scrap the device 159 00:12:30,600 --> 00:12:31,880 and it can't be used anymore. 160 00:12:35,860 --> 00:12:37,500 So, hardware trojans 161 00:12:37,500 --> 00:12:41,760 have been studied a lot in hardware security. 162 00:12:42,180 --> 00:12:44,460 The reason being because they're so dangerous. 163 00:12:44,720 --> 00:12:48,820 A lot of different classification techniques have arisen. 164 00:12:53,120 --> 00:12:55,160 So, there are many different ways 165 00:12:55,160 --> 00:12:56,460 to design hardware trojans. 166 00:12:57,500 --> 00:13:01,300 Hardware trojans are broken up into two basic components. 167 00:13:01,640 --> 00:13:03,220 The first being a trigger. 168 00:13:03,420 --> 00:13:04,880 The second, the payload. 169 00:13:04,880 --> 00:13:08,400 The trigger is what activates the hardware trojan. 170 00:13:08,580 --> 00:13:12,340 The trigger searches for some rare internal condition 171 00:13:12,880 --> 00:13:14,380 inside of a circuit, 172 00:13:14,580 --> 00:13:18,720 and then activates the trojan's payload. 173 00:13:19,100 --> 00:13:22,200 The trojan's payload is the component of the trojan, 174 00:13:22,340 --> 00:13:25,680 which is going to perform the malicious modification needed. 175 00:13:26,800 --> 00:13:31,740 There are two key issues that attackers need to think about 176 00:13:31,740 --> 00:13:34,160 when developing hardware trojans. 177 00:13:34,160 --> 00:13:35,520 One is their stealth, 178 00:13:35,700 --> 00:13:39,540 which is very closely tied to part of the trigger design. 179 00:13:39,800 --> 00:13:42,420 And the second is the effectiveness, 180 00:13:42,720 --> 00:13:45,020 which is very closely tied to the payload. 181 00:13:45,300 --> 00:13:47,080 So, in designing a hardware trojan, 182 00:13:47,160 --> 00:13:50,540 balancing these two key components is non-trivial. 183 00:13:52,500 --> 00:13:56,360 So, our specific attack is a hardware trojan attack 184 00:13:56,360 --> 00:13:57,200 on neural networks. 185 00:13:57,740 --> 00:14:00,200 Software trojan attacks on neural networks 186 00:14:00,200 --> 00:14:01,120 have already been seen. 187 00:14:01,120 --> 00:14:06,220 These are done by creating a key input trigger, 188 00:14:06,440 --> 00:14:12,640 which can be applied to an input to the neural network. 189 00:14:12,840 --> 00:14:14,920 And then, using this key input, 190 00:14:15,180 --> 00:14:16,900 training data is created, 191 00:14:17,060 --> 00:14:18,920 which is similar to the original data, 192 00:14:19,100 --> 00:14:21,920 and then the network is then retrained. 193 00:14:23,280 --> 00:14:25,840 Specific parameters of the network are retrained 194 00:14:25,840 --> 00:14:28,200 to produce the software trojan. 195 00:14:29,300 --> 00:14:30,420 In our case, 196 00:14:30,420 --> 00:14:31,440 we have the same goal. 197 00:14:31,600 --> 00:14:34,100 We want to insert a stealthy backdoor 198 00:14:34,100 --> 00:14:35,620 into a neural network classifier, 199 00:14:35,740 --> 00:14:38,780 which forces a malicious output classification 200 00:14:39,420 --> 00:14:41,040 whenever a trigger is present. 201 00:14:41,960 --> 00:14:44,040 However, there are four main differences 202 00:14:44,040 --> 00:14:46,080 that come with power attack. 203 00:14:46,500 --> 00:14:49,580 One is that it is implemented in the production phase, 204 00:14:49,780 --> 00:14:51,840 so it has to be done in the supply chain. 205 00:14:52,040 --> 00:14:55,460 It can't be done afterwards or during the training phase. 206 00:14:55,540 --> 00:14:57,560 It's implemented in the production phase. 207 00:14:58,000 --> 00:15:00,280 The second is that it targets 208 00:15:00,420 --> 00:15:02,680 the network's operations rather than its weights. 209 00:15:03,820 --> 00:15:05,140 So, for example, 210 00:15:05,300 --> 00:15:07,240 in a trojan attack, 211 00:15:07,560 --> 00:15:09,800 you would insert a trojan into maybe a multiplier 212 00:15:09,800 --> 00:15:13,660 or the components performing the activation function 213 00:15:14,200 --> 00:15:18,460 and apply your modifications to the hardware that way. 214 00:15:19,700 --> 00:15:22,220 Second is that it inherits some properties 215 00:15:22,220 --> 00:15:25,640 from hardware trojans in that it is persistent 216 00:15:25,640 --> 00:15:29,640 and that it is very difficult to detect and defend against. 217 00:15:30,420 --> 00:15:31,140 And finally, 218 00:15:31,320 --> 00:15:34,460 it doesn't involve any retraining, 219 00:15:34,520 --> 00:15:38,740 and so none of the weights are modified at all during our attack. 220 00:15:39,200 --> 00:15:42,180 It is simply the hardware implementation 221 00:15:42,180 --> 00:15:43,420 that we're modifying. 222 00:15:45,280 --> 00:15:48,140 Our attack is done in four separate stages, 223 00:15:48,260 --> 00:15:51,200 and I'm going to talk about this on a rather high level 224 00:15:51,200 --> 00:15:52,360 rather than get into details. 225 00:15:53,300 --> 00:15:57,680 However, the way we start this is to select... 226 00:15:58,220 --> 00:16:00,000 We first select a target layer. 227 00:16:00,660 --> 00:16:02,840 And then inside of that target layer, 228 00:16:02,960 --> 00:16:04,440 we select specific operations, 229 00:16:04,520 --> 00:16:06,320 such as the multiplier, the adders, 230 00:16:06,320 --> 00:16:08,240 the activation functions. 231 00:16:09,200 --> 00:16:14,060 And we isolate this target operation. 232 00:16:14,580 --> 00:16:16,440 And in our case, 233 00:16:16,540 --> 00:16:17,920 for ease of discussion later, 234 00:16:18,120 --> 00:16:20,320 we simulate breaking the network up 235 00:16:20,320 --> 00:16:22,760 into two different subneural networks. 236 00:16:23,140 --> 00:16:24,960 The first subneural network 237 00:16:24,960 --> 00:16:27,120 is the function implementation 238 00:16:27,120 --> 00:16:28,560 from the input layer 239 00:16:28,560 --> 00:16:30,700 to the output of the target operation. 240 00:16:31,340 --> 00:16:33,040 The second subnetwork 241 00:16:33,040 --> 00:16:36,500 is the network from the output of the target operation 242 00:16:36,500 --> 00:16:39,480 to the primary output of the neural network. 243 00:16:40,920 --> 00:16:42,480 Once we have the target layer, 244 00:16:42,680 --> 00:16:43,900 we can then... 245 00:16:45,240 --> 00:16:46,760 Once we have the target layer, 246 00:16:46,920 --> 00:16:48,680 we can then select the input trigger key. 247 00:16:49,140 --> 00:16:50,420 There are two different ways 248 00:16:50,420 --> 00:16:52,020 we can select input trigger keys. 249 00:16:52,360 --> 00:16:53,440 As you see here, 250 00:16:53,600 --> 00:16:55,880 we have a low form input trigger, 251 00:16:56,060 --> 00:16:58,540 which looks exactly like an MNIST data. 252 00:16:58,560 --> 00:17:01,200 However, we can also choose 253 00:17:01,200 --> 00:17:03,400 randomized input trigger keys, 254 00:17:03,620 --> 00:17:06,360 which would just be random values. 255 00:17:06,720 --> 00:17:09,340 These input triggers have to follow 256 00:17:09,340 --> 00:17:13,120 the actual physical... 257 00:17:16,400 --> 00:17:18,460 They have to follow the physical constraints 258 00:17:18,460 --> 00:17:21,040 that could actually be applied to this input key. 259 00:17:22,600 --> 00:17:24,620 Once we have the selected trigger key, 260 00:17:24,820 --> 00:17:27,600 we then feed that to the first subneural network 261 00:17:27,600 --> 00:17:28,500 that we created, 262 00:17:28,680 --> 00:17:31,200 and we look at the internal activations 263 00:17:31,200 --> 00:17:33,700 at each of the nodes of our neural network. 264 00:17:35,160 --> 00:17:39,060 We call these intermediate activations 265 00:17:39,060 --> 00:17:39,960 intermediate values, 266 00:17:40,300 --> 00:17:44,440 and we specifically look at this final intermediate value, 267 00:17:44,580 --> 00:17:46,360 which is the output of the target operations. 268 00:17:47,600 --> 00:17:49,520 When we have this output, 269 00:17:49,660 --> 00:17:51,660 we can then move on to this final... 270 00:17:51,660 --> 00:17:52,740 Sorry, the third step. 271 00:17:54,860 --> 00:17:56,560 The third step is to determine 272 00:17:56,560 --> 00:17:58,720 the operational perturbation to be applied 273 00:17:58,720 --> 00:18:01,680 to the target operation. 274 00:18:03,230 --> 00:18:05,800 We take that intermediate value 275 00:18:05,800 --> 00:18:08,020 that corresponds to the target operations value 276 00:18:08,560 --> 00:18:10,760 and the second subneural network, 277 00:18:10,980 --> 00:18:16,600 and we modify a version of an adversarial example attack. 278 00:18:17,320 --> 00:18:20,200 The modified version of the adversarial example attack, 279 00:18:20,460 --> 00:18:23,820 rather than altering the parameters 280 00:18:23,820 --> 00:18:25,480 of the neural network... 281 00:18:25,480 --> 00:18:25,680 Sorry. 282 00:18:26,560 --> 00:18:28,220 The output of the neural network 283 00:18:28,220 --> 00:18:32,740 alters the output from that target operation. 284 00:18:34,560 --> 00:18:37,400 We have a very specific goal 285 00:18:37,400 --> 00:18:38,100 when we're doing this 286 00:18:38,100 --> 00:18:40,780 in that we want to limit the amount of perturbations 287 00:18:40,780 --> 00:18:42,600 that we're looking at here 288 00:18:42,600 --> 00:18:45,220 because we want the hardware implementation 289 00:18:45,220 --> 00:18:46,720 to be as small as possible. 290 00:18:49,140 --> 00:18:50,300 Okay, after that, 291 00:18:50,420 --> 00:18:52,880 we then compile everything back together 292 00:18:52,880 --> 00:18:55,440 by taking the targeted operations 293 00:18:55,440 --> 00:18:57,380 and modifying the ones we need. 294 00:18:58,220 --> 00:18:59,440 Notice that only... 295 00:19:00,160 --> 00:19:03,480 Because of our choice of adversarial perturbation, 296 00:19:03,520 --> 00:19:05,220 which limits the perturbations, 297 00:19:05,320 --> 00:19:06,280 in most cases, 298 00:19:06,300 --> 00:19:08,440 we only need a small subset of the neurons 299 00:19:08,440 --> 00:19:09,140 to be modified. 300 00:19:10,200 --> 00:19:12,420 The way that these neurons would be modified, 301 00:19:13,360 --> 00:19:17,580 it can potentially use any hardware trojan designs, 302 00:19:17,940 --> 00:19:19,420 such as the ones we've seen before. 303 00:19:21,760 --> 00:19:22,820 For example, 304 00:19:22,820 --> 00:19:27,720 we could place a trojan inside of a multiplier, 305 00:19:28,060 --> 00:19:30,220 which modifies the operation of the multiplier 306 00:19:30,220 --> 00:19:32,080 to be a modified version of the multiplier. 307 00:19:32,360 --> 00:19:34,680 If we were looking at an activation function, 308 00:19:35,020 --> 00:19:39,700 we could determine two different activation functions, 309 00:19:39,940 --> 00:19:42,220 one corresponding to the malicious modification, 310 00:19:42,580 --> 00:19:45,780 one corresponding to the benign modification. 311 00:19:46,160 --> 00:19:48,100 We could then create a trigger, 312 00:19:48,220 --> 00:19:50,280 which searches for a... 313 00:19:50,280 --> 00:19:53,580 a rarely occurring internal... 314 00:19:55,440 --> 00:19:56,880 internal activation 315 00:19:56,880 --> 00:19:59,220 at the input of that activation function. 316 00:19:59,500 --> 00:20:00,920 And then, if that occurs, 317 00:20:01,220 --> 00:20:03,160 we'll then switch the output 318 00:20:03,160 --> 00:20:05,100 from being the benign version 319 00:20:05,100 --> 00:20:06,720 to the malicious version. 320 00:20:09,860 --> 00:20:12,020 To demonstrate our attack, 321 00:20:12,360 --> 00:20:14,640 we set up four different experiments. 322 00:20:15,480 --> 00:20:16,220 We... 323 00:20:16,220 --> 00:20:18,280 In two of the experiments, 324 00:20:18,540 --> 00:20:20,160 we used well-crafted triggers 325 00:20:21,560 --> 00:20:23,000 in two other... 326 00:20:23,000 --> 00:20:23,740 Sorry. 327 00:20:23,880 --> 00:20:24,760 In four of the experiments, 328 00:20:24,980 --> 00:20:26,340 we used well-crafted triggers, 329 00:20:26,520 --> 00:20:27,480 and for other experiments, 330 00:20:27,600 --> 00:20:29,620 we used randomized triggers. 331 00:20:30,220 --> 00:20:32,220 For each of those cases... 332 00:20:32,220 --> 00:20:32,720 Sorry. 333 00:20:32,840 --> 00:20:35,980 When we attack the randomized trigger, 334 00:20:36,200 --> 00:20:37,720 since these... 335 00:20:37,720 --> 00:20:39,180 the outputs of the randomized triggers 336 00:20:39,180 --> 00:20:41,020 are essentially already untargeted, 337 00:20:41,140 --> 00:20:44,760 we had to use target attacks on the... 338 00:20:45,200 --> 00:20:46,420 for the adversarial example. 339 00:20:47,100 --> 00:20:48,740 For the well-crafted trigger, 340 00:20:48,740 --> 00:20:52,040 we instead looked at differences 341 00:20:52,040 --> 00:20:53,880 between bounding and unbounding 342 00:20:53,880 --> 00:20:57,320 the constraints on the attack. 343 00:20:57,640 --> 00:21:00,360 So, when we evaluated this, 344 00:21:00,440 --> 00:21:02,100 we essentially had three different metrics 345 00:21:02,100 --> 00:21:04,660 that we looked at when we were doing this. 346 00:21:04,780 --> 00:21:06,600 One was the effectiveness of the attack. 347 00:21:06,840 --> 00:21:09,140 We considered the effectiveness of the attack 348 00:21:09,140 --> 00:21:12,460 to be the amount of input triggers 349 00:21:12,460 --> 00:21:13,700 that effectively reached 350 00:21:13,700 --> 00:21:16,380 a malicious Trojan modification. 351 00:21:16,860 --> 00:21:17,900 We found that, 352 00:21:17,900 --> 00:21:20,820 on average, 97% of our attacks worked. 353 00:21:21,740 --> 00:21:23,940 We also evaluated the stealthiness 354 00:21:23,940 --> 00:21:25,040 under functional testing. 355 00:21:26,080 --> 00:21:29,200 Functional testing is when a... 356 00:21:29,590 --> 00:21:32,120 the produced model is compared 357 00:21:32,120 --> 00:21:33,120 to a golden model. 358 00:21:33,420 --> 00:21:35,640 And so, we take a golden model 359 00:21:35,640 --> 00:21:40,200 and we pass the testing data 360 00:21:40,200 --> 00:21:41,220 from our... 361 00:21:42,900 --> 00:21:46,480 from our target data set, 362 00:21:46,480 --> 00:21:48,540 and we pass that through 363 00:21:48,540 --> 00:21:50,500 the machine learning model, 364 00:21:50,660 --> 00:21:51,900 and we compare the outputs 365 00:21:51,900 --> 00:21:53,000 from the golden model 366 00:21:53,000 --> 00:21:55,520 with the outputs from the modified model 367 00:21:55,520 --> 00:21:57,900 to compare the two outputs. 368 00:21:58,240 --> 00:22:01,200 We saw that 100% of all of our 369 00:22:01,200 --> 00:22:02,600 input-output combinations match 370 00:22:02,600 --> 00:22:04,380 between the two different... 371 00:22:04,380 --> 00:22:05,620 the unmodified version 372 00:22:05,620 --> 00:22:06,580 and the modified version. 373 00:22:08,360 --> 00:22:10,100 Finally, we did... 374 00:22:10,100 --> 00:22:12,240 we tested for stealthiness 375 00:22:12,240 --> 00:22:13,520 under behavioral testing. 376 00:22:14,060 --> 00:22:14,940 When you... 377 00:22:14,940 --> 00:22:15,940 when you're testing a chip 378 00:22:15,940 --> 00:22:17,520 for behavioral testing, 379 00:22:17,780 --> 00:22:19,820 you test the side-channel effects, 380 00:22:19,980 --> 00:22:20,960 such as power consumption, 381 00:22:21,380 --> 00:22:24,740 timing properties, and so on. 382 00:22:24,900 --> 00:22:26,540 And so, this... 383 00:22:26,540 --> 00:22:29,980 these metrics often generally correlate 384 00:22:29,980 --> 00:22:32,980 directly to the amount of modifications 385 00:22:32,980 --> 00:22:34,080 made to the hardware. 386 00:22:34,360 --> 00:22:37,040 And so, when we're analyzing 387 00:22:37,040 --> 00:22:39,580 the stealthiness under behavioral testing, 388 00:22:39,780 --> 00:22:42,700 we look at the percentage of neurons 389 00:22:42,700 --> 00:22:44,260 in each layer that is being modified. 390 00:22:45,320 --> 00:22:47,320 So, in some cases, 391 00:22:47,340 --> 00:22:51,120 as little as 0.3% of the neurons 392 00:22:51,120 --> 00:22:52,300 in a layer can be modified. 393 00:22:55,260 --> 00:22:55,860 Okay. 394 00:22:56,800 --> 00:22:58,860 I'm gonna read this because it's easier. 395 00:22:59,180 --> 00:23:00,620 So, as we can see 396 00:23:00,620 --> 00:23:01,920 from the experimental results, 397 00:23:02,220 --> 00:23:04,660 with access to the device's supply chain, 398 00:23:04,780 --> 00:23:06,740 we can perform a stealthy and effective attack 399 00:23:06,740 --> 00:23:07,880 on machine learning models 400 00:23:07,880 --> 00:23:10,160 by inserting hardware trojans 401 00:23:10,160 --> 00:23:12,520 in the physical implementations. 402 00:23:13,420 --> 00:23:14,920 However, this is just one example 403 00:23:14,940 --> 00:23:16,220 as described earlier. 404 00:23:16,660 --> 00:23:18,200 There are many other research fields 405 00:23:18,200 --> 00:23:19,000 in hardware security 406 00:23:19,000 --> 00:23:21,640 and many possible hardware attacks 407 00:23:21,640 --> 00:23:24,020 that can be mounted on machine learning devices. 408 00:23:24,640 --> 00:23:27,280 In scenarios where an adversarial 409 00:23:27,280 --> 00:23:29,360 has physical access to either of the devices 410 00:23:29,360 --> 00:23:30,960 running on a machine learning model 411 00:23:30,960 --> 00:23:32,520 or its supply chain, 412 00:23:32,760 --> 00:23:35,500 meanwhile, we have only talked about 413 00:23:35,500 --> 00:23:36,400 influencing... 414 00:23:36,400 --> 00:23:37,060 sorry... 415 00:23:37,060 --> 00:23:39,540 about inference on the edge scenarios. 416 00:23:41,060 --> 00:23:43,960 However, new novel machine learning paradigms, 417 00:23:43,960 --> 00:23:45,480 such as federated learning... 418 00:23:45,480 --> 00:23:46,100 sorry... 419 00:23:49,040 --> 00:23:50,320 new model... 420 00:23:50,860 --> 00:23:52,980 new novel machine learning paradigms, 421 00:23:52,980 --> 00:23:54,660 such as federated learning seen here, 422 00:23:54,860 --> 00:23:56,400 which attempts to move training 423 00:23:56,400 --> 00:23:58,280 at least partially from the cloud 424 00:23:58,280 --> 00:23:59,600 into the edge devices, 425 00:23:59,820 --> 00:24:00,780 are also possible. 426 00:24:02,740 --> 00:24:03,780 In these scenarios, 427 00:24:05,820 --> 00:24:09,640 the training phase may also be subject 428 00:24:09,640 --> 00:24:12,680 to attacks through the hardware implementation. 429 00:24:15,100 --> 00:24:15,700 Sorry. 430 00:24:18,920 --> 00:24:19,520 Okay. 431 00:24:19,660 --> 00:24:21,340 Therefore, to ensure the safety 432 00:24:21,340 --> 00:24:22,880 of machine learning and paradigms 433 00:24:22,880 --> 00:24:25,220 where globalization and physical access 434 00:24:25,220 --> 00:24:25,780 are present, 435 00:24:25,960 --> 00:24:27,640 the development of systems 436 00:24:27,640 --> 00:24:28,980 should be security aware. 437 00:24:30,040 --> 00:24:31,640 That's it for my presentation, 438 00:24:31,960 --> 00:24:32,940 so are there any questions? 439 00:24:33,200 --> 00:24:33,600 Yes. 440 00:24:35,300 --> 00:24:35,900 Thanks.