Awesome. Thank you, everybody. Next up, for our last talk, actually, at the AI Village, we have Shimon and Tal on noisy distributed distorted data sets. And let's all give them a round of applause. Well, good morning, everyone. And thank you all for being here on this Sunday talk. Actually, it's quite a nice attendance for a Sunday morning. We're, as presented before, Shimon and Tal. And we'll be talking about how we take noisy and distorted or initially noisy and distorted data sets and data sources and bring them into being excellent prediction models. Just a bit about ourselves. So as I said before, I'm Shimon, I'm the VP of research and deep learning at Deep Instinct. I've been working with Deep Instinct for the past three years since mid 2016. But overall, I have roughly 16 years of experience in cyberspace, both in offensive and defensive positions, both deep into research, but also, in recent years, more in management positions. So good morning, everybody. I'm Tal. Maybe some of you remember me from the talk about malicious Chrome extensions two days ago. So it's a big pleasure to be here again. I'm working at Deep Instinct as well for the past two years and a half. PR to Deep Instinct, I've been serving at the IDF for seven years. Okay, so after you know us a bit better, let's talk a bit about this talk's agenda. We'll start by introducing the problem that we're about to talk about in the next 40 minutes or so. I guess a lot of the people sitting here know that putting together excellent datasets is hard. It's not an easy task, and it involves a lot of knowledge, a lot of experience, a lot of trial and error. We'll be talking about some main problems and common issues when it comes to building those datasets. We'll be talking about source quality, accuracy, and diversity, and how do we evaluate those. We'll be talking about issues related to specific file formats and how file formats in general might affect the way that we build and engineer datasets. And then we'll talk about some noise and distributions and distortions error issues in threat intelligence sources. We'll conclude and wrap up by talking about how everything that we will be talking about drills down to the way that we conduct research into false positives and false negatives of the different models that we create. And we'll talk about some tips and recommendations about how to build the best datasets possible. Let's get started. All right. So the problem that we are trying to... we are talking about in this presentation. So basically the very first step at every creation of a model is building a dataset. The data that is used for the datasets is of course an important step in the creation of the model. As was stated two years ago in a presentation by Hillary Sanders, they were talking about how the data affects the results of the model that you create. So in this talk we would like to dive into some specific use cases and issues that we have experienced in our work, in the everyday work. And how these issues affect the datasets that you might build. So we will be talking about some sources. The commercial feeds such as VirusStore and Reversing Labs. Malware repositories like free repositories. And software repositories such as NSRL. OK. So I briefly mentioned before some of the main three topics. What we'll be showcasing in each one is as follows. When it comes to source quality and accuracy we'll talk about free and open malware repositories. They're a good thing but we also need to be careful about using them. We'll show why and how. We'll talk about sample duplications and the way that those duplications manifest in the most common threat intel feeds. As far as file format issues, we'll showcase how the threat landscape in two specific file formats, XLS office files or Excel office, you know what it is. And RTF, how the threat landscape in those two file types manifests into a very specific distribution of the files we see in the threat landscape and how that might affect the data sets and ultimately the models we'll build. And then moving on to noise and distortion, threat intelligence we'll show even sometimes how time distribution can be very weird and that in itself is not a desirable situation that might have pretty adverse outcomes. And we'll talk about two specific threat landscapes. One being the 64 bit PE threat landscape and the second one being the, yes even Android going into the stock. How these two threat landscapes have very very dense and specific distributions that also, that ultimately we might also, we might even call them a distortion of a kind and how that might affect how we, how we should build the data sets around those kind of threat landscapes. Let's get going. All right, so uh, the first category is uh, is the, is the sources. Uh, so uh, there are like two different kind of sources. Uh, the first one is the free repositories. Uh, and the second one is the commercial. Uh, we'll use uh, two use cases, different use cases. One from uh, free repositories and the second one is from a commercial one. Um, so in general, uh, start with the free repository. Um, every repository is welcome. I mean, when you, if you can get like more data, so actually it's good. So every time when there is like a new repository out there, uh, we are happy. Uh, we would like to, to take this data and to use it and to like uh, put it uh, into our uh, databases and uh, to connect it to our uh, data pipelines. Um, so it should be a good thing in general. Uh, but uh, sometimes when you, when we start looking at the data, uh, it's not as good uh, as we might expect it uh, to be. Uh, since a lot of uh, repositories are biased and uh, are indeed noisy, uh, which uh, create imbalances in your datasets if you take it as is. Alright. So the first use case uh, that we will be talking about is the free uh, open uh, repositories. Uh, there are a lot of uh, repositories out there. Uh, some examples are shown in the presentation. Uh, we took one uh, repository uh, that we are facing, we've been facing like uh, a lot of times uh, uh, we found it very used uh, by customers and by uh, researchers. And uh, we'd like to see what uh, what lays inside uh, these repositories. Uh, this specific uh, repository. Uh, since uh, it was really used a lot and uh, we saw that uh, in general the results that we had on this repository was not as good as uh, we are used to have. Um, so we took a dataset of one hundred and thirty thousand uh, samples from uh, this repository. Uh, uh, this repository uh, claims to be uh, containing malware only. Uh, so we tried to uh, answer uh, two questions. Uh, the first is what is the relevance of this repository? Like what uh, can you do with this repository? And the second, how uh, good the data that lays inside is? Or um, uh, or actually uh, is it really containing uh, only uh, malicious files as it claims? Uh, we have also uh, published a blog post about it so you can read about it later. Um, so uh, about the data that lays inside this uh, repository. So as you can see uh, only around uh, sixty percent are uh, were P files and uh, there was uh, like a very huge amount of files that were just actual files. Uh, which of course cannot harm a computer and uh, it's a bit problematic to like classify them as uh, malicious files. Um, and uh, of course that the data from uh, this uh, this repository cannot be- cannot be taken as is for uh, testing uh, models for example. Uh, but uh, we saw that the- the distribution types uh, and uh, of course that not everything is P in this repository but uh, at least uh, we hope to see that everything uh, is indeed malicious files as it claims to contain. Uh, so uh, we took uh, the data set and- that we created before uh, as I mentioned and uh, we tried to figure out how many uh, malicious files are indeed lays uh, lay in this uh, repository. Uh, we found out- we found out that there are only 56 percent uh, malware files uh, in the PE uh, section of the data set. Uh, we were truly amazed to see that uh, about 40 percent are PUA and around 4 uh, or 5 or uh, 3 or 4 percent were just benign files and we say benign we mean uh, pure benign files like not something that can be uh, PUA or stuff like that. Uh, so of course that as you can see uh, data from uh, this repository cannot uh, be taken as is for uh, testing models or uh, or training sets. Uh, of course that uh, one can use uh, the data from this repository uh, it's open, it's free uh, you- you should be trying to use it. Uh, not everybody has like uh, you know, API keys and uh, to commercial feeds. Uh, but uh, you cannot take it as is and you need to do some uh, engineering on the data before you take it. So that's the- the bottom line. Um, alright. Uh, another uh, use case that uh, we might uh, we will talk about it is uh, is from commercial feeds. Um, this uh, use case is the sample duplication. Uh, a lot of times uh, there is uh, like a specific sample that uh, is changed uh, with a few bytes inside the file and is uploaded again and uh, of course that the change uh, the change uh, makes the file has uh, a new hash and uh, and then you find uh, like thousands or even tens of thousands of times uh, similar files, almost the same file with a few uh, bytes that are changed uh, inside the commercial uh, repository. Uh, so let's talk about uh, a few examples for uh, this case. So the first is like polymorphic malware. Uh, in order to uh, like evade IOC based detection uh, that is used by a lot of vendors. Um, sometimes malware uh, change like something inside the file like uh, uh, uh, uh, first to, to change its hash and second to change uh, some IOCs such as file name or IP address or uh, or things that uh, vendor can uh, can sign on. Uh, the second use case is uh, virus uh, infected files. So uh, viruses in general uh, what they do is like uh, infecting a file. We'll see uh, in the next uh, next in the presentation we'll talk about a, a use case that uh, a virus like change something in the file, in the Microsoft file and uh, how it affects the, the data. Uh, and the last but not least uh, use case is the mass submissions. Uh, so a lot of times there are like researchers or even threat uh, actors that try to see if uh, their new, brand new malware is caught by uh, vendors. So they can like change a few bytes or change something in the behavior of, of their malware and upload it again to, to virus total for example and, and then we end up, we can end up with a lot of uh, duplicated samples again with different hash but very, very similar uh, files. Now let, let's back up for, for one second. Uh, mass submissions. Are we actually talking about a poisoning attack? Uh, we're here in the AI village and I think that poisoning attacks or attacking AI in general is one of the most discussed topics. So one could say uh, and, and this for the people sitting in this room this might be quite appealing or attractive even to say that wow, we're actually seeing AI poisoning attacks. Uh, so we actually think that this, this mass submissions use case is not exactly that. First of all because as we said in, in many cases uh, we see that these mass submissions are coming from users with API keys and those tend to be usually consumer, usually consumers on the defense side of these uh, um, of, of these uh, feeds and sources. Uh, not to say that when it comes from threat actors this is not uh, maybe also used not only for testing their own malware but also to try maybe and confuse or, or, or send you know, send researchers and send the security industry into different places. They want to want the, the, the, the attackers maybe don't want them to look at so they'll upload mass amounts of files and to cause you know, someone to think that you know, this is the hot stuff right now but actually they're doing something else. So, but still there's a difference between uh, you know, say poisoning attack and uh, just you know, doing something massive in order to, to, to, to confuse your, your enemy or your adversary. So we think it's more the second case than the first. So we're not still seeing actually targeted poisoning attacks. Not to say that it not, that it might not happen uh, uh, in the very, very near future but we don't think that's exactly the case as it but still taking those mass duplications in might inadvertently actually cause those mass submissions to be uh, a kind of poisoning attack. So that's why we chose to bring it forward here. Alright so uh, let's talk about a specific example of uh, uh, a malware. A polymorphic one uh, that uh, has been uploaded like tens of thousands of uh, uh, uh, times with uh, different hashes. So uh, we're talking about the Ramnit. Uh, Ramnit is a worm that is active for uh, more or less 7 or 8 years already. Uh, and as you can see in this results uh, it's uh, it has been uploaded a lot of times. Uh, we used uh, it's SSDIP uh, and uh, after taking this SSDIP uh, we looked at some of the samples that lays, that lay inside uh, this cluster in order to figure out if they are actually the same uh, file or not. So uh, as you can see we found out that uh, all these files were uh, in the size of uh, 3.5k uh, kilobytes. Uh, and uh, they were all DLL files. Um, the sections was uh, was the same uh, sections uh, by hash. Uh, at least 3 out of 4. Uh, about the, the fourth one uh, it was the data section uh, and the section uh, hash was different. So uh, we were interested uh, in like taking this example uh, to showcase uh, why uh, the sample duplication actually happened. Uh, so we looked uh, further uh, into this uh, data section in order to see what is the difference about. Uh, so as you can see the difference where, where was in only a few bytes, the red bytes uh, in the, in these uh, screenshots. Um, inside the, the data section um, uh, this few bytes uh, were uh, looking very interesting uh, because it's uh, it's actually a string. So we decided to, to took uh, uh, these uh, samples and to figure out like what, what these strings uh, actually used for. Uh, so by looking uh, uh, with IDA on these samples we were able to find out that this cluster of SSD uh, contains like a lot of uh, samples that are used to be the loader of the actual malicious uh, file. The actual malware ramnet. Uh, so as you can see the string was uh, some string dot exit uh, and this is the loader and uh, the actual file is being uh, loaded after that uh, by using the create process uh, API call. Okay uh, let's move on to talk a bit about issues that are very related to the format uh, of the files themselves. So um, before we get into it let's, let's think for a second what actually makes a file format a format. Um, and and what do different, how do different formats uh, ve- are different from one another. So formats define you know, the file's structure. It's header. The, the syntax meaning the actual binary sequence that separates between different parts of the file. Um, the type of data that we can find in the file whether it's a textual format or some kind of binary format. What kind of other data might be found uh, within the file whether it's compressed data, photos, pictures, uh, compressed data, encrypted data, etc. And of course different file formats uh, have different functionalities. Okay? Um, for instance you know, a PDF has it's own functionality. Uh, office files have their own functionalities. Uh, uh, PEs have their own functionality. They're meant to allow code to run. Um, the way that this uh, relates to what we're talking about here is that the threat landscape of each file format is based on that functionality and on the context in which it's being used. And in many cases, actually usually in most cases, attackers abuse the innate attributes and functionalities that lay in the different formats that we all use on a day to day basis. Uh, and use those in order to achieve their uh, their malicious intent. And when we say that, we mean that in many cases uh, a lot of the file formats can be uh, abused without actually you know, leveraging vulnerabilities or exploits. And let me give a few examples in that regard. When uh, someone embeds a malicious Javascript uh, regardless of what the Javascript does into a PDF file. Uh, so you know, having Javascript in a PDF file is not a vulnerability. It's a feature. Okay? Uh, even if that Javascript you know, triggers some kind of exploit, the fact that again, Javascript is supported in PDFs. The same goes for macros in office files, right? I mean having a macro is not, again it's not a vulnerability, it's a feature. Uh, so and if you look at every file type that can be abused and of course even looking at PEs, you know, if the PE is running, okay it might not, it might have you know, shouldn't have been there in the first place. But the fact that it's running, you know, that's what it does. It's running. It's running code on the machine. So again, all those things when you come, when you think about it, um, in many cases there isn't really any vulnerability or exploit necessary. Just abusing what the file format allows us to do. Uh, the fact that this is how the majority actually of the threat landscape behaves makes us think, uh, that we need to be very, very careful in examining how malicious files look like and how the benign files look like because we don't want these, uh, again, seemingly malicious but not necessarily malicious, um, you know, differences between, you know, the way malicious files look like and benign files look like to affect, uh, to affect our models. Uh, and let's give, uh, a few examples here to, uh, to demonstrate what we're talking about. The next few slides will all relate to just, uh, random, uh, recent data sets, uh, of 100K, uh, known benign files from each file type that we'll show and 100K malicious files from each file type that we'll show. We'll, we'll use the very, very, uh, naive, um, ground truth, uh, uh, approach here with, uh, as far as the malicious label is concerned with just anything with more than 20 engines, uh, 20 detections in either VirusTotal or other threat feeds that we have. So let's talk about, uh, Excel files. You know, uh, we don't need any kind of AI machine learning or deep learning or what have you in order to, uh, um, to have a pretty good, uh, detection mechanism for malicious Excel, uh, Excel files. We just can, we, we can use just one if, if condition, uh, and get, you know, 95% recall and only, again, with one if statement, it's not bad, uh, only 10% false positive if we just say, you know, if this is an Excel file and it has macro, let's deem it malicious. Because if you look at, you know, uh, at macro content, uh, so only, yeah, only about 10% of the benign files, uh, of benign Excel files have macros in them where, uh, you know, like on the other hand, a whopping 95% of the malicious Excel files have macros. Um, so, but again, do we want a model that makes, makes that distinction? I think not. Uh, especially not with a 10% false positive rate, which is, uh, again, for such a naive, uh, model, so to speak, is not bad, but obviously this is not something that we want to have. Um, the same goes if we look at the number of streams, uh, uh, 80% of benign Excel files have less than 10 streams. You know, XLS files, they're OLEs, OLEs are built, built out of streams, so 80% of the benign ones have less than 10 streams, whereas 80% of the malicious ones have anywhere between 11 to 20. Now, again, someone might think, wow, this is an amazing feature, because statistically, it really differentiates between the two, uh, uh, between the two, uh, between the two files, uh, or between the two, uh, you know, categories of files. But again, this is not something that in and of itself we want to, uh, uh, necessarily affect the decision, because then it would create a model that's very, very easily, uh, uh, evaded and by, or bypassed. Um, similar example looking at RTF, uh, you know, finding a benign RTF file that has, uh, an OLE object embedded in it is a, is, is, is quite a task, uh, because less than 0.5% of, uh, benign RTF files, uh, I mean, today I would think, generally speaking, that, you know, no RTF is benign, because who uses RTF anymore, but still, uh, uh, if you look at, uh, uh, the benign RTFs that are out there, barely any, any one of them, uh, has any kind of OLE object, but if we look at malicious RTF files, so we're talking about 70%, uh, more or less, uh, again, this is not something that we want to translate immediately into the models that we create and we need to engineer the data and think about, okay, so how are we actually going to generate a decent data set here, considering the fact that these are the statistics. Okay, now we're going to talk about some other distortions, uh, uh, and noise, um, phenomenons in threat intelligence that are not necessarily related to a specific file format, but more to a specific landscape or just to, you know, what we're seeing in threat landscape, in, in, in threat intel sources. A lot of what we'll see here lies in the fact that, you know, uh, the threat sources that we look at doesn't matter if it's the biggest threat sources, the most, you know, the most expensive one with the biggest number of files and the best coverage of the threat landscape. They don't reflect the reality. They are, they are a function of the reality. Okay? Uh, they're probably a much closer and better function, uh, of the malicious threat landscape. As far as the benign files that exist in the world, they obviously, uh, um, contain a fraction of what's, what's, what's really out there because, I mean, most benign files don't find their way into these, uh, uh, sources and feeds. Um, and, and that again, that in itself causes some kind of weird phenomenons that we'll, we'll now look at. The first is, uh, uh, time distribution. And this is, uh, uh, something that we did looking, uh, pretty much at all of the, uh, uh, PDF files found in VirusTotal, uh, from a period of six years. Okay? Between 2012 and 2017. Now, if you look at the distribution of these, uh, uh, of, of, of the files per month, you see, like, quite a weird phenomenon. You see that if we look at the beginning of the, of this time period, uh, it, it seemed like almost everything, well, not almost everything, but, uh, I mean, roughly, I don't know, two thirds, maybe even three quarters of the total PDF files you could find, you could find in VirusTotal were actually malicious. Whereas, if you look later into that time period, that tends, uh, uh, tendency seems to change. And, okay, now, one would say, you know, VirusTotal became so much more popular. I mean, you can't compare between 2012 and 2017. Uh, but then again, it makes you think, is this something that we want to somehow leak into our data set? Because if, even if we say, okay, let's just take 50 percent of the, uh, uh, benign files of all times, 50 percent of the malicious files of all times, what we'll get in, uh, in our data set is, uh, is, I mean, much more of the benign files that we would have are from the second half of that time period. And that, again, depending on the kind of model that you use, the kind of features that you use, um, that's something that might leak into your model. Uh, which is, uh, I think you'd all agree with me that, uh, creation, timestamp, and PDFs is not something that's very relevant for their classification. Uh, and this is something that's found in, just in, in, in clear text in pretty much every PDF out there. Um, this is the, the, looking again at the distribution, but just looking at absolute, uh, I mean, looking at each of the landscape and, and, and, and seeing how that specific, either the benign or the malicious landscape, uh, distribute in time. What we also see, and again, this comes, uh, comes back to those mass duplications we talked about before, is we're also seeing some, like, very weird and, uh, obviously out of the ordinary, uh, uh, months, uh, where suddenly, uh, there's a huge surge in the amount of, of malicious samples and sometimes even in the benign samples, um, that are, that you can find. So again, both this, uh, uh, this phenomenon, so to speak, but also this, this one with these distorted months, again, this is something that needs to be looked at because, uh, again, it, it might, if, if we just look at things randomly, it might really affect the data that we, uh, uh, that we put into our, uh, to our data sets. So, uh, uh, these, uh, statistics are, uh, talking about, uh, a data set of, uh, 64 bits PE. Um, so as you can see, uh, with the random data sets of 64 bits PE, there is, uh, around 90 percent of the files, uh, just, uh, dotnet assemblies files. Um, so again, it's, uh, it's a huge bias to dotnet assemblies and, uh, probably that this is not what you're trying to generalize the model on when you take, like, 64 bits, uh, data set. Uh, 45 percent of the data was just, uh, Microsoft, uh, infected files. Um, um, so again, there is a strong bias, uh, to a lot of Microsoft files in the malicious data set. Uh, probably it's not the case in the benign data set. So, uh, you'll find out, you, you, you end up with, uh, a benign and malicious data sets when you have more, uh, files that, uh, look like, uh, Microsoft files in your malicious, uh, data sets. Uh, and it might be a problem. So, uh, let's see, uh, an example, uh, for, uh, why, uh, there are so many, uh, malicious infected, uh, files. So, we, there is a specific, uh, DLL, DNS API, uh, which, uh, has been, uh, like tens of thousands of times in, in a random, uh, data set that, uh, we created. Uh, and, um, and we try, we try to find out, like, why there are so many DNS, uh, API infected files. So, uh, one concrete example is, uh, was discovered by, uh, Malwarebytes in this, uh, in this link. Uh, and, uh, what actually was there is, uh, like a virus that, uh, changed the host files. Like, uh, it, it was just patching the, the host files in order to hijack, uh, the host files. Uh, the host file is a file that, uh, like, uh, there is, uh, there can be configured like, uh, uh, like DNS entries. Uh, so every time your machine needs to, uh, like, do, uh, like, uh, it, when it needs to do, like, a DNS query, uh, so prior to the DNS query, uh, the machine checks inside the host local file. Uh, so by hijacking, uh, the host file, uh, the malware can control, uh, the DNS, uh, that, uh, that are served, uh, to the machine. And of course that, uh, as I said, uh, 45, uh, percent of, uh, Microsoft files or, uh, like Microsoft files in the malicious data set might lead easily to false positive on Microsoft files. Uh, another use case, uh, lays in the Android landscape. Uh, so APK, uh, of course, uh, I guess that you know, uh, is an Android package, uh, like, uh, an archive, uh, that contains, uh, the resources and the stuff for an application. Uh, so there are a lot of, uh, malicious files in the threat landscape of, uh, Android. Uh, there are ransomware for, uh, Android, uh, spyware, uh, a lot of differences of, uh, PUA, uh, but also there is, uh, a specific type of, uh, of malware, uh, premium SMS, like, uh, an application that, uh, what it does is just like, uh, sending SMS, uh, messages from, uh, from users in order to monetize it, uh, and to, like, pay money from, by the user to the, to the attacker. Uh, so we created, uh, again, a random, uh, data set, uh, and we were looking at, uh, the families, uh, of the malware, uh, that lays, uh, that lay inside the data set. So, as you can see, we looked at, uh, the, the 3 top, uh, families. All the 3 top families, uh, are, uh, composed, uh, are, uh, like, uh, taking, uh, around, uh, 37 percent of the data set, and all of them were, uh, premium SMS. So, again, uh, here is another use case of, uh, strong bias to something that we probably didn't want, like, the model, like, the, the APK data set to be, uh, biased to. Like, we probably wanted it to be, um, more, uh, like, uh, presenting the, the real, uh, types of, like, malicious APK data, data router. All right. So, uh, now we'll, uh, conclude and, uh, we will, uh, like, uh, show you, like, uh, also we'll say, we'll talk about some takeaways from this presentation. But, uh, first I'll start with, uh, like, uh, a process that, uh, we are doing post-training and, uh, can be taken and, uh, applied, uh, like, it's an, uh, process or an attitude that you can take and apply after that, uh, post-training, uh, for your models. Uh, so, uh, first you need to identify, like, a pattern, a specific pattern. For example, uh, as I said earlier, uh, let's take, uh, for example, a P model. So you, if the data set was biased as, uh, we've seen earlier, so maybe you might have false positive on Microsoft files. Uh, then, uh, what you need to do is, like, going back to your data set. Uh, the reason is to, to look at the training set that the model was generalize, generalize, generalize done, sorry. Generated from, yeah. Uh, uh, in order to, like, uh, examine the, the pattern appearance, uh, to see, uh, how it, uh, how it's distributed inside a benign data set, uh, and a malicious data set in the training set. Uh, sometimes you can go even further and, uh, look at, uh, the feature level and, uh, like, trying to create, uh, like, what is the combination of features that, uh, makes your, uh, makes this file or this, uh, uh, collection of files, uh, look like, uh, a malicious file for, uh, for the model, uh, leads to false positive, of course. Uh, and by that, uh, you need to understand the meaning. So, for example, in the collection earlier that I described, you, uh, might, uh, call it, like, Microsoft files or a DNS API DLL file. Uh, the last step is, like, uh, adjusting and engineering, uh, the feature distribution or the pattern distribution inside the training set. Uh, so Tal just talked about, uh, you know, uh, how, uh, how, uh, uh, how, uh, we might use all the, all the data that we've shown here in the false positive or for the false negative research, uh, um, phase that, again, usually occurs post-training, whether it's when you still, whether it's when you're still, you know, testing and evaluating your, uh, newly created model or even if it's, you know, and for the folks here that are coming from, you know, AI-based, uh, from AI vendors or from next-gen vendors or whatever or the legacy ones that are now using machine learning as well. Uh, uh, you can do it on, of course, on your production data. Okay, so false, false positives and false negatives that occur in production. But, uh, a lot of what we talked about, uh, comes back to, you know, what we do pre-training and, again, how we build and engineer the best data sets possible that will ultimately, uh, enable us to create the best models possible. And those are some of the, uh, uh, the, you know, the do's, so to speak, uh, or, or the recommendations that we have, uh, uh, based on what we've seen. Uh, the first is, you know, we need to really understand the threat landscape and whatever is the problem that you're trying to solve and think about how it might affect the data. Uh, because it might affect the data. You need to really differentiate between, uh, uh, again, those innate features or, uh, uh, features in the general term of features, not in model features. Uh, uh, but, but the features in the file format or, or the functionality of the file format, how that's abused in the threat landscape. And, of course, what's, you know, not really an abuse of the format, but something that's, you know, uh, again, a vulnerability or an exploit that, that, that could be leveraged. Those things will manifest differently in, uh, the, the, in, in your benign data sets and your, and your malicious data sets. And you need to think about caref- you need to think about that carefully and understand that before you go about building your data sets. Uh, another, uh, another thing that, that, that we, that we want to mention is, again, different file formats, uh, behave and distribute very, very, very differently from one another. Sometimes, uh, it's, uh, you could see that in, um, even in, uh, in, in formats that are very, very closely related. Let's say, PEs, 32-bit and 64-bit don't look the same, don't behave the same. Uh, at least as far as their, their distribution threat landscape, uh, is concerned, um, and, and, and again, this goes also to different types of document files or even if we look at even more specific packages, uh, or formats like OLEs, so again, doc files and Excel files and PowerPoint files don't distribute, uh, uh, the same although their format is the same one. Uh, one of the most important takeaways, uh, we believe is that, uh, we all need to very carefully examine the raw data that, uh, uh, that we take and, uh, examine its, its, its distribution. Meaning, okay, uh, of course, I, I believe we all, you know, normally try to, you know, build the biggest data sets possible, uh, with respect to, you know, whatever we can find or how big the, the, the available data is. And if, and sometimes it's a question of, of the resources and, and, and computation that we have at hand. But, uh, uh, of course, you know, uh, yes, a good approach is starting from as big as possible, but then, uh, really examining the distribution and making sure that it seems reasonable. Um, noise and distortion can be found somewhere in the most, can be sometimes found in the most unexpected of places, like time distribution, uh, with really just, you know, weird, uh, uh, weird phenomenons of like months where, you know, PDF was the king of the malware or whatever, but, uh, it's not actually the case. And usually it is some kind of distortion that you better if, if, if you clean it out. Now, in a lot of what we've mentioned here, there's no, you know, there are no textbook recipes. Okay. Uh, but as we all know, well thought of trial and error is our best friend, uh, in many cases and, and, and, and applying AI and to, into the field we're in. So, and this is the part where, you know, data science is a bit of an art as well. Uh, uh, yes, of course there will be more files with, uh, uh, macros in a malicious, uh, Excel, um, data set, but whether we want to have that exact distribution the way it is, if we look at the raw data, uh, our recommendation is no, uh, uh, engineer that, uh, that somehow differently in what way, whether you do it with over sampling or with, you know, uh, compromising for a smaller data set with a different distribution. Again, that lies, that depends on, on everybody sitting here and your peers and colleagues, but, um, we recommend that you again, look at the things and, uh, you know, do your trial and error and see, uh, uh, and see what's best different models, different, you know, feature spaces, different file formats, different threat landscape. The solution for them is, is quite different. This pretty much concludes, uh, our talk. Thank you all very much for listening and we'll be happy to take any questions if there are. In a way, but the question is, what is your bias? And how, uh, and again, what's the problem you're trying to solve? Sometimes that problem might be, if you are at the very, very early stage, how do I build the best model that generalizes on the right things and not on distribution of, of, of the threat landscape as it is? Because that might lead to adverse results. And sometimes in order to fix something that you already find to be problematic, a specific pattern that consistently is causing false positives or false negatives, and then our recommendation is go back to your data. Sometimes the problem is not in, sometimes the problem is not algorithmic. It's not in your feature space. It's not in your, you know, model architecture or the specific algorithm you chose. Sometimes the problem simply lies. It might not be as simple to solve it, but the problem lies in the data itself. Yeah, sure. Just want to add something. Uh, the issue is that, uh, it's, it's when you create a dataset, it's not possible to find out like all the, these biases. So in many cases you just, you know, after seeing some production environment or like after tackling and using the model for a, for a period, uh, you, you find out these patterns and these biases. So that's the point that it's not always, um, so easy to find them out. Yeah. This, this is a great question. Uh, the answer is yes, but it's, uh, I'll repeat the question. Did we try to, uh, come up with some kind of metric to build datasets or to balance them? Uh, the, the, the, the short answer is yes. The longer answer is yes, but it's way out of scope for this talk and for 45 minutes because it's just, it's so, um, um, it's just, it's so different between different file types and different formats and different threat landscape. So again, there's no textbook recipe. And it also, I mean, what we've done is, you know, is good for our approach, for our models, for the way that we work, for our infrastructure and framework. It might be very, very different for other researchers, for other companies that use intrinsically different approaches, algorithms, models, data sources, et cetera. So, and, and in that sense, what we said, there's no textbook recipe. If there was one, we, we'd share it. Thank you all.