1 00:00:00,000 --> 00:00:06,160 Okay, I'm going to just kind of introduce the topic here, talk about metamorphic software, 2 00:00:06,620 --> 00:00:13,140 you know, what it's good for, potential good uses, potential evil uses for metamorphic software, 3 00:00:13,860 --> 00:00:19,320 and also just a little bit about worms and viruses and malware in general, kind of the history, 4 00:00:19,480 --> 00:00:21,180 just a very quick overview of that. 5 00:00:21,780 --> 00:00:27,140 Then Wing is going to take over and talk about her research work, which was very impressive, I can say, 6 00:00:27,140 --> 00:00:36,060 because I didn't do it, and it's all about, she looked at some specific metamorphic engines that you can find online, 7 00:00:36,340 --> 00:00:37,660 and there's hundreds of these out there. 8 00:00:37,780 --> 00:00:42,340 She looked at four of them that seem to be the best, according to a lot of sources, 9 00:00:43,680 --> 00:00:47,360 and she tried to answer two questions about these engines. 10 00:00:47,620 --> 00:00:53,120 First of all, you know, how good are they in the sense, how well do they morph the code? 11 00:00:53,300 --> 00:00:56,700 Okay, how metamorphic are the variants that they create, the virus variants? 12 00:00:57,140 --> 00:00:58,920 And so she did a lot of work on that. 13 00:00:59,020 --> 00:01:01,640 She'll present some of that and show you her results there. 14 00:01:02,000 --> 00:01:09,280 But there's kind of a separate, you know, but yet related question about how hard are these things to detect, okay? 15 00:01:09,420 --> 00:01:16,880 You know, intuitively you would expect the more metamorphic that these viruses and worms are, 16 00:01:17,020 --> 00:01:18,840 the harder they're going to be to detect. 17 00:01:19,180 --> 00:01:25,300 But I think the conclusion's a little bit surprising in that there's at least a little more to it than that, okay? 18 00:01:26,240 --> 00:01:27,120 And then some conclusions. 19 00:01:29,580 --> 00:01:30,740 Okay, metamorphic software. 20 00:01:31,660 --> 00:01:39,400 Okay, so our definition is that software's metamorphic if all copies of the software do the same thing, okay? 21 00:01:39,480 --> 00:01:43,700 The functionality is the same, but yet the internal structure is different, okay? 22 00:01:43,760 --> 00:01:46,640 So somehow you've gone in, you've changed the internal structure of the code, 23 00:01:46,760 --> 00:01:52,180 but you've been careful, you've done it in a way that does not change the function of the code at all. 24 00:01:53,000 --> 00:01:55,520 Now today, this is not the way it's done, okay? 25 00:01:55,580 --> 00:01:57,040 You don't get metamorphic software. 26 00:01:57,140 --> 00:01:58,800 You know, there's a lot of reasons for that. 27 00:01:58,880 --> 00:02:02,640 It's potentially harder to develop, harder to maintain, and so on. 28 00:02:02,780 --> 00:02:03,900 But it's not impossible. 29 00:02:04,160 --> 00:02:07,660 I mean, actually at my failed startup company, we did some of this. 30 00:02:07,820 --> 00:02:08,760 So it is possible. 31 00:02:08,860 --> 00:02:10,140 You can do this sort of thing. 32 00:02:10,880 --> 00:02:13,600 Today, though, the software you get is cloned, okay? 33 00:02:13,680 --> 00:02:19,380 You get, you create one copy, you create one instance of this, you create one copy of the software, 34 00:02:19,600 --> 00:02:21,960 and then give everybody the same thing, okay? 35 00:02:21,980 --> 00:02:24,700 So everybody's got a clone of this one piece of software. 36 00:02:25,420 --> 00:02:26,500 Okay, so that has... 37 00:02:27,140 --> 00:02:29,420 You know, implications for security, okay? 38 00:02:29,480 --> 00:02:30,980 A lot of implications there, okay? 39 00:02:31,060 --> 00:02:37,140 First of all, well, you can think of good, potentially good uses for metamorphism 40 00:02:37,140 --> 00:02:39,700 and potentially, you know, evil uses for metamorphism. 41 00:02:40,920 --> 00:02:45,780 So just to give you one example of each, one thing you could think about, you know, 42 00:02:45,780 --> 00:02:46,880 you could do this thought experiment. 43 00:02:47,640 --> 00:02:51,680 Think about you write a program, it has a buffer overflow in it. 44 00:02:52,640 --> 00:02:54,140 You know, you didn't intentionally put it there. 45 00:02:54,220 --> 00:02:54,860 It's just an accident. 46 00:02:55,000 --> 00:02:56,000 It has this buffer overflow. 47 00:02:57,140 --> 00:03:01,180 Now, if you, and now, maybe that's exploitable, so someone can write an attack 48 00:03:01,180 --> 00:03:02,560 and they can attack your code. 49 00:03:02,800 --> 00:03:05,420 Now, if you clone your software, your original software, 50 00:03:05,540 --> 00:03:09,560 and send out the exact copy to everybody, well, somebody creates an attack, 51 00:03:09,840 --> 00:03:13,300 that same attack is going to obviously work on every clone copy. 52 00:03:13,500 --> 00:03:14,720 They're identical, okay? 53 00:03:16,760 --> 00:03:23,200 But, if you try to use metamorphic software, you potentially get some advantage there, 54 00:03:23,300 --> 00:03:25,660 and I'll talk a little more about that on the next slide. 55 00:03:26,520 --> 00:03:27,000 Okay? 56 00:03:27,140 --> 00:03:29,440 So that's a potential benefit, okay? 57 00:03:29,500 --> 00:03:32,800 A good use for metamorphism gives you some, some sort of benefit. 58 00:03:34,600 --> 00:03:38,100 Potential bad use, which Wing's going to talk about, and this is kind of the main point 59 00:03:38,100 --> 00:03:45,800 of the talk, is using metamorphism to try and avoid signature detection for worms and viruses. 60 00:03:48,380 --> 00:03:52,740 Okay, so let's look at this supposedly good use of metamorphism here a little closer. 61 00:03:53,420 --> 00:03:56,860 Again, you know, have this program, you write it, it has a buffer overflow in it. 62 00:03:57,140 --> 00:04:00,040 You know, if you clone it and send it to everybody, the same attack's going to work. 63 00:04:00,160 --> 00:04:03,020 So there's one attack, it breaks every, every copy. 64 00:04:03,340 --> 00:04:07,720 And it's sometimes called break once, break everywhere phenomenon. 65 00:04:08,220 --> 00:04:11,820 You create one attack, it works everywhere, okay, universally. 66 00:04:12,760 --> 00:04:17,140 On the other hand, suppose you created metamorphic copies of this software, okay? 67 00:04:17,220 --> 00:04:21,220 Now, every copy is functionally the same, but the internal structure's a little bit different. 68 00:04:21,580 --> 00:04:26,900 Now, if someone gets a copy of this, you know, every copy still has the buffer overflow in there. 69 00:04:26,900 --> 00:04:29,480 You didn't get rid of it just by creating some metamorphic copies. 70 00:04:29,600 --> 00:04:30,220 It's still there. 71 00:04:30,580 --> 00:04:35,120 So if I get a copy, get a hold of a copy of it, I can create an attack, probably is going 72 00:04:35,120 --> 00:04:37,100 to work against this particular copy. 73 00:04:37,400 --> 00:04:39,960 But what's going to happen if I try this same attack 74 00:04:40,400 --> 00:04:43,920 on all the other metamorphic copies of the program that's out there? 75 00:04:44,200 --> 00:04:46,040 Well, chances are it's not going to work. 76 00:04:46,180 --> 00:04:50,100 You know, if you know how buffer overflow attacks work, it's a pretty delicate affair, right? 77 00:04:50,180 --> 00:04:54,040 Things have to align in just sort of just the right way to make it actually work. 78 00:04:55,080 --> 00:04:56,700 And in fact, I had a student. 79 00:04:56,900 --> 00:05:00,520 Do a project on this as well, who actually, you know, got the numbers and, you know, 80 00:05:00,520 --> 00:05:07,020 really implemented it and, you know, tried to see how often you could get the buffer overflow attack 81 00:05:07,020 --> 00:05:08,740 to work on the metamorphic copies. 82 00:05:08,900 --> 00:05:10,240 And it almost never works, okay? 83 00:05:10,300 --> 00:05:11,940 One percent or something like that. 84 00:05:12,220 --> 00:05:16,600 So the point here is that just a little bit of metamorphism, 85 00:05:16,640 --> 00:05:18,580 it doesn't have to be anything really clever, okay? 86 00:05:18,660 --> 00:05:22,540 In this instance, you know, for buffer overflow protection, just this one example, 87 00:05:22,860 --> 00:05:25,840 a little bit of metamorphism does a lot of good, okay? 88 00:05:26,000 --> 00:05:26,880 It's sort of fine. 89 00:05:26,900 --> 00:05:33,540 It's more comparable to genetic diversity in software, genetic diversity in biological systems, okay? 90 00:05:33,700 --> 00:05:38,340 You know, if a disease comes along, even smallpox doesn't kill everybody. 91 00:05:38,500 --> 00:05:40,660 It kills 40 percent of the population, okay? 92 00:05:40,740 --> 00:05:42,380 Because there's genetic diversity, okay? 93 00:05:42,460 --> 00:05:44,300 So it doesn't affect everybody. 94 00:05:44,820 --> 00:05:50,120 So you're trying to get that same sort of effect here to prevent these buffer overflow attacks. 95 00:05:51,820 --> 00:05:56,740 On the other hand, if you wanted to use this kind of metamorphism 96 00:05:56,900 --> 00:06:03,840 to make viruses and worms that are hard to detect, the point here is that you're trying 97 00:06:03,840 --> 00:06:07,980 to avoid having a common signature that can be discovered, okay? 98 00:06:08,100 --> 00:06:12,340 And if you have enough metamorphism in your virus or worm, 99 00:06:12,440 --> 00:06:15,040 presumably you could avoid this kind of detection. 100 00:06:15,960 --> 00:06:20,860 And in fact, you know, some people talk about undetectable viruses that are metamorphic. 101 00:06:21,620 --> 00:06:23,180 And, you know, is that possible? 102 00:06:23,380 --> 00:06:24,700 It seems it's conceivable. 103 00:06:26,900 --> 00:06:29,100 Okay, so every copy has a different signature. 104 00:06:29,320 --> 00:06:30,700 And again, same point. 105 00:06:30,800 --> 00:06:34,700 You're really trying to get this sort of genetic diversity into your population of viruses. 106 00:06:34,920 --> 00:06:40,320 So the defender who's trying to discover them has a harder time trying to pick them out, okay? 107 00:06:40,340 --> 00:06:41,680 Because they have different signatures. 108 00:06:43,540 --> 00:06:48,280 But, okay, the kind of the conclusion I think you'll get out of Wing's part 109 00:06:48,280 --> 00:06:52,640 of the talk here is that this is trickier than it sounds, okay? 110 00:06:52,780 --> 00:06:55,040 You really need a lot of metamorphism. 111 00:06:55,180 --> 00:06:56,880 And you have to be careful. 112 00:06:56,900 --> 00:06:58,740 You have to sort of use it in the right sort of way. 113 00:06:59,000 --> 00:07:04,240 So that's in contrast to sort of the, just keep in the back of your mind, the buffer overflow case. 114 00:07:04,500 --> 00:07:08,260 You just need a little bit of metamorphism and, you know, sort of a lot of bang for the buck. 115 00:07:08,560 --> 00:07:13,340 But if you're trying to use metamorphism in this case, it's tricky, okay? 116 00:07:13,820 --> 00:07:16,700 And that's kind of the main theme of the talk, all right? 117 00:07:18,400 --> 00:07:22,280 Okay, so just a few quick words here about the evolution of viruses. 118 00:07:22,500 --> 00:07:26,500 And then I'll turn it over to Wing and she'll get to the real substance of the talk here. 119 00:07:27,440 --> 00:07:31,300 Viruses and worms are not new things, okay? 120 00:07:31,360 --> 00:07:35,500 They've been around since the 80s, which is, you know, ancient history in the computing world. 121 00:07:36,720 --> 00:07:41,400 And, you know, once they got started, it pretty quickly became that the game is 122 00:07:41,880 --> 00:07:47,280 that the defenders are trying to discover a signature, okay, a signature that they can latch 123 00:07:47,280 --> 00:07:54,160 onto some sort of common feature of the virus or worm that they can pick out and they can identify. 124 00:07:55,000 --> 00:07:55,720 Well, okay. 125 00:07:55,820 --> 00:07:56,880 The writers of these viruses. 126 00:07:56,900 --> 00:07:59,840 The writers of these viruses and worms, they realize that, too, and that's the game. 127 00:08:00,060 --> 00:08:01,520 So they're going to try and hide the signature. 128 00:08:01,720 --> 00:08:03,340 And what can they do to hide the signature? 129 00:08:04,260 --> 00:08:08,800 Well, sort of three different techniques have been used extensively. 130 00:08:10,220 --> 00:08:11,960 Encryption, polymorphism, and metamorphism. 131 00:08:12,160 --> 00:08:16,680 Now, these terms are used, you know, not consistently in the literature. 132 00:08:18,360 --> 00:08:20,580 So here's what we mean by these, I guess. 133 00:08:21,180 --> 00:08:25,140 So if you encrypt a virus, okay, that's certainly a way to hide the signature. 134 00:08:25,360 --> 00:08:26,240 Use a different key. 135 00:08:26,240 --> 00:08:28,320 It's just a different random string of bits. 136 00:08:28,460 --> 00:08:29,660 There's no common signature. 137 00:08:29,940 --> 00:08:34,520 Well, the problem is, of course, that you have to decrypt the virus before it can actually do anything. 138 00:08:34,780 --> 00:08:36,600 So you have a little piece of decrypter code there. 139 00:08:36,940 --> 00:08:40,860 And that code can be detected by some signature detection means. 140 00:08:42,180 --> 00:08:42,780 Excuse me. 141 00:08:44,220 --> 00:08:48,940 Okay. So you could then encrypt the decrypter. 142 00:08:50,240 --> 00:08:52,800 But then you need a decrypter for the decrypter. 143 00:08:52,920 --> 00:08:54,840 You know, get this infinite regress. 144 00:08:54,920 --> 00:08:55,940 Okay. So you have this problem. 145 00:08:56,240 --> 00:08:59,980 This basic problem that you need some piece of code there that's not encrypted. 146 00:09:00,660 --> 00:09:03,280 And that can be, potentially be detected. 147 00:09:05,620 --> 00:09:12,380 Okay. So polymorphism, by our definition here, is kind of taking that to the next level. 148 00:09:12,920 --> 00:09:14,440 So you're going to encrypt the code. 149 00:09:14,660 --> 00:09:18,240 Now you're going to take the decrypter, the little piece of decrypter code, 150 00:09:18,420 --> 00:09:19,860 and you're going to try and obfuscate that. 151 00:09:20,000 --> 00:09:21,860 Make it harder for people to detect that. 152 00:09:22,160 --> 00:09:23,540 Okay. That sort of thing's been done. 153 00:09:23,640 --> 00:09:25,260 There's been viruses of this sort. 154 00:09:25,780 --> 00:09:26,220 They've been done. 155 00:09:26,220 --> 00:09:27,140 So you can still be detected. 156 00:09:27,420 --> 00:09:29,200 You can do emulation techniques and such. 157 00:09:29,520 --> 00:09:31,440 But it does certainly up the pain. 158 00:09:31,640 --> 00:09:33,340 It's harder to detect these sorts of things. 159 00:09:35,280 --> 00:09:38,060 Finally, kind of the ultimate here would be metamorphism. 160 00:09:38,160 --> 00:09:40,900 Can you create metamorphic worms and viruses? 161 00:09:41,240 --> 00:09:46,660 So every time the, say, the worm mutates, it changes its internal structure 162 00:09:46,660 --> 00:09:48,260 in some meaningful sort of way. 163 00:09:48,660 --> 00:09:54,320 Well, if you could do this, potentially you would have viruses and worms that are not detectable. 164 00:09:54,360 --> 00:09:55,680 They don't have any common signature. 165 00:09:56,220 --> 00:09:56,520 They don't have any kind of mutation at all. 166 00:09:57,380 --> 00:10:01,320 So in a sense, what you're trying to get here is one way you can think of it is you're trying 167 00:10:01,320 --> 00:10:06,580 to sort of change the shape of the virus or worm each time it mutates. 168 00:10:06,720 --> 00:10:08,440 And what sort of techniques would you use? 169 00:10:08,520 --> 00:10:10,100 Well, you can think of lots of different things. 170 00:10:10,280 --> 00:10:15,440 I just list a couple things here that are commonly used. 171 00:10:16,460 --> 00:10:20,700 Okay. So that's just kind of a hand-waving introduction. 172 00:10:21,500 --> 00:10:23,720 Now I want to turn it over to Wing, and she's going to talk 173 00:10:23,720 --> 00:10:25,840 about these various virus construction kits. 174 00:10:26,220 --> 00:10:31,840 How metamorphic they are, and how can you go about detecting the viruses that they produce? 175 00:10:34,540 --> 00:10:39,840 Yeah. So we see that, like, a lot of viruses are written in assembly code. 176 00:10:40,060 --> 00:10:45,060 So writing sophisticated and well-functioning assembly code may not be easy. 177 00:10:45,260 --> 00:10:51,880 But luckily, if we go online, we can easily find a lot of virus construction kits that come even 178 00:10:51,880 --> 00:10:56,200 with very sophisticated, fancy, interactive interfaces. 179 00:10:56,200 --> 00:11:00,100 That can let you just click, click, click, and then you can generate a lot of viruses. 180 00:11:00,900 --> 00:11:05,360 Some of them come with a very, they claim to have very sophisticated features. 181 00:11:06,240 --> 00:11:12,480 Like they can produce metamorphic virus, meaning all the variants that it generates look different, 182 00:11:12,620 --> 00:11:17,200 even from identical configuration or the same kind of input that you supply. 183 00:11:17,920 --> 00:11:22,840 So we are interested in looking at how effective these generators are in terms 184 00:11:22,840 --> 00:11:25,720 of doing metamorphism or producing metamorphic code. 185 00:11:25,760 --> 00:11:26,180 Okay. 186 00:11:26,180 --> 00:11:26,880 So let's start with a little bit about the 187 00:11:28,180 --> 00:11:34,240 We look at the literature and find out some that are really highly discussed or have some good comments. 188 00:11:35,060 --> 00:11:37,560 The first one is the PSMPC. 189 00:11:37,680 --> 00:11:53,120 And according to a virus research book, it is working as a code morphing engine, and the viruses it produces have decryption routines and structures that change in variance. 190 00:11:56,180 --> 00:11:57,660 Let's look at the other one, G2. 191 00:11:57,940 --> 00:12:08,800 We also download from the web, and then its documentation actually says that different viruses may be generated from identical configuration files. 192 00:12:09,140 --> 00:12:13,680 And we actually tested its configuration files and generated different viruses. 193 00:12:16,270 --> 00:12:25,340 This seemed to be the best one that we looked at, and just according to its documentation, it says that all viruses, 194 00:12:25,380 --> 00:12:26,160 it creates a virus. 195 00:12:26,160 --> 00:12:26,360 It has its own vulnerabilities, and it uses different code. 196 00:12:26,380 --> 00:12:26,480 If you have the original, if you have the newer version of the code, it's the first one to update. 197 00:12:26,480 --> 00:12:29,300 But the information they provided are completely different in structure and op code. 198 00:12:29,500 --> 00:12:34,040 So that it's impossible to catch all variants with one or more scan strings. 199 00:12:34,300 --> 00:12:38,860 And it claims that it's nearly 100% variable. 200 00:12:39,580 --> 00:12:43,780 It has 100% variability of the entire code of the viruses. 201 00:12:44,100 --> 00:12:53,020 So we really, really interested in seeing how effective these engines are in terms of producing different looking codes. 202 00:12:54,920 --> 00:12:56,140 So are they effective? 203 00:12:56,140 --> 00:13:01,840 effective? How do we measure that? First of all, I want to go through the metric that 204 00:13:01,840 --> 00:13:08,020 we use to compare two pieces of code because we are comparing whether two virus variants 205 00:13:08,380 --> 00:13:14,820 look different. So this is the method we use. We take two assembly programs, extract all 206 00:13:14,820 --> 00:13:23,380 the opcodes, like excluding blank lines, comments, labels. We only get the opcodes and also exclude 207 00:13:23,380 --> 00:13:30,480 no op. So we get two sequences of opcodes. One is of length n and we number them zero 208 00:13:30,480 --> 00:13:36,140 to n minus one. Second program, say, may have m opcodes and we label them zero to n minus 209 00:13:36,140 --> 00:13:44,000 one. Then for comparison, we compare three subsequence at a time and we do all against 210 00:13:44,000 --> 00:13:53,320 all comparison. So for program X and program Y, if the three opcodes are the same in n 211 00:13:53,320 --> 00:14:01,320 order, we consider it as a match. So if there's a match, we plot the XY coordinate, X means 212 00:14:01,320 --> 00:14:06,940 the opcode number of program X and then the Y is the opcode number of program Y, to generate 213 00:14:06,940 --> 00:14:15,060 a graph of matches, meaning that three opcode matches in any order. Since there may be 214 00:14:15,060 --> 00:14:22,580 random matches and also noise, so we keep in the graph only matches that consist of 215 00:14:22,580 --> 00:14:29,860 five points or more. Five is our cutting point. So we call those lines that have five points 216 00:14:29,860 --> 00:14:35,920 or more real match lines. So we get the second graph that consists of all the real matches. 217 00:14:36,560 --> 00:14:42,940 After that, we walk along the X axis and the Y axis. For each program, we count the 218 00:14:42,940 --> 00:14:50,060 number of opcodes that are covered by one or more of these real match lines. So we count 219 00:14:50,060 --> 00:14:51,460 the number of opcodes. 220 00:14:51,460 --> 00:14:56,340 So for example, if we have two opcodes that are identical to other opcodes in the other 221 00:14:56,340 --> 00:15:02,100 program, and we find the percentage for each program. So the score, the similarity score 222 00:15:02,100 --> 00:15:13,940 for two program is the average of these two percentages, right? So if two programs are 223 00:15:13,940 --> 00:15:20,280 identical, we will expect to have a score of one. And the less similar two programs 224 00:15:20,280 --> 00:15:21,440 are, the score would be the same. 225 00:15:21,460 --> 00:15:35,360 be closer to zero. And also, the programs, I mean, because we are doing sequential match, 226 00:15:35,620 --> 00:15:43,720 so identical segments of opcodes would form strict lines parallel to the diagonal. And 227 00:15:43,720 --> 00:15:48,300 if they are at the identical positions of the two programs, we will actually see these 228 00:15:48,300 --> 00:15:53,780 diagonal lines fall right on the diagonal. If there is some translation, we will still 229 00:15:53,780 --> 00:15:59,120 see these lines, but they would be off the diagonal, meaning that there is a translation 230 00:15:59,470 --> 00:16:05,040 or the opcodes appear in different locations of the two programs. All right? 231 00:16:08,470 --> 00:16:18,200 Okay. As we said, we tested four generators. We considered each generator a single family 232 00:16:18,200 --> 00:16:26,560 family, meaning the viruses generated by one single generator belonging to one family. 233 00:16:27,980 --> 00:16:35,840 So we generated different number of viruses from these four generators, and then we measured 234 00:16:35,990 --> 00:16:42,760 the similarity among pairs of viruses from the same generator. This is how we measure 235 00:16:42,760 --> 00:16:46,840 the degree of metamorphism produced by each generator. 236 00:16:48,200 --> 00:16:57,420 So for comparison, we also find used 20 utility programs from SIGWIN. These programs we take 237 00:16:57,420 --> 00:17:07,800 are of similar size to the virus executables. And we also believe that the viruses will 238 00:17:07,800 --> 00:17:12,300 be doing some kind of low-level activity similar to the SIGWIN utilities. That's why we picked 239 00:17:12,300 --> 00:17:13,900 those programs for comparison. 240 00:17:18,200 --> 00:17:25,740 Here, we are comparing similarity within a family, meaning we compare virus variants. 241 00:17:26,200 --> 00:17:35,640 And we can see all the 190 pairwise comparison among the NVIC viruses has a score very close 242 00:17:35,640 --> 00:17:42,580 to, like, 10 percent. They have score range from 0.1 percent to 21 percent, and the average 243 00:17:42,580 --> 00:17:47,520 is 10 percent. A great contrast is the comparison... 244 00:17:48,200 --> 00:17:55,620 between normal programs. They can have similarity from 13 percent to 90 percent, but the average 245 00:17:55,620 --> 00:18:01,540 is around 35 percent. So in terms of metamorphism, we actually see that NVIC did a very good 246 00:18:01,540 --> 00:18:07,640 job because the virus variants that it produced actually are very dissimilar according to 247 00:18:07,640 --> 00:18:16,080 our metric. And normal files are much more similar in this case. How about the other 248 00:18:16,080 --> 00:18:25,160 generators? Here we use a bubble graph to represent the outcome. We plot the minimum 249 00:18:25,160 --> 00:18:31,060 similarity score that we obtained from among all the comparisons. We plotted a minimum 250 00:18:31,060 --> 00:18:37,060 along the x-axis. Maximum score is along the y-axis, and the bubble size represents the 251 00:18:37,060 --> 00:18:44,140 average similarity score of that particular generator. So if a generator is effective, 252 00:18:44,480 --> 00:18:45,520 meaning that the 253 00:18:45,520 --> 00:18:51,240 variance that it generates do actually look different, we would expect to see a bubble 254 00:18:51,240 --> 00:18:56,480 that is very small and very close to the origin because the minimum, maximum, and average 255 00:18:56,480 --> 00:18:59,200 should be small for effective metamorphism. 256 00:18:59,420 --> 00:19:07,140 So again, we can see here the NVIC generator actually outperformed the other three in 257 00:19:07,140 --> 00:19:14,420 terms of generating different-looking viruses. And if we look at normal program, it actually 258 00:19:14,420 --> 00:19:15,100 has a lower 259 00:19:15,100 --> 00:19:20,580 minimum, lower maximum, and lower average than the other three generators. So G2 in 260 00:19:20,580 --> 00:19:27,540 this sense may not be that effective because its average similarity is higher and also 261 00:19:27,540 --> 00:19:29,540 have a higher minimum similarity. 262 00:19:31,920 --> 00:19:40,280 We look at some of the graphs that we generate while we do the pairwise comparison. We again 263 00:19:40,280 --> 00:19:45,080 see similar results, right? The first pair is a pair of NVIC viruses. So we can see 264 00:19:45,080 --> 00:19:57,200 they are very short matches, and they are all way off the diagonal, meaning the matches 265 00:19:57,780 --> 00:19:59,180 are at different locations. 266 00:20:00,260 --> 00:20:06,720 Compared to, say, G2, we said that G2 is kind of not as effective. We can see that 267 00:20:06,720 --> 00:20:14,740 they have the graph that they produce. We see a long diagonal line, and they are 75% 268 00:20:15,080 --> 00:20:27,340 similar for this pair. VCL and MPCGEN also have, like, very low degree of metamorphism 269 00:20:27,340 --> 00:20:32,840 according to our measure, and they also produce graph that shows this. 270 00:20:36,620 --> 00:20:42,400 So now we see that antiviruses actually look very different from one another, so it seems 271 00:20:42,400 --> 00:20:50,100 that they may be able to avoid detection, signature-based detection, because of its 272 00:20:50,100 --> 00:20:55,740 high degree of metamorphism. But other than that, we are interested in knowing how similar 273 00:20:55,740 --> 00:21:02,540 is it to the other viruses or to normal program. Are they in any way similar to other viruses 274 00:21:02,540 --> 00:21:08,080 or the normal program? So we do the same kind of similarity comparison, and then we use 275 00:21:09,320 --> 00:21:12,180 all the same viruses that we used previously. 276 00:21:12,400 --> 00:21:17,240 And just do a cross-family comparison and see how similar they are. Very surprisingly, 277 00:21:18,540 --> 00:21:26,340 antiviruses had 0% similarity to both G2 and MPCGEN viruses. And to VCL32 viruses, they 278 00:21:26,340 --> 00:21:35,860 are only 0 to 5.5% similar. More surprisingly is the comparison to normal file, because 279 00:21:35,860 --> 00:21:41,680 we did 400 pairs of comparison, and we only find eight pairs that have some kind of score, 280 00:21:41,680 --> 00:21:52,560 which are as low as 0 to 1.2%. So what does this tell us? We see that NVIC by far has 281 00:21:52,560 --> 00:21:58,540 the highest degree of metamorphism of the kits that we tested, and it has no similarity 282 00:21:58,540 --> 00:22:04,780 to other viruses or normal program. So would that make it undetectable? That's our next 283 00:22:04,780 --> 00:22:07,340 question. So can we detect them? 284 00:22:08,340 --> 00:22:16,440 We test three different scanners, and we use these three scanners, eTRUS, AVEST, and 285 00:22:16,440 --> 00:22:25,140 AVG, to scan 37 files that are put in one folder. And these 37 files include viruses 286 00:22:26,100 --> 00:22:36,660 from all four families. Here's our result. eTRUS and AVEST detected all the G2 and MPCGEN 287 00:22:36,660 --> 00:22:45,780 viruses. AVG detect 27, which are the G2, MPCGEN, and VCL32 viruses. But none of the 288 00:22:45,780 --> 00:22:51,940 NVIC viruses are detected by these commercial scanners. So what are we going to do? It 289 00:22:51,940 --> 00:23:00,300 seems that they actually are quite successful to avoid detection by these scanners. We want 290 00:23:00,300 --> 00:23:06,640 to detect them. So we turn to hidden Markov models. Hidden Markov models have been used 291 00:23:06,640 --> 00:23:13,880 in speech recognition since the 1970s, and it has been applied in a lot of applications 292 00:23:13,880 --> 00:23:20,480 because of its ability to do pattern recognition. It's a very powerful tool for statistical 293 00:23:20,480 --> 00:23:27,520 pattern analysis, and it has been used in biological sequence analysis, as well. So 294 00:23:27,520 --> 00:23:33,580 our technique is actually inspired by protein modeling. In protein modeling, we would use 295 00:23:33,580 --> 00:23:36,620 one model to model a whole protein, and then we would use a single protein model to model 296 00:23:36,620 --> 00:23:42,540 protein family. What is a protein family? Protein family is a protein that have 297 00:23:42,540 --> 00:23:49,580 similar three-dimensional shape and also have similar or common chemical and 298 00:23:49,580 --> 00:23:55,300 physical property. So the thing about family is that even though they behave 299 00:23:55,300 --> 00:24:00,220 the same way, but the underlying amino acid sequence may not be totally 300 00:24:00,220 --> 00:24:05,500 identical. So because we all know proteins are made up of amino acid 301 00:24:05,500 --> 00:24:13,120 sequences. Proteins belong to the same family may have similarity as low as 10% 302 00:24:13,120 --> 00:24:17,840 when we examine the amino acid sequence, but we can use a hidden Markov 303 00:24:17,840 --> 00:24:24,220 model to model one family, like given a lot of training data, and after that the 304 00:24:24,220 --> 00:24:29,180 model can distinguish whether any new given protein belongs to the same family. 305 00:24:29,540 --> 00:24:35,160 So we look at our viruses. They have the same behavior, they do the same thing, but 306 00:24:35,160 --> 00:24:35,480 they're strong. They have the same behavior, they do the same thing, but 307 00:24:35,500 --> 00:24:39,040 their structure are different. So there must be some statistical similarity 308 00:24:39,040 --> 00:24:43,900 exists between all these assembly programs to make them behave the same 309 00:24:43,900 --> 00:24:50,200 way. So we we believe that hidden Markov model can capture this similarity and we 310 00:24:50,200 --> 00:24:55,540 can do it at use it the same way we do with protein modeling and try to use it 311 00:24:55,540 --> 00:25:00,740 to detect whether any given program belongs to a same family of the 312 00:25:00,740 --> 00:25:05,120 training viruses. So this is what we do. We use hidden Markov models to 313 00:25:05,120 --> 00:25:10,620 represent the statistical property of a set of metamorphic viruses. So we train 314 00:25:10,620 --> 00:25:16,120 the model with one family virus, and then use the trained model to determine 315 00:25:16,120 --> 00:25:23,380 whether any given program is similar to the training viruses. The good thing 316 00:25:23,380 --> 00:25:28,980 about hidden Markov model is that a trained program would maximize the probability of 317 00:25:28,980 --> 00:25:34,420 seeing the training sequence. And it will also assign high probabilities to sequences 318 00:25:34,420 --> 00:25:42,100 similar to the training sequence. A model would represent the average behavior of 319 00:25:42,100 --> 00:25:48,120 multiple sequences, meaning that we don't need many models to represent one 320 00:25:48,120 --> 00:25:52,740 family. We just need one model to represent a whole family and we can 321 00:25:52,740 --> 00:26:02,960 later determine whether any given program is similar to that family. So 322 00:26:02,960 --> 00:26:07,900 this is how we do. So we generated a lot of these NVIRX viruses that are 200, we 323 00:26:07,900 --> 00:26:14,700 use 200 of them. For training to train a model we use 160 of them. And we keep 40 324 00:26:14,700 --> 00:26:20,340 which is not used at all in the training. To test whether the trained model can 325 00:26:20,340 --> 00:26:26,500 classify these 40 programs correctly. Also we want to know whether program can 326 00:26:26,500 --> 00:26:32,100 distinguish a normal program from these NVIRX viruses. So we have 40 other 327 00:26:32,100 --> 00:26:41,080 other executables from SIGWIN, and then we also tested 25 other non-family viruses, which 328 00:26:41,080 --> 00:26:43,480 are just the viruses we use in the similarity tests. 329 00:26:48,380 --> 00:26:54,480 In our tests, we generated 25 models using different number of hidden states. The number 330 00:26:54,480 --> 00:27:02,900 of hidden states range from 2 to 6, and then we choose different sets of 160 training sequences 331 00:27:02,900 --> 00:27:11,300 to generate different number of models, and do the same kind of tests. So this is a diagrammatical 332 00:27:11,300 --> 00:27:14,460 view of the whole process, as I explained. 333 00:27:15,820 --> 00:27:22,640 So from all this, we would actually expect to see that after training, the model can 334 00:27:22,640 --> 00:27:24,360 assign a high probability. 335 00:27:24,480 --> 00:27:26,860 So we can see that the model can assign a high probability to the 40 test files when 336 00:27:26,860 --> 00:27:33,600 we compare to the other normal programs of viruses not in the same family. So from that, 337 00:27:33,720 --> 00:27:38,880 we should be able to determine a threshold, and then later on, when we are given any program, 338 00:27:39,000 --> 00:27:43,960 program A, we can score the program with the hidden Markov model, and then compare the 339 00:27:43,960 --> 00:27:50,040 score to the predetermined threshold, and classify whether the new program that we are 340 00:27:50,040 --> 00:27:51,820 given belongs to the same family. 341 00:27:52,000 --> 00:27:52,140 Okay. 342 00:27:54,380 --> 00:28:02,380 This is a typical result of all the 25 models. As we can see, the model, in fact, classified 343 00:28:02,380 --> 00:28:09,820 or assigned high values to family viruses, and the probabilities that are assigned to 344 00:28:09,820 --> 00:28:11,360 normal files are much lower. 345 00:28:11,840 --> 00:28:19,800 So if we can reasonably select a threshold that is within, I mean, that can clearly identify 346 00:28:19,800 --> 00:28:20,280 them. 347 00:28:20,280 --> 00:28:29,100 We can actually achieve 100% detection rate to classify when we try to classify a normal 348 00:28:29,100 --> 00:28:32,760 or distinguish a normal file from a NVIC virus. 349 00:28:34,420 --> 00:28:42,240 If we include the other virus in the test, we see that some non-family virus actually 350 00:28:42,240 --> 00:28:48,320 has score very close to the family virus or the NVIC viruses. We take a look at those 351 00:28:48,320 --> 00:28:48,800 viruses. 352 00:28:48,800 --> 00:28:54,260 They are the VCL32 viruses, which show some similarity in the similarity test. 353 00:28:54,540 --> 00:28:59,540 So we actually can say that the hidden Markov model determines some of these other viruses 354 00:28:59,540 --> 00:29:00,180 for free. 355 00:29:00,360 --> 00:29:04,000 I think the bottom line is that we never misclassify a normal program. 356 00:29:04,240 --> 00:29:06,600 We would not say a normal program is a NVIC virus. 357 00:29:07,020 --> 00:29:11,920 But for some virus, if they have some similarity to the NVIC program, it would actually show 358 00:29:11,920 --> 00:29:15,080 a higher score, which is what a hidden Markov model would do. 359 00:29:16,520 --> 00:29:18,680 So this is a summary of our experiments. 360 00:29:18,800 --> 00:29:19,040 This is the final result. 361 00:29:19,500 --> 00:29:22,900 All normal programs can be distinguished by the score alone. 362 00:29:23,740 --> 00:29:28,640 And VCL32 viruses had score closer to the NVIC viruses. 363 00:29:29,160 --> 00:29:34,700 And if we set the threshold properly, 17 of our models had 100% detection rate, and 364 00:29:34,700 --> 00:29:37,820 10 models had 0% false positive rate. 365 00:29:38,140 --> 00:29:42,500 And as I explained, we tried different number of hidden states. 366 00:29:42,600 --> 00:29:48,120 So for three or more hidden states, we didn't find any significant difference in performance. 367 00:29:52,800 --> 00:30:04,320 So here, with hidden Markov model, we can actually look at the converged final matrices 368 00:30:04,980 --> 00:30:08,780 to get some insights into the features that a virus represent. 369 00:30:10,800 --> 00:30:13,960 So we train our models on the NVIC viruses. 370 00:30:14,320 --> 00:30:18,420 So if we are good enough, we can look at the... 371 00:30:18,800 --> 00:30:25,380 probability distribution of the models, and then determine what kind of features they 372 00:30:25,380 --> 00:30:25,660 have. 373 00:30:25,860 --> 00:30:33,560 We observed that the opcodes are actually all divided into stages, meaning that most 374 00:30:33,560 --> 00:30:36,100 opcodes appear in one state only. 375 00:30:36,440 --> 00:30:40,820 So if any one of you are good at assembly programming, you can actually look at the 376 00:30:40,820 --> 00:30:46,480 assembly code and see the classification, and try to understand what kind of features 377 00:30:46,480 --> 00:30:47,560 this virus has. 378 00:30:50,160 --> 00:30:57,560 So we've seen that even though NVIC viruses were not detected at all by the three scanners 379 00:30:57,560 --> 00:31:01,980 that we tested, we can actually use hidden Markov model to do some kind of classification, 380 00:31:02,320 --> 00:31:03,220 and they are quite successful. 381 00:31:05,500 --> 00:31:11,740 Besides that, we took a completely different approach because of the fact that these viruses 382 00:31:11,740 --> 00:31:13,960 are so different from normal program. 383 00:31:15,300 --> 00:31:17,820 We tried a different approach. 384 00:31:17,820 --> 00:31:24,680 We just used a straightforward similarity index to determine whether a program belongs 385 00:31:25,840 --> 00:31:27,000 to the NVIC family. 386 00:31:27,940 --> 00:31:30,560 This method will work this way. 387 00:31:30,700 --> 00:31:40,280 If you want to see if program A is a NVIC mutated virus, you can just pair it with 388 00:31:40,280 --> 00:31:43,960 any NVIC virus and find the similarity score. 389 00:31:45,640 --> 00:31:46,900 Most of the time. 390 00:31:46,900 --> 00:31:51,760 Most of the time, you would expect to find zero similarity because it's actually very 391 00:31:51,760 --> 00:31:54,900 different, and most of the time, we actually did find zero. 392 00:31:56,040 --> 00:32:00,840 If it has zero similarity, we can immediately conclude it's not NVIC virus. 393 00:32:01,260 --> 00:32:07,300 But if this program A has some similarity to the chosen NVIC virus, what do we do? 394 00:32:07,600 --> 00:32:15,400 We pick that NVIC virus, and then compare it to 20 other NVIC viruses to see the average 395 00:32:15,400 --> 00:32:16,880 similarity of these two. 396 00:32:16,880 --> 00:32:22,540 So by comparing this virus to the other virus in the same family, if the similarity, all 397 00:32:22,540 --> 00:32:32,720 these similarity, among the family is lower than, let me see, is lower than the similarity 398 00:32:32,720 --> 00:32:42,120 we just obtain between program A and that virus, we can say that this program is most 399 00:32:42,120 --> 00:32:44,060 likely a virus. 400 00:32:44,360 --> 00:32:46,780 So this is how we use a similarity index. 401 00:32:46,780 --> 00:32:54,640 to classify a program and we actually test that we compare 105 programs 402 00:32:54,640 --> 00:33:00,860 composing of normal regular program and also some are NVIC viruses some are 403 00:33:00,860 --> 00:33:05,780 other viruses and use the method I just described just based on similarity index 404 00:33:05,780 --> 00:33:12,580 and compare average result I can classify 100% of the time correct that 405 00:33:12,580 --> 00:33:19,880 we're that 105 program virus or not and there's no false positive and I try this 406 00:33:19,880 --> 00:33:24,680 on different viruses and I find out that it doesn't depend on the specific virus 407 00:33:24,680 --> 00:33:32,960 that you see like in the first place so what does this tell us first of all from 408 00:33:32,960 --> 00:33:37,140 the comparison tests we know that metamorphic generators actually vary a 409 00:33:37,140 --> 00:33:41,480 lot even though we can find a lot on the internet they may not be all effective 410 00:33:41,480 --> 00:33:42,540 in terms of 411 00:33:42,540 --> 00:33:47,160 generating metamorphic codes and they seem to be the most effective because 412 00:33:47,160 --> 00:33:52,620 the viruses they generate a 10% similar other generators are less effective some 413 00:33:52,620 --> 00:33:59,440 are 60% similar or 70 even 70% similar for the other generators when we 414 00:33:59,440 --> 00:34:05,340 compare to normal files they are only 35% similar so we know how to rate them 415 00:34:06,680 --> 00:34:12,460 but NVIC viruses can also be detected because they 416 00:34:12,460 --> 00:34:21,600 are two different from other virus and normal programs even though NVIC viruses 417 00:34:21,600 --> 00:34:25,600 are not detected by commercial scanners they are detected by our hidden Markov 418 00:34:25,600 --> 00:34:29,600 model approach with very high accuracy and also by our straightforward 419 00:34:29,600 --> 00:34:37,680 similarity index approach so we see that all metamorphic viruses including 420 00:34:37,680 --> 00:34:42,440 the all four family were detectable either because they have high accuracy 421 00:34:42,460 --> 00:34:46,260 similarity with teen family meaning they are not there they have low degree 422 00:34:46,260 --> 00:34:51,720 of metamorphism or they are too different from normal programs so we 423 00:34:51,720 --> 00:34:56,500 actually conclude that the effective use of metamorphism by antivirus or worms 424 00:34:56,500 --> 00:35:02,360 actually require both a high degree of metamorphism and also some similarity to 425 00:35:02,360 --> 00:35:09,600 other programs and this is not trivial and it is not as easy as it seems I 426 00:35:09,600 --> 00:35:12,440 think that kind of explains why we use metamorphism because there are so many different versions and they are similar in each other way so this is important for us to know that 427 00:35:12,460 --> 00:35:17,240 don't see like many metamorphic virus outbreak because they are actually not 428 00:35:17,240 --> 00:35:30,400 that easy as most people would believe. So we see that metamorphism for good use 429 00:35:30,400 --> 00:35:39,260 is easy just like as Dr. Sam said like the buffer overflow problem if you have 430 00:35:39,260 --> 00:35:43,500 just a little bit of metamorphism it actually do a lot of good but for evil 431 00:35:43,500 --> 00:35:53,660 use say in a virus case this is possible to get high degree of metamorphism but 432 00:35:53,660 --> 00:35:58,280 if you want to do it at the same time to be similar to other programs it may not 433 00:35:58,280 --> 00:36:08,320 be that easy so I think that's the major point of our result. Yeah so if you have 434 00:36:08,320 --> 00:36:08,900 any question 435 00:36:08,900 --> 00:36:11,680 um please go to the microphone there and 436 00:36:26,360 --> 00:36:30,820 Two questions I guess oh there we go first one your training set was way bigger than your 437 00:36:30,820 --> 00:36:37,980 testing set oftentimes people do like 50-50 split why'd you do that? What was your thoughts. This is a 438 00:36:37,980 --> 00:36:38,420 classical 439 00:36:38,900 --> 00:36:44,000 five-fold cross-validation approach yeah so we we actually divide the data set 440 00:36:44,000 --> 00:36:49,180 into five equal sized subsets and training use four subsets and testing 441 00:36:49,180 --> 00:36:55,640 use one subset this is a classical approach yeah yeah it also yeah we do it 442 00:36:55,640 --> 00:37:00,500 the same way in protein modeling okay and then as far as getting a lot of 443 00:37:00,500 --> 00:37:04,720 metamorphism but still having similarity to other programs you might be able to do 444 00:37:04,720 --> 00:37:10,680 something like have sort of tropes or you know common sequences of op codes 445 00:37:10,680 --> 00:37:14,540 that perform some higher level functionality and have like a family of 446 00:37:14,540 --> 00:37:18,580 those and pick one of those and Alvar's probably gonna say that that's one of 447 00:37:18,580 --> 00:37:22,440 his problems that he's gonna talk about anyway so did you give any thought I 448 00:37:22,440 --> 00:37:28,840 mean you don't work for NGVCK so maybe that's not your problem but yeah 449 00:37:28,840 --> 00:37:32,600 no that that's a good point so certainly that's a possibility this was you know 450 00:37:32,600 --> 00:37:34,340 her research was kind of limited and so 451 00:37:34,340 --> 00:37:34,700 yeah that's a good point so certainly that's a possibility this was you know 452 00:37:34,700 --> 00:37:38,040 that was what she did I actually have two more students looking at this you 453 00:37:38,040 --> 00:37:41,480 know other aspects of this problem although not specifically what you 454 00:37:41,480 --> 00:37:46,460 mentioned but that would certainly be a good project as well I just have a 455 00:37:46,460 --> 00:37:51,280 question concerning the working of this actually well working metamorphic thing 456 00:37:51,280 --> 00:37:54,260 in which manner does it obfuscate the control flow of the executable does it 457 00:37:54,260 --> 00:37:59,000 just replace well one instruction with like a set of other instructions or does 458 00:37:59,000 --> 00:38:02,160 it introduce faults conditionals which would be non-trivial to resolve 459 00:38:07,560 --> 00:38:13,340 yeah I checked the NGVCK documentation the major techniques that it used were actually 460 00:38:13,340 --> 00:38:19,120 the three that we shown they do they do a lot of garbage and no op instructions insertions 461 00:38:19,120 --> 00:38:25,800 and then they do opcode replacement and also they would replace the whole sequence of opcode 462 00:38:25,800 --> 00:38:31,580 to find identical sequence that do the same function so those three are the major techniques 463 00:38:31,580 --> 00:38:43,400 would be possible to get the samples that you used for for your research right yes my question is did 464 00:38:43,400 --> 00:38:51,620 where all of these viruses with the toolkit identical in their functionality or is the 465 00:38:51,620 --> 00:39:00,260 family that you're detecting NGVCK viruses in general or a specific set of variants that do a 466 00:39:00,260 --> 00:39:00,980 specific thing 467 00:39:01,800 --> 00:39:04,180 in a particular creation 468 00:39:04,180 --> 00:39:16,460 so they were when we tried we generated them with the same identical setting 469 00:39:16,460 --> 00:39:22,280 because is an interactive interface so you just check the option you want so we 470 00:39:22,280 --> 00:39:26,660 we actually use the same identical option to generate the two hundred 471 00:39:26,660 --> 00:39:31,140 different viruses and so there's the 472 00:39:31,580 --> 00:39:32,520 example you see from the right there the eight hundred that they are supposed to have the same 473 00:39:32,520 --> 00:39:32,880 behavior 474 00:39:32,880 --> 00:39:34,200 yes 475 00:39:36,500 --> 00:39:40,180 my question kind of piggy backs on his when you are looking 476 00:39:40,180 --> 00:39:47,440 at the similarities of normal files did you think about maybe using similar files as your c to 477 00:39:47,440 --> 00:39:55,440 train your markoff model and then see what relation regular viruses appear to see if that was maybe 478 00:39:55,440 --> 00:39:56,320 a valid means 479 00:39:56,320 --> 00:40:01,560 to detect viruses across the board rather than just one specific variant but rather refer to your 480 00:40:01,580 --> 00:40:06,660 virus generator yeah I think that's a good idea actually we hadn't thought of 481 00:40:06,660 --> 00:40:11,780 that so your idea would be to train on normal and then look for something that 482 00:40:11,780 --> 00:40:16,760 appears abnormal so you just need one model then to test against right seems 483 00:40:16,760 --> 00:40:23,140 reasonable that'd be a good project I've actually seen a paper yeah they work 484 00:40:23,140 --> 00:40:27,340 this way yeah they collect the normal files and they train different models to 485 00:40:27,340 --> 00:40:33,780 represent normal behavior so yeah with any program they match with the normal 486 00:40:33,780 --> 00:40:38,400 hidden Markov model and see and do identify they're successful but they 487 00:40:38,400 --> 00:40:44,600 still need a lot of models too because the behavior varies I think they they 488 00:40:44,600 --> 00:40:50,060 use different models to very different kinds of behavior so there's no free 489 00:40:50,060 --> 00:40:57,240 lunch here yeah I understand the need for smaller control sets but you're 490 00:40:57,240 --> 00:41:01,080 anti-virus collection seems kind of small for your claims you mentioned 491 00:41:01,080 --> 00:41:07,640 three but you also state no commercial products detected it you tested all 492 00:41:07,640 --> 00:41:17,600 commercial products your claim was that none do so the claim was none of them 493 00:41:17,600 --> 00:41:20,280 that we tested none of those that you tested but it was only three it seems 494 00:41:20,280 --> 00:41:24,680 like an awful small subset right right well those are three we had handy at the 495 00:41:24,680 --> 00:41:26,800 time okay but they're pretty well regarded 496 00:41:26,800 --> 00:41:27,220 you know they're pretty well regarded you know they're pretty well regarded 497 00:41:27,220 --> 00:41:30,740 yes they are all three are yeah there are a lot of others out there too right 498 00:41:30,740 --> 00:41:33,100 right I'd look kind of like to know how Kaspersky did on it 499 00:41:38,200 --> 00:41:44,000 hey have you tried testing it too under have you tried in infecting the fact 500 00:41:44,000 --> 00:41:52,300 infecting normal files and testing it under issue model no we haven't tried 501 00:41:52,300 --> 00:41:56,380 that actually that's a good point that would certainly be more difficult right 502 00:41:56,380 --> 00:41:57,200 because you would have to you would have to you would have to you would have to 503 00:41:57,200 --> 00:42:01,940 zero in on the part of the code that you wanted to test against so what would 504 00:42:01,940 --> 00:42:09,740 kind of up the work somewhat yeah hi it looks that you are doing something like 505 00:42:09,740 --> 00:42:15,080 fingerprinting the virus but did you try to fingerprint the different 506 00:42:15,080 --> 00:42:21,120 compilers used to generate the normal stuff from the operative system I mean 507 00:42:21,820 --> 00:42:27,180 there is different C compiler used I think you can use your technique for 508 00:42:27,180 --> 00:42:31,080 to detect which is the compiler used for each one 509 00:42:31,080 --> 00:42:34,980 of the different files, so this way you're going to say 510 00:42:34,980 --> 00:42:38,820 if you use an evil compiler, it's a virus. 511 00:42:39,060 --> 00:42:42,820 If you're using something normal, it's good stuff. 512 00:42:43,280 --> 00:42:47,720 So as far as the virus program do not use ZCC 513 00:42:47,720 --> 00:42:50,460 or any standard compiler, you're going to say, 514 00:42:50,520 --> 00:42:52,040 well, this at least is strange. 515 00:42:57,720 --> 00:43:00,040 Yeah, I think that's a reasonable point, 516 00:43:00,160 --> 00:43:02,440 but all these viruses that we looked at were compiled 517 00:43:02,440 --> 00:43:05,120 with the same compiler, so we weren't really looking 518 00:43:05,120 --> 00:43:05,760 at this situation. 519 00:43:08,160 --> 00:43:10,780 I was actually going to say something very similar. 520 00:43:13,020 --> 00:43:17,120 Now, how would you describe your hidden Markov models? 521 00:43:18,680 --> 00:43:20,020 How did you come up with them? 522 00:43:20,080 --> 00:43:20,880 How many states? 523 00:43:21,320 --> 00:43:24,760 How many, what size alphabets in those states? 524 00:43:24,980 --> 00:43:26,260 What is it that you're detecting? 525 00:43:26,500 --> 00:43:26,900 Maybe? 526 00:43:26,960 --> 00:43:27,160 Yeah. 527 00:43:27,180 --> 00:43:29,980 In fact, you are detecting the fact 528 00:43:29,980 --> 00:43:33,480 that it's just not standard compiled code. 529 00:43:36,300 --> 00:43:37,880 Yeah. Well, that's a possibility. 530 00:43:38,200 --> 00:43:41,160 I mean, she can go into some of the details about, you know, 531 00:43:41,180 --> 00:43:43,800 what the number of states were and what the, you know, 532 00:43:43,800 --> 00:43:45,460 the states and all that were. 533 00:43:46,300 --> 00:43:47,960 Probably should take that offline, I think. 534 00:43:47,980 --> 00:43:48,560 Actually, yeah. 535 00:43:48,660 --> 00:43:50,400 Is this going to be published or? 536 00:43:50,680 --> 00:43:50,900 Yes. 537 00:43:51,140 --> 00:43:51,540 Okay. 538 00:43:51,900 --> 00:43:56,300 I mean, here's a link to all the details would be 539 00:43:56,300 --> 00:43:56,740 in the thesis. 540 00:43:56,740 --> 00:43:57,500 All right. 541 00:43:57,800 --> 00:43:59,380 But there will be a paper as well. 542 00:43:59,940 --> 00:44:00,340 Thanks. 543 00:44:02,960 --> 00:44:07,360 My question is, if I made a virus and I applied the 544 00:44:07,360 --> 00:44:12,800 NVIC to it, but I made my virus in a non-standard kind of way that other virus writers and other 545 00:44:12,800 --> 00:44:16,840 programs don't usually do, then would your model still work? 546 00:44:19,800 --> 00:44:21,760 I would say we haven't tried that. 547 00:44:21,860 --> 00:44:23,700 I mean, that's a good question, but I would say probably. 548 00:44:23,940 --> 00:44:26,540 I mean, the more non-standard it is, the better, right, for 549 00:44:26,540 --> 00:44:27,240 our detection. 550 00:44:27,920 --> 00:44:33,300 So sort of the conclusion is that if you want to do this, you would have to make it look like normal 551 00:44:33,300 --> 00:44:35,480 code in some sense, right? 552 00:44:35,640 --> 00:44:35,740 Okay. 553 00:44:35,820 --> 00:44:41,420 But I mean, it wouldn't look like an NVIC virus in terms of when you compare it to other NVIC 554 00:44:41,420 --> 00:44:41,660 viruses. 555 00:44:41,840 --> 00:44:42,100 Oh, I see. 556 00:44:42,200 --> 00:44:45,240 So we, yeah, we might have to train specifically on that case. 557 00:44:45,440 --> 00:44:45,560 Yeah. 558 00:44:45,600 --> 00:44:46,120 That's a good point. 559 00:44:50,480 --> 00:44:56,280 My question is if you took and made a application, but you built, so it actually 560 00:44:56,280 --> 00:45:02,120 had real functionality, but you took and built a metamorphic virus into it so that the 561 00:45:02,120 --> 00:45:08,140 application actually changed its code, but we'd still have normal similarity of a normal 562 00:45:08,140 --> 00:45:13,000 application while still having, you know, in some tiny corner tucked away, you know, 563 00:45:13,000 --> 00:45:18,020 maybe spread out for the entire code base, a polymorphic engine, you know, that seems 564 00:45:18,020 --> 00:45:23,600 like it would present real problems for, well, I mean, not just for this, but there's a 565 00:45:23,600 --> 00:45:26,200 lot of talk about pattern matching going on at desktop. 566 00:45:26,280 --> 00:45:29,880 And that seems to be the real problem with how do you deal with something like that? 567 00:45:30,140 --> 00:45:30,420 Yeah. 568 00:45:30,500 --> 00:45:31,540 I think that's a good point, too. 569 00:45:31,660 --> 00:45:33,140 I mean, you could certainly mask it, right? 570 00:45:33,220 --> 00:45:38,660 Hide the part that we're grabbing a hold of in a larger mass of code. 571 00:45:39,140 --> 00:45:40,580 That would be difficult to deal with. 572 00:45:40,660 --> 00:45:41,560 Yeah, I would agree. 573 00:45:44,420 --> 00:45:45,040 How are you? 574 00:45:45,140 --> 00:45:45,980 I have two questions. 575 00:45:46,280 --> 00:45:51,440 First question is have you considered updating your, you know, presentation with some newer 576 00:45:51,440 --> 00:45:52,240 construction kits? 577 00:45:52,380 --> 00:45:55,800 I know some of the construction kits you mentioned go back to, it's like, what, early 578 00:45:55,800 --> 00:45:59,780 90s, mid-90s, you know, I haven't even seen those for, you know, almost like 10 years 579 00:45:59,780 --> 00:45:59,980 now. 580 00:46:00,140 --> 00:46:04,680 Another thing, the second question is in your tests when you were doing your research, 581 00:46:05,860 --> 00:46:09,300 actually when you infected the files, you know, created these different generation of 582 00:46:09,300 --> 00:46:14,140 these construction kits, have you actually tested each of the executables afterwards 583 00:46:14,140 --> 00:46:15,160 if they're still working? 584 00:46:15,380 --> 00:46:19,320 You know, I remember some looking at them, you know, after a couple generations, the 585 00:46:19,320 --> 00:46:20,180 files don't work anymore. 586 00:46:20,320 --> 00:46:23,920 So a lot of vendors, you know, there's no point of detecting them anymore because they're 587 00:46:23,920 --> 00:46:25,680 already corrupted, damaged files. 588 00:46:26,340 --> 00:46:30,780 Well, to the first point, I mean, I'd be interested to know what are the, you know, 589 00:46:30,780 --> 00:46:33,780 the generators that are out there that are considered good today. 590 00:46:34,080 --> 00:46:37,020 We just looked through the literature and this is what we came up with as being the, 591 00:46:37,120 --> 00:46:38,620 what looked to be the best. 592 00:46:38,840 --> 00:46:39,060 Okay. 593 00:46:39,600 --> 00:46:41,600 From the second point, I don't know. 594 00:46:46,940 --> 00:46:47,660 Maybe not. 595 00:46:47,960 --> 00:46:48,480 Maybe not. 596 00:46:48,580 --> 00:46:48,940 Okay. 597 00:46:49,020 --> 00:46:49,480 Thank you. 598 00:46:49,580 --> 00:46:49,860 Yeah. 599 00:46:58,180 --> 00:47:03,820 How closely do antivirus and like Trojan researchers work with industry? 600 00:47:04,080 --> 00:47:10,180 Like how closely do academics like yourself work with Symantec or McAfee? 601 00:47:10,580 --> 00:47:12,000 And how do you share information? 602 00:47:13,080 --> 00:47:14,100 We don't. 603 00:47:14,100 --> 00:47:15,980 I mean, we haven't worked with them at all. 604 00:47:16,780 --> 00:47:19,040 She's looking for a job if Symantec is hiring. 605 00:47:21,020 --> 00:47:24,660 Generally, AV folks don't share much information because they have this 606 00:47:25,680 --> 00:47:29,120 kind of control where they are like, we'll take your samples, but we won't give you your 607 00:47:29,120 --> 00:47:30,380 hours for experimentation. 608 00:47:30,740 --> 00:47:33,440 So they're not that friendly in that way. 609 00:47:37,140 --> 00:47:37,500 Okay. 610 00:47:37,880 --> 00:47:39,320 If there's no more questions. 611 00:47:39,780 --> 00:47:40,300 Thank you.