So I think before we start the presentation, I want to set a little bit of a context here and set a little bit of background. My colleague Vivek is going to make the main presentation. I am Praveen, the Chief Technology Officer of Airtight Networks. So the context or the background of what we are going to talk about here is the whole community here, I think, knows that web has been dead for many, many years. But recently, about three months ago, a very interesting or a thought-provoking idea was proposed. And the idea suggested that if you inject some shaft frames in the air, it is possible to confuse current generation web cracking tools. So in a sense, kind of a new war has started that a shaffer can win over a cracking tool. And the question that you want to pose here... that in this war, between a shaffer and a cracker, who is going to eventually win? And obviously, there are going to be ups and downs. One time, one party will win. Another time, another party will win. So we have sort of done some thought experiment along this war game. And we are here to share our findings or the results that we have arrived at. And it is important to kind of mention that we are here presenting results, not specifically targeting at any specific target. Not a specific implementation of a shaffing approach. But rather, this general approach of injecting shaft frames and trying to confuse a web cracker. And we are going to show you all possible ways the shaft can be generated. And each one of those possibilities, how a cracking tool can evolve to beat the shaffer all the time. So before we get into the specifics of the presentation, it is important to mention, as I said... And during the presentation, also... We will be using terms like web cloaking, web shaffing, or web masking interchangeably. And since this idea was proposed, these terms have been used in the industry as a whole interchangeably. So our reference of these terms should be treated as reference to the generic shaffing approach. Not to any specific implementation of it, which may be out there. So with that kind of a context and background, I want to invite Vivek, who is the youngest member of our R&D team. And I would have been very honored to have him here. And I would have been very honored if Deepak Gupta, who is one of the main brains behind what you are going to be presenting, could be here. Unfortunately, he couldn't make it. So that's why I am kind of substituting for him. So please welcome Vivek, and we will get started. Thanks. Thanks, Praveen. I am Vivek, and I work as a security researcher at Airtight Networks. This is my first time both in America and, of course, in DEF CON. And we've tried to do a good job here. And I hope you guys are going to enjoy this presentation. Thanks. So with that, let me briefly run you through the talk outline. First, I'll be talking about the evolution of web cracking. And how web shaffing is actually going to stop the current generation of web cracking tools from failing. Also, we are going to discuss some of the techniques which the shaffer used in order to send out his frames. And also various countermeasures which can be used to separate those shafts. And once again, allow air crack to crack. Also, then we'll discuss about some of the implementation problems with web shaffing. And then try and conclude what we think about the whole web shaffing approach. And then the house opens up for Q&A. So evolution of web cracking. I'm sure almost everybody here must have cracked web once. And I really do not want to run you through the whole refresher. So very simply put, web cracking is the process of using various statistical attacks, which were discovered against web from the last seven years or so, to derive the web key. And let's quickly look at the historical evolution of the various cracks which occurred in web. So the first crack was as early as 2001. And the first cryptographic vulnerability was discovered also in 2001 in the celebrated FMS paper. Which was later followed by COREC in 2004, which decreased the complexity of web cracking. And finally, recently, the PTW guys sort of extrapolated Adria's clean conditions and have really brought down web cracking to the extent that you can crack web within five minutes. So what started with five million packets at the FMS time has now come down to around 60 to 90 thousand packets required for web cracking. But this hasn't really stopped people from trying to save web. And people have used these band-aid approaches saying, Okay, make it 128. These are tough to crack. And, you know, suppress weak IVs, and so on and so forth, you know, what not. So what we are here to discuss is the latest development of such a band-aid approach. And that is called web shaft frame insertion. So the question we are going to try and answer in this presentation is the shafting approach just yet another band-aid approach? Or is it really going to hold water? Right? So basically it's web shafting against web cracking. And we'll see who's going to win. Now, so what is web shafting? Very simply put, web shafting is a technique of mixing spoofed web encrypted frames, also called shaft, and to make them as indistinguishable from the real frames as possible. What's going to happen is the current generation of web cracking tools are going to use the shaft trace which contains both the real authorised network's web data along with the shaft data gets confused and is going to fail. So what are these shaft packets? Can any web encrypted packet in reality qualify as shaft? The answer is no. It's because only those web encrypted packets who have a property called a weak IV are really going to influence the cryptographic process. And only those can cause a bias to open up the network to either force aircrack or any other cracking tool to converge to the wrong key or to diverge to no solution and fail. So let's quickly look at an example of shafting. So actually these traces were generated and I have these offline traces through which I'll show you how web shafting works and the countermeasures. So first, let's look at how shafting works. I'm using the latest backtrack 2.0 final cut and pretty much I'm going to use the default aircrack version which comes along with that. I'm also going to give aircrack the hint that the key is a 40-bit key. And this trace called one-key-shaft contains both web encrypted packets of the authorised network as well as the shaft packets. So let's see what's going to happen. So if you notice, aircrack actually exits without trying. Let's try and cajole aircrack into working a little bit more by increasing the fudge factor to the maximum of 32. It tries but once again within 4 seconds it pretty much exits. So going back to the presentation How did this really work? I can assure you and we'll see later that there are enough web encrypted data packets in that shaft trace to be able to crack the web key. But what actually went wrong? The thing one has to realise is that the current generation of web cracking tools typically trust whatever is there over the air. And if you think about it, as a hacking tool, why should we trust what we see? Right? And that's where aircrack and all the other crackers are going wrong. And web shafting pretty much exploits that trust. That trust that whatever aircrack is using into its statistical processes is right. So we're going to be using aircrack for the rest of our discussion pretty much as a benchmark tool because from what we've observed, it's also the most reliable as well as popular. Implements all these statistical attacks pretty much exhaustively. And the good thing is the creator of aircrack Thomas is also here at Defcon. Thomas, are you here? You can raise your hand. There he is. So for every web key which you crack, you need to thank him. Moving on, let's try and understand how a web shafting approach can actually try and fool aircrack. So this is actually a very complicated slide of how aircrack works. But putting it very simply, what happens is when you give a trace file to aircrack, it's going to read that trace file, list out all the unique IVs along with the first two encrypted bytes and create a list out of it. Right? Then we go on to the iterative approach of cracking web. So I'll be discussing basically from the FMS and Corect perspective. So basically what happens is if you want to crack the web key, to crack the bth byte of the key, we assume that the last b-1 bytes of the key have been cracked. And of course we start with b is equal to 0 that is absolute zero knowledge about the real web key. From there on, for every unique IV along with the first two encrypted bytes which we have in our list, we'll go ahead and try and see if that is going to match one or more of the Corect and FMS conditions. If it matches, then we're going to get that possibility of that byte from this match. So there are equations which are going to be used to define what that possibility is going to be and depending upon which one of these statistical conditions got matched, we will award an according score. So as most of you might be knowing, the statistical conditions pretty much revolve between 5 to 13% with respect to what the real web key byte might be. So once we've done this, we're going to use the most possible byte for that value as the one having the highest vote or score. And once we've done that, for all the four bytes let's say, for a five byte key, then for the fifth byte we're going to be doing brute forcing. So by default, the last byte is cracked by brute force and in that you want to use something called the Fudge Factor, in which we decide also which possibilities to include for every byte which we've encountered till now. And finally, in the brute force technique, when you're trying to crack the key and you've arrived at a possible key, you're going to verify that against a list of 32 IVs, if you're able to crack it or not. So now let's try and understand what are the attack points in this logic. ... The first attack point is ignoring the duplicates. The second is playing with the actual statistical calculations. The third is playing around with the Fudge Factor. And the final one is beating the verification process. ... So let's look at how this can be done. So the very first one, ignoring duplicates or eliminating legitimate IVs. See, the shaffer can have the real network's web key and exhaustively enumerate all the weak IVs for that network key. Right? And then he's going to send out all these weak IVs and randomize the first two encrypted bytes and send it over the air again and again. Aircrack is going to use that encounter all those weak IVs at one go and from there on, any weak IV which comes from the legitimate network's traffic is going to be ignored. Right? You have this unique underscore IV check for people who looked into the code. So pretty much we end up masking the unique IVs coming in from the authorized network. The second is influencing the voting logic itself. And this is done basically by concocting a weak IV along with two encrypted bytes which are going to match one or more of these statistical conditions. Once this happens, we're pretty much going to be influencing the voting logic. After that, beating the fudge factor. So the way to beat the fudge factor is to create such a large bias for the first possibility that even if you divide it by the largest fudge factor which is 32, the quotient of that division is going to be greater than the legitimate key bytes vote. When this happens, pretty much the legitimate key byte, even if it is a possibility, will not be included for brute forcing. And final is beating the verification step. So even if two or more of the 32 IVs which are used for verification contain SHAF, then Aircrack will exit even if it's going to have the real key. So can Aircrack be made smarter or should we end this talk? And the answer is pretty much yes. See, what is the fundamental problem here is that Aircrack trusts what it sees. And what we are going to do is that give Aircrack some sort of a microscopic view into what's happening and that we accomplish by using various filters. So using these filters, we'll try and separate the SHAF from the grain or the noise from the real signal or the web data from the SHAF. So now we'll look at the various techniques through which SHAF can be produced and the countermeasures which we can use against them. And filter SHAF. Okay, so as this is Las Vegas, we sort of decided to play a game of roulette. What we are going to do is that we are going to start off with techniques from the very naive to the most sophisticated. And for every SHAFing technique, we are going to bet on one piece of the Emperor's clothing. If we can actually zero down upon a filter which is going to filter out that SHAF, then we are going to remove that piece of clothing from the Emperor. So let's see what happens. The SHAFer versus the Cracker. The very first approach is actually the most naive as well and that is injecting random frames. So what happens here is that the SHAFer can actually go ahead, send out any web data packet. Is this really going to affect Aircrack's performance? Most probably not. Why? As we have already discussed, only those packets which have weak IVs will influence the statistical analysis. And if you randomly just generate any packet, given that the weak IV distribution is very small and chunked, the probability that you will actually send out a large number of weak IV packets is very very less. So, Aircrack NG default itself has a lot of noise tolerance and we have tried this technique out in the lab. And you see that pretty much Aircrack can cack the key. And off goes the necklace. The next technique is going to be weak IV frames but with fixed size. So we have already discussed that weak IV frames is what is going to influence all these statistical calculations, right? But why fixed size? We are going to look into some technique later which is also going to use this property called fingerprinting. The reason is whenever a VIPS is going to deploy any sort of a prevention technique, there has to be some fingerprint. And having the frame size fixed is a very easy fingerprint. Note, this technique is one of the more naive techniques. We will talk about more sophisticated ones just in a little bit more. So how can we beat this? Do you need to write your own tool? I think not. Just go ahead, take the trace of all the weak IV packets. If you actually observe lot of weak IVs with fixed size, just go ahead and write your own simple wireshark filter to weed out by frame size. So any frame size filter can actually eliminate this sort of trivial and elementary shaft. Now let's look into some technique which is slightly more advanced. And that is shafing using a single key. So what happens here is that the shaffer is going to have his own unique key through which he is going to find out all possible weak IVs. Once he does that, he is going to send out all these weak IVs along with the first two encrypted bytes in order to match one or more of these statistical conditions. So all the tools, pretty much Aircrack and every other tool which is currently existing, are going to blindly plug in these weak IVs into their statistical calculations and either converge to the wrong key or will diverge without a solution and just exit as the case we saw in our demo. Right? So whether it's going to succeed or not pretty much depends on the very verification process. So how can we actually beat a shaffer who is using a single cryptographic web key to send out shaff? Actually the beauty is that Aircrack default can do it but it requires a very trivial modification. And that's what we call Aircrack visual inspection. So what is visual inspection? Visual inspection is the process through which we are going to weed out the anomalies. And when you say anomaly, you have to be very sure about what the normal behavior is. So what we observe over and over again you know, hundreds of experiments is that let's say we have a trace of around 300,000 weak IVs then the maximum vote for any byte rarely goes about 250. It's more like an empirical observation. Pretty much it's going to be lesser than 250. So if you really see a huge anomaly in the voting process you can weed out some of those possibilities. And that is what the visual inspection technique is all about. See, because the shaffer has to force the cracker to converge to the wrong key as soon as possible, right? He is going to be sending out these weak IV packets. And the distribution of votes which is going to be caused by these weak IVs is going to be very visible when you look at Aircrack. The problem right now is Aircrack just goes ahead and proceeds. What if we could matrix style freeze Aircrack when it is doing the cracking at every key byte and look at the voting distribution and if we can identify any anomaly there, weed that out. So let's look at a demo. I am going to be using the same trace which the Aircrack default failed to crack. So modified Aircrack trivially to actually stop at every key byte and I think this is included with the CD as well. So now we are about to crack the 0th byte of the key and if you noticed, Aircrack has just frozen over there and you can see the voting distribution. If you look at the voting distribution, what you find is that the highest possibility which is 41 has a huge vote of 1580. This happened because the shaffer sent out weak IVs destined for that byte to be 41. So the attacker key was actually 41, 42, 43, 44 and 45, right? So you will notice some of these things over and over again. So let's say we assume that, let's just go ahead with the cracking process and see how Aircrack fails. So Aircrack is going to ask me, should I go ahead with that value or some other new value? And I am going to say, let's just continue with 41. And if you notice, now for the second byte, the highest vote comes for 42, which is the second byte of the attacker's key. So by going ahead with this whole calculation, you will actually end up either converging to the attacker key or diverging to no solution. Why did this happen? Because Aircrack tried to verify against the shaff trace and the IVs which it picked up for verification actually had a couple of legitimate packets which were more than 2. Because of which the key typically could not be used to decrypt it. So now let's look at how we can use this visual inspection technique to weed out shaff. So what we are going to do here is 41 absolute anomaly absolute garbage. So let's go with the next value which is 67. Once again 1C absolute anomaly. The reason why 1C appears and not 42 because now we are simulating the KSA to the next step, assuming that the value 41 is the 0th byte of the key. Once again 28 absolute anomaly let's use the next value. 30 And if you notice now Aircrack is able to crack that same trace and get you the key. Right? So a shaffer using a single key all he can do is sort of change the bias to such an extent that Aircrack is going to exit. But trivial modifications can do it. I am doing visual inspection by hand and sort of breakpointing at every level just to explain this concept. But this can be included. Note that this is different from the Fudge Factor. Fudge Factor is going to divide 1580 the highest vote 41 divided by 32 which is still not going to include 69 or some of these values because of which it exits. So what are the strengths and weaknesses of this technique? This can crack key in many cases. Especially in the single key and the multiple shaft key cases. We will discuss the multiple one in the next slide. The weakness is it's not going to work for random keys and we will look at that as well. The point is we are going to present you a wide gamut of techniques and all these techniques have an overlap. Visual inspection can work for the next one and this one so on and so forth. In the end we will try to assimilate this together and show you in the form of a chart how all these techniques overlap. So the next type of shaft is using multiple keys. So now the shaffer let's say has 4, 5, 6 keys, generates all the weak IVs and sends them out. So what's going to happen? And how can we beat such kind of a shaffing is using sequence number analysis. How does this work? So the sequence number as all of us know is part of the MAC header and is present in all the management and data packets. The point to note is that for every source there is going to be a distinct sequence number pattern which you can see. And pretty much all the MAC spoofing algorithms detection algorithms which are currently used in VIPS rely on this form of detection to find an attacker spoofing a MAC. So using this we can pretty much filter out the shaft and the real data traffic. Just a few hours before we submitted this presentation we also came across Joshua Wright's blog in which he advocates this as a technique. I am sure most of you know about Joshua. He is a well known security researcher in the wireless community. So how does the MAC spoofing detection algorithm using sequence number work? The pseudo code is pretty simple. Given a trace for a device in the trace and the first sequence number from there on for every sequence number which you encounter for the same device take the difference between the current and the previous. If it is going to be lesser than a threshold go ahead accept that packet. If it is not going to be lesser than the threshold discard the packet. The threshold pretty much is going to depend upon how lossy your trace file is going to be. I will actually do a demonstration of this technique along with the next one together. So how can shaft insertion sort of be made more sophisticated is by using random keys. So now the attacker is taking the attack to a totally different level. He is going to take a single key which he is going to randomly generate find out a couple of weak IVs, inject those packets then he is going to generate another random key and continue the process. So is it possible to beat the random key case using a technique? The technique which we propose as a filter is using initialization vector analysis. Now beautiful fact about the IV is that it also follows a trend just like the sequence number. Now most of you must be having this query that IVs might also be random. They need not be sequential. But in the context of web shafting because it is intended to protect legacy clients and legacy devices you will note that all these devices invariably have incrementally increasing IVs as well. That is why we can discuss the IV based filter for web shafting and against it. So Joshua Wright also advocates this technique on his blog and the pseudo code is absolutely simple. Only point to remember is the IV is going to be there only in data packets and not in management packets. So let's look at a demonstration of this technique. So just to not meddle around with the code of Aircrack or any other cracker I have written a separate utility which is going to run through a trace and filter it out based upon sequence number and IVs. Both of them together are very robust and that's what we are going to do. But before that let's quickly look at how the shaft trace is going to look like for the four key case. So let's once again run the default Aircrack. Actually we need to run visual inspection so that we can freeze and look at the distribution. So this trace contains all the legitimate networks traffic along with shaft which was generated using four keys. It's a slightly larger trace. Right. So now look at the voting pattern. If you notice 63, 31, 41 and 45 the first four possibilities have a huge anomaly in the votes which they have got. Right. So let's exit this here and now let's use our sequence number filter to go ahead and filter this trace out. We'll write the absolute I would say the trace after filtering into filtered.cap. Actually the minus N64 confused it. That was Aircrack's command line argument and not for the sequence number IV filter. It's a separate utility. So the filters are being initialized and there are a lot of debugs which pretty much you can take a look later. So now what we have in the same directory is a filtered.cap trace which was generated using the four key shaft trace. Now just to play it even let's fire Aircrack NG default once again which comes with backtrack on this new filtered trace. So now if you notice all that anomaly which was caused in those huge votes pretty much don't appear on your screen. Right. So let's go ahead with its cracking process and it's trying to crack the web key. Right. Same trace we use the sequence number and IV filter and after that Aircrack is able to crack it. So this shows that sequence number and IV together are pretty robust. Now let's look at the random key case. Right. For every Let's actually run Aircrack visual inspection And let's look at how the random key generated shaft actually looks like. So this contains both the real networks data along with shaft which was generated using random keys. And if you notice nothing is actually predictable. And there are also a lot of negative values which are coming in. Anybody ever notice negative values while they cracked web? For the voting. The reason why this is happening is one of the correct conditions which are there is an error correcting condition which has a negative vote. So if you generate things randomly you do not have a control over what's going to happen. But the beauty is if you notice 67 which is G and the very first byte of the web key does not appear in any of the possibilities. Right. So the attacker does not have control over what is actually going to come up as the final distribution. But at the very least he's going to end up masking the real networks key byte using random keys. So once again what we've seen is that we've conducted a lot of experiments and the sequence number and IV filter also is going to protect against that sort of a shafing. So let's store the trace in filter to dot cap and once again what I'm going to do is let's first actually run air crack the default version on the random key shaf. Just to once again show that look this is the shaf which air crack could not crack by default. I think it runs for around 15 to 20 seconds. And if you notice the voting pattern has negative values suddenly very large values are happening. You know pretty much unpredictable because what you assume at the first step to be let's say the zeroth byte of the key is going to decide how you're going to simulate the rest of the key essay. So air crack exits. Now let's give the same default air crack the filter trace. Key is pretty much found. Right? So with a lot of experimentation you know we basically had two groups one playing the shaffer and one the cracker. We saw that sequence number and IV together is very very robust. The strength is that this can work against almost all the different kinds of shaf. Single, multiple and random. At the very same time because it is a passive and an offline technique it is more preferred. And an independent shaf generator, shaf separator as we've just made can be easily built. The weakness of course is that IVs may not be sequential for all devices. It can be random. But the point remains that for all legacy devices which web shafing is recommended to basically use with in order to protect web have sequential IVs. So now moving on. Pretty much if you think about it the way in which weak IVs can be generated is using a single, multiple or random key. Right? And because we were using the sequence number and IV analysis we decided to take it a step further. So now we are going to talk about an approach which currently is not implemented anywhere and most likely will never be implemented but more from a completeness perspective it is important to discuss it. So this approach is somehow making the frames indistinguishable for the AP at least as far as the sequence number and IV is concerned. The only way you can do this if you have web shafing as a feature in the AP itself. Right? Only then can you not have any collisions if you are trying to spoof it. So if this is somehow achieved how can we beat this? The answer lies in a filter called Active Frame Replay. Now what is this? The problem with web is it's not just the cryptographic vulnerabilities which have sort of caused all those cracks it's also other things such as web is vulnerable to replay attack as well. So you bandage one crack we can pretty much poke a hole from the other one. So the basic idea is simple web has no replay protection second of all the web MAC header can be modified trivially and actually retransmitted over the air. So what we are going to use in this technique is take every packet which we have in our corrupted trace, change the destination address to the broadcast or a chosen multicast address and send it back to the AP. Now what's going to happen is if the data packet which we send belongs to the authorized network the AP is going to replay it because first of all the data packet will be decrypted correctly and then because it is decrypted the AP is going to look at the destination and forward it to that as we are using a broadcast and a multicast destination it has to be once again sent over the air. Now let's say the AP is going to encounter a shaft data packet which we have already inserted using the same technique the AP will fail to decrypt it and simply discard it. So what's going to happen is we are going to see the packets which we sent we are going to replay them and only the real networks data packets will be replayed. So the big question is how can we identify the packets which we just replayed, right? Because the AP is going to actually encrypt them with a different IV. The answer is simple, what we could do is we could randomly generate a multicast address and use that as a destination and then keep it long enough in memory, let's say 2 or 3 milliseconds and wait and see if we are actually seeing a data packet from the AP which has the same destination multicast address. Also we can use the frame size as another parameter. What we've noticed is using both of these together, technique pretty much is very robust and works very well. Also 100% shaft separation is possible. The reason is very simple this is how the protocol works you cannot change that. So there are two reasons why I cannot do an active replay live here. One is it's going to take around 30 to 40 minutes and the second is this being DEFCON I'm sure somebody is going to DOS me. So the technique works and I think theoretically it's already been used in the tool called chop-chop which Kodak released. So what we notice is that for any trace which you have use the active replay technique what you get back is going to be totally pure data traffic which originated from the authorized network. There's also a good thing about this technique and that is if you send a good data packet to the AP it's going to give you a new data packet as a bonus and that's going to have a new IV in it. So think about it right? Good data packet get back another data packet as a bonus. This technique is going to work for any kind of shaft. Also 100% shaft separation is possible. At the very same time because we are totally oblivious and really do not care about what the sequence number or the initialization vector was for the device which returns so pretty much we can use it and this can be done in real time as well. Lot of you guys must have already used tools like PCAP to AIR so that can be trivially modified to support this. The weaknesses of course is that this is not a passive approach. You have to be able to replay these packets. The second thing is if let's suppose the authentication which the AP has is open you can spoof an association you can spoof an authentication. If there is a shared key authentication in place and if you are unlucky enough not to have a shared key authentication transaction in your trace file you will have to wait for a client to be associated. So now let's move on to the final technique and if you notice the emperor is looking very worried. So the final sophistication could actually be that pretty much using a super secret magic potion you know absolutely use something I mean which nobody can even think of totally unrealistic but still some way in which shaft could be generated some other way. For that the replay technique is going to work because that's where the protocol works. Another important point to note here is fingerprinting. Why is fingerprinting so important? See the implementation of shafting dictates that you have to have an identifiable recognizable fingerprint in the packets which you send. Just think about it. There could be two whips which have an overlap region and if they do not identify the shaft packets they send they are going to shaft each other's packets. So fingerprint is absolutely mandatory for this technique. So how can we find a usable fingerprint? Now this is where it is implementation specific. So what we could do is check the packet header for various abnormalities duration field you know some other field where some value is there also the packet could be of fixed length something could be prepended or appended to the packet. I mean there are a lot of possibilities. The point to understand here is fingerprinting will be there and it's very easy to recognize a fingerprint. Maximum it could take is a couple of hours maybe a day or a week. But when that happens somebody is going to release a fingerprint and all guys who actually could collect a trace with such a shafting deployment can go ahead and decrypt the entire trace by weeding out packets which exhibit that fingerprint. So fingerprinting is a real powerful technique. Okay so pretty much we have covered the nine yards from the very naive to the most sophisticated. So who would like to see that? I am sure not many. Okay so now let's talk about the overlapping of the various countermeasures. The point to understand here is that when I say sequence number and IV that does not mean it only applies for the technique I used it as a filter against. There is a lot of overlap and if you notice for every possible way in which shaft can be generated there are at least two techniques which are real and feasible even though the shafting technique might be absolutely impractical. Right? So pretty much the odds are more towards the cracker at this moment. So what are the other implementation problems which are there with web shafting? There are a lot of implementation issues. The first thing to understand is that web cracking is absolutely passive. Right? So the shaffer has to run 24-7, 365 days of the year. Even if he is going to stop for 5 minutes it's enough to crack the web key. The PTW attack typically just demonstrates that. Also the point to understand here is that shafting has to be done exhaustively for all devices across all channels clients and APs included. Even if you are going to miss out one single client the attacker can simply use that clients traffic and go ahead and crack the web key. He might take slightly longer but the point remains he is going to crack the web key. At the very same time if you want a real total reliable confusion then you should have dedicated devices on all channels which just do nothing but shaffing. There are other things as well. From a game theory perspective what's happening is that the shaffer has to win always and the attacker only once. Why is that? First of all the shaffer has no knowledge about when the trace is being collected because of which he is going to shaff over and over again. The attacker has to collect a trace and let's say he succeeds in cracking the web key with just one single trace then from there on he can decrypt all the data packets and separate shaff because he has the legitimate key. How can he do that with the legitimate key? Decrypt the packets check with the ICV if there is a match it's the real data packet if not it's going to be shaff and weed it out. So once the attacker wins web shaffing first of all is going to be absolutely oblivious of the fact that someone managed to crack web because it's a passive technique. So the shaffer is just going to keep on running and not really understand what's happened. So the odds are pretty much stacked against the shaffer. And the odds are more for the attacker. So any prevention technique which is going to be used against any attack should be such that the odds are for the prevention techniques. There is a higher probability for the prevention technique to win and not the attacker who is trying to penetrate into the network. So pretty much even from a game theory perspective web shaffing is at a great disadvantage. Also let's talk about increasing the sophistication. Let's say you have this technology deployed somewhere and somehow somebody manages to crack it. Right? Using some of the techniques which we've shown or maybe some other technique. From there on the guy is first of all going to decrypt all the trace files at the very same time till the time the shaffer does not release a new patch all those networks are going to be absolutely unprotected. Right? So increasing sophistication of the attack is very simple. Attacker can go offline and do everything. But increasing the sophistication from a shaffer perspective is very very tough. So before we look at the final verdict of web shaffing actually let's actually go through the final verdict first. So the point is that shaffing is yet another band-aid approach. Right? Web has lot of cracks we've tried to band-aid some of them there's a new technique and unfortunately this also cannot hold water. And even if shaft frames were pretty much made indistinguishable by an oracle I think that's the magic potion case which we talk about still then we can crack web. Web has so many other vulnerabilities you can sort of poke here and there and get the job done. So the final verdict on web shaffing. It was indeed too good to be true. Now think about it does web shaffing actually targeting the cryptographic problems which are there? In the RC4 implementation of web? Is it a patch for that? Absolutely not. And that is where the real problem is. That is why the web key gets cracked is because there's a problem with the cryptography in which it is implemented. All web shaffing is trying to do is obscure those problems and obscure those weak IVs. So that to make it very tough for any cracker to be able to recognize that. So it is just another attempt at security through obscurity. And as we all typically know that security through obscurity is a really bad idea. The lesson of this whole demonstration is very simple. Web is broken. Web was pretty much broken. 2001 the whole thing started. 2007 under 5 minutes everybody knows that. People want to migrate to WPA. Web is broken and it will remain broken. Period. If you really want to protect your networks, go ahead and migrate to WPA and WPA2. So we decided to spice this up with a little challenge of ours as well. If somebody believes that they have a web shaffing implementation which works differently and then we'll provide them a very simple demo setup. We'll have an access point along with that we'll have two clients and they can get their shaffer. Try and protect that network which we deploy and we'll crack the key within 72 hours. Well that's it. I think we have some time for the Q&A. Thank you. I'll also be there in the Q&A room after this. I think vendors are in the process of implementing shaffing. That's what the news is according to Network World. But I think, Praveen? Would you like to take that? Right. Actually we are not here to comment specifically on any vendor implementation. We are just here to mention that this approach doesn't work. And I think you can do your own investigation and find it out. Because I think we don't want to target any specific vendor. It's just a logical discussion that this approach is not going to work. Yes. Yes. Right. For everybody, the point he's making is that actually we could also see some sort of a difference in the RSSI level from the real client as well as from the shaffer. And it's actually a very good point. And if you read Joshua's blog, he's also made that point. The number of filters which we can deploy and what you showed right now is not exhaustive. RSSI is one very good filter which you can use because definitely the power radiation level for the client is going to be different from the shaffer because they are at different locations. And the attacker can always change its location from time to time. Good question. Thanks. Actually, just one comment I'll make here. The reason why we didn't include that, because that filter is not absolutely deterministic. I mean, there are cases where Yes. But certainly one more direction where you can start filter the package. Yes. Sure. Right. Right. Right. Right. Right. Right. Right. Right. Right. Right. Right. Right. Right. Separation of skips, right? Right. While I agree that you have, if you have sequence numbers that go up, like, one, two, three, four, and then you insert chaps that are separately separated. Right. You eject chaps in a way that is blended in. It's hard to do that and then the only resource you have is the replay. Right. So, actually, just to sort of summarize what he's putting here is that let's say broadcast and multicast forwarding back to the client is prevented. Right. Very simply put. So, in the PTW paper, right, the way in which he talks about to generate that initial ARP request, there is some interesting property about it. Let's say there is a legitimate client which is communicating and you send a DOT to that client. What happens is that the client is going to authenticate and associate again. And after that, the client is going to send out a couple of ARP requests. Right. One is definitely going to be for the default gate. Right. So, now what we do is when you actually that ARP request goes through, the reply which comes from the default gateway is unicast for the client. Right. So, what happens is take the very first 10 packets which the client sent after the DOT, just replay them over and over again. You'll see a lot of unicast replies coming in from the default gateway. And pretty much because of the fact that the replies are unicast, any multicast or broadcast-based filtering cannot work against it. We've actually tried this out in the lab. That's an interesting point though. Rick. Okay. Okay. Yeah. Initialization vector. Yeah. So, what happens is for every WEP is a per-packet encryption mechanism scheme. So, that you really do not want to lose track of where you are in the key stream. So, what we do is it's like a cryptographic nuance or a salt which is prepended to the secret key. Right. And that is actually used for the KSA and later the PRGA which is the pseudo-random number generation. So, it basically makes sure that every packet is going to have a different key stream. Because if you use the same WEP key to generate the key stream, the key stream is always same. And that's going to open up for various plain text-based attacks. Where you know the plain text, you know the cipher text, you do a XOR between them, you get the key stream, and from there on for every packet which you see, you can go ahead and decrypt that packet. That's why we do this. Why don't we use the initialization vector or the IV? Okay. So, we'll be there in the Q&A room if anybody has any other questions. Thank you. Thank you. Thank you.