1 00:00:00,000 --> 00:00:05,900 Hey, everyone. My name is Ganesh Devarajan. I work for GoDaddy as a security researcher. 2 00:00:06,200 --> 00:00:13,920 And this is Don. He also works in GoDaddy as a security engineer. And I'll let him talk about 3 00:00:13,920 --> 00:00:22,220 himself. Yes. So my name is Don Lubert. I work at GoDaddy. I'm a security engineer there. So my 4 00:00:22,220 --> 00:00:28,320 job is pretty varied. This doesn't exactly pertain to what I do on a daily basis. But because 5 00:00:28,320 --> 00:00:36,580 they're all so nice and so kind, they let us kind of work on a project that we had. So my 6 00:00:36,580 --> 00:00:44,540 day-to-days are anything from setting up new systems. Prior to working at GoDaddy, I was 7 00:00:44,540 --> 00:00:51,040 basically worked at crappy ISPs and service providers. So I got hired on and ever since then 8 00:00:51,040 --> 00:00:56,320 I've been happy to actually do research every now and again. Cool. So our talk is VDLDS. 9 00:00:58,140 --> 00:00:58,300 What is VDLDS? VDLDS is VDLDS. VDLDS is VDLDS. VDLDS is VDLDS. VDLDS is VDLDS. VDLDS is 10 00:00:58,320 --> 00:01:05,860 VDLDS. VDLDS stands for voice data leakage detection system. So the whole idea behind this 11 00:01:05,860 --> 00:01:11,060 was like we're like sitting over there in our office and then we have a huge call center at 12 00:01:11,060 --> 00:01:16,840 GoDaddy. And what we were thinking about was like how cool would it be if we can just like 13 00:01:16,840 --> 00:01:22,940 walk by the call center and start getting all the credit card numbers. Because our call center 14 00:01:22,940 --> 00:01:26,780 is really strict with like you can't take your phones in there. You can't talk on the phone 15 00:01:26,780 --> 00:01:28,300 when you're walking through it. Or you can't take your phone out of your car. So we think this is 16 00:01:28,320 --> 00:01:33,080 or you can have a piece of paper or pen where you can write stuff down. They're pretty strict 17 00:01:33,080 --> 00:01:38,800 that way. But what we were trying to figure out was how can I manipulate the system? How 18 00:01:38,800 --> 00:01:45,920 can I steal information from a phone conversation or any other ‑‑ most people, whenever 19 00:01:45,920 --> 00:01:50,700 you get a call from one of your customer service representatives or something that you're calling 20 00:01:50,700 --> 00:01:55,760 to pay your bills or whatever, you feel more confident to give out your personal information 21 00:01:55,760 --> 00:02:01,300 and your credit card information over there. So we thought it would be interesting if we can 22 00:02:01,300 --> 00:02:07,800 decode that voice stream and then convert it and figure out the numbers in there and pull it out 23 00:02:07,800 --> 00:02:15,120 for our own personal gains kind of thing. So that's how the whole thing started. First 24 00:02:15,400 --> 00:02:20,680 disclaimer, if you get caught doing something like this and we are not responsible, so it's all 25 00:02:20,680 --> 00:02:25,740 on you. So I'm going to give you a little bit more information about how you can do that. 26 00:02:25,760 --> 00:02:29,560 So the agenda is basically like we want to go through what's the problem that we actually 27 00:02:29,560 --> 00:02:34,840 came across, what is it that we want to go ‑‑ what is it that we want to cover and what are 28 00:02:34,840 --> 00:02:39,180 some of the background stuff that's out there and the different scenarios that we could 29 00:02:39,180 --> 00:02:43,980 think of and there are like a million other scenarios out there and the different deployment 30 00:02:43,980 --> 00:02:50,160 architecture model that we have for our tool and like a demo and future work. We'll probably 31 00:02:50,160 --> 00:02:54,820 do the future work before the demo. So the problem. 32 00:02:56,240 --> 00:03:02,060 So as we know, when you're on your phone, more people tend to let things slip and they do that 33 00:03:02,060 --> 00:03:07,780 for multiple different reasons. Even when you're in an enterprise or just on your cell phone, you 34 00:03:07,780 --> 00:03:12,940 tend to say things thinking, oh, well, you know, it's either encrypted by the cell phone provider 35 00:03:12,940 --> 00:03:20,420 or maybe it's encrypted, you know, by my enterprise. They're always willing or you or most people 36 00:03:21,000 --> 00:03:25,180 are willing to give out their credit card number. I mean, how many people have sat there even at 37 00:03:25,180 --> 00:03:30,240 work on your Cisco phone and said, okay, I'm going to call the pool guy because stuff just blew up 38 00:03:30,240 --> 00:03:33,820 and I totally need to have them get out there today. I'm going to give them the credit card 39 00:03:33,820 --> 00:03:40,180 number of the phone so he's at my house by the time I'm home. Well, yeah, that's great, but 40 00:03:40,560 --> 00:03:45,680 it's not as safe as you think it is. So you give out your credit card number. Sometimes you're 41 00:03:45,680 --> 00:03:50,660 trying to set up a new ‑‑ maybe you're applying for school so you've got to drop your 42 00:03:50,660 --> 00:03:54,680 social security number. Well, they're not going to wait for you to walk over to their station 43 00:03:55,180 --> 00:04:01,740 or send it through the internets. You're going to give it over the phone. So a lot of the times 44 00:04:01,740 --> 00:04:08,060 people also try to use that phone system which they don't think they are going to get caught on 45 00:04:08,060 --> 00:04:13,580 and they'll try to slip out insider information. They'll try to talk about your company's 46 00:04:13,580 --> 00:04:18,820 acquisitions before it, you know, hits the streets at all. The problem with that is obviously as 47 00:04:18,820 --> 00:04:23,920 an enterprise, we're always trying to figure out, you know, how can we protect our data to the 48 00:04:23,920 --> 00:04:25,160 point when we're ready to re‑‑ 49 00:04:25,180 --> 00:04:32,600 release it. Because the rumor mills really cause a lot of damage. And if you can control that or 50 00:04:32,600 --> 00:04:37,280 at least know where it's coming out from, then you're going to be a lot better off. A lot of the 51 00:04:37,280 --> 00:04:43,060 times in enterprises you have hundreds of people that are on the phone all the time. And there are 52 00:04:43,060 --> 00:04:49,140 systems in place that do monitor these phone calls. But just because you can monitor them and 53 00:04:49,140 --> 00:04:53,860 archive them and maybe have that audio for later doesn't mean you're going to be able to sit 54 00:04:53,860 --> 00:04:59,040 there and go through 100 phone calls an hour and you're going to be able to sit down and listen to 55 00:04:59,040 --> 00:05:03,280 every 20‑minute phone call or hour‑long phone call. There's just not enough manpower. 56 00:05:06,620 --> 00:05:13,320 So some of the background, again, so who does this kind of thing? Government is already doing it. 57 00:05:13,380 --> 00:05:19,840 Whenever you want to have a tap warrant on someone's phone, you can go through the service 58 00:05:19,840 --> 00:05:23,840 provider and kind of like tap all your calls. And how do you manage that? So that's one of the 59 00:05:23,860 --> 00:05:29,860 things. How efficient is it if you know the person talks on the phone for like 20 hours a day or 60 00:05:29,860 --> 00:05:34,640 something and then you don't want to sit through there and listen to every single conversation. But 61 00:05:34,640 --> 00:05:39,220 if you can figure out these are the key words that you want, then you can already trigger that up 62 00:05:39,220 --> 00:05:44,680 and do that kind of thing. So one thing that we thought was like things like jihad and 63 00:05:44,680 --> 00:05:49,140 terrorism, all those kind of things, the government is already tracking those kind of calls 64 00:05:49,140 --> 00:05:53,780 and then they do all the voice matching recognition and all those kind of things. But those 65 00:05:53,860 --> 00:05:58,900 are all done on the service provider level and we wanted to bring something which is firstly not that 66 00:05:58,900 --> 00:06:05,100 expensive and secondly much more cheaper to do it and easier to do it. I mean, like you can also go plant 67 00:06:05,100 --> 00:06:10,840 a physical bug into the phone and then do the recording and transmitting it out simultaneously. 68 00:06:11,120 --> 00:06:16,320 But we thought, like, let's just make it simpler on the wire. That way, like, I don't have to be 69 00:06:16,320 --> 00:06:21,580 physically present over there to do some of these kind of work. And there are commercial software 70 00:06:21,580 --> 00:06:23,840 which are out there which does this recording. But I don't have to be physically present over there to do some of these kind of work. And there are commercial software which are out there which does this recording 71 00:06:23,860 --> 00:06:30,060 for you. But then the ones that we actually looked into, like, didn't have that expertise 72 00:06:30,060 --> 00:06:36,400 of detecting stuff on the fly which would, like, trigger further investigation kind of 73 00:06:36,400 --> 00:06:42,420 thing. Like, we, at least as a provider, like, we have a huge call center. And then, like, 74 00:06:42,420 --> 00:06:48,020 over there we get tons of calls. Like, I can't have somebody go sit and, like, listen to 75 00:06:48,020 --> 00:06:52,820 every single call. So if I could, like, trigger, like, some kind of an angry customer or somebody 76 00:06:52,820 --> 00:06:53,840 who is just abusive. 77 00:06:53,860 --> 00:07:03,220 Or, like, they're, like, asking phishing for, like, credit card numbers or things like that kind of thing. Like, I can trigger that one and log that and figure out who is doing what kind of thing. 78 00:07:07,260 --> 00:07:23,780 So what is DLP? DLP is data loss prevention. And it's something that every enterprise deals with every day. And most of the time DLP is targeted at things leaving their network. But it's also targeted at 79 00:07:23,860 --> 00:07:34,140 data at rest. Well, the two things that you're dealing with there are either on a server or they're on a client workstation. So they're digital documents, they're text 80 00:07:34,140 --> 00:07:47,600 pads, they're e-mails. They're not voice. They're not audio. They're not video. And a lot of the times you run into the issue or that situation where the data becomes 81 00:07:47,600 --> 00:07:53,780 encrypted and it comes out of your network anyway. Because you don't necessarily have everybody's private key, you know, any 82 00:07:53,860 --> 00:07:59,580 can start and get GNU PG and encrypt a document and send it out using somebody's public key. 83 00:07:59,840 --> 00:08:07,140 It's a problem. But we can at least try to limit kind of the attacks or at least the vectors of 84 00:08:07,140 --> 00:08:17,160 getting this information out. Which is why that voice is a great thing to start with. So a lot 85 00:08:17,160 --> 00:08:23,300 of the scenarios obviously that we're trying to deal with cover a broad spectrum. One of the 86 00:08:23,300 --> 00:08:29,220 things that we want to attempt to do with this technology is deal with social engineering. We 87 00:08:29,220 --> 00:08:34,640 want to be able to detect that same kind of talk pattern that social engineers use. When you're 88 00:08:34,640 --> 00:08:39,600 in a call center you can have one person, you know, make 40, 50 calls. And it's going to say 89 00:08:39,600 --> 00:08:44,200 the same thing every time until somebody either does what they want or gets them the 90 00:08:44,200 --> 00:08:49,860 information that they're really going after. And it doesn't matter, I mean, it can be one 91 00:08:49,860 --> 00:08:52,360 person, it can be three. You're going to see it. 92 00:08:52,740 --> 00:08:53,280 With the way that we're developing this technology, we've got a lot of things that are in the 93 00:08:53,280 --> 00:08:57,920 this, you should be able to detect that type of activity because we've made it in a way that 94 00:08:57,920 --> 00:09:04,220 you can write a rule that's going to parse through the text output in the manner that you 95 00:09:04,220 --> 00:09:08,840 need. So if something new is out there that you need to pull out in a different manner, 96 00:09:08,940 --> 00:09:15,520 that's possible. Another scenario is obviously your insider trading and leaks. Everybody has 97 00:09:15,520 --> 00:09:22,200 that issue. I mean, we can attest to the fact that when people invested into GoDaddy recently, 98 00:09:23,360 --> 00:09:29,600 that it's very short after that information comes out internally, that it's all over Twitter. 99 00:09:29,780 --> 00:09:34,140 And then shortly after Twitter, it's out on the Internet and then there's like a blog 100 00:09:34,140 --> 00:09:40,940 document less than an hour later. So is it, you know, people doing that on their cell phones? 101 00:09:41,080 --> 00:09:46,020 In our case, probably not so much. I mean, we require that they don't use cell phones in the 102 00:09:46,020 --> 00:09:50,760 call centers or on the floor. So, no. Is it possible that they're calling out over our phone 103 00:09:50,760 --> 00:09:53,260 systems? Absolutely. And that's also the best way to do it. And I think that's a good 104 00:09:53,280 --> 00:09:59,220 way to get the most information out fast. You know, it's calls to bookies. We want to deal 105 00:09:59,220 --> 00:10:04,600 with our call centers most importantly. We want to stop or at least know when people are giving 106 00:10:04,600 --> 00:10:08,680 out our vendor account information. Obviously who you have infrastructurally is just as 107 00:10:08,680 --> 00:10:15,120 important as who you're going to use or where it's going to go in the future. So who maybe 108 00:10:15,120 --> 00:10:20,300 you're going to be buying their products of. At the same time, we made this pretty modular. So 109 00:10:20,300 --> 00:10:23,260 if you're going from one end, you're being a nice guy. You're going to be using the same 110 00:10:23,280 --> 00:10:26,140 technology and you're trying to block that stuff or detect it in your network, you can use it 111 00:10:26,140 --> 00:10:32,000 that way. But it could also be used to spy on people. It can sit on their workstation at home. 112 00:10:32,080 --> 00:10:37,380 Maybe they have a soft phone. So that's that VoIP traffic. And you can sit there. You can spy 113 00:10:37,380 --> 00:10:45,080 on your wife or your spouse or whatever. You can try to steal their personal identifying data. It 114 00:10:45,080 --> 00:10:51,600 all flies out over the phone. It all flies out off their system. You can try to snag all their 115 00:10:52,020 --> 00:10:53,260 credit cards. Or you can try to steal their credit cards. You can try to steal their credit cards. 116 00:10:53,280 --> 00:10:58,140 You know, maybe we just want to know who the hell is cursing us out. And interact with that. 117 00:10:58,200 --> 00:11:03,260 Maybe blank it out. You know, try to bleep out, if you will, that type of curse. Or reset the 118 00:11:03,260 --> 00:11:11,600 call. So one of the things that I also actually heard was, like, one of my colleague's friend 119 00:11:11,600 --> 00:11:16,840 basically happened to record all his phone conversation. And when the bank came in for the 120 00:11:16,840 --> 00:11:21,340 foreclosure, he was able to play that and then basically get out of the foreclosure and sue the 121 00:11:21,340 --> 00:11:23,260 bank and get money out of that. So I think that's really cool. I think that's really cool. I think 122 00:11:23,260 --> 00:11:28,020 that's really cool. So it worked out in their advantage over there. And some of the other 123 00:11:28,020 --> 00:11:33,280 things in the news about data leakage, right, like Sony lost so much of credit card 124 00:11:33,280 --> 00:11:39,920 information and Citibank and ADP. It's happening every other day. And these are the ones that we 125 00:11:39,920 --> 00:11:45,360 know of that goes, like, in the public news because, like, it's a big company, that kind of 126 00:11:45,360 --> 00:11:52,240 thing. Apart from this, you have all these smaller grocery stores or gas stations where people are 127 00:11:52,240 --> 00:11:56,840 skimming your credit card information and then selling it out. And, like, in the black market, 128 00:11:56,900 --> 00:12:01,300 how that works is, like, they basically give them, like, okay, I can provide you, like, 100,000 129 00:12:01,300 --> 00:12:05,600 credit card numbers, and then here's the sample of that. And then they provide, like, the first 130 00:12:05,600 --> 00:12:09,820 thousand of them out there. And then, like, people basically run through, like, some of the quick 131 00:12:09,820 --> 00:12:14,320 checks on, like, those things. And if it works out, they immediately go purchase it. And, like, 132 00:12:14,340 --> 00:12:17,880 there are, like, sites which are dedicated for, like, buying and selling credit card information 133 00:12:17,880 --> 00:12:22,220 like this. And it's all basically based on, like, invite only basis. So I think that's really cool. 134 00:12:22,220 --> 00:12:27,860 And the tons of places where it's happening right now and, like, all of them goes mostly to the 135 00:12:27,860 --> 00:12:34,700 Eastern European countries and somewhere up there, too. Some more background on, like, what is 136 00:12:34,700 --> 00:12:39,340 what. I'm, like, we don't want to go more in detail about, like, what is wipe and how it is 137 00:12:39,340 --> 00:12:44,800 done. Like, there are, like, a few other talks which are covering all that already. So what we 138 00:12:44,800 --> 00:12:50,040 are trying to do is, like, we have phone conversations between people and whatever is going 139 00:12:50,040 --> 00:12:54,680 through the Internet, like, it's basically, like, the SIP protocol and then the RTP protocol 140 00:12:54,680 --> 00:13:00,240 mostly. And we're not even looking at the SIP right now. Like, all that we do is, like, we take 141 00:13:00,240 --> 00:13:07,160 up the RTP payload from those sessions and then, like, we want to, like, split those sessions out 142 00:13:07,160 --> 00:13:13,640 and then, like, get the actual data out of that, the wave file out of that. So a little background 143 00:13:13,640 --> 00:13:19,820 on the RTP protocol. So this is the RTP stack. The first byte ‑‑ first bit is basically the 144 00:13:19,820 --> 00:13:24,960 version number. Then we have the padding information, which basically says are there padding 145 00:13:24,960 --> 00:13:29,720 bytes to follow at the end of the packet. Then we have the X, which is basically the extension 146 00:13:29,720 --> 00:13:33,620 header. Like, this is the actual RTP stack, but then, like, you can have, like, extension 147 00:13:33,620 --> 00:13:38,920 header following this stack, which is optional. Then we have the CC, which is basically the 148 00:13:38,920 --> 00:13:48,900 contributing source counter and says how many CSRC records are following this one. And we 149 00:13:49,820 --> 00:13:56,920 have M, which is markers more specific for, like, custom applications which are using RTP for 150 00:13:56,920 --> 00:14:01,740 their own data transfer. So, like, those applications can have a unique marker identification 151 00:14:01,740 --> 00:14:07,100 over there to parse the data differently. Then the payload type. Payload type is much more 152 00:14:07,100 --> 00:14:11,700 important for us in this particular project because, like, that says, like, how the payload is 153 00:14:11,700 --> 00:14:19,180 encoded. Is it just, like, plain raw or is it, like, G711, mu encoded or ALA encoded. And mu 154 00:14:20,880 --> 00:14:26,260 encoding is what is used in the North America mostly. And ALA is what is used in the European 155 00:14:26,260 --> 00:14:32,680 side in the data transfer. So then we have, like, the time stamp and the sequence number. And 156 00:14:32,680 --> 00:14:36,640 the sequence number is, again, to just make sure it's all in flow in the same direction, like, 157 00:14:36,660 --> 00:14:40,900 count and basically. And the time stamp kind of helps out a little bit more. So, like, when 158 00:14:40,900 --> 00:14:46,900 you are having a conversation, say, for ten minutes, and then, like, it happens that it's, 159 00:14:46,940 --> 00:14:49,800 like, a lot of lag. If the packets are not in the same direction, like, it's a lot of lag. So, 160 00:14:49,800 --> 00:14:53,680 if the packets reach you a little slower, there's a lag in your conversation. So with the 161 00:14:53,680 --> 00:14:59,340 time stamp in there, like, we can actually compress the actual audio file, which could be, 162 00:14:59,380 --> 00:15:02,940 like, a ten-minute audio conversation, like, that you have on the phone call could be 163 00:15:02,940 --> 00:15:07,960 compressed to, like, eight minutes or four minutes or whatever. And we can even use that to, 164 00:15:07,980 --> 00:15:12,780 like, help out a little bit with, like, all the silence packets and, like, pull those things 165 00:15:12,780 --> 00:15:19,440 out. And the regular other things. So the basic architecture that we have is, like, 166 00:15:19,800 --> 00:15:24,380 pretty simple. Like, we have two people talking on the phone, sniffer, capture all the packets, 167 00:15:25,060 --> 00:15:30,740 and if you are having, like, a conference call or if you are having, like, multiple, like, if 168 00:15:30,740 --> 00:15:36,820 this thing is ‑‑ if the VDLDS is deployed on a central position where we can monitor all 169 00:15:36,820 --> 00:15:41,960 the conversations going on in the organization, then, like, we need to split it all out into 170 00:15:41,960 --> 00:15:48,540 different sessions. So what I started doing out was, like, started using DPacket. It's a Python 171 00:15:48,540 --> 00:15:49,780 library, DPKT. It's a Python library. It's a Python library. It's a Python library. It's a 172 00:15:52,520 --> 00:15:58,840 Python library. It's a Python library. The D packet module, what I did was split the packets, 173 00:15:59,020 --> 00:16:04,780 took the packet, took out the IP headers out, took out the Ethernet headers out, everything, all 174 00:16:04,780 --> 00:16:09,660 the UDP headers out and then went into the RTP header, parse that one, and then pull the data 175 00:16:09,660 --> 00:16:14,400 out and based on whatever the encoding type was that I showed in the previous one, like, apply 176 00:16:14,400 --> 00:16:19,640 the encoding on the entire file based on the sequence number and then start doing it. So I 177 00:16:19,640 --> 00:16:24,980 I got almost to that point and that's when I'm like, wow, this is really painful to do all this 178 00:16:24,980 --> 00:16:30,920 work. And then I realized I had to do all the session splitting and everything. I don't know if 179 00:16:30,920 --> 00:16:35,180 you guys have heard of this tool called net dude. It's a Linux based one. And it was kind of 180 00:16:35,180 --> 00:16:41,160 pretty outdated tool. So we kind of rewrote net dude in Python too. So I said, okay, you know 181 00:16:41,160 --> 00:16:47,700 what, let's just start using that and then use that to split all the sessions in the packet 182 00:16:47,700 --> 00:16:52,640 capture. So I started doing that and then finally it struck me I should probably Google this up 183 00:16:52,640 --> 00:16:57,520 now and see if somebody else has done it. And fair enough, there are a whole bunch of other 184 00:16:57,520 --> 00:17:03,720 people who have done the session splitting and spitting it out into audio files already. So 185 00:17:03,720 --> 00:17:08,000 that's when I said, you know what, I'm going to use one of the common ones which is like spread 186 00:17:08,000 --> 00:17:14,600 across like multiple platforms. And that's when we chose Wipe Pong and Orica are the two 187 00:17:14,600 --> 00:17:17,680 people that we chose that we can use to parse for our audio. That's when we started doing 188 00:17:17,680 --> 00:17:24,000 this one. Going further into this one, after the session breaker, we have the audio ‑‑ 189 00:17:24,000 --> 00:17:29,340 currently the way we deployed at least for the proof of concept was, like, my laptop was 190 00:17:29,340 --> 00:17:34,300 sniffing the traffic from my desk phone and then, like, whatever the conversation was 191 00:17:34,300 --> 00:17:40,260 happening was getting spit into the local machine. And we basically were, like, doing, like, 192 00:17:40,360 --> 00:17:44,140 I had script which would, like, on a regular interval go through that, find where ‑‑ if 193 00:17:44,140 --> 00:17:49,540 there are new files over there, if there are new files, then, like, shove it into, like, our 194 00:17:49,540 --> 00:17:54,720 web server, wherever the master ‑‑ the master could be running locally or on a remote 195 00:17:54,720 --> 00:17:58,800 server so we can transfer all the files over there and then do the further processing over 196 00:17:58,800 --> 00:18:03,780 there. And then, like, the master basically does the audio to the text conversion and then, 197 00:18:03,820 --> 00:18:09,740 like, we have our own engines to detect the key words and all the regular expressions to 198 00:18:09,740 --> 00:18:13,880 detect all the credit card numbers and stuff like that. And then dump it into, like, the 199 00:18:13,880 --> 00:18:14,120 desktop. 200 00:18:15,520 --> 00:18:22,060 So a little bit more details into, like, the actual architecture of our tool is basically we 201 00:18:22,060 --> 00:18:28,300 have the payload converter. So we have the payload which is basically the white packets with 202 00:18:28,300 --> 00:18:35,220 RTP packets in there. And we convert that into a media, store it into a media database, then 203 00:18:35,220 --> 00:18:40,160 send it through all our transcribing engine where, like, it gets, like, we generate the 204 00:18:40,160 --> 00:18:43,720 transcripts for those. And then we go to the detection log. 205 00:18:44,420 --> 00:18:51,560 Where we figure out if it's, like, PII data or if it is, like, a different kind of, like, 206 00:18:51,560 --> 00:18:58,840 an insider leaks or curse words or based on what kind of rule you want to apply to it, we run 207 00:18:58,840 --> 00:19:05,020 that against it. And then if there's an event generated, then we send it to the display portal 208 00:19:05,420 --> 00:19:09,800 and then it gets parsed and displayed over there. And if you want to add your own custom 209 00:19:09,800 --> 00:19:13,700 signatures to it, because I'm pretty sure you would want to, like, add something from the 210 00:19:13,720 --> 00:19:20,880 support, which is more specific to your organization, and then those kind of things can be also 211 00:19:20,880 --> 00:19:28,420 done very easily. So some of the other things when we started looking into it, like, how can we 212 00:19:28,420 --> 00:19:35,660 get the audio data out of the packet? So when we started looking at it, we first said, oh, 213 00:19:35,740 --> 00:19:41,700 Wireshark has its own, like, telephony piece in it and let's just use that one. And then, like, 214 00:19:41,740 --> 00:19:43,700 we said, like, okay, detect this one. And then, like, we said, like, okay, detect this one. 215 00:19:43,720 --> 00:19:48,200 And then we went into the streams, dumped it to a wave file and then see how that goes. And then, 216 00:19:48,240 --> 00:19:52,580 like, we had a little bit of falses in there, like, things like if you are using, like, Microsoft 217 00:19:52,580 --> 00:19:57,840 office messenger, which also uses SIP and RTP to communicate, and then, like, those kind of 218 00:19:57,840 --> 00:20:02,640 started mixing in. And then, like, we had, like, other cases where, like, it will be the same 219 00:20:02,640 --> 00:20:07,840 stream but then, like, in the stream, like, there are, like, certain other control packets, 220 00:20:08,020 --> 00:20:13,420 which goes through the RTP session. So those are all things that we wanted to take it out. So 221 00:20:14,540 --> 00:20:19,460 DeepPacket, like I mentioned, that was the Python library that we used. Then WipePong is, like, 222 00:20:19,480 --> 00:20:24,000 again, you have, like, a live CD that's available from WipePong if you don't want to use the source 223 00:20:24,000 --> 00:20:29,140 code to compile it and do it. And you can just install it and that starts dumping out all the 224 00:20:29,610 --> 00:20:37,200 audio files. Then we have Vomit and Orica and RTP break and RTP scan, RTP dump and RTP play and 225 00:20:37,200 --> 00:20:43,700 kin enable. All these guys can dump out voice audio files out of the packet capture. So that's 226 00:20:46,480 --> 00:20:51,500 pretty much it. So obviously a good portion of this is actually getting the audio to some type of 227 00:20:51,500 --> 00:20:55,560 form that we can parse through and pull that data from. There were a couple different 228 00:20:56,360 --> 00:21:01,360 architectures that we looked at and a lot of work had gone into one or the other. Obviously 229 00:21:01,360 --> 00:21:08,120 looked at the ones that are very specific to the platforms in general. So Microsoft speech OSX 230 00:21:08,120 --> 00:21:13,700 obviously has their own speak recognizer class built in. Really wanted to stay away from the 231 00:21:13,720 --> 00:21:18,840 that. Anything that isn't that mobile really isn't that good. Obviously there are a lot of 232 00:21:18,840 --> 00:21:23,860 companies out there that just don't use Windows or OSX and you would have to develop it completely 233 00:21:23,860 --> 00:21:30,660 separate from the others. Also, you know, there are larger companies out there now that use 234 00:21:30,660 --> 00:21:35,960 Linux as their main desktop. So you really need to target, you know, at least all three if not more 235 00:21:35,960 --> 00:21:42,460 of those particular platforms. The one in particular that I kind of went for was Sphinx. So 236 00:21:42,460 --> 00:21:47,320 there are multiple versions of Sphinx out there, each for different reasons. There's Sphinx 3, 237 00:21:47,460 --> 00:21:56,000 which is a completely C compiled module that you can use to filter audio down to text. There's 238 00:21:56,000 --> 00:22:02,340 Sphinx 4, which is Java, which you can do the exact same thing and it was built to replace 239 00:22:02,340 --> 00:22:08,400 Sphinx 3. I really started putting a lot of time into Sphinx 4. As a matter of fact, the demo was 240 00:22:08,400 --> 00:22:12,440 probably completed once using nothing but Java. Or Jython because that was the first 241 00:22:12,460 --> 00:22:17,620 and the fastest way to actually interact with their system and it worked very well. The problem 242 00:22:17,620 --> 00:22:25,300 that we ran into is as we looked into this, you know, Java is really heavy. So it was a much 243 00:22:25,300 --> 00:22:31,340 better idea to try something else and the same people that make Sphinx decided to come out with 244 00:22:31,340 --> 00:22:35,940 Pocket Sphinx, which is very light. It's for embedded systems. It gives you most of the same 245 00:22:35,940 --> 00:22:41,360 stuff. It's a little bit simpler, but it gave us a lot more avenues in the future. We weren't 246 00:22:41,360 --> 00:22:42,440 necessarily going to be able to do a lot of the same stuff in the future. We were going to 247 00:22:42,460 --> 00:22:48,680 be stuck using something that had to deal with Java. We could have a C library that worked on 248 00:22:48,680 --> 00:22:54,280 Android. It worked on iOS. It worked on the iPad. It worked on Windows. So it kind of covered 249 00:22:54,280 --> 00:23:02,680 all of our bases all in one spot. And it works fairly well. As far as Sphinx 4 goes, like I 250 00:23:02,680 --> 00:23:07,200 said, I really got into this. I thought it was mobile, but not as mobile as I needed. And 251 00:23:07,200 --> 00:23:12,200 obviously it was easy to hide and it was easy to interact with. It was easy to interact with 252 00:23:12,200 --> 00:23:16,920 because I could use Jython and heck, that's Python. Everybody can do that. It was really easy 253 00:23:16,920 --> 00:23:21,660 to hide because let's face it, everybody has seen Java just randomly take up everything on their 254 00:23:21,660 --> 00:23:30,480 system for no frigging reason. So why not? Well, before really going into it, it turned out 255 00:23:30,480 --> 00:23:35,500 that we really wanted to kind of hit the mobile area and that's where Pocket Sphinx is. I mean, 256 00:23:35,520 --> 00:23:42,180 it just really allowed us these future avenues to go through. I'm not really going to go through 257 00:23:42,180 --> 00:23:47,840 all of it. I'm really going to get into a lot of kind of how voice to text works. It's based on 258 00:23:47,840 --> 00:23:53,980 phones and basically you try to determine what is being said based upon what the standard 259 00:23:53,980 --> 00:23:59,140 phone is. So what is being said at that moment based upon what was previously said and what 260 00:23:59,140 --> 00:24:05,100 should be said next. So you have harmonic models and you have dictionaries that break down words 261 00:24:05,100 --> 00:24:11,220 into syllables, essentially, that you try to match on. And then base that upon what's going to be 262 00:24:11,220 --> 00:24:18,900 said next or probability of what's being said next, so your language model. As we go further, 263 00:24:20,620 --> 00:24:28,680 you kind of find that, yeah, it's possible to get a completely bad translation of what was said 264 00:24:28,680 --> 00:24:35,100 based upon who is speaking and what is actually being said and which language model you're 265 00:24:35,100 --> 00:24:41,200 using and then kind of like how the audio has been transcribed. So the audio model is kind of 266 00:24:41,220 --> 00:24:46,960 the architecture that we use for the actually detection of the what is output because as we put 267 00:24:46,960 --> 00:24:52,620 these WAV files in there, it's got to be of a specific format to get the most likelihood that it's 268 00:24:52,620 --> 00:24:58,020 going to transcribe what you want. So to kind of combat the issues that come with something 269 00:24:58,020 --> 00:25:05,560 transcribing poorly, we had to make the detection engine really customizable. So it's script based. 270 00:25:05,800 --> 00:25:11,200 You can program something in Python and it's in that text file. Well, you can do that. You can do it 271 00:25:11,200 --> 00:25:16,460 do anything you can do in Python. Just make sure that you know what you're doing and you'll be 272 00:25:16,460 --> 00:25:20,320 able to pull anything out. It takes a little bit more skill but it's going to be custom and 273 00:25:20,320 --> 00:25:24,700 you're going to be able to format it accordingly. It's also rule based because it's script 274 00:25:24,700 --> 00:25:29,420 based. It's easy enough to have a script there that all it does is pull a bunch of rules from a 275 00:25:29,420 --> 00:25:34,440 file that's regular expressions that you can match on and then just defaultly kind of push it 276 00:25:34,440 --> 00:25:39,960 out there. So Joe Sixpack can take care of it. Nobody really has to be too bad of a regex 277 00:25:39,960 --> 00:25:49,180 ninja. It does have lower customization but that's what you sacrifice. So one of the 278 00:25:49,180 --> 00:25:54,700 deployment architectures, like I said, we can put it on taps with the PBX system and then start 279 00:25:54,700 --> 00:25:59,960 dumping all the conversations, basically anything that's going through the wire basically gets 280 00:25:59,960 --> 00:26:05,280 converted into WAV file and keeps dumped into the local hard disk and then we can send it out 281 00:26:05,280 --> 00:26:09,940 for the processing and reviewing and analysis. So that's one way of doing it. So that's one way 282 00:26:09,940 --> 00:26:16,340 of having it done so like you just have to deploy this at like one location. The second option is 283 00:26:16,340 --> 00:26:21,620 basically having it as a distributor one. So if you are actually trying to like specifically 284 00:26:21,620 --> 00:26:26,440 target just one particular person in the organization or like just a few people, then you 285 00:26:26,440 --> 00:26:32,620 can deploy this agent on their box and then like have that agent just report to the master 286 00:26:32,620 --> 00:26:39,920 wherever you have it set up and then like it's all possible to set it up via the config file. You just set the 287 00:26:39,920 --> 00:26:43,660 the config to this is the master and then it just reports to the master which is in 288 00:26:43,660 --> 00:26:49,060 a remote box. And then it dumps all the conversations over there, like parses it, transcribes it 289 00:26:49,060 --> 00:26:57,740 and then first it actually does the standardization using the socks and then it does the transcription 290 00:26:57,740 --> 00:27:04,680 and then does the detection logic and then spits it out in a not so fancy portal at this 291 00:27:04,680 --> 00:27:10,240 point of time but will be fancy soon, hopefully. And the other option is like you actually 292 00:27:10,240 --> 00:27:14,400 hacked into one of the boxes or you have a node that you have compromised over there, then you 293 00:27:14,400 --> 00:27:19,660 want to transfer this whole agent over there and then have it report back to you. And that was 294 00:27:19,660 --> 00:27:23,800 one of the reasons, like he said, like we wanted to keep it very lightweight and smaller so 295 00:27:23,800 --> 00:27:29,300 that we don't have to deal with, you know, heavy transfer of file both the ways, up and down. 296 00:27:29,360 --> 00:27:34,360 So like we can even have the master run on their machine and it's very low, 297 00:27:34,360 --> 00:27:40,520 CPU intensive and you run it over there, get the output and then just to send the parsed output to 298 00:27:40,520 --> 00:27:49,480 you kind of thing. So before we go into the demo, some of the future works that we have decided was 299 00:27:49,480 --> 00:27:56,000 like thinking about is like to disguise this whole thing as an app, maybe as a weather app or 300 00:27:56,000 --> 00:28:02,160 something which says it needs internet access and needs like the speech recognition software to 301 00:28:02,680 --> 00:28:04,260 put in the zip code or something. 302 00:28:04,360 --> 00:28:09,040 So we can do that kind of thing. And basically listen into every single phone conversations that you 303 00:28:09,040 --> 00:28:13,540 have on your cell phone and be able to transfer like just the key things that we need from that 304 00:28:13,540 --> 00:28:20,560 one to our servers. So then the real time office scanners, so the other thing that we were 305 00:28:20,560 --> 00:28:25,520 thinking about was like right now it's like all like the audio file is being generated, dumped 306 00:28:25,520 --> 00:28:34,220 into the local disk and then we do all the parsing. But we're thinking if we can do this more in a real time 307 00:28:34,360 --> 00:28:41,340 then we can actually start beeping out or whenever you are giving out numbers or you're 308 00:28:41,340 --> 00:28:47,840 cursing or something, you just basically beep the whole thing out. Or just simple thing 309 00:28:47,840 --> 00:28:53,620 would be just to drop those packets and things like that. And inject and add more packets 310 00:28:53,620 --> 00:28:59,980 in there or filter out certain packets specific to that. Some of our references and ‑‑ 311 00:29:21,660 --> 00:29:24,980 So here's the first one, which is basically the Wireshark ‑‑ 312 00:29:35,700 --> 00:29:47,700 So this is all our ‑‑ So here's what the basic conversations that happen before, like, the 313 00:29:47,700 --> 00:29:51,960 actual payload starts going out, like, we have, like, conversations, like, okay, what's your 314 00:29:51,960 --> 00:29:56,360 phone number, what's my phone number, what's your name, all the SIP protocol data transfer, 315 00:29:56,460 --> 00:29:56,740 basically. 316 00:29:57,460 --> 00:29:58,160 Then ‑‑ 317 00:30:11,140 --> 00:30:18,000 So these are all the actual RT packets which are going between me and him when we are having this 318 00:30:18,000 --> 00:30:22,700 proof of concept call. So what you can do is, like, the Wireshark does have this feature. 319 00:30:45,840 --> 00:30:48,300 So this is our conversation that we are having. 320 00:30:48,840 --> 00:30:51,480 What type of conversation are you trying to pull, Gary? 321 00:30:55,220 --> 00:30:58,140 Is the audio out? 322 00:30:59,460 --> 00:30:59,960 No. 323 00:31:15,440 --> 00:31:16,120 All right. 324 00:31:16,120 --> 00:31:23,980 So that's just the basic conversation that we were just pulling together. And so, like, 325 00:31:23,980 --> 00:31:27,920 Wireshark does this. So, like, what we were thinking about was, like, first to, like, use the 326 00:31:27,920 --> 00:31:32,760 Thetrail to do the whole thing, like, in line using Wireshark to do the decoding for us. 327 00:31:33,000 --> 00:31:37,480 But like you see, like, over there, like, we have, like, three conversations, like, listed over 328 00:31:37,480 --> 00:31:42,640 there as voice calls. But it's just the center one which actually works. The other two are just, 329 00:31:42,680 --> 00:31:50,640 like, falses over there. And the other tool that we actually looked into was Endernext. 330 00:31:52,060 --> 00:31:52,460 . 331 00:31:52,460 --> 00:31:52,560 . 332 00:31:56,900 --> 00:31:58,300 . 333 00:31:58,300 --> 00:31:58,520 . 334 00:32:11,680 --> 00:32:12,560 . 335 00:32:13,080 --> 00:32:13,320 . 336 00:32:13,320 --> 00:32:14,400 . 337 00:32:19,920 --> 00:32:44,060 So let me just bring that back here. So basically what I'm doing right now is 338 00:32:44,060 --> 00:32:50,960 like sending a few packets through like replaying a packet capture and then looking at all the 339 00:32:50,960 --> 00:32:54,080 different voice conversations that have taken place. 340 00:33:01,160 --> 00:33:07,980 And if I can just show that one to you guys. So I did a TCP replay of a prerecorded packet 341 00:33:07,980 --> 00:33:12,400 capture and then like dumped that one and then like all the conversations which were 342 00:33:12,400 --> 00:33:14,040 recorded in that packet capture. 343 00:33:15,020 --> 00:33:26,680 That's what is displayed over there. And finally ‑‑ do you want to start the other one? 344 00:33:27,700 --> 00:33:40,040 Oh, yes. So in order for our demo to work, like we wanted to ‑‑ we basically prerecorded 345 00:33:41,240 --> 00:33:44,020 whatever the conversation that we had in the office. So we have a lot of things that we 346 00:33:44,020 --> 00:33:49,860 had in the office and dumped it into one of the files that came out. And we thought we'll play 347 00:33:49,860 --> 00:33:53,700 the conversation because we didn't want to bring like two phones over here, set up the PBX thing 348 00:33:53,700 --> 00:33:59,260 and like have it all dump out and everything. So these are the two files that we have. 349 00:34:01,420 --> 00:34:13,920 Hello. My name is Brian. My credit card number is 1234-5678, 1234-5678. My social 350 00:34:13,920 --> 00:34:13,980 name is Brian. My credit card number is 1234-5678, 1234-5678. My social name is Brian. My credit card number is 1234-5678. My social 351 00:34:14,020 --> 00:34:25,860 security number is 0123456789. Hello? Hey. So this is ‑‑ 352 00:34:25,860 --> 00:34:29,280 Second conversation. What the fuck is this? Why are you just 353 00:34:29,280 --> 00:34:35,060 calling me, fucking bastard? What kind of asshole just calls a guy and doesn't say anything? Frickin' 354 00:34:35,060 --> 00:34:43,220 dumasses. What a bunch of dummies. I am not saying the words bitch or whore over the phone line. That 355 00:34:43,220 --> 00:34:52,080 is all I know. Fuck this thing. So we basically wanted to figure out how the curse words work 356 00:34:52,080 --> 00:34:59,200 and all the audio translations basically said one of our coworkers was volunteering enough to 357 00:34:59,200 --> 00:35:08,700 do that for us. And the other thing that we wanted to kind of show was also like so part of 358 00:35:08,700 --> 00:35:14,760 the agent basically, like we have to do the standardization of the audio file and everything. 359 00:35:15,080 --> 00:35:22,440 So when Arica gets installed, it basically gets by default installation with the GSM format. 360 00:35:22,680 --> 00:35:30,760 So we have to convert that to PCM. So we do that. And so this is how all our output logs 361 00:35:30,760 --> 00:35:34,800 basically look like. And I can't see much. So I'm going to just scroll it across and show 362 00:35:34,800 --> 00:35:38,680 you guys what it is. So it basically says, like, I'm going to do this. I'm going to do this. 363 00:35:40,000 --> 00:35:44,000 And it shows you what time the conversation happened, who is the originator, who is the 364 00:35:44,000 --> 00:35:49,560 recipient, like if it's a phone number, if it is internal within the same organization, then it 365 00:35:49,560 --> 00:35:54,180 just shows the extension number. And if it is going actually outside the organization, then it 366 00:35:54,180 --> 00:35:58,720 shows the actual cell phone number or the landline number that you're reaching out to. And 367 00:35:59,340 --> 00:36:05,960 what was the duration of the call and the direction. Was it you who called out or was it an 368 00:36:05,960 --> 00:36:08,680 incoming call and those kind of things. So those are all the things that we wanted to show you. 369 00:36:08,700 --> 00:36:14,320 So we put all the things we have in the log and we basically parse those things out and then we do a 370 00:36:14,320 --> 00:36:18,620 post to the master web server. And Don will show you on that. 371 00:36:27,980 --> 00:36:34,400 Basically everything was done previously. So we set up a file that we're going to use to kind of 372 00:36:34,400 --> 00:36:37,840 post this the way it would typically happen on your system if you had it set up in one spot or the 373 00:36:37,840 --> 00:36:38,080 other. 374 00:36:39,720 --> 00:36:52,920 And I'll show you just basically the post first, which is going to seem normal enough. And 375 00:36:52,920 --> 00:37:02,620 of course, yeah, it would fall off the screen, but it will scroll, I promise. At least I 376 00:37:02,620 --> 00:37:08,680 thought it would. Let's try this a second. So I'm going to go ahead and show you the 377 00:37:26,500 --> 00:37:27,220 sample file. 378 00:37:27,300 --> 00:37:33,680 So all this is going to do is we have those two sample files. We're going to post it up really 379 00:37:33,680 --> 00:37:38,680 quickly. And you'll see that it's not going to show up. It's going to show up in a different way. 380 00:37:38,680 --> 00:37:44,000 Hopefully that's the first one going up. Hopefully. And that's the second file being 381 00:37:44,000 --> 00:37:48,500 uploaded. And while that's being uploaded, the system on the other end is actually 382 00:37:48,500 --> 00:37:53,700 transcribing the data. It's running one of our rule sets that we've set up to get everything 383 00:37:53,700 --> 00:38:08,560 through there. And let me show you the end result. As small as I possibly can make it. 384 00:38:09,660 --> 00:38:20,520 So I just needed something messy and quick. And that's really what this is. Just quick reports 385 00:38:20,520 --> 00:38:29,560 that were generated based upon the two things that we uploaded. So you'll see that this is the 386 00:38:30,220 --> 00:38:37,980 ongoing call, the local IP, the remote IP, which have obviously been kept in a packed format for 387 00:38:37,980 --> 00:38:45,400 the ‑‑ and then you'll see that what the number was, which are the actual extensions that 388 00:38:45,400 --> 00:38:49,260 were used. And then as you look down, you'll see the alert. So it pulled out. The credit card 389 00:38:49,260 --> 00:38:55,240 number is 12345678, social security number. And then down here you have the transcription. 390 00:38:55,880 --> 00:39:00,420 So that is exactly what we said. That's enough for me to walk off with your credit card number 391 00:39:00,420 --> 00:39:05,740 and your social security number if I have it running on your system. The other one didn't work 392 00:39:05,740 --> 00:39:07,960 so well. Due to such things that we've done in the past. So I'm going to go ahead and show you 393 00:39:07,980 --> 00:39:10,340 some of the things that we've done in the past. The first thing is language models. And the 394 00:39:10,340 --> 00:39:16,600 actual language model that we're using isn't so good at dealing with profanity because typically 395 00:39:16,600 --> 00:39:21,680 when you're cursing, you're going to have spaces around the words. Well, the way that our actual 396 00:39:21,680 --> 00:39:27,000 audio came out didn't. So as you can see, it detected absolutely nothing. And obviously there's 397 00:39:27,000 --> 00:39:34,220 not one curse word there. So it is not perfect on everything. But it does detect normal speech 398 00:39:34,220 --> 00:39:37,960 patterns. One of the things for future work is obviously the fact that we're not going to be 399 00:39:37,980 --> 00:39:44,400 able to train it for different types of dialects. So it works somewhat. And then in other times 400 00:39:44,400 --> 00:39:51,120 it fails miserably. And there are different dialects. So basically even for English language 401 00:39:51,120 --> 00:39:56,940 model, we have the British English model, the U.S. English model. And some of the dictionaries 402 00:39:56,940 --> 00:40:03,380 that we looked into, they also had for different languages like Spanish or German and was it 403 00:40:03,380 --> 00:40:07,960 French, too? Yeah, they have French as well. So they have some of the major language models. 404 00:40:07,980 --> 00:40:13,340 Some of them are already defined in dictionaries. So that's what we used. And just for like 405 00:40:13,340 --> 00:40:18,320 ease of use, also just made a form. So say if you did manage to get Wireshark sniffing on 406 00:40:18,320 --> 00:40:24,140 somebody's box, then you could just quickly upload it and have it transcribed and it would come 407 00:40:24,140 --> 00:40:28,140 out the other end automatically for you. Yeah. 408 00:40:30,500 --> 00:40:35,320 That's about it that we had. And you guys have any questions for us, we'll be happy to take. 409 00:40:39,160 --> 00:40:39,480 Sweet. 410 00:40:41,140 --> 00:40:41,600 Thank you.