1 00:00:05,020 --> 00:00:08,880 All right, and this is the network defense room, in case any of you guys are lost. 2 00:00:12,020 --> 00:00:14,380 All right, I'll wait a couple minutes and let everyone filter on in. 3 00:00:22,800 --> 00:00:24,040 All right, I'll go ahead and get started. 4 00:00:24,820 --> 00:00:25,620 I'm Drew Hintz. 5 00:00:26,420 --> 00:00:29,540 I'm going to be presenting on covert channels and TCP and IP headers. 6 00:00:30,020 --> 00:00:31,440 My email address is up there. 7 00:00:31,480 --> 00:00:33,020 Feel free to email me with any questions. 8 00:00:33,600 --> 00:00:36,040 My website is up there, pretty easy to move. 9 00:00:36,160 --> 00:00:38,920 It's go.new, like the pronunciation for GNU. 10 00:00:40,000 --> 00:00:41,320 So go ahead and get started. 11 00:00:41,900 --> 00:00:44,580 A brief overview of what I'm going to be talking about today. 12 00:00:45,460 --> 00:00:46,800 First of all, who are you? 13 00:00:47,300 --> 00:00:50,940 Why might you have a need for covert channels now or at some point in the future? 14 00:00:51,500 --> 00:00:52,200 Who are they? 15 00:00:52,260 --> 00:00:53,100 Who are your adversaries? 16 00:00:54,000 --> 00:00:56,880 Who are you trying to avoid by using them? 17 00:00:57,280 --> 00:00:59,200 I'm going to give a few quick definitions, 18 00:00:59,300 --> 00:00:59,980 talk about... 19 00:01:00,000 --> 00:01:03,060 a couple different classifications of covert channels. 20 00:01:04,160 --> 00:01:09,020 Then I'm going to go into an analysis of a few covert channels in TCP and IP headers. 21 00:01:09,680 --> 00:01:14,700 Then I'm going to talk briefly about an attack against a timestamp covert channel 22 00:01:14,700 --> 00:01:16,880 and how you can detect that it's being used. 23 00:01:17,320 --> 00:01:21,320 Then I'm going to talk briefly about detecting and preventing covert channels, 24 00:01:21,500 --> 00:01:25,460 as if you're someone that didn't want this hidden path of communication in your network. 25 00:01:25,940 --> 00:01:29,020 And then I'm going to go ahead and talk a little bit about a tool that I'm going to be releasing 26 00:01:29,500 --> 00:01:29,980 today. 27 00:01:30,000 --> 00:01:36,040 That lets you, using Linux, use all of these, or use some of these covert channels to actually 28 00:01:36,040 --> 00:01:37,040 communicate and send data. 29 00:01:38,380 --> 00:01:40,220 So first of all, who are you? 30 00:01:40,280 --> 00:01:42,360 Why might you actually care about covert channels? 31 00:01:42,460 --> 00:01:44,940 Why might you actually use them at some point? 32 00:01:45,840 --> 00:01:47,900 So you say, well, I need to communicate securely. 33 00:01:48,000 --> 00:01:48,760 I'll just encrypt everything. 34 00:01:49,200 --> 00:01:50,720 You know, you just sort of apply cryptography. 35 00:01:51,260 --> 00:01:51,880 Everything's great. 36 00:01:52,340 --> 00:01:54,080 But sometimes that's not the complete solution. 37 00:01:54,520 --> 00:01:58,520 Maybe encryption's either outlawed or maybe there's mandatory key escrow. 38 00:01:58,900 --> 00:01:59,980 And if you don't know what that is, you don't know what it is. 39 00:01:59,980 --> 00:02:03,580 What a mandatory key escrow is, it's where you have to give a third party or give someone 40 00:02:03,580 --> 00:02:08,000 a copy of your private keys so that they can encrypt your information if they have to do 41 00:02:08,000 --> 00:02:09,100 an investigation of some sort. 42 00:02:10,320 --> 00:02:13,380 There was some talk of this in the U.S. with Clipper and Forteza and all sorts of 43 00:02:13,380 --> 00:02:13,800 fun stuff. 44 00:02:14,220 --> 00:02:19,460 In the U.K., even, I guess a few years ago, voted down some mandatory key escrow stuff. 45 00:02:20,060 --> 00:02:24,920 But even still to this day, if, for example, the police were to capture your hard drive, 46 00:02:25,000 --> 00:02:29,280 they could subpoena your keys from you in order to make you turn them over so that they 47 00:02:29,280 --> 00:02:30,100 could see what was on there. 48 00:02:30,980 --> 00:02:34,620 And also in other situations, in other form of covert channels, you might not want to 49 00:02:34,620 --> 00:02:36,280 let anyone know that you're communicating with someone. 50 00:02:36,700 --> 00:02:40,460 For example, if you're in jail and you, if you're in China and you want to communicate 51 00:02:40,460 --> 00:02:43,820 with some known dissidents and you knew the government was watching these dissidents and 52 00:02:43,820 --> 00:02:48,080 looking for who they're communicating with or who they wanted to watch, then you probably 53 00:02:48,080 --> 00:02:50,360 wouldn't want to let them know that you wanted to communicate with them. 54 00:02:50,900 --> 00:02:54,400 Other things, your employer might not want you going to certain websites or might not 55 00:02:54,400 --> 00:02:55,700 want you talking to certain people. 56 00:02:56,840 --> 00:03:01,460 And also, say you were some sort of evil hacksaw and you wanted to maliciously control some 57 00:03:01,460 --> 00:03:05,780 Trojans or some DDoS tools or something like that, you wouldn't want to let people know 58 00:03:05,780 --> 00:03:09,020 that you were the one controlling it, so you'd want to obscure your path of communication 59 00:03:09,020 --> 00:03:09,660 with them somehow. 60 00:03:12,240 --> 00:03:13,360 And so now, what are you up against? 61 00:03:14,020 --> 00:03:17,420 Well, first of all, probably just a casual observer. 62 00:03:17,760 --> 00:03:20,860 Maybe someone who's trying to watch everyone, someone who has some sort of IDS. 63 00:03:21,160 --> 00:03:22,900 Maybe this is your network admin at work. 64 00:03:23,140 --> 00:03:25,640 Maybe it's the government watching everyone's traffic out there. 65 00:03:25,640 --> 00:03:26,000 Who knows? 66 00:03:26,680 --> 00:03:31,300 But probably the system that they would use is some sort of automated system that would 67 00:03:31,900 --> 00:03:36,720 look for keywords, similar to maybe a signature-based intrusion detection system, something like 68 00:03:36,720 --> 00:03:39,640 that, looking for sort of weird behavior traffic that was easy to detect. 69 00:03:40,940 --> 00:03:45,320 In this sort of scenario, they would probably only be able to keep a very minimal state 70 00:03:45,780 --> 00:03:46,680 on what was going on. 71 00:03:46,800 --> 00:03:50,760 They might be able to keep state on your individual TCP connection, but not your past 72 00:03:50,760 --> 00:03:55,120 thousand TCP connections, and probably not even that much information on you individually. 73 00:03:57,220 --> 00:03:59,020 However, maybe you're up against a dedicated observer. 74 00:03:59,800 --> 00:04:03,020 Maybe someone is honing in on you, and they're watching you specifically. 75 00:04:04,000 --> 00:04:08,040 Maybe, as an example before, you are one of these dissidents that's being watched by 76 00:04:08,040 --> 00:04:10,200 a government or something, and they want to see everything that you're doing and recording 77 00:04:10,200 --> 00:04:13,920 every packet that you're sending out, every bit, and they're analyzing as much as they 78 00:04:13,920 --> 00:04:14,120 can. 79 00:04:14,140 --> 00:04:16,940 They have a team of people looking at it, and yet you still want to be able to evade 80 00:04:16,940 --> 00:04:17,120 them. 81 00:04:17,920 --> 00:04:18,660 To evade them. 82 00:04:20,060 --> 00:04:22,920 In this sort of scenario, they have a lot of resources, and they can watch everything. 83 00:04:25,300 --> 00:04:25,620 So... 84 00:04:25,640 --> 00:04:30,320 So, going along with the two ideas, or with the idea of what you're up against, is how 85 00:04:30,320 --> 00:04:31,620 much protection do you actually need? 86 00:04:32,880 --> 00:04:36,500 You could perhaps probably be semi-covert and try to fool a casual observer. 87 00:04:37,020 --> 00:04:41,500 You could use unusual traffic that, if they looked at it, they would notice it was weird, 88 00:04:41,600 --> 00:04:43,000 but hopefully they're not going to look at it. 89 00:04:43,140 --> 00:04:47,180 Hopefully they're only going to look at what's pre-dyed and some real secure that they go 90 00:04:47,180 --> 00:04:47,580 and buy. 91 00:04:49,300 --> 00:04:54,240 And doing this would require just a low to moderate amount of work on the behalf of someone 92 00:04:54,240 --> 00:04:55,620 trying to find out if you're using the right data. 93 00:04:55,620 --> 00:04:55,740 At that point, they just wanna do it. 94 00:04:55,740 --> 00:04:56,060 And maybe they just wanna go off and do it, because you're using this channel. 95 00:04:57,920 --> 00:04:59,720 And so now a truly . 96 00:05:02,180 --> 00:05:07,320 Theoretically, it would have been really difficult for anyone to detect that you were 97 00:05:07,320 --> 00:05:07,740 using it. 98 00:05:11,700 --> 00:05:16,160 Now, this is a model you might be using, even if they had read all the covert channel 99 00:05:16,160 --> 00:05:18,380 papers out there and had implementations of all the . 100 00:05:19,240 --> 00:05:24,540 You're asking it, can be pretty much theoretical underlying cryptography below it. 101 00:05:24,640 --> 00:05:25,600 And hopefully they're able to understand what's going on. 102 00:05:25,620 --> 00:05:27,420 they can't do that, and say they could even 103 00:05:27,420 --> 00:05:29,440 break the cryptography, they would have to know 104 00:05:29,440 --> 00:05:31,340 where to look for the cryptography to throw it through their big 105 00:05:31,340 --> 00:05:32,780 cracking machines and try to crack it. 106 00:05:34,300 --> 00:05:35,520 So, all of this, so wait, 107 00:05:35,540 --> 00:05:35,900 what is it? 108 00:05:38,340 --> 00:05:39,300 It's dropping a microphone. 109 00:05:42,320 --> 00:05:42,960 Alright, so... 110 00:05:48,120 --> 00:05:49,120 Can you guys still hear me? 111 00:05:50,140 --> 00:05:50,460 No. 112 00:05:52,180 --> 00:05:53,420 Probably because it got turned off. 113 00:05:54,560 --> 00:05:55,200 Is that better? 114 00:05:55,720 --> 00:05:56,500 A little bit? 115 00:05:57,140 --> 00:05:57,580 No? 116 00:06:00,620 --> 00:06:01,460 Something like that? 117 00:06:03,940 --> 00:06:04,840 Does that mean better? 118 00:06:05,680 --> 00:06:06,760 Better? Alright. 119 00:06:08,060 --> 00:06:09,580 So, what is a covert channel 120 00:06:09,580 --> 00:06:11,440 exactly? I'm talking about 121 00:06:11,440 --> 00:06:12,840 why you might need them, but what are they? 122 00:06:13,300 --> 00:06:15,600 So, kind of two ways that I've kind of classified them 123 00:06:16,580 --> 00:06:17,460 is communicating 124 00:06:17,460 --> 00:06:18,960 extra information to a host 125 00:06:19,780 --> 00:06:21,620 when you're allowed to communicate with that host. 126 00:06:21,980 --> 00:06:23,740 Say you're allowed to go to, 127 00:06:23,820 --> 00:06:25,420 you're allowed to talk to your friend by 128 00:06:26,520 --> 00:06:27,680 but everything has to be 129 00:06:27,680 --> 00:06:29,300 in plain text and people are allowed to watch you, 130 00:06:29,320 --> 00:06:31,100 but you want to send them something secret. 131 00:06:31,900 --> 00:06:32,940 Another type is 132 00:06:32,940 --> 00:06:35,240 hiding the fact that you're even communicating with a host. 133 00:06:35,500 --> 00:06:37,100 This would be examples like if you were 134 00:06:37,920 --> 00:06:38,280 controlling 135 00:06:40,000 --> 00:06:41,460 a group of distributed 136 00:06:41,980 --> 00:06:43,560 Trojans or something like that and you didn't want anyone 137 00:06:43,560 --> 00:06:45,140 to be able to trace you back to that communication. 138 00:06:46,780 --> 00:06:47,420 So now first 139 00:06:47,420 --> 00:06:49,640 we'll get extra communication to a host. 140 00:06:50,760 --> 00:06:51,700 This is when you want 141 00:06:51,700 --> 00:06:53,800 to hide the fact perhaps that you're encrypting 142 00:06:53,800 --> 00:06:55,320 data because if you're allowed to communicate with them, 143 00:06:55,320 --> 00:06:56,540 you could just send them the encrypted data. 144 00:06:57,120 --> 00:06:58,500 But let's say you're not allowed to. 145 00:06:58,600 --> 00:07:00,660 If you don't want Kioskro to come into play 146 00:07:00,660 --> 00:07:02,880 or it's outlawed or it would raise too many eyebrows. 147 00:07:04,140 --> 00:07:08,160 So basically what you do is you send them some sort of normal data. 148 00:07:08,280 --> 00:07:11,520 Like you would normally send Bob some FTP file or something, 149 00:07:11,660 --> 00:07:15,440 but then you subtly alter it or you subtly alter parts of it 150 00:07:15,840 --> 00:07:19,320 so that there's some sort of covert message going outbound in the traffic. 151 00:07:19,720 --> 00:07:22,100 The receiver then grabs the traffic as normal. 152 00:07:22,220 --> 00:07:23,160 It looks like normal traffic. 153 00:07:23,320 --> 00:07:24,820 You can even use it as he normally would. 154 00:07:25,400 --> 00:07:29,140 And then analyzes the traffic and then pulls the message out of there. 155 00:07:29,560 --> 00:07:31,360 So in this case, if someone were looking at it, 156 00:07:31,400 --> 00:07:35,340 hopefully a casual observer or some sort of observer would just see a normal 157 00:07:35,340 --> 00:07:37,680 communication going on, some sort of daily thing you were doing anyways. 158 00:07:38,100 --> 00:07:39,500 And so they wouldn't think anything of it. 159 00:07:40,240 --> 00:07:42,340 This draws a lot of ties to steganography. 160 00:07:42,880 --> 00:07:44,120 They're kind of the same sort of thing. 161 00:07:44,880 --> 00:07:48,100 Steganography is simply the art of hiding information or something like that. 162 00:07:48,700 --> 00:07:51,380 So you could send someone, in a classic example, 163 00:07:51,520 --> 00:07:55,300 send someone a JPEG or something and then you would simply modulate your message in the world. 164 00:07:55,320 --> 00:07:58,720 So that it wouldn't actually alter the picture that you were seeing, 165 00:07:58,820 --> 00:08:02,760 at least significantly, but your message would still be encoded in there. 166 00:08:05,580 --> 00:08:08,620 So how can you find a good covert channel that you actually want to use in this manner 167 00:08:09,100 --> 00:08:10,320 for tacking on extra information? 168 00:08:10,900 --> 00:08:14,920 In everything that we do, there's always some sort of randomness that's going on. 169 00:08:15,320 --> 00:08:18,860 And you need to try to find this randomness and then replace it 170 00:08:18,860 --> 00:08:20,440 with your own carefully chosen randomness. 171 00:08:20,700 --> 00:08:24,880 For example, some random places you would look could find initial sequence numbers. 172 00:08:25,400 --> 00:08:30,000 If they're good and secure against hijacking and TCP spoofing and all that stuff, 173 00:08:30,420 --> 00:08:33,340 then they should be generated randomly, or at least pretty randomly. 174 00:08:34,120 --> 00:08:36,180 Also, complex timing of network transmissions. 175 00:08:36,660 --> 00:08:40,980 It'd be pretty hard to analyze and see exactly when your kernel is going to spew out certain packets 176 00:08:40,980 --> 00:08:42,160 or when it's going to do things. 177 00:08:43,200 --> 00:08:47,080 And so you could use that as a source of randomness that you want to replace with your own data. 178 00:08:49,480 --> 00:08:53,400 And in this, the random data that you see, you're replacing with your own quote random data. 179 00:08:53,860 --> 00:08:54,860 And the random data, 180 00:08:55,320 --> 00:08:58,020 you can call it your own random data because it's encrypted. 181 00:08:59,160 --> 00:09:03,480 And a good property of encrypted data is that it's random, 182 00:09:04,480 --> 00:09:05,960 at least with typical encryption. 183 00:09:06,900 --> 00:09:09,520 So a simple example that I've kind of described. 184 00:09:10,960 --> 00:09:13,580 Say you're Alice and you want to send a secret message to Bob. 185 00:09:14,080 --> 00:09:16,540 Say periodically, say you just went on a vacation or something 186 00:09:16,540 --> 00:09:19,680 and you took a whole bunch of pictures and say you want to send them to Bob. 187 00:09:20,060 --> 00:09:23,800 So you hop on Bob's FTP server and you send him the pictures 188 00:09:23,800 --> 00:09:26,080 and Bob gets them and looks at them. 189 00:09:26,280 --> 00:09:28,500 And that's what sort of an attacker might see. 190 00:09:28,680 --> 00:09:34,040 But let's say also subtly in there is that for each TCP segment that you threw out there, 191 00:09:34,080 --> 00:09:35,520 that you threw to Bob's FTP server, 192 00:09:35,760 --> 00:09:39,820 is that you start encoding your hidden message in the padding of the TCP header. 193 00:09:41,040 --> 00:09:45,940 And an observer looking at this hopefully wouldn't notice that the padding wasn't zero 194 00:09:45,940 --> 00:09:49,600 as it normally is in a communication, but it was actually some sort of data. 195 00:09:50,100 --> 00:09:53,480 But Bob would know, hopefully you already communicated to him to record all this traffic, 196 00:09:53,480 --> 00:09:54,620 and to look at it. 197 00:09:54,680 --> 00:09:57,480 And then he would know to look for the secret message hidden in the padding. 198 00:10:01,340 --> 00:10:04,540 And so now let's talk a little bit about unseen path of communication, 199 00:10:04,820 --> 00:10:07,100 kind of traceability if you want to. 200 00:10:08,140 --> 00:10:11,460 And you use this when you don't want your association with the node to be known. 201 00:10:11,520 --> 00:10:14,320 You don't want it to be known that you're actually communicating with this host out there. 202 00:10:15,500 --> 00:10:16,820 For example, things you've already mentioned, 203 00:10:16,860 --> 00:10:19,980 if you want to communicate with a closely scrutinized node, 204 00:10:20,520 --> 00:10:22,680 someone that you don't really want to be associated with, 205 00:10:23,840 --> 00:10:25,580 if you're going to be accessing forbidden material, 206 00:10:26,040 --> 00:10:30,580 for example, say you're in some country that considers certain things dissident, 207 00:10:30,700 --> 00:10:35,080 like if you were in China during certain periods when they considered cnn.com to be dissident material, 208 00:10:35,260 --> 00:10:38,160 and so they blocked it at their firewalls, and they wouldn't want you to access it. 209 00:10:38,340 --> 00:10:39,900 But let's say you wanted to access it now, 210 00:10:40,100 --> 00:10:42,960 even though they still might consider it dissident, but they're not going to flat out block it, 211 00:10:43,700 --> 00:10:48,400 then you would want to be able to not show that there's any communication between you and CNN. 212 00:10:48,840 --> 00:10:51,200 And of course you could also use this for malicious activity 213 00:10:51,200 --> 00:10:53,460 and preventing law enforcement from doing it. 214 00:10:53,480 --> 00:10:54,740 Tracing you back or whatever you would want. 215 00:10:55,900 --> 00:10:57,280 Not that I'm advocating it or anything. 216 00:10:58,840 --> 00:11:02,980 In order to do this, you would pretty much use another node or another set of nodes 217 00:11:02,980 --> 00:11:04,800 to relay information for you. 218 00:11:04,940 --> 00:11:07,500 Perhaps these nodes know that they're relaying information for you, 219 00:11:07,520 --> 00:11:08,240 perhaps they don't. 220 00:11:08,480 --> 00:11:10,100 Perhaps they've been set up beforehand 221 00:11:10,820 --> 00:11:13,440 and purposely designed to relay information for you 222 00:11:13,440 --> 00:11:15,400 in a good and secure manner. 223 00:11:17,440 --> 00:11:19,440 So how would you look for a channel like this? 224 00:11:19,500 --> 00:11:21,120 Or what would you look for in a good channel? 225 00:11:21,200 --> 00:11:22,020 Something like this. 226 00:11:22,680 --> 00:11:25,060 If you're using a node to forward your traffic on, 227 00:11:25,220 --> 00:11:28,460 you would want to make that node pretty hard to monitor. 228 00:11:29,080 --> 00:11:30,660 For example, say you were... 229 00:11:31,380 --> 00:11:32,980 Say like a real life example or something. 230 00:11:33,040 --> 00:11:34,620 Say you were someone in the US 231 00:11:34,620 --> 00:11:37,240 and you wanted to communicate with some mafia boss in the US. 232 00:11:37,540 --> 00:11:39,700 You might send your message off to someone in Romania 233 00:11:40,120 --> 00:11:41,740 who would then hold onto it for a while 234 00:11:41,740 --> 00:11:44,320 where perhaps the police aren't as vigilant in Romania. 235 00:11:44,380 --> 00:11:45,620 They're not watching as much stuff. 236 00:11:45,840 --> 00:11:47,580 So they wouldn't be watching this guy's mail. 237 00:11:47,740 --> 00:11:50,660 Then he would take it and eventually send it back to some mafia boss in the US. 238 00:11:50,660 --> 00:11:53,900 And if the US was just able to watch the US mail, 239 00:11:54,020 --> 00:11:57,560 then they wouldn't notice that you sent some message to the mafia boss. 240 00:11:57,900 --> 00:12:00,440 And so in this case, the node would be hard to monitor 241 00:12:00,440 --> 00:12:01,500 and that the US government, 242 00:12:01,660 --> 00:12:03,860 it would be much harder for them to go and monitor this Romanian node. 243 00:12:04,680 --> 00:12:05,860 Another attribute you'd want 244 00:12:05,860 --> 00:12:09,040 is that you have to kind of trust this node that you're using. 245 00:12:09,200 --> 00:12:11,060 You trust that this person in Romania 246 00:12:11,060 --> 00:12:13,480 isn't going to go blab out to the US government 247 00:12:13,480 --> 00:12:15,160 that they're forwarding messages for you. 248 00:12:15,640 --> 00:12:17,960 And that's something that you need to be concerned with 249 00:12:17,960 --> 00:12:18,980 in the electronic world also. 250 00:12:18,980 --> 00:12:21,640 Because trust is even harder to establish there. 251 00:12:23,400 --> 00:12:24,700 And it is possible, though, 252 00:12:24,740 --> 00:12:26,200 even if all networks are being watched, 253 00:12:26,640 --> 00:12:28,420 to actually afford yourself protection. 254 00:12:29,120 --> 00:12:30,660 Not necessarily if all nodes are corrupt. 255 00:12:30,840 --> 00:12:31,460 That's another story. 256 00:12:32,240 --> 00:12:34,000 But if everything is being watched. 257 00:12:34,860 --> 00:12:36,380 And there are methods that you could do this 258 00:12:36,840 --> 00:12:37,500 using mixes. 259 00:12:37,760 --> 00:12:39,660 And basically a mix is where 260 00:12:39,660 --> 00:12:42,060 you have a whole bunch of, say, middlemen or Romanian people. 261 00:12:42,220 --> 00:12:43,580 You send it off to one of them 262 00:12:43,580 --> 00:12:45,320 and then they forward it on to someone else 263 00:12:45,320 --> 00:12:46,620 and they forward it on to someone else. 264 00:12:47,060 --> 00:12:48,620 But each time they get a letter from you, 265 00:12:48,980 --> 00:12:51,420 you also provide this service to a lot of people. 266 00:12:51,720 --> 00:12:53,860 So they receive a lot of different letters from people. 267 00:12:54,120 --> 00:12:56,540 Perhaps they build up and they wait until they have 100 letters in their hand. 268 00:12:56,880 --> 00:12:58,740 Then they take those letters, they mix them up, 269 00:12:59,460 --> 00:13:01,320 and then they send them out in a random order 270 00:13:01,320 --> 00:13:02,260 to where they're supposed to go. 271 00:13:02,720 --> 00:13:04,340 So if someone were watching that node, 272 00:13:04,520 --> 00:13:06,540 they would see that you communicated with this person, 273 00:13:06,620 --> 00:13:07,860 this middleman, this mix, 274 00:13:09,740 --> 00:13:11,280 along with 99 other people, 275 00:13:11,440 --> 00:13:14,300 and then eventually this mix communicated with 100 other people. 276 00:13:15,080 --> 00:13:16,300 And so they would be able to say, 277 00:13:16,780 --> 00:13:18,620 someone in this 100 person group 278 00:13:18,620 --> 00:13:19,600 is trying to communicate with someone else 279 00:13:19,600 --> 00:13:21,900 in this 100 target group. 280 00:13:22,400 --> 00:13:24,360 And if you had several layers of this, 281 00:13:24,520 --> 00:13:25,980 it would grow exponentially 282 00:13:25,980 --> 00:13:28,500 as to your space of different possible communications. 283 00:13:29,100 --> 00:13:30,440 If you just had five layers 284 00:13:30,440 --> 00:13:31,880 with 100 people entering each layer, 285 00:13:32,140 --> 00:13:33,840 it would get pretty complex pretty fast. 286 00:13:35,320 --> 00:13:36,120 Another idea, 287 00:13:36,340 --> 00:13:38,660 or another method that's out there, 288 00:13:38,940 --> 00:13:40,080 and by the way, the mix thing, 289 00:13:41,080 --> 00:13:42,680 this sort of thing has been implemented 290 00:13:42,680 --> 00:13:44,700 with re-mailers such as MixMinion. 291 00:13:44,920 --> 00:13:47,600 And I think Roger presented here, 292 00:13:47,600 --> 00:13:48,880 I guess yesterday or the day before, 293 00:13:49,420 --> 00:13:50,720 talking about MixMinion. 294 00:13:51,940 --> 00:13:52,860 So hopefully you went to that 295 00:13:52,860 --> 00:13:53,880 and you know what I'm talking about already 296 00:13:53,880 --> 00:13:54,640 and I'm just boring you. 297 00:13:55,700 --> 00:13:57,840 But onion routing is another method 298 00:13:57,840 --> 00:13:59,340 where basically you use encryption 299 00:14:00,060 --> 00:14:01,920 to wrap your data in multiple layers. 300 00:14:02,060 --> 00:14:03,700 And that's where the onion term comes from. 301 00:14:04,140 --> 00:14:06,120 And so you basically get a list. 302 00:14:06,220 --> 00:14:07,280 Say you have five nodes 303 00:14:07,280 --> 00:14:08,860 that you want to relay your information for. 304 00:14:09,520 --> 00:14:11,120 The final node that's going to get the data, 305 00:14:11,160 --> 00:14:13,320 you first encrypt it with their public key. 306 00:14:13,620 --> 00:14:14,780 So only they can open it. 307 00:14:14,980 --> 00:14:16,920 Then you go up one node before that, 308 00:14:16,980 --> 00:14:17,500 encrypt it, 309 00:14:17,600 --> 00:14:18,780 with that node's public key, 310 00:14:18,860 --> 00:14:20,000 and so on and so forth, 311 00:14:20,120 --> 00:14:21,320 until you have sort of these 312 00:14:21,320 --> 00:14:23,420 five shells of encryption in there. 313 00:14:23,720 --> 00:14:25,480 And each node can only remove one shell. 314 00:14:25,960 --> 00:14:27,000 And so first of all, 315 00:14:27,020 --> 00:14:28,660 you send it off to the node 316 00:14:28,660 --> 00:14:30,500 that has the key for the outermost shell. 317 00:14:31,160 --> 00:14:32,200 They then rip it off, 318 00:14:32,320 --> 00:14:33,980 and then they forward it on to the next person. 319 00:14:34,180 --> 00:14:35,200 And so on and so forth. 320 00:14:35,520 --> 00:14:36,660 And no one can actually, 321 00:14:36,920 --> 00:14:38,480 no one that gets it early on can tell 322 00:14:38,480 --> 00:14:39,980 what data you're transmitting 323 00:14:39,980 --> 00:14:41,420 or who your eventual target is. 324 00:14:41,860 --> 00:14:43,120 Whereas people towards the end 325 00:14:43,500 --> 00:14:44,980 are very far away from you 326 00:14:44,980 --> 00:14:46,960 as the originator of the information. 327 00:14:46,960 --> 00:14:49,580 So they can't trace it back if they're corrupt. 328 00:14:51,100 --> 00:14:52,860 And there's an actual project out there 329 00:14:52,860 --> 00:14:54,200 called the Onion Writing Project. 330 00:14:54,540 --> 00:14:57,420 I think it was started at some naval research labs. 331 00:14:58,100 --> 00:14:59,540 At some point it's going on. 332 00:15:00,580 --> 00:15:03,820 And also on top of sort of using nodes 333 00:15:03,820 --> 00:15:05,800 just to forward information for you, 334 00:15:05,860 --> 00:15:08,000 you could also use some of the earlier methods 335 00:15:08,000 --> 00:15:10,780 and earlier classification 336 00:15:10,780 --> 00:15:12,420 to obscure the fact that this node 337 00:15:12,420 --> 00:15:15,060 was even getting information to pass on 338 00:15:15,060 --> 00:15:15,980 or passing on information. 339 00:15:15,980 --> 00:15:17,500 In any respect. 340 00:15:20,400 --> 00:15:21,620 So an example of this, 341 00:15:21,760 --> 00:15:23,800 we kind of talked about a few real world ones. 342 00:15:24,840 --> 00:15:26,100 This is kind of a timing one. 343 00:15:26,720 --> 00:15:28,700 So say Alice and Bob are allowed to make, 344 00:15:28,760 --> 00:15:30,140 both make requests to some web server. 345 00:15:30,240 --> 00:15:31,080 Say they're in some country 346 00:15:31,860 --> 00:15:33,220 where they're heavily scrutinized 347 00:15:33,220 --> 00:15:35,020 and Alice doesn't want it to be known 348 00:15:35,020 --> 00:15:36,020 that she's communicating with Bob. 349 00:15:36,320 --> 00:15:37,500 Let's say they're both allowed to access 350 00:15:37,500 --> 00:15:38,420 some local news site 351 00:15:38,420 --> 00:15:40,060 which doesn't have very much bandwidth, 352 00:15:40,260 --> 00:15:42,300 a small server that's not very powerful. 353 00:15:42,760 --> 00:15:43,800 So what Alice does is 354 00:15:43,800 --> 00:15:45,400 whenever she wants to transmit a one to Bob, 355 00:15:45,400 --> 00:15:47,300 is she makes tons and tons of requests 356 00:15:47,300 --> 00:15:48,080 to the web server. 357 00:15:48,160 --> 00:15:48,920 Hits it really hard 358 00:15:49,500 --> 00:15:50,880 so that this performance will degrade. 359 00:15:51,100 --> 00:15:53,260 If Bob made a request also to that web server, 360 00:15:53,360 --> 00:15:54,620 he would notice that it lagged a lot 361 00:15:54,620 --> 00:15:56,280 or several requests would notice 362 00:15:56,280 --> 00:15:57,500 that it tended to have a high latency 363 00:15:57,900 --> 00:15:58,960 and he slowed this, 364 00:15:59,040 --> 00:16:00,320 the plan with this information. 365 00:16:01,380 --> 00:16:03,140 Then whenever Alice wanted to transmit a zero, 366 00:16:03,300 --> 00:16:04,400 she would simply not 367 00:16:06,300 --> 00:16:08,040 make heavy requests to this web server. 368 00:16:08,400 --> 00:16:10,520 And then whenever Bob made a request to this web server, 369 00:16:10,640 --> 00:16:11,980 it would come back much faster. 370 00:16:12,580 --> 00:16:14,060 And of course this assumes that, 371 00:16:14,120 --> 00:16:14,380 at least, 372 00:16:15,200 --> 00:16:16,640 Alice and Bob have enough bandwidth 373 00:16:16,640 --> 00:16:17,880 to significantly alter 374 00:16:18,480 --> 00:16:19,640 the state of the web server. 375 00:16:19,780 --> 00:16:21,060 So you're probably not going to have any luck 376 00:16:21,060 --> 00:16:22,080 doing it to CNN.com. 377 00:16:22,340 --> 00:16:23,880 But you might to some little local server 378 00:16:23,880 --> 00:16:24,600 that's close to you. 379 00:16:26,740 --> 00:16:27,260 So now, 380 00:16:27,880 --> 00:16:29,020 if you have a covert channel, 381 00:16:29,120 --> 00:16:30,000 what are the sort of properties 382 00:16:30,000 --> 00:16:30,760 that you want to look at? 383 00:16:30,940 --> 00:16:32,660 What do you actually want to evaluate in it? 384 00:16:33,460 --> 00:16:34,120 First of all, 385 00:16:34,160 --> 00:16:35,340 you probably want to look at the bandwidth. 386 00:16:36,280 --> 00:16:37,780 Because that's kind of the whole purpose of it, 387 00:16:37,840 --> 00:16:38,960 is to transmit information 388 00:16:39,580 --> 00:16:40,680 in a certain amount of time 389 00:16:40,680 --> 00:16:41,920 in a certain amount of things. 390 00:16:42,920 --> 00:16:43,740 I know some of you here 391 00:16:43,740 --> 00:16:44,100 don't know about bandwidth 392 00:16:44,100 --> 00:16:45,080 in terms of bits per second 393 00:16:45,080 --> 00:16:45,780 or something like that. 394 00:16:46,080 --> 00:16:47,080 But in covert channels, 395 00:16:47,180 --> 00:16:48,120 you often run into things like 396 00:16:48,120 --> 00:16:49,060 bits per TCP connection 397 00:16:49,060 --> 00:16:50,080 or bits per packet, 398 00:16:50,780 --> 00:16:51,560 things like that. 399 00:16:51,800 --> 00:16:52,900 Another thing you want to look at 400 00:16:52,900 --> 00:16:53,600 is ease of detection. 401 00:16:53,800 --> 00:16:54,820 We've already talked about this some, 402 00:16:55,580 --> 00:16:57,160 with how easy to detect, 403 00:16:57,300 --> 00:16:59,200 how much prevention do you need. 404 00:16:59,340 --> 00:17:00,880 And there's always sort of a trade-off here 405 00:17:00,880 --> 00:17:01,560 between bandwidth 406 00:17:02,460 --> 00:17:04,000 and how covert you're going to be. 407 00:17:05,540 --> 00:17:06,620 Another thing is permissibility. 408 00:17:07,000 --> 00:17:08,740 How often will it actually go through your network? 409 00:17:08,820 --> 00:17:10,160 If you start sending out illegal stuff, 410 00:17:10,400 --> 00:17:11,760 stuff that's just random and weird, 411 00:17:11,760 --> 00:17:13,920 sometimes networks will filter it or rewrite it 412 00:17:13,920 --> 00:17:15,080 and destroy your covert channel. 413 00:17:16,340 --> 00:17:17,840 Another thing is how hard is it to prevent? 414 00:17:18,480 --> 00:17:20,620 Say this stuff starts becoming commonplace 415 00:17:20,620 --> 00:17:21,760 and everyone starts using it, 416 00:17:21,840 --> 00:17:23,440 how hard would it be for network administrators, 417 00:17:23,780 --> 00:17:24,940 how costly would it be for them 418 00:17:24,940 --> 00:17:26,860 to restrict these covert channels, 419 00:17:27,040 --> 00:17:28,260 to limit their bandwidth significantly 420 00:17:28,260 --> 00:17:29,480 so that they became unusable? 421 00:17:31,020 --> 00:17:32,820 Another issue is how hard is it to implement? 422 00:17:32,960 --> 00:17:34,160 You have all these great ideas 423 00:17:34,160 --> 00:17:35,120 and all these covert channels 424 00:17:35,120 --> 00:17:36,180 which people have known about, 425 00:17:36,860 --> 00:17:37,940 but up until this point, 426 00:17:37,960 --> 00:17:38,680 there haven't really been 427 00:17:40,300 --> 00:17:41,100 good implementations 428 00:17:41,100 --> 00:17:43,280 that kind of brought all of them together 429 00:17:43,280 --> 00:17:44,160 in a usable package. 430 00:17:45,680 --> 00:17:46,700 Except for some of the 431 00:17:48,620 --> 00:17:49,580 end-to-end communication 432 00:17:49,580 --> 00:17:51,620 where you obscure the path 433 00:17:51,620 --> 00:17:52,320 you're actually communicating. 434 00:17:53,540 --> 00:17:55,400 And what special cases or restrictions 435 00:17:55,400 --> 00:17:56,780 are there that are out there 436 00:17:56,780 --> 00:17:57,580 that you have to keep in mind 437 00:17:57,580 --> 00:17:58,360 when you're using the channel 438 00:17:58,360 --> 00:17:59,960 so that you don't misuse it 439 00:17:59,960 --> 00:18:01,160 and get yourself killed or something? 440 00:18:02,540 --> 00:18:03,880 So what are we going to look at today? 441 00:18:04,680 --> 00:18:05,480 I'm going to look at 442 00:18:05,480 --> 00:18:06,860 extra communication covert channels 443 00:18:08,040 --> 00:18:09,060 because they might be useful 444 00:18:09,060 --> 00:18:11,080 in case encryption is restricted 445 00:18:11,100 --> 00:18:11,860 or outlawed 446 00:18:11,860 --> 00:18:13,540 or you don't want to get your keys subpoenaed 447 00:18:14,020 --> 00:18:15,140 by some court somewhere. 448 00:18:15,840 --> 00:18:17,400 I'm not going to look too much 449 00:18:17,400 --> 00:18:18,120 at hidden path communication 450 00:18:18,120 --> 00:18:19,820 because there's been a lot of good work in there 451 00:18:20,920 --> 00:18:22,140 with onion writing mixes 452 00:18:22,140 --> 00:18:23,020 and things like that. 453 00:18:24,400 --> 00:18:27,040 And we're going to focus on TCP IP headers 454 00:18:27,040 --> 00:18:28,720 because they're pretty universal. 455 00:18:29,040 --> 00:18:30,960 TCP IP is flowing out all around there. 456 00:18:31,280 --> 00:18:33,240 And also, by just using the headers, 457 00:18:33,300 --> 00:18:34,160 you're able to piggyback 458 00:18:34,160 --> 00:18:35,520 onto legitimate traffic. 459 00:18:35,980 --> 00:18:37,360 As in the FTP example, 460 00:18:37,700 --> 00:18:38,780 you don't have to somehow 461 00:18:38,780 --> 00:18:40,200 magically make up pictures to send. 462 00:18:40,200 --> 00:18:41,600 You simply use traffic 463 00:18:41,600 --> 00:18:42,420 that you're sending anyways 464 00:18:42,420 --> 00:18:43,920 and piggyback on top of that 465 00:18:43,920 --> 00:18:44,380 in the header. 466 00:18:47,020 --> 00:18:48,300 So the first one to look at, 467 00:18:48,320 --> 00:18:49,180 a very simple example, 468 00:18:49,500 --> 00:18:51,360 is using the TCP urgent pointer. 469 00:18:51,800 --> 00:18:53,500 And the urgent pointer is a thing, 470 00:18:53,560 --> 00:18:55,040 is a part of the TCP header. 471 00:18:55,300 --> 00:18:56,900 There are kind of two components to it. 472 00:18:57,280 --> 00:18:59,540 One is a TCP urgent pointer control bit. 473 00:18:59,940 --> 00:19:01,040 And right there next to 474 00:19:01,040 --> 00:19:01,860 and . 475 00:19:03,640 --> 00:19:04,580 And this says, 476 00:19:04,600 --> 00:19:05,640 hey, look, there's an urgent pointer 477 00:19:05,640 --> 00:19:06,720 that you should pay attention to. 478 00:19:06,940 --> 00:19:08,660 What the urgent pointer itself is 479 00:19:08,660 --> 00:19:10,180 is it's a sequence pointer 480 00:19:10,200 --> 00:19:10,340 of this number, 481 00:19:11,080 --> 00:19:12,960 which points just beyond 482 00:19:13,580 --> 00:19:15,940 the last bit of urgent data. 483 00:19:16,440 --> 00:19:18,400 And this isn't actually used too often anymore, 484 00:19:18,620 --> 00:19:20,140 or, I don't know, maybe not at all. 485 00:19:20,940 --> 00:19:22,240 But the urgent pointer is 486 00:19:22,820 --> 00:19:23,900 only supposed to be interpreted 487 00:19:23,900 --> 00:19:25,300 if that urgent control bit is set. 488 00:19:25,860 --> 00:19:27,100 So what you could do is 489 00:19:27,100 --> 00:19:29,220 simply not set the urgent control bit, 490 00:19:29,320 --> 00:19:31,200 yet stuff data into the urgent pointer. 491 00:19:31,960 --> 00:19:32,900 Pretty easy to do. 492 00:19:34,640 --> 00:19:36,520 However, someone might, you know, 493 00:19:36,960 --> 00:19:39,000 one thing you could also keep in mind is to, 494 00:19:39,000 --> 00:19:41,140 the urgent pointer actually has to point to some data. 495 00:19:41,340 --> 00:19:42,560 So it has to be somewhere near 496 00:19:42,560 --> 00:19:43,800 the sequence numbers that you're using. 497 00:19:44,260 --> 00:19:45,640 So perhaps you want to make sure 498 00:19:45,640 --> 00:19:46,300 that the urgent pointer 499 00:19:46,940 --> 00:19:48,760 could be pointing or could be near 500 00:19:49,660 --> 00:19:50,980 data and sequence numbers 501 00:19:50,980 --> 00:19:52,520 that are actually in the TCP session. 502 00:19:54,640 --> 00:19:56,380 So now let's look at some of the properties of it. 503 00:19:56,740 --> 00:19:57,520 It's kind of an exercise. 504 00:19:58,620 --> 00:20:00,160 Really good bandwidth for a covert channel. 505 00:20:00,500 --> 00:20:01,980 16 bits per TCP segment. 506 00:20:02,580 --> 00:20:03,880 It might not sound like a lot, 507 00:20:03,940 --> 00:20:05,460 but it's quite a bit for a covert channel. 508 00:20:07,140 --> 00:20:09,020 And it'd be much less if you tried to restrict 509 00:20:09,020 --> 00:20:10,080 what the urgent pointer could be, 510 00:20:10,100 --> 00:20:11,180 so it looked a little bit more reasonable. 511 00:20:12,240 --> 00:20:13,360 How hard is this to detect? 512 00:20:13,940 --> 00:20:15,060 It's pretty easy to detect. 513 00:20:15,300 --> 00:20:17,260 The urgent pointer is rarely used, 514 00:20:17,640 --> 00:20:20,220 and it should especially never be set or used 515 00:20:20,220 --> 00:20:21,620 if the control bit isn't set. 516 00:20:22,520 --> 00:20:23,680 It's just supposed to be all zeros 517 00:20:23,680 --> 00:20:25,340 and not even supposed to be paid attention to. 518 00:20:26,360 --> 00:20:27,640 And also you could start to look at 519 00:20:27,640 --> 00:20:29,260 and make sure the urgent pointer actually was somewhere 520 00:20:29,960 --> 00:20:31,480 pointing to some sequence data 521 00:20:31,480 --> 00:20:33,740 if you actually started setting the urgent control bit 522 00:20:33,740 --> 00:20:35,440 to try to make it appear a little bit more stealthy. 523 00:20:36,520 --> 00:20:38,320 How hard would this be to prevent? 524 00:20:39,360 --> 00:20:40,080 Moderately easy. 525 00:20:41,920 --> 00:20:43,180 You can make it moderately easy 526 00:20:43,180 --> 00:20:45,860 if you just examine each urgent bit, 527 00:20:46,000 --> 00:20:47,140 each urgent control bit, 528 00:20:47,200 --> 00:20:48,140 and whenever there wasn't one, 529 00:20:48,280 --> 00:20:49,420 rewrite the urgent filter, 530 00:20:50,240 --> 00:20:51,360 rewrite the urgent pointer 531 00:20:51,360 --> 00:20:53,000 so that it was all nulls. 532 00:20:53,300 --> 00:20:54,980 If you want to just flat out rewrite it, 533 00:20:55,020 --> 00:20:55,840 that would just make it easier, 534 00:20:55,980 --> 00:20:57,160 and you could just do that statically. 535 00:20:59,440 --> 00:21:00,260 A few other things. 536 00:21:00,300 --> 00:21:00,700 Permissibility. 537 00:21:01,520 --> 00:21:03,740 Currently this will pass through pretty much everything. 538 00:21:05,880 --> 00:21:07,220 Firewalls and normalizers will 539 00:21:07,220 --> 00:21:08,700 of course look at the urgent pointer 540 00:21:08,700 --> 00:21:10,040 and see that the control bit isn't set, 541 00:21:10,100 --> 00:21:11,660 see that there's something anomalous going on, 542 00:21:12,040 --> 00:21:12,940 rewrite it for you, 543 00:21:13,960 --> 00:21:15,460 back to all zeros and then it's gone. 544 00:21:15,880 --> 00:21:16,960 How hard is this to implement? 545 00:21:17,160 --> 00:21:17,800 It's really easy. 546 00:21:17,880 --> 00:21:19,760 You just stuff bits in there as it's going out. 547 00:21:20,740 --> 00:21:21,740 In a special case, 548 00:21:22,300 --> 00:21:23,880 you of course can't use the urgent pointer 549 00:21:23,880 --> 00:21:26,980 when you're using the urgent pointer legitimately, 550 00:21:27,440 --> 00:21:29,020 but this really doesn't happen too often. 551 00:21:29,460 --> 00:21:30,880 So it's not something you'd have to worry about. 552 00:21:32,060 --> 00:21:33,320 Going along with the urgent pointer, 553 00:21:35,460 --> 00:21:36,180 you have padding and reserved bits. 554 00:21:37,000 --> 00:21:38,140 Similar to the urgent example, 555 00:21:38,320 --> 00:21:39,500 they start to break protocol 556 00:21:39,500 --> 00:21:42,220 and they start to do things that no TCP stack would ever do. 557 00:21:43,660 --> 00:21:45,040 They're lower bandwidth simply because 558 00:21:45,040 --> 00:21:46,080 they're typically fewer bits, 559 00:21:46,760 --> 00:21:48,240 but you could of course combine this 560 00:21:48,240 --> 00:21:49,540 with the urgent pointer into one thing 561 00:21:50,140 --> 00:21:51,020 and use that. 562 00:21:51,840 --> 00:21:54,060 The padding would be easy to detect 563 00:21:54,060 --> 00:21:55,420 because it's almost always set to zeros, 564 00:21:55,500 --> 00:21:57,320 just as the reserved bits would be really easy to detect 565 00:21:57,320 --> 00:21:58,480 because they should always be zeros 566 00:21:58,480 --> 00:22:00,680 unless your TCP stack is misbehaving. 567 00:22:02,300 --> 00:22:04,540 And some routers may start to drop packets 568 00:22:05,460 --> 00:22:06,400 if the bits are set 569 00:22:06,400 --> 00:22:07,720 because they just see them 570 00:22:07,720 --> 00:22:09,520 and they see that they're just bogus 571 00:22:09,520 --> 00:22:10,500 and they should never be like that. 572 00:22:11,020 --> 00:22:13,100 And sometimes they also rewrite the padding for you, 573 00:22:14,360 --> 00:22:15,720 especially if they start messing around 574 00:22:15,720 --> 00:22:16,680 with some of the options 575 00:22:16,680 --> 00:22:18,320 and adding their own options or stripping on that. 576 00:22:21,960 --> 00:22:23,700 Another code channel that you could use in the header 577 00:22:23,700 --> 00:22:25,340 is just using the IP type of service. 578 00:22:25,860 --> 00:22:27,220 The IP type of service, 579 00:22:27,260 --> 00:22:28,260 in case you're not familiar with it, 580 00:22:28,340 --> 00:22:30,220 indicates sort of the quality of service 581 00:22:30,220 --> 00:22:32,140 that you're requesting from the network 582 00:22:32,140 --> 00:22:33,940 that your data is going to be flowing out on. 583 00:22:35,460 --> 00:22:36,500 Like precedence, delay, throughput, 584 00:22:37,620 --> 00:22:38,740 reliability, and then of course 585 00:22:38,740 --> 00:22:39,620 they have some reserved bits. 586 00:22:40,700 --> 00:22:42,660 So all you do is you just set the type of service 587 00:22:43,380 --> 00:22:44,220 byte to your data 588 00:22:45,280 --> 00:22:46,380 and send it on through. 589 00:22:46,800 --> 00:22:48,480 But if you want to be a little bit more stealthy, 590 00:22:48,840 --> 00:22:50,720 the delay bit in the type of service 591 00:22:50,720 --> 00:22:52,620 is actually used by, say, SSH 592 00:22:52,620 --> 00:22:54,100 whenever you're sending over keystrokes. 593 00:22:54,960 --> 00:22:57,520 So if someone were to shift through it, 594 00:22:57,580 --> 00:22:59,160 they couldn't just look for 595 00:22:59,160 --> 00:22:59,960 delay bits being set 596 00:23:01,420 --> 00:23:02,680 because they're actually used legitimately. 597 00:23:03,840 --> 00:23:04,980 So the bandwidth of this, 598 00:23:05,460 --> 00:23:06,520 if you're using the entire type of service field, 599 00:23:06,960 --> 00:23:08,540 then it's one byte per IP datagram, 600 00:23:08,700 --> 00:23:09,360 which is pretty good. 601 00:23:10,220 --> 00:23:13,120 If you don't and you only use the delay bit 602 00:23:13,120 --> 00:23:14,540 or you only maybe use the delay 603 00:23:14,540 --> 00:23:16,720 and reliability bit or something like that, 604 00:23:17,290 --> 00:23:19,180 then you would get one bit or two bits 605 00:23:19,180 --> 00:23:21,340 or however many bits of the type of service field 606 00:23:21,340 --> 00:23:22,340 you actually wanted to use. 607 00:23:23,620 --> 00:23:25,260 And detection would be really easy 608 00:23:25,260 --> 00:23:26,800 if you were using the entire type of service field 609 00:23:26,800 --> 00:23:28,180 because you're never supposed to use it all, 610 00:23:28,260 --> 00:23:29,900 especially the reserved bits. 611 00:23:30,080 --> 00:23:33,080 And very rarely are most of them actually used, 612 00:23:33,800 --> 00:23:35,160 especially the precedence ones. 613 00:23:36,020 --> 00:23:37,320 However, if you use the delay bit, 614 00:23:37,440 --> 00:23:39,400 it becomes moderately difficult 615 00:23:39,400 --> 00:23:40,140 to actually detect 616 00:23:40,820 --> 00:23:42,860 because someone couldn't simply shift through 617 00:23:42,860 --> 00:23:44,060 and look for delay bits being set. 618 00:23:44,260 --> 00:23:45,580 They'd have to keep track of you. 619 00:23:45,760 --> 00:23:48,380 They'd have to look for you using a lot of delay bits 620 00:23:48,380 --> 00:23:49,440 in your transmissions, 621 00:23:50,000 --> 00:23:51,320 perhaps in non-standard ports 622 00:23:51,320 --> 00:23:54,580 that the programs typically didn't use, 623 00:23:54,760 --> 00:23:55,780 the delay bits. 624 00:23:57,500 --> 00:23:59,120 And they could also look at it 625 00:23:59,120 --> 00:24:01,300 and see that if you're just stuffing encrypted data 626 00:24:01,300 --> 00:24:02,620 directly into the delay bit 627 00:24:02,620 --> 00:24:05,000 that you somehow had a perfectly even 628 00:24:05,460 --> 00:24:07,880 distribution of delay bits being set 629 00:24:07,880 --> 00:24:09,280 and delay bits being not beset. 630 00:24:09,580 --> 00:24:10,460 Because in this case, 631 00:24:10,520 --> 00:24:13,100 you're taking some not very random data 632 00:24:13,100 --> 00:24:14,660 and replacing it with really random data. 633 00:24:14,920 --> 00:24:16,540 And so that would be something that would be detectable. 634 00:24:18,840 --> 00:24:19,280 Also, 635 00:24:19,440 --> 00:24:20,120 provisibility. 636 00:24:20,800 --> 00:24:23,080 It'll pass through pretty much everything, 637 00:24:23,260 --> 00:24:24,640 especially if you just set the delay bit 638 00:24:24,640 --> 00:24:27,040 because that's something that is used 639 00:24:27,040 --> 00:24:28,260 and people pass on all the time. 640 00:24:30,180 --> 00:24:30,620 Prevention. 641 00:24:31,300 --> 00:24:32,880 It would be pretty easy to prevent. 642 00:24:33,000 --> 00:24:34,240 You could simply just write out 643 00:24:35,460 --> 00:24:36,080 the delay bits to zero 644 00:24:36,080 --> 00:24:38,080 whenever any packet came through you statically. 645 00:24:38,660 --> 00:24:39,940 This could slightly alter 646 00:24:39,940 --> 00:24:41,440 how you're actually providing service, 647 00:24:42,220 --> 00:24:43,720 but no one would probably notice, 648 00:24:43,800 --> 00:24:44,620 no one would probably complain. 649 00:24:46,420 --> 00:24:47,720 How hard would this be to implement? 650 00:24:48,080 --> 00:24:49,220 It'd be really easy. 651 00:24:49,400 --> 00:24:52,460 You just stuff the bits into the type of service field 652 00:24:52,460 --> 00:24:52,840 and you're done. 653 00:24:53,720 --> 00:24:55,240 Special cases, once again, 654 00:24:55,300 --> 00:24:56,320 it could simply alter the traffic, 655 00:24:56,480 --> 00:24:58,120 but probably not noticeably, 656 00:24:58,240 --> 00:24:59,340 or at least not enough to care about. 657 00:25:01,020 --> 00:25:03,200 Another type, the initial sequence number 658 00:25:05,720 --> 00:25:07,300 Sequence numbers are used 659 00:25:07,300 --> 00:25:09,400 as an index into the data 660 00:25:09,400 --> 00:25:10,700 that TCP is transmitting. 661 00:25:11,440 --> 00:25:13,500 There's a unique sequence number for every bit of data 662 00:25:13,500 --> 00:25:15,060 that's being transmitted out there. 663 00:25:17,220 --> 00:25:19,340 From some earlier security stuff, 664 00:25:19,420 --> 00:25:20,300 the initial sequence number 665 00:25:21,460 --> 00:25:23,160 should be randomly chosen to prevent 666 00:25:23,160 --> 00:25:25,820 TCP hijacking or TCP spoofing 667 00:25:25,820 --> 00:25:27,160 so you can't pretend that you're actually getting 668 00:25:27,160 --> 00:25:29,600 packets being sent back to a host. 669 00:25:32,160 --> 00:25:34,100 So you want to choose your initial sequence numbers 670 00:25:34,100 --> 00:25:35,440 to be the message that you want to send 671 00:25:35,460 --> 00:25:35,680 in order to transmit. 672 00:25:36,120 --> 00:25:39,180 So normally, your kernel or your TCP stack 673 00:25:39,180 --> 00:25:41,440 or whatever would somehow randomly choose 674 00:25:41,440 --> 00:25:43,280 a random value to throw 675 00:25:44,400 --> 00:25:45,240 and to use 676 00:25:45,240 --> 00:25:46,940 for the initial sequence number. 677 00:25:47,200 --> 00:25:48,540 So all you have to do is go in there 678 00:25:48,540 --> 00:25:51,120 and replace that function with your function 679 00:25:51,120 --> 00:25:52,460 that transmits the data for you 680 00:25:52,460 --> 00:25:55,020 and stuff your data into that field 681 00:25:55,500 --> 00:25:56,860 and have the receiver get it. 682 00:25:58,480 --> 00:25:59,200 So bandwidth. 683 00:25:59,500 --> 00:26:00,500 This is pretty low. 684 00:26:00,560 --> 00:26:02,040 It's only 32 bits per TCP connection. 685 00:26:02,440 --> 00:26:04,420 Of course, this is really dependent on what sort of 686 00:26:05,460 --> 00:26:05,960 you're piggybacking this on. 687 00:26:06,480 --> 00:26:08,300 If you're piggybacking it on one huge 688 00:26:08,300 --> 00:26:10,300 TCP transmission, you're only going to get 689 00:26:10,300 --> 00:26:13,220 32 bytes or maybe 64, 690 00:26:13,300 --> 00:26:14,180 however many if you're just 691 00:26:14,740 --> 00:26:16,240 in an FTP session. 692 00:26:16,420 --> 00:26:17,360 You generally don't make that many 693 00:26:17,360 --> 00:26:18,380 separate TCP connections. 694 00:26:19,200 --> 00:26:22,820 Let's say we piggybacked it onto a web server request 695 00:26:22,820 --> 00:26:24,300 where you hit the page and you downloaded 696 00:26:24,300 --> 00:26:25,100 maybe 40 images. 697 00:26:25,660 --> 00:26:28,040 You typically make separate TCP sessions 698 00:26:28,040 --> 00:26:29,920 for each of those 40 images 699 00:26:29,920 --> 00:26:31,960 and all of a sudden you'd have 40 times 32 bits 700 00:26:31,960 --> 00:26:33,980 just for that one request, which isn't too bad. 701 00:26:35,460 --> 00:26:36,580 The solution for something like this would be 702 00:26:37,200 --> 00:26:38,080 quote impossible 703 00:26:38,980 --> 00:26:41,620 in that they would expect 704 00:26:41,620 --> 00:26:43,160 purely random data to be coming 705 00:26:43,160 --> 00:26:44,220 for initial sequence numbers 706 00:26:44,220 --> 00:26:46,060 and you'd be giving it purely random data. 707 00:26:46,260 --> 00:26:47,600 So just by looking at the network 708 00:26:47,600 --> 00:26:48,560 they wouldn't be able to tell. 709 00:26:50,560 --> 00:26:52,220 Preventing this would be fairly difficult. 710 00:26:52,500 --> 00:26:55,080 They'd have to start proxying all of your TCP connections 711 00:26:55,520 --> 00:26:57,260 and keeping state on every TCP connection 712 00:26:57,820 --> 00:26:59,200 which some proxy servers will do 713 00:26:59,200 --> 00:27:00,840 but that's more sort of a local thing 714 00:27:00,840 --> 00:27:01,400 rather than 715 00:27:04,160 --> 00:27:04,600 permissibility. 716 00:27:05,460 --> 00:27:06,300 It's typically passed on through 717 00:27:06,920 --> 00:27:08,580 except for some proxies like Ed said. 718 00:27:10,220 --> 00:27:11,060 Difficulty of implementing? 719 00:27:11,800 --> 00:27:12,520 Pretty easy. 720 00:27:12,660 --> 00:27:15,000 You just go and grab that function and replace it 721 00:27:15,000 --> 00:27:15,840 with the one that sends your data. 722 00:27:16,620 --> 00:27:17,420 Special cases. 723 00:27:17,980 --> 00:27:19,980 Some operating systems like Windows 95 724 00:27:19,980 --> 00:27:22,640 definitely don't transmit random initial sequence numbers. 725 00:27:22,920 --> 00:27:24,300 They do sequential ones. 726 00:27:24,420 --> 00:27:26,000 Who would have thought? 727 00:27:26,520 --> 00:27:28,320 But as long as you're using a real operating system 728 00:27:28,320 --> 00:27:29,760 like some Unix variant 729 00:27:29,760 --> 00:27:32,920 then you should be pretty fine with doing that. 730 00:27:32,920 --> 00:27:34,140 There was even I think on Slash that 731 00:27:34,140 --> 00:27:34,820 a couple weeks ago 732 00:27:36,240 --> 00:27:37,980 someone put a paper up in a study 733 00:27:38,860 --> 00:27:40,460 analyzing the randomness in different 734 00:27:40,980 --> 00:27:42,440 initial sequence number generations 735 00:27:42,440 --> 00:27:44,220 and ended up working on improving 736 00:27:44,220 --> 00:27:45,020 the ones on Linux. 737 00:27:45,360 --> 00:27:47,380 And I think the BSD ones came out the best. 738 00:27:49,360 --> 00:27:50,560 Another technique is 739 00:27:50,560 --> 00:27:52,800 to modulate the TCP timestamp 740 00:27:52,800 --> 00:27:54,300 options a little bit. 741 00:27:55,440 --> 00:27:56,780 And the TCP timestamp 742 00:27:56,780 --> 00:27:58,280 is simply just a TCP option 743 00:27:58,840 --> 00:27:59,780 that marks the time 744 00:27:59,780 --> 00:28:01,500 that this packet was sent out. 745 00:28:02,920 --> 00:28:04,280 And this method was presented 746 00:28:04,280 --> 00:28:05,220 earlier this spring 747 00:28:05,220 --> 00:28:07,980 at Privacy Enhancing Technologies 2002 748 00:28:07,980 --> 00:28:10,560 which was right before CFP. 749 00:28:11,900 --> 00:28:12,920 And at low bandwidths 750 00:28:13,960 --> 00:28:15,120 the low bit 751 00:28:15,120 --> 00:28:17,040 on a TCP timestamp is going to be random. 752 00:28:17,740 --> 00:28:18,720 So if you were just 753 00:28:18,720 --> 00:28:19,640 communicating with someone 754 00:28:19,640 --> 00:28:21,720 the timestamps that were flowing out through you 755 00:28:21,720 --> 00:28:24,100 if you had a slow connection like say a modem or something 756 00:28:24,100 --> 00:28:25,580 they'd appear pretty much random. 757 00:28:25,900 --> 00:28:27,500 If you had a high speed connection though 758 00:28:27,500 --> 00:28:28,780 they're definitely not going to be random 759 00:28:28,780 --> 00:28:32,840 because the timestamp counter 760 00:28:32,920 --> 00:28:34,460 gets incremented, I think in Linux 761 00:28:34,460 --> 00:28:36,600 it's once every millisecond or something like that. 762 00:28:37,400 --> 00:28:38,820 And so if you're sending out packets 763 00:28:38,820 --> 00:28:40,140 faster than once per millisecond 764 00:28:40,140 --> 00:28:41,920 then you're going to see lots of repeats. 765 00:28:45,720 --> 00:28:46,560 So the bandwidth 766 00:28:46,560 --> 00:28:47,420 for this sort of transmission 767 00:28:47,420 --> 00:28:49,760 would be pretty low, one bit per TCP segment. 768 00:28:51,060 --> 00:28:51,820 Not too bad. 769 00:28:52,580 --> 00:28:54,860 Detection for this sort of thing would be very difficult 770 00:28:55,580 --> 00:28:57,080 if you were on a low bandwidth connection. 771 00:28:57,560 --> 00:28:58,980 Because the bits are pretty random 772 00:28:58,980 --> 00:28:59,500 to begin with 773 00:28:59,500 --> 00:29:02,320 and granted you're placing them with really random data 774 00:29:02,920 --> 00:29:04,360 but there are things you can do to prevent that. 775 00:29:05,620 --> 00:29:06,000 Prevention 776 00:29:06,540 --> 00:29:08,520 from an administrator's point of view 777 00:29:09,100 --> 00:29:10,380 it'd be pretty easy to do this 778 00:29:10,380 --> 00:29:13,020 you could pretty much just disallow the TCP timestamp option 779 00:29:13,420 --> 00:29:14,520 and rewrite the header 780 00:29:15,060 --> 00:29:16,200 and just get rid of it. 781 00:29:17,760 --> 00:29:18,140 Permissibility 782 00:29:18,580 --> 00:29:20,980 pretty much everyone seems to allow TCP timestamps through. 783 00:29:22,140 --> 00:29:22,900 How hard is this 784 00:29:22,900 --> 00:29:23,300 for you to implement? 785 00:29:24,040 --> 00:29:25,460 It doesn't sound too difficult 786 00:29:25,460 --> 00:29:27,040 but there are a few subtle things to keep in mind. 787 00:29:27,840 --> 00:29:29,140 You're twiddling with the low bit 788 00:29:29,740 --> 00:29:31,040 the TCP timestamp 789 00:29:33,020 --> 00:29:33,760 time's chronological 790 00:29:33,760 --> 00:29:36,600 so your timestamps should be monotonically increasing. 791 00:29:37,440 --> 00:29:38,680 So in order to do this 792 00:29:39,280 --> 00:29:41,600 say your timestamp ended in a one 793 00:29:41,600 --> 00:29:43,620 but you wanted to flip it down to a zero 794 00:29:44,360 --> 00:29:45,700 you're kind of jumping back in time 795 00:29:45,700 --> 00:29:46,840 so instead what you have to do 796 00:29:46,840 --> 00:29:48,720 is you have to wait until the timestamp 797 00:29:48,720 --> 00:29:49,600 rolls up to a zero 798 00:29:49,600 --> 00:29:51,840 which in Linux is referred to as one jiffy 799 00:29:51,840 --> 00:29:54,340 so you have to wait one jiffy for the timestamp to roll up 800 00:29:54,840 --> 00:29:56,380 and doing that you delay the packets 801 00:29:56,380 --> 00:29:58,380 you delay that one packet by one jiffy 802 00:29:58,800 --> 00:30:00,400 in which case if you're on a high connection 803 00:30:00,780 --> 00:30:01,840 the packets would build up 804 00:30:02,920 --> 00:30:03,680 and this packet would be delayed 805 00:30:03,680 --> 00:30:05,160 as would all the ones behind it 806 00:30:05,160 --> 00:30:05,920 they would also be delayed 807 00:30:05,920 --> 00:30:08,120 if you're on a slow connection you wouldn't have that problem 808 00:30:08,120 --> 00:30:10,840 because you probably wouldn't have any packets sort of backed up 809 00:30:12,040 --> 00:30:14,040 waiting to go that would actually be affected by that. 810 00:30:16,740 --> 00:30:18,520 So how could you detect the timestamp 811 00:30:18,520 --> 00:30:19,760 on a fast connection? 812 00:30:20,780 --> 00:30:21,940 When you're on a fast connection 813 00:30:23,220 --> 00:30:24,040 you're going to have to 814 00:30:24,040 --> 00:30:26,280 the Cobra channel will slow the transmission 815 00:30:26,280 --> 00:30:28,740 of the TCP segments down to a fixed rate 816 00:30:29,480 --> 00:30:30,980 and it's fixed in that 817 00:30:30,980 --> 00:30:32,700 or it converges to a fixed rate 818 00:30:32,920 --> 00:30:34,840 because you're assuming that you're transmitting 819 00:30:34,840 --> 00:30:36,720 uniformly ones and zeros 820 00:30:36,720 --> 00:30:38,540 because you're transmitting encrypted information 821 00:30:39,100 --> 00:30:40,820 which doesn't seem to have any sort of 822 00:30:40,820 --> 00:30:41,340 pattern to it. 823 00:30:42,460 --> 00:30:44,500 So an algorithm you could use to detect this 824 00:30:44,500 --> 00:30:46,740 is to look at a host 825 00:30:46,740 --> 00:30:48,820 and start counting the number of 826 00:30:49,320 --> 00:30:50,800 different values of timestamps 827 00:30:50,800 --> 00:30:52,220 that he sends in a certain amount of time 828 00:30:52,220 --> 00:30:54,780 and while you're doing that also count the total number 829 00:30:54,780 --> 00:30:56,620 of timestamps. So you're essentially 830 00:30:56,620 --> 00:30:59,080 counting sort of the number of times that he repeats timestamps 831 00:30:59,080 --> 00:31:00,600 or doesn't repeat timestamps. 832 00:31:01,820 --> 00:31:02,880 Then you take the ratio 833 00:31:02,920 --> 00:31:04,760 of the total timestamps that were used 834 00:31:04,760 --> 00:31:06,760 over the different timestamps that were used 835 00:31:06,760 --> 00:31:07,720 and you get a ratio. 836 00:31:08,920 --> 00:31:10,660 And the ratio, if you're using 837 00:31:10,660 --> 00:31:12,100 this Cobra channel 838 00:31:13,060 --> 00:31:15,200 unmodified, will converge to about 1.94. 839 00:31:16,140 --> 00:31:17,060 That's not from any math 840 00:31:17,060 --> 00:31:18,920 or anything, just from actually going out there and doing it. 841 00:31:20,420 --> 00:31:21,420 So how could you actually 842 00:31:21,420 --> 00:31:22,820 and if you're doing it on a fast connection 843 00:31:23,680 --> 00:31:24,840 like, I guess as fast 844 00:31:24,840 --> 00:31:26,060 pretty fast as you could get, you know 845 00:31:26,060 --> 00:31:27,380 two or more machines communicating 846 00:31:27,880 --> 00:31:30,420 and hosting the networking, it'll reach up to about 847 00:31:30,420 --> 00:31:31,960 a ratio of 20 or something like that. 848 00:31:33,740 --> 00:31:34,700 However, if 849 00:31:34,700 --> 00:31:36,920 naturally your ratio is less than 850 00:31:36,920 --> 00:31:38,920 1.94, then it's not going to be 851 00:31:38,920 --> 00:31:40,900 slowed down at all and therefore 852 00:31:40,900 --> 00:31:43,140 it becomes, you can't use this method to detect it. 853 00:31:43,820 --> 00:31:44,820 So how could you prevent 854 00:31:44,820 --> 00:31:46,880 someone from detecting you if you're 855 00:31:46,880 --> 00:31:48,520 using this method on a fast network? 856 00:31:49,140 --> 00:31:50,900 Well, since it's slowing it down to 857 00:31:50,900 --> 00:31:52,820 sort of a fixed rate, how about you 858 00:31:52,820 --> 00:31:54,640 slow it down a little bit more? And 859 00:31:54,640 --> 00:31:56,800 that little bit more make it a somewhat random 860 00:31:56,800 --> 00:31:58,840 value. So now you're slowing it down 861 00:31:58,840 --> 00:32:00,480 by a random amount, 862 00:32:00,620 --> 00:32:02,680 maybe every connection, maybe every once in a while 863 00:32:02,920 --> 00:32:04,720 you change it to sort of model 864 00:32:04,720 --> 00:32:06,740 your computer might be busy or something 865 00:32:06,740 --> 00:32:08,820 so it might be being a little bit slower than it normally would. 866 00:32:09,640 --> 00:32:10,600 And doing this prevents 867 00:32:10,600 --> 00:32:12,820 the attack. Of course it would still 868 00:32:12,820 --> 00:32:14,740 be detectable that you were slowing it down 869 00:32:14,740 --> 00:32:16,280 and that you were slowing down your transmission 870 00:32:16,800 --> 00:32:18,800 which would be something fairly anomalous to begin with 871 00:32:19,380 --> 00:32:20,760 but it could happen if your 872 00:32:20,760 --> 00:32:22,900 server was busy doing something else. 873 00:32:25,300 --> 00:32:26,760 So also, how could you detect 874 00:32:27,540 --> 00:32:28,820 the timestamp covert channel 875 00:32:28,820 --> 00:32:30,260 on a very slow connection? 876 00:32:31,020 --> 00:32:32,840 So in a slow connection, the low bit 877 00:32:32,920 --> 00:32:34,040 bits appear pretty much random. 878 00:32:34,320 --> 00:32:36,580 I said earlier. However, when you 879 00:32:36,580 --> 00:32:38,760 inject this encrypted data into the low bit 880 00:32:38,760 --> 00:32:40,640 it becomes more random than 881 00:32:40,640 --> 00:32:42,860 it normally is. So what you basically 882 00:32:42,860 --> 00:32:44,900 have to do is look for this increase 883 00:32:44,900 --> 00:32:46,000 in randomness in doing this. 884 00:32:46,240 --> 00:32:48,540 So what you could do is just get a whole bunch of TCP 885 00:32:48,540 --> 00:32:50,580 just record a whole bunch of TCP timestamp 886 00:32:50,580 --> 00:32:52,760 low bits from the person and then 887 00:32:52,760 --> 00:32:54,320 put it through a randomness test 888 00:32:54,800 --> 00:32:56,600 to see whether it was truly random 889 00:32:56,600 --> 00:32:58,480 or not truly random but, you know, 890 00:32:58,540 --> 00:33:00,060 really random as much as they could tell. 891 00:33:00,560 --> 00:33:02,760 And there are quite a few tests on the internet, you can just go and download 892 00:33:02,920 --> 00:33:03,440 and throw this up. 893 00:33:04,780 --> 00:33:05,680 And if the 894 00:33:06,620 --> 00:33:08,300 program comes back and spits it back and says 895 00:33:08,300 --> 00:33:09,900 yes, these bits are really random 896 00:33:10,400 --> 00:33:12,800 then the covert channel is most 897 00:33:12,800 --> 00:33:13,660 likely being used. 898 00:33:14,540 --> 00:33:15,440 However, if 899 00:33:16,400 --> 00:33:18,100 it comes back and spits it back and says 900 00:33:18,100 --> 00:33:20,400 these bits aren't very random, then 901 00:33:20,400 --> 00:33:22,620 you can probably guess that 902 00:33:22,620 --> 00:33:24,100 they're not using the covert channel 903 00:33:24,100 --> 00:33:25,800 based on its unmodified form. 904 00:33:26,620 --> 00:33:28,200 And so in order to prevent this 905 00:33:28,200 --> 00:33:30,700 you could try looking at transmitting some 906 00:33:30,700 --> 00:33:32,440 data that wouldn't appear to be completely 907 00:33:32,920 --> 00:33:34,800 random by using some sort of 908 00:33:34,800 --> 00:33:35,340 encoding schemes. 909 00:33:37,520 --> 00:33:38,760 And so now, detection and 910 00:33:38,760 --> 00:33:40,200 prevention of covert channels in general. 911 00:33:40,960 --> 00:33:42,140 So first of all, detection. 912 00:33:42,620 --> 00:33:44,160 For some of the semi-covert stuff 913 00:33:44,780 --> 00:33:46,380 try to just detect anomalous traffic. 914 00:33:47,100 --> 00:33:48,240 Snort has some of this stuff 915 00:33:48,760 --> 00:33:50,460 where you could look for invalid things like 916 00:33:50,460 --> 00:33:51,960 invalid checksums and things like that. 917 00:33:52,420 --> 00:33:55,020 I'm sort of working a little bit on just a Snort prepack 918 00:33:55,020 --> 00:33:56,520 that would look for 919 00:33:56,520 --> 00:33:58,680 bad things like bad-reserved bits and bad things 920 00:33:58,680 --> 00:34:00,680 in combination and try to correlate 921 00:34:00,680 --> 00:34:02,100 some of them together and keep state 922 00:34:02,920 --> 00:34:03,700 for TCP sessions. 923 00:34:05,420 --> 00:34:06,600 How could you prevent this? 924 00:34:06,800 --> 00:34:08,940 You could perform normalization in your traffic. 925 00:34:09,580 --> 00:34:10,900 If you think, and normalization 926 00:34:10,900 --> 00:34:12,180 is basically getting traffic 927 00:34:12,760 --> 00:34:14,960 in from somewhere, taking it, doing something 928 00:34:14,960 --> 00:34:16,840 to it, to make it the way you think it should look. 929 00:34:17,800 --> 00:34:18,820 Use often whenever 930 00:34:18,820 --> 00:34:20,900 people are worried about Fragout 931 00:34:20,900 --> 00:34:22,220 or something evading their IDSs 932 00:34:22,780 --> 00:34:24,940 so they want to take it and defragment all their data 933 00:34:24,940 --> 00:34:25,920 desegment all their data 934 00:34:26,460 --> 00:34:28,640 so they get to decide how the overlaps are handled 935 00:34:28,640 --> 00:34:30,660 and all that sort of stuff. And you could apply 936 00:34:30,660 --> 00:34:32,840 this in pretty much the same way. By taking it 937 00:34:32,920 --> 00:34:34,760 and stripping out type of service bits 938 00:34:34,760 --> 00:34:36,740 stripping out urgent bits, things like that 939 00:34:36,740 --> 00:34:38,840 that you know your network doesn't really need. 940 00:34:39,500 --> 00:34:40,760 And there's some programs out there 941 00:34:40,760 --> 00:34:42,780 that can do this. Norm is one 942 00:34:42,780 --> 00:34:44,740 I think it's written by Vern Paxson but I'm not sure. 943 00:34:45,720 --> 00:34:46,560 BSD's packet filter. 944 00:34:47,640 --> 00:34:48,800 And then there's also a more 945 00:34:48,800 --> 00:34:49,360 advanced method 946 00:34:51,540 --> 00:34:52,880 like with the timing channel 947 00:34:52,880 --> 00:34:55,080 stuff. If someone 948 00:34:55,480 --> 00:34:56,800 was attempting to communicate by 949 00:34:56,800 --> 00:34:58,820 using timing, like there was a whole bunch of 950 00:34:58,820 --> 00:35:00,900 requests and then not a few, not many 951 00:35:00,900 --> 00:35:02,180 and then a whole bunch and then not many. 952 00:35:02,920 --> 00:35:04,760 You could use a pump method where basically 953 00:35:05,640 --> 00:35:06,580 your router or something 954 00:35:06,580 --> 00:35:08,220 collects a whole bunch of data for a while 955 00:35:08,220 --> 00:35:10,940 and then sends it all out in a burst. Kind of like it fills it up 956 00:35:10,940 --> 00:35:12,040 and then empties out the queue right away. 957 00:35:12,640 --> 00:35:14,860 Granted this costs a lot of resources but it can help to prevent 958 00:35:14,860 --> 00:35:16,900 that sort of stuff but that's more of a theoretical type thing. 959 00:35:19,180 --> 00:35:20,800 And one thing to keep in mind is that you can't 960 00:35:20,800 --> 00:35:22,800 close all covert channels. If you're letting 961 00:35:22,800 --> 00:35:24,840 someone communicate data back and forth 962 00:35:24,840 --> 00:35:26,200 they can get covert data through. 963 00:35:26,560 --> 00:35:28,820 All you can hope to do is decrease the bandwidth 964 00:35:29,720 --> 00:35:30,980 and increase the difficulty 965 00:35:30,980 --> 00:35:32,900 of actually using covert channels 966 00:35:32,920 --> 00:35:34,480 to the point where it becomes infeasible. 967 00:35:37,720 --> 00:35:38,900 So now a few implementation 968 00:35:38,900 --> 00:35:41,000 issues if you actually were to try 969 00:35:41,000 --> 00:35:42,840 to go out and implement these covert channels. 970 00:35:43,320 --> 00:35:44,840 First of all, you need to have encryption 971 00:35:44,840 --> 00:35:46,640 in there at some level. Otherwise 972 00:35:46,640 --> 00:35:48,600 the quote randomness that you're stuffing back in 973 00:35:49,180 --> 00:35:50,260 aren't going to be very random. 974 00:35:50,740 --> 00:35:52,760 You need to have some way of telling whether the data is 975 00:35:52,760 --> 00:35:54,880 transmitted or not. You need to be able 976 00:35:54,880 --> 00:35:56,860 to index into the data and say what data is being 977 00:35:56,860 --> 00:35:59,020 transmitted. And then of course you have to consider 978 00:35:59,020 --> 00:36:00,780 the age-old issue of reliability versus 979 00:36:00,780 --> 00:36:01,160 bandwidth. 980 00:36:04,480 --> 00:36:05,460 So now first of all, 981 00:36:05,540 --> 00:36:06,500 encryption is a key component. 982 00:36:07,560 --> 00:36:08,900 You have to use good encryption 983 00:36:08,900 --> 00:36:10,700 in order to ensure that all these channels 984 00:36:10,700 --> 00:36:12,780 are secure. If your encryption is flawed 985 00:36:12,780 --> 00:36:14,620 somehow, say you're doing something like some 986 00:36:15,220 --> 00:36:17,000 shift cipher, then 987 00:36:17,000 --> 00:36:18,940 you're using the initial sequence number 988 00:36:19,700 --> 00:36:20,360 covert channel, 989 00:36:20,580 --> 00:36:21,960 then someone could look at the 990 00:36:23,220 --> 00:36:24,960 sequence numbers and tell that they 991 00:36:24,960 --> 00:36:26,680 weren't very random, see some sort of patterns 992 00:36:26,680 --> 00:36:28,980 emerging in them, and see that something is going on. 993 00:36:30,280 --> 00:36:30,860 And also 994 00:36:30,860 --> 00:36:32,240 if you want to use a secure covert channel, 995 00:36:32,920 --> 00:36:34,480 you need encryption because you have to assume 996 00:36:34,480 --> 00:36:36,240 that your covert channel is well known. 997 00:36:36,480 --> 00:36:38,220 Everything I'm talking about today is well known. 998 00:36:38,260 --> 00:36:40,640 It's been published in papers and discussed for ages. 999 00:36:40,960 --> 00:36:42,240 And I'm just kind of presenting it here. 1000 00:36:42,420 --> 00:36:43,940 So you have to assume that your attackers, 1001 00:36:44,100 --> 00:36:46,560 or the people monitoring you, also of course 1002 00:36:46,560 --> 00:36:48,780 know about it. And probably have teams of people 1003 00:36:48,780 --> 00:36:49,360 working on it. 1004 00:36:50,700 --> 00:36:52,560 And another sort of side issue 1005 00:36:52,560 --> 00:36:54,620 with encryption that you have to keep in mind 1006 00:36:54,620 --> 00:36:56,620 is you have to ensure that you don't transmit 1007 00:36:56,620 --> 00:36:58,540 the same ciphertext over and over again. 1008 00:37:00,120 --> 00:37:00,880 Like say you just 1009 00:37:00,880 --> 00:37:02,780 set up some sort of public key encryption system 1010 00:37:03,400 --> 00:37:04,480 and you were just 1011 00:37:04,480 --> 00:37:06,000 encrypting the data you were sending out 1012 00:37:06,000 --> 00:37:07,460 with the recipient's public key. 1013 00:37:08,180 --> 00:37:10,240 Say you sent out the same message repeatedly 1014 00:37:10,240 --> 00:37:12,220 a few times. You know, a message like 1015 00:37:12,220 --> 00:37:14,640 hi, do you want to go get lunch today or something like that. 1016 00:37:14,800 --> 00:37:16,060 But you sent it out every couple days 1017 00:37:16,060 --> 00:37:18,560 and there was no timestamp or anything in there like that. 1018 00:37:19,560 --> 00:37:20,980 And so it was always the same message. 1019 00:37:21,520 --> 00:37:22,560 And if you were sending out 1020 00:37:22,560 --> 00:37:24,940 with the sequence number method, then they would see 1021 00:37:24,940 --> 00:37:26,660 maybe, they would see this 1022 00:37:26,660 --> 00:37:28,500 repetition of initial sequence numbers happen 1023 00:37:28,500 --> 00:37:30,280 and they would know something was going on. 1024 00:37:32,520 --> 00:37:32,880 So 1025 00:37:32,920 --> 00:37:34,720 one sort of thing you could do to this is use 1026 00:37:34,720 --> 00:37:36,640 some sort of cipher, maybe a stream cipher or something. 1027 00:37:37,180 --> 00:37:38,700 And in addition to 1028 00:37:38,700 --> 00:37:40,200 using a key with it, you could somehow 1029 00:37:40,740 --> 00:37:42,780 add in a common time 1030 00:37:42,780 --> 00:37:44,360 that you both share, maybe even just the day 1031 00:37:44,360 --> 00:37:46,300 to help try to alleviate the problem of that. 1032 00:37:49,420 --> 00:37:50,220 And so now 1033 00:37:50,220 --> 00:37:52,020 how do you tell the person 1034 00:37:52,420 --> 00:37:54,660 that you're sending data to if the data's really 1035 00:37:54,660 --> 00:37:56,900 being transmitted? Because if you're just 1036 00:37:56,900 --> 00:37:58,140 engaging in daily 1037 00:37:58,900 --> 00:38:00,560 day-to-day conversation with this person 1038 00:38:00,560 --> 00:38:01,720 or daily day-to-day network 1039 00:38:03,400 --> 00:38:04,680 topic, you're probably not sending 1040 00:38:04,680 --> 00:38:06,840 covert data the entire time. You probably don't have that much 1041 00:38:06,840 --> 00:38:07,660 covert stuff to say. 1042 00:38:08,860 --> 00:38:10,780 So one thing you could do is whenever 1043 00:38:10,780 --> 00:38:13,060 you send a group of data, then send a checksum at the end. 1044 00:38:13,180 --> 00:38:14,660 This also provides some reliability 1045 00:38:14,660 --> 00:38:16,820 and things of that nature. And then all 1046 00:38:16,820 --> 00:38:18,280 the receiver would do is shift through the data, 1047 00:38:18,700 --> 00:38:20,700 look at the data, and look at the next little bit of data 1048 00:38:20,700 --> 00:38:22,820 and see if that was a valid checksum from the previous data. 1049 00:38:24,680 --> 00:38:26,820 In this case, you have to make sure that the checksum 1050 00:38:26,820 --> 00:38:28,680 is securely keyed, because otherwise 1051 00:38:28,680 --> 00:38:30,280 an attacker could do the same exact thing, 1052 00:38:30,440 --> 00:38:32,900 shift through the data, look for the checksum, and find 1053 00:38:32,920 --> 00:38:34,400 out if there was some sort of covert communication 1054 00:38:35,060 --> 00:38:35,720 going on. 1055 00:38:36,740 --> 00:38:38,820 Another thing you could do is some sort of 1056 00:38:38,820 --> 00:38:40,640 magic flag that the receiver watches for, 1057 00:38:42,180 --> 00:38:42,860 send it encrypted, 1058 00:38:43,400 --> 00:38:44,860 do the same thing, and 1059 00:38:44,860 --> 00:38:46,840 the receiver would examine the traffic repeatedly and look 1060 00:38:46,840 --> 00:38:48,820 for this sort of, you know, maybe it's like a sin 1061 00:38:48,820 --> 00:38:50,420 essentially in TCP that says, hey, I'm going to start 1062 00:38:50,420 --> 00:38:52,620 giving you data. I want to set up a connection 1063 00:38:52,620 --> 00:38:54,860 and everything. Another thing you could do is 1064 00:38:54,860 --> 00:38:56,640 just constantly transmit covert data. 1065 00:38:56,820 --> 00:38:58,660 And so they get the same data over and over again, 1066 00:38:58,820 --> 00:39:00,860 which wouldn't make much sense for binaries 1067 00:39:00,860 --> 00:39:02,900 or things like that, but are simple text messages 1068 00:39:03,920 --> 00:39:05,400 could probably work, 1069 00:39:05,500 --> 00:39:06,540 because then the receiver would know, 1070 00:39:06,620 --> 00:39:08,280 oh, I'm getting the same message over and over again, 1071 00:39:08,460 --> 00:39:09,680 but they really just send it once. 1072 00:39:11,420 --> 00:39:12,640 So now how can you tell 1073 00:39:12,640 --> 00:39:15,000 the receiver what data is actually being transmitted? 1074 00:39:15,920 --> 00:39:17,120 You need to have some sort of 1075 00:39:17,120 --> 00:39:18,880 index into the data, because you're 1076 00:39:18,880 --> 00:39:20,160 probably not going to be able to send your entire 1077 00:39:20,160 --> 00:39:22,620 covert message in one packet or one segment 1078 00:39:22,620 --> 00:39:23,240 or one whatever. 1079 00:39:24,940 --> 00:39:26,700 So one thing you could do is 1080 00:39:26,700 --> 00:39:27,880 just transmit the data sequentially. 1081 00:39:28,140 --> 00:39:30,080 Just go through and send it out bit by bit, 1082 00:39:30,680 --> 00:39:32,660 and hopefully they get all this sequence 1083 00:39:32,920 --> 00:39:34,300 that they get everything and they start listening 1084 00:39:34,300 --> 00:39:35,660 at the same time that you start sending. 1085 00:39:36,980 --> 00:39:38,860 However, another solution you could use 1086 00:39:38,860 --> 00:39:40,940 is take an unmodified portion 1087 00:39:40,940 --> 00:39:42,520 of the header and some of the data 1088 00:39:42,520 --> 00:39:45,020 and use it as a nonce. And take this nonce 1089 00:39:45,020 --> 00:39:46,740 and then take a hash of it 1090 00:39:46,740 --> 00:39:48,380 and then modulate that hash 1091 00:39:49,380 --> 00:39:50,940 with the total size of 1092 00:39:50,940 --> 00:39:52,520 whatever the data you're transmitting 1093 00:39:52,520 --> 00:39:54,240 to get an index into that data 1094 00:39:54,240 --> 00:39:56,280 and transmit data beginning at that index. 1095 00:39:58,300 --> 00:39:59,100 And that works, 1096 00:39:59,280 --> 00:40:00,700 but the problem with that is that 1097 00:40:00,700 --> 00:40:02,600 you don't get to choose the bits that you're transmitting. 1098 00:40:02,920 --> 00:40:04,880 So you have to sort of transmit 1099 00:40:04,880 --> 00:40:06,880 essentially random bits out of the data 1100 00:40:06,880 --> 00:40:08,280 that you're sending. And eventually 1101 00:40:08,760 --> 00:40:09,600 you'll probably transmit 1102 00:40:10,440 --> 00:40:11,420 all of the bits. 1103 00:40:11,740 --> 00:40:18,680 So can you guys hear me in the back still? 1104 00:40:19,740 --> 00:40:20,240 Kind of? 1105 00:40:21,440 --> 00:40:21,840 Alright. 1106 00:40:22,840 --> 00:40:24,720 You could implement more advanced protocols 1107 00:40:25,420 --> 00:40:26,800 over it. You could have some sort of 1108 00:40:26,800 --> 00:40:28,680 TCP over the covert channels, 1109 00:40:28,800 --> 00:40:30,760 whatever you want, that provides more 1110 00:40:30,760 --> 00:40:32,400 reliability and robustness. 1111 00:40:33,220 --> 00:40:34,560 And of course the age-old debate 1112 00:40:34,560 --> 00:40:36,340 of reliability versus bandwidth. 1113 00:40:38,060 --> 00:40:38,700 If you 1114 00:40:39,260 --> 00:40:40,500 use a hash of the nonce 1115 00:40:40,500 --> 00:40:42,260 you get pretty high reliability 1116 00:40:42,260 --> 00:40:44,320 because you're sending the same data over and over again. 1117 00:40:44,560 --> 00:40:46,400 They don't have to start listening at the same time. 1118 00:40:46,660 --> 00:40:48,500 But you get much lower bandwidth because 1119 00:40:48,500 --> 00:40:50,660 you're sending the same information over and over again. 1120 00:40:52,200 --> 00:40:52,800 However, it is 1121 00:40:52,800 --> 00:40:54,000 a pretty simple solution to implement. 1122 00:40:55,580 --> 00:40:56,880 Another thing, if you did the 1123 00:40:56,880 --> 00:40:58,060 transmitting data sequentially, 1124 00:40:58,200 --> 00:41:00,280 it would provide high bandwidth, you know, 1125 00:41:00,300 --> 00:41:01,660 perhaps the highest bandwidth you could achieve, 1126 00:41:02,920 --> 00:41:03,880 but it would be lower reliability 1127 00:41:03,880 --> 00:41:05,440 if you started listening at the same time 1128 00:41:05,440 --> 00:41:06,620 and get everything in the right order. 1129 00:41:08,440 --> 00:41:10,580 Another thing you could do is implement a more advanced protocol 1130 00:41:10,580 --> 00:41:12,660 that would kind of trade off 1131 00:41:12,660 --> 00:41:14,200 some of the bandwidth for more reliability 1132 00:41:14,200 --> 00:41:16,320 and more, I guess, acknowledgement 1133 00:41:16,320 --> 00:41:17,680 that it was actually received. 1134 00:41:21,340 --> 00:41:22,560 Alright, now onto the 1135 00:41:22,560 --> 00:41:24,620 get done with all the boring stuff I guess 1136 00:41:24,620 --> 00:41:26,740 or all the sort of just introduction 1137 00:41:26,740 --> 00:41:28,260 to TCP channels 1138 00:41:28,260 --> 00:41:30,500 and talk a little bit about the tool that I wrote. 1139 00:41:31,300 --> 00:41:32,720 This tool is just a 1140 00:41:32,920 --> 00:41:33,500 kernel module 1141 00:41:34,300 --> 00:41:36,360 useless proc that modifies 1142 00:41:36,360 --> 00:41:38,140 outgoing TCP traffic by replacing 1143 00:41:38,700 --> 00:41:40,100 the hard start transmit function. 1144 00:41:40,620 --> 00:41:42,740 It's based off actually some code I got 1145 00:41:42,740 --> 00:41:44,400 from the people that did the timestamp cover channel. 1146 00:41:45,160 --> 00:41:46,960 It's all GPL and everything like that. 1147 00:41:47,480 --> 00:41:48,600 The receiving component 1148 00:41:48,600 --> 00:41:50,700 simply sniffs incoming traffic 1149 00:41:50,700 --> 00:41:52,200 using libpcap and 1150 00:41:52,200 --> 00:41:54,540 looks for the cover channels in the data 1151 00:41:54,540 --> 00:41:56,620 and dumps it out to the user. 1152 00:41:58,960 --> 00:42:00,860 Cover channels that I've implemented in it, 1153 00:42:00,920 --> 00:42:02,800 I've implemented the initial sequence number 1154 00:42:03,700 --> 00:42:05,060 TCP timestamp load modulation 1155 00:42:05,580 --> 00:42:05,980 with 1156 00:42:06,700 --> 00:42:08,620 high speed protection, which is optional 1157 00:42:08,620 --> 00:42:10,160 so it'll drop it down to random 1158 00:42:10,680 --> 00:42:12,600 amounts so that you're not vulnerable to the high speed attack. 1159 00:42:13,740 --> 00:42:14,700 Urgent pointer channel 1160 00:42:15,660 --> 00:42:16,740 IP type of service 1161 00:42:16,740 --> 00:42:18,360 and using TCP reserved bits. 1162 00:42:18,760 --> 00:42:20,900 And all these options, you can turn them on and off 1163 00:42:20,900 --> 00:42:22,720 right now they're just with pound defines 1164 00:42:22,720 --> 00:42:23,820 and you have to recompile it. 1165 00:42:24,540 --> 00:42:26,720 But the interface isn't exactly the best thing. 1166 00:42:27,240 --> 00:42:28,400 In the world, whenever you have to 1167 00:42:28,400 --> 00:42:30,420 whenever you want to send data you also have to cat it out to 1168 00:42:30,420 --> 00:42:32,260 slash proc cc. 1169 00:42:32,920 --> 00:42:33,380 It goes out there. 1170 00:42:34,860 --> 00:42:35,900 That's something I'm going to work on. 1171 00:42:37,480 --> 00:42:39,000 Two different types of data indexing 1172 00:42:39,000 --> 00:42:39,860 that I've implemented in there. 1173 00:42:40,300 --> 00:42:42,280 Just straight up sequential transmission of the data 1174 00:42:42,280 --> 00:42:44,660 takes the data, encodes it in there, sends it out. 1175 00:42:45,700 --> 00:42:46,640 Other type is 1176 00:42:47,160 --> 00:42:48,940 SHA of the unmodified portions 1177 00:42:48,940 --> 00:42:49,740 of the header 1178 00:42:49,740 --> 00:42:52,080 and the data uses an index into the data 1179 00:42:52,080 --> 00:42:53,300 and the SHA can be keyed. 1180 00:42:54,220 --> 00:42:55,680 And once again these are both options 1181 00:42:55,680 --> 00:42:58,320 and for all the options both the sender and the receiver 1182 00:42:58,880 --> 00:42:59,940 have to agree on 1183 00:43:00,580 --> 00:43:02,380 what exact configuration you're using. 1184 00:43:02,920 --> 00:43:03,940 They know where to look for the coverage channels. 1185 00:43:04,240 --> 00:43:06,440 They know what sort of indexing you're using 1186 00:43:06,440 --> 00:43:07,500 and things of that nature. 1187 00:43:10,460 --> 00:43:12,620 So some work that still has to be done. 1188 00:43:13,000 --> 00:43:15,140 Need to improve the user interface 1189 00:43:15,140 --> 00:43:16,620 so that people might actually use it. 1190 00:43:17,360 --> 00:43:18,980 Probably most people aren't willing to set up 1191 00:43:18,980 --> 00:43:19,980 nice little shell scripts to 1192 00:43:20,880 --> 00:43:22,160 send out their data off to 1193 00:43:23,220 --> 00:43:23,960 the device. 1194 00:43:24,940 --> 00:43:26,760 Maybe make an iSQL or something like that 1195 00:43:26,760 --> 00:43:29,080 if anyone is looking to help with it 1196 00:43:29,080 --> 00:43:31,040 and knows a bit about 1197 00:43:31,040 --> 00:43:32,580 KDE or GNOME programming or something 1198 00:43:32,920 --> 00:43:33,520 shoot me off an email. 1199 00:43:34,200 --> 00:43:35,840 I'm more than happy to get some help with that. 1200 00:43:36,980 --> 00:43:38,400 Want to build some encryption into it 1201 00:43:38,860 --> 00:43:41,080 so that you can basically just send in a message 1202 00:43:41,620 --> 00:43:42,860 and maybe give it a key 1203 00:43:43,700 --> 00:43:44,300 or maybe 1204 00:43:44,300 --> 00:43:46,760 you know with a symmetric key or public key or whatever 1205 00:43:46,760 --> 00:43:48,540 and then it sends it off for you so that it 1206 00:43:48,540 --> 00:43:50,440 once again becomes actually much more usable 1207 00:43:50,900 --> 00:43:52,560 rather than having to have your own crypto layer 1208 00:43:52,560 --> 00:43:53,180 on top of it. 1209 00:43:55,580 --> 00:43:56,640 Adding a few more options 1210 00:43:56,640 --> 00:43:57,680 for more coverage channels 1211 00:43:58,220 --> 00:43:59,280 so that you can start to get 1212 00:44:00,000 --> 00:44:01,300 even better bandwidth out of it 1213 00:44:04,120 --> 00:44:05,000 if you're just 1214 00:44:05,000 --> 00:44:06,140 worried about someone spotting 1215 00:44:06,140 --> 00:44:07,200 what's going on. 1216 00:44:08,960 --> 00:44:10,820 Also it would be nice to go out there and analyze 1217 00:44:11,340 --> 00:44:12,920 how a variety of different routers 1218 00:44:12,920 --> 00:44:14,700 and IDS's handle 1219 00:44:14,700 --> 00:44:15,800 or detect this 1220 00:44:16,800 --> 00:44:19,000 sometimes illegal data like setting the reserved bits 1221 00:44:19,720 --> 00:44:20,740 maybe write a little 1222 00:44:20,740 --> 00:44:22,020 program that would go out there 1223 00:44:22,020 --> 00:44:23,180 and send it out 1224 00:44:23,180 --> 00:44:26,520 send out bad traffic like send out reserved bits 1225 00:44:26,520 --> 00:44:28,100 and see what the other end got 1226 00:44:28,100 --> 00:44:29,860 and then do that in sort of a manner 1227 00:44:30,320 --> 00:44:32,280 and then report back to the user exactly 1228 00:44:32,920 --> 00:44:34,320 what sort of coverage channels they can use in that link 1229 00:44:34,920 --> 00:44:36,560 and have a few little scripts that kind of do it 1230 00:44:36,560 --> 00:44:38,060 but they're not very polished in any way 1231 00:44:39,080 --> 00:44:40,440 and maybe build sort of a database 1232 00:44:41,560 --> 00:44:43,140 of different sort of typical ones 1233 00:44:43,140 --> 00:44:44,820 that work and typical backlinks 1234 00:44:44,820 --> 00:44:45,660 that you can pass them through 1235 00:44:46,240 --> 00:44:48,280 and different normalizers and how they treat it 1236 00:44:49,600 --> 00:44:50,980 It'd also be good to implement 1237 00:44:50,980 --> 00:44:52,960 some sort of more robust protocol 1238 00:44:52,960 --> 00:44:54,360 for the data transmission 1239 00:44:54,920 --> 00:44:56,260 that handles indexing and 1240 00:44:56,780 --> 00:44:58,400 reliability and all that sort of stuff 1241 00:44:59,000 --> 00:45:00,980 something similar to TCP or something like that 1242 00:45:02,380 --> 00:45:02,780 Um 1243 00:45:02,920 --> 00:45:03,160 so 1244 00:45:04,320 --> 00:45:06,340 you can go ahead and jump on the web 1245 00:45:06,340 --> 00:45:08,160 as soon as I actually get an internet connection 1246 00:45:08,160 --> 00:45:09,940 The wireless connection has been flaky 1247 00:45:09,940 --> 00:45:11,580 have people been able to get it to work today? 1248 00:45:12,940 --> 00:45:14,920 Is there something magical 1249 00:45:14,920 --> 00:45:15,600 you have to do like 1250 00:45:15,600 --> 00:45:17,920 some magic word or something you have to say? 1251 00:45:19,000 --> 00:45:19,500 In caps? 1252 00:45:20,320 --> 00:45:22,220 I tried that and it still can't get IP 1253 00:45:22,220 --> 00:45:24,420 Ah yeah 1254 00:45:24,900 --> 00:45:25,480 I'm lazy 1255 00:45:26,740 --> 00:45:29,040 Alright and before I let you guys all go 1256 00:45:29,560 --> 00:45:30,820 kind of a shameless plug 1257 00:45:31,420 --> 00:45:32,680 the open source 1258 00:45:32,920 --> 00:45:33,840 vulnerability database 1259 00:45:33,840 --> 00:45:36,080 is a project that's just starting up 1260 00:45:36,080 --> 00:45:38,240 and it's going to be a 1261 00:45:38,240 --> 00:45:40,060 vulnerability database that's run by the community 1262 00:45:40,060 --> 00:45:41,980 and contains information on 1263 00:45:41,980 --> 00:45:44,560 publicly known vulnerabilities out there in the wild 1264 00:45:44,560 --> 00:45:45,260 Um 1265 00:45:45,900 --> 00:45:48,700 different than CVE it'll be more than just a naming system 1266 00:45:48,700 --> 00:45:50,740 but it'll also contain information on 1267 00:45:50,740 --> 00:45:53,020 the vulnerabilities, perhaps exploits for them 1268 00:45:53,020 --> 00:45:54,480 ways to detect the vulnerability 1269 00:45:54,480 --> 00:45:56,420 what systems are affected, things like that 1270 00:45:56,420 --> 00:45:58,560 and the website for that is 1271 00:45:58,560 --> 00:46:01,800 www.openviosvdb.org 1272 00:46:01,800 --> 00:46:02,740 and it's not quite 1273 00:46:02,920 --> 00:46:04,780 operational yet but it's going up there 1274 00:46:05,600 --> 00:46:06,120 Question? 1275 00:46:06,320 --> 00:46:08,420 I had one question from back before 1276 00:46:08,420 --> 00:46:08,780 Sure 1277 00:46:08,780 --> 00:46:12,360 You said it doesn't pass through all routers 1278 00:46:12,360 --> 00:46:15,140 will it actually disrupt SSH traffic? 1279 00:46:15,560 --> 00:46:16,900 It won't actually disrupt it 1280 00:46:16,900 --> 00:46:18,480 We'll still see that 1281 00:46:18,480 --> 00:46:20,400 Right you'll still see this going on 1282 00:46:20,720 --> 00:46:22,380 SSH just tries to set the delay bit 1283 00:46:22,800 --> 00:46:24,980 for keystrokes so that it goes through faster 1284 00:46:24,980 --> 00:46:26,480 And the second point is 1285 00:46:26,480 --> 00:46:28,620 do you think something like this could be implemented 1286 00:46:28,620 --> 00:46:30,820 on a peer GCP IP stack 1287 00:46:30,820 --> 00:46:32,080 like 2000 or XP? 1288 00:46:32,920 --> 00:46:33,760 I imagine it could 1289 00:46:33,760 --> 00:46:35,460 I mean I have no idea how to 1290 00:46:35,460 --> 00:46:37,660 but it would be really cool if it could be 1291 00:46:37,660 --> 00:46:39,380 Maybe we've just got the source to Windows 1292 00:46:39,840 --> 00:46:40,840 pretty easy to add that 1293 00:46:40,840 --> 00:46:42,660 You have the source on your website? 1294 00:46:43,200 --> 00:46:44,580 It will be as soon as I get a net connection 1295 00:46:44,580 --> 00:46:47,640 All the source and the tool to detect the TCP 1296 00:46:49,240 --> 00:46:50,120 timestamp channel 1297 00:46:50,120 --> 00:46:52,020 and the presentation 1298 00:46:52,020 --> 00:46:52,680 all that stuff 1299 00:46:52,680 --> 00:46:57,540 It's supposed to be a peer GCP 1300 00:46:57,540 --> 00:46:58,380 Hmm 1301 00:46:59,160 --> 00:46:59,600 Cool