1 00:00:30,000 --> 00:00:30,620 We'll be right back. 2 00:01:09,880 --> 00:01:11,460 We'll be right back. 3 00:01:39,080 --> 00:01:40,660 We'll be right back. 4 00:02:00,000 --> 00:02:01,180 We'll be right back. 5 00:02:30,000 --> 00:02:42,860 Once you have that path independently encrypt and independently authenticate with your final endpoint, and finally, once you have that link set up, forward services over that end-to-end setup. 6 00:02:44,540 --> 00:02:50,840 Now, one of the big things that I've done when I've been working on SSH is making it actually usable to do all these things. 7 00:02:51,160 --> 00:02:52,460 Very pragmatic law. 8 00:02:52,600 --> 00:02:55,300 If it isn't usable, nobody uses it. 9 00:02:55,440 --> 00:02:59,720 Now, I'm spending some extra time talking about this because a lot of people here who've... 10 00:02:59,720 --> 00:03:08,920 who've ever worked in corporate America have seen really nice, really expensive systems that are a complete useless thing because nobody can figure out how to get them to do anything. 11 00:03:09,080 --> 00:03:16,720 And everyone just makes little nice hacks around it, cheats around the system, and management accepts it because at the end of the day, the connections actually work. 12 00:03:16,860 --> 00:03:19,040 And business does not exist for security. 13 00:03:19,180 --> 00:03:20,980 Business exists to actually make money. 14 00:03:22,380 --> 00:03:22,820 Basics. 15 00:03:22,860 --> 00:03:24,020 Bringing people up to speed. 16 00:03:24,200 --> 00:03:24,700 Don't worry. 17 00:03:24,800 --> 00:03:26,080 This is not another talk about... 18 00:03:26,080 --> 00:03:29,300 Ooh, we're going to talk about how to make a link simple local port forward today. 19 00:03:29,300 --> 00:03:30,680 We're going to go a little bit beyond that. 20 00:03:31,620 --> 00:03:37,640 But for those of the audience who don't fully know about OpenSSH, we're going to start a little from scratch. 21 00:03:39,020 --> 00:03:42,440 First, SSH exists to go ahead and forward shells. 22 00:03:42,720 --> 00:03:45,040 Just like Telnet, you go in, you go to the host. 23 00:03:45,420 --> 00:03:47,220 SSH actually does it a bit better. 24 00:03:47,320 --> 00:03:53,160 It clears up a lot of the old issues with regards to spacing, with end curses. 25 00:03:53,260 --> 00:03:54,800 It clears most of that up. 26 00:03:55,000 --> 00:03:58,880 It also does X if you're actually still using X, which... 27 00:03:59,480 --> 00:03:59,920 Anyway. 28 00:04:01,560 --> 00:04:07,980 No, basically, you SSH into a host, X magically works if you have X forwarding set up correctly. 29 00:04:08,440 --> 00:04:13,080 Now, the reason X is not set up by default anymore is because there's a pretty nasty security hole. 30 00:04:13,540 --> 00:04:19,800 In the X protocol, every character that's sent and everything that's on your screen is actually accessible by the other side. 31 00:04:20,060 --> 00:04:25,260 So if you connect it to a rooted server, that server will be able to see not just the text that you sent, 32 00:04:25,460 --> 00:04:28,900 it would be able to see everything on your screen and every character that you entered. 33 00:04:29,300 --> 00:04:33,720 So, automatic X support was disabled in modern versions of OpenSSH. 34 00:04:34,620 --> 00:04:41,040 Also, OpenSSH allows you to execute single commands on remote hosts and have those appear as if it's local. 35 00:04:41,280 --> 00:04:44,500 And finally, OpenSSH forwards single ports at a time. 36 00:04:44,840 --> 00:04:47,660 The bullshit geek definition of all this is, quote, 37 00:04:47,740 --> 00:04:51,140 all SSH forwards are non-exclusive and non-transparent figments of user space. 38 00:04:51,440 --> 00:04:52,080 Ignore that. 39 00:04:53,500 --> 00:04:54,560 SSH under Windows. 40 00:04:54,840 --> 00:04:59,280 I know a lot of people don't particularly like Microsoft, but the reality is, cross-platform, 41 00:04:59,300 --> 00:05:04,500 the ability to use the same solution on every platform, including Win32, is pretty nice. 42 00:05:04,860 --> 00:05:06,860 So there is a package named SigWin. 43 00:05:08,020 --> 00:05:12,420 That is a Unix prompt on a Windows machine. 44 00:05:12,720 --> 00:05:15,100 It is moderately evil, but it is nice. 45 00:05:15,940 --> 00:05:21,200 Uname works, VI works, yes, you can actually control Z out of your commands and it'll work 46 00:05:21,200 --> 00:05:26,200 pretty much, if you're familiar with Unix, you can finally have a useful Unix desktop. 47 00:05:27,180 --> 00:05:29,280 The reason I use it primarily is... 48 00:05:29,300 --> 00:05:33,820 I get an actual SSH client, I don't have to deal with secure CRT, I don't have to deal 49 00:05:33,820 --> 00:05:37,460 with 80,000 Windows popping up, I actually get a genuine system. 50 00:05:42,380 --> 00:05:43,380 You got it. 51 00:05:47,380 --> 00:05:48,000 This better? 52 00:05:51,340 --> 00:05:52,460 Thank you for telling me. 53 00:05:52,920 --> 00:05:55,220 If anything else idiotic happens, please notify me. 54 00:05:56,180 --> 00:05:56,820 Forwarding shells. 55 00:05:57,460 --> 00:05:57,900 Syntax. 56 00:05:57,900 --> 00:05:58,340 Very simple. 57 00:05:58,480 --> 00:05:58,920 SSH. 58 00:05:58,960 --> 00:05:59,280 User-friendly. 59 00:05:59,300 --> 00:05:59,820 User at host. 60 00:06:00,020 --> 00:06:00,400 Encryptions. 61 00:06:00,480 --> 00:06:00,960 Triple-desk. 62 00:06:00,960 --> 00:06:01,280 Blowfish. 63 00:06:01,360 --> 00:06:01,680 AES. 64 00:06:01,800 --> 00:06:06,100 Authentication is your standard, either RSA or DSA, or it uses passwords. 65 00:06:06,800 --> 00:06:13,880 Key generation is pretty trivial, either for SSH1, do SSH keygen, for SSH2, SSH-keygen-DSA. 66 00:06:15,340 --> 00:06:17,360 Don't worry, you don't need to try to write all this down. 67 00:06:17,560 --> 00:06:21,700 The slides will be made available on www.docspara.com. 68 00:06:22,260 --> 00:06:26,440 But basically, this is how you set up a key so that you can log into a remote machine, 69 00:06:26,640 --> 00:06:29,200 and this is how you send that key to the other side. 70 00:06:30,280 --> 00:06:31,920 That's what I have set up on this slide. 71 00:06:32,220 --> 00:06:32,940 Forwarding commands. 72 00:06:33,660 --> 00:06:34,680 SSH user at host. 73 00:06:34,780 --> 00:06:36,100 Simply CLS. 74 00:06:36,120 --> 00:06:39,600 Simply append at the end of your string the command that you wish to run. 75 00:06:40,280 --> 00:06:45,380 SSH is fully 8-bit clean, which basically means that you really can run arbitrary commands, 76 00:06:45,660 --> 00:06:47,920 and they will fully proxy successfully. 77 00:06:48,580 --> 00:06:53,620 Now this is going to be used later so that we can go into a host and set up links through 78 00:06:53,620 --> 00:06:57,220 it using the 8-bit clean functionality, so this is actually extraordinarily useful. 79 00:06:58,280 --> 00:06:59,060 CD burning. 80 00:06:59,060 --> 00:06:59,920 Starting over SSH. 81 00:07:00,290 --> 00:07:06,120 I apologize, I actually can't demonstrate this, but the general idea is the standard 82 00:07:06,120 --> 00:07:12,060 command to burn a CD is simply make ISO file system, throw on the Joliet index of names, 83 00:07:12,260 --> 00:07:17,380 throw on the Rockridge index of names, pipe that over to the app CD record, tell CD record 84 00:07:17,380 --> 00:07:22,380 how fast you want it to burn, tell CD record the SCSI ID of your machine, and simply tell 85 00:07:22,380 --> 00:07:28,760 it, now that you have this information, pick up the ISO image. 86 00:07:29,060 --> 00:07:34,280 Off of standard in, of course, standard in is being fed by the make ISO file system 87 00:07:34,280 --> 00:07:34,660 command. 88 00:07:36,040 --> 00:07:41,760 To SSH enable that, all we do is just add in SSH user at host before CD record. 89 00:07:42,100 --> 00:07:48,340 All we do is basically change, tell our operating system, instead of running a local CD record, 90 00:07:48,540 --> 00:07:49,400 run it over there. 91 00:07:49,660 --> 00:07:53,600 The convenient thing now is instead of having 30 machines with 30 burners in them, because 92 00:07:53,600 --> 00:07:57,520 you have 30 people who need to use the same thing, there's one machine. 93 00:07:57,640 --> 00:07:58,680 It has one burner. 94 00:07:59,060 --> 00:08:01,320 And everyone simply sends their files over to it. 95 00:08:01,420 --> 00:08:02,560 The encryption comes free. 96 00:08:02,660 --> 00:08:03,820 The authentication comes free. 97 00:08:03,920 --> 00:08:04,860 It's moderately convenient. 98 00:08:05,160 --> 00:08:09,260 Plus the fact that everything works under SIGWIN and works over Windows means you can 99 00:08:09,260 --> 00:08:13,860 have all your Windows desktops send files to the one Unix system with a burner. 100 00:08:14,040 --> 00:08:17,420 And nicely enough, that machine won't crash like this did earlier. 101 00:08:19,340 --> 00:08:20,820 File transfer without SCP. 102 00:08:21,080 --> 00:08:24,840 I don't know how familiar people are with SCP or SFTP, but they're pretty much both 103 00:08:24,840 --> 00:08:25,500 garbage. 104 00:08:25,720 --> 00:08:27,300 They rarely work. 105 00:08:27,400 --> 00:08:28,380 They get on your nerves. 106 00:08:29,700 --> 00:08:36,740 Basically, by executing simple standard Unix commands, cat, ls, tar, tail, maybe even dd, 107 00:08:36,880 --> 00:08:40,980 you can go ahead and you can actually implement pretty much everything that you'd want out 108 00:08:40,980 --> 00:08:43,140 of FTP in the SSH framework. 109 00:08:43,760 --> 00:08:47,600 I'm planning on implementing all of SFTP using nothing more than these commands. 110 00:08:47,780 --> 00:08:54,020 The advantage being finally transferring files using SSH will, any host that you can SSH 111 00:08:54,020 --> 00:08:56,580 into, you should eventually be able to transfer a file from. 112 00:08:56,720 --> 00:08:57,680 No matter what. 113 00:08:57,680 --> 00:09:02,000 No matter how much or how little is installed on it, the default software that's enabled 114 00:09:02,000 --> 00:09:03,440 will be sufficient. 115 00:09:05,100 --> 00:09:05,780 Typo? 116 00:09:08,680 --> 00:09:09,360 Typo? 117 00:09:11,760 --> 00:09:12,440 Typo? 118 00:09:13,160 --> 00:09:13,840 Typo? 119 00:09:14,460 --> 00:09:14,700 Typo? 120 00:09:15,320 --> 00:09:16,000 Typo? 121 00:09:16,000 --> 00:09:16,460 Typo? 122 00:09:16,460 --> 00:09:16,540 Typo? 123 00:09:25,740 --> 00:09:26,420 Typo? 124 00:09:27,680 --> 00:09:35,880 Local forward, listen on local 8000 to what the other side sees as the local host port, port 80. 125 00:09:37,120 --> 00:09:41,580 You can basically look at the syntax and separate it into listener versus location. 126 00:09:42,080 --> 00:09:43,780 Whatever comes first is the listener. 127 00:09:43,900 --> 00:09:45,440 It's where the listening port is. 128 00:09:45,540 --> 00:09:47,520 It's where new connections come from. 129 00:09:47,620 --> 00:09:50,780 If new connections come from my side, it's a local port forward. 130 00:09:50,920 --> 00:09:54,440 If new connections happen on the other side, it's a remote port forward. 131 00:09:55,840 --> 00:09:57,080 Limitations on port forwards. 132 00:09:57,220 --> 00:10:00,300 By default, only systems directly hosting the listener can connect to it. 133 00:10:00,700 --> 00:10:07,200 If I have a local listener on my machine and somebody on my same subnet wants to access it, by default, they can't. 134 00:10:07,240 --> 00:10:12,140 That way, people can't use me as a bouncing off point to whatever host that I happen to be connected to. 135 00:10:12,220 --> 00:10:13,680 For example, my mail server or whatnot. 136 00:10:14,320 --> 00:10:18,760 You can make local forwards public by using the dash G option to SSH. 137 00:10:19,000 --> 00:10:23,380 But remote ports have to be enabled using gateway ports on the server side. 138 00:10:23,740 --> 00:10:24,220 So. 139 00:10:24,440 --> 00:10:26,380 I can't go ahead and have my own. 140 00:10:27,800 --> 00:10:28,380 So, okay. 141 00:10:28,440 --> 00:10:29,840 I have a web server on my machine. 142 00:10:29,960 --> 00:10:32,300 I want my web server accessible on some other machine. 143 00:10:32,560 --> 00:10:40,320 I can make a remote port forward and I can say, make remote port 80 equal to my port 80. 144 00:10:40,620 --> 00:10:47,560 But the only machine that's actually going to be able to access that web server forward is going to be the machine that I connected to. 145 00:10:50,620 --> 00:10:51,560 Accessing port forwards. 146 00:10:51,640 --> 00:10:53,040 There are a couple ways to handle this. 147 00:10:53,160 --> 00:10:53,980 First of all. 148 00:10:53,980 --> 00:11:01,280 You actually just tell your application, go straight to 127.0.0.1 or perhaps you go ahead and you go into your host file. 149 00:11:01,440 --> 00:11:02,880 So, you basically preempt DNS. 150 00:11:03,260 --> 00:11:07,880 This is pretty inconvenient and all hosts that you connect to have to share the same IP. 151 00:11:08,620 --> 00:11:09,420 Then, it's flexible. 152 00:11:09,860 --> 00:11:13,280 Works for mail, works for SMTP, works for POP3, works for IMAP. 153 00:11:13,520 --> 00:11:16,400 Works if you're connecting to a single web server at a time. 154 00:11:16,540 --> 00:11:20,000 You can go ahead and you can have a web server redirected to 127.0.0.1. 155 00:11:20,000 --> 00:11:23,260 But it doesn't work too well when you have eight web servers that you want to connect to. 156 00:11:23,260 --> 00:11:25,240 Or you just want to connect to the web in general. 157 00:11:25,360 --> 00:11:28,600 You don't want to have to say in advance what machine you're trying to get to. 158 00:11:30,220 --> 00:11:34,620 Furthermore, the port forward methodology completely fails for stuff like FTP. 159 00:11:35,960 --> 00:11:36,400 Solution. 160 00:11:36,660 --> 00:11:37,700 Dynamic forwarding. 161 00:11:37,720 --> 00:11:40,960 This is an undocumented feature right now in OpenSSH 2.9. 162 00:11:42,160 --> 00:11:43,040 Dash D1080. 163 00:11:43,320 --> 00:11:46,620 It opens up a SOC server in the SSH client. 164 00:11:47,840 --> 00:11:53,240 Now, even though the SSH client goes ahead and demands that you in advance say where you want it to go. 165 00:11:53,260 --> 00:11:56,700 The protocol doesn't care. 166 00:11:56,940 --> 00:12:04,120 The protocol says when a TCP session is established, the destination is set at that time. 167 00:12:04,280 --> 00:12:09,820 If you have 10 TCP sessions, there are 10 opportunities for a destination to be established. 168 00:12:10,620 --> 00:12:16,080 So, it'd be really nice since every single time it could be different if applications can go ahead and say, 169 00:12:16,280 --> 00:12:19,940 yes, this one time I'm connecting to you, I'd like to be going to CNN. 170 00:12:20,220 --> 00:12:23,180 This one time I'm connecting to you, I'd like to be going to PacketStorm. 171 00:12:23,260 --> 00:12:24,860 This other time, and so on. 172 00:12:25,080 --> 00:12:29,040 Well, SOX is pretty much the simplest possible protocol for doing this. 173 00:12:29,180 --> 00:12:33,000 It's a few bytes at the beginning of a TCP session that basically go ahead and say, 174 00:12:33,160 --> 00:12:35,380 this is where I actually wanted to go. 175 00:12:36,300 --> 00:12:39,280 Now, I don't know how many people here have done SOX programming. 176 00:12:39,540 --> 00:12:43,180 SOX programming is so, so ridiculously overcomplicated. 177 00:12:43,180 --> 00:12:49,940 You use library preloads and link stuff in, and usually SOX goes ahead and reduces stability on the client side. 178 00:12:50,780 --> 00:12:52,320 It's eight bytes, people. 179 00:12:52,320 --> 00:12:58,460 If anyone here ever does a SOX client, please, just write the eight lines of code it takes to implement it. 180 00:13:00,500 --> 00:13:01,400 Application support. 181 00:13:01,620 --> 00:13:02,680 You get Internet Explorer. 182 00:13:02,840 --> 00:13:03,420 You get FTP. 183 00:13:03,580 --> 00:13:04,380 You get instant messengers. 184 00:13:04,600 --> 00:13:05,600 You get P2P clients. 185 00:13:05,800 --> 00:13:08,260 Napster worked on it when there still was a Napster. 186 00:13:09,380 --> 00:13:09,900 Dialpad. 187 00:13:10,020 --> 00:13:15,660 Yes, you actually do get some variant of voice over IP over SSH using dynamic forwarding. 188 00:13:15,740 --> 00:13:20,500 It's a generic solution to a very wide problem, which is, 189 00:13:20,500 --> 00:13:25,980 how do you dynamically set up, or how do you support protocols that have dynamic destinations 190 00:13:26,500 --> 00:13:30,260 that go to multiple sites, and this is basically the solution. 191 00:13:31,360 --> 00:13:32,220 False in the hack. 192 00:13:32,400 --> 00:13:33,980 It is not a full VPN solution. 193 00:13:34,240 --> 00:13:35,380 Your network is not isolated. 194 00:13:35,620 --> 00:13:39,460 You're both on the network that you're directly connected to, 195 00:13:39,560 --> 00:13:42,160 and you have this link into the foreign net. 196 00:13:43,220 --> 00:13:46,380 I may be connected to... 197 00:13:46,380 --> 00:13:47,440 Anyway, forget it. 198 00:13:48,720 --> 00:13:50,380 The big problem is server freeze. 199 00:13:52,160 --> 00:13:55,060 SSH is basically implemented with a gigantic select loop. 200 00:13:55,220 --> 00:13:58,580 It is not multi-threaded in any shape, way, or form. 201 00:13:58,660 --> 00:13:59,540 That's probably a good thing. 202 00:13:59,640 --> 00:14:03,120 Makes the internal code very simple to understand, very simple to extend. 203 00:14:04,260 --> 00:14:08,800 The problem is if any single operation inside of the SSH daemon blocks, 204 00:14:09,100 --> 00:14:11,360 if any of it freezes waiting for an answer, 205 00:14:12,500 --> 00:14:15,820 the entire server process just freezes. 206 00:14:16,220 --> 00:14:19,460 Now, you can't go ahead and denial of service anyone else this way, 207 00:14:19,460 --> 00:14:21,680 because SSH forks off other copies of itself. 208 00:14:22,200 --> 00:14:27,420 But your own client dies, so if you have one TCP session that causes a freeze, 209 00:14:27,680 --> 00:14:30,740 all your other channels, everything else freezes as well. 210 00:14:30,900 --> 00:14:31,880 So it's not perfect. 211 00:14:33,480 --> 00:14:35,520 OpenSSH is better in this regard. 212 00:14:35,620 --> 00:14:38,140 It has less calls that end up going to... 213 00:14:38,140 --> 00:14:40,820 It has less synchronous calls, 214 00:14:41,060 --> 00:14:45,040 but the one nice thing is you actually do get some modicum of support 215 00:14:45,040 --> 00:14:47,760 all the way back to SSH 1.2.27. 216 00:14:48,620 --> 00:14:50,700 That's been a big goal with a lot of my engineering, 217 00:14:50,860 --> 00:14:54,500 to actually try to go ahead, support the oldest servers in the book, 218 00:14:54,580 --> 00:14:57,600 because let's be honest, the old servers are never getting upgraded. 219 00:14:58,080 --> 00:15:00,780 We can't get them upgraded if there's a root compromise in them. 220 00:15:00,860 --> 00:15:03,180 How are we going to get them upgraded so there can be new features for users? 221 00:15:04,020 --> 00:15:06,140 So any extra features that I've been working on 222 00:15:06,140 --> 00:15:07,300 have pretty much been on the client side. 223 00:15:07,420 --> 00:15:10,160 Make the client do more, put more intelligence in the client, 224 00:15:10,320 --> 00:15:14,820 because the person doing the upgrading wants a new feature. 225 00:15:14,980 --> 00:15:15,940 They want a new feature. 226 00:15:16,000 --> 00:15:17,640 They have a personal reason to go out and get it. 227 00:15:17,760 --> 00:15:21,360 A sysadmin has no personal feature that they want. 228 00:15:21,580 --> 00:15:23,980 Or if they do, they still have this whole process 229 00:15:23,980 --> 00:15:25,800 of updating something on a production server 230 00:15:25,800 --> 00:15:27,340 that's been out for four years, blah, blah, blah. 231 00:15:28,200 --> 00:15:28,740 Annoying. 232 00:15:29,460 --> 00:15:31,820 Bottom line, upgrading the client if you can 233 00:15:31,820 --> 00:15:34,500 is usually a better strategy for actually making stuff work. 234 00:15:35,940 --> 00:15:36,720 Proxy commands. 235 00:15:38,900 --> 00:15:43,760 Proxy command is basically the method by which SSH did SOC support. 236 00:15:44,100 --> 00:15:46,620 A proxy command is an arbitrary command 237 00:15:46,620 --> 00:15:52,800 that after it's completed leads to the SSH server 238 00:15:52,800 --> 00:15:53,820 in an 8-bit path. 239 00:15:54,340 --> 00:15:57,720 So if you look there, we have a netcat to port 22 240 00:15:57,720 --> 00:15:59,180 on some random SSH server. 241 00:15:59,360 --> 00:16:02,080 The response is, well, here's your SSH banner. 242 00:16:02,200 --> 00:16:04,800 SSH 1.99 open SSH 2.9 P1. 243 00:16:05,540 --> 00:16:07,860 The idea is you could have some arbitrary tool 244 00:16:07,860 --> 00:16:10,180 that does the SOC's negotiation, 245 00:16:10,320 --> 00:16:12,920 does the whatever negotiation that you have to do, 246 00:16:13,020 --> 00:16:16,600 and in the end gives you SSH 1.9 open SSH 2.9 P1. 247 00:16:16,620 --> 00:16:19,920 This way open SSH doesn't need to care 248 00:16:19,920 --> 00:16:22,280 what tool you're using to get to the final destination. 249 00:16:22,600 --> 00:16:24,440 It doesn't need to hear about what protocol. 250 00:16:24,720 --> 00:16:26,620 In the end, if it's got its 8-bit path, 251 00:16:27,080 --> 00:16:27,940 it'll go through it. 252 00:16:32,020 --> 00:16:33,720 Well, SSH wants an 8-bit path. 253 00:16:34,600 --> 00:16:36,060 SSH provides 8-bit paths. 254 00:16:36,200 --> 00:16:38,420 Can we go ahead and use SSH to proxy itself? 255 00:16:40,320 --> 00:16:41,600 The answer is yes. 256 00:16:41,720 --> 00:16:43,580 The correct method to implement to do this 257 00:16:43,580 --> 00:16:45,560 is you have the remote side open a port forward 258 00:16:45,560 --> 00:16:47,760 to an SSH daemon 259 00:16:47,760 --> 00:16:50,240 and connect it on the client side 260 00:16:50,240 --> 00:16:51,600 to standard in and standard out. 261 00:16:51,940 --> 00:16:53,960 Now, that's the correct method to implement it. 262 00:16:54,000 --> 00:16:55,060 I'm not that good of a programmer. 263 00:16:55,220 --> 00:16:55,900 Believe me. 264 00:16:57,100 --> 00:16:58,240 So I have a cheap hack. 265 00:16:58,380 --> 00:17:00,240 I remotely execute Netcat. 266 00:17:00,460 --> 00:17:03,220 So I remotely execute Netcat on a machine 267 00:17:03,220 --> 00:17:05,460 that can actually get to the host that I'm trying to go to. 268 00:17:05,760 --> 00:17:08,020 So I SSH into my bastion host, 269 00:17:08,100 --> 00:17:09,740 my one box, my NAT machine. 270 00:17:10,340 --> 00:17:11,620 I SSH into that. 271 00:17:11,900 --> 00:17:15,080 And on there, I Netcat over to my desktop 272 00:17:15,080 --> 00:17:15,540 or to my computer. 273 00:17:15,560 --> 00:17:16,760 To my workstation or whatnot. 274 00:17:17,120 --> 00:17:20,200 And I Netcat to its SSH daemon. 275 00:17:22,360 --> 00:17:23,840 Using Netcat based wire mode, 276 00:17:24,360 --> 00:17:25,700 SSH dash O, proxy command, 277 00:17:25,880 --> 00:17:26,960 SSH user at proxy, 278 00:17:27,180 --> 00:17:28,460 Netcat to the correct host, 279 00:17:28,520 --> 00:17:29,000 the correct port, 280 00:17:29,120 --> 00:17:30,420 and the username at the server, 281 00:17:30,600 --> 00:17:32,020 or username at the workstation or whatnot. 282 00:17:32,580 --> 00:17:33,420 This is a mess. 283 00:17:33,660 --> 00:17:34,980 This is completely unusable. 284 00:17:35,120 --> 00:17:35,840 I'm aware of this. 285 00:17:35,920 --> 00:17:36,500 You're aware of this. 286 00:17:36,580 --> 00:17:37,300 Everyone's aware of this. 287 00:17:37,500 --> 00:17:38,460 So there's a rather simple, 288 00:17:38,680 --> 00:17:41,060 much simpler syntax under development, 289 00:17:41,240 --> 00:17:43,320 which is basically SSH dash B, 290 00:17:43,420 --> 00:17:45,020 proxy, user at server. 291 00:17:45,020 --> 00:17:46,360 So SSH dash B, 292 00:17:46,480 --> 00:17:48,380 my one machine that's actually internet accessible, 293 00:17:48,680 --> 00:17:51,520 and then some name of a machine behind there. 294 00:17:52,180 --> 00:17:54,200 The encryption actually happens between me 295 00:17:54,200 --> 00:17:55,040 on the outside world 296 00:17:55,040 --> 00:17:57,740 and my machine inside my network. 297 00:17:57,860 --> 00:18:00,200 It does not actually decrypt 298 00:18:00,200 --> 00:18:01,620 at the host in the middle. 299 00:18:01,760 --> 00:18:03,580 The host in the middle is only being used 300 00:18:03,580 --> 00:18:05,640 to provide a network accessible path. 301 00:18:06,000 --> 00:18:07,480 Now there's still authentication 302 00:18:07,480 --> 00:18:08,540 to the host in the middle. 303 00:18:08,800 --> 00:18:10,800 There's still encryption to the host in the middle. 304 00:18:10,860 --> 00:18:11,940 So as an administrator, 305 00:18:12,220 --> 00:18:14,900 I know that there's a guaranteed amount 306 00:18:14,900 --> 00:18:16,580 of cryptography going on. 307 00:18:16,860 --> 00:18:18,680 But as the administrator, 308 00:18:18,860 --> 00:18:21,040 I lose the ability to go ahead and, 309 00:18:21,780 --> 00:18:24,400 or I lose the risk of having this one machine 310 00:18:24,400 --> 00:18:27,200 that has complete ability to decrypt all communications. 311 00:18:28,080 --> 00:18:29,700 Little statistics for you. 312 00:18:30,100 --> 00:18:35,020 I went into a very, very large bastion host 313 00:18:35,020 --> 00:18:36,340 at a major company, 314 00:18:36,520 --> 00:18:41,480 and it had 75, 100 people at SSH into it. 315 00:18:41,580 --> 00:18:43,460 They were using it as their bouncing off point 316 00:18:43,460 --> 00:18:44,760 to go to their workstations, 317 00:18:44,760 --> 00:18:45,760 to go to their desktops or whatnot. 318 00:18:46,720 --> 00:18:49,520 75 people had SSH into other desktops. 319 00:18:49,980 --> 00:18:52,400 25 people had R logged into other desktops. 320 00:18:52,540 --> 00:18:54,840 10 people had Telnet into other desktops. 321 00:18:55,120 --> 00:18:56,520 So here you had one machine, 322 00:18:56,660 --> 00:18:57,280 internet accessible, 323 00:18:57,540 --> 00:18:58,680 with full decryption, 324 00:18:58,740 --> 00:18:59,720 full authentication ability 325 00:18:59,720 --> 00:19:02,600 to get into a hundred other computers. 326 00:19:03,960 --> 00:19:05,000 Proxy authenticates, 327 00:19:05,000 --> 00:19:05,680 proxy decrypts, 328 00:19:05,720 --> 00:19:06,580 proxy internet accessible. 329 00:19:07,120 --> 00:19:09,020 The moment this machine gets hacked, 330 00:19:09,120 --> 00:19:09,740 and it will someday, 331 00:19:10,380 --> 00:19:12,020 that entire network is screwed 332 00:19:12,020 --> 00:19:13,820 with my solution, 333 00:19:14,000 --> 00:19:14,840 that network is not screwed. 334 00:19:14,980 --> 00:19:16,240 It was only used as a pathway. 335 00:19:16,420 --> 00:19:18,620 It could not actually decrypt or authenticate 336 00:19:18,620 --> 00:19:20,300 against any machine that it was used as 337 00:19:20,300 --> 00:19:21,240 as a bouncing off point. 338 00:19:23,560 --> 00:19:24,000 Now, 339 00:19:24,440 --> 00:19:26,920 what if there's no internet accessible bastion proxy? 340 00:19:27,140 --> 00:19:27,680 Now what? 341 00:19:28,280 --> 00:19:29,900 What you can do with SSH 342 00:19:29,900 --> 00:19:31,840 is you can set up what are known as remote port forwards. 343 00:19:32,160 --> 00:19:32,820 I can, 344 00:19:32,940 --> 00:19:34,700 we'll just walk through it. 345 00:19:34,940 --> 00:19:36,940 My machine on the inside of a network 346 00:19:36,940 --> 00:19:37,920 that is firewalled, 347 00:19:38,500 --> 00:19:41,520 SSH is out into my machine at home. 348 00:19:42,480 --> 00:19:43,680 Sets up a remote port forward, 349 00:19:43,740 --> 00:19:43,900 says, 350 00:19:44,140 --> 00:19:45,120 hey machine at home, 351 00:19:45,240 --> 00:19:46,500 your port 2022, 352 00:19:47,020 --> 00:19:48,580 if you get any communications, 353 00:19:49,100 --> 00:19:49,500 listen, 354 00:19:49,700 --> 00:19:50,560 send them to me, 355 00:19:50,680 --> 00:19:54,440 and I will feed them to my local 127.0.0.1.22. 356 00:19:56,020 --> 00:19:57,840 When the client wants to go ahead and connect, 357 00:19:58,020 --> 00:20:00,680 it either uses that really hideous command 358 00:20:01,040 --> 00:20:02,140 with host key alias, 359 00:20:02,140 --> 00:20:03,000 or it just says, 360 00:20:03,960 --> 00:20:05,380 SSH user at proxy use, 361 00:20:06,720 --> 00:20:07,500 actually that's wrong. 362 00:20:08,720 --> 00:20:09,480 SSH goes in, 363 00:20:09,560 --> 00:20:10,440 that should actually say, 364 00:20:10,520 --> 00:20:11,200 it goes into itself, 365 00:20:11,520 --> 00:20:13,400 go into your own port 2022, 366 00:20:15,580 --> 00:20:17,320 and connect against them, 367 00:20:17,420 --> 00:20:17,620 ah, 368 00:20:17,780 --> 00:20:18,360 forget it. 369 00:20:22,020 --> 00:20:23,060 Bottom line, 370 00:20:23,540 --> 00:20:23,760 okay, 371 00:20:23,800 --> 00:20:25,160 damn you ghetto hackers, 372 00:20:25,260 --> 00:20:25,800 damn you. 373 00:20:26,000 --> 00:20:28,600 No, seriously, 374 00:20:29,060 --> 00:20:30,080 the idea is basically 375 00:20:30,080 --> 00:20:33,160 to use the keys as your addressing method. 376 00:20:33,300 --> 00:20:35,960 Just go ahead and stop trusting, 377 00:20:35,960 --> 00:20:36,460 ah, 378 00:20:38,140 --> 00:20:38,740 damn it. 379 00:20:39,980 --> 00:20:42,000 The idea is if you can't trust an IP address, 380 00:20:42,640 --> 00:20:43,240 you know, 381 00:20:43,300 --> 00:20:43,800 oh my god, 382 00:20:43,820 --> 00:20:44,740 everyone can spoof this IP, 383 00:20:44,880 --> 00:20:45,660 everyone can spoof this, 384 00:20:45,660 --> 00:20:46,240 everyone can spoof that, 385 00:20:46,400 --> 00:20:46,820 don't. 386 00:20:47,160 --> 00:20:48,480 Connect to any IP you want. 387 00:20:48,840 --> 00:20:52,180 If you can see that your cryptographic keys said 388 00:20:52,180 --> 00:20:53,440 you connected to the right host, 389 00:20:53,660 --> 00:20:54,860 you know whether or not 390 00:20:54,860 --> 00:20:56,400 you're at your destination or not. 391 00:20:56,640 --> 00:20:57,640 Forget the addresses, 392 00:20:57,860 --> 00:20:58,760 connect to any IP, 393 00:20:58,900 --> 00:21:00,000 allow remote port forwards, 394 00:21:00,080 --> 00:21:01,820 allow anything to bounce wherever. 395 00:21:02,260 --> 00:21:03,200 In the end, 396 00:21:03,300 --> 00:21:04,460 you know whether or not 397 00:21:04,460 --> 00:21:05,880 you're connected to the correct host, 398 00:21:05,880 --> 00:21:07,000 because of the cryptography, 399 00:21:07,180 --> 00:21:08,400 not because of the addressing. 400 00:21:08,620 --> 00:21:09,520 It actually works. 401 00:21:10,000 --> 00:21:10,180 Now, 402 00:21:10,200 --> 00:21:11,660 you do actually need 403 00:21:11,660 --> 00:21:12,400 to check your host key. 404 00:21:12,560 --> 00:21:14,000 You do need to actually check 405 00:21:14,000 --> 00:21:14,740 that the remote machine 406 00:21:14,740 --> 00:21:16,180 is who they claim to be. 407 00:21:17,040 --> 00:21:18,420 You really need to do this 408 00:21:18,420 --> 00:21:20,220 when you're forwarding to local host, 409 00:21:20,300 --> 00:21:21,260 because as Sage will say, 410 00:21:21,420 --> 00:21:22,000 you know what, 411 00:21:22,060 --> 00:21:23,220 this guy could have 80 connections 412 00:21:23,220 --> 00:21:24,140 going through local host. 413 00:21:24,220 --> 00:21:26,300 I'm not gonna automatically force 414 00:21:26,300 --> 00:21:28,140 a check on host keys to local host. 415 00:21:30,720 --> 00:21:32,140 So you either have to use 416 00:21:32,140 --> 00:21:32,940 the host key alias 417 00:21:32,940 --> 00:21:34,640 or use the new concentrated syntax 418 00:21:34,640 --> 00:21:35,860 that I just have to say 419 00:21:35,880 --> 00:21:36,580 that I had trouble explaining, 420 00:21:36,720 --> 00:21:37,360 which sucked. 421 00:21:40,600 --> 00:21:41,280 Two machines. 422 00:21:41,820 --> 00:21:43,080 Both of them are firewalled. 423 00:21:43,160 --> 00:21:44,200 Both of them are firewalled 424 00:21:44,200 --> 00:21:45,220 against each other. 425 00:21:47,460 --> 00:21:49,380 Usually the way this is resolved is, 426 00:21:49,560 --> 00:21:50,560 goes up to management, 427 00:21:50,620 --> 00:21:52,060 management fights back and forth. 428 00:21:52,240 --> 00:21:53,060 You open a firewall. 429 00:21:53,200 --> 00:21:53,980 No, you open a firewall. 430 00:21:54,120 --> 00:21:54,840 No, you open a firewall. 431 00:21:55,040 --> 00:21:56,720 And it just goes on and on and on, 432 00:21:56,800 --> 00:21:58,060 and eventually somebody gives in 433 00:21:58,060 --> 00:21:59,280 because they're losing too much money. 434 00:21:59,400 --> 00:22:00,260 Whoever loses more money 435 00:22:00,260 --> 00:22:00,800 has to go ahead 436 00:22:00,800 --> 00:22:01,680 and insecure their network. 437 00:22:02,640 --> 00:22:03,440 There's a better way. 438 00:22:03,440 --> 00:22:05,940 But both machines go out. 439 00:22:06,580 --> 00:22:08,200 Both machines go out to some machine 440 00:22:08,200 --> 00:22:09,560 that they can both connect to. 441 00:22:10,000 --> 00:22:13,200 One machine sends over its SSH port. 442 00:22:13,360 --> 00:22:14,780 The other machine connects 443 00:22:14,780 --> 00:22:16,680 to the sent over SSH port. 444 00:22:16,920 --> 00:22:18,000 They meet in the middle. 445 00:22:19,100 --> 00:22:20,600 They know they're actually 446 00:22:20,600 --> 00:22:21,540 talking to each other, 447 00:22:21,600 --> 00:22:25,200 again, because of the cryptography. 448 00:22:25,600 --> 00:22:26,960 If it works, they talk. 449 00:22:27,160 --> 00:22:28,500 If it doesn't work, they don't. 450 00:22:28,700 --> 00:22:30,160 So you have some host in the middle. 451 00:22:30,240 --> 00:22:31,480 It could be in the middle of a 7-Eleven. 452 00:22:31,500 --> 00:22:32,680 It could be in the middle 453 00:22:32,680 --> 00:22:33,540 of DEFCON, 454 00:22:33,600 --> 00:22:34,700 and it wouldn't matter 455 00:22:34,700 --> 00:22:36,120 because in the end, 456 00:22:36,120 --> 00:22:37,500 the encryption is end-to-end. 457 00:22:37,660 --> 00:22:38,680 This host in the middle 458 00:22:38,680 --> 00:22:40,780 is only being used as a pathway 459 00:22:40,780 --> 00:22:41,660 and nothing more. 460 00:22:45,040 --> 00:22:46,000 Escape syntax. 461 00:22:46,400 --> 00:22:47,540 Something that's not known 462 00:22:47,540 --> 00:22:48,360 about too much. 463 00:22:48,660 --> 00:22:50,380 SSH actually has a decent amount 464 00:22:50,380 --> 00:22:51,840 of live configuration. 465 00:22:52,200 --> 00:22:52,920 There's a decent amount 466 00:22:52,920 --> 00:22:53,640 that you can do 467 00:22:53,640 --> 00:22:56,100 while the SSH client is live. 468 00:22:57,880 --> 00:22:58,780 Hit enter. 469 00:22:58,960 --> 00:23:00,320 Hit tilde, question mark, 470 00:23:00,360 --> 00:23:01,580 and you'll actually see that 471 00:23:01,580 --> 00:23:02,660 out of your SSH 472 00:23:02,680 --> 00:23:02,880 client. 473 00:23:03,200 --> 00:23:03,900 And you can go ahead 474 00:23:03,900 --> 00:23:04,720 and have it terminate 475 00:23:04,720 --> 00:23:05,660 the connection and suspend 476 00:23:05,660 --> 00:23:07,040 and list your forwarded connections. 477 00:23:07,180 --> 00:23:09,000 A bunch of really useless things. 478 00:23:09,780 --> 00:23:10,940 Sometime in the next few weeks, 479 00:23:11,020 --> 00:23:11,680 you should be able to 480 00:23:11,680 --> 00:23:13,140 pretty much modify any option 481 00:23:13,140 --> 00:23:14,040 in the SSH. 482 00:23:15,860 --> 00:23:17,440 Basically, anything that you could do 483 00:23:17,440 --> 00:23:18,060 at the command line 484 00:23:18,060 --> 00:23:19,000 when SSH started, 485 00:23:19,120 --> 00:23:20,060 you'll be able to do 486 00:23:20,060 --> 00:23:21,080 without having to go ahead, 487 00:23:21,280 --> 00:23:22,340 disconnect and reconnect 488 00:23:22,340 --> 00:23:23,240 and re-authenticate 489 00:23:23,240 --> 00:23:24,520 and redo all of that stuff. 490 00:23:25,880 --> 00:23:26,280 SU. 491 00:23:28,000 --> 00:23:29,840 I kind of got a laugh out of this. 492 00:23:30,580 --> 00:23:31,560 There's a guy outside 493 00:23:31,560 --> 00:23:32,740 who has a car 494 00:23:32,740 --> 00:23:35,080 and his license plate says SU root. 495 00:23:35,460 --> 00:23:36,460 Really cool car, 496 00:23:36,560 --> 00:23:37,200 really nice car, 497 00:23:37,340 --> 00:23:38,280 really, really, 498 00:23:38,300 --> 00:23:39,660 really insecure command. 499 00:23:40,040 --> 00:23:41,500 SU is not secure 500 00:23:41,500 --> 00:23:43,680 because you don't actually ever know 501 00:23:43,680 --> 00:23:44,720 you're executing SU. 502 00:23:45,040 --> 00:23:45,960 You go ahead, 503 00:23:46,120 --> 00:23:47,380 you SSH into some remote host 504 00:23:47,380 --> 00:23:49,500 and you connect as your username 505 00:23:49,500 --> 00:23:52,120 and you see your shell prompt 506 00:23:52,120 --> 00:23:53,400 and it's your user shell prompt 507 00:23:53,400 --> 00:23:55,360 and you ask your shell prompt, 508 00:23:55,520 --> 00:23:56,580 please load SU. 509 00:23:57,160 --> 00:23:58,320 I want to go ahead 510 00:23:58,320 --> 00:23:59,080 and be a different user. 511 00:23:59,180 --> 00:24:00,840 I want to upgrade my permissions. 512 00:24:02,040 --> 00:24:04,860 How do you know your shell's actually executing SU? 513 00:24:05,140 --> 00:24:06,840 There's absolutely no reason 514 00:24:06,840 --> 00:24:07,800 for you to believe that 515 00:24:07,800 --> 00:24:08,460 and in fact, 516 00:24:08,480 --> 00:24:10,620 a trivial attack against your bash RC, 517 00:24:10,840 --> 00:24:12,940 a trivial attack against anything 518 00:24:12,940 --> 00:24:13,760 will go ahead 519 00:24:13,760 --> 00:24:16,200 and redirect that SU command elsewhere. 520 00:24:16,540 --> 00:24:18,380 Maybe it'll redirect it to a Trojaned SU. 521 00:24:18,560 --> 00:24:20,680 Maybe it'll just fail the first time 522 00:24:20,680 --> 00:24:22,140 after it gets your password. 523 00:24:22,440 --> 00:24:23,600 The bottom line is 524 00:24:23,600 --> 00:24:24,940 you can't trust SU 525 00:24:24,940 --> 00:24:28,040 after your shell has run. 526 00:24:28,400 --> 00:24:30,320 Trojaning an administrator's personal account 527 00:24:30,320 --> 00:24:30,820 and just waiting 528 00:24:30,840 --> 00:24:33,080 for them to switch to root 529 00:24:33,080 --> 00:24:35,580 is an absolutely deadly attack. 530 00:24:36,020 --> 00:24:38,960 So the solution is 531 00:24:38,960 --> 00:24:42,200 you have the SSH daemon execute SU for you. 532 00:24:42,360 --> 00:24:45,060 Now when SSH executes commands remotely, 533 00:24:45,420 --> 00:24:48,520 it does not load your bash RC. 534 00:24:48,660 --> 00:24:49,540 It does not load anything 535 00:24:49,540 --> 00:24:51,000 that's personally connected to you. 536 00:24:51,140 --> 00:24:53,440 It checks your authentication credentials 537 00:24:53,440 --> 00:24:56,180 and then loads the command, period. 538 00:24:56,940 --> 00:24:58,480 Which means that 539 00:24:58,480 --> 00:25:00,820 because SSHD is usually a root-owned file, 540 00:25:00,820 --> 00:25:03,820 you go from local to remote, 541 00:25:03,880 --> 00:25:05,240 remote root to, 542 00:25:05,300 --> 00:25:06,940 and I'll call on you in a second, 543 00:25:07,420 --> 00:25:08,200 remote root, 544 00:25:08,420 --> 00:25:10,200 the root-owned process 545 00:25:10,200 --> 00:25:12,300 never goes through user-level permissions. 546 00:25:12,500 --> 00:25:14,300 It goes straight to the user 547 00:25:14,300 --> 00:25:15,320 you really want it to be. 548 00:25:15,840 --> 00:25:17,400 There's a new syntax being added, 549 00:25:17,960 --> 00:25:19,560 SSH user plus root. 550 00:25:20,140 --> 00:25:22,480 So the plus goes ahead and automates that. 551 00:25:22,740 --> 00:25:24,000 Now somebody here thinks 552 00:25:24,000 --> 00:25:24,660 that this is wrong 553 00:25:24,660 --> 00:25:25,620 or incorrect or whatnot, 554 00:25:25,800 --> 00:25:26,680 so I'll go ahead. 555 00:25:26,980 --> 00:25:28,580 I actually had a question. 556 00:25:28,980 --> 00:25:30,620 Does this mean that if you change, 557 00:25:30,820 --> 00:25:33,200 a user's shell to bin false, 558 00:25:33,280 --> 00:25:34,500 like for a pop-up main account, 559 00:25:34,660 --> 00:25:36,960 they can still SSH in and execute commands? 560 00:25:37,360 --> 00:25:39,840 I believe that actually executes commands 561 00:25:39,840 --> 00:25:41,400 through the user's default shell. 562 00:25:41,740 --> 00:25:42,480 So if the user's, 563 00:25:42,480 --> 00:25:43,760 yes, actually I'm sure of that, 564 00:25:43,840 --> 00:25:47,080 because that's how people implement SCP-only shells. 565 00:25:47,360 --> 00:25:49,520 So it doesn't run the, 566 00:25:49,540 --> 00:25:54,220 it runs specifically user shell dash C, 567 00:25:54,340 --> 00:25:55,760 then the command that needs to be added. 568 00:25:56,040 --> 00:25:58,800 So if it's bin false dash C command, 569 00:25:58,940 --> 00:26:00,520 well, false isn't going to do anything. 570 00:26:00,520 --> 00:26:01,980 So the user still doesn't have a shell. 571 00:26:03,400 --> 00:26:05,260 Your shell, your personal shell 572 00:26:05,260 --> 00:26:07,160 is restricted by administrators. 573 00:26:07,560 --> 00:26:09,200 You have a file at C shells 574 00:26:09,200 --> 00:26:11,160 in most Unix distributions. 575 00:26:11,480 --> 00:26:13,140 It limits what you can select 576 00:26:13,140 --> 00:26:14,320 as your own personal shell. 577 00:26:14,520 --> 00:26:16,060 So the user can't even go ahead 578 00:26:16,060 --> 00:26:17,460 and change shell out of 579 00:26:18,160 --> 00:26:19,860 that box that you're making them. 580 00:26:22,360 --> 00:26:24,240 There are problems with this. 581 00:26:24,340 --> 00:26:25,540 The big problem is that 582 00:26:25,540 --> 00:26:27,220 you have to use root passwords. 583 00:26:28,020 --> 00:26:29,500 You have to have, 584 00:26:29,500 --> 00:26:31,180 generally, a single root password. 585 00:26:31,520 --> 00:26:33,020 You can't use the public key method. 586 00:26:33,200 --> 00:26:34,520 You can use public keys to go ahead 587 00:26:34,520 --> 00:26:36,280 and log in as your individual user name, 588 00:26:36,440 --> 00:26:39,200 but everyone still has to have this root password. 589 00:26:39,380 --> 00:26:41,360 This root password almost never changes. 590 00:26:41,420 --> 00:26:42,940 So somebody leaves your company, 591 00:26:43,160 --> 00:26:43,740 guess what? 592 00:26:43,820 --> 00:26:45,260 They still know root on all your servers. 593 00:26:46,760 --> 00:26:49,060 One solution to that is individual public keys. 594 00:26:49,240 --> 00:26:51,900 You can have a large set of public keys 595 00:26:51,900 --> 00:26:53,680 able to log into the same account. 596 00:26:55,100 --> 00:26:58,260 If you have everybody who's individually authenticated 597 00:26:58,260 --> 00:26:59,720 to use that root account, 598 00:26:59,940 --> 00:27:02,080 actually use their own personal key, 599 00:27:02,240 --> 00:27:03,280 when they leave, 600 00:27:03,380 --> 00:27:04,200 you cut their key. 601 00:27:05,320 --> 00:27:06,600 Are there problems with this? 602 00:27:06,680 --> 00:27:06,800 Yes. 603 00:27:06,880 --> 00:27:08,000 The primary problem being is 604 00:27:08,000 --> 00:27:09,900 if people have root on a server ever, 605 00:27:09,960 --> 00:27:11,360 if they really want to, 606 00:27:11,400 --> 00:27:13,160 they can never have to leave. 607 00:27:14,600 --> 00:27:16,200 It's called load a kernel module. 608 00:27:18,700 --> 00:27:21,040 But it can be a useful technique. 609 00:27:22,400 --> 00:27:23,740 PPTP over SSH. 610 00:27:24,300 --> 00:27:25,520 This is evil. 611 00:27:25,980 --> 00:27:27,340 But it is a good example 612 00:27:27,340 --> 00:27:31,260 of how SSH's arbitrary functionality 613 00:27:31,260 --> 00:27:32,240 is rather useful. 614 00:27:33,160 --> 00:27:36,340 PPTP is implemented... 615 00:27:36,340 --> 00:27:37,220 Let's see how we can do this. 616 00:27:40,120 --> 00:27:40,480 Okay. 617 00:27:40,560 --> 00:27:42,780 PPTP is a fugly protocol. 618 00:27:43,020 --> 00:27:47,320 It is Layer 2 PPP inside of Layer 3 GRE, 619 00:27:48,020 --> 00:27:52,980 which transmits Layer 4 TCP, UDP, and ICMP traffic. 620 00:27:53,860 --> 00:27:56,060 It also uses a Layer 4 port, 621 00:27:56,060 --> 00:27:57,620 1731 TCP. 622 00:27:59,320 --> 00:28:02,060 I'm sure I could design a worse protocol. 623 00:28:03,140 --> 00:28:03,860 Somehow. 624 00:28:04,860 --> 00:28:06,480 I don't know. 625 00:28:07,720 --> 00:28:09,020 It was created by Microsoft, 626 00:28:09,120 --> 00:28:10,780 which we'll leave it at that. 627 00:28:12,860 --> 00:28:14,760 The nice thing about it, though, 628 00:28:14,820 --> 00:28:19,200 it is really, really well integrated into Windows. 629 00:28:19,460 --> 00:28:20,900 It just works. 630 00:28:22,080 --> 00:28:25,160 One of the more painful things, incidentally, 631 00:28:25,160 --> 00:28:27,380 about any kind of VPN solution 632 00:28:27,950 --> 00:28:29,580 is if Microsoft doesn't write it 633 00:28:30,160 --> 00:28:31,800 and you install it, 634 00:28:31,900 --> 00:28:34,760 it has a pretty good chance of blowing up your system. 635 00:28:35,360 --> 00:28:37,140 Doing any kind of protocol shim 636 00:28:37,140 --> 00:28:38,240 in Windows operating system, 637 00:28:38,420 --> 00:28:39,620 it either works perfectly 638 00:28:39,620 --> 00:28:41,460 or you might as well throw your laptop out. 639 00:28:41,500 --> 00:28:42,180 It's one of the two. 640 00:28:43,140 --> 00:28:45,180 I lost two laptops to the Nortel client, 641 00:28:45,260 --> 00:28:46,080 so I'm allowed to say this. 642 00:28:48,760 --> 00:28:51,280 So the problem with just going entirely 643 00:28:51,280 --> 00:28:52,220 with the Microsoft solution 644 00:28:52,220 --> 00:28:53,540 is the crypto isn't very good. 645 00:28:54,720 --> 00:28:55,460 It's decent. 646 00:28:55,660 --> 00:28:56,740 Version 2 is decent. 647 00:28:56,860 --> 00:28:58,200 Version 1 was kindergarten crypto. 648 00:28:58,560 --> 00:28:59,900 It was pretty much a good example 649 00:28:59,900 --> 00:29:01,560 of every single screw-up that you could make. 650 00:29:02,240 --> 00:29:03,800 You took the key stream going one way, 651 00:29:03,880 --> 00:29:05,980 you X-sorted against the key stream going the other way, 652 00:29:06,080 --> 00:29:07,780 and there were your keys. 653 00:29:09,460 --> 00:29:09,860 Fuck. 654 00:29:11,700 --> 00:29:13,080 PPTP version 1 was a mess. 655 00:29:13,460 --> 00:29:15,940 But again, even it had decent network isolation. 656 00:29:16,220 --> 00:29:17,920 So you can't trust PPTP's crypto. 657 00:29:18,120 --> 00:29:18,500 It sucks. 658 00:29:18,860 --> 00:29:20,760 But you can trust SSH's. 659 00:29:21,000 --> 00:29:22,700 So could you go ahead and use 660 00:29:24,620 --> 00:29:25,800 PPTP's network isolation 661 00:29:25,800 --> 00:29:28,060 along with SSH's trustable crypto? 662 00:29:28,240 --> 00:29:28,980 And the answer is you can. 663 00:29:29,920 --> 00:29:31,020 Use Poptop. 664 00:29:31,220 --> 00:29:34,320 Requires another machine at your site. 665 00:29:35,060 --> 00:29:36,460 Real operating system. 666 00:29:36,620 --> 00:29:37,120 Unix. 667 00:29:38,240 --> 00:29:40,040 Sorry for being a little bit of a bigot there. 668 00:29:43,160 --> 00:29:44,920 Basically, Poptop goes ahead, 669 00:29:45,020 --> 00:29:47,600 implements the listening on 1731 TCP. 670 00:29:48,000 --> 00:29:50,180 It implements the GRE encapsulation 671 00:29:50,180 --> 00:29:51,180 and decapsulation. 672 00:29:51,180 --> 00:29:54,020 But it does not reimplement the PPP protocol. 673 00:29:54,460 --> 00:29:57,220 Instead, it just runs the Unix command that does PPP, 674 00:29:57,380 --> 00:29:59,200 which is either PPP daemon, 675 00:29:59,320 --> 00:30:01,340 which is a root linking process, 676 00:30:01,620 --> 00:30:02,520 or Slurp, 677 00:30:02,700 --> 00:30:05,520 which basically was NAT circa 1995. 678 00:30:07,240 --> 00:30:09,020 Slurp was invented so that you could have, 679 00:30:09,040 --> 00:30:09,760 just have a shell account. 680 00:30:10,000 --> 00:30:11,820 You could run this command 681 00:30:11,820 --> 00:30:14,480 and it would convert everything coming over the line 682 00:30:14,480 --> 00:30:17,780 into, it would interpret PPP, 683 00:30:18,020 --> 00:30:19,680 set up the necessary connections, 684 00:30:19,680 --> 00:30:21,640 but not actually do it at a root level. 685 00:30:21,740 --> 00:30:23,040 Not actually do it at a kernel level. 686 00:30:23,240 --> 00:30:25,400 Just translate it all into standard system calls 687 00:30:25,400 --> 00:30:26,480 that you could do as any user. 688 00:30:27,420 --> 00:30:29,280 So either PPPd or Slurp 689 00:30:29,280 --> 00:30:31,340 gets executed by Poptop, 690 00:30:32,520 --> 00:30:33,900 who says it needs to be local. 691 00:30:35,200 --> 00:30:37,280 You don't necessarily need to, 692 00:30:39,160 --> 00:30:40,580 if you're running PPPd, 693 00:30:40,660 --> 00:30:41,580 or you're running Slurp, 694 00:30:41,700 --> 00:30:43,240 why do you need to run it on your own machine? 695 00:30:43,800 --> 00:30:45,320 SSH into a remote machine 696 00:30:45,320 --> 00:30:46,900 runs Slurp there. 697 00:30:47,340 --> 00:30:49,460 So Poptop goes ahead, 698 00:30:49,680 --> 00:30:50,420 listens for connections, 699 00:30:50,920 --> 00:30:51,780 receives one, 700 00:30:52,460 --> 00:30:54,980 says, ah, I now need to parse PPP. 701 00:30:55,180 --> 00:30:56,160 Well, how do I do this? 702 00:30:56,600 --> 00:30:59,120 I go to that machine on some far away land, 703 00:30:59,240 --> 00:30:59,900 far away network, 704 00:31:00,060 --> 00:31:01,500 and I run Slurp over there. 705 00:31:01,700 --> 00:31:03,920 And suddenly, my machine on this network 706 00:31:03,920 --> 00:31:05,740 is over SSH, 707 00:31:05,840 --> 00:31:08,360 network isolated on some completely foreign network. 708 00:31:08,900 --> 00:31:10,320 And if I use Slurp, 709 00:31:10,420 --> 00:31:12,020 I don't even need to be root on that foreign network. 710 00:31:13,340 --> 00:31:13,980 Go ahead. 711 00:31:15,400 --> 00:31:17,800 Is the Poptop or PPPd 712 00:31:17,800 --> 00:31:18,600 in general using 713 00:31:19,680 --> 00:31:21,120 IP protocol rather than 714 00:31:21,680 --> 00:31:23,640 sending the data through the TCP stream? 715 00:31:24,220 --> 00:31:25,860 That's absolutely correct. 716 00:31:26,100 --> 00:31:28,500 The TCP stream is only used for the control protocol. 717 00:31:28,720 --> 00:31:31,520 The actual data is the PPP encapsulated GRE. 718 00:31:32,000 --> 00:31:33,400 And how do you... 719 00:31:33,400 --> 00:31:34,440 So, okay. 720 00:31:34,580 --> 00:31:37,460 So Poptop's sitting on this helper server. 721 00:31:38,740 --> 00:31:40,600 It takes the GRE packets 722 00:31:40,600 --> 00:31:42,120 coming out of your Windows machine. 723 00:31:42,540 --> 00:31:44,740 It strips the GRE, 724 00:31:44,940 --> 00:31:46,300 sees PPP, 725 00:31:46,500 --> 00:31:47,780 takes this PPP, 726 00:31:47,780 --> 00:31:50,120 attaches it to a PPP daemon 727 00:31:50,120 --> 00:31:51,340 on a remote server. 728 00:31:52,080 --> 00:31:55,180 And so it's just sitting in the middle, 729 00:31:55,240 --> 00:31:56,120 connecting things. 730 00:31:58,400 --> 00:32:00,820 This is the really lazy way 731 00:32:00,820 --> 00:32:02,640 to go ahead and set this up. 732 00:32:03,500 --> 00:32:06,900 It's precompiled into Poptop to load Slurp. 733 00:32:07,180 --> 00:32:10,340 You rename Slurp to Slurp binary 734 00:32:10,340 --> 00:32:12,200 and just have the actual Slurp command 735 00:32:12,200 --> 00:32:13,940 be a shell script to do a remote execution 736 00:32:13,940 --> 00:32:15,920 of this command. 737 00:32:16,300 --> 00:32:17,680 Now, the reason I actually went ahead 738 00:32:17,680 --> 00:32:18,760 and showed you this is yes, 739 00:32:20,100 --> 00:32:20,880 Poptop's open source. 740 00:32:21,020 --> 00:32:22,140 You can go ahead and modify it. 741 00:32:22,580 --> 00:32:23,820 Sometimes you have to deal with apps 742 00:32:23,820 --> 00:32:24,620 that aren't open source. 743 00:32:24,740 --> 00:32:26,060 Sometimes you have to deal with apps 744 00:32:26,060 --> 00:32:27,560 that just go ahead and feel like 745 00:32:27,560 --> 00:32:28,860 shelling out every once in a while. 746 00:32:29,280 --> 00:32:31,080 Be aware every time you have an app 747 00:32:31,080 --> 00:32:32,300 that shells out to a command, 748 00:32:32,540 --> 00:32:34,940 you can wrap that command 749 00:32:35,440 --> 00:32:37,160 with something that executes it remotely 750 00:32:37,160 --> 00:32:39,400 and therefore add rudimentary network support 751 00:32:39,400 --> 00:32:40,180 to pretty much anything. 752 00:32:43,400 --> 00:32:44,760 One final thing I'll go over 753 00:32:44,760 --> 00:32:45,580 then I'll open to questions. 754 00:32:47,060 --> 00:32:49,360 Not talking about SSH for a moment. 755 00:32:50,520 --> 00:32:51,600 SSH has some problems. 756 00:32:51,980 --> 00:32:53,400 Just like SSL has problems. 757 00:32:53,620 --> 00:32:56,860 Just like those great nice custom hardware solutions 758 00:32:56,860 --> 00:32:58,540 you see for crypto have problems. 759 00:32:59,700 --> 00:33:00,760 They're all link-based. 760 00:33:00,940 --> 00:33:02,680 They all decrypt the information 761 00:33:02,680 --> 00:33:04,620 as soon as it comes back off the wire. 762 00:33:05,600 --> 00:33:07,600 They all decrypt the information 763 00:33:07,600 --> 00:33:09,100 using a key that, 764 00:33:09,200 --> 00:33:10,640 because it's a link-based crypto, 765 00:33:10,880 --> 00:33:11,600 the key's online. 766 00:33:11,860 --> 00:33:13,680 The key is a machine 767 00:33:13,680 --> 00:33:14,800 that's connected to the network. 768 00:33:16,540 --> 00:33:18,740 You have lots and lots of credit card numbers 769 00:33:18,740 --> 00:33:20,800 out there that are picked up over SSL 770 00:33:20,800 --> 00:33:22,520 and are dumped unencrypted into a database. 771 00:33:22,780 --> 00:33:24,400 The encryption is stripped off 772 00:33:24,400 --> 00:33:27,760 as soon as it hits this box in the DMZ 773 00:33:27,760 --> 00:33:29,740 of some company's network. 774 00:33:30,320 --> 00:33:32,200 Then they wonder why they get 775 00:33:32,200 --> 00:33:34,480 300,000 credit card numbers stolen. 776 00:33:34,820 --> 00:33:36,360 Well gee, you didn't encrypt them 777 00:33:36,360 --> 00:33:37,140 and even if you did, 778 00:33:37,200 --> 00:33:38,520 you had a key in the same place. 779 00:33:38,840 --> 00:33:40,720 It's like I put a key in front of your door 780 00:33:40,720 --> 00:33:41,060 and then I, 781 00:33:41,800 --> 00:33:43,000 there's a key in front of your door 782 00:33:43,000 --> 00:33:43,800 in the hotel room. 783 00:33:43,800 --> 00:33:44,800 Someone goes ahead and says, 784 00:33:44,900 --> 00:33:45,480 ah, here's the key. 785 00:33:45,860 --> 00:33:46,420 Opens up. 786 00:33:46,480 --> 00:33:47,520 But the door was locked. 787 00:33:47,920 --> 00:33:48,880 The key was right there. 788 00:33:48,920 --> 00:33:49,660 What the do you expect? 789 00:33:52,780 --> 00:33:55,220 File-based systems can go ahead 790 00:33:55,220 --> 00:33:56,900 and actually separate this out. 791 00:33:58,400 --> 00:33:59,120 You go ahead. 792 00:33:59,500 --> 00:34:00,900 This is called a lock-drop method. 793 00:34:01,480 --> 00:34:03,420 You go ahead and you have lots and lots of machines 794 00:34:03,420 --> 00:34:04,780 that can go ahead and encrypt data. 795 00:34:04,980 --> 00:34:05,900 They have a public key. 796 00:34:05,920 --> 00:34:07,220 Public keys let you encrypt. 797 00:34:07,280 --> 00:34:08,560 They do not let you decrypt. 798 00:34:08,700 --> 00:34:09,720 So you have all your machines 799 00:34:09,720 --> 00:34:10,400 that go ahead, 800 00:34:10,440 --> 00:34:11,260 that you want to go ahead 801 00:34:11,260 --> 00:34:13,640 and do lots and lots of encryption. 802 00:34:13,800 --> 00:34:14,520 Because really, 803 00:34:14,680 --> 00:34:16,460 encryption's a more common operation 804 00:34:16,460 --> 00:34:17,180 than decryption 805 00:34:17,180 --> 00:34:18,520 in a lot of contexts. 806 00:34:18,960 --> 00:34:20,300 You want to store 807 00:34:20,300 --> 00:34:22,160 lots and lots of credit card numbers 808 00:34:22,160 --> 00:34:25,640 for often for a long time. 809 00:34:26,560 --> 00:34:28,880 To actually mass read them, 810 00:34:28,960 --> 00:34:30,860 how many legitimate uses are there 811 00:34:30,860 --> 00:34:33,620 for mass reading 300,000 credit cards? 812 00:34:33,980 --> 00:34:35,060 Emphasis on legitimate. 813 00:34:36,940 --> 00:34:38,420 So the idea is basically 814 00:34:38,420 --> 00:34:39,120 all your machines 815 00:34:39,120 --> 00:34:40,160 that are generating logs, 816 00:34:40,260 --> 00:34:40,760 all your machines 817 00:34:40,760 --> 00:34:42,140 that are receiving important data, 818 00:34:42,140 --> 00:34:44,080 they file and encrypt it. 819 00:34:44,260 --> 00:34:45,560 The decryption key 820 00:34:45,560 --> 00:34:47,660 does not exist on those machines. 821 00:34:47,920 --> 00:34:48,560 In fact, ideally, 822 00:34:48,720 --> 00:34:49,420 the decryption key 823 00:34:49,420 --> 00:34:50,780 does not exist on any network. 824 00:34:51,060 --> 00:34:52,660 So if somebody breaks in, 825 00:34:52,780 --> 00:34:54,480 they could completely root everything. 826 00:34:54,800 --> 00:34:56,740 There's no way to get access 827 00:34:56,740 --> 00:34:57,640 to the old data. 828 00:34:57,760 --> 00:34:58,460 It's all encrypted 829 00:34:58,460 --> 00:34:59,400 and the decryption key 830 00:34:59,400 --> 00:35:01,040 is absolutely nowhere to be found. 831 00:35:01,320 --> 00:35:02,260 Now you can only do this 832 00:35:02,260 --> 00:35:03,180 with asymmetric systems. 833 00:35:03,280 --> 00:35:04,360 You can only do this with systems 834 00:35:04,360 --> 00:35:06,520 based off of something 835 00:35:06,520 --> 00:35:08,040 that has a public and private key. 836 00:35:08,220 --> 00:35:09,100 If you have something, 837 00:35:09,200 --> 00:35:10,460 some pure triple desk 838 00:35:10,460 --> 00:35:11,440 where there's, you know, 839 00:35:11,440 --> 00:35:14,080 use this string of bits 840 00:35:14,080 --> 00:35:15,180 to go ahead and encrypt. 841 00:35:15,320 --> 00:35:17,040 Well, the same string of bits 842 00:35:17,040 --> 00:35:17,880 used to encrypt, 843 00:35:17,960 --> 00:35:18,820 someone just says, 844 00:35:18,860 --> 00:35:19,880 great, here's the string of bits. 845 00:35:19,940 --> 00:35:20,760 I use it to decrypt. 846 00:35:21,960 --> 00:35:22,940 Public keys get you 847 00:35:22,940 --> 00:35:23,660 around that problem. 848 00:35:26,020 --> 00:35:27,280 And we're actually just 849 00:35:27,280 --> 00:35:28,100 going to open up to questions. 850 00:35:28,140 --> 00:35:28,800 The bottom line 851 00:35:28,800 --> 00:35:29,940 that I have with SSH 852 00:35:29,940 --> 00:35:31,360 is it's really powerful. 853 00:35:31,520 --> 00:35:32,580 It's really flexible. 854 00:35:32,840 --> 00:35:34,560 The bottom line with SSH 855 00:35:34,560 --> 00:35:35,240 is that it exists 856 00:35:35,240 --> 00:35:38,100 as a secure encapsulator 857 00:35:38,100 --> 00:35:39,840 of a large amount 858 00:35:39,840 --> 00:35:40,440 of functionality. 859 00:35:40,980 --> 00:35:41,420 It's really powerful 860 00:35:41,440 --> 00:35:42,760 in the traditional insecurity 861 00:35:42,760 --> 00:35:45,840 that there's a constant tension 862 00:35:45,840 --> 00:35:46,840 between functionality 863 00:35:46,840 --> 00:35:47,280 and security. 864 00:35:47,660 --> 00:35:48,560 The more functionality 865 00:35:48,560 --> 00:35:49,260 you open up, 866 00:35:49,300 --> 00:35:49,780 the less secure 867 00:35:49,780 --> 00:35:50,480 you're supposed to be. 868 00:35:50,920 --> 00:35:52,200 So it's somewhat confusing. 869 00:35:52,360 --> 00:35:53,660 Why is SSH successful 870 00:35:53,660 --> 00:35:54,540 in what it does? 871 00:35:54,980 --> 00:35:55,780 The bottom line is 872 00:35:55,780 --> 00:35:56,620 SSH is successful 873 00:35:56,620 --> 00:35:58,460 because it implements 874 00:35:58,460 --> 00:35:59,400 generic functionality 875 00:35:59,400 --> 00:36:00,700 that you don't have 876 00:36:00,700 --> 00:36:01,940 to make hacks on to add. 877 00:36:03,600 --> 00:36:04,540 Best example, 878 00:36:04,740 --> 00:36:05,660 SSL upload 879 00:36:05,660 --> 00:36:07,540 over an HTTPS server. 880 00:36:08,100 --> 00:36:10,040 Yes, you can go ahead 881 00:36:10,040 --> 00:36:10,840 and you can send information 882 00:36:10,840 --> 00:36:11,420 using HTTPS. 883 00:36:11,440 --> 00:36:13,460 SSL will just send anything. 884 00:36:13,600 --> 00:36:14,680 It's just a stream. 885 00:36:14,840 --> 00:36:15,660 It's just a reimplementation 886 00:36:15,660 --> 00:36:16,280 of TCP 887 00:36:16,280 --> 00:36:17,720 that is almost accurate. 888 00:36:18,980 --> 00:36:20,060 The problem is 889 00:36:20,060 --> 00:36:21,900 99% of the CGI scripts 890 00:36:21,900 --> 00:36:23,000 that do HTTP upload 891 00:36:23,000 --> 00:36:24,280 are completely rootable. 892 00:36:24,960 --> 00:36:25,840 They are. 893 00:36:25,940 --> 00:36:26,520 They suck. 894 00:36:26,740 --> 00:36:27,360 And that's because 895 00:36:27,360 --> 00:36:28,280 somebody had to go ahead 896 00:36:28,280 --> 00:36:29,080 and use a method 897 00:36:29,080 --> 00:36:30,920 that wasn't conveniently made. 898 00:36:31,020 --> 00:36:31,800 It wasn't conveniently 899 00:36:31,800 --> 00:36:33,220 encapsulated for them. 900 00:36:33,560 --> 00:36:35,440 SSH does convenient encapsulation 901 00:36:35,960 --> 00:36:37,600 and that's why it works well. 902 00:36:38,220 --> 00:36:39,420 So questions? 903 00:36:39,860 --> 00:36:40,380 Comments? 904 00:36:41,300 --> 00:36:42,180 Methods that you wish 905 00:36:42,180 --> 00:36:42,920 actually existed 906 00:36:42,920 --> 00:36:44,220 to get data from point A 907 00:36:44,220 --> 00:36:44,660 to point B? 908 00:36:44,720 --> 00:36:45,140 Hit me. 909 00:36:49,900 --> 00:36:50,960 That would be 910 00:36:54,140 --> 00:36:55,100 docspara.com. 911 00:36:55,900 --> 00:36:56,620 Backwards paradox. 912 00:37:03,580 --> 00:37:04,200 Go ahead. 913 00:37:17,680 --> 00:37:18,980 It's not their fault. 914 00:37:20,060 --> 00:37:21,440 It's not their fault. 915 00:37:21,620 --> 00:37:23,060 If you connect to a machine 916 00:37:23,060 --> 00:37:24,440 and it says the host key changed, 917 00:37:24,660 --> 00:37:26,120 there are so many situations 918 00:37:26,120 --> 00:37:26,860 where the host key 919 00:37:26,860 --> 00:37:28,000 actually would have changed 920 00:37:28,000 --> 00:37:29,020 that you just say, 921 00:37:29,140 --> 00:37:30,500 yeah, okay, I don't care. 922 00:37:30,640 --> 00:37:31,900 I don't care that this machine 923 00:37:31,900 --> 00:37:33,340 can't prove it's who I think it is. 924 00:37:33,380 --> 00:37:34,460 I'm just going to go in anyway 925 00:37:34,460 --> 00:37:35,480 because at the end of the day, 926 00:37:35,560 --> 00:37:36,880 my job is to actually 927 00:37:36,880 --> 00:37:38,400 get into this server. 928 00:37:38,580 --> 00:37:40,300 My job is not to scream and shout 929 00:37:40,300 --> 00:37:41,180 about, you know, crypto. 930 00:37:41,420 --> 00:37:42,420 What does everyone say? 931 00:37:42,500 --> 00:37:42,900 They just say, 932 00:37:43,000 --> 00:37:44,040 oh, I can't believe it. 933 00:37:44,060 --> 00:37:44,840 This machine was broken. 934 00:37:45,280 --> 00:37:45,940 You know, hey, admin, 935 00:37:46,020 --> 00:37:46,420 you're stupid, 936 00:37:46,520 --> 00:37:47,380 but I still went in anyway. 937 00:37:47,640 --> 00:37:48,720 That could have been dangerous. 938 00:37:49,680 --> 00:37:51,140 No, the actual, 939 00:37:51,280 --> 00:37:51,600 I'm actually, 940 00:37:51,760 --> 00:37:53,100 a solution is being worked on. 941 00:37:54,680 --> 00:37:56,460 There's a system called SRP out there, 942 00:37:56,500 --> 00:37:57,460 secure remote passwords. 943 00:37:57,780 --> 00:37:59,780 It does mutual authentication 944 00:38:00,180 --> 00:38:00,840 using passwords. 945 00:38:01,200 --> 00:38:03,380 So if the server actually 946 00:38:03,380 --> 00:38:04,840 doesn't know my password, 947 00:38:05,040 --> 00:38:06,580 SRP doesn't even make it 948 00:38:06,580 --> 00:38:07,320 need to know password. 949 00:38:07,460 --> 00:38:08,500 SRP lets it know just 950 00:38:08,500 --> 00:38:10,280 a cryptographic hash 951 00:38:10,280 --> 00:38:11,180 of that password. 952 00:38:11,320 --> 00:38:12,840 If the server doesn't have 953 00:38:12,840 --> 00:38:14,280 any information about me, 954 00:38:14,440 --> 00:38:15,600 then I won't be able to 955 00:38:15,600 --> 00:38:16,960 successfully log into it. 956 00:38:17,260 --> 00:38:18,940 So I get some aspect of 957 00:38:18,940 --> 00:38:20,260 something I can remember 958 00:38:20,260 --> 00:38:22,000 in my head as opposed to 959 00:38:22,000 --> 00:38:23,960 some long fingerprint string, 960 00:38:24,200 --> 00:38:25,880 but something I can remember 961 00:38:25,880 --> 00:38:26,440 in my head, 962 00:38:26,540 --> 00:38:28,900 if the server does not know that 963 00:38:28,900 --> 00:38:30,500 or does not know anything about it, 964 00:38:30,580 --> 00:38:32,340 I won't be able to log into it. 965 00:38:32,600 --> 00:38:34,540 Now, if you use that method 966 00:38:34,540 --> 00:38:36,480 to authenticate a change 967 00:38:36,480 --> 00:38:37,360 in host keys, 968 00:38:37,600 --> 00:38:39,480 you eliminate 99% 969 00:38:39,480 --> 00:38:40,260 of the information 970 00:38:40,280 --> 00:38:42,000 of the issues where 971 00:38:43,320 --> 00:38:44,700 someone will just automatically 972 00:38:44,700 --> 00:38:45,700 replace a host key. 973 00:38:45,980 --> 00:38:46,840 It's like, yeah, 974 00:38:46,940 --> 00:38:48,080 you're connecting to some machine, 975 00:38:48,360 --> 00:38:50,080 and not only does it have 976 00:38:50,080 --> 00:38:51,240 the wrong cryptographic information, 977 00:38:51,600 --> 00:38:53,080 it doesn't know your password. 978 00:38:53,960 --> 00:38:55,260 Yeah, I'm going away now. 979 00:38:56,520 --> 00:38:57,160 Go ahead. 980 00:38:58,300 --> 00:38:58,800 . 981 00:39:03,780 --> 00:39:05,240 Go to FreshMeet, 982 00:39:05,260 --> 00:39:06,260 search for SCP only. 983 00:39:07,240 --> 00:39:08,300 Replace your user shell 984 00:39:08,300 --> 00:39:09,260 with SCP only. 985 00:39:09,400 --> 00:39:10,200 All that will be 986 00:39:10,280 --> 00:39:11,100 able to do is execute 987 00:39:11,100 --> 00:39:11,940 the SCP command. 988 00:39:29,220 --> 00:39:31,100 Secure ID has specific support 989 00:39:31,100 --> 00:39:32,900 for it in a unsupported patch. 990 00:39:33,080 --> 00:39:34,160 It's in the contract directory. 991 00:39:34,300 --> 00:39:35,360 Go ahead and compile it. 992 00:39:35,480 --> 00:39:37,000 It may even be a configure option. 993 00:39:39,400 --> 00:39:41,120 Generic functionality is being added 994 00:39:41,120 --> 00:39:41,800 to make it easier 995 00:39:41,800 --> 00:39:43,140 to do stuff like secure ID, 996 00:39:43,280 --> 00:39:44,420 to do stuff like crypto card 997 00:39:44,420 --> 00:39:44,820 and whatnot. 998 00:39:45,460 --> 00:39:47,440 So that's been a big issue 999 00:39:47,440 --> 00:39:48,220 a lot of places 1000 00:39:48,220 --> 00:39:50,700 with custom authentication methods, 1001 00:39:50,900 --> 00:39:52,400 so that should be up and running soon. 1002 00:39:53,380 --> 00:39:55,480 But secure ID is specifically supported. 1003 00:39:56,020 --> 00:39:56,860 Go ahead, right there. 1004 00:39:57,280 --> 00:39:57,720 . 1005 00:39:59,920 --> 00:40:00,360 Granted. 1006 00:40:01,520 --> 00:40:01,960 . 1007 00:40:01,960 --> 00:40:02,440 . 1008 00:40:02,440 --> 00:40:02,600 . 1009 00:40:02,600 --> 00:40:03,140 . 1010 00:40:03,140 --> 00:40:03,820 . 1011 00:40:03,820 --> 00:40:03,840 . 1012 00:40:03,840 --> 00:40:03,880 . 1013 00:40:03,880 --> 00:40:03,900 . 1014 00:40:03,900 --> 00:40:03,980 . 1015 00:40:03,980 --> 00:40:04,000 . 1016 00:40:04,000 --> 00:40:04,040 . 1017 00:40:04,040 --> 00:40:04,500 . 1018 00:40:04,500 --> 00:40:04,580 . 1019 00:40:06,540 --> 00:40:06,580 . 1020 00:40:09,700 --> 00:40:09,740 . 1021 00:40:10,580 --> 00:40:10,620 . 1022 00:40:11,360 --> 00:40:11,400 . 1023 00:40:11,880 --> 00:40:11,920 . 1024 00:40:11,920 --> 00:40:12,000 . 1025 00:40:12,200 --> 00:40:12,240 . 1026 00:40:12,240 --> 00:40:12,260 . 1027 00:40:12,260 --> 00:40:12,280 . 1028 00:40:13,960 --> 00:40:14,000 . 1029 00:40:14,000 --> 00:40:14,020 . 1030 00:40:14,020 --> 00:40:14,040 . 1031 00:40:14,040 --> 00:40:14,060 . 1032 00:40:14,060 --> 00:40:14,080 . 1033 00:40:14,080 --> 00:40:14,120 . 1034 00:40:14,120 --> 00:40:14,140 . 1035 00:40:14,140 --> 00:40:14,160 . 1036 00:40:14,160 --> 00:40:14,180 . 1037 00:40:14,180 --> 00:40:14,200 . 1038 00:40:14,200 --> 00:40:14,220 . 1039 00:40:14,220 --> 00:40:14,240 . 1040 00:40:14,240 --> 00:40:14,260 . 1041 00:40:14,260 --> 00:40:14,280 . 1042 00:40:14,280 --> 00:40:14,300 . 1043 00:40:14,540 --> 00:40:14,580 . 1044 00:40:14,640 --> 00:40:14,680 . 1045 00:40:22,660 --> 00:40:22,700 . 1046 00:40:22,700 --> 00:40:24,620 successfully. It's a basic precept of security. 1047 00:40:25,360 --> 00:40:26,540 Pseudo limits the 1048 00:40:26,540 --> 00:40:28,520 damage that somebody can do, but the bottom line 1049 00:40:28,520 --> 00:40:30,400 is you have a pseudo command that only 1050 00:40:30,400 --> 00:40:31,480 an admin can execute. 1051 00:40:32,920 --> 00:40:34,560 You want there to be a difference between 1052 00:40:34,560 --> 00:40:36,180 your user account and your admin account. 1053 00:40:36,480 --> 00:40:38,200 If you give your user account 1054 00:40:38,200 --> 00:40:39,620 extra features, then 1055 00:40:40,620 --> 00:40:42,160 what's the difference about having... 1056 00:40:42,160 --> 00:40:44,440 Basically, you need there to be 1057 00:40:44,440 --> 00:40:46,020 that separation between user and root. 1058 00:40:46,240 --> 00:40:47,940 If it's not there, a lot of 1059 00:40:48,420 --> 00:40:49,880 Unix permission stuff breaks. 1060 00:40:50,580 --> 00:40:52,380 You can't get around that. What was your other 1061 00:40:52,380 --> 00:40:52,520 question? 1062 00:40:53,280 --> 00:40:54,660 What's a good replacement 1063 00:40:54,660 --> 00:40:55,560 for Rdisc 1064 00:40:55,560 --> 00:40:58,320 for encrypted, secure transmission 1065 00:40:58,320 --> 00:40:59,840 of new files, say, on a 1066 00:40:59,840 --> 00:41:02,400 contact every night, or one 1067 00:41:02,400 --> 00:41:04,580 Unix box to another over the 1068 00:41:04,580 --> 00:41:05,880 internet without it being 1069 00:41:07,020 --> 00:41:08,120 Rdisc over SSH? 1070 00:41:09,300 --> 00:41:10,580 Yeah, Rdisc over 1071 00:41:10,580 --> 00:41:12,840 SSH. Or Rsync, 1072 00:41:12,880 --> 00:41:13,300 excuse me. 1073 00:41:13,460 --> 00:41:16,380 The only problem I was learning about with that is for it to be 1074 00:41:16,380 --> 00:41:18,500 automated, you've got to have that other server storing 1075 00:41:18,500 --> 00:41:19,040 the password. 1076 00:41:19,260 --> 00:41:20,860 If the first box is attacked, 1077 00:41:21,180 --> 00:41:22,280 you've got straight access. 1078 00:41:24,660 --> 00:41:26,340 Use restricted shells 1079 00:41:26,340 --> 00:41:27,720 like the SCP-only shell 1080 00:41:29,280 --> 00:41:30,320 and distribute 1081 00:41:30,320 --> 00:41:31,560 host keys. 1082 00:41:33,040 --> 00:41:33,940 Email me 1083 00:41:34,840 --> 00:41:36,400 about this later. We'll see 1084 00:41:36,400 --> 00:41:37,940 if we can come up with a generic solution to it. 1085 00:41:39,120 --> 00:41:39,720 Go ahead. 1086 00:41:39,980 --> 00:41:42,100 Can you say a word on cryptographic 1087 00:41:42,100 --> 00:41:43,360 hardware accelerators? 1088 00:41:45,440 --> 00:41:45,960 Fast. 1089 00:41:47,260 --> 00:41:47,780 Cryptographic 1090 00:41:48,500 --> 00:41:50,260 hardware accelerators, I believe, actually 1091 00:41:50,260 --> 00:41:51,800 will work with OpenSSH because 1092 00:41:52,380 --> 00:41:54,380 it gets most of its crypto out of OpenSSL. 1093 00:41:55,300 --> 00:41:56,720 I haven't verified that. 1094 00:41:57,040 --> 00:42:00,600 In general, though, CPUs are getting pretty fast. 1095 00:42:00,860 --> 00:42:03,180 The OpenBSD team just got, what was it, 1096 00:42:03,220 --> 00:42:06,200 a 2.5 megabit per second triple-desk, 1097 00:42:06,320 --> 00:42:08,160 using 1% of a mid-grade Pentium III. 1098 00:42:09,000 --> 00:42:10,680 So, you know, you extrapolate that out, 1099 00:42:10,740 --> 00:42:12,120 you get about 250 megabit. 1100 00:42:13,520 --> 00:42:14,480 Perfect? No. 1101 00:42:15,600 --> 00:42:17,620 Fast? Faster than you're probably going to need for 1102 00:42:17,620 --> 00:42:19,360 anything but a full wireline crypto? 1103 00:42:20,020 --> 00:42:21,020 Yeah, that'll work. 1104 00:42:21,020 --> 00:42:24,300 Oh, incidentally, you have all these VPN vendors bragging, 1105 00:42:24,360 --> 00:42:26,320 yeah, we've got something that you can terminate 1106 00:42:26,320 --> 00:42:27,900 60,000 connections against. 1107 00:42:28,760 --> 00:42:29,240 Great. 1108 00:42:29,460 --> 00:42:32,560 So you have one machine that if I break that machine, 1109 00:42:32,800 --> 00:42:35,900 it has decrypted information for 60,000 hosts. 1110 00:42:36,580 --> 00:42:37,060 Great. 1111 00:42:38,020 --> 00:42:40,800 The nice thing about my solution is, yes, 1112 00:42:40,800 --> 00:42:44,520 you have pathways to 60,000 other hosts, but you don't have 1113 00:42:44,520 --> 00:42:46,360 any of the data that went through it and you don't have 1114 00:42:46,360 --> 00:42:47,940 any of the authentication methods through it. 1115 00:42:48,460 --> 00:42:49,080 Go ahead. 1116 00:42:51,020 --> 00:42:53,020 I was just wondering about how there were no solutions for, 1117 00:42:54,100 --> 00:42:57,820 if you got into a box, you know, the key was there in the box. 1118 00:42:58,600 --> 00:43:02,300 These little cable motor boxes are not like that. 1119 00:43:02,500 --> 00:43:05,480 What we've done is taken the chip, the center layer, 1120 00:43:05,540 --> 00:43:09,600 the chip, the key, the only way to actually read or write from 1121 00:43:09,600 --> 00:43:13,100 that center layer is through fuses on the side to get blown 1122 00:43:13,100 --> 00:43:13,780 at the factory. 1123 00:43:14,140 --> 00:43:18,160 There's no way to get to the key or to the output. 1124 00:43:18,340 --> 00:43:20,020 This is the hardware dream. 1125 00:43:20,020 --> 00:43:22,840 This is the dream that if you put the key really, really, 1126 00:43:22,920 --> 00:43:26,380 really deep into your hardware, nobody will ever get access to it. 1127 00:43:26,680 --> 00:43:29,500 And I think the perfect rebuttal is anything that has anything 1128 00:43:29,500 --> 00:43:30,240 to do with DirecTV? 1129 00:43:31,080 --> 00:43:31,560 Anything? 1130 00:43:31,900 --> 00:43:32,440 Not DirecTV. 1131 00:43:32,860 --> 00:43:37,500 The bottom line, okay, the bottom line is, yes, 1132 00:43:38,280 --> 00:43:42,040 storing something very deep in hardware can be useful, 1133 00:43:42,300 --> 00:43:46,460 but in the end, that keying material needs to be accessible 1134 00:43:46,460 --> 00:43:48,240 to the outside world or else what's it matter? 1135 00:43:48,500 --> 00:43:48,900 Great. 1136 00:43:48,980 --> 00:43:49,300 You have a key. 1137 00:43:50,020 --> 00:43:51,040 You have bits that can't be accessed. 1138 00:43:51,400 --> 00:43:57,800 And by circumventing the method by which the legitimate bits are read off 1139 00:43:58,240 --> 00:44:01,840 or the legitimate bits are worked through, by circumventing that 1140 00:44:01,840 --> 00:44:04,860 and using it in a context that a company didn't expect, 1141 00:44:05,180 --> 00:44:08,320 you often can receive the same utility. 1142 00:44:09,800 --> 00:44:10,380 Anyone else? 1143 00:44:11,160 --> 00:44:11,980 Back there in the white. 1144 00:44:12,420 --> 00:44:15,760 What sort of implementation would you recommend for uploading files 1145 00:44:15,760 --> 00:44:17,260 to a web service yearly? 1146 00:44:18,820 --> 00:44:21,600 I really should have gone into this during this talk. 1147 00:44:21,860 --> 00:44:24,740 There's a wonderful app out there called MindTerm. 1148 00:44:24,900 --> 00:44:27,560 It is a full SSH implementation written in Java. 1149 00:44:28,340 --> 00:44:32,380 Somebody has gone ahead and added SCP support to MindTerm. 1150 00:44:32,600 --> 00:44:39,120 So it'll go ahead and actually gives you a decent interface over SSH to throw up files. 1151 00:44:40,360 --> 00:44:43,040 User goes to a web page, it loads a Java app. 1152 00:44:43,220 --> 00:44:47,240 The security of the Java app is actually verified by the, you know, 1153 00:44:47,260 --> 00:44:48,000 by code signing. 1154 00:44:48,380 --> 00:44:51,500 And you use that to go ahead and upload your files. 1155 00:44:51,620 --> 00:44:52,460 That's worked pretty well. 1156 00:44:52,780 --> 00:44:53,260 What? 1157 00:44:53,800 --> 00:44:54,280 IsNetworks. 1158 00:44:54,980 --> 00:44:55,460 IsNetworks. 1159 00:44:57,700 --> 00:44:58,340 Go ahead. 1160 00:44:58,760 --> 00:45:01,480 Yeah, you mentioned the following all along. 1161 00:45:02,700 --> 00:45:06,160 What do you think about using Kerberos for network authentication? 1162 00:45:10,780 --> 00:45:14,220 Kerb's one of those things that I know. 1163 00:45:14,280 --> 00:45:15,780 I know deep inside it's good. 1164 00:45:15,920 --> 00:45:17,220 I know deep inside it. 1165 00:45:17,260 --> 00:45:17,420 It's not secure. 1166 00:45:17,840 --> 00:45:24,080 But just the whole concept of one machine that if it's penetrated, everything dies just 1167 00:45:24,080 --> 00:45:27,680 really seems to bleed single point of failure to me. 1168 00:45:27,980 --> 00:45:30,040 So I have issues with it personally. 1169 00:45:30,880 --> 00:45:32,940 Other people use it very successfully. 1170 00:45:33,120 --> 00:45:35,500 Other people use it in very large scale deployments. 1171 00:45:36,220 --> 00:45:40,480 So SSH has quite a bit of code in it to make that feasible. 1172 00:45:40,980 --> 00:45:45,620 Personally, I have issues with some of that Kerb's philosophy. 1173 00:45:45,860 --> 00:45:47,080 But SSH itself. 1174 00:45:47,260 --> 00:45:48,540 SSH itself does support what you're referring to. 1175 00:45:48,980 --> 00:45:49,440 Go ahead. 1176 00:45:49,740 --> 00:45:54,620 I think you've expressed the point that no one actually should be SSH1 or SSH2. 1177 00:45:56,340 --> 00:45:57,540 Nobody should. 1178 00:45:58,240 --> 00:45:59,060 But okay. 1179 00:45:59,300 --> 00:46:02,420 Would you rather do SSH1 or would you rather do Telnet? 1180 00:46:03,880 --> 00:46:06,560 Well, I'd rather do SSH1 too. 1181 00:46:09,000 --> 00:46:14,200 One little political statement, SSH.com, why guys? 1182 00:46:14,520 --> 00:46:17,240 Why did you bungle the SSH1 to SSH2? 1183 00:46:17,240 --> 00:46:17,320 Why did you do SSH2 to SSH2 migration? 1184 00:46:17,960 --> 00:46:23,340 If you ever do anything to do with migration, please for the love of God be backwards compatible 1185 00:46:23,340 --> 00:46:25,360 and be upwards compatible if possible. 1186 00:46:27,020 --> 00:46:28,760 What basically happened was this. 1187 00:46:29,040 --> 00:46:33,260 SSH.com comes out with SSH2, a complete reimplementation with no new features. 1188 00:46:33,460 --> 00:46:34,280 Good job guys. 1189 00:46:36,740 --> 00:46:41,940 The entire SSH2 protocol was implemented in the SSH1 framework. 1190 00:46:42,260 --> 00:46:44,940 You can't do that unless you have no new features. 1191 00:46:45,320 --> 00:46:46,540 It physically doesn't. 1192 00:46:46,540 --> 00:46:47,940 Because code doesn't happen. 1193 00:46:48,580 --> 00:46:54,720 But they basically set it up so if you upgraded your servers to SSH2, suddenly all your SSH1 1194 00:46:54,720 --> 00:46:56,240 clients started screaming at you. 1195 00:46:56,380 --> 00:47:00,600 If you upgraded your SSH1 clients to SSH2, suddenly you couldn't connect anywhere. 1196 00:47:01,120 --> 00:47:06,500 So you had this catch-22 situation and what ended up happening is nobody ended up upgrading 1197 00:47:06,500 --> 00:47:07,340 to SSH2. 1198 00:47:08,100 --> 00:47:15,780 Open SSH comes out, does nice convenient migration path from SSH1 to SSH2 by simply supporting 1199 00:47:15,780 --> 00:47:15,960 both. 1200 00:47:16,300 --> 00:47:19,700 Well, it's not the freeness. 1201 00:47:19,840 --> 00:47:21,480 The freeness of Open SSH is nice. 1202 00:47:21,940 --> 00:47:31,320 But the reason Open SSH was migrated to over the SSH2 server was because it didn't break 1203 00:47:31,320 --> 00:47:31,940 everything. 1204 00:47:32,880 --> 00:47:33,600 Go ahead. 1205 00:47:34,880 --> 00:47:35,520 . 1206 00:47:35,520 --> 00:47:35,700 . 1207 00:47:35,700 --> 00:47:35,740 . 1208 00:47:36,800 --> 00:47:37,440 . 1209 00:47:37,440 --> 00:47:37,480 . 1210 00:47:37,480 --> 00:47:37,740 . 1211 00:47:37,740 --> 00:47:37,780 . 1212 00:47:37,780 --> 00:47:38,440 . 1213 00:47:38,440 --> 00:47:38,920 . 1214 00:47:43,440 --> 00:47:43,760 . 1215 00:47:49,920 --> 00:47:51,980 Yeah, the Cisco 1216 00:47:51,980 --> 00:47:53,500 routers don't support SSH2. 1217 00:47:55,220 --> 00:47:55,880 It's amazing 1218 00:47:55,880 --> 00:47:57,800 they support SSH1 at all. 1219 00:47:58,900 --> 00:48:00,040 They barely got 1220 00:48:00,040 --> 00:48:00,460 that going. 1221 00:48:01,660 --> 00:48:04,040 But yeah, the reason why there 1222 00:48:04,040 --> 00:48:05,960 is concern about the SSH1 protocol is 1223 00:48:05,960 --> 00:48:08,120 because there are these issues 1224 00:48:08,120 --> 00:48:09,940 in it that do look like sooner 1225 00:48:09,940 --> 00:48:11,720 or later are going to lead to compromise. 1226 00:48:13,120 --> 00:48:13,680 There's 1227 00:48:16,740 --> 00:48:18,120 no out-of-the-box 1228 00:48:18,120 --> 00:48:19,680 penetration of an existing stream. 1229 00:48:19,860 --> 00:48:21,680 The best you can do, there's been some 1230 00:48:21,680 --> 00:48:23,600 interesting work determining 1231 00:48:23,600 --> 00:48:25,840 someone's password by the amount of time it takes 1232 00:48:25,840 --> 00:48:27,760 between packets when they hit 1233 00:48:27,760 --> 00:48:28,280 the keys. 1234 00:48:31,200 --> 00:48:32,020 Ettercap, what's it do? 1235 00:48:32,280 --> 00:48:33,760 I mean, I know it's another sniffer, 1236 00:48:33,820 --> 00:48:35,420 but does it have a special SSH mode to it? 1237 00:48:35,680 --> 00:48:39,940 It sounds... 1238 00:48:42,860 --> 00:48:43,660 It sounds... 1239 00:48:43,680 --> 00:48:44,880 It sounds like it's doing the... 1240 00:48:44,880 --> 00:48:47,540 It sounds like what you're saying is that it's doing 1241 00:48:47,540 --> 00:48:49,500 the host key spoofing 1242 00:48:49,500 --> 00:48:51,360 and waiting for the user to just say, I don't care, 1243 00:48:51,500 --> 00:48:53,480 I want to get into this host, even though the host keys 1244 00:48:53,480 --> 00:48:55,640 don't match. SSH2 is going to 1245 00:48:55,640 --> 00:48:56,700 be vulnerable to that, too. 1246 00:48:57,260 --> 00:48:59,640 In fact, about the only really good solution 1247 00:48:59,640 --> 00:49:01,560 to that is to have SRP support 1248 00:49:01,560 --> 00:49:03,920 and to use the password to authenticate 1249 00:49:03,920 --> 00:49:05,060 a change in host keys. 1250 00:49:08,520 --> 00:49:09,360 Well, I mean, seriously, 1251 00:49:09,580 --> 00:49:11,360 if, I mean, SSH1 or SSH2, 1252 00:49:11,400 --> 00:49:13,340 if your host key doesn't match and you accepted 1253 00:49:13,340 --> 00:49:14,460 anyway, you're screwed. 1254 00:49:17,240 --> 00:49:17,720 Hmm. 1255 00:49:19,380 --> 00:49:21,340 I'll check it out. Send me an email 1256 00:49:21,340 --> 00:49:21,860 about it as well. 1257 00:49:22,940 --> 00:49:23,780 Anyone else? 1258 00:49:25,500 --> 00:49:27,020 Well, in that case, 1259 00:49:27,080 --> 00:49:28,040 it's been a blast. 1260 00:49:28,860 --> 00:49:29,500 Thank you.