1 00:00:00,600 --> 00:00:01,540 Hey, what's up? 2 00:00:01,540 --> 00:00:02,460 I'm Jason. 3 00:00:02,580 --> 00:00:03,920 It's great to be here. 4 00:00:03,920 --> 00:00:06,900 I'm super passionate about Voice over IP security. 5 00:00:06,960 --> 00:00:07,980 This is Arjun. 6 00:00:10,860 --> 00:00:13,300 I'm going to tell you... I'm going to start off with a quick little story. 7 00:00:13,300 --> 00:00:15,820 And it's the reason why I like Las Vegas so much. 8 00:00:16,300 --> 00:00:18,260 We were here last month. 9 00:00:18,260 --> 00:00:22,080 Viper spoke at SansPenTest Summit on Voice over IP pen testing. 10 00:00:22,380 --> 00:00:30,040 And only in Las Vegas do I get taken up onto the stage of Cirque du Soleil's Humanity. 11 00:00:31,780 --> 00:00:35,660 And little did I know that they were going to try and take off my pants. 12 00:00:36,540 --> 00:00:37,480 The girls. 13 00:00:37,480 --> 00:00:39,680 That's not a bad thing when girls want to take off your pants. 14 00:00:39,680 --> 00:00:42,940 But lucky for me, I wasn't wearing any underwear. 15 00:00:43,120 --> 00:00:44,760 So I kind of escaped that part. 16 00:00:44,760 --> 00:00:46,380 Lucky for the audience as well. 17 00:00:47,000 --> 00:00:49,100 So I was telling the Sans guy this story. 18 00:00:49,100 --> 00:00:51,540 And it was kind of funny because they nicknamed me Commando. 19 00:00:51,540 --> 00:00:56,540 And it was Paul Asadorian with Paul.com security. 20 00:00:56,540 --> 00:00:57,880 I hope he's in the room. 21 00:00:57,880 --> 00:01:00,340 But anyways, Paul. 22 00:01:00,340 --> 00:01:02,080 So he called me Commando. 23 00:01:02,080 --> 00:01:04,080 So I think that's going to be my new handle now. 24 00:01:04,080 --> 00:01:04,940 Commando. 25 00:01:14,570 --> 00:01:19,810 So Paul, wherever you are, I want you to know that I'm going Commando for this talk. 26 00:01:19,810 --> 00:01:21,450 In your honor. 27 00:01:22,610 --> 00:01:24,170 So let's get started here. 28 00:01:24,170 --> 00:01:26,210 We've got a lot of stuff to talk about. 29 00:01:26,210 --> 00:01:29,790 I'm going to go really fast at the beginning on the overview of UC. 30 00:01:29,790 --> 00:01:32,230 And then we've got three really cool demos to do. 31 00:01:32,230 --> 00:01:35,990 We're going to talk about an intro to some of this video stuff that we're talking about. 32 00:01:35,990 --> 00:01:40,950 And if you guys stick around to the end, the last ten minutes, we're going to have some awesome really cool pen testing stuff. 33 00:01:41,050 --> 00:01:44,230 Lessons learned and tricks that we learned here a few weeks ago. 34 00:01:48,340 --> 00:01:51,720 So VIPER stands for Voice over IP Exploit Research. 35 00:01:51,800 --> 00:01:57,240 And really all we are is we're a highly specialized pen test firm dedicated towards UC and Voice over IP. 36 00:01:57,360 --> 00:02:04,260 We do structural research on generic implementation of VOIP and finding vulnerabilities in VOIP protocols. 37 00:02:04,260 --> 00:02:08,180 But it's basically penetration testing and then our research around this. 38 00:02:08,860 --> 00:02:12,040 We built a real production enterprise network. 39 00:02:12,040 --> 00:02:14,060 It's basically Cisco of I and Microsoft. 40 00:02:14,160 --> 00:02:16,800 And what we do is we go in and we do the pen test with the customer. 41 00:02:16,880 --> 00:02:18,480 We learn more about the configuration. 42 00:02:18,480 --> 00:02:19,800 We recreate it in our lab. 43 00:02:19,800 --> 00:02:23,600 And then we're even more effective in our pen test and our research feeds into that. 44 00:02:24,340 --> 00:02:26,040 So obviously this is Arjun here. 45 00:02:26,040 --> 00:02:26,920 I'm Jason. 46 00:02:26,940 --> 00:02:28,440 We're VIPER team members. 47 00:02:29,100 --> 00:02:31,400 This is our lab actually in Dallas. 48 00:02:31,400 --> 00:02:34,020 And like I said, we have a Cisco network IPS. 49 00:02:34,020 --> 00:02:36,860 We do all types of VOIP exploits through the network IPS. 50 00:02:37,280 --> 00:02:42,840 We have like Cisco of I and Microsoft phones and video phones and so forth. 51 00:02:43,520 --> 00:02:45,260 So UC definitions. 52 00:02:45,780 --> 00:02:52,420 At first it was the first marketing buzzers was a converged convergence, which was voice and data over the same pipe. 53 00:02:52,460 --> 00:02:53,420 I added that. 54 00:02:53,420 --> 00:02:56,780 My definition of unified communication is just adding video into that. 55 00:02:56,780 --> 00:03:00,500 And we also have presence as well. 56 00:03:02,200 --> 00:03:04,220 So this is just a simple slide. 57 00:03:04,320 --> 00:03:05,800 Why do we do what we're doing here? 58 00:03:05,800 --> 00:03:08,880 We're publishing these free assessment tools for education and awareness. 59 00:03:08,880 --> 00:03:14,260 Because we believe that the only way to show people that VOIP attacks are for real is to actually demonstrate it to them. 60 00:03:14,260 --> 00:03:16,500 And the way you do that is you use security tools. 61 00:03:16,760 --> 00:03:21,940 We enable security professionals to test the network to show the customer the risk of VOIP. 62 00:03:22,060 --> 00:03:28,300 And we also enable VOIP owners, like people deploying VOIP, to test the network themselves so they can see the risks. 63 00:03:28,300 --> 00:03:33,800 Because they're really the ones that have to make the risk decision if their risk tolerance level will accept that risk. 64 00:03:35,260 --> 00:03:38,360 So let's look at some real-world business examples. 65 00:03:38,360 --> 00:03:40,200 And we're talking about IP video here. 66 00:03:41,300 --> 00:03:47,260 So private IP video calling between users, like the CEO calling the CFO. 67 00:03:48,140 --> 00:03:50,140 Telepresence or video conferencing. 68 00:03:50,460 --> 00:03:53,500 IP video surveillance, which we're going to take a close look at. 69 00:03:53,500 --> 00:03:55,820 Then there's these video streaming applications. 70 00:03:55,820 --> 00:03:59,620 And it's really interesting to study these. 71 00:04:00,280 --> 00:04:04,680 And we welcome you guys to come to us if you've seen stuff, because all this stuff is new in the market. 72 00:04:04,680 --> 00:04:06,940 And we're just now seeing this come out. 73 00:04:11,270 --> 00:04:13,830 Okay, so here's a business case. 74 00:04:13,830 --> 00:04:19,250 We're just taking a quick look at what is driving these video rollouts. 75 00:04:19,890 --> 00:04:24,510 So saving money, going green, not having to save on travel costs. 76 00:04:25,710 --> 00:04:31,190 Wachovia, as a result of their telepresence solution, cost cuts. 77 00:04:32,290 --> 00:04:45,150 And then IP video surveillance, we're kind of taking a look at these video analytics applications that you can do user-driven analysis, automated, on DSPs and coprocessors that are on the video surveillance cameras. 78 00:04:47,090 --> 00:04:56,890 Okay, on the IP video streaming applications, we have America's team, the Dallas Cowboys. 79 00:04:57,130 --> 00:05:00,090 Brand new stadium, awesome. 80 00:05:00,310 --> 00:05:04,390 And we've got a lot of stuff in the press about the Dallas Cowboys. 81 00:05:04,390 --> 00:05:06,190 They have an all IP video network. 82 00:05:06,190 --> 00:05:09,170 It's this new Cisco Stadium Vision technology. 83 00:05:09,390 --> 00:05:11,530 Cisco's partnered up with the Dallas Cowboys. 84 00:05:11,530 --> 00:05:18,750 And supposedly every single IP TV, the video boards and everything, all has an IP address. 85 00:05:18,750 --> 00:05:20,290 So what does that mean for us? 86 00:05:20,290 --> 00:05:21,710 A lot of fun. 87 00:05:22,930 --> 00:05:32,250 Now the Cisco Stadium Vision is like targeted revenue streams where they can customize the whole view of all the IP phones and all the IP TVs. 88 00:05:32,270 --> 00:05:38,710 They can customize that for whatever the event is, if it's like a Cowboys game or if it's like a concert and so forth. 89 00:05:40,510 --> 00:05:44,750 The two 60-yard long HDTV video boards are the largest in the world. 90 00:05:45,330 --> 00:05:48,510 $40 million, they're manufactured by Mitsubishi. 91 00:05:50,170 --> 00:05:52,730 Yankee Stadium is also doing this as well. 92 00:05:53,590 --> 00:05:54,990 Toronto Blue Jays. 93 00:05:57,010 --> 00:06:00,710 Okay, let's take a look at some example UC attacks. 94 00:06:05,000 --> 00:06:10,120 Now we're looking at is the video replay attack where we can replay... 95 00:06:10,120 --> 00:06:11,680 Thank you, Coop. 96 00:06:12,560 --> 00:06:13,680 Appreciate that. 97 00:06:13,680 --> 00:06:16,380 What's your blog website again? 98 00:06:16,920 --> 00:06:17,900 Heycoop.com? 99 00:06:17,900 --> 00:06:18,920 Check it out. 100 00:06:18,920 --> 00:06:19,720 Good guy. 101 00:06:20,340 --> 00:06:27,860 Video replay, we can do a video replay against an IP video surveillance system by placing a safe video stream and creating the blind camera. 102 00:06:28,740 --> 00:06:31,720 And then while the bad guys are sneaking in and doing the bad stuff. 103 00:06:31,720 --> 00:06:35,140 We can also... we've actually seen some people do this. 104 00:06:35,780 --> 00:06:41,020 We can record the CEO in the middle of like a conversation. 105 00:06:41,140 --> 00:06:48,080 We had one guy use UC sniff to do this and he showed his CEO that he had recorded the live conversation. 106 00:06:48,080 --> 00:06:49,480 But you can actually replay that. 107 00:06:49,480 --> 00:06:58,120 So imagine if like in the middle of an important conference call, there's like a previous conference call from two weeks ago and the CEO is like saying the same thing. 108 00:06:58,380 --> 00:06:59,640 A little strange. 109 00:07:04,080 --> 00:07:06,100 Okay, IP video hijack. 110 00:07:06,100 --> 00:07:08,880 We're calling this video interception, video denial of service. 111 00:07:08,880 --> 00:07:12,620 So we're intercepting the video and then we're replaying whatever we want. 112 00:07:12,620 --> 00:07:20,080 Whether it be replaying a previous like AVI or taking a random AVI clip and playing it against the target video session. 113 00:07:22,060 --> 00:07:25,320 And then we have the video eavesdropping example that we just talked about. 114 00:07:29,890 --> 00:07:30,850 Okay. 115 00:07:32,590 --> 00:07:35,390 I want to do like an overview of UC sniff. 116 00:07:35,390 --> 00:07:37,870 UC sniff is our next generation VoIP sniffer. 117 00:07:38,170 --> 00:07:43,330 And I want to walk through like what's the progression of UC sniff and what's happened with UC sniff. 118 00:07:43,430 --> 00:07:50,290 First of all, there's no other security software that can decode G722 audio codec automatically. 119 00:07:50,350 --> 00:07:58,810 If people try and use Wireshark and Ettercap when they're doing their VoIP sniffing in a pen test, you're limited because you can't actually reconstruct G722. 120 00:07:58,810 --> 00:08:07,450 This is the first security tool that does G722, which is the new codec that's showing up in all the new AVI and Cisco networks. 121 00:08:08,190 --> 00:08:22,090 Also, UC sniff, the very first, we released this right after TorCon, combines a man-in-the-middle art poisoning, automatic VLAN hop, and auto constructs forward and reverse into a single WAV file for both G711 and G722. 122 00:08:22,090 --> 00:08:23,730 All of this done automatically. 123 00:08:24,470 --> 00:08:27,750 Another thing is we have a target mode that we introduced. 124 00:08:27,750 --> 00:08:29,190 And we've done this in a pen test. 125 00:08:29,190 --> 00:08:32,250 We can actually intercept Cisco Unity voicemail passwords. 126 00:08:32,250 --> 00:08:34,130 We can steal voicemail passwords. 127 00:08:34,290 --> 00:08:37,850 And we do that by intercepting the skinny keypad button messages. 128 00:08:38,510 --> 00:08:45,170 So the design of UC sniff is a little different because we basically combine the signaling and the media together. 129 00:08:45,170 --> 00:08:50,850 We don't actually start eavesdropping on the RTP media until we've detected that a call has started via the signaling. 130 00:08:50,850 --> 00:08:55,030 So we use SCCP or SIP to detect that that's started. 131 00:08:55,030 --> 00:08:58,790 Then we close down the RTP dissector after we know that the call has ended. 132 00:08:58,970 --> 00:09:04,650 The result of this design is we can tell who is calling, not just random IP streams. 133 00:09:05,370 --> 00:09:15,870 We can actually, if you see the screenshot here, we can reconstruct who's tied into the corporate directory, like the CEO is calling someone else. 134 00:09:16,690 --> 00:09:20,650 And in security testing, the reason why we did this is time is money with pen testing. 135 00:09:20,650 --> 00:09:25,850 And I don't want to spend a lot of time trying to search through WAV files and so forth, trying to find what I'm looking for. 136 00:09:26,690 --> 00:09:39,290 So another new feature of UC sniff, the very first feature with 1.0, was we actually mimic the entire behavior of the phone, and this is the phone on the left, to download the corporate directory, and we load it into memory of the tool. 137 00:09:39,290 --> 00:09:46,170 So we're actually targeting corporate VoIP users based on their name or their directory entry in the corporate directory. 138 00:09:47,430 --> 00:09:52,790 Now, UC sniff 2.0, when we released this February, is the first ever IP video sniffer. 139 00:09:52,910 --> 00:09:55,350 So there's no other tool out there doing that right now. 140 00:09:55,390 --> 00:10:00,750 We decode the H.264 video codec, which Arjun is going to go into in detail. 141 00:10:01,470 --> 00:10:02,650 So we didn't stop there. 142 00:10:02,650 --> 00:10:04,330 We're going to keep on going on this. 143 00:10:04,490 --> 00:10:11,270 April 2009, we released another version that could eavesdrop on Microsoft OCS IM conversations. 144 00:10:11,270 --> 00:10:14,270 Because they use the SIP subscribe message. 145 00:10:14,310 --> 00:10:16,910 We have support now for Avaya SIP as well. 146 00:10:16,910 --> 00:10:19,130 We stress tested that in our lab. 147 00:10:19,250 --> 00:10:22,410 We've actually enhanced the ARP poisoning with Unicast ARP requests. 148 00:10:22,410 --> 00:10:23,910 We're going to talk about that in a second. 149 00:10:23,910 --> 00:10:26,770 And now we have support for G711 ALOG codec. 150 00:10:27,550 --> 00:10:31,070 So the gratuitous ARP thing is really, really, really cool stuff. 151 00:10:31,370 --> 00:10:42,810 We actually were researching and we found that like these nice 7985 video IP phones, that we couldn't actually ARP poison them unless we sat there with UCSIP for 10 minutes. 152 00:10:42,810 --> 00:10:46,050 So we designed like Unicast ARP requests, which actually speeds it up. 153 00:10:46,050 --> 00:10:48,010 Now we can do ARP poisoning like immediately. 154 00:10:48,070 --> 00:10:50,330 We just hit a button and they're ARP poisoned. 155 00:10:50,430 --> 00:10:52,610 We found the same thing with Avaya IP phones. 156 00:10:52,610 --> 00:10:54,210 They actually don't advertise a feature. 157 00:10:54,210 --> 00:10:58,970 But you cannot ARP poison Avaya phones at all unless you use Unicast ARP requests. 158 00:11:00,630 --> 00:11:07,130 But also we ran into a problem because the unified IP phones have a GARP disabled feature, which we're going to talk about here at the end. 159 00:11:07,130 --> 00:11:09,490 And that really kind of stymied us in a lot of things. 160 00:11:09,910 --> 00:11:12,750 So UCSIP 3.0, I'm going to get into this in a second. 161 00:11:13,470 --> 00:11:14,790 We have a GUI now. 162 00:11:14,790 --> 00:11:16,070 We have a Windows port. 163 00:11:16,070 --> 00:11:18,670 We have Windows VLAN support, thanks to Arjun. 164 00:11:18,790 --> 00:11:25,370 We're working on a real-time video monitor where you can actually like eavesdrop live and see like both ends of the reverse and forward video. 165 00:11:25,910 --> 00:11:29,450 We actually built Cisco UCM 7.0 and 7.1 support. 166 00:11:29,490 --> 00:11:33,790 That was not even like... it didn't work at all in the old versions of UCSIP. 167 00:11:33,790 --> 00:11:35,270 So we're going to release this in a second. 168 00:11:35,270 --> 00:11:37,470 All the new deployments are 7.0, 7.1. 169 00:11:37,470 --> 00:11:39,810 And then we have GARP disablement bypass. 170 00:11:40,650 --> 00:11:42,510 I'm going to run out of time here. 171 00:11:42,850 --> 00:11:46,710 GARP disabled is the feature that I was telling you about. 172 00:11:50,510 --> 00:11:59,230 Okay, so GARP disabled is basically preventing us from ARP poisoning the connection from the phone to the network. 173 00:11:59,230 --> 00:12:04,190 We can still do the network to the phone, but when this feature... and this is the default now in new deployments. 174 00:12:04,390 --> 00:12:09,550 So you're basically... unless the phones are on the same VLAN, we're going to get to a second how we defeated that. 175 00:12:09,810 --> 00:12:13,350 But basically, no successful ARP poisoning means no man-in-the-middle condition. 176 00:12:13,610 --> 00:12:19,790 And we can only get the downstream connection coming from a remote VLAN into the phone. 177 00:12:19,790 --> 00:12:26,530 But we can't get any of the... we can't reconstruct the entire media, especially for the phone going to the network in a default config. 178 00:12:28,650 --> 00:12:35,270 So basically, we devised a new feature, and what we did is we're going to beat the race condition on the phone. 179 00:12:35,370 --> 00:12:45,250 Because we can actually predict when GARP is disabled, what happens is the phone will send an ARP request as soon as the two RTP peers, right? 180 00:12:45,250 --> 00:12:52,130 So as soon as the phone... let's say that both phones are on the same VLAN, they're going to send an ARP request right before the RTP media starts. 181 00:12:52,130 --> 00:13:02,050 So we can actually... we've actually programmed UCSIF to look for a message called start media transmission, which is basically the server telling the phone who the remote RTP peer is, right? 182 00:13:02,050 --> 00:13:13,050 So when that happens, then we know we can actually construct our own spoofed Unicast ARP reply packet, and we can actually flood both phones, and so that's how we're winning the race condition. 183 00:13:13,050 --> 00:13:15,170 We actually ARP poison the phones that way. 184 00:13:15,950 --> 00:13:25,530 So this is the entire process here, and it's the new feature, it's dash dash GARP disablement bypass, and that's going to be released with UCSIF 3.0. 185 00:13:26,370 --> 00:13:33,590 So, but with this though, if both phones are on the same VLAN, we can definitely reconstruct the media, because we can use this feature to beat them. 186 00:13:33,590 --> 00:13:44,770 But the phones, they only send ARP requests when they boot up and talk to the server, so like when they're talking to remote peers, we can't defeat that right now. 187 00:13:44,770 --> 00:13:48,450 But that's another story, we actually can, but we're going to get into that later. 188 00:13:49,230 --> 00:13:55,010 So, like I just said, we can't, we can only get unidirectional if it's remote peers in another VLAN. 189 00:13:55,730 --> 00:13:57,750 Okay, ready Arjun? 190 00:14:00,530 --> 00:14:07,930 Hello guys, I'm going to talk about the UCSIF development, and show you a demonstration of IP video eavesdropping using UCSNF. 191 00:14:08,010 --> 00:14:12,030 So UCSNF GUI, we developed it using the juice libraries. 192 00:14:12,030 --> 00:14:17,010 So juice is a C++ class library for developing cross-platform applications. 193 00:14:17,030 --> 00:14:23,710 So it's really good for creating highly specialized user interfaces, and for handling graphics and sound. 194 00:14:24,070 --> 00:14:35,290 So it's really easy to create a GUI application using the juicer, because the juice libraries come with an application called juicer, and it also has some sample demo applications. 195 00:14:35,630 --> 00:14:40,110 So why we selected juice libraries for developing the GUI? 196 00:14:40,110 --> 00:14:49,190 We needed a cross-platform C or C++ application, so that UCSNF GUI looks the same way in Mac, Linux, and Windows. 197 00:14:49,190 --> 00:14:54,250 So we are working, we are currently working on porting UCSNF to Mac. 198 00:14:56,050 --> 00:14:58,110 So UCSNF Windows port. 199 00:14:58,110 --> 00:15:02,710 So we ported the UCSNF Linux code to Windows using the MinGW. 200 00:15:02,710 --> 00:15:06,010 So MinGW stands for Minimalist GNU for Windows. 201 00:15:06,010 --> 00:15:13,670 So basically it ports all the GNU GCC and the GNU binutils for development of native Windows applications. 202 00:15:14,270 --> 00:15:17,090 So creating a voice VLAN interface on Windows. 203 00:15:17,090 --> 00:15:28,370 So actually creating a voice VLAN interface on Linux is pretty easy and straightforward, but on Windows we have to follow the toughest procedures by developing two network drivers. 204 00:15:28,370 --> 00:15:35,450 So we have to develop an NDIS protocol driver and an intermediate driver using the Windows driver development kit. 205 00:15:35,450 --> 00:15:41,230 So we will be releasing these two drivers as a separate package along with UCSNF. 206 00:15:42,130 --> 00:15:43,870 So what is NDIS? 207 00:15:43,870 --> 00:15:47,850 So NDIS is a Windows network driver interface specification. 208 00:15:47,990 --> 00:15:57,410 So we use the NDIS protocol driver for querying and setting the .1Q tag on the Ethernet interface. 209 00:15:57,410 --> 00:16:05,610 So we can also use the NDIS protocol driver for sending and receiving raw Ethernet packets on Windows. 210 00:16:05,610 --> 00:16:11,050 It can be used like WebNet, but it's like more programming than using WebNet. 211 00:16:12,630 --> 00:16:14,690 So installing NDISProt. 212 00:16:14,690 --> 00:16:18,470 So we use the open source tool for installing NDISProt. 213 00:16:18,470 --> 00:16:20,030 So it's called Prot Install. 214 00:16:20,030 --> 00:16:23,830 You can see a screenshot of NDISProt getting installed. 215 00:16:25,550 --> 00:16:27,970 So starting the NDISProt service. 216 00:16:27,970 --> 00:16:30,610 So you just need to execute net start NDISProt. 217 00:16:30,610 --> 00:16:33,270 So the NDISProt is installed as a service. 218 00:16:33,270 --> 00:16:35,930 So just started from the Windows command prompt. 219 00:16:36,070 --> 00:16:42,170 So all the steps will be automated before we officially release UCSNF. 220 00:16:43,030 --> 00:16:44,890 So the IAM driver. 221 00:16:44,890 --> 00:16:47,490 So what does the IAM driver do actually? 222 00:16:47,490 --> 00:16:51,910 So it creates the actual virtual interface for both the wired and the wireless connection. 223 00:16:51,930 --> 00:16:55,030 So this virtual interface will be tagged with the voice VLAN ID. 224 00:16:55,030 --> 00:16:57,550 And the interface will be a part of the voice VLAN. 225 00:16:59,880 --> 00:17:02,080 So installing IAM driver. 226 00:17:02,080 --> 00:17:10,260 So we added the support for installing and uninstalling the IAM driver on the open source NDISProt tool. 227 00:17:10,880 --> 00:17:12,680 So here's the interesting thing. 228 00:17:12,680 --> 00:17:15,100 Decoding video support on UCSNF. 229 00:17:15,100 --> 00:17:19,760 So UCSNF decodes the H.264 content from the RTP payload format. 230 00:17:19,780 --> 00:17:29,400 So this decoder is compliant with the RFC 3984, which is the specification for the RTP payload format for H.264 video codec. 231 00:17:29,400 --> 00:17:36,720 So then UCSNF creates a raw H.264 file format using the decoded H.264 contents. 232 00:17:36,720 --> 00:17:41,900 But this video file is only playable using VLC and MPlayer and it does not have any audio. 233 00:17:41,900 --> 00:17:43,640 It's only a video only file. 234 00:17:43,740 --> 00:17:53,440 So if you have configured UCSNF with FFmpeg library support, UCSNF adds an AVI container to the video files that it creates. 235 00:17:53,440 --> 00:17:58,360 And it also muxes audio and video together using the FFmpeg libraries. 236 00:17:58,360 --> 00:18:06,840 So this AVI file can be played using any famous or well-known media players, including Windows Media Player. 237 00:18:07,420 --> 00:18:11,780 Here's a screenshot of the new UCSNF GUI, just an overview. 238 00:18:13,760 --> 00:18:16,300 Here's a very cool animation. 239 00:18:18,830 --> 00:18:22,310 So here's a cool animation that shows how UCSNF works. 240 00:18:22,310 --> 00:18:24,310 It's pretty simple and very basic. 241 00:18:24,350 --> 00:18:30,670 So all you need to do is unplug the phone from the Ethernet wall, plug in UCSNF. 242 00:18:31,350 --> 00:18:39,650 UCSNF uses CDP, it's a Cisco Discovery Protocol, for finding the VLAN ID and for creating a VLAN interface. 243 00:18:40,010 --> 00:18:43,810 Then it uses DHCP to get an IP address in the voice VLAN. 244 00:18:44,950 --> 00:18:47,850 Then it ARP scans and ARP poisons the voice VLAN. 245 00:18:49,110 --> 00:18:51,310 So at this point, UCSNF is a middleman. 246 00:18:51,330 --> 00:18:56,350 It receives all the traffic from the network and forwards it to the right destination clandestinely. 247 00:18:57,090 --> 00:19:04,810 So for any active call that comes through, UCSNF stores the media to a media file and then it forwards it to the right destination. 248 00:19:05,270 --> 00:19:07,610 This is how pretty much UCSNF works. 249 00:19:08,390 --> 00:19:13,210 So now I'm going to show you a demonstration of IP video use dropping using UCSNF. 250 00:19:13,210 --> 00:19:16,210 The targets are the two Cisco 7985 phones. 251 00:19:17,530 --> 00:19:19,610 Let me start UCSNF. 252 00:19:31,120 --> 00:19:33,020 This is UCSNF. 253 00:19:33,020 --> 00:19:39,160 So I'm selecting the interface to VLAN ARP and to SNF the WIPE traffic. 254 00:19:45,600 --> 00:19:48,840 I would start the ENDISPORT service if I were to do that. 255 00:19:57,510 --> 00:19:59,870 We're going to need a volunteer here in a second. 256 00:20:14,320 --> 00:20:16,300 I'm selecting the man in the middle mode. 257 00:20:16,320 --> 00:20:18,520 So there is an option to VLAN ARP. 258 00:20:18,960 --> 00:20:24,840 So there are like three ways to VLAN ARP, by spoofing CDP or by SNFing CDP or by specifying the VLAN ID. 259 00:20:24,840 --> 00:20:28,760 So spoofing CDP is the fastest way to learn the VLAN ID and to VLAN ARP. 260 00:20:28,760 --> 00:20:31,200 So I want to download the corporate directory. 261 00:20:31,660 --> 00:20:37,400 So in a Cisco network, MAC address of the phone is the authentication token for downloading the corporate directory. 262 00:20:37,640 --> 00:20:45,080 So you can get the MAC address of the phone from a small label on the back of the phone or from the network configuration settings if the screen is unlocked. 263 00:20:45,080 --> 00:20:47,140 So I have memorized the MAC address. 264 00:21:01,240 --> 00:21:03,260 So there are two man in the middle modes. 265 00:21:03,260 --> 00:21:05,900 Number one is the learning mode and the second is the target mode. 266 00:21:05,900 --> 00:21:11,700 So in learning mode, UC-SNF ARP poisons all the hosts in the network and then it eavesdrops on every phone call. 267 00:21:11,700 --> 00:21:17,480 But in target mode, we can target like specific users and then eavesdrop only on phone calls to and from that user. 268 00:21:17,480 --> 00:21:24,880 We recommend using the target mode because the network impact is really low during penetration testing or security assessment. 269 00:21:24,880 --> 00:21:27,780 So Jason is going to talk more on this after the demo. 270 00:21:29,300 --> 00:21:32,080 So I'm enabling Unicast ARP Request Poisoning. 271 00:21:32,600 --> 00:21:34,440 I'm starting UC-SNF. 272 00:21:34,440 --> 00:21:40,140 So it has discovered the VoIP VLAN which is 200 and it's waiting for an IP address. 273 00:21:40,320 --> 00:21:45,020 It has downloaded the TFTP configuration file for the MAC address specified. 274 00:21:45,020 --> 00:21:47,440 It has also downloaded the corporate directory. 275 00:21:49,040 --> 00:21:50,960 So here's the directory list. 276 00:21:51,000 --> 00:21:53,980 It's the same as you can browse through the phone. 277 00:21:54,340 --> 00:21:55,620 Here's the host list. 278 00:21:55,920 --> 00:21:57,040 It's the active calls tab. 279 00:21:57,040 --> 00:21:58,580 There are no current active calls. 280 00:21:58,780 --> 00:22:04,200 Here's the media files tab, which shows the current media files in the current working directory. 281 00:22:04,200 --> 00:22:06,780 So UC-SNF has a built-in audio player. 282 00:22:06,860 --> 00:22:11,640 We are also working on a video player as a plug-in. 283 00:22:12,100 --> 00:22:13,760 Here's the targets list. 284 00:22:15,100 --> 00:22:18,120 So we need a volunteer to make a video call with Jason. 285 00:23:00,360 --> 00:23:01,480 So there you go. 286 00:23:01,480 --> 00:23:04,960 UC-SNF has created like three media files. 287 00:23:04,960 --> 00:23:07,900 So number one is the bi-directional audio stream. 288 00:23:07,900 --> 00:23:09,200 Let me play that. 289 00:23:21,180 --> 00:23:22,540 It's not playing. 290 00:23:23,880 --> 00:23:26,420 It's playing, but it's not... 291 00:23:29,520 --> 00:23:31,500 Let me play the video files. 292 00:23:40,620 --> 00:23:44,820 Here's the forward direction video file from the calling phone to the call party. 293 00:23:53,860 --> 00:23:54,900 There you go. 294 00:23:56,520 --> 00:23:57,000 Thanks 295 00:24:02,310 --> 00:24:03,250 , man. 296 00:24:03,670 --> 00:24:07,550 We're going to put it up on YouTube later on tonight, so UC-SNF up there. 297 00:24:11,010 --> 00:24:13,810 Here's the reverse direction video file. 298 00:24:21,900 --> 00:24:23,720 I think the audio driver is messed up. 299 00:24:23,720 --> 00:24:24,540 It's not working. 300 00:24:32,950 --> 00:24:33,910 So there you have it. 301 00:24:33,910 --> 00:24:37,130 First video eavesdropping, you know, duly written. 302 00:25:30,240 --> 00:25:31,520 Give us one second. 303 00:25:31,520 --> 00:25:35,120 We're just getting back set up here so we can jump on to the next one. 304 00:25:42,580 --> 00:25:46,000 So what we have here is we're going to be talking about VideoJack next. 305 00:25:46,000 --> 00:25:50,540 And VideoJack is our IP video interception and replay tool. 306 00:25:50,540 --> 00:25:52,580 It's like hijacking IP video. 307 00:25:52,580 --> 00:25:55,100 And it's basically like a cousin tool of UC-SNF. 308 00:25:55,100 --> 00:25:58,440 It has man-in-the-middle feature supports. 309 00:25:58,580 --> 00:26:00,420 And what we're using is one of our... 310 00:26:00,420 --> 00:26:03,220 We're going to be targeting unidirectional video streams. 311 00:26:03,660 --> 00:26:07,120 Looks like it has a problem, so you're going to have to... 312 00:26:15,880 --> 00:26:21,560 Okay, so VideoJack was released February 2009 along with the UC-SNF video support. 313 00:26:21,560 --> 00:26:25,320 It's a free assessment tool hosted on SourceForge. 314 00:26:25,320 --> 00:26:26,740 And you can go download it right now. 315 00:26:26,740 --> 00:26:30,780 But we're about to release this new version of VideoJack here right after DEF CON. 316 00:26:30,780 --> 00:26:35,280 But it is this first security assessment tool to support H.264. 317 00:26:35,280 --> 00:26:39,240 Even before UC-SNF, we were using VideoJack all the time. 318 00:26:39,240 --> 00:26:44,620 We first started targeting the two 7095 Cisco unified video phones. 319 00:26:44,620 --> 00:26:48,720 And now we just moved into the realm of video surveillance security. 320 00:26:48,720 --> 00:26:55,600 So we're going to be talking about this 1080p high-definition video surveillance camera, Cisco 4300 series camera. 321 00:27:22,680 --> 00:27:23,540 Okay. 322 00:27:24,540 --> 00:27:31,880 So the new features of VideoJack is it can replay an AVI file in a continuous loop. 323 00:27:31,900 --> 00:27:38,140 It can do a targeted video DOS against a random AVI file that we select, which is essentially the same attack. 324 00:27:38,140 --> 00:27:43,840 But we can actually also take a raw H.264 file and replay it against the phones. 325 00:27:43,840 --> 00:27:46,560 So we're working on getting that going against the surveillance camera. 326 00:27:48,180 --> 00:27:53,650 Can you talk about this while I work on this? 327 00:27:54,350 --> 00:27:58,850 So I'm just going to talk about some trivial challenges we face while developing VideoJack. 328 00:27:58,850 --> 00:28:02,370 So number one is finding a valid H.264 RDP stream. 329 00:28:02,390 --> 00:28:09,490 It is very easy to find a H.264 RDP stream if we can intercept the signaling on the session being negotiated. 330 00:28:09,490 --> 00:28:16,230 But what happens is initially the session and the signaling gets negotiated at the very beginning. 331 00:28:16,230 --> 00:28:19,730 And it does not happen very frequently once the session is established. 332 00:28:20,150 --> 00:28:38,310 So particularly in the case of IP video surveillance camera, the media could be streamed to the destination for days without having any signaling taking place. 333 00:28:38,310 --> 00:28:43,170 So we thought how to find a valid media RDP stream without any signaling. 334 00:28:43,170 --> 00:29:00,370 So we came up with a module that intelligently detects a media stream just by looking at the IP and the UDP parameters, and the RDP version, and the RDP payload type, and the SSRC, and also the monotonically increasing sequence number and timestamp values. 335 00:29:00,530 --> 00:29:05,250 So we do this for a periodic interval of 15 to 20 packets. 336 00:29:05,250 --> 00:29:13,670 And if the RDP packet matches any one of the RDP streams, we try to map it to a valid RDP stream. 337 00:29:19,570 --> 00:29:22,050 So here is a screenshot of 338 00:29:27,690 --> 00:29:34,010 a sample capture of a session getting established between an IP video camera and a monitoring endpoint. 339 00:29:34,010 --> 00:29:40,870 So here you can see RTSP and STP, which exchanges the session and the codec parameters. 340 00:29:40,970 --> 00:29:44,430 And here is also the H.264 RDP media codec. 341 00:29:46,830 --> 00:29:50,810 So H.264 payload format and fragmentation. 342 00:29:51,050 --> 00:29:54,950 There are like four types of H.264 RDP payload formats. 343 00:29:54,950 --> 00:29:58,170 Number one is the single network abstraction layer unit. 344 00:29:58,170 --> 00:30:00,130 Number two is the fragmentation unit. 345 00:30:00,130 --> 00:30:04,350 Number three is the single-time aggregate packets and multi-time aggregate packets. 346 00:30:04,350 --> 00:30:13,510 So what a H.264 client does is, if the H.264 payload size exceeds the MTU, the payload will be fragmented at the H.264 level. 347 00:30:13,510 --> 00:30:17,630 So these H.264 formats are called FUA or FUB. 348 00:30:17,690 --> 00:30:24,290 But some H.264 clients, like the Cisco Videophones, they do not handle this FUA or FUB packets. 349 00:30:24,290 --> 00:30:25,470 They just drop it. 350 00:30:25,470 --> 00:30:36,790 So for a VideoJack attack to work successfully against this 1785 phones, we automatically convert the FU type payload to a single NALU type payload. 351 00:30:36,930 --> 00:30:43,970 And then we also fragment it at the IP level so that it works perfectly. 352 00:30:43,970 --> 00:30:49,830 So this feature of VideoJack makes sure VideoJack works against every H.264 video client. 353 00:30:49,830 --> 00:30:59,990 So VideoJack also uses the FFmpeg libraries to convert the AVI and the raw H.264 file format to an RTP media stream. 354 00:31:00,010 --> 00:31:14,090 So the converted RTP media stream will be initialized with the original RTP streams, SSRC, payload type, increased sequence and timestamp values, and spoof source IP and UDP port of the valid source sender. 355 00:31:22,640 --> 00:31:25,540 So just an overview of VideoJack. 356 00:31:25,540 --> 00:31:26,660 It's 100.4. 357 00:31:26,660 --> 00:31:27,840 I just pinged it. 358 00:31:28,000 --> 00:31:29,940 You should be able to connect to it. 359 00:31:43,200 --> 00:31:45,920 So we're reconnecting to the surveillance camera. 360 00:31:45,920 --> 00:31:50,380 And this is actually a Cisco ActiveX control web application. 361 00:31:50,380 --> 00:31:52,400 And it basically streams over RTP. 362 00:31:52,400 --> 00:31:54,580 So this is not like HTTP that we're doing here. 363 00:31:54,580 --> 00:31:58,640 We're actually streaming over RTP negotiated via RTSP. 364 00:32:00,940 --> 00:32:02,800 Looks like we're going to come up here. 365 00:32:05,940 --> 00:32:07,200 It's okay. 366 00:32:08,180 --> 00:32:11,120 So let's just talk a quick overview of VideoJack. 367 00:32:11,320 --> 00:32:15,240 We're selecting right now a one-way video stream that we're targeting. 368 00:32:15,700 --> 00:32:17,640 We start the attack. 369 00:32:17,700 --> 00:32:23,700 And as soon as we start, we're black-holing the valid RTP packets from the valid IP phone. 370 00:32:23,840 --> 00:32:27,440 Then we select the AVI or the H.264 file. 371 00:32:27,440 --> 00:32:33,020 And then we're using LibNet to reconstruct the H.264 RTP packet. 372 00:32:33,020 --> 00:32:37,660 We use the SSRC, the timestamp values, and other values of the drop packet. 373 00:32:37,660 --> 00:32:40,360 So basically it's a very intelligent attack. 374 00:32:40,360 --> 00:32:44,240 We're taking everything of the valid drop packet and we're recreating it. 375 00:32:44,240 --> 00:32:48,140 But we're putting our own custom H.264 payload in there. 376 00:32:48,540 --> 00:32:52,300 The video interception, like I said, can be a replay or a random movie clip. 377 00:32:52,300 --> 00:32:57,700 And then we target the video device and send it at the destination RTP port. 378 00:33:00,430 --> 00:33:03,250 So here's a little animation to kind of show this. 379 00:33:03,490 --> 00:33:08,950 First off, on the network, we have the streams, the valid H.264 stream. 380 00:33:08,950 --> 00:33:12,290 The VideoJack attacker has to have physical access to the port. 381 00:33:12,370 --> 00:33:14,790 Now this could be at a physically remote location. 382 00:33:14,790 --> 00:33:19,470 And there's a misconfiguration where the VLANs... a member of the same VLAN where the video network is. 383 00:33:19,590 --> 00:33:22,770 So once... he basically does the ART poisoning attack. 384 00:33:22,770 --> 00:33:24,550 He creates the man-in-the-middle condition. 385 00:33:24,550 --> 00:33:28,710 Now the packets are going through the attacker, but the attacker is just silently forwarding this on. 386 00:33:28,710 --> 00:33:30,290 He's not doing anything at this point. 387 00:33:30,290 --> 00:33:41,510 Then when he hits the button to start the attack with whichever file he chooses, then what happens is he's actually dropping that packet, he's constructing his own packet, and thus the attack works that way. 388 00:33:44,560 --> 00:33:46,560 Okay, here's our target right up here. 389 00:33:46,560 --> 00:33:52,420 It's kind of hard to see right here, but it's a beautiful little new 4300 series IP surveillance camera. 390 00:33:53,920 --> 00:33:55,680 It's a 1080p, high definition. 391 00:33:55,680 --> 00:33:59,040 We bought it from a Cisco video surveillance reseller. 392 00:33:59,040 --> 00:34:01,460 It uses RTP for port negotiation. 393 00:34:01,760 --> 00:34:05,640 It does support security features, like it supports encryption, SRTP. 394 00:34:05,640 --> 00:34:07,580 By default, it's not enabled. 395 00:34:08,000 --> 00:34:10,480 And it supports 802.1X as well. 396 00:34:10,540 --> 00:34:14,240 So like I said, we're using the web application to stream it over. 397 00:34:20,150 --> 00:34:21,990 So here's for our demo here. 398 00:34:23,710 --> 00:34:25,930 Now to get us in the mood for this... 399 00:34:32,070 --> 00:34:34,290 I have to play this for a second. 400 00:34:55,110 --> 00:34:59,130 Okay, so they basically took the Fabergé egg. 401 00:34:59,130 --> 00:35:02,330 And it was the type of attack that we're going to demonstrate here. 402 00:35:02,330 --> 00:35:05,530 Here's our Fabergé egg, the little water bottle over here. 403 00:35:09,100 --> 00:35:10,840 Okay, let's give this demo a try. 404 00:35:31,640 --> 00:35:32,680 Ah, it works. 405 00:35:32,680 --> 00:35:33,480 All right. 406 00:35:33,960 --> 00:35:35,800 Let's start VideoJack. 407 00:35:36,340 --> 00:35:39,660 So first thing we're going to do is we're going to capture the safe video stream. 408 00:35:47,740 --> 00:35:50,880 So we use UC-SNF to capture the safe video stream. 409 00:35:51,860 --> 00:35:53,340 Are we running Wireshark? 410 00:35:53,340 --> 00:35:58,280 So we're also going to run Wireshark and we're going to capture into a PCAP the traffic with Wireshark. 411 00:35:58,280 --> 00:36:01,200 We have to sample the traffic for about 20 seconds. 412 00:36:03,040 --> 00:36:05,360 So we're going to need another volunteer. 413 00:36:15,950 --> 00:36:19,510 So on this other laptop, on the attacker laptop, we're capturing this. 414 00:36:27,360 --> 00:36:29,720 So this is like a real surveillance camera here. 415 00:36:29,720 --> 00:36:32,420 It's watching the Fabergé egg right over there. 416 00:36:33,040 --> 00:36:34,000 Can you get it? 417 00:36:34,480 --> 00:36:36,720 Okay, let's stop it. 418 00:36:36,720 --> 00:36:38,900 Okay, so UC-SNF has finished its work. 419 00:36:38,900 --> 00:36:41,540 Let's hope that we captured a good video stream. 420 00:36:42,520 --> 00:36:43,220 blah.pcap 421 00:36:52,080 --> 00:36:53,940 Okay, Arjun saved off. 422 00:36:53,940 --> 00:36:55,740 We're VideoJack teammates here. 423 00:36:55,740 --> 00:36:57,500 We saved off blah.pcap. 424 00:36:57,500 --> 00:37:10,500 So right now I'm going to create, I'm going to use a tool called VideoSnarf, which is a new tool that we're introducing that basically takes as input an offline PCAP and it basically detects all the video and audio streams and outputs them into separate files. 425 00:37:10,500 --> 00:37:18,580 So if you're like a network administrator and you have a monitor span session and you want to actually see all the video and audio going, you can use VideoSnarf. 426 00:37:18,580 --> 00:37:20,460 And we're going to release this in a little bit too. 427 00:37:20,500 --> 00:37:22,440 Also, you can use like Ettercap and Wireshark. 428 00:37:22,440 --> 00:37:26,120 If you don't want to use UC-SNF, you can use VideoSnarf, Ettercap, and Wireshark. 429 00:37:34,570 --> 00:37:36,630 Okay, so we've detected a couple streams here. 430 00:37:47,020 --> 00:37:52,280 Now we're using FFmpeg to convert the H.264 raw file into an AVI file. 431 00:37:52,720 --> 00:37:54,760 So can I get like a volunteer? 432 00:37:54,760 --> 00:37:56,780 Let's try and get a girl this time. 433 00:37:57,780 --> 00:37:58,980 Any girls? 434 00:38:00,560 --> 00:38:01,260 Anyone? 435 00:38:01,260 --> 00:38:01,820 Anyone? 436 00:38:02,800 --> 00:38:03,900 Oh, we do have a girl. 437 00:38:03,900 --> 00:38:04,480 She's coming up. 438 00:38:04,480 --> 00:38:05,200 All right. 439 00:38:06,900 --> 00:38:08,140 Round of applause. 440 00:38:11,830 --> 00:38:14,510 Okay, you're going to be like the person stealing the egg. 441 00:38:15,470 --> 00:38:17,730 Don't do anything until we tell you exactly what to do. 442 00:38:17,730 --> 00:38:19,710 So go right over here. 443 00:38:21,350 --> 00:38:23,030 So FFmpeg is doing its work. 444 00:38:26,130 --> 00:38:28,510 And we're ready to start the VideoJack attack. 445 00:38:36,200 --> 00:38:41,600 Okay, so why don't you like put your hand like here and just like show that... put it in the water. 446 00:38:41,600 --> 00:38:42,700 Now you can see her hand. 447 00:38:42,700 --> 00:38:45,960 You can see that like a video surveillance camera would like capture that. 448 00:38:45,960 --> 00:38:47,120 So move your hand out. 449 00:38:47,980 --> 00:38:49,660 Okay, now move out a little bit. 450 00:38:49,660 --> 00:38:50,400 There you go. 451 00:38:50,900 --> 00:38:51,500 Okay. 452 00:38:52,580 --> 00:38:54,540 So VideoJack has detected a stream. 453 00:38:58,580 --> 00:38:59,960 We select Other. 454 00:39:00,360 --> 00:39:02,100 We're going to do a looping attack. 455 00:39:02,420 --> 00:39:04,440 And we're going to select replay.avi. 456 00:39:04,440 --> 00:39:06,000 Now watch the screen here. 457 00:39:08,060 --> 00:39:09,820 I don't know if you guys noticed anything. 458 00:39:09,820 --> 00:39:12,760 Maybe for a split second there, there was a problem with the AVI file. 459 00:39:12,760 --> 00:39:14,920 But now go ahead and reach in and take the water bottle. 460 00:39:16,400 --> 00:39:17,120 Nothing. 461 00:39:17,180 --> 00:39:18,480 Let's stop the attack. 462 00:39:20,760 --> 00:39:23,000 Water bottle is gone. 463 00:39:23,420 --> 00:39:24,740 Let's try it one more time. 464 00:39:24,740 --> 00:39:26,060 So put the water bottle back. 465 00:39:26,840 --> 00:39:27,480 Okay. 466 00:39:33,610 --> 00:39:35,050 Replay.avi. 467 00:39:37,710 --> 00:39:40,250 So the water bottle was almost pushed in the same direction. 468 00:39:40,250 --> 00:39:41,630 Now remove the water bottle. 469 00:39:42,410 --> 00:39:43,750 And keep it out. 470 00:39:44,290 --> 00:39:44,910 Now watch. 471 00:39:44,910 --> 00:39:45,890 Stop the attack. 472 00:39:46,210 --> 00:39:47,630 Water bottle gone. 473 00:39:48,310 --> 00:39:49,270 Okay. 474 00:39:49,470 --> 00:39:50,770 There's VideoJack. 475 00:39:52,390 --> 00:39:53,510 Thank you. 476 00:39:53,610 --> 00:39:56,150 Actually, you can have the water bottle as a present. 477 00:39:57,010 --> 00:39:58,130 Okay, go ahead. 478 00:39:59,730 --> 00:40:01,610 So here's the last demo. 479 00:40:01,610 --> 00:40:08,850 I'm going to show a VideoJack attack by playing a movie clip on an active video conversation against the Cisco 7985 video phones. 480 00:40:09,150 --> 00:40:10,910 I'm going to use VideoJack. 481 00:40:11,170 --> 00:40:13,050 This time I'm going to VLAN hop. 482 00:40:37,840 --> 00:40:40,540 I'm enabling Unicast ARP Request Poisoning. 483 00:40:40,640 --> 00:40:42,200 So, yeah, it's ready to go. 484 00:40:43,560 --> 00:40:45,300 Let me make a video call. 485 00:40:55,360 --> 00:40:57,460 We're actually reading the output. 486 00:40:57,800 --> 00:41:02,840 So I press F to find an active video stream. 487 00:41:02,840 --> 00:41:06,500 So I find one from the extension 8000 to the extension 8001. 488 00:41:06,500 --> 00:41:07,980 I select the video stream. 489 00:41:07,980 --> 00:41:11,800 Now I can do a very precision attack by attacking either one of the two phones. 490 00:41:11,800 --> 00:41:14,800 I'm going to attack the phone with the extension 8000. 491 00:41:15,600 --> 00:41:17,100 It's the phone on the left. 492 00:41:19,600 --> 00:41:21,780 So it's a 7985 model. 493 00:41:21,820 --> 00:41:23,500 I'm just going to do a one-time attack. 494 00:41:23,500 --> 00:41:27,680 I'm playing the movie clip Italian Job. 495 00:41:29,540 --> 00:41:30,820 There you go. 496 00:41:40,380 --> 00:41:41,800 I'm stopping it. 497 00:41:41,800 --> 00:41:43,880 So I'm going to target the next extension. 498 00:41:44,080 --> 00:41:45,780 It's 8001. 499 00:41:45,860 --> 00:41:47,160 It's the same procedure. 500 00:41:54,580 --> 00:41:55,620 There you go. 501 00:41:56,340 --> 00:42:04,200 So I could have played like a prerecorded video conversation, a prerecorded H.264 video file, or any dirty movie on an active video conversation. 502 00:42:04,460 --> 00:42:06,140 It's funny when you say dirty movie. 503 00:42:09,260 --> 00:42:10,300 Thanks, man. 504 00:42:10,360 --> 00:42:13,140 So imagine the impact of this at like a... 505 00:42:13,140 --> 00:42:24,240 I mean, basically you have to monetize this attack, and I don't believe attackers attack for no good reason other than graffiti, but you could do this at like an entertainment venue, like a very high-profile event. 506 00:42:26,940 --> 00:42:32,160 Okay, so let's jump on to the end here, the exciting VoIP pen testing lessons learned. 507 00:42:38,770 --> 00:42:45,490 Okay, so I've been using UCSF this way, doing on-site pen testing for a while, and it's something I've been meaning to tell a lot of people. 508 00:42:45,490 --> 00:42:47,510 I never run UCSF in learning mode. 509 00:42:47,510 --> 00:42:49,190 I always run it in target mode. 510 00:42:49,230 --> 00:42:57,490 And one of the problems you run into is like when you're doing the pen test, you want to target like a remote IP phone, but you really don't know the IP address of the phone. 511 00:42:57,490 --> 00:43:12,390 So what you can do is you can take a hub in an environment where you're doing your pen testing, and you can share the hub with the attacker's laptop, and you can pick up and find any user in the corporate directory, and you basically call that user, and then you use Wireshark attached to the hub, 512 00:43:12,390 --> 00:43:14,910 and you find the IP address of the remote phone. 513 00:43:14,910 --> 00:43:26,750 It's not something you really think of, but it's very effective, because normally when you're plugged into the Ethernet switch port, there's really not a way you can find the remote IP phone, unless you kind of finagle yourself like this way. 514 00:43:26,750 --> 00:43:33,990 So I find the IP address, and I create this file targets.txt on the phone, within UCSF working directory. 515 00:43:33,990 --> 00:43:37,650 And then I specify UCSF in targeted user mode. 516 00:43:37,650 --> 00:43:41,230 And what it does is we select from a menu, we select the user. 517 00:43:41,810 --> 00:43:43,830 UCSF takes care of the front end for you. 518 00:43:44,610 --> 00:43:51,770 And now it's extremely low risk of service impact, because all we're doing is targeting the traffic between that phone and the rest of the network. 519 00:43:51,770 --> 00:43:56,830 So if something crashes, it's not going to impact rest of all the IP phones on the network. 520 00:43:56,830 --> 00:44:00,090 So it's a very silent, effective attack, and this is the way I recommend it. 521 00:44:00,090 --> 00:44:03,510 So it's kind of like a little tips and tricks that we learned running UCSF. 522 00:44:04,530 --> 00:44:06,270 Okay, now this is really, really cool. 523 00:44:06,270 --> 00:44:08,450 This is like I'm saving the best for the last. 524 00:44:08,490 --> 00:44:09,770 How much time do we have? 525 00:44:10,530 --> 00:44:17,290 Okay, so we were engaged, and there was a Viper security consultant that was in Europe just a couple weeks ago. 526 00:44:17,290 --> 00:44:21,950 And basically they had, it was a UCM 7.1 brand new deployment. 527 00:44:21,950 --> 00:44:24,070 They had gratuitous ARP disabled. 528 00:44:24,410 --> 00:44:27,030 Now I've actually talked to Cisco PSIRT about this. 529 00:44:27,030 --> 00:44:28,710 I've already communicated this. 530 00:44:28,710 --> 00:44:32,270 This is not something that can't be protected against. 531 00:44:32,270 --> 00:44:36,310 So it's something that can be remediated by just turning on security features. 532 00:44:36,490 --> 00:44:41,270 But we couldn't intercept skinny keypad messages, and they had the GARP disabled feature on. 533 00:44:41,370 --> 00:44:44,030 So the GARP disabled looks exactly like this. 534 00:44:44,030 --> 00:44:44,750 Perfect. 535 00:44:45,670 --> 00:44:47,730 GARP disabled was no. 536 00:44:47,890 --> 00:44:50,310 And I talked about this before, what this means. 537 00:44:50,390 --> 00:44:53,750 This means I can't get any messages from the phone to the network. 538 00:44:53,750 --> 00:44:58,330 So I can't get the media from the phone to the network, and I can't get anything that the user dials. 539 00:44:58,330 --> 00:45:01,130 And it's really nice to be able to steal voicemail passwords. 540 00:45:01,970 --> 00:45:03,470 So what did we know? 541 00:45:03,470 --> 00:45:05,730 We had to figure out a way to defeat this. 542 00:45:05,850 --> 00:45:10,310 We knew that GARP enabled is a setting that's managed server side. 543 00:45:10,310 --> 00:45:18,190 We also knew that the Cisco Unified phone downloads the configuration file via TFTP, which tells the IP phone how to configure itself. 544 00:45:18,190 --> 00:45:24,550 So basically this configuration file was everything that the phone used, that it parses and it learns how to configure itself. 545 00:45:25,470 --> 00:45:28,630 And it's only downloaded when the phone boots up. 546 00:45:28,670 --> 00:45:32,070 Could there be a way for us to force this IP phone to download this configuration file? 547 00:45:32,070 --> 00:45:33,490 This is what we figured out. 548 00:45:33,750 --> 00:45:35,890 We figured out a method to do this with UCCIF. 549 00:45:35,890 --> 00:45:39,190 We call it the TFTP man-in-the-middle modification attack. 550 00:45:39,310 --> 00:45:42,270 What we do is we immediately start. 551 00:45:42,270 --> 00:45:43,530 We target the phone. 552 00:45:46,530 --> 00:45:48,230 We create targets.txt. 553 00:45:48,230 --> 00:45:53,210 We launch UCCIF with the new feature that we created for UCCIF, which we're about to release. 554 00:45:54,390 --> 00:45:56,970 First off, what we do is we drop keepaliveac messages. 555 00:45:56,970 --> 00:46:00,050 Now this is a heartbeat mechanism between the phone to the server. 556 00:46:00,050 --> 00:46:05,150 But we can't intercept what's from the phone to the network, but we can intercept the return traffic back to the phone. 557 00:46:05,150 --> 00:46:10,270 So we start blocking the keepaliveac message from the server to the phone, no matter where the server is. 558 00:46:10,830 --> 00:46:14,450 Now all of a sudden what the phone will do is it will think that it's lost registration. 559 00:46:14,450 --> 00:46:17,010 So it will try and re-register to the server. 560 00:46:17,210 --> 00:46:22,130 When it does this, it actually does a tftp.get for its configuration file. 561 00:46:22,130 --> 00:46:23,070 Well, guess what? 562 00:46:23,070 --> 00:46:28,650 When it does a tftp.get, the return traffic, we can add a tftp.dissector. 563 00:46:28,650 --> 00:46:31,650 So we capture the UDP stream on the way back. 564 00:46:31,650 --> 00:46:36,070 And all we do is look for and intercept that gratuitous ARP setting. 565 00:46:36,070 --> 00:46:41,590 So we take it from whatever its setting is 1, and we change that to 0, to GARP enabled. 566 00:46:42,430 --> 00:46:44,630 So then UCCIF does its work. 567 00:46:46,090 --> 00:46:51,310 And Cisco, the phone, downloads, finishes parsing the file, and now it has the new configuration. 568 00:46:51,910 --> 00:46:53,210 GARP enabled, yes. 569 00:46:54,810 --> 00:46:57,590 So this all happens in less than 30 seconds. 570 00:46:57,590 --> 00:47:02,010 If the user is watching the phone, they might be able to catch it, but they might not think anything of it. 571 00:47:02,050 --> 00:47:05,470 And all you have to do is wait until the users go home for the day. 572 00:47:05,650 --> 00:47:08,210 And you target each phone, pick it off one by one. 573 00:47:08,350 --> 00:47:13,630 And when they arrive for work the next morning, they have gratuitous ARP enabled on all the phones in the environment. 574 00:47:13,890 --> 00:47:17,910 We can add new features onto this when we come up with new ideas. 575 00:47:17,990 --> 00:47:19,710 So we basically pwn the phone. 576 00:47:19,710 --> 00:47:21,790 We can change anything on the phone we want to. 577 00:47:21,790 --> 00:47:27,630 I'm going to show a quick... and like I said, you can totally remediate this following Cisco security best practices. 578 00:47:27,930 --> 00:47:32,170 Now I'm going to show one little quick video of this actual attack. 579 00:47:36,830 --> 00:47:38,590 Oh, it just started actually. 580 00:47:39,250 --> 00:47:40,390 There we go. 581 00:47:43,780 --> 00:47:46,160 Okay, so I'm going to the phone right now. 582 00:47:46,180 --> 00:47:49,080 And I'm finding its IP address, 200.6. 583 00:47:49,320 --> 00:47:52,640 And then I'm going to its device configuration. 584 00:47:56,620 --> 00:47:58,400 And gratuitous ARP is no. 585 00:47:58,400 --> 00:48:00,640 We're just verifying that on the phone. 586 00:48:00,960 --> 00:48:04,060 And then we go to UCSTIFF and we launch with the new feature. 587 00:48:04,600 --> 00:48:06,360 We select the targeted phone. 588 00:48:06,700 --> 00:48:08,180 UCSTIFF ARP scans. 589 00:48:08,180 --> 00:48:09,480 It's VLAN hopped. 590 00:48:09,900 --> 00:48:11,340 Now it's listening for traffic. 591 00:48:11,340 --> 00:48:14,840 It's listening for that keepalive.ac message. 592 00:48:16,240 --> 00:48:19,140 It's the most important part of the con. 593 00:48:25,770 --> 00:48:27,170 So it takes a second here. 594 00:48:34,600 --> 00:48:38,400 See, dropping the keepalive.ac, all of a sudden the phone loses registration on the left. 595 00:48:44,070 --> 00:48:48,830 Now the phone is actually going out via TFTP and getting the new configuration file. 596 00:48:48,830 --> 00:48:51,970 We're going to intercept the return traffic from the server. 597 00:48:52,090 --> 00:48:55,910 The CERD file coming from the server to the IP phone. 598 00:48:56,410 --> 00:48:59,810 In a couple seconds here, it's going to... 599 00:49:02,140 --> 00:49:05,340 Watch the phone, it's going to turn... 600 00:49:05,340 --> 00:49:08,820 And we just, on the right, just modified the setting. 601 00:49:08,840 --> 00:49:10,120 Now we go into the phone. 602 00:49:10,120 --> 00:49:11,660 It's re-registered. 603 00:49:15,490 --> 00:49:17,030 And new configuration. 604 00:49:17,030 --> 00:49:18,230 Gratuitous ARP enable. 605 00:49:25,530 --> 00:49:27,250 I guess that's really it. 606 00:49:27,450 --> 00:49:28,610 Great time being here. 607 00:49:28,610 --> 00:49:29,510 Thanks for everything. 608 00:49:29,510 --> 00:49:31,070 And we'll be in the Q&A room. 609 00:49:31,070 --> 00:49:32,230 It's room 104. 610 00:49:32,330 --> 00:49:33,990 We'll be there for about 20 minutes.