All been having a good DEFCON? Man, come on, how can you not have fun here? Well, that's true, but... Yeah, and one of the goons has an announcement, so... I've been asked to tell everybody that DT is in the dunk tank. DT is in the dunk tank, so if you would like to dunk him, he will be there. But unfortunately, you'll have to miss this talk, and from the look of the room, you probably don't want to miss this talk, so... I did my job, now you can have fun. Awesome, thank you. What were you talking about, Taylor? No. Okay, just so everyone knows, I'm Lennox. I run a site with a friend of mine called noxfiles.com. It's basically a security research type of thing, and the first presentation released by us is about advanced Windows-based firewall subversion. So this is not... It's not going to be just, you know, oh, yeah, run it over port 80, the firewall won't notice, hopefully, type of thing. This is a lot more technical than that. There will be a lot of reverse engineering and payload development, all that fun stuff. So, get ready. All right. Okay, first of all, a little background. There's a prevailing mentality throughout all of InfoSec and the corporate world that, you know, applications... aren't secure, so we pretty much need to develop something to cover up for someone else's vulnerability. And many people believe that a firewall, you know, an H-I-P-S, I guess you could use the terms interchangeably to an extent, but their H-I-P-S and personal firewall kind of do a little bit of a different thing. Well, they do the same thing, but in a different way. So, but there's one small problem. If we manage to exploit one of these vulnerable systems, we still have execution control. We still can do whatever the user running at that, you know, whoever owns the process can. And attempts to stop us can be broken. It may be a little bit difficult, but they can be done. Now, some former research in this area, I just wanted to cite FRAC 62, number 13, article 13 in there. It presents some standard methods for bypassing Windows, based personal firewalls. Now, what it mostly involves is injection of code into a trusted process. But as you'll see later, a lot of firewalls will detect this type of thing. It's kind of, if I recall, this issue is kind of old, but it's still good code, so I do recommend you all check it out. It presents some different methods of doing it, and, yeah, it is pretty good research. Now, there's another thing on this about why more research is needed in this field. Why is it important? These personal firewalls, these HIPS-like systems, are getting more and more common. They're pretty much moving to a point where firewalls, antivirus systems, and anti-spyware crap is going to be all in one product. You know, just, you know, one thing, not a suite. And not to mention, you have a whole lot more file format bugs. These days, like, just the WMF exploit, the Excel spreadsheet vulnerabilities that we've seen in, I guess, the past month or two. And in an application like Word, it, you know, it's kind of going to look funny if Word is trying to bind to a port. Now, now, maybe we want to get past that and not let the user know that that's happening, or just be able to break out in general. Basically, we have to start breaking out of the cage. Right? I haven't seen too many exploit frameworks or anything do this type of, this type of research, these type of payloads, or anything like that. It's kind of disappointing. But that's why we have this talk. So the tools needed to do this. Basically, you need a debugger. OliDBG is my choice. Many people prefer WinDBG. That's fine. A disassembler, not totally necessary if you have a debugger, but, you know, IDA Pro is a good choice for this. And an assembler. I prefer NASM. And that's what the Metasploit payload development kit uses. So I guess why not? And you're going to need a compiler also. And I chose Microsoft Visual Studio C++ 2005. And the free, the express version works and it's free. So you know what? You can go home and compile my code and run it. If it, you know, works on your system. And I'll cover that later. So the first firewall that we're going to go after is the Windows firewall. Service Pack 2 has brought us a, well, more improved firewall than the first one. And it, but, you know, it's integrated into Windows. And offers a little bit more control than the original. But there's a really big problem with this. Now, let me see. I'm going to bring up the MSDN library. I have it on my system here. So let's search for a little string here. Exercising the Windows firewall. All right. Let's just see what this comes up with. Okay. Let's see what this, oh. Using the Windows firewall API. Exercising the Windows firewall. Let's see what that does. Now, if my system would be fast. But, okay. Now, Windows firewall initialized. Let's see if we get to something interesting here. Windows firewall is on. Turn on. Oh, and here's something funny. Windows firewall turned off. Looks like it might do something that maybe people don't want it to do. So as you can see here, Microsoft has provided a full API. Well, it's through a com interface that allows you to do all sorts of fun stuff. So you can do things like enabling a service. Basically allowing one application out. Or, you know, here's my favorite method. Put firewall enabled. Yeah. So you can just put firewall enabled variant false. And what do you think that does? So it can, you know, arbitrarily authorize applications. To basically, you know, be allowed out through the firewall. And basically the shell code here will basically initialize a com object. Let me see if I can get the code up here. So you can all see the C code that I wrote. Okay. I think it's an FW killer. I have to remember which one this was. Because the C code is not as important as the actual assembly payload. Okay. So basically what you're going to do is initialize com via co-initialize X. And then you're going to initialize a com object. Which I believe is net FW manager. And then that has a method called get local policy. And that FW policy also has a method called get current profile. Which basically that contains a method called put firewall enabled. And we just set it to variant false. And that works. Sounds kind of funny, doesn't it? I mean, this shouldn't be that easy in my opinion. Now, granted, you do have to run this as an admin to get it to work. But there are a lot of ways. There are a lot of ways to escalate your privileges inside of any operating system. You know, hard on the outside, somewhat more mushy on the middle. So, demos. They're important. If you don't do them, people look at you like you don't know anything. So that, alright. Basically, I wrote up a payload for the Metasploit framework. You bring the window just to the right of the stage so we can see the load? Yes. Okay, great. You're all able to see that fairly well. I'm not sure if I can get the font any bigger on this because it's in a virtual machine. But the bottom line, who all knows what the Metasploit framework is? Alright, a good number of you. Just for those who don't know, the Metasploit framework provides an automated way to create and test exploits along with developing payloads for them. And just so happens the developing payloads is kind of what I was doing here. So, it proved to be quite useful. Alright. Now, I'm just going to bring up the Metasploit console here. If it will load. Now, there's a new version that's written in Ruby. I didn't have too much luck getting this payload to work with that. There are just some kind of, there must have been some kind of quirks in there. HD had been fixing some stuff. And I hear it's, there are a lot of the bugs taken out of the Ruby version, which is 3.0. But it seemed that 2.6 was the one that I had the most luck with. So, that's what I'm going to stick with. Now, to deliver this payload, the exploit that I'm going to use is the WMF exploit. And why this is important is if you think about it, there are a lot of, a lot more cross-site scripting attacks are happening these days. You know, redirecting the user to, you know, some other arbitrary site. You know, getting data. You know, you have all this Ajax stuff. Where. You know, basically, you're able to funnel data in without the user knowing. Fun stuff like that. If you all had seen Billy Hoffman's talk at Black Hat about that, that would be a little bit more informative on this subject. But cross-site scripting is a lot bigger. And you have a lot of L users who have the tendency to click on any link if it kind of looks like it's trustworthy. Even though it has like a script tag at the end and it says, I pwned you. I don't know. Maybe that's just me. Okay. And I'll set the payload. This is a bind payload, by the way, to demonstrate the fact that it seems that the Windows ICF is very tuned to basically blocking applications from binding. It doesn't do as much against stuff connecting out. But the reason that it's important to be able to disable this is what it will do is prevent you from accessing a lot of network resources. Now, if you want to be able to break into one system and own all the boxes on the network, you will want to be able to do that. And, you know, through SMB, you know, be able to browse the shares, all that fun stuff. So it is an important thing to be able to do. Okay. And exploit. So now we have a bind handler. Well, it's not a bind handler. It's basically a makeshift HTTP server. And, in fact, the 2.6 can't actually shovel a shell on this. So what I just did is, you know, use netcat like normal to gain that. Okay. That's 28.128. Yeah. That's the default port that it will be running on. So, okay, now let's see how usable this VM is because the screen resolution got kind of mangled in this whole process of setting it up. Now, okay, first of all, go to the control panel, see if the firewall is actually enabled here. And scroll up a little bit. Yep. It's on. So, and not to, I'm just going to leave don't allow exceptions off because it really doesn't matter in this case. So I'll go here. And I believe it was. I believe that was 128. 128. All right. Yeah. So. Okay. So it's going in. Now, you should see an image pop up here. Now, oh, fun. Do I want to keep blocking this? Okay. Now, I wonder if I had set the payload correctly because it shouldn't do that. But to be fair, this is why I have flash demos of this stuff. Because. All right. Yeah. Sorry about this. I just figured that there would probably be some screw up during this. But you will be able to see how truly powerful Windows XP Firewall is. Okay. Oh, man. God. All right. So let's see here. Can you read that at all? Now, you basically get a general outline of what's going on. So as you can see, I'm enabling the firewall right there. And then. Okay. Go back to my terminal on my Linux system. And I'm launching the MSF console program right there. So basically I'm doing the same thing that I was before, but this time it will work. So I love live demos. Now I'm just entering the exploit to use right here. Excuse me? Yes, and the main reason I did that was basically the way you know that this is working is if you do a bind one and you don't get that message that you saw on the other part. Now I don't know. It was an act of God or something. I must have done something really bad last night, but okay, now why is that running so slow? All right. Well, hopefully it will get a bit faster here. Again, God, I love live demos. So let me see. I'll have disk activity because I have this virtual machine stuff running. Okay. All right. I think I need to like close some things here, like the MSDN library. That needs to go. Oh, fun. My system got locked up. Windows is exacting its revenge against me. That's, you know, it has a soul and all that, so, you know, you have all sorts of fun stuff going on there. Yeah. Close that. Big memory hog. Yeah. Very robust as you can see. Now. Oh, okay. Now it seems to be running a lot faster. So, okay. Yeah. Now doing exploit right there. So it's going to start the HTTP server. Okay. I just killed you. Good lord. Okay. Now waiting for the connection on, and then we'll go back to the VMware system right here. And then run, and then basically I'm running iExplore and then the URL of that malicious site. So just say some L user, you know, happened to click on that and some cross site scripting vulnerability. So basically it's going to be pushed down. It'll run. And it will say, as you can see, your firewall got disabled. So therefore, if you'll wait for it here, I'm netcatting to the port 444, which is the default port set up in Metasploit for which port to bind to. And we have a shell. As you can see. So it may have said something. It may have said something to the user, but we still owned them. So, I mean, you could basically shovel in your own payload that would, you know, do something like load a rootkit. So, oh, all of a sudden, you know, it doesn't really matter that they know anymore. They're still fucked. So... All right. Let's see here if I can... Yeah. Okay. No. Jeez. Yeah. Fun stuff here. Jeez, VMware. Come on. It's supposed to be reliable. Sorry for this, but... All right. Let's see. That should be in full screen. Oh, well. Now we have this fun up here. So if you can ignore that... Yeah. Yeah. Everything that can go wrong will go wrong. So that's just one of the rules here. So the next firewall that we're going to go after is the Zone Alarm Personal Firewall. And this is actually a little bit of an older version compared to the new one. And I will discuss the new one. Now, this is one of the main personal firewalls used. You know, everyone talks about Zone Alarm all the time. And these personal firewalls have a hard job. Because they have to defend from threats locally and remotely, a.k.a. people like me. So one of the most important components in this firewall is called True Vector. It's basically a driver and it's what... It's basically, you know, the network part of it. And Zone Alarm is really pretty much a GUI on top of it. This is basically a beneficial rootkit to your system. And it's basically what keeps you safe from all sorts of local threats and what have you. And it's quite aggressive about defending itself, as you will see. So reversing Zone Alarm. Our plan of attack here. We need to get write access to the zlclient.exe process. And inject code into it that will disable the firewall. We need to run that code. And make sure it's done quasi-stealthily. So then you don't have all sorts of, you know, flashing buttons come up on the screen and what have you. And I'm going to call it ZARooter. So first we have to find the process. We need to find a zlclient.exe's PID. Process ID. Now first, we'll run enum processes to get a process list. And then use open process with process... With the parameter of process query information. To be able to basically enumerate through what certain... Like the actual name of the executable. So then we'll use enum process modules to get the module handle of the process. And get module base name A to get the process name. Then we can just continually string compare this to zlclient.exe. And when we hit that, we'll know that we have the right process. Now there's a big problem here. True vector for us is a pest. It behaves... As I said before, it behaves like a rootkit. It hooks a lot of system calls. And this is why you cannot just do a terminate process on the firewall. Although I think if you follow the route that I've used to this. You actually can do a terminate process on the firewall. But it's pretty much going to kill all network activities. So you don't want to do that. And that's one of the reasons I took the route that I did. And the most important call that it hooks, at least for us. Is NT open process. If that's hooked by zone alarm and it's doing, you know, what it does. You know, preventing us from trying to attach to it. We will not be able to get a handle to zlclient.exe. And our code can't run. We won't be able to inject any code into the process. And that's a very big problem. Because how else, you know, you're going to shut it off. So, enter the ZARooter driver. Now, the funny thing in this version of zone alarm. True vector or zone alarm. Whatever, you know, is doing it in the back end. Does not mind if we load a driver. Ooh. Rootkit. Hello. So, we can write to the system service dispatch table. And this mean... And we can execute code on the same level as true vector. So, guess what? We can over... We can unhook every system call that it hooked. Yeah. So, basically, here we have the pseudo rootkit. Because it doesn't really do anything malicious other than unhook a system call. And no one's really going to notice that. But actually, you can. But it's like... For a normal user, even if they got their hands on one of these programs that, you know, you can view the syscall table. It's like, oh, no, there's one less hook in there. So, I'm less vulnerable. Something like that. So, basically, an outline of what... How this will work. We'll create a memory descriptor list for the system service dispatch table. Which is basically using this deckle spec right here. Now, that's not the most stealthy way to do that. But if you read rootkit.com, you'll find out some other ways to make this a bit more stealthy. And then we'll unhook NT open process and replace it with the address of the original syscall. Well, the original code that ran it. So, it turns out that zone alarm didn't actually, you know, rip out the code of that old system call. All it did was redirect it to its own stuff. So, it's still there. You just have to find the address of it and use it. So, basically, what it will... What you'll have to know is the... You'll have to know the syscall number and the address. And that differs between service packs. And I know my code isn't the most portable after you see what's going on. But you can make it portable. So, I'll discuss that later though. And basically, we have a macro here that's called hook syscall. Basically, it takes a syscall number and an address and it'll set it to that. And I can actually bring up the code on here. If my computer doesn't explode, just please pray that it doesn't. Because that was kind of odd last time. All right. You go back to... Okay. And go to ZARooter driver here. All this code will be up on the Noxus Files website, by the way, after the con. So, okay. You see ZARooter.c. And, of course, you have to edit these with vim. Because if you don't use vim, you're not lead, of course. It's just a rule. But, anyway, as you can see, some of this is kind of messy. Because I was kind of experimenting about which calls to unhook and what I could do with that. But I basically commented out the ones that don't really matter for our purposes. So, you basically have an array of what the address we want to set the hook syscall to and basically an array of syscall numbers that we want to unhook. So, basically, right here, it will iterate through all of this. And then it will say if you have a debug event viewer on your system, you can actually see status unhooking syscall number blah with address of blah. So, it will unhook the syscall and basically will win. So, that's the important thing. So, now we have to find a way to shut it off. Now, this takes some reverse engineering right here. And, basically, after a while of grinding through code, you find that there's this little function at this hex location right here. And it seems to be a pretty reliable address. You know, it doesn't change a whole lot. But, or at all that I've seen. And, basically, the funny part is, if you can see TVTF force shutdown right there. Yeah. So, anyway, basically, if you pass it a value of four, it will tell True Vector basically to, you know, screw off and, you know, don't do anything. So, that's pretty fun. So, we can call that the code that we inject into the firewall. Now, if you try to do, this is actual, if I recall correctly, methods that are basically at a lower level than this are in some of the zone alarm DLLs. But, don't try to call them because it pretty much won't work. It has some sort of authentication stuff that basically knows whether you're running it actually from the firewall or not. So, problem number two. We have a lot of alerts that are going to pop up. You know, that sucks. We don't want the user to know that we're actually rooting them. So, let's do that. You have icon changes. You have a text box like right here. And you have that nice, you know, message system error, please reboot. Maybe that would, you know, alert people that there is something a little bit wrong. And all that fun stuff. So, we basically need to get rid of these. Now, the first one is there is an icon change. As you can see right there, there's a big X. And then it will say True Vector security service is shut down. We don't want the user to see that because they might wonder why a big red X is in the bottom of their system. Although, with some users these days, it may not matter. But we still want to be cautious here and do what we can. So, what's kind of funny is shell notify icon basically takes two parameters. And one is like the message it's going to send. And this notify icon data structure right here. Now, I didn't research into all what that did. But basically, the bottom line is it changes the icon. And we don't want it to. So, we can pretty much replace that call with add ESP8 after it's pushed the parameters. And there is no more call. Do any of you know how like the stack works when calling a function like in assembly language? Anyone? Okay, well, the bottom line is things get pushed onto the stack kind of like you stack, you know, you stack plates. And the front like where the top plate is, that's where this register called ESP is. And basically, and indirectly, it will reference all of the arguments from that. So, all this does is pretty much resets that pointer, you know, from the top of the plates or the stack, depending on how you want to think of it, further back. So, it pretty much doesn't matter that they have these arguments for it. So, basically, we just killed that call. So, we win. Screen text. It uses a few resource strings in the .rsrc section of the portable executable. For those of you who do not know, the PE is the format, you know, like you have an EXE file, you run that, that's PE. So, basically, you see all these like system error messages and whatnot. Well, we can just overwrite them with our own. Sounds good. So, and it uses draw text to write this to the screen. That's a, I believe, GDI call, if I'm not mistaken. I think it's in user32.dll, but that's kind of not important right now. So, what we're going to do is have a user mode hook on draw text. Now, because we want to see whenever it's going to try to spit these nasty messages out. Now, what we're going to have to do first of all is pretty much preserve the program state at that moment. We can use these. These op codes right here, push A, push FD, pop FD, pop A. Basically, what that does is it saves the, it saves the state of all the registers and pushes it onto that stack, you know, the plate thing. So, and then also it does this for a flags register too. And basically that has some, has some info about whether you're going to, you know, jump this way, jump that way. But the bottom line is we're saving the program state. Everyone understand that? Yeah. Okay, good. Now, what we're basically going to do is where you see this move EBX ESP plus 2C after the push add and push FD, that's basically looking at one of the arguments of draw text. So, it's basically seeing what text is going to be written and it will check it for all. Now, I think I forgot to explain the reason why I did this. But if you see here, that's red. System error, please reboot. That's all in red. Now, if you notice when it's running normally, let me see if I have it running in the virtual machine here. Okay. Oh, no. Okay. Oh, that's all right. Yeah, I have that basic reminder there, but you saw it work, so that's important. Wait, that's not going to show it either. I'll just run, there's an alarm on this. Now, if, come on. Okay. All right. Now, if we can wait while this program runs and it will start up. But the bottom line is it's all in green. So, we don't want to have flashing red messages everywhere. That's going to be a problem. Now, I'll come back to that. That's going to take forever to load. With the amount of stuff I'm running on this. So, basically, we're going to check for all because, you know, that's the message. We want it to say all systems are active. That's pretty much what the original message was. And that's what we did with the overriding in memory. Now, pretty much what it's going to do is if it's there, it's just going to run set text color to set the text to green. And then we basically do the rest of the stack setup. And then we win. Now, there's one issue here. How are you going to transport that driver over to the infected, well, exploited user system? Now, one approach here is to include this as a resource in a DLL. Now, the nice thing about the Metasploit framework is that a guy named Scape wrote this little payload that did DLL injection basically over TCP. Remote DLL injection. Now, if you've ever seen someone. I don't know. Get a remote desktop display after running an exploit through VNC on someone else's box. That's it. That's what it's all about. Basically, you can transport a full program. No assembly language programming required in a DLL. And they'll run it. Unfortunately, my DLL had some problems with that. Like, it worked in the. Oh, okay. Here we are. Allow that. So, just to show you again, like, with the green text. It's right here. See? All systems active. So, yeah. Sorry, my computer is being a bit schizophrenic. But that's okay. And so, what I was talking about is transporting this driver, this malicious, quasi-malicious driver over to the other person's machine. So, what we can do is include this as a resource. Like, in that .RSRC section that you saw before, we can throw files in that and all sorts of fun stuff. So, we can use the find resource function, load resource. And basically, write it to the disk to, of course, write it to the disk. And then use the system control manager to load the driver. Now, somehow, during this, we're going to have to coerce this program into executing this code. Fortunately, Windows offers some process, I guess you would call it, interaction functions. Basically, the interfaces that you use for writing a debugger are the ones you kind of use here. And come to think of it, what this is really like is, do all of you know what a loader is? Like, with software piracy, like, if you, if the program is packed and you want it to decrypt itself and then inject the code later, what you can do is write a loader. And so, basically, it will use write process memory and all this other stuff to basically wait a certain amount of time, inject the code to disable, like, your serial check or what have you. End of the process. And then it will be okay. Some of them are more intelligent than others, but it's not that important here because we're not dealing with any obfuscation or encryption. But this shutdown code that I just, that I was talking about before, remember, if I told you that pass this a parameter before it shuts the firewall off deal? Will be, I basically went through the executable and found a whole bunch of slack space to write it into. Right. So, it's going to be pretty reliable. We won't have to make it really position independent in this case. Like, because jumps and stuff like that to other memory, other memory addresses can be thrown off depending on where you are in memory. So, I pretty much picked the static one and it's worked. So, don't question it. So, now what we're going to do is run this one function called create remote thread. Basically, it does what it says. It creates a remote thread. You basically pass it the starting address. The address of where you want to start your code. And then it will run it. Sounds fun, doesn't it? I mean, just running code in other applications. God, it's awesome. So, we do this after we've changed all the strings and injected the hooks like on draw text and what have you. So, we're going to have a demo. And this will hopefully work a lot better than the last one because I've tested it on here. And by God, you know, it needs to work. But I have a flash demo in case it doesn't. Just so you know. Now, what this MetServ test thing is, is it's a program that the Metasploit people use to test their thing called the Metterpreter. How many of you know what the Metterpreter is? Okay. That's a few people. But for those of you who don't know, basically the Metasploit people had this idea to throw something like, to put it in layman's terms, a hacker's command prompt into your system. And it will do this over DLL injection. And to test their payload, of course, what they would do is write a test program to load it. So, that's what they did. And basically, I'm too lazy to edit their code. So, it will pop up an alert saying that it's binding to a port. And it's completely unnecessary. But it was just for the way they have it set up is you want to be able to actually view what's going on. And with this, it's pretty much a blind shove it in and run. So, when it's actually, it's going to listen on a certain network. As you can see, I've already ran this. So, it's listening on port 31337, you know, because, of course, that's a late thing to do. And once you connect to that port, however, it will just run the DLL. So, as you can see, this is just a whole test thing. It doesn't really affect the performance of the DLL. So, we're going to run this. Okay. Start that running. It's going to listen. Yeah. See, like I told you. Allow that. Okay. Now, I will. Basically, I'm going to do this as a getaway and pretty much open up a web browser and tell it to go to that port. So, we'll run that. And it will come up. And, oh, you got owned. You know, going to have a message box there. So, that will run two times. And so then, oh, look at that. Your firewall just got disabled. And guess what? It doesn't really say much here about what just happened. It's kind of fun, isn't it? And in fact, one fun thing is that if you're waiting for a, like, say you want to ping someone, right? And you run the ping command. And then it will say, you know, allow or disallow this traffic. If you run this, that alert will stay up, but it won't matter. So, the user is like, oh, I'm going to be, you know, the big man now. You know, click deny. Well, it's not really going to do anything. So, that was the demo there. So, I didn't include, like, getting a shell on it. But I'm sure all of the bright minds out here can figure out how that works. So, I went in after we basically reversed these two firewalls and done some pretty, you know, technical in-depth methods of breaking them, right? So, I tested some other firewalls, you know, with basically some general tests. If we could inject code into another process and have it run. I did this in a very ghetto fashion. What I basically did is opened up Internet Explorer and OliDBG. Used a Metasploit payload generation program to generate a payload. And with some said magic, I could extract it and paste the payload in. So, it would just, you know, basically run the shell code. But, yeah. So, it will test for that. And also the ability to debug the main firewall process. Obviously, if you, as you saw in this. If you can debug the main firewall. The main firewall process, you pretty much owned it. So, and also whether syscalls were hooked in an obvious manner. Basically, because the whole idea is that if they were, then you could use the same driver that I wrote to unhook them. So, and yeah. Basically, the ability to load drivers, too. Because that's important. You know, you don't want rootkits to be able to be loaded on your system. Wait. I forgot to change. Okay. So, the first one we're going to talk about is Cario. Now, the main process can be debugged. So, it kind of, I haven't done any actual, like, I'm going to turn this off and here's the DLL for it. Like I did for zone alarm. But if the main process can be debugged, it's safe to assume that we can turn it off. Okay. So, but to its credit, it does detect code injection into trusted processes. But it didn't seem to detect a driver load either. So, yeah. Komodo. This is another popular firewall. I've seen. And the main process cannot be debugged. It has non-obvious hooking methods. And it also detected code injection into a trusted process. But here's the kicker. It didn't seem to be able to detect a driver load. So, and the latest zone alarm pro. And actually, this is the latest version. And it's learned its ways from my previous DLL. It does detect code injection into a trusted process. You cannot debug the main firewall process. And it does detect driver loads. And that's one of the few, if only, firewalls I've seen that does that. So, props to zone alarm for, you know, doing this, implementing this mechanism. But it does seem to have the same hooking mechanism as before. So, the idea is. If you're able to get kernel execution. Kernel mode code execution. You can still disable it pretty simply. So, now, let me go back here just a minute. What more needs to be done? Okay. Oh, I was supposed to talk about that after zone alarm. I'm sorry. But the thing with my zone alarm payload or DLL is basically that it really needs more portability to it. If you run this between different service packs or patch levels, even ill blue screen. Because it would basically tell, you know, the hook on NT open process to jump into an area of memory that, well, it didn't have the right code at it. Because it changed. So. And it needs to be able to have basically more dynamic resolving of the functions that are used. Like that set text color. Because we. If you run it as is now, you can have basically jump errors. I didn't do any arithmetic on calculating jump offsets and whatnot. So, that's going to break your program. And more intelligent generation of the jump hook that was placed on draw text. So, we could, you know, make it green and whatnot. Okay. So, conclusion. Things to be learned here. Firewalls are just applications. And they're not really the end all of security. Somehow, some way, you're going to be able to break it. And subverting them will only increase in importance later. Because more and more people are going to be running it. More and more people are going to be dependent on it. You know, you have Vista that has HIPS like features in it as well. So, you're going to have some more code that's going to come out for that by various researchers. And so, pretty much this is the end of the speech. But thanks to HD Moore who helped me write the Windows firewall disabling payload. Poncho, of course. Helped me with the Noxus Files website and optics. I know you're not here. But thanks anyway. You've had some great insight to stuff. So, if you want, the code should be up at noxusfiles.com later in the day. Like about an hour or two. So, get the code. You know, play around with it. Test it out. Everything like that. So, that's the end. Any questions? Yeah, and use the mic, please. I have a question. Yes, Ducky. I saw how you were, I'm sorry. I'm not that person. With disabling all the alerts and stuff, what about the actual disabling the Windows alerts, the balloon pop-ups? Yes. That is done via the WMI interface. And I imagine that if I took a look in my browser, and saw actually what that did, I would be able to kill it. Because I know there have to be API calls for doing this. Yeah, for anyone who knows about that type of thing, you know, feel free to download the code, implement that, and then, you know, contribute to it. So, that's my charge for you guys. Thank you. Yes. The Symantec firewall, did you experiment with that? No, I did not. I basically took those three firewalls. I kind of added that in at the last minute. So, I didn't have the chance to get actual, you know, firewalls that costed stuff. So, yeah. Because, of course, no one wants to pirate here, right? Just saying. Yeah. Next question. I'm curious on the, on your experience and what you found for disabling the firewall and getting at people, since they're probably behind NAT versus just doing reverse shell. Well, there are, what was the question again? Behind a NAT? I mean, if you were doing a reverse shell or a reverse meterpreter, pretty much that would subvert the NAT now, wouldn't it? Yeah. Yeah. So, but the reason, if you're, are you wondering about the bind that I did with the XP firewall? Yes. That was basically to show, because the Windows XP firewall, it pretty much blocks the bind. That's what it's most concerned with more than anything else. And so, by having you be able to get a bind shell, that shows for certain that it was disabled. So, that was basically a proof of concept right there. Okay. Thank you. I was just curious to see if this presentation was on the DEF CON CD? Yes, it is. Awesome. The last slides, I think about the other personal firewalls on there that I kind of smoke tested a little bit are not, but I mean, that's not the most important thing in the world, but you'll be able to download them from noxusfiles.com. Sweet. You rock. Thank you. Any other questions? No. I am currently not wearing pants. Yeah. Yeah. So, all right. I hope you've had a great DEF CON and will continue having a great DEF CON. Thanks for coming.