1 00:00:00,000 --> 00:00:02,720 What's up? I'm Jason Ostrom. Can you guys hear me back there? 2 00:00:03,640 --> 00:00:10,100 Cool. This is Bill Borski. Hello. We flew in yesterday from Dallas and unfortunately 3 00:00:10,100 --> 00:00:19,640 our third speaker, Carl Feinauer, couldn't make it today. So first of all, I want to thank all 4 00:00:19,640 --> 00:00:24,240 the friends and peers of myself and Bill for being here in the room. I really appreciate it. 5 00:00:24,240 --> 00:00:30,400 We appreciate it. This is a really, really special talk to us. We're really passionate 6 00:00:30,400 --> 00:00:34,340 about this stuff. Let me tell you, give you guys kind of an idea of what we're going to talk about 7 00:00:34,340 --> 00:00:39,660 here. Islands of VoIP is something I could talk about for two hours. It's something that really 8 00:00:39,660 --> 00:00:45,300 excites me. So what we're going to do is we're going to talk, we're going to, at a hacker 9 00:00:45,300 --> 00:00:49,320 conference, you would want to see like a live hacking demo. So we didn't bring that. But we 10 00:00:49,320 --> 00:00:54,160 have some surprise UC vendor research that's a major manufacturer that, 11 00:00:54,240 --> 00:00:58,200 we're going to take a look at some potential vulnerabilities. And that's a surprise. If you 12 00:00:58,200 --> 00:01:02,940 guys stick around a little bit, Bill's going to show some technical details on that. And I'm 13 00:01:02,940 --> 00:01:07,480 going to talk to you guys about something that's really important to me. And what I want this to 14 00:01:07,480 --> 00:01:13,860 be is an exploration of an idea. And I think it could change the way we communicate in the future. 15 00:01:14,160 --> 00:01:18,400 And I want you guys to be a part of that. And I'm going to give this away to the community 16 00:01:20,200 --> 00:01:23,600 because it's something that you guys could be involved in. So this is a community effort. 17 00:01:24,240 --> 00:01:29,740 And we're releasing two open source tools in addition to the vendor research and a configuration 18 00:01:29,740 --> 00:01:36,100 for something special. So let's go ahead and jump into this. First of all, a small little disclaimer 19 00:01:36,100 --> 00:01:41,440 here. This doesn't necessarily represent the opinion of our employer. And just because we 20 00:01:41,440 --> 00:01:45,920 stand up here doesn't make what we say exactly right. Always challenge what's being said. We're 21 00:01:45,920 --> 00:01:53,580 here to explore an idea. And the idea could be disruptive to the traditional business of incumbents, 22 00:01:53,580 --> 00:01:54,220 to the status quo. So we're here to explore an idea. And the idea could be disruptive to the 23 00:01:54,220 --> 00:02:00,280 status quo. So what is VIPER? VIPER stands for Voice Over IP Exploit Research. Two main 24 00:02:00,280 --> 00:02:05,800 missions we have. We do VoIP UC pen testing. And we have a security research lab that we look at 25 00:02:05,800 --> 00:02:17,780 vulnerabilities in VoIP and UC. Okay. So Islands of VoIP. What am I talking about here with 26 00:02:17,780 --> 00:02:24,000 Islands of VoIP? What I've done here is I've kind of shown an architecture drawing of this idea that 27 00:02:24,000 --> 00:02:24,200 I've created. And I've kind of shown an architecture drawing of this idea that I've kind of shown 28 00:02:24,220 --> 00:02:29,640 up with. Islands of VoIP has been something that a lot of people talk about. And what it means is I 29 00:02:29,640 --> 00:02:34,360 started doing this pen testing really with SIP like in 2008. And I've wanted to present this for like 30 00:02:34,360 --> 00:02:41,220 a long time. If you look at Enterprise A, what was going on in like the mid-2000s is lots of 31 00:02:41,220 --> 00:02:45,140 companies were using VoIP internally on their network and reaping a lot of business benefits 32 00:02:45,140 --> 00:02:51,960 from using VoIP. But they weren't actually using SIP trunks. They would have a VoIP gateway that 33 00:02:51,960 --> 00:02:54,200 would translate from IP to TDM. And they would have a VoIP gateway that would translate from IP to TDM. 34 00:02:54,220 --> 00:02:58,660 And they would use like a PRI trunk. And they were going through the carrier. So the idea Islands of 35 00:02:58,660 --> 00:03:03,540 VoIP, what this means is we have many different disconnected separate VoIP networks where 36 00:03:03,540 --> 00:03:07,940 enterprises and organizations are using VoIP, but they're not connected together. They're not 37 00:03:07,940 --> 00:03:13,600 reaping the major benefits of VoIP. And so they actually all end up going through the PSTN. And 38 00:03:13,600 --> 00:03:19,220 you end up paying costs going through the PSTN. So that was Enterprise A was the first one. And 39 00:03:19,220 --> 00:03:24,200 then what we're seeing more and more here in like the late 2000s is, you know, the 40 00:03:24,220 --> 00:03:29,920 companies doing SIP trunking. And so the predominant architecture for this that I see a lot, and we do a 41 00:03:29,920 --> 00:03:35,340 lot of these VoIP pen tests. We go into the internal enterprise of the customer. We'll either have, you 42 00:03:35,340 --> 00:03:40,960 know, Enterprise B and Enterprise C doing a private IP MPLS network connected to a large carrier 43 00:03:40,960 --> 00:03:47,680 doing SIP trunking. And what's so ironic is that these two enterprises are, they could be connecting 44 00:03:47,680 --> 00:03:52,400 directly to each other with VoIP, yet they have to go through the carrier and pay the carrier for the 45 00:03:52,400 --> 00:03:52,860 cost. 46 00:03:54,220 --> 00:04:00,240 What's ironic is that, you know, you don't do this with email in your HTTP traffic, right? You 47 00:04:00,240 --> 00:04:05,100 advertise yourself in DNS. Why should we be doing this with VoIP? It's something to kind of think 48 00:04:05,100 --> 00:04:10,960 about. Why do you have to go through a carrier to do your voice communications? Here's another 49 00:04:10,960 --> 00:04:16,420 representation of the Islands of VoIP idea. So one thing that people are talking about with 50 00:04:16,420 --> 00:04:24,000 connecting the Islands of VoIP is using Enum. And Enum is basically a, it's a special 51 00:04:24,220 --> 00:04:31,140 resource record where we map E.164 telephony numbers to a SIP URI. And so it solves the problem of 52 00:04:31,140 --> 00:04:38,040 interconnecting the Islands of VoIP because you can look up the number and you can go over two 53 00:04:38,040 --> 00:04:43,540 different SIP networks can connect to each other directly by dialing by number. So that fits when 54 00:04:43,540 --> 00:04:50,600 you're still thinking in the terms of dialing by number. One of the issues with Enum is it hasn't 55 00:04:50,600 --> 00:04:54,200 seen widespread adoption, and there's political and economic barriers to it. And so Enum is a 56 00:04:54,220 --> 00:04:58,840 great resource to this because the carriers, it requires the consensus of too many competing 57 00:04:58,840 --> 00:05:04,660 carriers on this. So we did an Enum experiment, and this is actually how this all started 58 00:05:04,660 --> 00:05:12,420 with Enum. What we did is we wanted to look at the privacy considerations for publishing 59 00:05:12,420 --> 00:05:17,500 ourselves into Enum, into the directory. So we took some numbers and started putting 60 00:05:17,500 --> 00:05:22,800 ourselves in, and we found we couldn't add ourselves into this. This is the E.164 org 61 00:05:23,360 --> 00:05:23,840 directory. 62 00:05:24,220 --> 00:05:30,880 So it kind of was just seeming like I wanted to do this experiment with a registrar in the UK 63 00:05:30,880 --> 00:05:36,560 called Nominet, and I wanted to basically create a tool that could do an Enum lookup on every 64 00:05:36,560 --> 00:05:41,340 single number in the UK and see if there were privacy considerations where I could actually 65 00:05:41,340 --> 00:05:46,600 connect to that endpoint SIP device just by having a range of telephone numbers. So that was kind of 66 00:05:46,600 --> 00:05:52,640 how this whole thing started with this Enum. So there's got to be a better way. And so there's 67 00:05:52,640 --> 00:05:54,000 got to be a better way of doing this. 68 00:05:54,220 --> 00:05:54,340 So there's got to be a better way of doing this. 69 00:05:54,340 --> 00:06:00,020 And so this is where that Enum hasn't proven itself to work because of these too many barriers. 70 00:06:00,560 --> 00:06:07,740 So the SIP peering using DNS-SRV. If you've read this abstract, everything that we're 71 00:06:07,740 --> 00:06:10,840 talking about here is in this abstract. We're just going to be filling in some details. 72 00:06:11,740 --> 00:06:21,420 So we dial by name and SIP address. We peer directly using SIP DNS-SRV routing. So this 73 00:06:21,420 --> 00:06:22,660 is how it works here. 74 00:06:23,680 --> 00:06:24,200 So this is how it works here. 75 00:06:24,220 --> 00:06:27,660 We can interconnect all the islands of VoIP directly using DNS. 76 00:06:28,000 --> 00:06:30,920 DNS is built for high availability and load balancing. 77 00:06:31,020 --> 00:06:31,820 It's already supported. 78 00:06:32,240 --> 00:06:35,780 It's a resilient protocol that's lasted for a very long time. 79 00:06:36,220 --> 00:06:38,300 So we can call via your SIP URI. 80 00:06:38,600 --> 00:06:40,760 Call via your SIP, your email address. 81 00:06:41,260 --> 00:06:43,060 So not calling by your number. 82 00:06:43,600 --> 00:06:45,480 And no more dialing by number. 83 00:06:45,720 --> 00:06:47,140 And it's easier to remember. 84 00:06:47,380 --> 00:06:50,720 And it matches your email address and your SIP URI. 85 00:06:50,720 --> 00:06:55,440 There's a large cost savings of direct SIP peering using this method 86 00:06:55,440 --> 00:06:58,140 and not having to pay your PSTN carrier. 87 00:06:59,380 --> 00:07:01,320 And then the PSTN will be increasingly diminished. 88 00:07:01,680 --> 00:07:04,760 So the special DNS SRV record is RFC 2782. 89 00:07:05,300 --> 00:07:10,120 RFC 3263 specifies this usage for SIP. 90 00:07:10,220 --> 00:07:12,440 And so SRV service location, 91 00:07:13,360 --> 00:07:16,120 it's already built for fault tolerance and load balancing. 92 00:07:16,680 --> 00:07:18,400 This is a sample record here. 93 00:07:19,000 --> 00:07:20,620 So we have service protocol. 94 00:07:20,720 --> 00:07:23,000 We call it a name, which is the DNS domain. 95 00:07:23,580 --> 00:07:28,020 And the service returns the priority, weight, port, and target. 96 00:07:28,340 --> 00:07:31,560 So what we can do here, here's a sample zone file record. 97 00:07:32,180 --> 00:07:34,780 When we have all 10 for the priority, 98 00:07:36,940 --> 00:07:39,020 then we match it up with the load balancing group. 99 00:07:39,300 --> 00:07:41,920 So then you add up the numbers 60, 20, 10, and 10. 100 00:07:42,100 --> 00:07:44,800 And so 60% of the traffic will go to big box. 101 00:07:45,100 --> 00:07:46,400 20% to small box. 102 00:07:46,480 --> 00:07:47,140 So we have automatic. 103 00:07:47,940 --> 00:07:50,700 And it's just like MX records for mail transport. 104 00:07:50,720 --> 00:07:51,460 It's just like MX records for agents for matching. 105 00:07:51,580 --> 00:07:52,820 It works the exact same way. 106 00:07:53,380 --> 00:07:55,680 So why aren't more people doing this? 107 00:07:55,740 --> 00:07:56,960 We started thinking of this. 108 00:07:57,080 --> 00:07:59,940 Why are all these companies directly connecting to their carriers 109 00:07:59,940 --> 00:08:01,740 and not doing this method? 110 00:08:02,200 --> 00:08:05,260 So let's look at a sample architecture for this. 111 00:08:08,080 --> 00:08:11,180 So Jason is connected on example.com. 112 00:08:11,220 --> 00:08:13,920 And his SIP service with his enterprise 113 00:08:13,920 --> 00:08:15,880 is connected on the edge of his network. 114 00:08:16,160 --> 00:08:20,320 So he sends a SIP invite in the DNS SRV lookup for foo.com. 115 00:08:20,720 --> 00:08:22,380 So he wants to call Bill's organization. 116 00:08:22,740 --> 00:08:25,580 And then the record returns. 117 00:08:25,700 --> 00:08:28,780 So then he routes the traffic directly to Bill's organization. 118 00:08:29,300 --> 00:08:32,460 And the invite comes in via the AOR, 119 00:08:32,600 --> 00:08:35,480 the address of record for Bill's SIP user agent. 120 00:08:35,540 --> 00:08:38,900 Knows the IP address with his registered user agent 121 00:08:38,900 --> 00:08:40,400 and routes the call directly to him. 122 00:08:40,540 --> 00:08:43,640 So we have a fault-tolerant, high availability method 123 00:08:43,640 --> 00:08:47,780 of routing SIP traffic, bypassing the PSTN, 124 00:08:47,880 --> 00:08:49,700 which can be managed by each organization. 125 00:08:49,700 --> 00:08:51,920 Each, the important thing, it brings the power 126 00:08:51,920 --> 00:08:53,900 back to the organization, back to the enterprise, 127 00:08:54,380 --> 00:08:56,780 and not having to go through, rely on the carrier for this. 128 00:08:56,900 --> 00:08:59,320 Then the carrier, we can use the carrier more 129 00:08:59,320 --> 00:09:01,280 for the network transport. 130 00:09:01,740 --> 00:09:05,120 So then VoIP becomes another application on the network, 131 00:09:05,260 --> 00:09:06,840 just like email and HTTP. 132 00:09:07,320 --> 00:09:09,860 And this is the way it was meant to be, in my opinion. 133 00:09:11,520 --> 00:09:16,460 And so then we set up the, we answer the SIP invite, 134 00:09:16,680 --> 00:09:19,180 and then we have RTP media directly between the SIP servers. 135 00:09:19,700 --> 00:09:20,740 And that's how we started anchoring the media. 136 00:09:20,960 --> 00:09:23,680 So we started looking at this as a research goal. 137 00:09:24,360 --> 00:09:27,180 We want to measure the growth of SIP peering on the internet 138 00:09:27,180 --> 00:09:28,160 over a period of time. 139 00:09:28,280 --> 00:09:31,160 So the first idea is, Bill and I were out in, 140 00:09:31,180 --> 00:09:33,460 we were out in another country doing a VoIP pen test 141 00:09:33,460 --> 00:09:34,600 for four weeks. 142 00:09:34,700 --> 00:09:36,900 So we ran out of time to do everything we wanted to do. 143 00:09:37,120 --> 00:09:41,380 But we want to look at the DNS SRV plotted over time, 144 00:09:41,460 --> 00:09:42,120 how it increases. 145 00:09:42,340 --> 00:09:45,300 We wanted to look at the proliferation of enum records 146 00:09:45,300 --> 00:09:46,640 on the public internet. 147 00:09:46,840 --> 00:09:49,560 And then we wanted to do, scan the internet, 148 00:09:49,600 --> 00:09:49,680 and then we wanted to do, scan the internet, 149 00:09:49,700 --> 00:09:51,660 for the number of listening SIP services. 150 00:09:52,040 --> 00:09:55,660 So I'm releasing a new tool that I had the idea to do 151 00:09:55,660 --> 00:09:56,520 like a long time ago. 152 00:09:56,640 --> 00:09:59,380 I finally released it, and it's on the website right now 153 00:09:59,380 --> 00:10:00,220 on SourceForge. 154 00:10:00,280 --> 00:10:02,320 It's enumerator.sourceforge.net. 155 00:10:02,700 --> 00:10:03,800 What is enumerator? 156 00:10:04,300 --> 00:10:05,280 It's written in C. 157 00:10:05,940 --> 00:10:06,980 I'm the author. 158 00:10:07,180 --> 00:10:10,300 Carl, the other guy that's not here, helped out with it. 159 00:10:10,440 --> 00:10:13,260 And it can be used for R&D purposes like we did. 160 00:10:13,440 --> 00:10:16,240 It can also be used for VoIP pen testing in the recon phase. 161 00:10:16,960 --> 00:10:18,660 We wrote some special features 162 00:10:18,660 --> 00:10:22,940 that can look for organizations for the existence of SIP services. 163 00:10:24,080 --> 00:10:25,520 It's optimized for VoIP. 164 00:10:26,160 --> 00:10:28,780 The DNS SRV lookups can be for a single domain 165 00:10:28,780 --> 00:10:30,200 or for a text input list. 166 00:10:30,520 --> 00:10:32,620 It also supports MX record lookups 167 00:10:32,620 --> 00:10:35,280 because we wanted to compare SRV to MX 168 00:10:35,280 --> 00:10:37,560 and plot this over time and see 169 00:10:37,560 --> 00:10:40,100 how SRV was catching up with MX records 170 00:10:40,500 --> 00:10:42,700 for all top level domains. 171 00:10:43,140 --> 00:10:44,480 So that was a part of the experiment. 172 00:10:44,760 --> 00:10:47,020 And we support enum in enumerator. 173 00:10:47,100 --> 00:10:48,420 And that was one of the things that 174 00:10:48,420 --> 00:10:49,640 we were initially looking at. 175 00:10:49,780 --> 00:10:51,380 So what did I do here? 176 00:10:51,440 --> 00:10:52,380 What did we do with the research? 177 00:10:52,540 --> 00:10:54,960 We had to get special permission 178 00:10:54,960 --> 00:10:56,820 from network solutions and org 179 00:10:56,820 --> 00:10:58,540 to get all the top level domains 180 00:10:59,800 --> 00:11:01,300 for com, net, and org. 181 00:11:02,020 --> 00:11:04,240 And we wanted to find the number of SRV enabled. 182 00:11:04,400 --> 00:11:06,520 So we collected this data here, 183 00:11:06,640 --> 00:11:07,840 about 5 gig, 184 00:11:08,800 --> 00:11:10,000 292 million domains. 185 00:11:10,660 --> 00:11:13,240 And so we had to do some benchmarking 186 00:11:13,240 --> 00:11:13,900 to figure this out. 187 00:11:13,980 --> 00:11:15,360 Once enumerator was coded, 188 00:11:15,560 --> 00:11:17,200 we basically split up. 189 00:11:17,200 --> 00:11:19,660 We decided to split this up into 11 different servers. 190 00:11:20,720 --> 00:11:22,840 And then we benchmarked this 191 00:11:22,840 --> 00:11:24,760 to basically split enumerator 192 00:11:24,760 --> 00:11:26,360 into 800 separate processes 193 00:11:26,360 --> 00:11:29,620 and to parse a single large log file 194 00:11:29,620 --> 00:11:30,800 into 800 chunks. 195 00:11:31,240 --> 00:11:33,660 And so each of the 800 enumerator processes 196 00:11:33,660 --> 00:11:35,640 would basically do its workload 197 00:11:36,200 --> 00:11:37,720 in parallel on the host. 198 00:11:38,060 --> 00:11:40,200 And so we benchmarked this 199 00:11:40,200 --> 00:11:42,360 at 140 domain queries per second 200 00:11:42,360 --> 00:11:43,840 was the fastest we could get this. 201 00:11:43,920 --> 00:11:46,200 And 4 SRV queries per domain. 202 00:11:46,200 --> 00:11:47,800 And I'm going to tell you what those queries are. 203 00:11:48,020 --> 00:11:49,320 It's those queries right there. 204 00:11:49,580 --> 00:11:51,460 This is the most standard way 205 00:11:52,500 --> 00:11:54,360 to host an SRV record. 206 00:11:54,580 --> 00:11:55,420 The last one 207 00:11:55,980 --> 00:11:58,160 is Microsoft specific for federation. 208 00:11:58,820 --> 00:12:00,040 So here's the results. 209 00:12:00,460 --> 00:12:03,780 3.30% of domains on the public internet, 210 00:12:03,980 --> 00:12:04,780 com, net, and org, 211 00:12:04,880 --> 00:12:07,080 support SRV. 212 00:12:07,800 --> 00:12:10,460 So it was 8.7 million domains. 213 00:12:10,920 --> 00:12:12,360 And those are the states. 214 00:12:13,040 --> 00:12:15,500 That's what it looks like there. 215 00:12:15,500 --> 00:12:17,560 So enumerator in action. 216 00:12:17,680 --> 00:12:19,500 Let's take a look at just a couple of screenshots here 217 00:12:19,500 --> 00:12:20,000 because we... 218 00:12:21,840 --> 00:12:23,100 So we have a domain, 219 00:12:23,260 --> 00:12:25,620 the DNS SRV lookup for a single domain. 220 00:12:26,300 --> 00:12:28,260 And it returned the records there, 221 00:12:28,380 --> 00:12:29,140 the targets. 222 00:12:29,740 --> 00:12:32,300 And then when we can do the input domain list 223 00:12:32,300 --> 00:12:32,880 right there 224 00:12:33,560 --> 00:12:35,020 and the MX records as well. 225 00:12:35,400 --> 00:12:38,640 And here's what it looks like for the input list. 226 00:12:39,040 --> 00:12:40,560 So if you have a large file, 227 00:12:41,180 --> 00:12:42,480 it'll just start querying through. 228 00:12:42,880 --> 00:12:44,180 And that's what it looks like. 229 00:12:44,180 --> 00:12:45,920 And until it gets to the end at 100%, 230 00:12:45,920 --> 00:12:47,380 then it displays all its statistics. 231 00:12:48,980 --> 00:12:51,400 So here's what the enum support looks like. 232 00:12:52,760 --> 00:12:53,820 Minus E, minus R. 233 00:12:53,920 --> 00:12:55,500 You can look up a range of numbers. 234 00:12:55,840 --> 00:12:58,540 So we didn't get to the point where we were going to scan. 235 00:12:58,720 --> 00:13:00,420 We were looking at all the North American numbers 236 00:13:00,420 --> 00:13:02,740 or all the numbers in the UK. 237 00:13:04,300 --> 00:13:05,620 So here's a single number. 238 00:13:06,060 --> 00:13:08,340 So this is what the enum looks like. 239 00:13:08,380 --> 00:13:09,460 It looks up the number 240 00:13:09,460 --> 00:13:10,740 and it finds it 241 00:13:11,700 --> 00:13:13,260 of that CPURI right there. 242 00:13:14,180 --> 00:13:14,300 And then it's going to do a batch test 243 00:13:14,300 --> 00:13:15,740 at sip.nemox.net. 244 00:13:16,420 --> 00:13:17,980 So here's another view 245 00:13:17,980 --> 00:13:20,700 of doing a range of addresses. 246 00:13:21,220 --> 00:13:24,200 And it calculates some statistics 247 00:13:24,200 --> 00:13:25,980 at the end of its little enum scan. 248 00:13:27,280 --> 00:13:29,540 So I've already released this, like I said. 249 00:13:29,640 --> 00:13:32,340 And the tool, you can go into SRV.C. 250 00:13:32,620 --> 00:13:34,360 And these are the lines right here 251 00:13:34,360 --> 00:13:37,440 if you want to modify the code 252 00:13:37,440 --> 00:13:39,720 and add your own SRV lookups. 253 00:13:40,920 --> 00:13:42,600 And EnumArrayer can measure the usage 254 00:13:42,600 --> 00:13:45,100 of UC Federation services or SIP-enabled DNS 255 00:13:45,100 --> 00:13:46,500 on the public internet. 256 00:13:46,780 --> 00:13:48,860 So we're giving this away as a research tool. 257 00:13:49,040 --> 00:13:53,040 And as we do more, find more SRV record types, 258 00:13:53,120 --> 00:13:55,000 we can add this into EnumArrayer. 259 00:13:56,660 --> 00:13:59,460 So now we're taking a transition into UC Federation. 260 00:14:00,900 --> 00:14:02,280 Naturally, as our research, 261 00:14:02,480 --> 00:14:05,640 we were looking at public SIP DNS SRV peering. 262 00:14:05,740 --> 00:14:08,300 We started hearing about this term UC Federation. 263 00:14:08,800 --> 00:14:09,660 What is it? 264 00:14:09,660 --> 00:14:12,000 It basically allows business-to-business communication 265 00:14:12,480 --> 00:14:15,660 and collaboration the same way between organizations 266 00:14:15,660 --> 00:14:17,960 that you do it within your organization. 267 00:14:18,420 --> 00:14:22,580 So HD voice and video between different domains. 268 00:14:23,260 --> 00:14:26,480 Collaboration tools like whiteboarding, desktop, 269 00:14:26,840 --> 00:14:29,340 application sharing between companies. 270 00:14:29,560 --> 00:14:31,480 It's the next killer app with UC 271 00:14:31,480 --> 00:14:33,260 that everyone's talking about. 272 00:14:33,460 --> 00:14:35,940 You can go out and Google UC Federation. 273 00:14:36,320 --> 00:14:38,500 And this is what we started looking at. 274 00:14:38,500 --> 00:14:39,760 And this is the next thing we're going to talk about. 275 00:14:41,180 --> 00:14:43,540 It does promise many business benefits. 276 00:14:43,940 --> 00:14:46,200 And so we looked at two vendors initially. 277 00:14:46,440 --> 00:14:48,120 We looked at Cisco and Microsoft. 278 00:14:49,660 --> 00:14:50,740 I love Cisco. 279 00:14:50,880 --> 00:14:52,420 We have friends in the room here with Cisco. 280 00:14:52,820 --> 00:14:55,840 The Cisco solution uses the PSTN initially 281 00:14:56,320 --> 00:14:57,600 to do the Federation connection. 282 00:14:57,960 --> 00:15:00,220 And it builds like a hash of the two users. 283 00:15:00,400 --> 00:15:02,800 And then after that, they can use TCP IP. 284 00:15:03,160 --> 00:15:06,740 We wanted to focus more on, for a couple reasons, 285 00:15:06,860 --> 00:15:07,600 on the Microsoft. 286 00:15:07,600 --> 00:15:11,340 Because we like the way Microsoft does the UC Federation. 287 00:15:11,700 --> 00:15:16,380 So surprise, Microsoft is the surprise vendor 288 00:15:16,380 --> 00:15:18,600 that we ended up doing research on. 289 00:15:18,800 --> 00:15:22,380 And it looks like their solution is really taking off. 290 00:15:22,560 --> 00:15:24,360 So we're really interested in it. 291 00:15:24,640 --> 00:15:27,300 And what's going on here in the industry? 292 00:15:27,540 --> 00:15:29,140 If you look at this guy here, Matt Landis, 293 00:15:29,260 --> 00:15:32,120 he's published a public Federation directory. 294 00:15:32,500 --> 00:15:34,160 And so what they're doing, they want to create 295 00:15:34,160 --> 00:15:36,220 education and awareness around, 296 00:15:36,220 --> 00:15:40,460 with other Link users, with other Microsoft UC users, 297 00:15:40,980 --> 00:15:43,560 to let other people know who's doing Federation. 298 00:15:44,260 --> 00:15:46,040 So he published this directory. 299 00:15:46,740 --> 00:15:51,020 And we actually, with Carl and Bill and myself, 300 00:15:51,260 --> 00:15:54,100 we set up our own, like, Microsoft UC honeypot. 301 00:15:54,480 --> 00:15:57,700 We built our own installation of Microsoft Link, 302 00:15:57,840 --> 00:15:59,300 which is the solution we're going to talk about. 303 00:15:59,480 --> 00:16:03,220 And we published our, we got a root CA domain. 304 00:16:03,580 --> 00:16:04,400 We purchased a domain. 305 00:16:04,400 --> 00:16:06,700 And we published ourselves into this directory. 306 00:16:06,840 --> 00:16:08,520 We tried putting ourselves into this directory. 307 00:16:08,840 --> 00:16:10,740 But this guy wouldn't allow it. 308 00:16:10,940 --> 00:16:13,360 So he didn't publish us into the directory. 309 00:16:13,600 --> 00:16:15,940 Because we wanted to study and see, like, what would happen. 310 00:16:17,520 --> 00:16:19,240 Now, this is really interesting, 311 00:16:19,340 --> 00:16:21,720 because you can download his, it's a spreadsheet. 312 00:16:22,080 --> 00:16:23,080 And you can go download it. 313 00:16:23,280 --> 00:16:26,680 And you can see the top three countries are Canada, 314 00:16:26,820 --> 00:16:27,880 USA, and Norway. 315 00:16:28,940 --> 00:16:30,840 And with 9,700 domains. 316 00:16:33,560 --> 00:16:34,360 So, um, 317 00:16:34,400 --> 00:16:37,020 this directory is a second directory that we found. 318 00:16:37,180 --> 00:16:38,360 It's linkedirectory.com. 319 00:16:38,580 --> 00:16:39,380 It's a public directory. 320 00:16:39,580 --> 00:16:40,640 You can go look at that. 321 00:16:40,880 --> 00:16:43,340 We were able to add our test UC Federation deployment 322 00:16:43,340 --> 00:16:43,900 in this directory. 323 00:16:43,980 --> 00:16:45,020 They granted us into this. 324 00:16:45,180 --> 00:16:46,940 I think it had something to do with the certificate 325 00:16:46,940 --> 00:16:47,960 that we initially had. 326 00:16:48,100 --> 00:16:49,820 We went out and purchased a real certificate. 327 00:16:50,200 --> 00:16:52,000 And we advertised ourselves the right way. 328 00:16:52,140 --> 00:16:53,020 So we went back. 329 00:16:53,040 --> 00:16:54,540 We'd probably get into that other directory. 330 00:16:54,840 --> 00:16:56,080 But it is really interesting, 331 00:16:56,200 --> 00:16:58,860 because there's more and more awareness about this Federation. 332 00:16:59,240 --> 00:17:00,660 You can go out and look this up. 333 00:17:00,820 --> 00:17:03,380 And companies are trying to communicate to each other, 334 00:17:03,380 --> 00:17:05,920 using this peering, using DNS SRV. 335 00:17:06,280 --> 00:17:09,280 And it's opening up a lot of business opportunities. 336 00:17:09,900 --> 00:17:12,640 But it also introduces risk in the environment. 337 00:17:12,740 --> 00:17:16,060 Because you have the balance between security and usability. 338 00:17:17,840 --> 00:17:19,740 So I'm going to hand this over to Bill. 339 00:17:19,840 --> 00:17:22,600 He's going to talk a little bit about the specifics 340 00:17:22,600 --> 00:17:23,680 of the Microsoft solution. 341 00:17:24,820 --> 00:17:25,500 All right. 342 00:17:25,540 --> 00:17:27,180 This is a really high-level overview 343 00:17:27,180 --> 00:17:30,680 of how Lync architecture looks. 344 00:17:31,520 --> 00:17:32,840 You have edge servers. 345 00:17:32,840 --> 00:17:35,660 And that's how people connect through the public Internet. 346 00:17:35,960 --> 00:17:39,720 And behind that, you have the Lync front-end servers 347 00:17:39,720 --> 00:17:41,720 for internal users. 348 00:17:42,520 --> 00:17:45,920 The front-end servers really just negotiate authentication 349 00:17:45,920 --> 00:17:47,600 for the back-end. 350 00:17:47,760 --> 00:17:50,160 And you can... 351 00:17:50,160 --> 00:17:54,300 It still works the same way with DNS SRV lookups. 352 00:17:54,800 --> 00:17:58,480 So Gilgamesh can call... 353 00:17:58,480 --> 00:18:00,800 I didn't write these names. 354 00:18:00,900 --> 00:18:01,640 These are kind of ridiculous. 355 00:18:01,640 --> 00:18:03,800 Gilgamesh can call Mark Aurelius 356 00:18:05,260 --> 00:18:07,320 at his organization. 357 00:18:07,680 --> 00:18:09,820 And just like he said before, 358 00:18:10,000 --> 00:18:12,780 he just looks up the record 359 00:18:12,780 --> 00:18:16,940 and then the IP address for the other Lync... 360 00:18:17,640 --> 00:18:20,020 company using Lync comes up. 361 00:18:20,140 --> 00:18:22,340 And then they can talk. 362 00:18:22,560 --> 00:18:28,600 But what's different is there's a TLS tunnel 363 00:18:28,600 --> 00:18:31,200 between the two edge servers. 364 00:18:32,720 --> 00:18:34,280 And it's pretty secure. 365 00:18:34,460 --> 00:18:37,820 I mean, the way they set it up. 366 00:18:38,440 --> 00:18:40,140 If you want to add anything to that. 367 00:18:40,240 --> 00:18:41,520 Yeah, no, it's just... 368 00:18:41,960 --> 00:18:42,920 You have to go out. 369 00:18:42,960 --> 00:18:44,320 You have to buy a real certificate. 370 00:18:44,460 --> 00:18:45,560 If you spoof... 371 00:18:45,560 --> 00:18:47,960 When they negotiate a TLS handshake, 372 00:18:48,100 --> 00:18:51,780 if you have a certificate that doesn't match your domain, 373 00:18:52,040 --> 00:18:53,060 the connection gets rejected. 374 00:18:53,420 --> 00:18:54,920 We did a lot of research on this. 375 00:18:55,000 --> 00:18:58,220 We did a four-week-long security assessment 376 00:18:58,220 --> 00:19:00,600 for a customer that had this solution. 377 00:19:00,600 --> 00:19:02,040 So we were testing it in our lab. 378 00:19:02,240 --> 00:19:04,260 And we were actually testing it against the customer. 379 00:19:04,380 --> 00:19:06,640 So we found all this stuff about the way this works. 380 00:19:07,780 --> 00:19:09,260 And also, if you... 381 00:19:09,260 --> 00:19:11,300 You can talk about the whitelisting, but yeah. 382 00:19:11,380 --> 00:19:12,260 Two edge services. 383 00:19:12,400 --> 00:19:13,420 They have public IP addresses. 384 00:19:14,060 --> 00:19:16,240 And you can look them up with DNS SRV. 385 00:19:16,340 --> 00:19:19,100 So you can find any one of these companies using this. 386 00:19:20,120 --> 00:19:22,300 And so these ports are open on the Internet. 387 00:19:22,440 --> 00:19:24,260 So this is an exposure point. 388 00:19:24,400 --> 00:19:27,660 It introduces risk where in the future, 389 00:19:27,700 --> 00:19:30,580 you're hacking web servers and email servers. 390 00:19:30,600 --> 00:19:32,880 You can hack UC servers now on the public Internet. 391 00:19:33,820 --> 00:19:34,380 Right. 392 00:19:36,440 --> 00:19:39,020 So there are different types of federation. 393 00:19:39,320 --> 00:19:42,360 There's dynamic, which just uses SRV discovery. 394 00:19:42,720 --> 00:19:46,420 And that means anybody can connect to your infrastructure 395 00:19:46,420 --> 00:19:50,240 if they have a valid domain and a CA. 396 00:19:52,140 --> 00:19:54,140 They can connect and send your... 397 00:19:54,140 --> 00:19:55,200 They can enumerate users. 398 00:19:55,360 --> 00:19:56,600 They can send anybody messages, 399 00:19:56,700 --> 00:19:59,300 which can be obviously dangerous. 400 00:20:00,400 --> 00:20:03,740 The next level would be the blacklist, 401 00:20:04,740 --> 00:20:07,940 which you just put in there a blacklist of servers 402 00:20:07,940 --> 00:20:11,540 that you don't want to be able to contact your federation. 403 00:20:12,860 --> 00:20:15,600 And then the best way to do it is a whitelist 404 00:20:16,320 --> 00:20:19,300 that has a list that just has trusted partners 405 00:20:19,300 --> 00:20:20,600 that you want to federate with. 406 00:20:21,180 --> 00:20:24,620 We started working with the dynamic setup 407 00:20:26,640 --> 00:20:29,080 because it's the easiest to attack. 408 00:20:29,080 --> 00:20:34,740 And so, yeah, that's what this says here. 409 00:20:37,820 --> 00:20:42,800 So my coworker, Carl, he worked in C Sharp 410 00:20:42,800 --> 00:20:46,640 to develop this code to make a custom link client 411 00:20:46,640 --> 00:20:48,640 so we could send our own messages through. 412 00:20:48,980 --> 00:20:54,460 And he worked for a few weeks on this, 413 00:20:54,540 --> 00:20:56,920 and he used the official Microsoft documentation, 414 00:20:57,060 --> 00:20:58,840 but almost everything in the documentation 415 00:20:59,080 --> 00:21:00,460 was wrong or just... 416 00:21:03,360 --> 00:21:06,320 Yeah, everything from how they did 417 00:21:06,320 --> 00:21:09,020 NTLM authentication to everything. 418 00:21:09,380 --> 00:21:13,660 And he just used the logging engine on the link server 419 00:21:13,660 --> 00:21:16,740 and just kept sending messages and sending messages, 420 00:21:16,900 --> 00:21:18,020 and he finally got it working. 421 00:21:18,320 --> 00:21:21,900 And we started sending, and we looked, 422 00:21:21,900 --> 00:21:28,420 and it just sends HTML over a special SIP message 423 00:21:29,740 --> 00:21:32,280 packet, and that's how you do IAM. 424 00:21:32,380 --> 00:21:34,160 And we started looking into it, 425 00:21:34,240 --> 00:21:39,800 and it looked like we could get something done. 426 00:21:39,940 --> 00:21:42,240 Some people released something before we got a chance 427 00:21:42,240 --> 00:21:43,660 to get that deep into it, 428 00:21:43,740 --> 00:21:47,340 but the safe HTML issue that was... 429 00:21:48,540 --> 00:21:51,100 that Microsoft made a patch for just recently. 430 00:21:53,300 --> 00:21:56,400 We were getting right there, but we had to leave, 431 00:21:56,440 --> 00:21:59,060 and we didn't really get there. 432 00:21:59,060 --> 00:21:59,700 We didn't really get much done. 433 00:22:00,060 --> 00:22:05,640 But it was a long process getting this working. 434 00:22:06,800 --> 00:22:07,920 And here's... 435 00:22:09,260 --> 00:22:10,940 I'm not sure what this code is. 436 00:22:11,200 --> 00:22:14,580 This is actually how you send a message. 437 00:22:14,840 --> 00:22:16,280 It's a standard SIP message, 438 00:22:16,440 --> 00:22:20,500 except for you have to do TLS negotiation, 439 00:22:20,800 --> 00:22:23,660 and then you have to use... 440 00:22:23,660 --> 00:22:25,860 If you want to be an authenticated user, 441 00:22:26,080 --> 00:22:28,980 like we said before, you don't actually have to be 442 00:22:29,060 --> 00:22:31,920 authenticated on someone's domain to send people messages. 443 00:22:33,360 --> 00:22:35,680 But you have to negotiate TLS, 444 00:22:35,860 --> 00:22:37,780 and then you have to authenticate with NTLM, 445 00:22:38,460 --> 00:22:40,080 but a weird NTLM. 446 00:22:40,260 --> 00:22:42,440 And this is essentially how you build a message. 447 00:22:42,480 --> 00:22:44,320 It's just a string, and then you send it over. 448 00:22:48,320 --> 00:22:48,800 So... 449 00:22:51,900 --> 00:22:53,000 Sorry, I guess I... 450 00:22:53,000 --> 00:22:53,840 Yeah. 451 00:22:55,880 --> 00:22:57,960 So he made two tools. 452 00:22:57,960 --> 00:23:01,780 Out of working with this. 453 00:23:02,000 --> 00:23:03,900 And one is called Link Spoof, 454 00:23:04,040 --> 00:23:05,120 and the other is Federator. 455 00:23:05,960 --> 00:23:11,240 Link Spoof allows you to just act as a legitimate link client 456 00:23:11,240 --> 00:23:12,160 and send messages, 457 00:23:12,320 --> 00:23:14,740 but you can modify the messages, 458 00:23:14,820 --> 00:23:16,140 and you can modify the fields, 459 00:23:16,260 --> 00:23:20,020 which can be pretty handy in this field. 460 00:23:22,460 --> 00:23:25,460 And Federator acts as a federated link client, 461 00:23:25,620 --> 00:23:27,940 and you can connect to it, 462 00:23:27,960 --> 00:23:30,000 connect to someone's federated infrastructure, 463 00:23:30,460 --> 00:23:32,380 and do things like enumerate users 464 00:23:32,590 --> 00:23:37,080 or send high rates of messages to lock up link clients. 465 00:23:38,520 --> 00:23:40,340 So we'll show you... 466 00:23:41,520 --> 00:23:46,280 show you a couple of videos here of both these tools going. 467 00:23:54,620 --> 00:23:56,260 Okay, video one first. 468 00:23:57,120 --> 00:23:58,380 So this is the... 469 00:23:58,920 --> 00:24:00,480 This is the Federator tool. 470 00:24:00,940 --> 00:24:02,220 I'm gonna start it right now. 471 00:24:02,440 --> 00:24:02,760 Okay. 472 00:24:04,060 --> 00:24:05,600 Try to zoom in or something. 473 00:24:10,600 --> 00:24:13,860 All right, so I don't know if you guys can see this, 474 00:24:14,700 --> 00:24:18,080 but you enter your local domain. 475 00:24:18,380 --> 00:24:19,240 It has to be a real domain. 476 00:24:19,580 --> 00:24:24,300 And then the domain name of the link server. 477 00:24:25,800 --> 00:24:26,340 And... 478 00:24:31,140 --> 00:24:34,360 He's opening up a word list for... 479 00:24:36,220 --> 00:24:36,760 users. 480 00:24:38,320 --> 00:24:40,320 So this is a user enumeration attack. 481 00:24:40,760 --> 00:24:43,560 So on the Internet, you can use this tool 482 00:24:43,560 --> 00:24:44,900 with SRV discovery, 483 00:24:45,760 --> 00:24:48,800 and you can basically enumerate all the target users 484 00:24:48,800 --> 00:24:52,620 in Active Directory on a UC-hosted customer. 485 00:24:56,980 --> 00:24:58,240 All right, so open the file, 486 00:24:58,420 --> 00:25:00,620 and this is gonna send SIP invites. 487 00:25:01,000 --> 00:25:04,200 And the differential response from the invite packets 488 00:25:04,200 --> 00:25:07,020 will tell you if a user exists or not. 489 00:25:07,240 --> 00:25:09,000 And this can be kind of damaging because, 490 00:25:09,100 --> 00:25:10,720 as I said before, these are... 491 00:25:10,720 --> 00:25:12,300 It uses NTLM authentication, 492 00:25:12,820 --> 00:25:14,780 so these are likely domain accounts. 493 00:25:15,300 --> 00:25:17,220 So from... 494 00:25:17,220 --> 00:25:19,140 If you have Open Federation, 495 00:25:19,420 --> 00:25:23,080 someone can just enumerate a list of usernames. 496 00:25:23,080 --> 00:25:27,300 And if they use the other part of the link client, 497 00:25:27,540 --> 00:25:29,080 then they can... 498 00:25:30,120 --> 00:25:33,080 do a word list attack against the authenticators 499 00:25:33,080 --> 00:25:34,560 on those usernames that were discovered. 500 00:25:34,820 --> 00:25:36,500 Yeah, so that federator was for 501 00:25:36,500 --> 00:25:39,400 when dynamic SRV discovery is enabled. 502 00:25:40,280 --> 00:25:41,720 That federation type. 503 00:25:41,980 --> 00:25:43,460 And anyone can do this, an attacker. 504 00:25:43,860 --> 00:25:44,540 So there's a... 505 00:25:44,880 --> 00:25:46,220 While it's good for, like, discovery, 506 00:25:46,480 --> 00:25:47,760 it's not so good for security. 507 00:25:48,160 --> 00:25:49,100 Here's video two. 508 00:25:50,820 --> 00:25:52,120 This one is... 509 00:25:54,700 --> 00:25:56,340 This is federator again. 510 00:25:57,400 --> 00:25:58,980 This is just a different attack. 511 00:25:59,460 --> 00:25:59,600 Yeah. 512 00:26:03,960 --> 00:26:05,740 So he's doing an IM... 513 00:26:06,940 --> 00:26:10,360 He's basically doing a spoofed IM message. 514 00:26:10,480 --> 00:26:12,980 So you see that everything that's sent over 515 00:26:12,980 --> 00:26:14,760 is just in div boxes, 516 00:26:14,920 --> 00:26:16,200 and they have... 517 00:26:16,200 --> 00:26:19,060 You have the ability of controlling the style 518 00:26:19,060 --> 00:26:20,560 inside the div. 519 00:26:20,900 --> 00:26:22,900 So you can do things... 520 00:26:23,080 --> 00:26:24,040 You can still do things like 521 00:26:24,040 --> 00:26:26,540 CSS expressions and whatnot. 522 00:26:28,480 --> 00:26:30,800 So here's sending just a... 523 00:26:30,800 --> 00:26:32,160 Just an href. 524 00:26:35,800 --> 00:26:38,120 And so this could be kind of damaging 525 00:26:38,120 --> 00:26:38,860 if you... 526 00:26:40,440 --> 00:26:43,020 If you make a domain that looks similar 527 00:26:43,020 --> 00:26:44,100 to a trusted domain 528 00:26:44,100 --> 00:26:46,460 and send someone a link, click it. 529 00:26:46,680 --> 00:26:47,740 It's just a... 530 00:26:48,460 --> 00:26:49,940 Social vector, really. 531 00:26:51,380 --> 00:26:51,960 Yeah. 532 00:26:51,960 --> 00:26:54,260 So it's like a targeted VoIP spear phishing attack 533 00:26:54,260 --> 00:26:54,960 is what it is. 534 00:26:55,000 --> 00:26:57,140 When you have SRV dynamic enabled, 535 00:26:58,380 --> 00:26:59,900 you could federate to that. 536 00:27:00,000 --> 00:27:01,640 You do a malicious federation connection. 537 00:27:02,000 --> 00:27:03,720 You can put a fake link, 538 00:27:03,840 --> 00:27:06,420 and the link client on the customer end 539 00:27:06,420 --> 00:27:07,720 doesn't sanitize the HTML. 540 00:27:08,400 --> 00:27:09,700 So if you... 541 00:27:09,700 --> 00:27:13,160 So you could actually trick them into clicking on a link 542 00:27:13,160 --> 00:27:14,820 that could be like a spear phishing attack. 543 00:27:15,400 --> 00:27:15,880 Correct? 544 00:27:16,140 --> 00:27:16,380 All right. 545 00:27:16,580 --> 00:27:17,460 That's exactly it. 546 00:27:17,520 --> 00:27:18,100 Video three. 547 00:27:18,380 --> 00:27:20,660 This is the link spoof where he... 548 00:27:20,660 --> 00:27:23,380 Carl did basically a malicious link connection, 549 00:27:23,540 --> 00:27:24,140 and he... 550 00:27:24,660 --> 00:27:26,660 He basically reverse-engineered 551 00:27:26,660 --> 00:27:27,660 the NTLM in authentication. 552 00:27:36,380 --> 00:27:37,660 So this is the code. 553 00:27:37,740 --> 00:27:39,300 There's no real interface for this. 554 00:27:40,720 --> 00:27:43,000 And right now, he's doing a flooding attack 555 00:27:43,410 --> 00:27:46,460 by sending a high rate of SIP messages. 556 00:27:47,840 --> 00:27:48,940 And over here, 557 00:27:48,940 --> 00:27:52,440 you can see that the client is just locked up 558 00:27:52,440 --> 00:27:54,900 because by default... 559 00:27:54,900 --> 00:27:57,100 And we asked Microsoft about this, 560 00:27:57,240 --> 00:28:00,540 and they said that there are ways 561 00:28:00,540 --> 00:28:03,380 to sort of prevent this, 562 00:28:03,520 --> 00:28:06,000 but there's no real way to do it. 563 00:28:06,080 --> 00:28:07,120 You actually have to write code 564 00:28:08,600 --> 00:28:10,200 on the link server 565 00:28:10,200 --> 00:28:12,700 to make it rate limit the messages. 566 00:28:13,040 --> 00:28:16,040 But the UI of the link client 567 00:28:16,040 --> 00:28:17,400 is just completely hosed. 568 00:28:17,580 --> 00:28:18,360 It's completely crashed. 569 00:28:18,420 --> 00:28:18,920 You can't... 570 00:28:18,940 --> 00:28:19,600 You can't... 571 00:28:19,600 --> 00:28:22,260 You have to go to the process manager 572 00:28:22,260 --> 00:28:23,600 and kill the process 573 00:28:23,600 --> 00:28:26,620 because it's done for. 574 00:28:27,660 --> 00:28:28,640 So that's a real... 575 00:28:28,640 --> 00:28:29,440 That's a real vulnerability 576 00:28:29,440 --> 00:28:32,180 with a malicious link client. 577 00:28:32,360 --> 00:28:33,700 And what it is, 578 00:28:33,720 --> 00:28:35,320 is you have to be an authenticated user. 579 00:28:35,460 --> 00:28:36,020 So you're one... 580 00:28:36,020 --> 00:28:38,020 You have to have someone's credentials. 581 00:28:38,140 --> 00:28:39,480 You connect as that user. 582 00:28:39,660 --> 00:28:42,640 But that user can target all the other users 583 00:28:42,640 --> 00:28:45,420 and do a targeted DOS via the attack you just saw. 584 00:28:45,520 --> 00:28:47,000 That is a real vulnerability. 585 00:28:47,000 --> 00:28:49,320 And so Microsoft, you know, 586 00:28:49,340 --> 00:28:50,780 their response was, you... 587 00:28:50,780 --> 00:28:52,080 Well, you can create... 588 00:28:52,080 --> 00:28:54,200 You can create a filter on the server 589 00:28:54,200 --> 00:28:56,000 to rate limit the traffic. 590 00:28:56,700 --> 00:28:57,820 And that was... 591 00:28:57,820 --> 00:28:58,840 That was basically their response. 592 00:28:58,860 --> 00:28:59,580 Their response is, 593 00:28:59,660 --> 00:29:00,780 you can do security best practice. 594 00:29:00,860 --> 00:29:01,520 But by default, 595 00:29:01,600 --> 00:29:04,040 that is not enabled on the server. 596 00:29:04,180 --> 00:29:05,460 So every link deployment 597 00:29:05,460 --> 00:29:06,840 is vulnerable to that issue. 598 00:29:07,080 --> 00:29:08,840 Yeah, and it's also not just an option. 599 00:29:08,960 --> 00:29:09,520 You have to... 600 00:29:09,520 --> 00:29:11,140 You have to write your filter 601 00:29:11,140 --> 00:29:13,300 and install it on the link server. 602 00:29:15,280 --> 00:29:15,760 Okay. 603 00:29:16,380 --> 00:29:17,620 Let's get back to the slides. 604 00:29:19,960 --> 00:29:20,720 Thank you, Bill. 605 00:29:21,980 --> 00:29:23,260 So we got... 606 00:29:23,260 --> 00:29:24,160 We're about... 607 00:29:24,160 --> 00:29:25,100 We're doing good. 608 00:29:25,280 --> 00:29:25,760 So... 609 00:29:25,760 --> 00:29:26,520 So here's... 610 00:29:26,520 --> 00:29:27,260 Here's what we're looking at 611 00:29:27,260 --> 00:29:28,680 on the SRV discovery stuff 612 00:29:28,680 --> 00:29:29,560 that I told you about 613 00:29:29,560 --> 00:29:30,660 with that enumerator tool. 614 00:29:31,180 --> 00:29:32,680 We kind of looked at... 615 00:29:33,240 --> 00:29:34,660 What's really cool about... 616 00:29:34,660 --> 00:29:36,540 I really like this Microsoft link client. 617 00:29:36,680 --> 00:29:37,760 This is what it looks like. 618 00:29:37,880 --> 00:29:39,140 You have automatic configuration 619 00:29:39,140 --> 00:29:40,480 or you have manual configuration. 620 00:29:40,540 --> 00:29:41,400 This is the UI. 621 00:29:41,620 --> 00:29:42,700 With manual configuration, 622 00:29:42,980 --> 00:29:43,280 I can do this. 623 00:29:43,300 --> 00:29:44,540 I can put in my different SIP servers 624 00:29:44,540 --> 00:29:45,620 if I want a different one, 625 00:29:45,680 --> 00:29:46,780 my internal versus external. 626 00:29:47,100 --> 00:29:49,260 And then automatic uses DNS SRV. 627 00:29:49,540 --> 00:29:50,380 So basically, 628 00:29:50,540 --> 00:29:51,660 link is like hard-coded 629 00:29:51,660 --> 00:29:54,000 to look up certain SRV records, right? 630 00:29:54,180 --> 00:29:55,780 When you use your email client, 631 00:29:56,080 --> 00:29:56,580 normally, 632 00:29:56,680 --> 00:29:57,580 you have to, like, 633 00:29:57,600 --> 00:29:59,180 put in the actual, you know, 634 00:29:59,180 --> 00:30:00,520 pop or mail or whatever. 635 00:30:01,140 --> 00:30:02,100 But what's interesting 636 00:30:02,100 --> 00:30:03,640 is you can kind of take advantage of this 637 00:30:03,640 --> 00:30:05,720 from a DNS attack surface 638 00:30:05,720 --> 00:30:06,880 for any customer. 639 00:30:07,180 --> 00:30:08,880 And so the enumerator tool 640 00:30:08,880 --> 00:30:10,960 could actually look at all the domains 641 00:30:10,960 --> 00:30:13,120 that support the Microsoft version. 642 00:30:13,160 --> 00:30:13,280 So you can kind of take advantage of this 643 00:30:13,280 --> 00:30:14,700 of SRV discovery. 644 00:30:15,100 --> 00:30:15,720 See, like, 645 00:30:15,720 --> 00:30:16,760 SIP internal TLS 646 00:30:17,280 --> 00:30:18,840 and .domain.com. 647 00:30:19,040 --> 00:30:20,720 So I haven't added support yet 648 00:30:20,720 --> 00:30:21,760 for enumerator for this, 649 00:30:21,880 --> 00:30:22,840 but we could actually have 650 00:30:22,840 --> 00:30:23,540 a special project 651 00:30:23,540 --> 00:30:24,280 where we could scan 652 00:30:24,280 --> 00:30:24,940 all the domains 653 00:30:24,940 --> 00:30:26,260 just for Microsoft-enabled 654 00:30:27,060 --> 00:30:27,980 UC Federation. 655 00:30:28,540 --> 00:30:30,120 These are the two special records. 656 00:30:30,400 --> 00:30:31,940 And then this is another one 657 00:30:31,940 --> 00:30:32,500 that shows, 658 00:30:32,620 --> 00:30:33,620 for, like, 659 00:30:33,620 --> 00:30:34,440 the Office 65, 660 00:30:34,560 --> 00:30:35,400 the hosted version 661 00:30:35,400 --> 00:30:36,520 of Federation, 662 00:30:36,820 --> 00:30:37,900 which you can do with link. 663 00:30:38,940 --> 00:30:39,560 That's the, 664 00:30:39,660 --> 00:30:41,160 these are some of the records. 665 00:30:41,300 --> 00:30:41,980 So you could create, 666 00:30:42,060 --> 00:30:42,600 like, 667 00:30:42,700 --> 00:30:43,260 a Twitter account 668 00:30:43,280 --> 00:30:44,100 tool that scans 669 00:30:44,100 --> 00:30:44,520 for, like, 670 00:30:44,520 --> 00:30:45,480 these CNAME records 671 00:30:45,480 --> 00:30:46,840 that resolves to 672 00:30:46,840 --> 00:30:48,080 Microsoft's online service. 673 00:30:48,200 --> 00:30:48,640 This is, like, 674 00:30:48,660 --> 00:30:49,460 their online hosted 675 00:30:50,300 --> 00:30:51,780 UC Federation in the cloud 676 00:30:51,780 --> 00:30:52,480 for link. 677 00:30:52,640 --> 00:30:54,480 So we didn't touch this stuff, right? 678 00:30:54,600 --> 00:30:54,740 I mean, 679 00:30:54,760 --> 00:30:55,240 we're not gonna, 680 00:30:55,280 --> 00:30:56,100 we're not gonna do 681 00:30:56,100 --> 00:30:56,960 any type of research 682 00:30:56,960 --> 00:30:57,720 or attacks against 683 00:30:58,440 --> 00:30:59,840 Microsoft's public web service. 684 00:31:00,000 --> 00:31:00,360 But you know, 685 00:31:00,360 --> 00:31:01,480 you have that Office 65, 686 00:31:01,580 --> 00:31:02,860 that hosted UC solution. 687 00:31:03,140 --> 00:31:03,540 Well, 688 00:31:03,560 --> 00:31:04,540 these are the actual servers 689 00:31:04,540 --> 00:31:05,360 that they use for this 690 00:31:05,360 --> 00:31:06,980 for hosted customers, right? 691 00:31:07,200 --> 00:31:08,140 So people need to be, 692 00:31:08,140 --> 00:31:09,240 start thinking about this, 693 00:31:09,360 --> 00:31:11,400 because as UC Federation takes off, 694 00:31:11,600 --> 00:31:12,700 all these customers, 695 00:31:12,780 --> 00:31:13,260 you know, 696 00:31:13,280 --> 00:31:15,320 for a recon perspective, 697 00:31:15,880 --> 00:31:17,340 they have to be locked down 698 00:31:17,340 --> 00:31:19,340 because these domains 699 00:31:19,340 --> 00:31:19,780 are, like, 700 00:31:19,780 --> 00:31:20,460 wide open from, 701 00:31:20,500 --> 00:31:21,240 as far as finding 702 00:31:21,240 --> 00:31:23,060 certain domains to attack 703 00:31:23,060 --> 00:31:23,980 and companies to attack. 704 00:31:24,240 --> 00:31:25,400 So it's, 705 00:31:25,400 --> 00:31:26,100 it's always the, 706 00:31:26,100 --> 00:31:26,900 the balance between 707 00:31:26,900 --> 00:31:28,320 discovery versus privacy. 708 00:31:29,120 --> 00:31:30,680 While it's easier to, 709 00:31:31,380 --> 00:31:32,960 when you turn on this Federation, 710 00:31:33,240 --> 00:31:33,500 it's, 711 00:31:33,500 --> 00:31:34,400 it's easy to be discovered, 712 00:31:34,560 --> 00:31:36,000 but it's also easier 713 00:31:36,000 --> 00:31:36,760 to get attacked. 714 00:31:37,360 --> 00:31:38,500 Now let's look at 715 00:31:38,500 --> 00:31:39,600 UC Federation technically. 716 00:31:39,740 --> 00:31:40,100 You know, 717 00:31:40,100 --> 00:31:41,060 we do have the Cisco way 718 00:31:41,060 --> 00:31:41,580 of doing it, 719 00:31:41,640 --> 00:31:43,020 but from a Microsoft 720 00:31:43,280 --> 00:31:44,700 UC Federation perspective, 721 00:31:45,020 --> 00:31:46,120 what it means is, 722 00:31:46,140 --> 00:31:47,000 is SIP signaling 723 00:31:47,000 --> 00:31:48,620 and control plane, 724 00:31:48,780 --> 00:31:49,320 SIP, 725 00:31:49,320 --> 00:31:50,700 SIP for signaling, 726 00:31:50,900 --> 00:31:52,660 RTP for apps 727 00:31:52,660 --> 00:31:53,920 requiring real-time communication, 728 00:31:54,040 --> 00:31:56,260 and then DNS SRV 729 00:31:56,260 --> 00:31:57,140 for service discovery. 730 00:31:57,460 --> 00:31:58,280 So in the future, 731 00:31:58,320 --> 00:31:59,280 you could have new records 732 00:31:59,280 --> 00:31:59,920 that you create 733 00:31:59,920 --> 00:32:01,140 to use for 734 00:32:02,240 --> 00:32:03,760 new UC communications 735 00:32:03,760 --> 00:32:04,860 and applications. 736 00:32:06,120 --> 00:32:07,360 Microsoft appears to be 737 00:32:07,360 --> 00:32:07,960 the market leader 738 00:32:07,960 --> 00:32:08,900 in this UC Federation. 739 00:32:09,520 --> 00:32:10,620 They have a strong 740 00:32:10,620 --> 00:32:11,280 default security 741 00:32:11,280 --> 00:32:12,220 with SIP TLS 742 00:32:12,220 --> 00:32:12,960 and SRTP. 743 00:32:13,060 --> 00:32:13,260 They have a strong 744 00:32:16,460 --> 00:32:18,360 default to SIP TLS 745 00:32:18,360 --> 00:32:19,060 and SIP TLS 746 00:32:19,060 --> 00:32:19,480 And, 747 00:32:19,480 --> 00:32:19,820 and we, 748 00:32:21,880 --> 00:32:23,280 we have, 749 00:32:23,280 --> 00:32:24,680 we have a strong 750 00:32:24,680 --> 00:32:25,340 default to SIP TLS 751 00:32:25,340 --> 00:32:27,740 and SRTP. 752 00:32:27,780 --> 00:32:28,240 you can, 753 00:32:28,340 --> 00:32:28,700 you can use 754 00:32:30,050 --> 00:32:30,900 any modest 755 00:32:30,900 --> 00:32:31,440 of SIP TLS 756 00:32:31,440 --> 00:32:31,720 to control 757 00:32:31,720 --> 00:32:32,340 on the network. 758 00:32:32,360 --> 00:32:42,800 So we're doing 759 00:32:42,800 --> 00:32:43,260 a new 760 00:32:43,260 --> 00:32:46,160 a SIP TLS proxy tool, and we're able to peek into the messages. 761 00:32:46,460 --> 00:32:48,580 And so we're releasing this to the community. 762 00:32:49,780 --> 00:32:51,280 We're releasing this to the community. 763 00:32:52,060 --> 00:32:52,740 Objective one. 764 00:32:54,560 --> 00:32:55,480 Thank you. 765 00:32:58,200 --> 00:33:01,680 Objective one was decrypt the SIP TLS message flow and learn how it works. 766 00:33:01,800 --> 00:33:02,340 That's complete. 767 00:33:02,520 --> 00:33:04,760 That's up on the Enumerator SourceForge website. 768 00:33:05,220 --> 00:33:07,300 You can go to enumerator.sourceforge.net. 769 00:33:07,440 --> 00:33:10,240 Now we want to have a fuzzing engine, and it's what we're working on, 770 00:33:10,240 --> 00:33:13,960 where we can freeze the message, modify it using a UI, 771 00:33:14,340 --> 00:33:16,340 re-sign it, and send it to the server, 772 00:33:16,440 --> 00:33:19,360 and see what type of fun stuff we can get into. 773 00:33:19,580 --> 00:33:21,160 So here's a screenshot from the Python. 774 00:33:21,720 --> 00:33:23,360 But this is kind of what it looks like. 775 00:33:23,920 --> 00:33:26,860 That's the actual Python script right there, thread py. 776 00:33:28,200 --> 00:33:31,340 And message me if you'd like to know details on how it works. 777 00:33:31,420 --> 00:33:33,060 It's not too complicated at all. 778 00:33:33,180 --> 00:33:35,580 But what you have to do with your Microsoft Link client is, 779 00:33:35,600 --> 00:33:37,960 is you have to trick it into connecting to your proxy 780 00:33:37,960 --> 00:33:39,300 instead of the legitimate server. 781 00:33:39,480 --> 00:33:40,160 And how you do that is, 782 00:33:40,240 --> 00:33:43,340 you modify your Etsy host record on your Microsoft Windows, 783 00:33:43,620 --> 00:33:47,860 and whatever the automatic discovery is set to, the SIP server, 784 00:33:48,100 --> 00:33:49,920 you just change it to be your proxy server. 785 00:33:50,160 --> 00:33:52,960 And then save it, and it'll automatically connect to your proxy server. 786 00:33:53,260 --> 00:33:56,840 And that's what it looks like when it's gotten a 200 OK and authenticated. 787 00:33:57,020 --> 00:33:59,800 That's compressed data in the SIP message. 788 00:34:00,040 --> 00:34:03,520 So we need to figure out also how we can read some of that compressed data. 789 00:34:04,240 --> 00:34:07,520 So here's what the, I kind of explained how it works. 790 00:34:07,640 --> 00:34:09,160 The proxy decrypts the traffic. 791 00:34:09,160 --> 00:34:11,340 We can inspect the traffic and clear text. 792 00:34:11,620 --> 00:34:15,140 And then it negotiates a TLS handshake to the remote server, 793 00:34:15,340 --> 00:34:19,080 the legitimate server, and encapsulates that in TLS. 794 00:34:19,820 --> 00:34:21,640 It uses the Python TLS module. 795 00:34:23,160 --> 00:34:24,680 I had the idea to do this. 796 00:34:24,800 --> 00:34:26,620 I worked on the networking code. 797 00:34:26,700 --> 00:34:28,140 I got the initial connection working. 798 00:34:28,340 --> 00:34:31,780 Then I had to go to Paris to do this pen test for four weeks. 799 00:34:32,000 --> 00:34:34,600 And so there was another engineer in Viper that finished this. 800 00:34:34,820 --> 00:34:37,700 So we're going to give him a big thanks for finishing this code. 801 00:34:37,860 --> 00:34:38,800 But here's the first. 802 00:34:39,700 --> 00:34:41,120 It's basically a negotiate. 803 00:34:41,720 --> 00:34:45,720 And it's negotiating the compression of LZZ78K. 804 00:34:46,080 --> 00:34:48,120 It's the only value that can be used. 805 00:34:48,360 --> 00:34:52,800 And so we can play with actually turning off that negotiation 806 00:34:52,800 --> 00:34:55,220 or that compression algorithm 807 00:34:56,100 --> 00:34:59,700 so that we can actually see the SIP message once we get the 200 OK. 808 00:34:59,940 --> 00:35:04,000 So the Microsoft Edge server inspects the compression header, 809 00:35:04,180 --> 00:35:08,020 matches it, and then responds with 200 OK 810 00:35:08,020 --> 00:35:09,140 that it will support the compression. 811 00:35:09,160 --> 00:35:12,140 Then the third message out of the eight 812 00:35:12,140 --> 00:35:15,900 is the first register message sent by the link client. 813 00:35:16,420 --> 00:35:19,380 And so this is always a part of the application flow. 814 00:35:19,960 --> 00:35:22,600 So this is NTLandMan authentication in SIP. 815 00:35:22,720 --> 00:35:24,780 So if you're familiar with NTLandMan with HTTP, 816 00:35:25,040 --> 00:35:26,340 this is the same thing in SIP. 817 00:35:26,400 --> 00:35:28,320 You see the WW authenticate headers. 818 00:35:28,560 --> 00:35:31,640 It supports TLSDSK and NTLandMan. 819 00:35:31,820 --> 00:35:35,300 The TLSDSK is like a certificate that gets stored on the client. 820 00:35:35,420 --> 00:35:36,860 And it's actually really, really interesting. 821 00:35:37,380 --> 00:35:39,140 We encountered that on the SIP. 822 00:35:39,140 --> 00:35:39,520 It's on the pen test. 823 00:35:40,740 --> 00:35:42,920 And then that 401, 824 00:35:43,240 --> 00:35:45,860 so then the link client sends a second register 825 00:35:45,860 --> 00:35:48,860 with the authorization header in NTLandMan. 826 00:35:49,560 --> 00:35:53,080 So that is the authorization. 827 00:35:53,480 --> 00:35:54,400 I see it there. 828 00:35:56,280 --> 00:35:57,140 Somewhere there. 829 00:35:57,700 --> 00:35:58,880 Yeah, there it is. 830 00:35:59,000 --> 00:36:00,300 Authorization NTLandMan. 831 00:36:00,480 --> 00:36:04,080 Then the server responds with 401 unauthorized 832 00:36:04,080 --> 00:36:07,460 with actually the challenge with the GSAPI data. 833 00:36:07,860 --> 00:36:09,120 And you see it. 834 00:36:09,140 --> 00:36:11,360 You see it there in the W authenticate NTLandMan there 835 00:36:11,360 --> 00:36:12,560 and the data right there. 836 00:36:12,740 --> 00:36:14,840 So then the client, the link client, 837 00:36:14,920 --> 00:36:19,360 just uses that data to create the proxy authorization header 838 00:36:19,360 --> 00:36:20,240 with NTLandMan. 839 00:36:20,440 --> 00:36:26,260 And the data section there is actually a base64 encoded NTLM packet. 840 00:36:27,800 --> 00:36:28,240 Cool. 841 00:36:30,100 --> 00:36:32,880 So then we get the message number eight, the 200 OK. 842 00:36:33,120 --> 00:36:33,800 And there we go. 843 00:36:33,820 --> 00:36:34,640 We've seen the whole flow. 844 00:36:34,760 --> 00:36:35,240 It's pretty cool. 845 00:36:35,520 --> 00:36:37,240 We get the 200 OK at the top. 846 00:36:37,240 --> 00:36:38,580 You can see SIP 200 OK. 847 00:36:39,280 --> 00:36:41,960 Message from the read from the server and sending to a client. 848 00:36:42,080 --> 00:36:43,920 And then the rest of that is the compressed data. 849 00:36:44,120 --> 00:36:46,420 So we can play around with turning off the compression 850 00:36:46,860 --> 00:36:48,340 so that we can see the SIP message 851 00:36:48,340 --> 00:36:50,400 and then we can eventually start doing some fuzzing attacks. 852 00:36:50,800 --> 00:36:52,240 And this is a work in progress. 853 00:36:52,420 --> 00:36:53,440 This is the first phase. 854 00:36:54,140 --> 00:36:55,700 I'm excited to show this to you guys 855 00:36:55,700 --> 00:36:56,840 because I think that we're the first ones 856 00:36:56,840 --> 00:36:58,160 that are really looking into this 857 00:36:58,160 --> 00:37:01,220 and trying to give away this research to the community. 858 00:37:01,900 --> 00:37:03,800 So hopefully other people can pick this up. 859 00:37:03,880 --> 00:37:04,940 Everyone can start looking at this 860 00:37:04,940 --> 00:37:06,680 because it's pretty cool and exciting. 861 00:37:06,860 --> 00:37:08,520 I think this is going to change the way we communicate. 862 00:37:10,140 --> 00:37:11,860 Many thanks to Anil Mahali. 863 00:37:12,060 --> 00:37:15,380 So Anil is the Viper researcher that finished this code. 864 00:37:15,760 --> 00:37:19,400 And this is our goal of building education awareness 865 00:37:19,400 --> 00:37:21,760 and it's on enumerator.sourceforge.net. 866 00:37:24,300 --> 00:37:28,000 No, that is not an ad for OKCupid. 867 00:37:29,100 --> 00:37:31,100 That actually is a Viper Lab researcher. 868 00:37:31,600 --> 00:37:32,960 It's not eHarmony either. 869 00:37:33,500 --> 00:37:34,900 And speaking of thanks, 870 00:37:35,680 --> 00:37:37,440 I also wanted to thank Carl. 871 00:37:38,040 --> 00:37:39,120 Carl's an awesome dude. 872 00:37:39,140 --> 00:37:40,580 He couldn't make it here, like I said. 873 00:37:40,780 --> 00:37:42,640 He's a Windows developer. 874 00:37:43,300 --> 00:37:45,880 And he actually picked up Linux really fast as well. 875 00:37:46,140 --> 00:37:48,340 He reverse engineered the SIP messaging of Lync. 876 00:37:48,480 --> 00:37:50,400 He authored Lync Spoof and Federator. 877 00:37:50,600 --> 00:37:52,180 The guy is somewhat of a mystery. 878 00:37:52,380 --> 00:37:54,020 I can't tell you a lot about him other than 879 00:37:54,020 --> 00:37:55,260 he's a pretty smart guy. 880 00:37:55,760 --> 00:37:59,520 But we were able to capture a secret picture of him. 881 00:38:00,820 --> 00:38:02,040 And here he is. 882 00:38:04,160 --> 00:38:05,780 That actually looks like one of his shirts. 883 00:38:07,520 --> 00:38:07,960 So, 884 00:38:09,140 --> 00:38:09,920 perfect timing, man. 885 00:38:10,000 --> 00:38:11,020 Two minutes ahead of time. 886 00:38:11,140 --> 00:38:12,060 So, you take it over. 887 00:38:12,860 --> 00:38:13,460 All right. 888 00:38:13,700 --> 00:38:15,080 So, as many of you know, 889 00:38:15,160 --> 00:38:16,800 there's a panel discussion every year 890 00:38:16,800 --> 00:38:19,040 about how DEF CON groups can stay in touch. 891 00:38:20,120 --> 00:38:22,660 I think this would be a good way to do this 892 00:38:22,660 --> 00:38:24,900 using open source, UC Federation, 893 00:38:25,340 --> 00:38:28,580 using Asterisk and mobile phone applications. 894 00:38:29,060 --> 00:38:31,000 I was pretty surprised when I came here 895 00:38:31,000 --> 00:38:32,900 and saw these NinjaTel guys 896 00:38:32,900 --> 00:38:35,280 who pretty much did this, 897 00:38:35,300 --> 00:38:36,700 but just for DEF CON. 898 00:38:38,620 --> 00:38:40,700 What the benefit of it is, 899 00:38:40,780 --> 00:38:42,440 it's out of band. 900 00:38:42,680 --> 00:38:44,840 So, you control the endpoints. 901 00:38:44,860 --> 00:38:45,840 You control the media. 902 00:38:46,060 --> 00:38:47,900 And it goes over the internet. 903 00:38:48,120 --> 00:38:50,320 But, I mean, what doesn't go over the internet? 904 00:38:50,580 --> 00:38:53,040 So, it can be used for audio, video, 905 00:38:53,220 --> 00:38:54,020 and instant messaging. 906 00:38:54,300 --> 00:38:55,820 And you can save money 907 00:38:56,420 --> 00:38:59,100 by instead of using your cell phone minutes 908 00:38:59,100 --> 00:39:03,440 to call out-of-country numbers, 909 00:39:04,480 --> 00:39:06,320 it just goes over the internet instead. 910 00:39:06,700 --> 00:39:09,380 And all the software is open source. 911 00:39:10,480 --> 00:39:12,080 Asterisk is a little buggy sometimes, 912 00:39:12,340 --> 00:39:13,140 but it's free. 913 00:39:13,460 --> 00:39:16,720 So, this is kind of the architecture. 914 00:39:16,920 --> 00:39:18,140 It's similar to Lync, 915 00:39:18,140 --> 00:39:20,320 only you don't have the front-end and back-end servers. 916 00:39:20,840 --> 00:39:24,480 So, you would have a guy in America 917 00:39:24,480 --> 00:39:26,220 call the guy in Amsterdam. 918 00:39:27,360 --> 00:39:29,680 It would just look up SRV record 919 00:39:29,680 --> 00:39:31,220 and place the call. 920 00:39:31,360 --> 00:39:33,780 The media would be anchored between the servers. 921 00:39:34,600 --> 00:39:36,680 And you could have soft phones 922 00:39:36,700 --> 00:39:37,840 or hard phones 923 00:39:37,840 --> 00:39:41,760 or just soft phones on a cell phone. 924 00:39:42,320 --> 00:39:44,700 And it would just use your data plan. 925 00:39:46,240 --> 00:39:51,820 You can enable SIP TLS and SRTP for privacy. 926 00:39:51,940 --> 00:39:56,320 And then you have a whole kind of darknet group 927 00:39:56,320 --> 00:39:58,560 of voice communications 928 00:39:58,560 --> 00:40:02,980 that's outside of the realm of the PSTN. 929 00:40:03,120 --> 00:40:06,260 So, it could be pretty useful to people. 930 00:40:06,700 --> 00:40:13,040 So, Asterisk Federation works pretty much the same way 931 00:40:13,040 --> 00:40:15,940 as the Lync Federation. 932 00:40:16,360 --> 00:40:18,980 Again, it's not as complex, though. 933 00:40:19,480 --> 00:40:23,560 You just put in the config to enable SRV lookups. 934 00:40:23,640 --> 00:40:26,300 And when you're on your network, 935 00:40:26,440 --> 00:40:28,420 you call somebody on another network, 936 00:40:28,560 --> 00:40:31,020 you just use the SIP URI, 937 00:40:31,140 --> 00:40:34,120 like their name, at domain.com. 938 00:40:34,160 --> 00:40:36,580 And the server figures out the address, 939 00:40:36,580 --> 00:40:37,500 the address of the other server, 940 00:40:37,600 --> 00:40:39,260 and negotiates the call. 941 00:40:40,840 --> 00:40:42,620 There's no need for the PSTN. 942 00:40:43,720 --> 00:40:45,340 The SIP trunks do all the work. 943 00:40:45,580 --> 00:40:48,100 And that means no long-distance fees, 944 00:40:48,360 --> 00:40:49,800 no international calling fees. 945 00:40:51,020 --> 00:40:51,860 So, it's good. 946 00:40:53,900 --> 00:40:56,160 We have an open-source federation project. 947 00:40:56,420 --> 00:40:58,000 We have them running on Linodes 948 00:40:58,000 --> 00:40:59,560 so we can bring them up or down 949 00:41:00,380 --> 00:41:04,080 in an IP range of any country we want at any time. 950 00:41:04,540 --> 00:41:06,560 And we set up fake companies. 951 00:41:06,580 --> 00:41:08,360 We set up fake companies with websites. 952 00:41:08,720 --> 00:41:12,600 And they all have SIP servers tied to them, 953 00:41:12,740 --> 00:41:13,820 email servers and all. 954 00:41:14,540 --> 00:41:15,900 I'm not gonna tell you what they are 955 00:41:15,900 --> 00:41:17,500 because we don't want people attacking them. 956 00:41:17,640 --> 00:41:19,320 This is part of our research. 957 00:41:20,100 --> 00:41:22,920 And we can call one another using our cell phones. 958 00:41:23,200 --> 00:41:25,080 And it works very well. 959 00:41:25,200 --> 00:41:27,260 And I think it would be a good way for people here 960 00:41:27,680 --> 00:41:28,900 to stay in touch with one another. 961 00:41:30,260 --> 00:41:32,520 If you want to check out our configuration files, 962 00:41:32,980 --> 00:41:35,140 you can go to the same SourceForge website. 963 00:41:35,140 --> 00:41:36,200 You can go to the same SourceForge website. 964 00:41:36,200 --> 00:41:38,720 We showed you before for the enumerator tool. 965 00:41:38,940 --> 00:41:40,980 And we have some redacted copies 966 00:41:40,980 --> 00:41:44,580 of our federated asterisk configs. 967 00:41:47,220 --> 00:41:47,920 I'll take over here. 968 00:41:47,980 --> 00:41:48,420 Thanks, Bill. 969 00:41:48,520 --> 00:41:53,100 So, as Bill said, we wanted to basically look, 970 00:41:53,180 --> 00:41:56,420 we started taking our smartphones on iPhone and Android 971 00:41:56,420 --> 00:42:00,240 and we registered them using a SIP user agent on our phones, 972 00:42:00,420 --> 00:42:02,520 our smartphones, to our Linodes, 973 00:42:02,660 --> 00:42:05,180 to our UC Federation, our SIP servers. 974 00:42:06,200 --> 00:42:07,820 We did a bunch of benchmarking tests. 975 00:42:08,020 --> 00:42:10,280 And it was funny because everyone talks about IPQOS. 976 00:42:11,320 --> 00:42:16,780 We had really good quality of service on Wi-Fi or 3G, 4G, actually. 977 00:42:16,940 --> 00:42:18,900 We could do calls all the time. 978 00:42:19,300 --> 00:42:22,380 And we were using it to just communicate with each other. 979 00:42:22,700 --> 00:42:24,860 And anyone can do this right now. 980 00:42:24,940 --> 00:42:26,300 I mean, you can go out and do this right now. 981 00:42:26,380 --> 00:42:28,840 And this is what we're tying in here on this conclusion. 982 00:42:29,060 --> 00:42:29,940 Let's take a look at this. 983 00:42:30,260 --> 00:42:33,660 A lot of people, Asterisk is a popular vendor. 984 00:42:33,800 --> 00:42:35,560 It's an open source IP PBX. 985 00:42:35,560 --> 00:42:36,920 And that's the way it's advertised. 986 00:42:37,240 --> 00:42:40,700 But in reality, we kind of changed this when we started looking at our research. 987 00:42:40,880 --> 00:42:44,800 If you move the PBX on your Asterisk server from the internal network, 988 00:42:44,980 --> 00:42:47,880 which is what a lot of companies do because they use it for voicemail 989 00:42:47,880 --> 00:42:49,000 and get all the advantage of UC. 990 00:42:49,260 --> 00:42:53,140 If you take that Asterisk server and put a public IP address and move it on the edge 991 00:42:53,140 --> 00:42:55,420 of your network to move it outside your network, 992 00:42:55,620 --> 00:42:58,160 it can do something what's called RTP media anchoring. 993 00:42:58,300 --> 00:43:03,780 So, what it becomes is it becomes a B2B UA, a back-to-back user agent. 994 00:43:03,980 --> 00:43:05,540 So, all your SIP users are going to be able to access it. 995 00:43:05,560 --> 00:43:09,880 If you have a user agent registered to Asterisk, Asterisk will terminate the connection with 996 00:43:09,880 --> 00:43:14,320 the media and reinitiate to a remote peer, another Asterisk server. 997 00:43:14,600 --> 00:43:17,080 So it's what's called a poor man's SBC. 998 00:43:17,400 --> 00:43:18,840 It's a back-to-back user agent. 999 00:43:19,080 --> 00:43:25,520 So since we're vendor agnostic, Viper, we're only talking about open source solutions for 1000 00:43:25,520 --> 00:43:26,160 this SBC. 1001 00:43:26,380 --> 00:43:28,160 There are other solutions out there. 1002 00:43:28,360 --> 00:43:30,160 But that's the way this works. 1003 00:43:30,680 --> 00:43:35,480 And so Asterisk could function for your organization for $20 a month. 1004 00:43:35,480 --> 00:43:40,380 You could use a line node and you could host your own VoIP for your organization, exactly 1005 00:43:40,380 --> 00:43:41,220 like what we did. 1006 00:43:41,400 --> 00:43:46,500 You can have all your desktop phones be SIP on your internal network, register to your 1007 00:43:47,520 --> 00:43:50,020 SBC, and you can peer with other companies. 1008 00:43:50,260 --> 00:43:56,500 You can also use your smartphone using DNS, SRV, to register to your SIP server and place 1009 00:43:56,500 --> 00:43:57,960 calls to other people on their smartphones. 1010 00:43:58,540 --> 00:44:00,320 Why aren't more people doing this? 1011 00:44:00,420 --> 00:44:01,720 You can all use it with DNS. 1012 00:44:01,760 --> 00:44:03,640 It's the way it was meant to be, right? 1013 00:44:03,920 --> 00:44:05,460 So peer directly to your SBC. 1014 00:44:08,100 --> 00:44:09,760 You don't have to pay your carrier. 1015 00:44:09,920 --> 00:44:11,540 You don't connect to the PSTN. 1016 00:44:13,900 --> 00:44:18,900 And now, another thing here, you can still connect to the PSTN while you do this, right? 1017 00:44:19,060 --> 00:44:24,120 So for the people that you want to talk to, DNS, you use your email address, you peer 1018 00:44:24,120 --> 00:44:24,480 to them. 1019 00:44:24,760 --> 00:44:27,960 You still keep your SIP trunk connection, so you still connect to the PSTN. 1020 00:44:28,140 --> 00:44:32,900 It's just whenever you want to dial by number, you go out your SIP trunk to the PSTN with 1021 00:44:32,900 --> 00:44:33,320 your carrier. 1022 00:44:33,500 --> 00:44:35,380 Whenever you want to communicate with everyone else. 1023 00:44:35,460 --> 00:44:36,640 You use the DNS. 1024 00:44:37,360 --> 00:44:39,660 So it doesn't have to go away. 1025 00:44:42,520 --> 00:44:43,600 One more thing. 1026 00:44:43,680 --> 00:44:44,660 This is pretty cool. 1027 00:44:44,840 --> 00:44:45,720 Linode.com. 1028 00:44:45,860 --> 00:44:48,040 We found these guys, gotcha. 1029 00:44:48,360 --> 00:44:54,160 So create your own UC Federation and SIP DNS SRV peering service. 1030 00:44:54,700 --> 00:44:56,600 We're giving this idea away to you guys. 1031 00:44:56,960 --> 00:44:59,060 Go out and make some money. 1032 00:44:59,140 --> 00:45:03,100 Go out and start playing around with Linode.com and Asterisk. 1033 00:45:03,180 --> 00:45:05,260 Create your own new product or service. 1034 00:45:05,260 --> 00:45:10,740 Create a hosted DNS SRV service in the UC cloud. 1035 00:45:11,200 --> 00:45:15,820 See more and more people can do this UC cloud service and then there can be peering out 1036 00:45:15,820 --> 00:45:19,600 on the internet here and all we have to really handle is this IPQS problem. 1037 00:45:19,940 --> 00:45:23,600 So carriers, the existing telcos, I mean I have a network engineering background. 1038 00:45:23,900 --> 00:45:27,480 The telcos, you know, I mean there's a lot of incumbents, there's a lot of companies 1039 00:45:27,480 --> 00:45:31,300 that will be threatened by the status quo with this business model. 1040 00:45:31,440 --> 00:45:33,400 But you know, I believe everyone can adapt to this. 1041 00:45:33,560 --> 00:45:35,240 It's just that you'll be buying IPQS. 1042 00:45:35,240 --> 00:45:42,600 The carriers in the future, mobile carriers or wired networks, will become, will start 1043 00:45:42,600 --> 00:45:43,980 selling IPQS networks. 1044 00:45:44,260 --> 00:45:51,340 So they'll start selling IPQS for Federation, for SIP DNS to make sure that there's acceptable 1045 00:45:52,220 --> 00:45:56,280 quality of service for video and VoIP and any data collaboration tools. 1046 00:45:56,600 --> 00:46:00,600 And if you look at this, if you really look at this with the mobile carriers and the smart 1047 00:46:00,600 --> 00:46:02,800 phones, that's where this is really interesting too. 1048 00:46:02,900 --> 00:46:05,220 Because with my smart phone. 1049 00:46:05,240 --> 00:46:09,320 You know, we started calling all the carriers and we kind of researched this a little bit. 1050 00:46:10,420 --> 00:46:15,140 Everyone in the US, it appears that you can't buy a data only plan on a smart phone. 1051 00:46:16,500 --> 00:46:19,920 On a tablet you can, but not on your smart phone. 1052 00:46:20,140 --> 00:46:20,960 Why is this? 1053 00:46:21,640 --> 00:46:26,300 I was talking to some people and some insiders and I almost got the answer on this. 1054 00:46:26,400 --> 00:46:27,300 I'm really curious. 1055 00:46:27,440 --> 00:46:30,440 I mean, to me it's like some kind of regulatory issue. 1056 00:46:30,560 --> 00:46:32,280 It's an issue that's hidden that we don't know about. 1057 00:46:32,520 --> 00:46:34,760 But you know. 1058 00:46:34,760 --> 00:46:39,360 If I have to pay for voice, I mean, that's why no one really wants to, there's no driver 1059 00:46:39,360 --> 00:46:45,040 or incentive to go out and get VoIP on my smart phone unless I'm traveling internationally 1060 00:46:45,040 --> 00:46:45,940 and use Skype. 1061 00:46:46,240 --> 00:46:48,860 There's no incentive because I'm already paying for voice in the US. 1062 00:46:49,080 --> 00:46:53,380 If I already have to pay my carrier for voice minutes in the US, why am I going to even 1063 00:46:53,380 --> 00:46:57,600 be compelled to like set up a SIP user agent, you know, counter path on my smart phone? 1064 00:46:57,820 --> 00:47:02,500 There's less incentive unless they start unlocking this so we can buy data only plans on our 1065 00:47:02,500 --> 00:47:02,780 phone. 1066 00:47:02,780 --> 00:47:07,260 Then we can use VoIP as an app like we use everything else and then we can have presence. 1067 00:47:07,400 --> 00:47:09,320 I see two killer apps right now for this. 1068 00:47:09,440 --> 00:47:13,060 I see voice with DNS SRV and I see presence on smart phones. 1069 00:47:13,620 --> 00:47:16,720 Video is probably, you're probably not going to use video as much on your smart phone. 1070 00:47:16,940 --> 00:47:21,620 Data collaboration is not going to work as well on tablets like on the iPad. 1071 00:47:21,840 --> 00:47:23,640 Data collaboration is really cool, right? 1072 00:47:23,840 --> 00:47:28,540 But just voice and presence would be really cool between organizations for free hosted 1073 00:47:28,940 --> 00:47:29,720 by your organization. 1074 00:47:30,160 --> 00:47:32,140 Take the power back into your organization. 1075 00:47:32,140 --> 00:47:34,020 That's the way I think this stuff is meant to be. 1076 00:47:34,260 --> 00:47:35,640 So we're giving away these ideas. 1077 00:47:37,120 --> 00:47:41,340 Again, IPQS for real time communications on GSM, on cell networks. 1078 00:47:41,720 --> 00:47:47,040 That's where you're going to run into problems and, you know, the carriers, they dominate 1079 00:47:47,040 --> 00:47:51,660 the network so they can, if they figure out you're running VoIP, I'm not sure how that 1080 00:47:51,660 --> 00:47:51,980 works. 1081 00:47:52,040 --> 00:47:53,300 I'm not an expert in that area. 1082 00:47:53,960 --> 00:47:55,480 But there's been rumblings of this. 1083 00:47:56,220 --> 00:48:01,540 There was an article just a few weeks ago, AT&T hints of data only wireless plans on 1084 00:48:01,540 --> 00:48:02,100 smart phones. 1085 00:48:02,220 --> 00:48:03,940 So this stuff is about to happen. 1086 00:48:04,040 --> 00:48:07,980 I mean, there's a lot of disruptive things that are about to happen in this area and 1087 00:48:07,980 --> 00:48:09,540 we live in a very exciting time. 1088 00:48:09,620 --> 00:48:13,820 No matter what, even if I'm not right, like this stuff is about to happen. 1089 00:48:13,880 --> 00:48:18,240 It is very interesting and this stuff is really, really changing right now. 1090 00:48:19,220 --> 00:48:21,420 I don't know if you guys have heard of this, Project Fishbowl. 1091 00:48:21,480 --> 00:48:22,720 This is freaking cool stuff. 1092 00:48:23,020 --> 00:48:28,000 All the stuff we're talking about, the NSA did a secure mobility package and basically 1093 00:48:28,000 --> 00:48:31,140 is what we're talking about within one company using security. 1094 00:48:31,540 --> 00:48:33,400 So they had two layers of security. 1095 00:48:33,540 --> 00:48:40,940 There's IPsec, IPsec Android built into the SIP user agent on smart phones. 1096 00:48:41,120 --> 00:48:43,440 And then there's SIP TLS SRTP. 1097 00:48:43,860 --> 00:48:46,480 So they created, they're creating a whole architecture recommendation. 1098 00:48:47,240 --> 00:48:51,800 But how can we do this with security between companies is what, combine this with between 1099 00:48:51,800 --> 00:48:56,940 companies and this is exactly what Bill mentioned, the NinjaTel phone that he got, they have 1100 00:48:56,940 --> 00:49:00,840 their own cell tower and they're kind of doing that security within the organization with 1101 00:49:00,840 --> 00:49:01,520 their own cell tower. 1102 00:49:02,360 --> 00:49:07,020 Last thing, last point here, WebRTC could be completely disrupted to this. 1103 00:49:07,280 --> 00:49:09,660 HTML5 and JavaScript natively and web browsers. 1104 00:49:10,380 --> 00:49:11,740 Take a look at WebRTC. 1105 00:49:12,080 --> 00:49:14,420 This stuff could disrupt all of the SIP stuff. 1106 00:49:14,820 --> 00:49:17,820 And then last, I don't know if you guys have heard of Metcalfe's Law, but that's what 1107 00:49:17,820 --> 00:49:19,600 I'm really talking to you guys about today. 1108 00:49:20,780 --> 00:49:25,200 Metcalfe's Law says the more people using a telecom network, the more valuable it becomes. 1109 00:49:25,420 --> 00:49:29,980 Since everyone's using the PSTN, it gives a lot of power over VoIP. 1110 00:49:30,100 --> 00:49:31,520 If you started using VoIP, you're going to get a lot of power over VoIP. 1111 00:49:31,520 --> 00:49:39,180 The more it becomes, more people on it with DNS SRV becomes more valuable to everyone. 1112 00:49:40,780 --> 00:49:43,180 And that's the end of our talk. 1113 00:49:43,340 --> 00:49:44,360 And I thank you for coming. 1114 00:49:44,800 --> 00:49:47,120 You can reach out to Bill and I, Carl as well. 1115 00:49:47,760 --> 00:49:50,240 A copy of this presentation is on the SourceForge site.