Today I'm going to talk about, like, botnets, the present-day botnets. And this is a research that has been, we are, like, my team and my university, like, my department has been doing for the last couple of months. And we came across some of the interesting facts and how the botnets are actually exploiting the integrity of the system nowadays. And so we came across with some interesting concepts and techniques that I'm just going to present today. So this has been a collaborative research with one of my team known as, like, Secondary Security Labs and with my advisor. And so just a little background of mine. I'm a third-year Ph.D. candidate at Michigan State University. Presently I'm working for, like, ISIC partners. And I previously worked for some other companies, and this is some of the previous file data that I have. And Rohit is one of my great friends. He has done a lot of work over this and collaborated with my advisor. So today I just want to put a little disclaimer. The point is that, like, whatever the things and concepts I'm going to discuss today is solely upon my research, and it does not relate to any of my employer. So it's an independent research that some of my group members are doing, and I'm also doing it as a part of my Ph.D. So today, agenda, we are going to talk about, like, bot spreading mechanisms. Some of the things you might be, like, spear phishing and kind of things, like, being existing for a long period of time. But at this point, we are going to talk about, like, bot-spreading mechanisms. So in this present part of time, what are the changes that have been coming in the field of malware? We're going to talk about exploit packs, try-by-download frameworks, spreaders, and with some live videos. Then we're going to talk about the post-exploitation. One, once your system is infected, what kind of things that a bot actually manipulates in your system, and to subvert the integrity. And then we're going to talk about, like, data exfiltration strategies and the concept of third-generation partners. How the various bots are actually exploiting. The HTTP communication channel to exfiltrate the data out of the system. So it started with, like, with the presentation, like, last couple of years for, like, one or two years. It's been started with Zeus, like, one of the great partners that came to exist. And that actually gave a birth to, like, third-generation partners. Why I'm mentioning here third-generation is, like, the first generation is a typical set of partners which actually uses the IRC protocol. So if we want to characterize these partners, why these are third-generation? Second generation and the first generation. So typically we look at two kind of things. Like, what kind of motivation they have. And then what kind of perspective they have in exploiting the systems. So it started with Zeus. Then it came to be SpyEye. Then at present time we are looking into Andromeda. Smoke is there. NGR existed. It existed, like, six months ago. Still going fine, but not that much. The place has been taken by Andromeda. Smoke and the upcoming, which is actually building nowadays, call us in a new passport. So most of, like, why hybrid? Because some of the botnets are actually, you know, getting properties or characteristics of other botnets. Typically, for example, like, SpyEye actually harnesses the power of Zeus in getting the web-injects concept. And then there's, like, an NGR which is also using a similar kind of thing. And then it's, like, a very good statistic produced by the Microsoft. The third generation botnets infections all around the world. So if you look specifically, it gives you an idea how the Zeus spot has started impacting the North America. And that actually gives you an idea, like, this is just only one part of the world. And you can expect the infections that occur on the global level. But this works pretty fine. It gives, like, things have changed in the world of botnets with the advent of third generation, which typically exploits HTTP protocol. And the motivation is all about exploiting the online banking to get the money or, like, a shortcut to success, whatever we say. So the artifact which I want to lay stress is, like, the devil is present in the details. And we know that. And if you don't know the details, we don't know the crux of the concept, it's not pretty worthwhile to, you know, spend time. And we will not be able to build the defenses. And so we had to do a little offense to get the defense, to build the defense according to that. But we need to get to the details. The crux of the concepts. And let's talk about the bot spreading mechanism that are widely deployed nowadays. Some of these concepts have been known for a while. But with the change of a lot of technologies, with the passage of time, things have changed. The design, the architecture, the framework, how the botnets are exploiting, it has changed a bit. Let's take a look. I want to start with, like, browser exploit packs. Last year we presented, like, complete details of, like, black hole and stuff like that. And how it infects and a lot of details in, like, virus bulletin conference. But still, if you remember, within the last year, if you were going through a lot of media articles and things like that, even at this present point of time, black hole exploit pack is really running fast. And it's still exploiting the things at a very large scale. So what it actually means. Typically, I mean, if you remember, I say a metasploit browser is built on the same design. So you have to collect and bundle a lot of exploits together. And then what it works like, host it as a web application somewhere on the malicious domain. So what it works like, your browser sends up a request. It fingerprints it and then gets what kind of vulnerable versions you are running of plugins and other components. And then it exploits according to that. It fingerprinted, okay, you've got, like, a vulnerable version of PDF. You've got a vulnerable version of Adobe Flash, Silverlight and things like that. Okay. So that exploit which has been known. And if you see in the present time, Java is the most plugin. Java is, like, mostly exploited nowadays because it gives you an easy access. It's, like, platform independent stuff. And so it gives you a lot of heavy access to that. So what works? It's an automated framework. The browser exploit packs. And as I stated, like, exploits are bundled together. So mostly if you see, they're, like, it's, like, mostly written in PHP and MySQL. Yeah, it's an open independent code structure. You can construct whatever you want and then build the codes. I remember correctly, like, last year we were, like, analyzing, like, Phoenix exploit packs. So it was actually using a direct exploit from the Metasploit which was written in Ruby. So it's, like, being a cross-platform independent, they can plug into each other and then can serve the exploit. And things like that. And they implement some sort of techniques, like, if a particular machine is sending a request to a command and control server that is hosting a browser exploit pack on the same domain. And it typically fingerprints your browser and fingerprints your IP address and sees, okay, we got a one request from this IP address. We don't want to serve malware to them. So you get, like, a one IP per system. So malware is served per IP basis. And then talk about, like, custom JavaScripts are there which are used explicitly for fingerprinting. Like, it gives me the browser version, gives me the, like, user environment information. And this is very much required for the browser exploit packs. And so whatever the example that I'm going to discuss in this talk is totally on the real-time case studies that we have analyzed. And all these frame, iframes and obfuscated scripts and this kind of pattern that I put on the slides here is being used heavily in this talk. I mean, it's a similar set of pattern that browser exploit packs like black hole, nuclear pack are using. And if you go and find some of the things on, like, malware domain list and then you find some malicious domains and then you try to find, hey, where is a malicious iframe is there? So if you look at the construct, like, the kind of it is being constructed, you will get these kind of patterns. And it's really easy. You can do some, like, dirty code tricks. You can, you know, manipulate things like alert to document dot write. And then you can put alert instead of evil. And things like that to actually render the script. But you can also do one more thing, like, you can do it, like, tactically step by step and try to understand how the code actually manipulates. And this actually gives you an idea. And that actually obfuscated code, when we deobfuscate it, it gets into this iframe. And it is, like, this iframe is actually rendered dynamically in the code. That gives you an idea, like, how the browser exploit packs are, you know, getting used with, like, obfuscated iframes. And that is how the browser exploit packs actually fingerprint your browser version and the kind of plug-ins you are using. And these are also kind of, like, a typical script. They're rendered dynamically. So what happens, like, when you visit a malicious URL, you click it. Then you've been redirected to some part. And then this code comes up, which finds that, okay, this is a plug-in. It's vulnerable. And then later on you find that the vulnerable plug-in having an exploit that is being embedded in the browser. So you can see that the browser exploit pack and it solves that exploit in that case. And so before going further, I will just want to lay stress here. So we were testing something. We came across this domain which is actually hosting the nuclear exploit pack. And this is just a statistic space. And you can see that when an attacker actually exploits the heavy traffic volume website and injects a malicious iframe, which is being pointed to the browser exploit pack, and you will see how fast the infection occurs. Let's take a look at that. Let's take a look here. The idea behind showing this is the concept, like, once the high traffic volume website is exploited and we put a malicious iframe, then how the stat varies. And that's the thing is, like, so this particular malicious domain is hosting a nuclear exploit pack. So when we were testing, we get an access to, like, the stats page. And then we typically want to look at how it is working. So a simple refresh. And loading the web page again. And again, keep on changing the ideas like the total and how many loads are occurring at one specific point of time. Yeah? Oh, wow, it's a video. It's like 800 by 600, actually. So this actually gives you an idea. So we keep on refreshing and seeing, like, how many loads are happening within seconds. And every time we try to refresh, we get, like, it's really going fast. So the infections are really going fast. And that actually gives us an idea how fast this thing is when you do it in an automated manner. And the exploited domain was, like, allmyvideos.net. And the all respective domains which were actually got infected. And every user that, you know, went to that domain, accessed some videos and things like that keep on getting infected and getting the bots. But that was an actual case study of, like, how the nuclear exploit pack is triggering up the things. So still black hole exists, but nuclear packs are still raging high. . We're going to talk a little bit about, like, drive-by-download attacks. It's a technique that has been existing for a long period of time. But it's still going pretty fine. And it's still very robust in understanding and exploiting the browsers. Typically it's just a redirection scenario. The user browser is redirected to the malicious domain. It fingerprints it. And the idea is, like, it's really hard for a user to notice this attack. It's not that easy for the user to, you know, there's a drive-by-download. You know, happening in the system. And the user can notice that. It's really different. Difficult, I would say, for the user to do that. And that's how it actually works. So whenever the user visits a malicious domain, a typical, like, browser is, like, fingerprinted. And then actually the browser exploit pack actually serves the exploit, which is actually using, like, JavaScript heapspring concept. And then, you know, exploit the browser pretty easily. And it all works in a stealth manner. So this is in our last, like, three or four months back. This drive-by-download framework came to exist. It's an automated exploit framework that is being used to serve Java-based exploits. It's known as, like, Anand JDB. And it works pretty fine. I mean, you've got a vulnerable version of Java. And there's an all exploit lined up. It gets, like, obfuscated. And that's being served to the users on that path. So you can see, like, automated exploit. Automated drive-by-download frameworks are still existing at a large scale. And that works pretty fine. Let's take a look at the black hole exploit pack in action. It's, like, a complete attack scenario that gives you an idea that how the things work. The only thing that I cannot show here in this particular video is, like, we cannot show explicitly where the drive-by-download is happening. But you will get an idea when it happens. And how the things work. For example, a very simple scenario of, like, spear phishing here. So you get a... So you try to log in into our e-mail account. And then we'll see we get some, like, phishing e-mail. So let's say we get this e-mail. And there is a compressed URL. We're trying to find out what happened. Let's put that in the chat. So what happened in this particular case. I think I could use... One second. Hello? It has a search engine. It has a search engine. Okay, so if you realize here, like, this particular web page has this compressed obfuscated iframe in it, which is just really hard to obfuscate in that sense. But another way we can do is, like, we can perform the behavioral analysis. So what we did, actually, we actually used a simple HTTP fox plug-in here. And that actually gives you an idea, like, how many hops the requests are going through. So well, actually, I designed, like, it's by 800 and 600, but I think it's, like, not. Anyways, so if you get an idea here, so what is happening here, so when the user clicks on that particular request, it keeps on hopping. It keeps on hopping different IPs. And it's not, like, a one single IP, like, you click it, you get an exploit. No. It keeps on going from, like, content delivery network to another IP and then to the malicious domain, where it is actually hosting them, browser exploit back. That actually shows you that the browser actually started connecting to the third-party domain with different hops. So when you visited it, like, so this was a clean system. Actually, so we performed a little scan on it. That's the only way we can show that. And that's the hops that actually the browser connected previously when it accesses that link. And that's the URL. That's just got located to this IP address. And the second hop is this one. Okay. And this was actually a stat speech that was, like, being accessed on the malicious domain, which was running, like, black hole exploit back. So when we completed the scan of the system, it gives, like, there is one infection in the system. Okay. And then we tried to look at the results. We find that it's, like, it's got a signature of zbot, which is called as an azure spot. So this actually gives us an idea, like, the black hole, like, automated exploit back are really worked in collaboration with the botnets in spreading bots. And that's how they work for. And that's what the idea is all about. And this is the obfuscated script, which is actually really compressed. And so it's really hard to deobfuscate it easily. And we had to do the behavioral analysis and get the things done. So actually that actually gives you an idea of the whole complete life cycle of how you got a spear phishing mail, it's, like, compressed, using, like, URL shortening service, things like that. And there are multiple hops that the user has to go through. And then it serves with the exploit. That's pretty fine. Now let's talk about spreaders. And so we were analyzing, like, ubus bot, which is the network. It's a new upcoming breed of botnet. And it's pretty sophisticated. And they have implemented a pretty good spreader called a USB spreader. This technique worked previously. But it's still working pretty fine. And they have implemented it really good. And we'll show you by going through this case study how we can build signature very easily. And so on your in-factor system, when the bot is there, it actually acts as, like, a monitoring service. It actually, you know, creates a monitoring service, which actually looks for what kind of USB you are going to insert in your system. And whenever there's any plug and play devices actually gets inserted in the system, it actually release, like, register device notification W function, which is in a Windows inbuilt API. And that works pretty fine. So if you look at the screenshot of the disassembly I have put up there, it actually gives you an idea. It is the bot is actually taking up a CLSID parameter, which actually points to the USB device. And then if you go down, like, it's, like, a registry device notification function. So which will notify there's some device that's already been inserted into the system. Is somebody there? And try to give, like, a window message to the system so that it gives us this active scenario. So what happened in this particular case is in the USB spreading mechanism, so our bot is usually ‑‑ which has to write in a USB monitoring module, which actually creates a Windows proc, which is in a Windows inbuilt API call, and then it actually ‑‑ it actually looks for the Windows message device change notification, which is being done by the device broadcast header. And again, it looks for, like, different kind of interfaces, which has ‑‑ so if you look on the downwards, so there is a USB device, and it has, like, a W param divide, you know, specified for the Windows procedure. And it actually gives you an idea, like, there's a DBT device arrival, and, okay, the device has actually arrived in the system. So what is it going to do? So it's actually going to fetch another call in that. Okay. Which is called a unit mask, which actually is going to be a broadcast volume. So what happened in that case, once your system actually gets notification from the USB device, like it is in there, and the bot is actually going to monitor all these things, and it will check, like, the plug‑and‑play device, like, for example, USB, is going to get us some hardest notification, like it can be XYZ or something like that, the volume notification or the volume number. And after getting this, it actually gets an idea, okay, now the bot actually gets an idea, like the USB is actually inserted into the system. So what it does, actually, it actually calls another Windows inbuilt API called a copy file W, and actually creates an auto‑run file in the USB. And how it actually does that, the disassembly actually gives you an idea. So it actually generates ‑‑ this is an example of the U pass code, which actually gives you the point. Okay. So it created a WS underscore WS, some sort of a random executable name, which is going to place in the USB. And it is also going to create an auto‑run dot end file, which is going to put up some parameters in it. So it will give you the EXE to the USB device, as well as an auto‑run file to the USB device. And it actually sets an attributes to that. Another way of doing it, like, except for auto‑linking, we call this technique is a malicious file. Dollink file infections. Typically like a one‑year‑back Microsoft Dollink vulnerability is exploited the most for doing some exploitation at the system level. So simple. It's like a sort of shortcuts. The bot can also create a shortcut in that sense. And creating that one, the disassembly gives you an idea how it is doing that. And it simply places the link in that, and even if it's a bot into it, so whenever the USB is inserted into another system, it checks for the auto‑run file, as well as the malicious link file. And then it triggers the EXE file into the system, which is like spreading a bot from system to system level. And this technique works pretty fine, and it's been one of the core techniques of the UPAS bot. So when we connect it back to the command and control server, it gives you an idea of the USB spreading. And that actually shows you how many USBs have been infected by the bot. And it also picks up what kind of drive letters. It picks in the system and things like that. So it's like a system‑to‑system level infection. I mean, the bot has to actually enlarge and it has to make the botnet really bigger in that sense. So it has to keep on spreading things in that way. This is one spreader. There are many other spreaders, like instant messenger spreaders, like, for example, exploiting instant messaging functionality in Google Talk, MSN Messenger, and a wide variety of messengers. Another one is like the latest technique that has been developed. Recently in the NGR bot, which actually exploits the Facebook chat panel from the system, so it hooks messages that our browser actually sends and then injects malicious messages containing URL to the malicious domain. And so getting all that information, when we get our detailed information, we get an idea, like, I want to build an alert signature for, like, the intrusion prevention system, and that's how we can easily get the information. Okay. And so using these parameters, we can build up the signature, and that's by doing the reverse engineering. And if you use that signature, you can get all the infections that UPAS bot is doing. So that actually works really well. I mean, if you go to the crux of the problem and you get the ideas and you get the information you want, and if you get that information and then you can build these signatures very easily, it's not a big task. And again, another spreading mechanism is like a social network. So, I think it's been one of the best exploiting platforms that has become, and the malware authors and the attackers are really exploiting it. And it's not that hard to actually trick users to click at some sort of links and things like that. So, sometime back we were analyzing a one case, and we came to us like, it was a case of like-jacking and a click-jacking. So, there was a malicious website which was actually doing the like-jacking in social network website. Okay. And we came across this. that and it was pretty interesting technique. It was there for like four or five months ago, I suppose. But it has been seen in the wild. So how it works, let's take a look at it. For example, in a browser you have opened your Facebook session and I think many users do that and then try to do a lot of work side by side. For example, if an attacker can force a user to visit a malicious domain or some tricky domain which has some sort of malicious code in it. So in this case the user is actually logged into his Facebook account and that is sort of another malicious webpage. So if you see exactly you can get a light button. The impression of the light button is going along with the mouse here. Because I didn't make it like transparent, I just changed the code to show it explicitly how it is actually working. What happened in that case, it gives you an idea. It gives you a lot of information. It gives you a lot of information. It gives you an idea. Now, so this is a script that malicious webpage is using. It is actually collaborative with the click checking attack. And with that click checking you can hide up the buttons, you can hide up the other things on the webpage and then you can still issue the request. Let's see how it works. So when the user clicked on this malicious page, a request is being sent in the form of post parameter and it goes to Facebook and Facebook.com actually. So what happened in this case when I logged back into the account and refreshed it, and you'll see there is a light link appears, call us Robin lights this link. And when the user clicked that link, it is redirected to the malicious domain here, which is actually serving a back door, like a VM player file. And which is actually downloading a malware onto the user system. In order to show it like in a clear manner, I have removed some of the stealthy code out of it that actually gives you an idea how the light checking works. So even if you go to that malicious domain and you try to look into the source code on the client side, you won't find anything. Because the VM file, the VM file actually is back door. And in it, there is a malicious code, it is just entering a new frame. And then it calls back to Facebook. And that's a downloading a malware onto the user system. So this actually gives us an idea how the social networks are getting exploited. It's very simple. I mean, the user doesn't have to do, the attacker actually does not have to do anything seriously in the Facebook context. But just it has to force the users to visit some other domain which open on the same context of the browser you are using and then from the other tab you can simply send up the request to the Facebook that actually inserts malicious links in it. Now let's take a look at the post exploitation strategy like how the bots actually support the system integrity once it gets into your system. The very interesting technique that we monitor is like the Rust skill. It's like it came from, it came to exist from a group of warriors in Russia and typically used in the Diablo game players to actually show up the, you know, the power they have while they're playing something and things like that. So the Rust skill is in a pretty interesting module that is being used by bots nowadays. So what it does actually is it actually monitors wherever the new file is downloaded into the infected machine. Like being an attacker, I actually give a command to the bot, okay, download a one particular file that is a malicious executable file from the third party domain. It downloads it and it executes it. But after that, what Rust skill does is that it removes once it executes that malicious file, it removes all the fingerprints of that particular file from the system to avoid detection. And it's a very, it's some sort of showing up a power of a particular bot, right? It has that kind of functionality to download a third party executable onto the infected machine, then executing it, and then completely removing all the instances that actually shows that this file has been executed on the system. So, we saw that when we were analyzing NGR bot, which is like a dog pod, existed earlier, and it actually uses this technique, and it worked pretty fine. And that's what Ruskill actually did. And it's still going pretty fine in that sense. But the whole concept of showing the Ruskill is here is that how sophisticated the bots have become. I mean, previously, if you look at the design of IRC-based bots, and now the Ruskill kind of functionality. And they are getting more developed with the passage of time. So, let's see. So, when we do some disassembly of the Ruskill module, it will give you an idea that the Ruskill is going to detect a particular file, if it has made modification in it, going to detect if there is some sort of DNS, like settings have been modified in the system. And there will be like detecting some sort of registry manipulation in the system. So, this is a very interesting thing. And it's in a sort of like really stealth technique. And let's take a look with an example of hybrid bot. And what we did in that, we get a sample of NGR bot. We just did some reverse engineering. We made it work in a controlled manner. And we set up our own IRC channel so that it connects back to it. Because NGR bot is in a hybrid bot, and it has some sort of functionality which third generation bot has possessed. So, this is a really interesting technology. This actually gives you an idea, I connected back to the IRC channel. I just found the NGR. And in our virtual machine, there is a NGR bot here. What are we going to do? We are going to execute this bot in our control virtual machine here. So, it melts itself. So, this functionality of bot system is melting. It's like a side destructive code. Like try to remove like the dropper protection it has and so that it can install randomly somewhere in the application data using Windows inbuilt crypto API. So if you see now, the victim machine is actually get connected back to the IRC channel. So this is like NUS forward slash XP and Windows XP machine and there is a CAUGFVF which is a random name of the bot. So in order to produce this demo, what I did actually previously, I actually get a link to the like the putty file somewhere on the Internet. And I execute a command that NGR uses called as an impaja and when we paste up and I started the module with a hyphen R option. And you see what's happened. So this file is actually get executed on the victim machine. And that actually gives you an idea. The bot actually fetched that file, executed, and things like that. So you can execute as many times as you can. And since it's just like for this particular demo, what happens once the file is executed, after that the rascal will remove all the instances of that particular file, even the file itself from the system. And after that you get a rappelle. So you got it again. So it works pretty fine every case and every time you want to execute a third party executable on the affected machine. And that actually gives you an idea what the rascal actually did in this particular demo. And I think like the big problem nowadays is like a DNS changer. I mean, so DNS changer can be an individual malware, it can be a part of some malware or it can be a human database or it can be a a different classification of malware we can do. But according to us, what we have analyzed is just a kind of functionality of malware, how it's going to exploit the DNS settings in the system. So it works and it has been a great problem because using this technique is pretty easy to actually redirect users to any place and things like that. Let's take a look. DNS changer, I mean, with this technique you can try several different ways to actually manipulate the infected system. The very first one is to just put up an entry somewhere in the host file. Or you can simply change second, you can do like you can simply change the DNS server entry with a malicious IP address. This is a very simple one. I mean, once you do that, what happened in the context of system is that the changing the DNS settings won't allow the system to connect back to some of the various security websites such as Microsoft to download the updates and things like that. You can do much more with that. And that's what attackers are doing nowadays. So there are different ways one can do that. We can produce like DNS amplification attack in a small local area network where you can exploit the DNS servers directly by just manipulating the cache and things like that. Or maybe you can simply host in a rocked DHCP server which actually gets your connections at first rather than the legitimate. I'm sorry. The DNS server do. And then it goes for like DNS querying and things like that. But that's fine. That's a very normal way of doing things, the changing and manipulation of the DNS entries. So how the bots are doing it. So bots are actually implementing the concept of hooking. And hooking DNS libraries gives them the power and gives them the really way to execute these things in a stealthy manner. What happened in that case, it works works dynamically. So the bot actually hooks the DNS API provided by the Microsoft. That's very good. So there is a function, if we know correctly, like DNS query, which is being a part like imported and some sort of exported by some other DLS, called DNS API. So we understand the concept of hooking. And there is a different way you can perform hooking. There is an import address table hooking. Then you can do inline hooking. Then you can do a DLL injection, creating remote thread. Then you can do like set Windows hook. And there's other ways you can create remote thread function and different way of performing hooking. But what is the stilt ways like inline hooking where the actually bot, the malware authors, when they design, when they write a bot, and they actually implement a concept of deter and trample in functions. And that actually redirects the flow of these functions like DNS query and then it redirects you to the hook module. And it all happens dynamically. And that's what the real crux of this DNS danger is like. Things like that. Another way of doing the hooking is you can exploit the DNS cache resolver service and try to check whether the send to function has been hooked or not. And these two things, even implemented by the conflictor virus, too, but it's still going fine. Latest breed of botnets are also using it. And how they are doing it, let's take a look. And when we disassemble the bot and we have a botnet, we have a botnet. If we have a botnet, we can get an idea how they are doing it. And this is a functionality being provided by NGR bot. So it can block the request. It can redirect the DNS request and do certain things like that. And how it does that, let's take a look. So in this particular demo, we are still going to connect to the IRC channel. And then we are going to throw away some of the commands like change DNS commands. And then we'll see how it dynamically. It's still connecting back to the NGR. And if you see clearly here, the bot is still there. It means the system is alive and it's activated. In order to show that, let's just open some websites like Microsoft and Facebook.com to see whether the connection is still there. And whether the connection is alive and the websites are opening pretty fine or not. At this point of time, we are able to open Microsoft.com and then we are able to open Facebook.com. That's fine. So we close the browser. And then I get back to the IRC channel. And I issued a command that is being written in NGR bot doing the change DNS. And then I did for the Microsoft.com. It blocked it. And I again did it for, like, Facebook.com. So now the user, like, for example, user gets back onto the system, try to open some website, for example, Microsoft. So it gets blocked. Again, the Facebook actually gets blocked. So it happens because of the NGR bot actually implemented the concept of DNS hooking. It's not exactly like it is manipulating the host file or doing some sort of other things like that. But it actually implemented hooking. And that actually gives you a dynamically binding at the runtime environment. So we did another different test. Sometimes DNS manipulation really go awry in some sense. And that is the example here. So when we redirect Google to some malware domain and the system is giving up, like, no found. And then you still look at the URL. It just mismanaged DNS query. But this actually gives you an idea, like, DNS manipulation still works pretty fine in the in-factor system. Like, these kind of designs really hamper the security context of a system. Now we have gone through, like, a lot of things. We took a look at, like, how the nuclear exploit pack is working. We had a look at, like, how the black hole exploit pack is working. Then we look at some of the techniques, like, Rust skill. And then we look at some of the things. And then we looked at DNS. DNS exploitation in the in-factor systems. Now here it comes is, like, how to exploit browsers. Like, once your system is in-factor, okay, that's fine. I got an access to your system. But I'm not any more interested in it. Like, the bots are actually designed to exfiltrate data out of the system. And with the third generation botnets, HTTP is the protocol, what they are actually doing it. And in order to do that, just a very simple thing. Most of the malware actually implement these things, like try to manipulate the zone entries in the Internet Explorer. And then manipulating Firefox entries by configuring some parameters in the user.js file. The only idea is, like, they are doing it just to try to remove all the HTTP level notifications. I mean, for example, with the SSL, they want to remove all those kind of notifications. And they want or they force the browser to send data over HTTP channel, rather HTTPS. And they want to force the browser to send data over HTTP channel, rather HTTPS. And they want to do that. Because sometimes browser gear gives you a warning, okay, the channel is being changed from HTTP to HTTPS. So in order to remove all those sort of notifications, bot actually manipulates the user.js file. And this is one of the interesting technique that has been existing for a couple of months now. And this is actually another replica of, like, man in the middle. The only problem, or the only differentiation is that it actually works inside us, system, and man in the middle works between two end points in the network. So the bot, which is actually getting installed, is a user land root kit, actually. Because the browser process is running a user land system. And the bot has to work on the user land level to actually hook some kind of functions inside it. So this diagram actually gives you an idea when a user actually accesses a legitimate web page. And when the web page is sent back to the user, the user is going to use a machine in the form of HTTP response, the bot actually hooks that response and try to inject something into it. And then it actually sends up the manipulated web page back to the user. The user feels that, like, this is a legitimate page, there's nothing like that because the content works in line. And the user provides all sorts of information, sensitive information and things like that. And then it is being sent back to the server. But, again, going back to the server, the request is again hooked by the bot. And the bot actually redirects back into the command and control server, picking up all the information in the post request. And that is actually a conceptual man in the browser. The MITB agent actually sits inside a system and whatever the communication the browser has with the endpoint, it actually monitors it and try to manipulate it accordingly. Let's take a look at this example. I'm not sure, but if you go to the Chase.com bank website nowadays and you try to look at, like, types of online fraud, and you will get this explicit image out there and they put that in, like, virus and malware sample kind of thing. And they have a lot of details written for it, like, it's just because your system is infected, we can't do anything. But actually this is an example of web injects. This is an example of MITB attack. And how it works, let's take a look at it. As I stated earlier, it's a technique known as web injects. Since the bot is inside your system, it can do many things accordingly. And whenever a user sends a request, gets a response, and before the response actually gets rendered in the browser, the bot actually injects some malicious scripts into it. We'll take a look at some of the attacks that have been conducted against Citibank and how they wrote that particular web inject construct. But this actually gives a lot of power to the bot. I'm going to take a look at some of the features that people have used to manipulate the online banking and to manipulate a lot of functionality on the web pages in the client side. This is a really interesting technique. And we haven't found any good defense, since our team is working over it. And let's see if we can come up with some defense for web injects or not. And that gives you an idea of what the example looks like. So that is a set URL data before. Data inject and data end is like parameters in the web injects file. So the actually used to construct the one rule. So if you look at the set URI parameter there, it is being defined. So the attacker has to define a URL there. So any bank of America.com and then there are flags like GP and H which actually gives like for this particular URL, if a machine or a browser sends a request, whether it's a get request, whether it's a post request or whether it's an any H request. So there's a lot of there is an explanation out there for L and H. But typically it is against get and post request. And then you will tell that in a particular web page, I want to inject this kind of data before this tag. And what kind of data I want to inject and what kind of content has to be gone after that. So this is in a real time web injects. And this attack was conducted against Citibank. And this attack was like a forceful cookie injection. And so the bot actually injects all that code in the web page. And if you see on the data before, it is being data before tag. So there isn't a branding.js file. So that code will remain there. And the bot will actually inject the code after that. And then put up a script tag at the end. So this payload actually looks in line to the user. I mean, the user is not going to look at the JavaScript. It's going to look at the JavaScript code. But this will get executed in the end line when a user accesses a Citibank website. Let's take another example. This one is for like a bank of America.com. Again, for all get and post requests. So in this particular web inject, the bot actually injects an ATM input tag to actually extract the ATM numbers. And again, it works in line. And if you look at the sample, example downwards, it again was like against Wells Fargo. So this is an example of a web inject. So we got this like web inject sample somewhere when we're testing something and that infected machine has all these samples. And so any user on that particular infected machine, if it's going to open these websites like Bank of America, Wells Fargo, the bot is going to inject this kind of code in the web pages. And how it looks like, it's a very stealthy and in line. So in this case, like web injects is a very interesting technique on that part. Let's take a look at the form grabbing. It's an advanced level technique, but it works very well with the present day botnets. How it works, like some of the bots are not very much interested in getting a key log, like a logging information, because it produces a lot of like garbage data and things like that. They have become more sophisticated. So what they are doing, like they are hooking the browser inbuilt DLLs and then try to hook certain functions and once they hook the functions, they extract all the information out of it. And the form grabbing is one of that technique. So in form grabbing, whenever you submit anything, like you put your credentials, you put anything like social security number, account number, credit card numbers, and you try to submit the information back to the server, the bot actually hooks that information. That's why it is the technique is known as form grabbing. And when it does that, so I have taken it from the internet, but it was like a pretty good explanation of the form grabbing as well as like web injects. So with the web injects, you can inject like an illegitimate input box somewhere, which actually asks you some sort of your pin number, your ATM number and things like that. And when you submit that information, the bot inside the infected system hooks that thing and sends it back to the command and control server. And how the harvested data looks like, it gives you an idea right here. And this is the whole set of information you actually get from the infected machine using form grabbing. And this was an example that we were testing and we get an idea like from the infected machine, there was a Kaspersky anti-virus license key entered by the user and it was retrieved on the command and control server. And in order to show that how it works, this is the last demo that I have. And we constructed this using iSpot, which is actually considered as a descendant of Zeus because it's using a lot of source code from the Zeus in order to work. So, again, we are going to execute this malicious bot. So, when we do that, it again implements the concept of melting. And we try to refresh it, the bot actually goes away. Because it has to destruct the dropper. And so, considering this thing, you'll get an IP address of the infected machine is. And we are logging back into the command and control server, a controlled one that we use for testing. So, this is the just like a very simple interface of the iSpot. And what I'm doing, I'm just trying to get all the list of bots that are connected back to the command and control server here. And if you go down, this is the system that we have. And if you map up the IP address, this IP address maps to this one. So, it means like the infected machine is connected back to the command and control server. And the bot has really taken control of that system. So, that's fine. So, what we are going to do, let's say the user is going to open a chase.com website. It opens here. I'm not using the real time credentials or things like that. I'm just using the wrong credentials here. But just try to show that how this technique works. And we also open like a Facebook.com. Just try to show that this technique not only works on the banking websites, but a lot on the other social network websites, too. So, I just put any password. And I submitted it. So, both requests go through the infected system. The system is so when we get back to the command and control panel and look at the reports. So, if you go down, then you get like there's a request that has been logged from the chase.com. And let's see what we have. So, this is actually gives you all the information about the bot. But if you go down, you actually get the whole of the post request here. So, you have a user ID. You have a password. And you have a lot of other information. So, if you are providing an account information, doing a transaction, and then you're all gone. So, the similar thing works with the Facebook. So, if you go down, you actually get the text on the bottom of the bot. So, actually, the bot implements a bit of delay in actually picking up in actually grabbing the request from the client site. And so, when we submit it out again and we get back to the command and control panel and search for the things, and you get a like request from the Facebook, too. And that actually picks up all the credentials from the client site on the infected machine. So, it's a pretty good technique, and it's worth checking out. working pretty fine. So you get all the information in the post request in the command and control panel. And what you look like, this data is not yours. Once it is being extracted from the system, it's not yours and it has been sold into the underground market and a lot of things like that. So the conclusion is that, like, looking at this kind of scenario, the kind of techniques that we have discussed here, botnets have become more robust and sophisticated. There is a significant increase in the exploitation of browsers. Browsers provide a window to the Internet, so it's always good to exploit them. HTTP has been used as a preferable protocol for data exfiltration. And at the end, I would like to say, like, botnets die hard. And they are still existing and they're going to exist. But just the thing that we had to do, we had to come up with a new production mechanism that uses the concept of asymmetry. If we can If we can support or if we can stop these botnets for some period of time, then we can still be done with a lot of things. So any questions? Yep. How do you control them? Does one company actually destroy the botnets using your app? PUA DUNBAR Actually, yeah. So, he actually, if I got it correctly, so he actually asked, like, so we are using, like, command and control panels and things we are doing research purposes, but when it's going to be, like, companies like ours or the research labs, the some of the small groups that we are doing? So, when they are going to, you know, burst these command control panels and two for us, panels and to remove these botnets out of the system. Again, I mean, actually, if you ask me on this part, like, these botnets are actually the default design of technology, basically. So when we analyze something, we try to implement a concept of infiltration. Because if we don't know what a technique like Ruskill does, we are not able to build a defense mechanism. Getting on to your part, previously we found some bugs in, like, spy command and control panel where you can use that bug to actually gain access to the CNC. Because these guys are not very much interested in building a secure command and control panel to some extent. For them, it's all about, like, selling and purchasing of data and extracting the things. And it depends on a lot of things. When you're doing research, you might have some gain of access to the samples. Then you can deploy and see how things are working. And, again, it's a problem of ‑‑ I won't say it's a problem. It's a choice. What kind of defense mechanism do you want to work? You want to go and bust the command and control panel. So you want to go ahead and, you know, build defense mechanism on the system side or building a secure browser and things like that? . Yeah, that's interesting. So, you can continue the questions and answers over at Q&A for room number three. And that's it. Yeah. Thanks, everyone. Sorry about that. Yeah. I've been glad to be here. It was just like you needed it.