And the talk post lunch is little heavy to drag with but just bear with me for half an hour or maybe less than that. So the talk that would be delivering here is on code channels in wireless. Basically, it's about how one can actually ship certain data not in the payload field but some other field. And let's begin. So we are actually, me, Rishikesh, and my co-author, Amrita, somehow she couldn't travel because of a visa issue. So we've been trying to understand wireless communications in detail for like almost four years. We have been trying to understand many of the questions in wireless communications in a different way, different approaches. So it was actually in Nalcon 2014, we have delivered a talk on rogue access point detection from clients. So from this perspective, that we came to reach another question where we've been trying to answer like, okay, there are rogue access points, there are different attacks happening in the IEEE 2.11 standard and things like that. But then is that only detection and prevention is the way to actually solve these all questions or is there something else that we can come up with in order to address certain security issues in IEEE 2.11? Well, before we begin, this whole discussion would be going around IEEE 8.2.11 specific to open wireless networks. We won't be dealing with any encryption or something like that here. So these are open wireless networks, max-to-max, some captive portal that may come in picture. So while answering that particular question, where is there any way around to come up with some new preventive measure apart from like wireless sensors or maybe, you know, some other kind of security measures that we can come up with in order to address certain security issues in IEEE 2.11? What we have been doing is getting all these personalisedās, everyone has open wireless IDS or something like that, what else can be done? So we came to know like what if we try to ship certain data into frames where usually data is not sitting. So this is where this whole concept started taking place or rather started in shifting, I would say. So yes, Amrita she is a test analyst having more than 10 years of experience. I am a security analyst and part-time researcher. Okay. So that is much on to the introduction part. So yes, by the time we started solving this question this was our state of mind, cluttered. There were like a plethora of things, n number of layers, different timing paradigms and what not. There are many presumptions as well. So like something that's kept from disclosing, yes indeed. There are always otherwise usages of things that purposely were not mentioned into the standard documentations. And so is the wireless. The HULI.11 or maybe 8888 or 2.11. So some characters, very basic if somebody is not aware. Access point, the device which will actually avail a network connectivity to hosts. And hosts are nothing but the stations which would be actually consuming such network connectivity and will be doing some productive or unproductive use of that connectivity. So back to the basics. Back to the basics. Introduction I think we have done a little bit. So here it is. We all here sitting at least have some understanding about 8888 or 2.11 and the misuse that's always been done about around 8888 or 2.11. So what, do we really need to prove it again and again? Since like 1998 we have been attacking 8888 or 2.11 and still is the state of this whole wireless network scenario. Well okay, fine. Okay. Okay. So what, what can be a bullet line for this particular blame for that mad we can say. A hole in the network perimeter, open wireless networks, webs, bad configs, default username passwords and what not. Loose link in the client security, yes. Offensive rogue access points, eavesdropping in socially dense areas, connectivity mess-ups, yes. When we say connectivity mess-ups. Yes. It would only be known to attacker. Otherwise it's a seamless experience for rest of the victims. So who the victims are? I know couple of boring slides these are. Curse to omnipresence and ease of access to wireless, mobile phones, cameras, printers, gaming consoles, laptops, desktops, majority of gadgets nowadays we are using and thanks to IOT, many more things and extended surface to attack. All in all, many victims attacking exploitation. So any, any, or rather majority of IAEA 2.11 complying devices have certain modes of operation. One of that first is managed mode. That is more of our, our wireless network interface card which usually operates in. Ad hoc mode, which is kind of a, maybe a patch driver or maybe some edited stack presenting to IAEA 2.11. IAEA 2.11 protocol stack and we are using it for some ad hoc purpose for that matter. Master acts as an access point. And monitor mode. One of very favorite mode of an attacker for that matter. Allows monitoring and injecting traffic on various channels. Synonymous to promiscuous mode in case of wired network. So covert communications. By book, in computer security a code channel is a type of computer security attack that creates a capability to transfer. Information objects between processes that are not supposed to be allowed to communicate by the computer security policy. I know pretty heavy definition. There have always been ways to basically smuggle your data. Using various layers in the ISO, OSI model. Well, to mention here, actually one of my paper got declined in positive hack days. But their review was really fantastic. This particular line has actually strike to me after that review. Like why it has only supposed to be a specific layer. Why cannot be there are more than one layer on which we can ship covert data or rather we can initiate covert channel. So yes, thanks to PhD for that. So we've been focusing on some of the aspects in data link layer. This is where we have actually zeroed down on data link layer and we started focusing on yes. This could be the prospective region. This is where we have actually zeroed down on data link layer and we started focusing on the region we can actually explore in order to initiate our covert channel. And that too specifically on beacons and probes. Why we would come to know in some time. So some basics dot 11 frame types, management frames, control frames, data frames. Forget about control frames from data frames because we would be only dealing here in this talk about management frames and that too about only these three frames which are highlighted in red. That is probe request, probe response and beacon frame. So while doing this all we've taken help of a particular tool called Scapee. So Scapee is a packet manipulation tool or program, allows forging and crafting packets and frames, supports various protocols. For Scapee wireless frames are just a set of layers and sub layers. How? We will come to know soon. So layers in Scapee. So this is how actually Scapee understands our wireless frame. So the first layer. In the wireless frame. Scapee is radio tap. Then the other layer is dot 11. Then the third layer is dot 11 beacon or probe request or response. And then succeeding with dot 11 ELT. ELT stands for information elements. So yeah this was like some convinced thought of mine after like six months. So beacon frame. Oh this is fine. We can actually inject these things in more of an OOP way or things like that. So basically it's a radio tap layer as we have spoken already. Then there is a dot 11 address 1 which is like a broadcast address here. Address 2 is nothing but your BSS ID. Address 3 is again a BSS ID. And then dot 11. Dot 11 beacon that actually starts with cap. Cap equal to 0x2104. Cap is nothing but a field which is usually a capability information. Deals with lot of hardware and network related information for that particular network interface card and same about wireless access card as well. Sorry. Wireless access point as well. My apologies for typo. And yes. The other thing is like dot 11 ELT. ID equal to 0 here. ID is nothing but a field which will be telling you like which kind of information element that you are trying to address here. So in case it is ID is 0 then that particular information element is SSID. So the info field will actually populate that particular information about that ID. So here it is demo demo demo. So that is SSID that I have forged here or for that matter showed here. So theoretically this is fine. This is how beacon frame looks like. A lot of header and bytes lettered information, time stamp, frame control and many things. In functional context this is what beacon frame does. So assume that particular rolling circle or rather the growing circle is a beacon frame. As soon as it reaches to a particular station it gives that particular station intelligence that yes there is particular access point present into the local radio periphery. So yes there is a lot of information stuff inside the wireless frames in our context beacon and probe. Edit the fields which have better length in order to ship data. Yes that is what we will be doing and soon we will be seeing like what exactly is the significance of that particular statement. Interesting elements. SSID. DSET. TIM. RATES. ES RATES. TPC RATES. RESPONSES. Sorry TPC REQUESTS AND RESPONSES. COUNTRY. And etc. There are like plethora of such elements available. So to sail through certain elements I have referred to IEEE 2.11 standard document where these elements are written. So basically in our kp context if we see here. The ID field here represents same ID. Here as well. So the element ID is nothing but the ID field in case of kp.11 ELT context. Fine. And the length if you see like here we have SSID it's got like 34 octets. Supported rates. 10 octets. TIM. 256 octets. TIM stands for traffic indication map. So like that there are many such elements available. So couple of them we have picked up. And tried to understand like if they really work the way we want it to. Can we show. For this particular thing these particular frames because they do not require any authentication. Neither they require any association. With access point. To broadcast themselves to air themselves. Being broadcast there is no need to zero down on host selection. So this would be like kind of a broadcast attack. We need not zero down on a specific user. Okay this is what I am trying. This is a particular user I am trying to attack. No not needed. We can actually target many people at a time. So yes that reduces a bit. Presence of these frames. In multitude in local wireless periphery is a common phenomena. Yes. So by design these frames are meant to be available in abundance into the local radio periphery. So that actually gives us a rather an attacker an edge to actually stay low on to a suspicion. Yes so again the multitude will always facilitate the larger chunk of data to ship. Yes. This particular thing the multitude of larger chunk of data we still are working on this. But yes we are able to ship a data but we are still not being able to sequence it in a proper way because of some lossy channels for that matter. So using this outbreak of malware pretty much a possibility. Some field allows pushing more than 250 bytes of data in a single frame added to this particular statement. Now. It could be more than like 500 or maybe like 750 bytes of data in the single frame. We will show you how. Fine so 250 bytes are quite enough for malicious payload. Yes. Those who are exploit writers here they understand importance of 250 bytes. So for representation perspective we have picked up a particular information element and that is TIM. That is traffic indication map. Yes. So why specifically TIM? It is because of this was the first element information element which allowed a shipping 250 bytes of data in some non payload field. And yes it was pretty easy to fabricate the frame in Skp using this particular information element. Those were like days when I was not much. Maybe you will find a way to actually land our shellcode and make it executable on directly onto the look. uh, remote box for that matter. So, yes, uh, demo? I hope it... Thank you. . . . . . . . So, here. Thank you. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . in order to ship the data and in sequence. But the same problem arrives like how to acknowledge and how to retransmit that data. There is another way that we have been able to actually come up with is like retransmit that whole chunk of data after like 0.2 milliseconds or something like that. But that will only result in a lot of garbage at receiver end. But yes, honestly we are yet to find an exhaustive solution to this particular question as of now. So, no retrieval of loss frames so far? Yes. So, work in progress that just I have told you like there are things we are trying to understand how a loss frame can be retrieved. So yes, apart from that there are many information elements we are yet to test. Fields pertaining timing parameters may be of help, but yet to be tested though. Now, why timing parameters would come in picture? Specifically like PS pole frames or frames which are more concerned about timing which are like timing sensitive frames. So, they can actually be used in order to write in a lot of data in a different way like instead of that particular id again in timing field we can use some string to be shoved in there or may be a hexadecimal representative of that string and can ship the data. We are still trying to understand that thing in detail. Yes, synchronized file transfer. This is something we are halfway into. As I have told like yes, using that particular 0.2 milliseconds delay into the frame burst, we can actually reorder the data. But as I have told like it is only that loss frames that we are yet to work on. So, conclusion we have used broadcast frames as a mean of running covert channels. The approach we have proposed is still in development. We have already started using it in the development phase of the software and we have also worked So, this is basically a way of running a wireless signal. So, it is just a way to run a wireless signal and this is the way of running a wireless signal. So, this is our solution for this. How to use it? How do you use it? how to use this? to share what I've learned with everybody around here thank you so very much if you have any question I'll try to answer that there was no effect there was no effect so you can carry if you're saying you can carry this across a legitimate wireless network and hide your data in the frame and no one will be done to watch no one will be done to watch no worry it smoothly escapes the host kernel as well as it gets properly interpreted by the victim kernel as well any other question yes , honestly I'm yet to excel into those all mathematical algorithms so is the reason I haven't touched encryption yes any question anymore all right thank you everybody for being such a nice audience and thank you for giving me the opportunity to deliver my talk thank you and thank you for giving me the opportunity to deliver my talk thank you