1 00:00:00,000 --> 00:00:04,520 I'm Dan Ragosa. I work for General Dynamics Advanced Information Systems, and I'm going 2 00:00:04,520 --> 00:00:09,000 to be talking about automated malware similarity analysis. I'll be the first to admit that 3 00:00:09,000 --> 00:00:14,860 that title sounds a bit complicated, and it's really not. My approach is really simple and 4 00:00:14,860 --> 00:00:16,500 kind of straightforward once you get familiar with it. 5 00:00:17,400 --> 00:00:21,700 Just some quick disclaimers. All this work that I'm presenting today is my own, not General 6 00:00:21,700 --> 00:00:28,460 Dynamics or its customers, even though my bio mentions one of them. And all the work 7 00:00:28,460 --> 00:00:30,440 I've done has been on my own time, et cetera, et cetera. 8 00:00:32,040 --> 00:00:39,200 So the problem I'm trying to address has to do with the time required and the cost of 9 00:00:39,200 --> 00:00:44,340 doing reverse engineering on malware. And I'm talking about more long lines of in-depth 10 00:00:44,340 --> 00:00:48,260 reverse engineering, not so much a surface analysis, dynamic analysis, quick facts. I'm 11 00:00:48,260 --> 00:00:52,920 talking more long lines of trying to gather implementation details, characteristics that 12 00:00:52,920 --> 00:00:56,720 might identify the author, things like that. Stuff that takes time. If you're reverse engineering 13 00:00:56,720 --> 00:00:57,700 and you're producing... 14 00:00:59,260 --> 00:01:05,320 Compatible clients or software, things like that. The problem then becomes trying to reduce 15 00:01:05,320 --> 00:01:09,180 duplicated effort, especially if you have a large group of people. It can be really easy to 16 00:01:09,180 --> 00:01:13,440 fall into the problem of redoing work just because you're not familiar with all the other reports 17 00:01:13,440 --> 00:01:14,480 that are being generated by your group. 18 00:01:17,360 --> 00:01:21,540 I also don't really like anything that requires more work, so if it's not automated, I usually 19 00:01:21,540 --> 00:01:22,500 don't really bother with it. 20 00:01:24,960 --> 00:01:27,980 So I'm also targeting groups that routinely unpack samples. 21 00:01:28,460 --> 00:01:32,040 And I'll show you why later. But if you're not really unpacking your own samples routinely, 22 00:01:32,360 --> 00:01:34,380 this process isn't really going to help you very much. 23 00:01:36,180 --> 00:01:40,780 And again, when I'm talking about similarity links, I'm talking about them for the purpose 24 00:01:40,780 --> 00:01:46,340 of reducing duplicated work, but there's also the side benefit of gathering intel information. 25 00:01:47,040 --> 00:01:51,940 So in some cases, you can draw links between two pieces of malware and gain some intel 26 00:01:51,940 --> 00:01:54,960 value from that that you weren't aware of before. 27 00:01:56,940 --> 00:02:23,980 So the initial idea that I came up with after talking to a couple people is to use, and this is sort of like the spoiler slide, this kind of tells you in gist of everything I want to do, is to use IDA's autoanalysis, which I will agree is not the greatest thing on earth, but there's some ways to address that, use IDA's autoanalysis, break the sample that you've submitted into individual functions, calculate a fuzzy hash, and I'll go into why I use fuzzy hashes and some other algorithms that might be better. 28 00:02:24,980 --> 00:02:28,340 Calculate a fuzzy hash for all the functions and then calculate the similarity between 29 00:02:28,340 --> 00:02:30,460 all the functions and all the samples that you have in your database. 30 00:02:31,320 --> 00:02:35,500 Once we've calculated the similarity between all the samples, all the functions of all 31 00:02:35,500 --> 00:02:39,200 the samples in the database, you can then sort of get a feel for which samples themselves 32 00:02:39,200 --> 00:02:40,860 are similar to one another. 33 00:02:43,340 --> 00:02:48,160 So for those of you who aren't familiar with fuzzy hashing, fuzzy hashing is essentially 34 00:02:48,640 --> 00:02:53,740 sort of like hashing except the hash value that's produced can be used, can be compared 35 00:02:53,740 --> 00:02:54,900 against another fuzzy hash. 36 00:02:54,960 --> 00:02:57,160 And a similarity score can be generated. 37 00:02:57,780 --> 00:03:02,820 So unlike a traditional hash that's cryptographically secure and should never be really indicative 38 00:03:02,820 --> 00:03:06,800 of the content, the fuzzy hash is indicative of the content and it's tolerant of small 39 00:03:06,800 --> 00:03:10,640 changes like truncation, insertion, slides, things like that. 40 00:03:14,420 --> 00:03:16,640 So fuzzy hashing in malware isn't new at all. 41 00:03:16,780 --> 00:03:20,220 If you've read some of the papers about it, there's been lots of people who have gotten 42 00:03:20,220 --> 00:03:22,840 stats on it and tried to use it and had some success. 43 00:03:24,060 --> 00:03:27,360 The difficulty is that people tend to use fuzzy hashing on the entire sample. 44 00:03:27,660 --> 00:03:30,800 So if you're dealing with full malware samples, I mean like the entire thing, you're fuzzy 45 00:03:30,800 --> 00:03:34,360 hashing the entire thing, and you're dealing with small, tiny files, you tend to have files 46 00:03:34,360 --> 00:03:35,380 that are heavy on structure. 47 00:03:35,680 --> 00:03:39,240 So they're heavy on PE structure, they're heavy on like null values, there's lots of 48 00:03:39,240 --> 00:03:43,560 junk in there that really doesn't tell you much, but fuzzy hashing takes it into account 49 00:03:43,560 --> 00:03:45,120 and it goes into the similarity score. 50 00:03:45,440 --> 00:03:47,300 The same is true sort of for large files. 51 00:03:47,400 --> 00:03:52,120 For large files, you end up with embedded payloads, whether it be like a decoy document or like 52 00:03:52,120 --> 00:03:52,720 a second stage. 53 00:03:52,780 --> 00:03:52,820 Yeah. 54 00:03:52,820 --> 00:03:53,480 Or something like that. 55 00:03:53,720 --> 00:03:56,900 And again, you don't really care about that as much because you're looking for similarity 56 00:03:56,900 --> 00:03:57,320 in the code. 57 00:03:59,340 --> 00:04:03,380 So some of those issues are addressed by using fuzzy hashing at the function level. 58 00:04:07,020 --> 00:04:10,300 So automated malware similarity is not new, I think. 59 00:04:10,420 --> 00:04:14,680 There's definitely commercial products and for certain some private products that are 60 00:04:14,680 --> 00:04:16,300 available for this same purpose. 61 00:04:18,080 --> 00:04:22,800 But really there isn't anything, I think, free that works as well as I'd like it to 62 00:04:22,800 --> 00:04:23,420 for this purpose. 63 00:04:24,760 --> 00:04:28,520 So some stuff worth mentioning, Xanax Bindiff and VxClass. 64 00:04:28,740 --> 00:04:34,080 I had tried Bindiff before and actually got a demo of VxClass last night or actually yesterday 65 00:04:34,080 --> 00:04:34,460 afternoon. 66 00:04:34,740 --> 00:04:36,160 And I think it's actually really awesome. 67 00:04:36,360 --> 00:04:38,680 I think their goal is slightly different, though. 68 00:04:38,820 --> 00:04:41,820 They're trying again to determine similarity between the overall sample. 69 00:04:42,060 --> 00:04:46,480 What I want to do is find tiny bits of nearly identical code across multiple samples. 70 00:04:46,680 --> 00:04:50,320 And that may only comprise a small portion of the samples, but it's important to me because 71 00:04:50,320 --> 00:04:52,240 I'm looking for code reuse for attribution. 72 00:04:52,240 --> 00:04:54,880 Intel and trying to reduce duplicated effort. 73 00:04:55,200 --> 00:04:58,080 So overall sample similarity isn't as important to me. 74 00:04:58,200 --> 00:05:00,620 And I think that's kind of what VxClass focuses on right now. 75 00:05:00,800 --> 00:05:06,160 And having talked to them, they may make a shift and make it possible to do sort of small 76 00:05:06,160 --> 00:05:06,920 similarity detection. 77 00:05:07,140 --> 00:05:08,420 But it's not really easy right now. 78 00:05:09,680 --> 00:05:14,380 And I mentioned HBGary's DNA because it's sort of a classification scheme. 79 00:05:14,660 --> 00:05:17,920 And I wanted to bring that up because what I'm not trying to do is I'm not trying to 80 00:05:17,920 --> 00:05:18,680 classify malware. 81 00:05:19,140 --> 00:05:22,180 The system won't tell you that this is a Trojan or this is a key log or something. 82 00:05:22,240 --> 00:05:24,160 I don't really care what it is. 83 00:05:24,280 --> 00:05:25,740 I'm just looking for duplicated code. 84 00:05:26,040 --> 00:05:28,020 So classification, definitely not what I'm going after. 85 00:05:29,440 --> 00:05:33,020 And your agency may have private tools to do something similar to this as well. 86 00:05:35,160 --> 00:05:39,320 So sort of the refined idea after having talked to people and trying to figure out how I'm 87 00:05:39,320 --> 00:05:41,940 going to approach this is just to create an open source project. 88 00:05:42,160 --> 00:05:43,420 So I don't want it to be private. 89 00:05:43,540 --> 00:05:47,480 I don't want it to be reserved for my agency or the people we work with, which is why I 90 00:05:47,480 --> 00:05:48,200 did it in my own time. 91 00:05:49,260 --> 00:05:51,720 Because I wanted contributions from other people. 92 00:05:52,240 --> 00:05:52,740 But I want it to be outside in the community. 93 00:05:54,100 --> 00:05:59,080 And initially, like, similarity algorithms can become incredibly complex if you let them. 94 00:05:59,520 --> 00:06:04,080 So my idea is to keep it really simple and keep it stupid, which is use fuzzy hashing. 95 00:06:04,220 --> 00:06:08,260 Fuzzy hashing isn't the best algorithm for determining similarity between two functions. 96 00:06:08,540 --> 00:06:10,780 I mean, it has no idea what assembly mnemonics mean. 97 00:06:10,880 --> 00:06:12,600 It has no idea what the code is actually doing. 98 00:06:12,860 --> 00:06:15,140 It can't do all the fancy comparisons that Bindiv can. 99 00:06:15,380 --> 00:06:16,800 But it's really simple to understand. 100 00:06:17,160 --> 00:06:21,040 From my perspective, if you have two binary blobs and they're similar according to fuzzy 101 00:06:21,040 --> 00:06:21,360 hashing. 102 00:06:22,240 --> 00:06:22,580 They're really similar. 103 00:06:23,040 --> 00:06:24,920 There's nothing really to understand beyond that. 104 00:06:28,360 --> 00:06:32,040 And of course, I just wanted to create an interface so that if, for example, you want 105 00:06:32,040 --> 00:06:33,520 to integrate it with other tools, it wouldn't be that hard. 106 00:06:33,800 --> 00:06:34,680 It's really straightforward. 107 00:06:36,380 --> 00:06:37,320 So some limitations. 108 00:06:37,720 --> 00:06:40,040 I know in my title I say it's automatic malware similarity analysis. 109 00:06:40,500 --> 00:06:43,760 But really it's not automatic because I don't provide you an unpacker. 110 00:06:43,840 --> 00:06:45,360 Like I don't provide a generic unpacker. 111 00:06:46,720 --> 00:06:50,100 I'm not good enough to write one that would be worth releasing, I guess is sort of the 112 00:06:50,100 --> 00:06:50,480 gist of it. 113 00:06:50,880 --> 00:06:52,220 But, I mean, you may have... 114 00:06:52,220 --> 00:06:53,080 I don't have packers available to you. 115 00:06:53,400 --> 00:06:57,540 And also the target niche I'm going after would be unpacking these samples anyway. 116 00:06:57,840 --> 00:07:01,400 So if you're not unpacking and you're not doing full reverse engineering, this isn't 117 00:07:01,400 --> 00:07:02,460 going to help you that much anyway. 118 00:07:02,800 --> 00:07:04,640 So I'm kind of hoping that's not that big of a deal. 119 00:07:05,240 --> 00:07:09,160 But you could definitely chain that into the process if you have some sort of generic unpacker. 120 00:07:10,840 --> 00:07:16,080 So fuzzy hashing itself, like I talked about, has some limitations in terms of calculating 121 00:07:16,080 --> 00:07:18,100 similarity, for example, for small functions. 122 00:07:18,240 --> 00:07:22,000 Small functions don't really give it enough information to do... calculate a good fuzzy 123 00:07:22,000 --> 00:07:23,340 hash that can be compared effectively. 124 00:07:24,500 --> 00:07:28,560 It's also thrown off by simple things like offset changes and things like that. 125 00:07:28,660 --> 00:07:30,100 Not to a great extent. 126 00:07:30,460 --> 00:07:33,980 And overall it produces a very conservative similarity score, which is actually really 127 00:07:33,980 --> 00:07:36,480 helpful for identifying really similar code. 128 00:07:37,880 --> 00:07:40,400 There's definitely other options as well that are worth exploring. 129 00:07:40,640 --> 00:07:42,640 And I'll try to get those a little bit later. 130 00:07:42,700 --> 00:07:43,800 But please remind me if I don't. 131 00:07:44,660 --> 00:07:46,020 And I'm also relying on IDA. 132 00:07:46,080 --> 00:07:47,180 I realize that's not free. 133 00:07:47,340 --> 00:07:50,380 But I assume, again, if you're doing this sort of work, that you have access to IDA 134 00:07:50,380 --> 00:07:50,600 anyway. 135 00:07:54,640 --> 00:07:58,380 So just going back to what I was saying before, this is not a classification system. 136 00:07:58,540 --> 00:08:00,300 But it's also not an identification system. 137 00:08:00,660 --> 00:08:05,100 So just because you can throw a sample in and get some similarity to existing malware 138 00:08:05,100 --> 00:08:06,040 doesn't mean it is malware. 139 00:08:06,280 --> 00:08:09,780 It could be reused base64 code or something simple like that. 140 00:08:09,920 --> 00:08:10,780 That doesn't mean anything. 141 00:08:11,200 --> 00:08:14,800 But similarity, again, is important to look for anyway, even if it isn't malicious. 142 00:08:17,780 --> 00:08:19,520 So just some quick implementation details. 143 00:08:19,900 --> 00:08:21,280 It's all Python, MySQL, PHP. 144 00:08:22,000 --> 00:08:24,100 And I've tested it on Windows and Linux currently. 145 00:08:24,340 --> 00:08:26,520 But it should work on anything IDA runs on. 146 00:08:28,620 --> 00:08:30,080 So this is a long-term idea. 147 00:08:30,200 --> 00:08:31,000 Not all of this is implemented. 148 00:08:31,180 --> 00:08:34,600 But kind of where I want to go and kind of where I guess I'd like the project to aim 149 00:08:34,600 --> 00:08:40,860 for is to kind of break these samples down into function blobs and also gather lots of 150 00:08:40,860 --> 00:08:45,100 other information that could be used in a generic way for similarity analysis, gather 151 00:08:45,100 --> 00:08:50,140 that all together, package it up, send it to a database that can store all this information, 152 00:08:50,420 --> 00:08:51,980 and then pre-compute all the similarities. 153 00:08:51,980 --> 00:08:53,080 So that we can get some similarity information if we have to. 154 00:08:53,580 --> 00:08:58,800 One of the things I didn't get into was one of the limitations of fuzzy hashing is that 155 00:08:58,800 --> 00:09:03,120 you can't effectively store, you can't effectively sort fuzzy hash values. 156 00:09:03,360 --> 00:09:08,060 So when you're doing comparison or when you're searching for something similar based on fuzzy 157 00:09:08,060 --> 00:09:10,040 hash value, you have to compare it against everything else in the database. 158 00:09:10,500 --> 00:09:11,840 It's a really exhaustive process. 159 00:09:12,100 --> 00:09:14,760 And you can imagine how quickly that would grow if you have lots of functions and things 160 00:09:14,760 --> 00:09:15,040 like that. 161 00:09:15,300 --> 00:09:19,280 So all that data is pre-computed because if it wasn't, it would just make the client 162 00:09:19,280 --> 00:09:19,800 really crappy. 163 00:09:21,980 --> 00:09:25,000 So we pre-compute all those values, we store everything in the database, and make it available 164 00:09:25,440 --> 00:09:27,280 via a really simple web front end right now. 165 00:09:27,660 --> 00:09:30,780 But obviously other interfaces are definitely possible. 166 00:09:31,520 --> 00:09:35,620 Another thing worth mentioning is that currently as it's implemented, all of the really important 167 00:09:35,620 --> 00:09:37,740 logic is implemented as SQL stored procedures. 168 00:09:38,120 --> 00:09:40,640 So writing another interface should be really simple. 169 00:09:42,400 --> 00:09:46,240 One other thing that isn't implemented is something I'd like to do, which is allow the 170 00:09:46,240 --> 00:09:50,300 user to submit an IDB, which is something Bindiff and VxClass does right now. 171 00:09:50,980 --> 00:09:51,600 So I'm going to show you how that works. 172 00:09:51,980 --> 00:09:56,000 Which would allow you to fix up the IDB after auto analysis to make it something worthwhile 173 00:09:56,000 --> 00:09:59,880 and something worth chunking out and throw that in the system and have it just kind of 174 00:09:59,880 --> 00:10:00,220 go forward. 175 00:10:00,800 --> 00:10:02,820 Something that came up recently is Google's Core Get. 176 00:10:02,960 --> 00:10:07,540 I think that it would be actually an interesting project to see what that would do for malware 177 00:10:07,540 --> 00:10:08,160 similarity analysis. 178 00:10:09,120 --> 00:10:13,440 Because what Google Core Get is capable of doing is it's aware of assembly mnemonics. 179 00:10:13,580 --> 00:10:18,800 So it can find the smallest difference between two pieces of code and try to generate a patch. 180 00:10:18,960 --> 00:10:21,960 My thoughts are is if you have a really small delta, that might interfere. 181 00:10:21,980 --> 00:10:22,340 It might indicate similarity. 182 00:10:22,700 --> 00:10:25,860 You can just pre-calculate that as well and throw that into a similarity scoring system. 183 00:10:27,520 --> 00:10:32,320 I'd also like to work on IDA OLLI immunity integration so that as you're looking through 184 00:10:32,320 --> 00:10:36,760 code, it might automatically comment code that's similar to something you've seen before 185 00:10:37,500 --> 00:10:39,440 or other samples you've seen before, et cetera. 186 00:10:43,280 --> 00:10:46,540 So as I said right now, it's just fuzzy hashing only, which I think is working actually really 187 00:10:46,540 --> 00:10:46,840 well. 188 00:10:48,960 --> 00:10:51,460 And there's a couple of small bugs that aren't really too big of a deal. 189 00:10:51,460 --> 00:10:53,040 But there's definitely work to be done. 190 00:10:53,200 --> 00:10:56,400 And that's why it's kind of something I want to be a community project as opposed to something 191 00:10:57,240 --> 00:10:58,140 only I work on. 192 00:11:00,500 --> 00:11:05,140 So I have a demo of the web front end to show you as well as some of the back end stuff. 193 00:11:09,480 --> 00:11:15,720 Now I will sort of caveat this by saying that I had some really good malware samples. 194 00:11:15,980 --> 00:11:19,640 But after having looked back on them, I realized that they sort of reflected the work I was 195 00:11:19,640 --> 00:11:19,880 doing. 196 00:11:19,880 --> 00:11:22,360 And the employer wasn't very happy with that. 197 00:11:23,760 --> 00:11:26,320 So these are really just random samples I pulled off the web. 198 00:11:26,440 --> 00:11:28,440 But they kind of highlight some of the ideas I want to point out anyway. 199 00:11:34,580 --> 00:11:36,940 So there's really nothing interactive about this at all. 200 00:11:37,160 --> 00:11:42,440 There's simply an inbox, which in an environment I would foresee this being sort of like a 201 00:11:42,440 --> 00:11:42,800 network share. 202 00:11:42,920 --> 00:11:44,020 You just throw your unpacked samples in. 203 00:11:44,600 --> 00:11:46,580 And on a cron job, you'd run the init script. 204 00:11:47,600 --> 00:11:49,860 And it really just all it does is autosubmit. 205 00:11:49,880 --> 00:11:53,440 Automate launching of IDA. 206 00:11:53,560 --> 00:11:59,420 It extracts all the pertinent information, packages it up into a zip file that can then 207 00:11:59,420 --> 00:12:02,780 be processed by the back end that actually computes similarity. 208 00:12:04,100 --> 00:12:08,060 So you'll see all these zip files that comprise all the samples in the system. 209 00:12:10,580 --> 00:12:12,180 And they include all the information you need. 210 00:12:12,360 --> 00:12:13,220 All chunked out. 211 00:12:13,300 --> 00:12:14,220 All really simple to parse. 212 00:12:15,200 --> 00:12:17,720 And it makes it really easy to go forward from here. 213 00:12:18,680 --> 00:12:19,420 I would say. 214 00:12:19,420 --> 00:12:23,980 If you, I mean, like on this laptop, for example, I can get through the full process of about 215 00:12:23,980 --> 00:12:25,020 like five samples a minute. 216 00:12:25,240 --> 00:12:26,880 But I mean, it's like a laptop in a VM. 217 00:12:27,040 --> 00:12:28,860 So I'm sure you can get better if you threw more hardware at it. 218 00:12:29,500 --> 00:12:30,760 If you're going through larger volumes. 219 00:12:33,460 --> 00:12:37,920 So after the zip files are generated, there's another script that actually goes through 220 00:12:37,920 --> 00:12:40,060 the zip files and will, whoops. 221 00:12:45,760 --> 00:12:48,920 And it will actually ingest all the zip files into the database. 222 00:12:49,820 --> 00:12:51,600 So this is a really simple front end. 223 00:12:51,720 --> 00:12:52,820 I did it together really quickly. 224 00:12:53,460 --> 00:12:57,820 Primarily because all the logic that I cared about was actually already created in stored 225 00:12:57,820 --> 00:12:58,120 procedures. 226 00:12:58,420 --> 00:13:02,400 So most of this interface really just, holy crap. 227 00:13:11,520 --> 00:13:13,280 And that's the danger of live demos. 228 00:13:13,320 --> 00:13:13,700 One second. 229 00:13:16,360 --> 00:13:16,840 Okay. 230 00:13:16,840 --> 00:13:17,160 All right. 231 00:13:17,440 --> 00:13:17,920 All right. 232 00:13:18,140 --> 00:13:18,620 All right. 233 00:13:23,000 --> 00:13:23,400 Great. 234 00:13:23,940 --> 00:13:25,160 So this is the front end. 235 00:13:26,640 --> 00:13:31,520 And this really is just right now is just a list of all the samples that have been ingested 236 00:13:31,520 --> 00:13:32,100 in the system. 237 00:13:33,480 --> 00:13:36,240 And there's a lot more information stored in the database, but this is just sort of 238 00:13:36,240 --> 00:13:39,740 like a really simple listing of the stuff that I've recently imported. 239 00:13:40,180 --> 00:13:45,920 If you click on any one of the samples, you'll get a list of similar binaries to it. 240 00:13:46,240 --> 00:13:48,600 But one of the views I think is more interesting. 241 00:13:48,600 --> 00:13:52,580 It's just looking at all the similar binaries against one another in the entire system, just 242 00:13:52,580 --> 00:13:56,000 cross correlating everything, trying to figure out what's similar to one another. 243 00:13:57,160 --> 00:14:04,700 And I've sort of, I've floored it at a minimum function size just to kind of address the 244 00:14:04,700 --> 00:14:08,360 fuzzy hashing problem of small functions and getting similarity that's meaningful. 245 00:14:10,320 --> 00:14:14,720 So I haven't really looked too closely at this data, but I'll try to pull something 246 00:14:14,720 --> 00:14:15,800 out that seems interesting. 247 00:14:16,560 --> 00:14:17,000 Okay. 248 00:14:18,720 --> 00:14:19,280 Let's see. 249 00:14:20,000 --> 00:14:24,460 So I clicked on these two samples, this relationship between these two samples here. 250 00:14:24,780 --> 00:14:27,220 And it says that these two functions are very similar. 251 00:14:29,540 --> 00:14:31,600 And the similarity score is not that great. 252 00:14:31,860 --> 00:14:36,080 But you can kind of see that overall, for the most part, the flow of the code looks 253 00:14:36,080 --> 00:14:38,520 the same with the exception of the offsets. 254 00:14:39,500 --> 00:14:44,360 And if you look at the similarity that it's giving you, it's only telling you about two 255 00:14:44,360 --> 00:14:45,720 functions between these two binaries. 256 00:14:46,120 --> 00:14:46,560 Okay. 257 00:14:47,000 --> 00:14:50,740 And then overall similarity score between these full two binaries, you get a really 258 00:14:50,740 --> 00:14:52,360 low score no matter what algorithm you're using. 259 00:14:52,580 --> 00:14:53,960 It really doesn't matter what you're doing. 260 00:14:54,200 --> 00:15:01,020 But what if this one function is a custom crypto algorithm the author uses across multiple 261 00:15:01,020 --> 00:15:02,160 tools that he's written? 262 00:15:02,540 --> 00:15:04,220 It might be important to look for that. 263 00:15:04,360 --> 00:15:07,920 And I think that if you look at the full sample alone, you wouldn't get that picture. 264 00:15:10,180 --> 00:15:14,780 And one thing I can say, and I can't really show you via samples because I've again pulled 265 00:15:14,780 --> 00:15:16,780 random stuff, is that happens a lot. 266 00:15:17,000 --> 00:15:19,760 You'll see a lot of functions that are very, very similar. 267 00:15:20,040 --> 00:15:21,780 I mean, there's very trivial changes in between them. 268 00:15:21,940 --> 00:15:26,100 But if you look at the entire sample, there's very little similarity. 269 00:15:26,400 --> 00:15:29,040 And I think we're missing that because we're looking at the wrong scale. 270 00:15:31,760 --> 00:15:34,980 So ultimately, you know, fuzzy hashing isn't the greatest thing for this. 271 00:15:35,080 --> 00:15:38,720 I think there's some other options like fast FOIA transforms, people have experimented 272 00:15:38,720 --> 00:15:43,340 with sort of the bio-related similarity things like bin blast and things like that. 273 00:15:43,500 --> 00:15:45,000 And I think that's worth trying out. 274 00:15:45,080 --> 00:15:46,980 And I think it's worth throwing those similarities. 275 00:15:47,000 --> 00:15:48,340 There's a lot of similarity systems in here. 276 00:15:48,500 --> 00:15:52,800 But doing it at the function level so we can start looking for those traces of code that 277 00:15:52,800 --> 00:15:56,760 are common between all these things and trying to find something meaningful between all that. 278 00:15:57,920 --> 00:16:01,680 With that said, I don't have a lot more to show you unless you have questions or, 279 00:16:01,800 --> 00:16:06,160 and I'd also be willing to let you come up and just throw stuff in here if you can give 280 00:16:06,160 --> 00:16:08,860 it to me, temporarily at least, and just try it out. 281 00:16:09,760 --> 00:16:10,160 Sure. 282 00:16:11,320 --> 00:16:14,040 You're looking at a sample . 283 00:16:14,040 --> 00:16:16,100 Are you comparing this to ? 284 00:16:16,100 --> 00:16:16,720 No. 285 00:16:26,420 --> 00:16:31,100 So you're asking if I throw a sample in there and I look at the similarity, is it showing 286 00:16:31,100 --> 00:16:33,300 me a comparison against everything else in the database? 287 00:16:33,580 --> 00:16:33,720 Yeah. 288 00:16:34,400 --> 00:16:37,060 Currently what it does is it takes all the functions in the sample. 289 00:16:37,200 --> 00:16:41,540 So for example, once I click on one of these samples here, there's nothing similar to that 290 00:16:41,540 --> 00:16:41,720 one. 291 00:16:42,200 --> 00:16:46,520 But if I click on any of these samples, it looks up the database. 292 00:16:46,520 --> 00:16:50,180 It looks up in the database for all the functions that belong to that sample and all the other 293 00:16:50,180 --> 00:16:52,920 functions in the database from any other sample that are similar to it. 294 00:16:53,180 --> 00:16:55,740 And it'll show you all that information and just sort of aggregate it. 295 00:16:58,320 --> 00:16:58,720 . 296 00:17:06,500 --> 00:17:13,680 If you have malware that's actually writing itself into other executables, and I would 297 00:17:13,680 --> 00:17:17,160 expect you could get a lot of matches that way if you ingested all those executables. 298 00:17:19,420 --> 00:17:19,840 Sure. 299 00:17:20,900 --> 00:17:21,720 Any other questions? 300 00:17:22,480 --> 00:17:22,900 Sure. 301 00:17:23,220 --> 00:17:23,640 . 302 00:17:25,180 --> 00:17:25,600 Yeah. 303 00:17:26,160 --> 00:17:26,580 Yeah. 304 00:17:26,620 --> 00:17:28,700 That's one of the things that came up pretty early on, is a whitelist of samples. 305 00:17:29,060 --> 00:17:33,040 There's definitely functions you don't care about and you don't want to be in there. 306 00:17:33,220 --> 00:17:35,920 And that's not really reflected in the UI, but yeah, there's this capability to whitelist 307 00:17:35,920 --> 00:17:36,160 functions. 308 00:17:36,540 --> 00:17:41,700 I'm a little bit hesitant to do that because I think I kind of care about any sort of similarity, 309 00:17:41,900 --> 00:17:44,900 but if the noise bothers you, yeah, that'd be worth filtering out. 310 00:17:45,920 --> 00:17:50,080 For example, just throwing a standard library you see frequently, just throwing the entire 311 00:17:50,080 --> 00:17:53,020 thing in there, saying this binary is whitelisted, all these functions are good, don't worry 312 00:17:53,020 --> 00:17:53,260 about it. 313 00:17:54,380 --> 00:17:54,400 Yeah. 314 00:17:55,720 --> 00:17:56,300 Anything else? 315 00:17:57,660 --> 00:17:58,020 Oh. 316 00:17:58,060 --> 00:17:58,280 Sure. 317 00:18:01,340 --> 00:18:05,760 Right now, well, I can't talk about anything other than this demo database. 318 00:18:05,920 --> 00:18:09,480 This demo database right now has, I would say, about 80 to 100 samples. 319 00:18:09,600 --> 00:18:10,300 It's not very big at all. 320 00:18:12,180 --> 00:18:12,540 Yeah. 321 00:18:12,600 --> 00:18:14,000 But the database itself isn't very large. 322 00:18:14,080 --> 00:18:19,080 The overall, the large chunk of the database is actually storing the IDB and the sample 323 00:18:19,080 --> 00:18:20,780 itself and all the function blobs and things like that. 324 00:18:20,880 --> 00:18:23,960 There's lots of data in the database, but overall, the simulator links, it's really 325 00:18:23,960 --> 00:18:24,180 tiny. 326 00:18:26,340 --> 00:18:26,800 All right. 327 00:18:26,860 --> 00:18:28,280 If there's no more questions, then... 328 00:18:28,280 --> 00:18:28,600 Oh. 329 00:18:28,700 --> 00:18:29,060 Go ahead. 330 00:18:29,720 --> 00:18:30,080 . 331 00:18:32,060 --> 00:18:32,740 Public database? 332 00:18:34,500 --> 00:18:36,080 Possibly, if you want to do the hosting. 333 00:18:39,540 --> 00:18:40,020 All right. 334 00:18:40,080 --> 00:18:40,680 Thanks, guys. 335 00:18:40,780 --> 00:18:41,440 I appreciate you for coming. 336 00:18:42,260 --> 00:18:42,960 Hope you enjoyed it. 337 00:18:44,020 --> 00:18:44,380 . 338 00:18:44,380 --> 00:18:44,700 .