Ladies and gentlemen, can you put your hands together for Maxine LaDrocq. Hello DEF CON. How are you doing? Nice. I just uh I had a party near my room all the night so I slept like 45 minutes so I'm sorry if my brain will switch off at some point of this presentation but hope we'll manage to do it. So uh we are gonna talk about um zero bucks found, hold my beer AFL, uh how to improve coverage guided phasing and find new zero days in tough targets. So glad to see all of you here. Uh first of all let me thank DEF CON goons for having me here. I'm really excited to speak uh at this stage today. Uh before we actually start uh let me introduce myself. So my name is Maxine LaDrocq. I'm the founder of Max. I have spoken at various uh security conferences around the planet. Mostly about dynamic analysis of machine code and last year I presented at DEF CON a talk about malware phasing. So check it out if you're interested in this topic. I have experience working on open source phasers such as Win AFL, DR AFL, uh contributing in open source framework uh Dynamario and working on implement implementing extremely abstract uh operating system uh for analysis at IBM research in Israel. So currently I am working at Salesforce uh write team as an offensive researcher uh searching for zero day bugs uh writing exploits and doing engagements. In my case uh I need to identify vulnerability and write exploit uh in a very very short uh period of time. And that's actually why where our story about efficient uh coverage guided phasing begins. So we are going to talk about uh how to improve coverage guided phasing today right? And what kind of problems we we we face uh when we use AFL. Uh I will describe what coverage guided phasing is and explain how AFL actually work. Then we're going to talk about downsides of AFL and how each of them can ruin your entire phasing campaign. And in the second part of my talk uh I'll present a new coverage guided phaser implemented uh in pure Python that uh supposed to address all of these problems. And of course we will come back to the next part of my talk. So what is phasing and more importantly what is coverage guided phasing? So the general idea uh of phasing is actually a dream of any professional procrastinator right? So you run a special tool uh this tool mutate your input provide this input uh into your target and you just sit wait for a crash. That's basically all. Let's see it on example. Uh let's say we have a very trivial program that crash an input uh pound it. Uh we start string uh 5 A's uh we we cover first couple of lines program exits we do it again and again until we find something that can uh cause a crash in the target. Uh in this example our phaser need to mutate uh the string from 5 A's uh to pound it. And this is very unlikely and can take hours or even days uh to finally find this uh no pointer dereference. So to be able to address this problem people invented uh coverage guided phasing. Uh people cause also call it uh feedback driven or smart phasing. Uh in this case we continue mutating uh our input but at the same time we estimate coverage uh triggered in our target. So if we see that our input lead to some new path in the target we save this input and then perform uh subsequent mutation on top of this uh input. We do it again and again and again. So we're doing it again. We apply the same algorithm for the next finding. We save it. We mutate the next byte. Search for potential new path opened by this mutation. Then save it again and mutate the next byte. Uh until we finally find uh uh input uh that can trigger uh a crash in our target. So this way we can cover the program in depth. And actually it dramatically increase uh efficiency of your phasing campaign. So instead of spending uh hours or even days uh in the target we can find this new pointer to reference just in couple of seconds. So you see the difference. And this algorithm is the basis of the most known uh today coverage guided phaser called American Phaser Lob or AFL. So AFL was created by Michal Zalewski five years ago and today it's a standard defacto coverage guided phaser uh for box hunting. Uh it's attracting people with its efficiency and successful stories of critical vulnerabilities found with it. And it's a very powerful uh solution for vulnerability research. Uh especially if you have uh source code of your target. So I have prepared a short uh visualization of how AFL actually works. So here on the screen we have four windows. Uh in the left upper window we can see AFL status screen. It's just regular AFL status screen. In the right screen we see number of uh files already exist in our queue. So as soon as we as we continue mutating uh we uh increase in our files uh number of our files in in the queue. Um so in the left uh middle uh window we can see uh content of file of actual file that we are going to provide in our uh application. And it's in hex. And I am I'm indicating with red the actual change that AFL uh performing on our input. Uh so you can see it's from a lot of uh random mutations in our file and as soon as we continue mutating uh this input uh the number of path is growing. You can see it on the plot on the top uh on the bottom left uh plot. Uh with white background. So you can see it's growing and in in this example uh we uh we do phasing against 7-zip. It's just uh let's stop this video and move forward. So for the past five years AFL proved itself to be a very powerful tool to work with and it's uh a very powerful tool to to be a very efficient fuzzer to find memory corruption bugs in many different uh projects on many different platforms both uh in user land and in the kernel of all widely spread platforms. Uh there is even kernel version of AFL called KFL uh I managed to find a couple of bugs with this uh tool uh but this is different story. People even search for bugs in very specific places like SCADA systems, switches, wireless hardware, medical devices where any problem with software quality uh security can cause serious consequences or human lives. So while many of you might think like okay Max uh memory corruption bugs are cool but we are running in the cloud uh right? While this is true uh C and C++ remains to be on the top of the most used programming languages. So our world is running on C++ and C++ remains to be on the top of the C or C++ fortunately or unfortunately. Uh we can also look into statistics on number of research publications about fuzzing year by year and we can definitely see the trend. So it's growing and last year it exceed fifteen hundred publications. Uh it's a very hot research topic today. A lot of people play uh with fuzzing and a lot of companies invest in this technology. Uh Google even has an RSS fuzz project where they integrated uh fuzzing and fuzzing within uh software development life cycle of one hundred seventy sixty open source projects. Uh they use a lot of uh CPU power and they already identified uh thousand memory corruption issues uh by generating half trillion test cases per week. So this high popularity of fuzzing across security community means uh that it's becoming harder and harder to find new bugs in products and libraries already covered by security researchers or project managers. Uh so we have to search for some new strategy and be able to perform fuzzing more efficiently than other uh tools. And to be able to perform fuzzing more efficiently, uh we have to understand what kind of issues already exist in modern fuzzers and be able to address them. So let's start with the first one. And it's uh volatile path. What is volatile path? Uh let's say we have input uh eight A's that cover this three branches in our target. Uh one of those is a target indicated by green. Uh we mutate one bit and now it covers uh three previous branches and two more shown in yellow. Let so if we uh just a second. Okay. So if we send this input again in the target uh it again cover only the first three paths. So we we send absolutely the same uh input in our target but uh now it doesn't cover uh path. Uh it doesn't cover uh the first path indicated by yellow. And those paths uh consider it to be volatile. They do not depend on input but parasitically executed uh in our program due to some randomness. And it happens pretty often especially if we work with multi-threaded application. And our fuzzer actually has a dilemma. What to do with this input? Uh from one point of view uh it can just run it multiple times. Run, write and then reject it uh if it sees some path uh that's not the right path. Uh so the path uh appears and disappears uh after each run. But what if we actually discover something new with this test case? Uh in this situation we would reject a new finding. Uh okay. We can keep test case and raise a warning for our user. Uh that's what we actually have in AFL. But in this case uh if our target is very volatile we can end up with a very large corpus that uh actually do not cover anything new at all. So we would just waste in our test case. Uh so fuzzer time. Second problem is parallelization. Uh let's say you have a really slow target and you don't know how or don't know how uh and don't want to actually spend time on increasing performance uh of your target right? So you are not uh performance engineer you are security engineer. So uh AFL uh wasn't designed to be parallel uh from the beginning. Uh of course there's functionality that allow you to create master and slave instances. But uh uh the let's discuss how it actually work. Let's say we have uh one master instance and two slaves along with three files in our corpus. Uh AFL can perform deterministic mutation on master instance and random tweaks on slaves. So the corpus will be copied into each instance and all of the instances will perform mutations uh in each file one by one. If one slave finds something new this file will be distributed to other instances and they will continue mutating this uh the same finding. So that's all actually what we have in terms of parallelization in AFL. Uh it will work fine for fast targets and when we have small corpus but it will much perform much poorly on slow targets uh especially if we have uh really large corpus. So there is no easy way to distribute this corpus between instances and ask AFL to share uh code coverage in a smart way between them. And I believe we can parallelize uh better here and I'll show how a little bit later. Uh another problem is the lack of network fuzzing mode in AFL at all. So we actually don't have much fuzzer that can perform uh network uh fuzzing, coverage guided network fuzzing uh at all especially on Mac. On Linux we can try some uh AFL forks or Hong Kong forks uh but uh we don't have a lot of fuzz. Uh on Windows there is network fuzzing mode uh implemented by me last year and we can try Hong Fuzz on Mac. That's actually all. Uh usually when you want to fuzz network application the general advice is to somehow make your application to receive input uh over file instead of actually doing fuzzing uh by sending network traffic right? But it significantly reduce number of potential applications where we can use this approach uh especially if we deal with blackbox binaries, when we don't have source code and we can't just modify uh our target. Speaking about other platforms such as Windows uh we are significantly limited in number of uh potential tools we can use. Uh basically if you don't have source code uh there is WinFL and if you have source code and our target can be compiled with clunk uh we can apply a loop fuzzer which is basically designed to perform fuzzing of uh network fuzzing. Uh I don't uh library API calls. And that's all. Uh all of these tools have their own limitation of course. Uh on ISX we have even less tools that we can use to fuzz user land application. Uh basically we can try to compile our targets with clang and use lib fuzzer uh if we have source code. Uh if not there is actually nothing that can perform coverage guided fuzzing for you. Well at least I don't know about this. And of course I'm not the first one who wants to address these problems. There are a lot of researchers who try to address uh these issues and improve AFL in some way such as AFL fast, AFL smart, win AFL, lib fuzzer, honk fuzz or and many many other tools. Uh there are a lot of effort to leverage uh coverage guided fuzzing on kernel. Uh such as syscaller that demonstrate incredible results uh along with KFL, three fours and others. Uh I just listed some of projects here uh and papers. Uh I just listed uh published in the last year. So we can dedicate entire day describing different fuzzing solutions and techniques. And uh there is nice paper where you can find uh systematic research on all existing fuzzers if you go if you want to go deeper in this topic. And I apologize if I forget to include some research or tool here. It's not because this tool is not great. It's just because we have limited amount of space here and of course time. Uh however if we summarize all of our require requirements and problems then we will be able to solve all of these problems. Uh that I described earlier. We can see there is a huge uh demand uh for a new fuzzer here. Uh this fuzzer should be very flexible in terms of scalability, parallelization and platform dependencies. And at the same time it should be able to address uh volatile path problem and be able to support uh data mutation with uh multiple fuzzing strategies uh in one fuzzing campaign. Of course uh this fuzzer should also support functionalities that already exist in modern fuzzers. That allow user to provide custom mutation algorithm to be able to implement specific fuzzing strategies or even enable a structure where fuzzing which is a very very promising technique uh today. So ladies and gentlemen let me introduce Manul. A new coverage guided fuzzer implemented in pure python that uh tries to address all of these issues I presented uh on the previous part of my talk. Uh Manul was born to be parallel uh from the beginning. It can obtain coverage from FL instrumented binary or from DBI uh frameworks like Intel pin or DynamoRio. I'm trying to support Linux, Windows and there's a better version uh better version support of uh for Mac. Uh I decided to call it Manul after the most fluffiest uh cat on the planet. Uh basically in English it's called uh Palace Cat but in Latin it's called uh Atacalobus Manul. So Manul is very adaptable cat capable to live and hunt uh in very severe weather conditions of Central Asia. And I just like this cat. This is actually second DEF CON talk where I present exactly the same slide. And this template was actually made out of this picture. So I process this through narrow network and then just apply black color. Okay. Moving forward. Let's talk about architecture. Of course Manul employ model based design. Uh you have network model instrumentation uh models uh core UI uh mutators implemented as plugins. This way uh user can ask Manul to enable or disable different mutators or even provide uh his or her own and ask Manul to use them. Uh if we uh want to understand how Manul uh address works. Uh we have a volatile path problem. It's pretty straight forward. Let's say we have uh two volatile paths indicated by yellow. Uh when Manul sees that our input uh covers something new in the target. Uh we will run this uh input uh couple of times. Uh it's called calibration in coverage guided fuzzing. And then just uh if you see some uh randomness in our coverage. Some random path. Uh it will temporarily blacklist uh those paths and uh ignore them uh in the next runs. So first time I found this algorithm in KFL uh kernel fuzzer and I just decided to integrate it with Manul. Probably it was introduced some in some other fuzzer but I first found it in KFL. Okay. Uh moving forward. Uh parallel fuzzing is default feature in Manul. Uh you just need to specify uh how many fuzzing instances you want to spin up using the command line argument. So Manul will automatically start uh all of them and split the corpus of the fuzzing. So uh the fuzzing is basically uh a single corpus equally uh to each instance. So in this case uh each instance will hold- will have only smart part uh small part of the corpus. So we will have on- this way we can smartly distribute our corpus uh across instances. And we can even spin up remote instance on some other machine uh available over network. So Manul will be able to share corpus and coverage with this remote instance uh like it's running on the same machine. This way you can like uh uh uh be able to uh uh uh have your own like fuzzing cluster on top of Manul. And basically each instance is an independent Python process that utilizes its own uh shared memory. Uh at the same time Manul main process uh will be able to synchronize uh coverage and share it across uh other instances to avoid uh double work for them. So if one instance uh found some new path uh in the target all other instances will at some point uh uh uh- so uh the uh- the uh the uh the uh- the uh- the uh- the uh- the know about that and we'll focus on something else. So in this way we can smartly distribute our uh fuzzing campaign across uh all available cores. Uh user can easily provide a third party mutator via plugins. Uh so it's only required to place uh your plugin in a special folder where manual main binary located and plugins can be implemented in python and should contain init and mutate functions. Uh so far I have implemented two fuzzing strategies by default. So you already have it in manual. Uh the first one is FL strategy uh ported from C to python and the second one is uh Radamsa uh distributed as uh native library. Uh network fuzzing is an experimental feature. So you can try to fuzz TCP or UDP server, it works. And you can ask manual to act as a TCP or UDP uh server to fuzz some network client. But this feature in very better stage so. You expect problems. And black box binaries uh fuzzing is a very important part of manual. So by default uh manual supplied with two DBI clients for Intel pin and Dynamario. Uh manual will start uh binary using one of these uh frameworks. So you can choose what you want to use. Dynamario or Intel pin. Then Dynamario or pin launcher will start uh your target inject instrumentation library. Instrumentation library will open shared memory and will check coverage uh back to manual. So pretty straight forward way. And I recommend to use Dynamario because pin is only supported on Linux. And it's slow. So this is how it looks when you run it on Windows. Uh manual will launch a lot of python uh processes. Each of them will run Dynamario. Dynamario launcher will run the target and uh with injected instrumentation library. And then instrumentation library will provide coverage back to uh python process. So pretty straight forward. Uh this is interface. Uh we have information about volatile bytes, coverage, number of iterations, crash, uh exceptions, and many other useful things. Uh and it it also has its own logo implemented as ASCII2ART. So just just to have logo. Each tool should have logo. So manual supports seven most used options via command line and dozens of others that should be provided uh via configuration. So in this way you can uh adjust manual for your own pure process. And let's see the next. So this is manual main folder with a lot of files uh for different platforms. We have the main script here. Uh network model. Uh utils. Uh AFL mutate uh printing model. AFL mutator ported from C to python. Radam sub binary for Linux configuration file. Uh we can look into uh code. It's just uh straight forward python code. Nice here. I tried to make it as clean as possible to be able uh people uh to contribute. So we have uh also AFL ported from uh C to python. We see uh a lot of different uh strategies uh from AFL. And we we have couple of folders. In windows folder we have uh folders for DBI and instrumentation libraries for 64 and 32 bits. And uh same for Linux. So you can just uh uh uh launch them and run against black box binaries. And if you look into command line option it's again like any other fuzzer you have to provide uh path uh with your files as you want to submit in your target output. Number of parallel fuzzers. Uh switch between dump or smart mode. Uh you can provide path to configuration file with more options. And you can restore previous session. So if you look into uh configuration file you can find much more options. So they should be provided in this file format. So just option names basic equal value. Uh we can enable dictionary uh for AFL uh strategy. So AFL will inject tokens. And we also can uh assign weights for AFL. So in Radamso. For example we can say that uh Radamso should mutate 20 percent of our test cases and AFL 80 percent. Or we can enable our own uh fuzzing strategy uh just by specifying it's name. For example we can say example mutator should mutate 20 percent of our test cases. We can run this deterministic seed. Uh we can uh print uh more information. We can disable this volatile path uh suppression algorithm that I showed uh previously. And to be able to start uh black box binaries fuzzing you have to specify which DBI framework you want to use. So it's Dynamario or Intel pin. Uh if it's Dynamario you have to provide DBI root where it's located. Uh the launcher. Uh then client. Uh supply it with manual. And you can also specify for manual what uh kind of libraries you want to uh instrument uh along with uh your target binary. So this way you can include them in your code coverage. There's timeout. Uh also this options netconfig master, netconfig slave can be used to uh spread manual over network. You just need to specify port and IP address. Uh you can run it uh in debug mode. If you want you can run it uh in debug mode. If you if you need more information. Synchronization between uh uh different uh fuzzing instances. And we have command line fuzzing uh as an experimental feature. Just uh in this case manual will send it over uh command line. And to be able to enable network fuzzing we just need to specify IP and port. Uh for example and protocol. So for example instead of TCP or UDP we want to fuzz it over TCP. And we can also ignore certain signals. For example if we have for example SIGABORD which is quite annoying. Uh uh if uh it it it would be considered as false positive. Okay we can actually start it. So we just need to say where is main binary. Uh input folder. Then provide uh output folder. In this case we we are doing fuzzing against 7 zip. Then number of uh parallel threads. Like 20 for example. Then pass to our main binary like an AFL. And then uh command line. Like options. And that's all. Then then just enter. Uh it will spin up a lot of instances. Uh each instance will perform it's own mutations. Then you can see the dry run is finished. Uh so it's running. We already identifying uh identified couple of crashes. And uh a lot of uh other useful information like coverage statistics, performance, executions per second. Uh files in queue. Uh timing. Uh what kind of mode we are using. Uh uh the uh the uh the running and strategy. Okay. So I guess we can stop it and move forward. Now let's discuss uh vulnerabilities that I managed to find with this tool. So Poplar is an open source library for rendering PDF documents mostly used on Linux. Free software products like a wins, LibreOffice, Inkscape which by million users uh across the world integrated this library for PDF documents handling. And popular participated in uh Google OS uh uh the uh a lot of other products, like uh the uh fast program which makes it much harder to identify new vulnerabilities uh uh in this target using AFL and libfuzzer because Google already generated trillions of test cases so you we just don't have enough uh CPU power. Okay so I decided to try the same seed corpus with uh 491 PDF files uh used by OSS fast uh and run the latest version of AFL and Manul for 24 hours uh with 78 parallel jobs. As you can see on average AFL was approximately 25 percent faster comparing to Manul but execution speed is not uh the key factor here. If you compare path uh found by Manul and the AFL we can clearly see that after 9 hours of running uh Manul managed to outperform AFL and continue to discover uh new path in the targets uh faster than AFL. And this was possible because of the improvements uh that I introduced in the second part of uh my talk. So our corpus parallelization plus volatile path suppression plus combination of two mutators uh gave us much better results despite of uh lower execution speed. And more importantly uh Manul managed to discover three uh zero-day vulnerabilities and five non-security related bugs in popular uh previously of course unknown for developers. So uh Manul managed to assign the following CVEs for these vulnerabilities from medium to critical severity rate and let's actually discuss couple of them. Okay so the first bug uh the first bug uh is a heap overflow that exists in downsample row box filter which is called by downscale image in libkairo library. And this function is actually used to downscale GPX images that might exist in PDF objects. Uh I don't want to go deep into technical details here uh it's not important uh all we need to know that we can use um uh we can trigger heap overrun by controlling pixel coverage variable uh I marked with red. And force uh this function to read out of heap chunk to variables A R G and B. And at line 40 we can write this values to the decorator program. So let's see if my device, this uh device is working. Let's see if my destination buffer. To the best of my knowledge uh I don't see straight forward way to exploit it but uh most likely we can use this uh uh approach this vulnerability uh to get some pointer leak uh out of this vulnerability. So which might be very useful uh if if you want to bypass SLR. Uh okay the second bug is located in GPX stream init. Uh this function doesn't have a check for negative values. So I highlight it in red where popular read uh boof size which we can control and call to unsigned char function without actually checking size of boof size. So in this function to unsigned chars uh initial size can be very large uh so it makes possible to allocate a really large heap chunk uh of arbitrary size. Uh we can use this bug as a second stage uh in house of force uh heap metadata exploitation. Uh we can use allocation uh where we need to allocate a large chunk uh to be able to force malloc return uh an arbitrary pointer uh a pointer to arbitrary place in our in our target memory. Okay the last bug is bo- is more dangerous. Uh here we control variable I that can be negative which might cause uh an integer sinus error and HIPAA out of bound read uh controlled by an attacker. So if we can satisfy the first condition and if we can satisfy the first condition then we can avoid this really really huge statement. Uh basically what we can do we can return an address to an arbitrary object uh in memory. Which is uh already pretty scary. So the caller function will check uh if this object is not zero and then uh call one of its method which is pretty straight forward way to get control over RIP. So I indicated uh in red uh this is our function get entry and then we just call entry get flag and uh instead of get flag we can place uh pointer to any place uh to any function that we want. Uh the only problem here is to prepare this object in the right way and allocate it in the right place. But I believe it's very possible uh so this straight forward to exploit this vulnerability. Okay uh moving forward uh formerly known as Braw Ideas uh it's a world uh most powerful open source framework uh used by thousands of companies and institutions uh across the planet. Uh there are a lot of very powerful plugins for Zeek such as J3 designed to fingerprint uh SSL communications uh which is a very powerful technique to detect suspicious uh encrypted connections usually performed by malware to communicate with C2 uh. So uh this is a very uh powerful uh open source brain team and plan to communicate with C2 depending on who we are talking about. So this project even has its own conference called BroCon which takes place in Arlington every October. So authors of Zik is very aware of memory corruption issues and fuzzing technique in general. Uh because even a simple denial of service is completely unacceptable for such type of security products. So the code quality is pretty high, I would say very very high. And in the past. So it was actually a serious challenge for Manu. Uh unfortunately Zik has a very complex initialization routine that usually takes up to ten seconds to initialize and start uh traffic monitoring. And it was very very early stage of Manu that it was like just couple of Python scripts. So in this case uh if your ti- if your target takes like ten seconds to initialize it's completely unacceptable for fuzzer to wait uh for ten seconds. Uh fortunately they have done couple of fuzzing campaigns in the past with libfuzzer. Uh so I managed to find an example of how to avoid this long initialization routine. So all we need is to implement a special wrapper for each protocol we want to fuzz. And an example of such fuzzer for SSH protocol uh uh shown on the slide along with other ten uh protocols. Uh so I run both fuzzer for twenty four hours with uh seventy parallel instances. So I run fuzzer for twenty four hours for each protocol and managed to find three previously unknown vulnerabilities. And AFL found zero bugs. Uh this is the list of vulnerabilities I found. Uh two of them are located in Kerberos and the last one in IRC protocol implementation. So while for the most application memory leak is not a big deal uh for Zik it might cause a serious issue if memory is not freed uh in a pocket- pocket processing function. So memory leak in this case is a memory allocated on the heap but never freed. In our case we have memory leak in the function uh shown on the slide at number one. Uh so so each Kerberos pocket will cause Zik to allocate around 130 kilobytes of memory which will never be free later in the code. And we need to send a lot of pockets to force Zik uh allocate this uh a lot of memory uh on the machine and finally cause deny of service. I was able to write uh a simple code and I was able to send a lot of packets to force Zik uh allocate 50 uh gigabytes of memory leading to crash. But sending a lot of packets is a bit boring right? Uh what about one packet that can cause a deny of service and stop network traffic analysis? Remember IRC protocol? A decade ago it was a very popular way to communicate uh with people in IRC chats using ICQ. So the protocol is text based. And the protocol is based on a code. And pretty simple. Uh you have a numerical code uh for command space and then user string. For example using command 3 5 3 uh which is numerical code for nick then space the name uh will assign a nickname in IRC chat for you. Uh but if we send this command without actual nickname uh so the function part begins uh uh part begin uh will return zero uh then part arrays will be called with this zero. Which will finally obviously leave the uh the uh uh the uh uh the reference and segmentation fault. However IRC protocol is not enabled by default and we actually need something else. Uh it's usually uh up to uh blue team to enable or disable uh monitoring of IRC. But the last bug in Kerberos protocol was a bit more complex. So I don't want to go deep into technical details of this problem. I actually uh don't uh quite understand it at at this point anyway. But it seems like there is an integer type mismatch in BitPack generated parser code and Zeek uh analyzer itself uh that potentially can cause unintentional pass in some situations to be executed leading to no point of the reference uh in the Kerberos protocol parser. And usually it happens like 90 percent uh of the time. So we just need to send uh our packets three times instead of one. So uh this is the uh the first one. And let's see it in action. So we're on the Linux machine. We have two files. Uh the first file is a Python script that will connect to Kerberos server and it receive uh IP port and path to the file with malformed uh Kerberos uh packets. Uh the second file contains actual data. So actual malformed Kerberos packet. And we have a virtual machine with uh Zeek. And just to make it simpler our Kerberos server script is also placed uh on the on the on the Linux on this virtual machine. So in this script we have uh to specify IP and default Kerberos port which is 88 and file that we want to use for response. So let's actually uh start it. And uh I would just uh need to specify where this script uh file that we want to answer. Then we can run uh Zeek itself. It's just uh we have to specify a name uh if it's a file then we can uh uh interface that we want to listen on. And this is our IP address. Basically it's just uh like local uh IP address of our virtual machine. But again this Kerberos server can be placed anywhere in the network. And now we can just uh run uh this client. We just need to specify IP address uh port and our uh packet. So it already assigned and we can see segmentation fault and uh like stop of network analysis. So this is a pretty straight forward way. Thank you. So this is really pretty pretty straight forward way to disable traffic monitoring in the network and uh then communicate with uh malware uh with C2 uh or do some red team engagement on top of this finding. And I managed to catch more bugs with Manol in other applications. So uh uh we are looking at some other applications. Such as an open source uh tool, 7zip. It's linux version P7 zip in honor harver for Mac. But unfortunately these bugs are still waiting uh to be patched by maintainer. For for example for P7 zip last time he was online it was in 2017. I hope he's fine. So again this bugs are waiting to be patched. Uh I am not going to disclose them today but I will definitely publish a post about this in future. So uh I hope you guys have a good day and I will see you when uh the maintainers will fix it. Uh two of them allow remote co- like code execu- arbitrary code execution. Of course Manul is now in beta stage right? There are a lot of functionalities that wasn't tested deeply enough such as anything related to network uh any help contributions more than welcome here. Uh what is very strongly required for now is AFL fork server to be able to speed up Manul and perform uh network phasing more efficiently. Uh I also want to add Intel P-trace uh on Linux and Windows. Uh I believe that Manul can be even stronger with uh structure aware phasing so more mutation algorithms again is strongly required. And uh basically on macOS we have a lot of stuff to do. Despite of a lot of future work uh Manul already demonstrated that it's a very efficient coverage guided uh phaser that can catch bugs in really tough targets. All right. I don't know if you can see the image but the the image is already tested by uh top security researchers and I'm going to I already released like 15 minutes ago uh it's already public. Uh it's released under Apache 2.0 license so you can already pull it from my github account and find your own zero days with this tool. So you can subscribe to my Twitter account, add me on linkedin. If you have any ca- any questions you catch you can catch me later at devcom after this talk or PM me on Twitter. So thank you for your attention.