1 00:00:00,000 --> 00:00:04,860 Good afternoon, everyone. It is now the top of the hour. It is 4 p.m. 2 00:00:05,840 --> 00:00:09,020 Thank you so much for being here at the Packet Hacking Village. 3 00:00:09,840 --> 00:00:16,080 I hope that you've enjoyed everything that, all of our talks, all of our events here. 4 00:00:17,540 --> 00:00:24,600 Now we have a fantastic, fantastic duo of speakers, our guest speakers. 5 00:00:24,600 --> 00:00:40,040 Okay. One of them, you know, one of the speakers, well, he presented this morning, Mike Rago, the Director of Security Research at MobileIron. 6 00:00:40,260 --> 00:00:47,760 And also, we are very, very honored to have, we are very, very honored to have Chet Hosmer. 7 00:00:48,440 --> 00:00:52,320 He's an instructor and also the founder of Whetstone Technologies. 8 00:00:52,780 --> 00:00:54,320 So without much ado. 9 00:00:54,600 --> 00:01:01,720 It is my absolute pleasure to give to you both Mike Rago and Chet Hosmer. 10 00:01:12,020 --> 00:01:13,200 You guys hear me okay? 11 00:01:15,880 --> 00:01:20,040 So we're going to be passing the mic back and forth a little bit towards the beginning. 12 00:01:20,520 --> 00:01:21,700 So bear with us. 13 00:01:23,280 --> 00:01:24,580 Title of this particular talk is, 14 00:01:26,380 --> 00:01:28,020 Remaining Covert in an Overt World. 15 00:01:28,440 --> 00:01:31,760 Stems from a lot of research Chet and I have been doing over the years. 16 00:01:32,880 --> 00:01:34,700 And hope you guys enjoy it. 17 00:01:34,760 --> 00:01:39,800 It includes some of the latest research that goes above and beyond our own data hiding book, 18 00:01:39,960 --> 00:01:41,880 which we'll be raffling off at the end. 19 00:01:42,000 --> 00:01:46,640 If you want to throw your name in the little basket up here, we'll pull one at the end and raffle that off. 20 00:01:48,020 --> 00:01:51,260 And without further ado, I'll let Chet go ahead and introduce himself. 21 00:01:51,460 --> 00:01:54,140 Then I'll do the same and then Chet will kind of kick things off. 22 00:01:56,360 --> 00:01:57,100 Thanks, Mike. 23 00:01:57,620 --> 00:01:58,180 Hi, everybody. 24 00:01:58,840 --> 00:02:01,380 We're going to kind of do an interesting talk today. 25 00:02:01,460 --> 00:02:02,800 We're going to kind of pass this back and forth. 26 00:02:03,060 --> 00:02:04,300 Just a little background on me. 27 00:02:05,160 --> 00:02:10,120 I'm the founder of Whetstone Technologies and now the founder of Python Forensics that I founded about a year ago. 28 00:02:10,420 --> 00:02:14,560 We're going to talk a little bit about Python today and how we're going to use it to mask our behavior on the net. 29 00:02:15,680 --> 00:02:20,500 Published several books on the subject of data hiding, as Mike mentioned, that we co-authored together. 30 00:02:20,680 --> 00:02:24,000 Mike was nice enough to offer me a spot on that book. 31 00:02:24,000 --> 00:02:25,720 And I think it came out really, really well. 32 00:02:26,000 --> 00:02:29,520 I published a book called Python Forensics about a year ago. 33 00:02:29,700 --> 00:02:35,360 And just a couple months ago, the Passive Python Network Macking book came out, all available from Singers. 34 00:02:35,580 --> 00:02:38,940 I also teach in the Cybersecurity Graduate Program at Utica College. 35 00:02:39,140 --> 00:02:42,720 And I teach in the Digital Forensic Graduate Program at Champlain College. 36 00:02:42,960 --> 00:02:44,460 So both great programs. 37 00:02:44,600 --> 00:02:50,120 If you're interested in any of those areas, I welcome you to join us. 38 00:02:51,040 --> 00:02:53,280 Thanks, Chet. 39 00:02:55,860 --> 00:02:58,320 So I don't usually like to talk too much about myself. 40 00:02:58,480 --> 00:03:08,620 But as Chet mentioned, we spent a lot of time doing a ton of organic research, kind of cutting-edge, leading-edge type research to incorporate into our data hiding book. 41 00:03:08,720 --> 00:03:13,700 We really didn't want to regurgitate stuff other people had done in steganography books and data hiding. 42 00:03:14,000 --> 00:03:16,020 Some of that we'll kind of enumerate today. 43 00:03:16,180 --> 00:03:22,520 For example, I'll revisit some of the Wi-Fi data hiding techniques that I did in the book. 44 00:03:22,800 --> 00:03:23,980 And then a little bit about Python. 45 00:03:23,980 --> 00:03:24,700 Both beyond that. 46 00:03:24,820 --> 00:03:32,360 And then extend that into smartwatch security and research, which has extended into hiding data on a smartwatch. 47 00:03:32,520 --> 00:03:33,900 So I'll cover that as well. 48 00:03:34,800 --> 00:03:38,020 And I do have another book coming out this fall around mobile security. 49 00:03:38,420 --> 00:03:40,840 So with that, I'll let Chet kind of take it from here. 50 00:03:40,980 --> 00:03:43,100 He's going to kind of cover what the agenda is. 51 00:03:43,260 --> 00:03:47,540 And then after that, he'll kind of get into a little background. 52 00:03:47,700 --> 00:03:51,160 We'll just set the backdrop for all the research that we're going to outline. 53 00:04:00,180 --> 00:04:00,960 Thanks, Mike. 54 00:04:03,960 --> 00:04:06,360 So this talk is about remaining covert. 55 00:04:06,580 --> 00:04:08,320 And obviously, we're all concerned about privacy. 56 00:04:08,660 --> 00:04:12,660 And I'm going to talk really briefly and quickly and give you an overview of covert communications. 57 00:04:12,980 --> 00:04:15,860 Some covert communications that was done in the past with art. 58 00:04:16,320 --> 00:04:18,340 And talk about why that was done. 59 00:04:18,480 --> 00:04:19,580 Talk about secret writing. 60 00:04:19,740 --> 00:04:22,220 Some micro dots, steganography, and jamming. 61 00:04:22,220 --> 00:04:24,240 And then I'm going to transition back to Mike. 62 00:04:24,300 --> 00:04:29,480 And then I'm going to come back and talk a little bit about the haystacking app that I built in Python. 63 00:04:29,760 --> 00:04:34,220 And then Mike's going to take off with the smartwatch stuff and the Wi-Fi protocol data hiding. 64 00:04:34,300 --> 00:04:38,720 So that's kind of just a quick agenda of what we're going to cover in this, you know, quick 45 minutes. 65 00:04:40,760 --> 00:04:41,880 So just a definition. 66 00:04:42,120 --> 00:04:43,760 I took this from the Orange Book. 67 00:04:44,500 --> 00:04:48,840 Covert communication is any communication channel that can be exploited by a process to transfer information 68 00:04:48,840 --> 00:04:51,640 in a manner that violates the system security policy. 69 00:04:52,220 --> 00:04:54,560 So basically, we all know what covert communication is. 70 00:04:54,640 --> 00:05:01,040 But it's kind of a formal definition defined by the DOD that we all kind of have lived by over the last 30 or 40 years. 71 00:05:02,560 --> 00:05:04,940 So I wanted to kind of give you an example of art. 72 00:05:05,820 --> 00:05:09,560 This is a drawing that was done back in World War II. 73 00:05:10,180 --> 00:05:16,280 And when our folks were deployed, they always wanted to get information back to their folks that were here. 74 00:05:16,700 --> 00:05:19,900 And based on that, they had to come up with a way to basically communicate that. 75 00:05:20,100 --> 00:05:22,140 So the U.S. Postal Inspection Service, 76 00:05:22,220 --> 00:05:28,620 actually set up a way to be able to stop this in order to not give away the position of troops, et cetera, as they were deployed. 77 00:05:29,200 --> 00:05:32,680 This is actually a piece of art that actually has data hidden in it. 78 00:05:32,940 --> 00:05:36,360 Anybody in the audience can quickly tell me where the data is hidden in this drawing? 79 00:05:37,360 --> 00:05:38,380 You got five seconds. 80 00:05:40,220 --> 00:05:40,620 Anybody? 81 00:05:41,420 --> 00:05:43,280 You didn't know you were going to have to participate, right? 82 00:05:43,500 --> 00:05:43,840 Okay. 83 00:05:45,740 --> 00:05:46,580 In the water? 84 00:05:46,700 --> 00:05:47,280 Is that what you said? 85 00:05:47,460 --> 00:05:48,240 Okay, good guess, no. 86 00:05:48,980 --> 00:05:49,680 Anybody else? 87 00:05:52,260 --> 00:05:52,900 On the bridge? 88 00:05:53,040 --> 00:05:54,200 On the bridge? 89 00:05:54,620 --> 00:05:55,020 Nope. 90 00:05:55,660 --> 00:05:57,740 So the – I'm going to walk out of the thing. 91 00:05:57,880 --> 00:06:01,900 The reeds on the bank of the river are actually Morse code. 92 00:06:02,760 --> 00:06:09,700 And this was a piece of art that was developed for the person that was in charge of protecting this information, Colonel Shaw. 93 00:06:09,820 --> 00:06:11,420 So you can actually read about this in the book. 94 00:06:11,640 --> 00:06:19,260 And this actually came from David Kahn's book, The Code Breakers, where he disclosed this information so you can actually detect the Morse code. 95 00:06:19,320 --> 00:06:20,600 So information can be hidden in anything. 96 00:06:20,600 --> 00:06:24,460 Not just the way we think about it today in audio files and videos, et cetera. 97 00:06:25,280 --> 00:06:30,920 So moving back even farther in history, this is where we actually think where the word steganography came from. 98 00:06:31,200 --> 00:06:32,980 This is a writing tablet of the day. 99 00:06:33,100 --> 00:06:35,840 So it kind of looks like an iPad or an Android tablet, right? 100 00:06:35,980 --> 00:06:42,380 But it's actually a wax tablet that they used to engrave the messages in the wax of the tablet. 101 00:06:42,700 --> 00:06:50,560 Well, Demartus, when he was exiled in Persia, actually used this tablet in order to engrave a message in the wood underneath the wax. 102 00:06:50,560 --> 00:06:54,420 And then sneak the tablet past the centuries. 103 00:06:54,540 --> 00:06:58,360 Because certainly if he got caught doing that, it would be probably a fate worse than death. 104 00:06:59,020 --> 00:07:02,480 So kind of moving forward a couple thousand years. 105 00:07:02,920 --> 00:07:04,860 In the modern day, we looked at micro dots. 106 00:07:05,000 --> 00:07:06,560 And micro dots were used in World War II. 107 00:07:06,640 --> 00:07:08,000 This is a modern-day micro dot. 108 00:07:08,800 --> 00:07:11,300 It's basically using synthetic information. 109 00:07:11,580 --> 00:07:13,400 And it's used in automotive and manufacturing. 110 00:07:13,660 --> 00:07:20,540 As a matter of fact, the MH370 that had crashed in the Indian Ocean has used this technology in order to encode it. 111 00:07:20,560 --> 00:07:23,020 To encode information on the parts of that particular aircraft. 112 00:07:23,200 --> 00:07:28,060 It's also encoded in parts that are associated with automotive design. 113 00:07:28,220 --> 00:07:30,700 So you can actually pull this information out with these micro dots. 114 00:07:30,840 --> 00:07:33,920 So it's no longer this big long number that they punch into it. 115 00:07:33,960 --> 00:07:35,480 They can actually place these micro dots. 116 00:07:35,580 --> 00:07:36,600 So another way to hide information. 117 00:07:39,520 --> 00:07:41,100 Just to blow that up a little bit for you. 118 00:07:42,180 --> 00:07:48,340 Obviously, moving to the modern day, we have steganography and the hiding of information in images, audio files, videos, data streams, all of that. 119 00:07:48,400 --> 00:07:49,280 We talk about that in the book. 120 00:07:49,280 --> 00:07:50,400 But this is evolving. 121 00:07:50,500 --> 00:07:59,560 Every time a new medium for communication is established, the hackers, like you guys, come up with new ways in order to hide information in those data streams. 122 00:07:59,800 --> 00:08:01,120 And it's getting more and more sophisticated. 123 00:08:01,460 --> 00:08:07,040 Not only is it getting more sophisticated, the amount of information we can hide within those media is increasing significantly. 124 00:08:07,780 --> 00:08:10,280 Now I'll move back in time a little bit to talk about jamming. 125 00:08:11,120 --> 00:08:15,000 One way to covertly communicate is to use some of the techniques that I mentioned already. 126 00:08:15,320 --> 00:08:18,480 But another way to be covert is to make sure that 127 00:08:18,480 --> 00:08:22,360 whoever is trying to listen to what you're doing is jammed. 128 00:08:22,460 --> 00:08:26,140 This is actually an ALQ-187 device that the Air Force uses. 129 00:08:26,320 --> 00:08:28,780 I had the privilege of working on this about 20 years ago. 130 00:08:29,040 --> 00:08:35,100 And this is a great device because you put this on the bottom of an aircraft and you fly it over the area that you're going to perform operations. 131 00:08:35,540 --> 00:08:36,860 And nobody can see anything. 132 00:08:37,100 --> 00:08:38,940 It basically blinds everything on the ground. 133 00:08:39,060 --> 00:08:42,340 And not only does it blind them, but it makes them so they can't communicate. 134 00:08:43,340 --> 00:08:44,580 There's good news and bad news. 135 00:08:44,680 --> 00:08:45,860 It works extremely well. 136 00:08:46,260 --> 00:08:48,460 The bad news is, in the meantime, between failures and failures, there's a lot going on. 137 00:08:48,480 --> 00:08:49,240 It takes about 20 minutes. 138 00:08:49,840 --> 00:08:54,760 Because the power and the amount of energy that is necessary in order to do this is enormous. 139 00:08:55,420 --> 00:08:58,240 So they have to get in and get out when they're using this kind of device. 140 00:08:58,680 --> 00:09:02,900 I'm going to come back in a couple of minutes and talk about some modern-day techniques of being covert. 141 00:09:03,060 --> 00:09:06,500 But I'm going to turn it over to Michael now and have him talk a little bit about smartwatch. 142 00:09:09,140 --> 00:09:09,780 Thanks, Chad. 143 00:09:13,580 --> 00:09:16,820 So I've been doing a lot of research around smartwatches 144 00:09:16,820 --> 00:09:22,220 and how secure or insecure they are in terms of your data living and breathing on those devices. 145 00:09:22,700 --> 00:09:33,740 And tomorrow I'll be doing a demo lab on a tool that I wrote in Python called SWATAC, a smartwatch attack tool. 146 00:09:35,320 --> 00:09:44,080 But due to the fact that Chad and I have been dorking around with steganography and data hiding techniques upwards for 20-plus years, 147 00:09:44,100 --> 00:09:45,660 especially in Chad's case, 148 00:09:46,220 --> 00:09:48,920 we're always looking for new and different ways to hide data. 149 00:09:49,160 --> 00:09:53,960 So as I've been poking around with my research and kind of pen testing smartwatches, 150 00:09:53,960 --> 00:09:59,480 I've also been poking around in the directories and other things on the device to see if there's new and different ways to hide data. 151 00:10:00,900 --> 00:10:08,680 So this kind of stems from some research resulting in a vulnerability that I found in one of the Samsung smartwatches. 152 00:10:08,720 --> 00:10:12,260 And let me start off by saying it was disclosed to Samsung, 153 00:10:12,420 --> 00:10:15,620 and they did a fantastic job of promptly patching it. 154 00:10:16,820 --> 00:10:22,380 But in terms of the research, one of the things about the newer Samsung smartwatches 155 00:10:22,380 --> 00:10:24,760 is that they actually run Tizen instead of Android Wear. 156 00:10:25,000 --> 00:10:31,020 And therefore, if you want to use something similar to the Android debug bridge, 157 00:10:31,260 --> 00:10:37,420 you can download the Tizen SDK and then use the, I believe it's smartwatch debug bridge, 158 00:10:37,580 --> 00:10:40,640 which is what SDV is, to actually access the device. 159 00:10:40,940 --> 00:10:45,340 So although you could use keys like you do with maybe the Samsung device, 160 00:10:45,660 --> 00:10:47,440 smartphone, tablet that you have today, 161 00:10:47,720 --> 00:10:52,740 you can use the same thing for pairing your smartwatch and copying data to and from the device. 162 00:10:53,420 --> 00:10:56,300 The vulnerability stemmed from the fact that the pin, 163 00:10:56,480 --> 00:11:01,620 although it protects the UI interface and the ability to transfer the data, 164 00:11:01,780 --> 00:11:06,480 if you connect to it over the smartwatch debug bridge, you can bypass the pin. 165 00:11:06,680 --> 00:11:09,520 And that was where the vulnerability lied. 166 00:11:09,900 --> 00:11:14,400 But like I said, that's been patched by Samsung, assuming that you've updated your smartwatch. 167 00:11:14,400 --> 00:11:16,740 Okay, so fast forward to hiding data. 168 00:11:18,060 --> 00:11:23,260 So if you go about using the smartwatch debug bridge, SDV, 169 00:11:23,460 --> 00:11:25,840 you can shell into the device. 170 00:11:26,080 --> 00:11:27,880 And there's no password required, by the way. 171 00:11:28,060 --> 00:11:32,380 And this gives you access to what you would believe to be just the media folder 172 00:11:32,380 --> 00:11:38,980 where you could copy and paste videos, pictures, forms of media, files, things like that. 173 00:11:39,160 --> 00:11:44,240 But you can navigate around the rest of the directories on the smartwatch. 174 00:11:44,400 --> 00:11:47,480 And this kind of enumerated some ways in which you could hide data, 175 00:11:47,500 --> 00:11:51,040 much in the way that you might do it on a Linux or legacy Unix platform. 176 00:11:57,080 --> 00:12:04,640 So I just took a very simplistic technique of just inserting some data in a log file 177 00:12:04,640 --> 00:12:09,360 that I was able to download from the smartwatch and then send it back up to the smartwatch, 178 00:12:09,520 --> 00:12:13,640 back into a subsequent same directory to make it look very innocuous. 179 00:12:14,400 --> 00:12:17,680 In fact, prepending a dot to the front of it to further hide it, 180 00:12:17,760 --> 00:12:21,280 if you were doing a forensic acquisition in native mode, 181 00:12:21,460 --> 00:12:24,820 it actually wouldn't suck this file down and you would completely overlook it. 182 00:12:25,000 --> 00:12:29,280 And then using the SDV push command, actually upload this to the smartwatch. 183 00:12:29,520 --> 00:12:31,740 So it gives you a lot of interesting manipulation capabilities. 184 00:12:32,380 --> 00:12:35,100 And as a result, I was able to upload it. 185 00:12:35,180 --> 00:12:39,220 You can see it here, but there are other system directories that I tried, 186 00:12:39,360 --> 00:12:42,740 and you can upload and hide data in those relevant directories, too. 187 00:12:42,880 --> 00:12:44,380 So I think there's a lot of possibilities. 188 00:12:44,400 --> 00:12:47,440 And I just wanted to share a little bit of that, 189 00:12:47,520 --> 00:12:49,400 because it was definitely fun poking around on that. 190 00:12:49,940 --> 00:12:51,780 So I'm going to pass it back over to Chet. 191 00:12:52,000 --> 00:12:55,060 He's going to go through an interesting technique called haystacking 192 00:12:55,560 --> 00:12:58,720 and some of his code through Python forensics. 193 00:12:58,840 --> 00:13:02,720 And then following that, if time permits, I'll get into beacon stuffing, 194 00:13:02,880 --> 00:13:05,640 which is related to injection and Wi-Fi packets. 195 00:13:08,820 --> 00:13:09,540 Thanks, Mike. 196 00:13:16,100 --> 00:13:17,000 So what's new? 197 00:13:17,900 --> 00:13:19,760 We talked about a lot of things going on. 198 00:13:19,800 --> 00:13:22,980 Obviously, the smartwatch stuff and the embedding in the watch is really interesting. 199 00:13:23,260 --> 00:13:25,740 Mike and I got a chance to talk about that today at lunch quite a bit. 200 00:13:26,120 --> 00:13:26,800 Quite interesting. 201 00:13:27,000 --> 00:13:29,320 But I wanted to come up with something a little bit different 202 00:13:29,320 --> 00:13:30,580 and talk a little bit about haystacking. 203 00:13:30,800 --> 00:13:31,860 And let me tell you where this came from. 204 00:13:32,280 --> 00:13:35,980 A number of years ago, when I was being interviewed about steganography 205 00:13:35,980 --> 00:13:40,480 and being used in 9-11, I made kind of a little bit of a gaffe. 206 00:13:40,680 --> 00:13:43,480 Not a Donald Trump-level gaffe, but a gaffe nonetheless. 207 00:13:44,400 --> 00:13:47,340 And the gaffe was, I referred to steganography 208 00:13:47,340 --> 00:13:50,940 and the difficulty of finding it is like finding a needle in a haystack. 209 00:13:51,860 --> 00:13:54,540 I immediately got a message from a couple of my colleagues, 210 00:13:54,760 --> 00:13:58,000 specifically Neil Johnson from George Mason University at the time. 211 00:13:58,040 --> 00:13:59,980 And he said, no, you're completely wrong. 212 00:14:00,280 --> 00:14:02,780 And I said, okay, Neil, I probably am, but why am I wrong? 213 00:14:02,980 --> 00:14:05,760 He said, because it's like trying to find a piece of straw in a haystack. 214 00:14:06,280 --> 00:14:08,680 The needle would be really easy in this particular case. 215 00:14:08,960 --> 00:14:10,800 So I wanted to talk a little bit about haystacking 216 00:14:10,800 --> 00:14:14,240 and how we can evolve it and use it in order to be able to be, 217 00:14:14,240 --> 00:14:14,800 um, private. 218 00:14:15,060 --> 00:14:17,860 So I came up with this really simple definition. 219 00:14:18,300 --> 00:14:20,600 Haystacking is the production of extraneous information, 220 00:14:20,980 --> 00:14:23,400 network traffic or communication, um, streams, 221 00:14:23,540 --> 00:14:28,200 in order to provide cover or obscure the real content of the message. 222 00:14:28,400 --> 00:14:29,780 Okay? That make sense to everybody? 223 00:14:31,700 --> 00:14:38,560 Thanks, I need two hands to do this. 224 00:14:39,100 --> 00:14:42,580 Anyway, um, I wanted to create a, uh, a simple, um, 225 00:14:43,060 --> 00:14:43,940 haystacking application. 226 00:14:44,260 --> 00:14:45,580 There's a lot of different things you could do. 227 00:14:45,860 --> 00:14:48,540 So one simple thing is you could create large numbers of 228 00:14:48,540 --> 00:14:52,640 staggoed images, audio files, movies that contain just simply random content. 229 00:14:52,980 --> 00:14:55,180 This is one of the things that we've always been concerned with. 230 00:14:55,480 --> 00:14:58,180 Um, if you look at an application like OpenPuff, 231 00:14:58,420 --> 00:15:00,300 um, it actually does some of this. 232 00:15:00,360 --> 00:15:03,780 It'll actually create fake staggoed images or fake staggoed audio files. 233 00:15:04,000 --> 00:15:07,180 So you gotta be able to now decipher which ones actually contain real content 234 00:15:07,180 --> 00:15:09,280 and which ones are just simply random data. 235 00:15:09,840 --> 00:15:12,160 So we want to be able to, uh, to do this. 236 00:15:12,580 --> 00:15:14,660 I wanted to do this a little bit differently, um, 237 00:15:14,780 --> 00:15:17,340 versus what you would traditionally think about doing this 238 00:15:17,340 --> 00:15:19,200 with an image or an audio file or a data stream. 239 00:15:19,880 --> 00:15:23,100 So what I wanted to do was use the new Raspberry Pi. 240 00:15:23,720 --> 00:15:27,420 And so what I wanted to be able to do was to, um, 241 00:15:27,560 --> 00:15:31,260 use the Raspberry Pi to, um, create extraneous network traffic 242 00:15:31,260 --> 00:15:32,940 when I was in a hotel room. 243 00:15:33,260 --> 00:15:35,480 Just to kind of play with the people at the Marriott 244 00:15:35,480 --> 00:15:37,460 because they're just kind of fun to play with. 245 00:15:37,880 --> 00:15:41,380 Anyway, so what I wanted to do was to generate randomly timed 246 00:15:41,380 --> 00:15:43,020 MAC address modifications. 247 00:15:43,620 --> 00:15:46,600 So I wanted to transition the Raspberry Pi's MAC address 248 00:15:46,600 --> 00:15:51,420 to represent a Raspberry Pi or a, um, an Apple computer 249 00:15:51,420 --> 00:15:53,580 or an HP computer or whatever I wanted it to be. 250 00:15:53,880 --> 00:15:57,200 And then I wanted to, um, identify, 251 00:15:57,420 --> 00:16:00,000 the identification of as many manufacturers as possible. 252 00:16:00,180 --> 00:16:03,080 And I would change that, um, MAC address on the device 253 00:16:03,080 --> 00:16:08,940 and then access a predefined set of websites mimicking human behavior. 254 00:16:09,300 --> 00:16:11,360 So somebody that was watching this network traffic 255 00:16:11,380 --> 00:16:14,120 would believe that actually these different devices 256 00:16:14,120 --> 00:16:14,980 were actually doing it. 257 00:16:15,020 --> 00:16:17,240 And I wanted to develop it in Python for obvious reasons. 258 00:16:17,600 --> 00:16:20,440 Um, so quick overview, um, randomly select 259 00:16:20,440 --> 00:16:24,420 from a predefined list of known, um, OUI MAC addresses. 260 00:16:24,620 --> 00:16:25,580 So we wanted it to be real. 261 00:16:25,680 --> 00:16:27,920 So we wanted this to actually come from the real standard list. 262 00:16:28,100 --> 00:16:29,760 Um, after each transition, 263 00:16:29,960 --> 00:16:32,220 I want to perform several randomly selected 264 00:16:32,220 --> 00:16:33,900 and randomly timed Google searches. 265 00:16:34,260 --> 00:16:36,480 And then change the interval of the searches 266 00:16:36,480 --> 00:16:39,420 and transition types to look again more like human behavior. 267 00:16:39,860 --> 00:16:41,900 So, um, this is the legal stuff. 268 00:16:42,120 --> 00:16:44,200 I will, um, Mike and I talked at lunch 269 00:16:44,200 --> 00:16:45,500 and the stuff that we've done, 270 00:16:45,520 --> 00:16:48,120 we'll post on the Python forensic website probably on Monday. 271 00:16:48,280 --> 00:16:49,660 So everything you're going to see here today, 272 00:16:49,700 --> 00:16:51,960 you'll be able to get, source code, et cetera, if you want it. 273 00:16:52,180 --> 00:16:54,540 Um, so don't have to try to copy down the code 274 00:16:54,540 --> 00:16:55,460 or take pictures of it. 275 00:16:55,720 --> 00:16:56,580 Um, it's here. 276 00:16:57,540 --> 00:17:00,080 So, um, just a few things you've got to import in Python 277 00:17:00,080 --> 00:17:01,080 in order to do this. 278 00:17:01,240 --> 00:17:03,320 Uh, some of the standard libraries that I'm using 279 00:17:03,320 --> 00:17:06,220 are SysOS, Logging, RandomTime, and JSON. 280 00:17:06,400 --> 00:17:07,720 That's it, very simple set. 281 00:17:08,000 --> 00:17:09,400 And then I'm using a couple of other libraries. 282 00:17:09,420 --> 00:17:10,500 A couple of third-party libraries. 283 00:17:10,860 --> 00:17:13,060 If anybody's used third-party libraries in Python, 284 00:17:13,440 --> 00:17:14,600 there's good news and bad news. 285 00:17:14,900 --> 00:17:15,860 There's thousands of them. 286 00:17:16,040 --> 00:17:17,620 And out of the thousands that you're looking for 287 00:17:17,620 --> 00:17:19,880 to do a particular thing, only a couple of them actually work. 288 00:17:20,200 --> 00:17:23,460 Um, so, um, some of the stuff that I have here actually works. 289 00:17:23,560 --> 00:17:25,300 So if you want to, uh, figure that out. 290 00:17:25,400 --> 00:17:27,180 So the first is I'm using a, um, 291 00:17:27,260 --> 00:17:28,640 a library called SpoofMac. 292 00:17:29,040 --> 00:17:30,400 It's a cross-platform library, 293 00:17:30,540 --> 00:17:32,680 so it'll run on Mac, Windows, and Linux. 294 00:17:33,000 --> 00:17:34,420 Um, so you can actually use it. 295 00:17:34,520 --> 00:17:37,680 And I'm only using, SpoofMac does a lot of different things. 296 00:17:37,940 --> 00:17:39,400 But again, with these third-party libraries, 297 00:17:39,420 --> 00:17:41,840 what you want to do is focus on the things you actually need, right? 298 00:17:41,940 --> 00:17:43,740 So I'm only going to use FindInterface 299 00:17:43,740 --> 00:17:45,100 and SetInterfaceMac. 300 00:17:45,200 --> 00:17:47,340 So I'm only going to do two things using that particular library. 301 00:17:47,660 --> 00:17:50,180 So then what I did was I created a list in Python. 302 00:17:50,460 --> 00:17:51,640 If you're not familiar with Python, 303 00:17:51,800 --> 00:17:53,700 Python is lists, dictionaries, 304 00:17:53,700 --> 00:17:55,760 and some of the built-in structures are just absolutely awesome. 305 00:17:55,940 --> 00:17:57,380 So I'm using a list to basically 306 00:17:57,380 --> 00:17:59,040 create a list of, um, Mac addresses. 307 00:17:59,400 --> 00:18:01,260 You can go into the code later and you could add 308 00:18:01,260 --> 00:18:03,400 hundreds or thousands of additional Mac addresses 309 00:18:03,400 --> 00:18:03,980 if you wanted to. 310 00:18:04,100 --> 00:18:06,060 I just wanted to create a small list that you could do. 311 00:18:06,840 --> 00:18:08,700 Second list that I wanted to create was 312 00:18:09,420 --> 00:18:10,980 the searches that I wanted to be able to do. 313 00:18:11,200 --> 00:18:12,500 Golf store stock quotes, 314 00:18:13,120 --> 00:18:15,600 MH-70 update, Donald Trump's latest gaffe, 315 00:18:15,920 --> 00:18:16,800 Hillary Clinton's emails. 316 00:18:17,060 --> 00:18:18,760 I wanted to be non-political. 317 00:18:19,460 --> 00:18:21,200 The Black Hat 2015, whatever. 318 00:18:21,400 --> 00:18:23,280 So those are the different strings I wanted to search for. 319 00:18:23,540 --> 00:18:25,600 One tip, if you're going to actually do this, 320 00:18:25,720 --> 00:18:27,380 I would suggest that you misspell 321 00:18:28,260 --> 00:18:29,200 some of the, uh, 322 00:18:29,340 --> 00:18:31,600 some of the Google searches to make it look more human. 323 00:18:31,920 --> 00:18:33,200 I thought of that after I 324 00:18:33,200 --> 00:18:33,980 put the brief together. 325 00:18:35,260 --> 00:18:37,660 So, um, just kind of the setup of the code 326 00:18:37,660 --> 00:18:38,460 is really simple. 327 00:18:39,420 --> 00:18:40,500 What I do is going to set up logging 328 00:18:40,500 --> 00:18:42,080 because I didn't want any user interface, 329 00:18:42,480 --> 00:18:43,280 right, to this. 330 00:18:43,520 --> 00:18:45,480 So I'm not having the user type anything 331 00:18:45,480 --> 00:18:46,740 or do anything or see anything, 332 00:18:46,880 --> 00:18:48,400 but I do throw everything to a log file. 333 00:18:48,560 --> 00:18:50,720 So I actually create a log file 334 00:18:50,720 --> 00:18:51,900 so that we can actually do it. 335 00:18:52,680 --> 00:18:54,820 Then what I do is I make sure that we're running as root 336 00:18:55,320 --> 00:18:56,660 here because you have to be, um, 337 00:18:56,760 --> 00:18:59,220 actually have root to do this. 338 00:18:59,320 --> 00:19:00,720 Actually, the first thing I'm doing is to make sure 339 00:19:00,720 --> 00:19:03,200 that I have an Ethernet port that I can use. 340 00:19:03,680 --> 00:19:05,920 Just so you know, the library will work 341 00:19:05,920 --> 00:19:07,800 with both wireless or wired networks. 342 00:19:09,420 --> 00:19:10,960 So again, I didn't need to get anything from the user. 343 00:19:11,220 --> 00:19:12,360 Um, so I set that up. 344 00:19:12,640 --> 00:19:15,300 Make sure that, uh, all of that 345 00:19:15,300 --> 00:19:17,640 is functioning and working so that we can do that. 346 00:19:17,840 --> 00:19:19,280 And now I'm going to actually loop through 347 00:19:19,280 --> 00:19:21,160 and perform the operations that I wanted to. 348 00:19:21,480 --> 00:19:23,380 So what I want to do first is 349 00:19:23,380 --> 00:19:24,320 to set the interface. 350 00:19:24,500 --> 00:19:27,300 So I've highlighted the important code in, uh, 351 00:19:28,100 --> 00:19:29,380 in yellow there or green, 352 00:19:29,420 --> 00:19:31,160 whatever that is. I'm color blind, by the way. 353 00:19:31,200 --> 00:19:33,020 I'm the only known steganographer that 354 00:19:33,020 --> 00:19:35,200 can't see color. Anyway, some color. 355 00:19:35,440 --> 00:19:37,580 Um, and, uh, so what I'm going to do 356 00:19:37,580 --> 00:19:39,340 is I'm going to do something really cool 357 00:19:39,420 --> 00:19:40,380 in Python, and I'm going to say, 358 00:19:40,460 --> 00:19:42,200 give me a MAC value, and I'm going to pick 359 00:19:42,200 --> 00:19:43,580 a random choice from the MAC list. 360 00:19:44,200 --> 00:19:45,780 So you don't have to write a lot of code in Python 361 00:19:45,780 --> 00:19:47,980 to do stuff, so it's just going to pull a random value 362 00:19:47,980 --> 00:19:50,520 out of the list and use that as the next MAC address. 363 00:19:50,880 --> 00:19:52,640 Then I'm going to go ahead and set the interface 364 00:19:52,640 --> 00:19:55,800 to that MAC address, and then I'm going to, um, 365 00:19:55,800 --> 00:19:57,380 do that. Actually, what I'm going to do first, 366 00:19:57,580 --> 00:19:58,920 if you notice that first line of code, 367 00:19:59,000 --> 00:20:01,140 it actually sets it to hardware address. 368 00:20:01,600 --> 00:20:03,540 So what I found with this video library 369 00:20:03,920 --> 00:20:05,580 is if you set the MAC address 370 00:20:05,580 --> 00:20:07,160 back to the original hardware, 371 00:20:07,400 --> 00:20:09,320 and then, wait a minute, wait a few seconds, 372 00:20:09,420 --> 00:20:11,000 and then set it to the new one, 373 00:20:11,100 --> 00:20:13,220 it works better. So just something I found 374 00:20:13,220 --> 00:20:15,060 in the debugging. So then I actually set 375 00:20:15,060 --> 00:20:16,120 the interface, and we're off. 376 00:20:17,560 --> 00:20:18,840 Finally, what I want to do now 377 00:20:18,840 --> 00:20:20,780 is actually go out and randomly 378 00:20:20,780 --> 00:20:22,740 Google a bunch of, um, addresses. 379 00:20:23,120 --> 00:20:25,120 And I'm actually doing that with the second 380 00:20:25,120 --> 00:20:27,120 library that I mentioned, um, that 381 00:20:27,120 --> 00:20:29,200 we're using. So, and again, all I'm going to do 382 00:20:29,200 --> 00:20:30,560 is pull a search value again 383 00:20:30,560 --> 00:20:32,440 from that set of search strings. 384 00:20:33,180 --> 00:20:34,460 I'm going to log that information, 385 00:20:34,760 --> 00:20:36,380 and then what I'm going to do is I'm going to go ahead 386 00:20:36,380 --> 00:20:38,960 and use the Ajax library in order to get 387 00:20:39,420 --> 00:20:41,040 a response. I don't care what the response is. 388 00:20:41,120 --> 00:20:42,340 I'm not going to do anything with it. 389 00:20:42,400 --> 00:20:44,240 I just want to actually create the network traffic 390 00:20:44,240 --> 00:20:46,000 to look like I actually did a Google request. 391 00:20:46,400 --> 00:20:49,220 Then I'm going to, um, go ahead 392 00:20:49,220 --> 00:20:51,560 and sleep for a random period of time. 393 00:20:51,800 --> 00:20:53,620 You can make that code more sophisticated. 394 00:20:53,900 --> 00:20:55,300 I just said two to nine seconds 395 00:20:55,300 --> 00:20:57,400 between searches, so it looks like 396 00:20:57,400 --> 00:20:58,960 it's not something that studies state. 397 00:20:59,700 --> 00:21:01,140 And, uh, and that's it. 398 00:21:01,280 --> 00:21:02,860 And then it's going to go back and do the next 399 00:21:02,860 --> 00:21:04,400 MAC address and do that. So now you can have 400 00:21:04,400 --> 00:21:06,220 this hotel room, and it'll just go out 401 00:21:06,220 --> 00:21:07,760 and bang away at these different MAC addresses, 402 00:21:09,420 --> 00:21:11,020 dozens of computers in your hotel room 403 00:21:11,020 --> 00:21:12,140 that are doing different things. 404 00:21:12,700 --> 00:21:15,680 So this is, um, just some of the MAC addresses. 405 00:21:15,760 --> 00:21:16,920 This is what you actually get displayed. 406 00:21:17,320 --> 00:21:19,120 And then this is just kind of an excerpt 407 00:21:19,120 --> 00:21:20,900 out of the log file so you can actually see 408 00:21:20,900 --> 00:21:21,820 that this actually worked. 409 00:21:22,000 --> 00:21:23,880 Um, what MAC addresses we set, 410 00:21:24,020 --> 00:21:26,120 the request that we made to Google, 411 00:21:26,260 --> 00:21:28,300 and then the response that we got. 412 00:21:28,380 --> 00:21:30,740 We had a couple of those that were there. 413 00:21:31,180 --> 00:21:33,780 So that will actually give you some cover 414 00:21:33,780 --> 00:21:35,680 in order to be able to, um, 415 00:21:35,760 --> 00:21:37,520 provide some privacy for you 416 00:21:37,520 --> 00:21:39,120 by being able to, um, 417 00:21:39,580 --> 00:21:41,480 obscure. There's no security in this, right? 418 00:21:41,520 --> 00:21:43,500 This is obscurity to basically add traffic 419 00:21:43,500 --> 00:21:45,300 so you can't identify a particular 420 00:21:45,300 --> 00:21:47,220 computer that was generating it 421 00:21:47,220 --> 00:21:48,560 because it would have an invalid MAC address. 422 00:21:48,640 --> 00:21:50,540 It'd have a valid MAC address but not the MAC address 423 00:21:50,540 --> 00:21:52,580 that was actually generating the traffic. 424 00:21:52,880 --> 00:21:54,960 Okay? Some of this thought process 425 00:21:54,960 --> 00:21:56,740 came from last year's DEF CON 426 00:21:57,230 --> 00:21:59,520 where, um, folks were looking at 427 00:21:59,520 --> 00:22:01,600 Bluetooth addresses that were on the highway 428 00:22:01,600 --> 00:22:03,380 that were calculating the distance 429 00:22:03,380 --> 00:22:05,120 and how long it was taking cars to go 430 00:22:05,120 --> 00:22:06,340 from one location to the other 431 00:22:06,340 --> 00:22:08,160 by trapping those MAC address... 432 00:22:09,420 --> 00:22:11,160 Bluetooth addresses of those devices. 433 00:22:11,300 --> 00:22:12,820 And people were concerned about the privacy 434 00:22:12,820 --> 00:22:14,240 of what else were they conducting. 435 00:22:14,620 --> 00:22:17,220 So, with that, I'm going to turn it back over 436 00:22:17,220 --> 00:22:19,240 to Mike and, uh, let him go 437 00:22:19,240 --> 00:22:20,480 into the, uh... 438 00:22:22,540 --> 00:22:31,020 Alright, I'm going to go a little 439 00:22:31,020 --> 00:22:32,140 cyborg here. Okay. 440 00:22:35,040 --> 00:22:37,300 So, um, continue 441 00:22:37,300 --> 00:22:38,860 to do research, uh, 442 00:22:39,420 --> 00:22:40,840 around covert wireless communications. 443 00:22:41,200 --> 00:22:42,900 This kind of stems from a lot of the research 444 00:22:42,900 --> 00:22:44,180 that we actually did in the book. 445 00:22:44,580 --> 00:22:47,360 And, uh, because this has extended into 446 00:22:47,360 --> 00:22:48,960 Windows 10, uh, 447 00:22:49,060 --> 00:22:50,720 I feel it'll be even more prominent. 448 00:22:51,700 --> 00:22:53,200 So, the foundation 449 00:22:53,200 --> 00:22:55,180 for this is, uh, Windows virtual 450 00:22:55,180 --> 00:22:56,680 Wi-Fi. Um, 451 00:22:57,180 --> 00:22:59,080 not to be confused with an 452 00:22:59,080 --> 00:23:01,140 ad hoc network, not to be confused 453 00:23:01,140 --> 00:23:02,640 with internet connection sharing. 454 00:23:02,880 --> 00:23:04,820 Uh, when Windows 7 was introduced, 455 00:23:05,120 --> 00:23:07,360 uh, provided the ability to create, 456 00:23:07,540 --> 00:23:09,140 um, virtual Wi-Fi. 457 00:23:09,420 --> 00:23:11,200 So, it lives and breathes just like a physical 458 00:23:11,200 --> 00:23:13,120 access point and has all the attributes 459 00:23:13,120 --> 00:23:15,260 and characteristics of a physical AP. 460 00:23:15,840 --> 00:23:17,160 And then, um, 461 00:23:17,360 --> 00:23:19,240 further into the content, 462 00:23:19,380 --> 00:23:21,040 I'll talk a little bit about, uh, 463 00:23:21,160 --> 00:23:23,160 injection into, uh, wireless 464 00:23:23,160 --> 00:23:25,340 frames so that you can communicate data 465 00:23:25,340 --> 00:23:26,500 over a covert channel. 466 00:23:28,260 --> 00:23:29,320 Which I refer 467 00:23:29,320 --> 00:23:30,400 to as beacon stuffing. 468 00:23:32,140 --> 00:23:33,480 Couple other things to keep 469 00:23:33,480 --> 00:23:34,600 in mind, um, 470 00:23:35,260 --> 00:23:37,300 you know, Wi-Fi is predominantly layer 2. 471 00:23:37,400 --> 00:23:39,340 Management frames, uh, typically include 472 00:23:39,420 --> 00:23:39,920 clear text. 473 00:23:41,500 --> 00:23:43,060 And, uh, does provide for a nice 474 00:23:43,060 --> 00:23:45,180 covert channel. So, just to kind of 475 00:23:45,180 --> 00:23:47,120 revisit virtual Wi-Fi, this actually 476 00:23:47,120 --> 00:23:49,160 came out in Windows 7. You can 477 00:23:49,160 --> 00:23:50,980 go to the Microsoft research 478 00:23:50,980 --> 00:23:53,020 site and download, um, 479 00:23:53,120 --> 00:23:55,340 the code, uh, and put it on your 480 00:23:55,340 --> 00:23:57,280 Windows XP machine. And it's in 481 00:23:57,280 --> 00:23:59,220 Windows 7, 8, and now 10 482 00:23:59,220 --> 00:24:01,220 as well. So, in 483 00:24:01,220 --> 00:24:03,440 doing this, as I mentioned, you can create an actual 484 00:24:03,440 --> 00:24:05,400 virtual, um, access point. 485 00:24:05,640 --> 00:24:06,880 Well, why would you want to do that? 486 00:24:06,880 --> 00:24:08,840 Well, it can provide you the 487 00:24:08,840 --> 00:24:10,720 ability for a back-end 488 00:24:10,720 --> 00:24:12,720 covert channel. If you're on an 489 00:24:12,720 --> 00:24:14,620 enterprise network and you're 490 00:24:14,620 --> 00:24:16,640 connected to the Wi-Fi using 491 00:24:16,640 --> 00:24:17,900 the same physical, 492 00:24:18,600 --> 00:24:20,320 uh, wireless card, 493 00:24:20,500 --> 00:24:22,800 you can also have that behave 494 00:24:22,800 --> 00:24:24,740 like an access point and 495 00:24:24,740 --> 00:24:26,740 have somebody else come in, connect 496 00:24:26,740 --> 00:24:28,740 to that virtual Wi-Fi 497 00:24:28,740 --> 00:24:30,440 and into the corporate network 498 00:24:30,440 --> 00:24:32,480 and use that as a really nice mechanism 499 00:24:32,480 --> 00:24:34,780 to exfiltrate data. We cover that 500 00:24:34,780 --> 00:24:36,780 in a lot more detail in the data hiding book 501 00:24:36,880 --> 00:24:38,540 with a nice use case. But, 502 00:24:39,100 --> 00:24:40,860 setting this up is fairly trivial. 503 00:24:41,140 --> 00:24:42,900 Um, you can do it right from the 504 00:24:42,900 --> 00:24:44,740 command line. Um, this is a 505 00:24:44,740 --> 00:24:46,440 screenshot of that with, uh, 506 00:24:46,520 --> 00:24:48,660 simply three commands. You can set 507 00:24:48,660 --> 00:24:50,660 this up. You can define how you want 508 00:24:50,660 --> 00:24:52,820 this virtual Wi-Fi configured in terms of 509 00:24:52,820 --> 00:24:54,740 the SSID, um, 510 00:24:54,840 --> 00:24:56,740 if you want to hide that, if you want 511 00:24:56,740 --> 00:24:58,740 to, uh, use encryption or not, 512 00:24:58,900 --> 00:25:00,700 and basically how you want to set 513 00:25:00,700 --> 00:25:01,060 that up. 514 00:25:03,980 --> 00:25:04,820 In terms of 515 00:25:04,820 --> 00:25:06,460 the threat to the network, it could be on the 516 00:25:06,880 --> 00:25:08,140 wireless or the wired side. 517 00:25:08,460 --> 00:25:10,540 So let's say that you're physically connected 518 00:25:10,540 --> 00:25:12,460 to an enterprise network 519 00:25:12,460 --> 00:25:14,880 on the wired side. You fire up 520 00:25:14,880 --> 00:25:16,540 your wireless card, you set up the 521 00:25:16,540 --> 00:25:18,640 virtual Wi-Fi, and you now have your back 522 00:25:18,640 --> 00:25:20,660 channel. Certainly this might be a little bit 523 00:25:20,660 --> 00:25:22,500 more in line with internet connection 524 00:25:22,500 --> 00:25:24,560 sharing or a bridge, if you will, 525 00:25:24,680 --> 00:25:25,980 from wired to wireless. 526 00:25:26,340 --> 00:25:28,540 But what really gets interesting is that 527 00:25:28,540 --> 00:25:30,700 when you're connected to your secure 528 00:25:30,700 --> 00:25:32,800 Wi-Fi network, you can 529 00:25:32,800 --> 00:25:34,800 also, as a client, you can 530 00:25:34,800 --> 00:25:36,340 also use that same physical 531 00:25:37,500 --> 00:25:38,500 network card, 532 00:25:38,660 --> 00:25:40,620 wireless card, to actually set up this 533 00:25:40,620 --> 00:25:42,840 virtual Wi-Fi and allow other devices 534 00:25:42,840 --> 00:25:44,920 to connect in with no 535 00:25:44,920 --> 00:25:46,800 authentication whatsoever, if that's how 536 00:25:46,800 --> 00:25:48,940 you set it up, into your encrypted 537 00:25:48,940 --> 00:25:50,240 and secure Wi-Fi network. 538 00:25:50,560 --> 00:25:52,820 Very, very easy to do, supported on 539 00:25:52,820 --> 00:25:54,720 all versions of Windows 7, 8, and 540 00:25:54,720 --> 00:25:55,200 Windows 10. 541 00:26:00,800 --> 00:26:01,660 Identifying this 542 00:26:02,680 --> 00:26:03,700 is commonly 543 00:26:03,700 --> 00:26:06,660 an oversight for most 544 00:26:06,880 --> 00:26:07,420 organizations. 545 00:26:09,240 --> 00:26:10,460 It'll actually appear 546 00:26:10,460 --> 00:26:12,720 as if, you know, you have a client and 547 00:26:12,720 --> 00:26:14,780 there's an AP, but it doesn't appear 548 00:26:14,780 --> 00:26:16,440 that it's coming from the same device. 549 00:26:16,620 --> 00:26:18,680 At least, you know, from a 550 00:26:18,680 --> 00:26:20,880 surface level perspective. So it's 551 00:26:20,880 --> 00:26:22,720 kind of difficult to determine that, hey, 552 00:26:22,760 --> 00:26:24,540 is this one of our PCs that's 553 00:26:24,540 --> 00:26:26,780 actually got a virtual Wi-Fi 554 00:26:26,780 --> 00:26:28,700 or virtual access point on it that 555 00:26:28,700 --> 00:26:30,480 has people connecting to it and 556 00:26:30,480 --> 00:26:32,200 exfiltrating data out of my network? 557 00:26:35,500 --> 00:26:36,480 But identifying 558 00:26:36,880 --> 00:26:38,760 it, you can really start to peel 559 00:26:38,760 --> 00:26:40,260 the onion back if you fire up 560 00:26:40,260 --> 00:26:42,360 Wireshark and you look at the Wi-Fi packets. 561 00:26:42,660 --> 00:26:44,620 In this case, you can see the beacon frames, 562 00:26:44,780 --> 00:26:46,240 but you can see the probe responses 563 00:26:46,780 --> 00:26:48,660 and the probe requests coming 564 00:26:48,660 --> 00:26:50,840 from the same physical wireless 565 00:26:50,840 --> 00:26:52,580 card. And that's a sure 566 00:26:52,580 --> 00:26:54,680 fuck-tail sign that, why is this 567 00:26:54,680 --> 00:26:56,860 device behaving both like an access point 568 00:26:56,860 --> 00:26:58,800 and as a client? Certainly 569 00:26:58,800 --> 00:27:00,060 shouldn't be doing that, right? 570 00:27:06,880 --> 00:27:08,460 So you would have the laptop 571 00:27:08,460 --> 00:27:10,020 send a probe request, 572 00:27:10,440 --> 00:27:12,820 the virtual Wi-Fi, Windows 7, 8 573 00:27:12,820 --> 00:27:14,700 or 10 respond to the probe response, 574 00:27:15,240 --> 00:27:16,800 and it does provide for 575 00:27:16,800 --> 00:27:18,660 network access channelation, 576 00:27:18,800 --> 00:27:20,500 so therefore it will give you an IP address 577 00:27:20,500 --> 00:27:22,740 and then allow you Layer 3 access 578 00:27:22,740 --> 00:27:23,900 and into the network. 579 00:27:24,700 --> 00:27:26,280 Makes for a nice covert channel. 580 00:27:30,740 --> 00:27:32,720 And now you can do it in Macs as well. 581 00:27:35,820 --> 00:27:36,700 So taking 582 00:27:36,700 --> 00:27:38,540 a step further, kind of 583 00:27:38,540 --> 00:27:40,620 peeled the onion back and took a look at a lot 584 00:27:40,620 --> 00:27:42,300 of the different types of Wi-Fi frames. 585 00:27:46,260 --> 00:27:47,900 Some of this kind of stemmed from 586 00:27:47,900 --> 00:27:50,240 research that Microsoft actually did, 587 00:27:50,800 --> 00:27:52,800 which I think a lot of people would be surprised 588 00:27:52,800 --> 00:27:54,180 to actually do some pretty good research. 589 00:27:55,180 --> 00:27:56,460 The idea behind it, 590 00:27:56,500 --> 00:27:57,800 which actually predated Apple 591 00:27:57,800 --> 00:28:00,460 and what they do with some of the Bluetooth and stuff, 592 00:28:00,580 --> 00:28:02,600 actually predates them by, think about 593 00:28:02,720 --> 00:28:03,940 six or seven years, 594 00:28:04,160 --> 00:28:06,480 was the ability to kind of send ads via Wi-Fi. 595 00:28:06,580 --> 00:28:08,700 So if you had your Wi-Fi card on, 596 00:28:08,800 --> 00:28:10,540 on whatever type of device 597 00:28:10,540 --> 00:28:12,680 you had, you wandered into your local 598 00:28:12,680 --> 00:28:14,520 retail store, they would detect 599 00:28:14,520 --> 00:28:16,300 you're there, you might have their 600 00:28:16,300 --> 00:28:17,860 app that you downloaded, 601 00:28:18,100 --> 00:28:19,820 and that would allow them to determine, 602 00:28:19,960 --> 00:28:22,400 hey, Mike's in the store, I'm going to send him 603 00:28:22,400 --> 00:28:24,000 a one-time use ad 604 00:28:24,000 --> 00:28:26,520 or discount for the next hour. 605 00:28:26,680 --> 00:28:28,280 And then boom, you would get some kind of 606 00:28:28,280 --> 00:28:30,500 notification or something else 607 00:28:30,500 --> 00:28:32,260 on your phone to use that coupon. 608 00:28:33,800 --> 00:28:36,980 But it can also be used in a covert way. 609 00:28:37,660 --> 00:28:39,460 So what we're talking about here is 610 00:28:39,460 --> 00:28:41,620 if you take a look at the actual frame, 611 00:28:41,880 --> 00:28:43,360 there's a lot of fields here. 612 00:28:43,500 --> 00:28:44,900 And one of them is the information, 613 00:28:45,220 --> 00:28:47,140 some people call it informational element, 614 00:28:47,440 --> 00:28:49,540 which consists of 256 bytes. 615 00:28:49,820 --> 00:28:52,060 This is actually provided optionally 616 00:28:52,060 --> 00:28:54,260 to the vendor if they want to use it. 617 00:28:54,400 --> 00:28:55,300 And in many cases, 618 00:28:55,300 --> 00:28:56,400 it's either not used 619 00:28:56,400 --> 00:28:59,060 or the full extent of the 256 bytes 620 00:28:59,060 --> 00:28:59,940 are not used. 621 00:29:00,200 --> 00:29:02,000 So realistically, you have about 622 00:29:02,000 --> 00:29:02,700 256 bytes on your phone. 623 00:29:04,520 --> 00:29:07,300 And you can actually inject data in it 624 00:29:07,300 --> 00:29:09,100 and have this communicated out. 625 00:29:09,320 --> 00:29:11,140 So kind of automated this in a lab, 626 00:29:11,280 --> 00:29:13,840 had a DDWRT wireless access point 627 00:29:13,840 --> 00:29:15,620 and kind of some automated code 628 00:29:15,620 --> 00:29:17,860 that was persistently injecting this 629 00:29:17,860 --> 00:29:20,080 into each one of these beacons. 630 00:29:20,200 --> 00:29:22,140 And each one contained a partial 631 00:29:22,140 --> 00:29:23,700 of the actual message, 632 00:29:23,780 --> 00:29:25,260 such that when you received 633 00:29:25,260 --> 00:29:26,840 all the relevant beacon packets, 634 00:29:27,180 --> 00:29:28,360 you could piecemeal together 635 00:29:28,360 --> 00:29:29,620 that actual message. 636 00:29:29,900 --> 00:29:31,460 So while most people are wandering by, 637 00:29:31,560 --> 00:29:32,420 they see an access point, 638 00:29:32,720 --> 00:29:33,440 they connect to it, 639 00:29:33,460 --> 00:29:34,940 it seems very innocuous, 640 00:29:35,140 --> 00:29:36,920 to the right person in the know, 641 00:29:37,080 --> 00:29:39,040 they would be collecting the beacon packets 642 00:29:39,040 --> 00:29:41,940 and obtaining a hidden message from it. 643 00:29:45,680 --> 00:29:46,240 Furthermore, 644 00:29:47,820 --> 00:29:49,340 by doing this, 645 00:29:49,380 --> 00:29:51,400 we kind of also created 646 00:29:51,400 --> 00:29:52,800 like a PCAP file, 647 00:29:52,940 --> 00:29:55,600 we're able to replay using AirPlay NG 648 00:29:55,600 --> 00:29:57,580 and transmit it from 649 00:29:57,580 --> 00:29:59,320 one device to another. 650 00:30:02,720 --> 00:30:04,580 And then this breaks down for you 651 00:30:04,580 --> 00:30:06,340 kind of what those packets look like 652 00:30:06,340 --> 00:30:07,960 and you can see here 653 00:30:07,960 --> 00:30:09,980 in the IE field 654 00:30:10,500 --> 00:30:11,680 some hidden data 655 00:30:11,680 --> 00:30:14,580 as it's broadcasting or sending these beacon frames. 656 00:30:22,220 --> 00:30:24,300 So I kind of refer to this as 657 00:30:24,300 --> 00:30:26,240 stego stuffing and I cover it in more detail 658 00:30:26,240 --> 00:30:28,080 in the book, but it provides for a nice 659 00:30:28,080 --> 00:30:29,980 wireless medium for hidden messages 660 00:30:29,980 --> 00:30:32,360 and even maybe smaller things, such as 661 00:30:32,720 --> 00:30:34,440 combination or other interesting data. 662 00:30:34,660 --> 00:30:36,240 So if somebody's coming by, 663 00:30:36,440 --> 00:30:38,620 you could just be repeating that same beacon 664 00:30:38,620 --> 00:30:40,320 over and over or that same message 665 00:30:40,320 --> 00:30:41,900 hidden in the information element field 666 00:30:41,900 --> 00:30:43,880 and then they could obtain that information. 667 00:30:57,640 --> 00:30:58,120 So, 668 00:30:58,660 --> 00:31:00,540 was there anything else you wanted to comment 669 00:31:00,540 --> 00:31:01,700 on, Chet? Okay. 670 00:31:02,720 --> 00:31:05,020 So yeah, we'll go ahead and open it up for Q&A. 671 00:31:05,540 --> 00:31:06,900 If you want to bring up 672 00:31:06,900 --> 00:31:08,960 a piece of paper with your name 673 00:31:08,960 --> 00:31:10,400 or something on it and throw it in the basket, 674 00:31:10,480 --> 00:31:11,840 we'll do a raffle in a few minutes 675 00:31:11,840 --> 00:31:12,900 for the data hiding book. 676 00:31:13,820 --> 00:31:16,380 Within the book itself, we cover a lot more 677 00:31:16,380 --> 00:31:18,460 details around hiding in 678 00:31:18,460 --> 00:31:20,140 VMs or virtual machines, 679 00:31:21,160 --> 00:31:22,480 how to hide in 680 00:31:23,180 --> 00:31:23,980 mobile apps, 681 00:31:24,480 --> 00:31:26,380 and a lot of other techniques as well. 682 00:31:28,620 --> 00:31:29,820 Anybody have any questions? 683 00:31:34,400 --> 00:31:35,440 Getting any good gold 684 00:31:35,440 --> 00:31:36,180 nuggets out of that? 685 00:31:37,580 --> 00:31:37,900 Cool. 686 00:31:38,960 --> 00:31:40,340 Well, we'll hang out for a few minutes 687 00:31:40,340 --> 00:31:41,820 if you guys have any questions and then 688 00:31:41,820 --> 00:31:44,000 we'll go ahead and raffle off a copy of the book. 689 00:31:44,040 --> 00:31:44,860 But thanks for coming by. 690 00:31:44,900 --> 00:31:45,740 Hope you guys enjoyed it.