1 00:00:00,000 --> 00:00:02,740 Without further ado, here's Li on her talk. 2 00:00:11,360 --> 00:00:12,860 Hello, everyone. 3 00:00:13,220 --> 00:00:14,420 My name is Li. 4 00:00:14,520 --> 00:00:19,280 I'm a data scientist at the Security and Privacy Lab at Intel Labs. 5 00:00:19,520 --> 00:00:22,960 Today my talk is on GAN to the Dark Side, 6 00:00:23,140 --> 00:00:26,780 a case study of attacking machine learning system to empower defenses. 7 00:00:26,780 --> 00:00:33,500 So we'll be examining how we can use GAN to exploit malware classifiers. 8 00:00:34,220 --> 00:00:37,200 Here is the outline of the talk for today. 9 00:00:37,580 --> 00:00:43,260 First of all, I will give a quick overview on what is adversarial machine learning, 10 00:00:43,940 --> 00:00:49,600 and then a brief introduction on GAN, which stands for Generative Adversarial Network. 11 00:00:50,080 --> 00:00:54,700 And then we will have an overview of how we utilize this methodology 12 00:00:54,700 --> 00:00:56,760 to attack other classifiers. 13 00:00:57,660 --> 00:01:03,480 And next, we will go through a case study where we use this technique RD-FUL 14 00:01:03,480 --> 00:01:08,120 to fool against ransomware detectors, where we will discuss how the data is collected 15 00:01:08,120 --> 00:01:10,560 and what the feature processing looks like, 16 00:01:10,680 --> 00:01:15,020 and what is the original classification performance, which are highly effective, 17 00:01:15,360 --> 00:01:17,880 and what is our attack performance and evaluation. 18 00:01:18,600 --> 00:01:22,380 And we'll conclude today's talk with a discussion and next steps. 19 00:01:23,760 --> 00:01:26,760 So regarding the intersection of AI and GAN, 20 00:01:26,760 --> 00:01:30,740 and security, we actually consider into three categories. 21 00:01:31,120 --> 00:01:34,000 The first category would be security analytics. 22 00:01:35,340 --> 00:01:40,300 That would be how we use AI or machine learning or deep learning 23 00:01:40,300 --> 00:01:44,820 for malware analysis, threat analysis, basically using AI for the good. 24 00:01:45,560 --> 00:01:49,260 Another aspect would be secure AI workloads, 25 00:01:49,900 --> 00:01:56,080 such as using trusted environment to secure your AI model to protect your AI IP. 26 00:01:56,760 --> 00:02:01,920 And the third aspect is adversarial resilient AI or adversarial machine learning. 27 00:02:02,100 --> 00:02:07,840 Basically, this aspect studies the vulnerability or the blind spot of machine learning algorithms 28 00:02:07,840 --> 00:02:11,740 in order to better prepare your machine learning systems. 29 00:02:13,120 --> 00:02:19,620 So here is a very brief pictorial overview of what adversarial machine learning is. 30 00:02:19,900 --> 00:02:23,340 You can essentially consider this as a two-player game. 31 00:02:23,600 --> 00:02:26,740 There will be an attacker that tries to attack you, 32 00:02:26,760 --> 00:02:31,040 to attack or exploit your machine learning systems. 33 00:02:31,560 --> 00:02:34,340 And then on the other side, there will be a defender 34 00:02:34,340 --> 00:02:36,760 that tries to develop the counter measure 35 00:02:36,760 --> 00:02:38,820 and then use the counter measure 36 00:02:38,820 --> 00:02:41,380 to evaluate the impact of the attacks. 37 00:02:41,600 --> 00:02:43,820 And this is a iterative loop 38 00:02:43,820 --> 00:02:49,180 and this type of game will continue as a cat and mouse game 39 00:02:49,800 --> 00:02:52,840 and hopefully your AI gets much better 40 00:02:52,840 --> 00:02:56,040 or your defense or your attack gets better. 41 00:02:57,240 --> 00:03:00,420 So some applications of adversarial machine learning. 42 00:03:01,820 --> 00:03:06,640 One of the most straightforward application is in vision. 43 00:03:07,020 --> 00:03:11,040 So here I plotted one using the fast gradient sign 44 00:03:11,040 --> 00:03:15,760 where you just change very unnoticeable amount of pixels 45 00:03:16,100 --> 00:03:18,660 and to the human eyes, 46 00:03:18,840 --> 00:03:22,160 the images are almost indistinguishable. 47 00:03:22,220 --> 00:03:24,500 However, the deep learning will mispredict them 48 00:03:25,220 --> 00:03:26,740 with very high accuracy. 49 00:03:26,760 --> 00:03:27,120 Confidence. 50 00:03:28,100 --> 00:03:30,180 Another aspect is for object detection 51 00:03:30,420 --> 00:03:34,140 where you can fool within each of the region proposal 52 00:03:34,600 --> 00:03:36,140 to fool the object detector. 53 00:03:36,460 --> 00:03:39,920 And again, deep learning will misclassify the sheep, 54 00:03:40,060 --> 00:03:42,640 detect the sheep as a car with very high confidence. 55 00:03:44,140 --> 00:03:47,780 But beyond vision, we also have adversarial machine learning 56 00:03:47,780 --> 00:03:51,040 in the audio domain or even in the malware domain. 57 00:03:51,700 --> 00:03:52,840 So in the audio domain, 58 00:03:53,420 --> 00:03:56,740 there's the recent paper published in IEEE SMB, 59 00:03:56,760 --> 00:04:01,300 using an attack technique to fool LSTM 60 00:04:01,300 --> 00:04:05,020 and so that what you hear would be the same sentence. 61 00:04:05,120 --> 00:04:08,540 However, when classified by the DNN, 62 00:04:08,620 --> 00:04:10,440 it's another attack sentence. 63 00:04:11,300 --> 00:04:13,680 And furthermore, we have AVPath developed 64 00:04:14,300 --> 00:04:15,600 between Intel and Georgia Tech 65 00:04:15,600 --> 00:04:20,700 on how to use perturbation to bypass malware, 66 00:04:20,940 --> 00:04:22,100 Android malware classifiers. 67 00:04:22,360 --> 00:04:25,080 And we have shown we are able to bypass virus total 68 00:04:25,080 --> 00:04:26,200 up to 100%. 69 00:04:29,120 --> 00:04:31,940 So Intel has been one of the pioneers 70 00:04:32,280 --> 00:04:35,500 in terms of identifying the key importance 71 00:04:35,500 --> 00:04:37,020 of adversarial machine learning. 72 00:04:37,260 --> 00:04:42,040 Back in 2016, we have a Intel Science Technology Center 73 00:04:42,040 --> 00:04:43,620 established at Georgia Tech. 74 00:04:43,840 --> 00:04:47,800 It's a three-year collaboration with Georgia Tech and Intel 75 00:04:48,260 --> 00:04:50,140 on identifying the vulnerability, 76 00:04:50,540 --> 00:04:52,880 studying the vulnerability of machine learning algorithms. 77 00:04:54,360 --> 00:04:56,740 We collaborate with Professor Wing Kim 78 00:04:56,760 --> 00:04:58,020 and P. Lee at Georgia Tech 79 00:04:58,020 --> 00:05:00,300 with three other collaborating professors. 80 00:05:00,660 --> 00:05:03,900 And I'm the co-principal investigator 81 00:05:04,460 --> 00:05:05,600 for this collaboration. 82 00:05:06,320 --> 00:05:07,860 And we want to study a variety 83 00:05:07,860 --> 00:05:09,280 of machine learning applications 84 00:05:09,800 --> 00:05:13,340 and how to attack them in order to improve the resiliency 85 00:05:13,340 --> 00:05:14,760 of these machine learning systems. 86 00:05:16,700 --> 00:05:20,040 So that's for the brief introduction 87 00:05:20,420 --> 00:05:21,980 for adversarial machine learning. 88 00:05:22,260 --> 00:05:26,620 For today's talk, I will be talking about how to use, 89 00:05:26,620 --> 00:05:29,980 use deep learning to bypass other deep learning algorithms 90 00:05:30,240 --> 00:05:31,200 for malware detection. 91 00:05:34,860 --> 00:05:38,520 As seen from the title, we'll be talking about GAN. 92 00:05:38,980 --> 00:05:43,340 So here is a very brief introduction of what GAN is. 93 00:05:44,920 --> 00:05:47,360 So before going into what this picture, 94 00:05:47,800 --> 00:05:50,020 the flow of this picture, 95 00:05:51,000 --> 00:05:53,420 I can start with a story about GAN. 96 00:05:53,600 --> 00:05:56,500 You can think of GAN as you have a con artist, 97 00:05:56,500 --> 00:05:59,020 that starts with, 98 00:05:59,500 --> 00:06:01,700 that doesn't really know what to draw in the beginning. 99 00:06:02,200 --> 00:06:05,760 And then you have a investigator that can differentiate 100 00:06:05,760 --> 00:06:09,220 between whether this painting is real or fake. 101 00:06:09,740 --> 00:06:12,480 So the con artist will first of all doodle something 102 00:06:12,940 --> 00:06:14,640 and the investigator will say, 103 00:06:14,820 --> 00:06:17,000 oh, this is not from Picasso. 104 00:06:17,420 --> 00:06:19,120 Then that's definitely gonna be fake. 105 00:06:19,780 --> 00:06:21,400 And through this iterative manner, 106 00:06:21,680 --> 00:06:26,380 the con artist could continue to sharpen the painting skills 107 00:06:26,500 --> 00:06:29,140 and the concept, and gradually it's getting better and better 108 00:06:29,140 --> 00:06:33,240 in terms of imitating the real paintings. 109 00:06:33,520 --> 00:06:36,420 So to the point that the investigator could no longer 110 00:06:36,420 --> 00:06:39,060 differentiate whether this is real or fake, 111 00:06:39,240 --> 00:06:42,120 this is when you can stop training the GAN, 112 00:06:42,260 --> 00:06:45,440 or this is when you can say that the con artist, 113 00:06:45,740 --> 00:06:48,620 it is someone that can fool the investigator, 114 00:06:48,880 --> 00:06:51,800 and you want the painting out from the con artist. 115 00:06:52,140 --> 00:06:55,200 So with that story, let me go into 116 00:06:56,500 --> 00:06:58,400 a description of what this picture means. 117 00:06:59,060 --> 00:07:02,600 So in GAN, we have a generator and a discriminator. 118 00:07:03,030 --> 00:07:07,820 So we originally feed a random noise into the generator, 119 00:07:08,650 --> 00:07:14,120 and then there is a discriminator that has the real data 120 00:07:14,120 --> 00:07:16,300 or the real digits in this figure, 121 00:07:16,500 --> 00:07:20,740 and also the pictures from the generator. 122 00:07:21,890 --> 00:07:26,340 So the job of the discriminator is to classify where there 123 00:07:26,500 --> 00:07:30,760 is real or fake, being it's generated by the generator. 124 00:07:31,560 --> 00:07:33,600 And the training is through an iterative manner. 125 00:07:34,000 --> 00:07:36,580 Every time your generator generates something, 126 00:07:36,860 --> 00:07:39,160 and then feed it to the discriminator, 127 00:07:39,280 --> 00:07:41,240 and then the discriminator tells you 128 00:07:41,240 --> 00:07:42,880 whether it's real or fake. 129 00:07:43,160 --> 00:07:45,140 Through this iterative training process, 130 00:07:45,480 --> 00:07:49,160 the generator gets much better at fooling the discriminator. 131 00:07:49,620 --> 00:07:53,540 And you can stop training the GAN when you think 132 00:07:53,540 --> 00:07:55,720 the images generated from the generator 133 00:07:55,720 --> 00:07:58,160 already seem pretty real to you. 134 00:07:59,620 --> 00:08:02,520 So we're going to use this philosophy 135 00:08:02,520 --> 00:08:04,860 in building our ATT&CK methodology. 136 00:08:08,260 --> 00:08:11,160 So here is an overview of our RDFool framework. 137 00:08:12,240 --> 00:08:16,500 So we first train, again, and we use that 138 00:08:16,740 --> 00:08:19,000 to generate dynamic execution logs, 139 00:08:20,200 --> 00:08:23,240 and then the third step is to justify the quality 140 00:08:23,240 --> 00:08:25,480 of these execution logs. 141 00:08:25,480 --> 00:08:28,180 because we don't really want to generate something 142 00:08:28,180 --> 00:08:32,560 that's gibberish to bypass another algorithm. 143 00:08:32,800 --> 00:08:34,300 That would be garbage in, garbage out. 144 00:08:35,020 --> 00:08:38,960 And the last step is to bypass a malware detector. 145 00:08:40,700 --> 00:08:42,240 Particularly in training again, 146 00:08:43,440 --> 00:08:46,580 what we do is we feed in those noise sequences 147 00:08:46,580 --> 00:08:49,840 from those dynamic traces to the generator. 148 00:08:50,400 --> 00:08:52,060 And the generator will generate 149 00:08:52,060 --> 00:08:54,420 those fake dynamic execution traces 150 00:08:54,420 --> 00:08:58,000 and also combine with real dynamic execution traces. 151 00:08:58,420 --> 00:09:01,400 Together they're fed into the discriminator. 152 00:09:01,540 --> 00:09:05,800 And the discriminator will try to identify 153 00:09:05,800 --> 00:09:09,200 which ones are real and which ones are fake. 154 00:09:09,540 --> 00:09:11,860 And when we update the generator, 155 00:09:12,160 --> 00:09:13,960 we freeze the discriminator 156 00:09:13,960 --> 00:09:19,860 so that we make the generator much, much better 157 00:09:19,860 --> 00:09:21,000 through the training process. 158 00:09:22,880 --> 00:09:24,200 Okay, so, 159 00:09:24,420 --> 00:09:27,740 our next portion of the talk will be 160 00:09:27,740 --> 00:09:31,020 how to apply this technique on our case study 161 00:09:31,020 --> 00:09:32,760 on bypassing ransomware detection. 162 00:09:33,440 --> 00:09:34,640 And through our analysis, 163 00:09:34,920 --> 00:09:36,700 we'll have more detailed understanding 164 00:09:36,700 --> 00:09:38,640 of how our methodology works. 165 00:09:40,000 --> 00:09:43,760 So in our case study on bypassing ransomware detection, 166 00:09:44,700 --> 00:09:46,440 first of all, our data are downloaded, 167 00:09:46,620 --> 00:09:49,520 the ransomware data are downloaded from VirusTotal 168 00:09:49,520 --> 00:09:53,740 and based on the labels from Microsoft or Kaspersky. 169 00:09:54,420 --> 00:09:56,280 And they contain these major families. 170 00:09:57,560 --> 00:10:00,220 And of course, we also collected benign data set. 171 00:10:01,880 --> 00:10:05,480 And it is through a dynamic data collection mechanism 172 00:10:05,880 --> 00:10:10,720 where the execution logs are collected using .NET framework. 173 00:10:11,020 --> 00:10:13,240 It is called File System Watcher. 174 00:10:13,980 --> 00:10:16,920 And our data format will be the timestamps 175 00:10:16,920 --> 00:10:19,620 because it's a dynamic log sequence 176 00:10:19,940 --> 00:10:24,140 and the process ID, event name, targeted file name, 177 00:10:24,200 --> 00:10:24,400 and the process ID, event name, targeted file name, 178 00:10:24,420 --> 00:10:25,240 and file entropy. 179 00:10:26,180 --> 00:10:29,820 So here's a quick screenshot of what our data is. 180 00:10:30,760 --> 00:10:32,600 So this is only two or three lines 181 00:10:32,600 --> 00:10:36,600 that only have occurred over two seconds. 182 00:10:36,840 --> 00:10:37,980 So in our real data set, 183 00:10:38,040 --> 00:10:39,780 we have much longer logs than this. 184 00:10:41,840 --> 00:10:43,640 In terms of our feature processing, 185 00:10:45,380 --> 00:10:49,260 we mapped the events into the categorical features. 186 00:10:50,360 --> 00:10:51,820 So there is some padding occurring, 187 00:10:52,260 --> 00:10:53,600 which I will explain later. 188 00:10:53,600 --> 00:10:57,140 So the padding will be in the feature encoding as zero. 189 00:10:57,660 --> 00:11:00,560 And then we have different events of these features 190 00:11:00,900 --> 00:11:02,860 encoding from one to nine. 191 00:11:03,760 --> 00:11:05,440 So after this feature mapping, 192 00:11:05,840 --> 00:11:08,960 each execution log will be represented 193 00:11:09,220 --> 00:11:10,600 by a sequence of events. 194 00:11:10,980 --> 00:11:14,180 And we set the length of each sample to 3,000. 195 00:11:16,060 --> 00:11:19,460 So before we try to bypass any classifiers, 196 00:11:19,580 --> 00:11:23,220 first of all, let's try to validate how well 197 00:11:23,220 --> 00:11:24,660 these classifiers are. 198 00:11:26,040 --> 00:11:28,040 So that would be, first of all, 199 00:11:28,100 --> 00:11:31,600 let us try to train some classifiers on this data set 200 00:11:31,600 --> 00:11:34,220 to see how effective these classifiers are. 201 00:11:36,900 --> 00:11:40,600 So what we have chosen here is that we use TechCNN, 202 00:11:40,740 --> 00:11:44,800 which is convolutional neural network for text classification, 203 00:11:45,240 --> 00:11:48,540 where we employ it for ransomware classification. 204 00:11:49,680 --> 00:11:52,480 So how TechCNN works is that, 205 00:11:54,620 --> 00:12:00,320 it basically represents your word in the embedding space, 206 00:12:00,700 --> 00:12:05,440 and then applies convolutional layer on top of that. 207 00:12:06,420 --> 00:12:08,700 And then after the convolution layer, 208 00:12:08,920 --> 00:12:10,280 you can do max pooling, 209 00:12:10,300 --> 00:12:12,520 and after max pooling, it's softmax. 210 00:12:12,700 --> 00:12:15,160 So at the output of TechCNN, 211 00:12:15,260 --> 00:12:18,260 you get the classification label of your text data. 212 00:12:19,060 --> 00:12:23,060 And one of the advantage of TechCNN over, 213 00:12:23,080 --> 00:12:23,200 and one of the advantage of TechCNN over, 214 00:12:23,220 --> 00:12:26,040 LSTM, both can be for sequential data, 215 00:12:26,200 --> 00:12:29,620 is that the training time for TechCNN is much faster. 216 00:12:29,820 --> 00:12:31,760 And also it has been shown that, 217 00:12:31,900 --> 00:12:33,860 in terms of classification performance, 218 00:12:34,320 --> 00:12:38,220 it outperforms a few of these other 219 00:12:39,160 --> 00:12:42,920 natural language processing classifiers in several data sets. 220 00:12:45,100 --> 00:12:47,960 Another thing, good thing about TechCNN is that 221 00:12:47,960 --> 00:12:50,960 it has channels embedded into this architecture. 222 00:12:51,260 --> 00:12:53,200 So you can look into, a lot of, you know, 223 00:12:53,200 --> 00:12:54,700 a lot of different engrams, 224 00:12:54,700 --> 00:12:56,740 when you try to train a TechCNN. 225 00:12:58,360 --> 00:13:04,500 Okay, so our classifier here, we utilize TechCNN, 226 00:13:04,680 --> 00:13:08,080 and here is the classification performance on this data set, 227 00:13:08,240 --> 00:13:12,320 where we actually train a few classifiers, 228 00:13:12,500 --> 00:13:16,640 TechCNN, XGB, linear discriminant analysis, 229 00:13:17,120 --> 00:13:18,820 quadratic discriminant analysis, 230 00:13:19,100 --> 00:13:21,760 and SVM, with different kernels. 231 00:13:21,760 --> 00:13:24,520 And what we have observed, again, 232 00:13:24,620 --> 00:13:28,260 is TechCNN achieves the best accuracy, 233 00:13:28,440 --> 00:13:33,460 and the combined with the best false positive rate. 234 00:13:37,640 --> 00:13:41,500 So our next step is actually try to use TechCNN 235 00:13:41,500 --> 00:13:43,000 as a feature extractor. 236 00:13:43,540 --> 00:13:46,160 So this original table, what I've shown here, 237 00:13:46,320 --> 00:13:51,020 is that the advantage of deep learning is one of the big, 238 00:13:51,020 --> 00:13:53,540 the big advantage is that it really bypassed 239 00:13:53,540 --> 00:13:55,040 the effort of feature engineering. 240 00:13:55,810 --> 00:13:58,880 So we don't have to actually do an engram anymore, 241 00:13:59,160 --> 00:14:01,520 so we just directly apply on the whole sequence. 242 00:14:02,180 --> 00:14:05,360 For fair comparison, all these other classifiers 243 00:14:05,360 --> 00:14:08,800 are also compared on the same sequence, 244 00:14:09,000 --> 00:14:10,940 so no engram extraction at all. 245 00:14:11,970 --> 00:14:15,820 Now our second step is to use TechCNN as a feature extractor, 246 00:14:16,130 --> 00:14:19,480 and then retrain those classifiers on the features, 247 00:14:19,620 --> 00:14:21,000 automatically learn, and then use them as a feature extractor. 248 00:14:21,000 --> 00:14:22,300 So what we've learned from this deep learning algorithm, 249 00:14:22,840 --> 00:14:24,660 and what we have observed is that 250 00:14:25,080 --> 00:14:27,780 these other classifiers' performance greatly improved, 251 00:14:28,100 --> 00:14:30,340 and the false positive also greatly dropped, 252 00:14:30,560 --> 00:14:33,680 because we are using the new features 253 00:14:33,680 --> 00:14:37,300 as extracted automatically from the deep learning algorithm. 254 00:14:40,040 --> 00:14:42,660 So as a result, what we have seen here is that 255 00:14:42,660 --> 00:14:47,460 we are able to actually find classifiers, TechCNN, 256 00:14:47,620 --> 00:14:50,580 or other classifiers in the TechCNN features, 257 00:14:50,580 --> 00:14:50,820 and generate nice InDesign projects 258 00:14:50,820 --> 00:14:53,040 that have very high accuracy 259 00:14:53,040 --> 00:14:54,720 and low false positive rate. 260 00:14:55,020 --> 00:14:58,680 So after understanding the effectiveness 261 00:14:58,680 --> 00:15:02,220 of these classifiers, then our next step 262 00:15:02,220 --> 00:15:05,180 is to try to exploit these classifiers. 263 00:15:06,420 --> 00:15:09,280 And we exploit these classifiers using GAN. 264 00:15:09,560 --> 00:15:12,040 And the only thing we need to know here, 265 00:15:12,200 --> 00:15:13,660 is the training dataset. 266 00:15:13,660 --> 00:15:19,880 cassette. We don't actually need to know what the malware classifiers are because later I'll show 267 00:15:19,880 --> 00:15:26,940 there's transferability in the attack that we can also bypass multiple of them. So we use the 268 00:15:26,940 --> 00:15:32,460 same training data to train again. Here we're actually training a CGAN conditional GAN 269 00:15:32,460 --> 00:15:41,560 and our training stopping criteria is based on the loss of the discriminator. Typically when 270 00:15:41,560 --> 00:15:48,060 you train again for image you can look at what is the generated image and you see oh this looks 271 00:15:48,060 --> 00:15:54,280 almost like a human or this looks like the digit or this looks like the room then you can stop the 272 00:15:54,280 --> 00:16:03,980 training. But for our case here we have nothing to look at. So our stopping criteria here is based 273 00:16:03,980 --> 00:16:10,660 on the loss function of the discriminator but later we'll examine again what the quality of 274 00:16:10,660 --> 00:16:11,540 this generated image is. So we're going to look at the loss function of the discriminator 275 00:16:11,560 --> 00:16:18,900 in sequences. So even though our training we use both benign and malicious data at test time we 276 00:16:18,900 --> 00:16:23,640 generate from one class. We generate from the malicious class because we think that's more 277 00:16:23,640 --> 00:16:30,400 practical use case in terms of we wanted malicious samples to be classified as benign. 278 00:16:30,560 --> 00:16:35,280 But of course with this mechanism you can generate samples from any of these classes. 279 00:16:37,820 --> 00:16:41,440 So let's move on to the third step of 280 00:16:41,560 --> 00:16:51,420 our methodology which is to justify the quality of those dynamic execution logs. So here I showed 281 00:16:51,420 --> 00:16:57,860 one example of what a generated example looks like. It's a sequence. It's a generated sequence. 282 00:16:58,280 --> 00:17:04,360 And now let's just go map those sequence back to the events and look at what these events mean. 283 00:17:06,380 --> 00:17:10,940 And from what we have observed these sequence of events actually 284 00:17:11,560 --> 00:17:18,360 these are these signatures that we have identified from the real malicious ransomwares. 285 00:17:19,700 --> 00:17:25,700 Now this is just only one example. You might be wondering what about all your five thousand fake samples. 286 00:17:26,120 --> 00:17:32,040 Are they closer to the real malicious or real benign because they are if they are really closer to the real benign. 287 00:17:32,120 --> 00:17:40,800 Then if later you claim you are all classified as benign that doesn't make sense because you're just generating benign or your GAN isn't good enough. 288 00:17:41,560 --> 00:17:56,520 So our next step is to look at all of the generated GAN work GAN samples the fake samples and analyze the matched N-gram patterns between the real malicious training set. 289 00:17:57,300 --> 00:18:10,240 I'm sorry the test set and the real benign test set. So why do I mention test set instead of training. So training we kind of use it for a GAN that our GAN has already seen. 290 00:18:10,540 --> 00:18:11,500 This match. 291 00:18:11,560 --> 00:18:26,940 Here is matching the fake from the test set that our GAN training has not seen that would mean that how well our GAN generated samples is able to generalize the malicious and top N-gram signatures. 292 00:18:27,940 --> 00:18:41,540 And furthermore what we're comparing here the red bar is the number of matched N-grams between the fake malicious set and the real malicious test set but not in the benign. 293 00:18:41,540 --> 00:18:42,260 test set. 294 00:18:42,780 --> 00:18:53,840 Because we also don't want to just match something that's both in the real benign and the real malicious because that doesn't really tell us that's good for the that that that's good for the quality. 295 00:18:54,340 --> 00:19:06,980 So the blue bar is the number of N-gram matched between the fake and the benign test set but not these N-gram do not exist in the malicious test set. 296 00:19:07,460 --> 00:19:10,840 And what we have observed is that for different ends. 297 00:19:10,840 --> 00:19:34,760 From three to seven grams we matched over 70 percent of the real malicious test set and we in here and also we analyze the Euclidean distance and L1 distance between the generated examples to the real malicious data set and that distance it's closer compared to the benign. 298 00:19:38,700 --> 00:19:40,780 So our third fourth step. 299 00:19:40,780 --> 00:19:50,460 Is to use these generated samples and tested against these highly effective classifiers that we have shown earlier. 300 00:19:52,340 --> 00:20:02,820 So here is the detection accuracy we have so basically texting and completely missed all of these malicious fake samples. 301 00:20:03,560 --> 00:20:10,100 XGB is able to actually classify 16 percent of them correctly as malicious. 302 00:20:11,720 --> 00:20:22,360 SVM video linear kernel and LDA are not able to catch however SVM with radio kernel is able to catch about 40 percent. 303 00:20:22,620 --> 00:20:30,800 And we went to examine why this is mainly due to the non-linear boundary in the text CNN feature space. 304 00:20:31,080 --> 00:20:35,280 So you might be saying what about the text CNN space it's non-linear. 305 00:20:35,420 --> 00:20:40,600 But here we're looking at the feature space in the text CNN algorithm. 306 00:20:40,780 --> 00:20:43,560 So in that case it's the softmax which is linear. 307 00:20:43,740 --> 00:20:47,000 But here the non-linearity actually helps. 308 00:20:48,100 --> 00:20:52,340 So we further examine where do these adversarial examples live. 309 00:20:53,240 --> 00:20:55,420 So this is called a tisny plot. 310 00:20:55,740 --> 00:21:02,520 So a tisny plot basically visualize your high dimensional data set onto 2D or 3D to separate them pretty well. 311 00:21:02,660 --> 00:21:06,580 It's a visualization technique or can consider dimensionality reduction technique. 312 00:21:07,340 --> 00:21:09,300 So the red with. 313 00:21:09,960 --> 00:21:10,760 The white. 314 00:21:10,780 --> 00:21:15,580 The ones are the real malicious data set. 315 00:21:15,900 --> 00:21:21,320 And the black patterns with ones are the real benign data set. 316 00:21:21,460 --> 00:21:26,160 And the red with zero symbols are the generated malicious sample. 317 00:21:26,420 --> 00:21:39,080 So what we have seen is that in the text CNN feature space these malicious samples are actually kind of living on the boundary of this feature space. 318 00:21:42,720 --> 00:21:48,900 However in terms of analyzing the distance is closer to the red than to the black. 319 00:21:49,080 --> 00:21:56,480 Hence if we were to consider a blind spot of this classifier we can actually consider this as the region. 320 00:21:59,140 --> 00:22:10,760 So furthermore what we wanted to see is that in the original data space what is the distance between the GAN or the fake generated features versus the real feature space. 321 00:22:10,760 --> 00:22:18,060 features. So this is the distance plot, histogram of distance plot. The red bars are the distance 322 00:22:18,060 --> 00:22:25,640 to the real malicious set, and the blue bars are the distance to the real benign set. And 323 00:22:25,640 --> 00:22:30,940 this is in the raw feature space. So this has nothing to do with any of the classifiers, 324 00:22:31,220 --> 00:22:39,140 nothing on Texan, and nothing on SVM, just the raw features. How close are they to each 325 00:22:39,140 --> 00:22:45,840 side? And we're seeing that the left means that the closer it is. So we're seeing that 326 00:22:45,840 --> 00:22:54,180 the fake GAN sequences are much closer to the real malicious data set. 327 00:22:55,160 --> 00:23:03,400 Now we examine the distance in the Texan feature space. So the same data that we have 328 00:23:03,400 --> 00:23:09,120 generated, instead of looking at the raw feature, we expand the inner layer of the 329 00:23:09,140 --> 00:23:14,400 text scene and then look at the distance. What we have seen here is that the distances 330 00:23:14,400 --> 00:23:21,080 are completely flipped. So it's much closer to the benign than to the malicious. So what 331 00:23:21,080 --> 00:23:26,040 does this tell us? This tells us that in the original raw feature space, these are truly 332 00:23:26,040 --> 00:23:32,400 really matching the n-grams of the malicious data set, and they have really close Euclidean 333 00:23:32,400 --> 00:23:38,560 distance, a lot of those distance to the real malicious set. However, when you use, when 334 00:23:39,140 --> 00:23:44,920 you apply this feature, calculate these features in a trained text CNN feature space, these 335 00:23:44,920 --> 00:23:52,380 distances are flipped because of that blind spot of this algorithm. And this tells us 336 00:23:52,380 --> 00:24:00,760 why text CNN completely are fooled by these fake generated examples, which in the raw 337 00:24:00,760 --> 00:24:02,960 space are actually quite malicious. 338 00:24:12,780 --> 00:24:23,580 And finally, what I have shown earlier are the attack, a code exploratory attack, which we exploit a 339 00:24:23,580 --> 00:24:32,680 classifier at text test time. Another attack is called causative attack, which we can exploit a 340 00:24:32,680 --> 00:24:38,400 classifier during training, or this can also be called training, poisoning the training data. 341 00:24:40,480 --> 00:24:48,400 So the implication of our work in terms of causative attack, what I have plotted here is the 342 00:24:48,400 --> 00:24:57,880 boundary of a SVM with linear kernel. Originally, it would have just the blue and the red line with 343 00:24:57,880 --> 00:25:04,800 a blue region and the red region with a line cutting across. However, with these generated 344 00:25:04,800 --> 00:25:09,120 fake example injected into the training, your fake example is not going to be executed. So 345 00:25:09,140 --> 00:25:17,000 the feature space actually, your boundary decision are actually divided up more. And these fake 346 00:25:17,000 --> 00:25:28,640 examples are just lying in this region, in that sort of blind spot of this boundary. So if we were 347 00:25:28,640 --> 00:25:36,720 to train, if your classifier, you train your classifier, you update your classifier every certain 348 00:25:36,720 --> 00:25:38,780 hours and using user's data. 349 00:25:39,140 --> 00:25:45,360 And using your predicted classification outcome, then by training using those fake examples, these 350 00:25:45,360 --> 00:25:55,200 boundaries of your classifier will be poisoned. And your performance can suffer even when you do 351 00:25:55,200 --> 00:26:01,700 the test on legitimate examples. Because once you poison your classifier, your boundary decisions 352 00:26:01,700 --> 00:26:07,400 are changed, then your classification system would not be as useful. 353 00:26:11,720 --> 00:26:19,040 So finally, a discussion. We showed a deep learning based mechanism to bypass ransomware detectors and 354 00:26:19,040 --> 00:26:28,540 validate the quality of the generated malicious samples. In this talk here, we did not test modifying the 355 00:26:28,540 --> 00:26:37,520 binary to result in the GAN-generated logs. However, after comparing the patterns between the patterns 356 00:26:37,520 --> 00:26:39,120 matched between the GAN-generated logs and the GAN-generated logs, we found that the GAN-generated logs did not 357 00:26:39,120 --> 00:26:47,120 match the GAN-fake examples. And the real malicious data indicate that finding such binary is not so difficult. 358 00:26:48,080 --> 00:26:56,000 We end our talk with an optimistic note. We are exploring a new wave of defense mechanisms to prevent such 359 00:26:56,000 --> 00:27:01,740 exploitation that the attacker only needs to know certain knowledge, degrees of knowledge of your training 360 00:27:01,740 --> 00:27:09,000 data set. And we also would like to motivate all of you in terms of designing or 361 00:27:09,000 --> 00:27:14,940 inventing new medications of such machine learning attacks. That's my talk for today. Thank you.