[00:00.000 --> 00:07.020] Hello everyone. Thanks for coming. My name is Alina and I'm an Identity and Access [00:07.020 --> 00:12.460] Management Consultant and I'm speaking today with Alex. He's a Staff Security [00:12.460 --> 00:17.660] Intelligence Engineer at Lookout. Okay. We would like to start our talk with a small [00:17.660 --> 00:23.360] disclaimer. This talk is not based on any particular vulnerability for any specific [00:23.360 --> 00:29.060] vendor. This talk only presents a general approach to use automation with a known [00:29.060 --> 00:38.280] vector of reconnaissance. Okay. Let's begin. Remote offices are becoming more and more [00:38.280 --> 00:43.580] popular. People attending meetings from home, from other buildings, or even other [00:43.580 --> 00:52.880] countries. So, in order to accommodate this, maybe I should take the book. Yeah. Okay. [00:52.880 --> 01:03.120] Let's try like this. Okay. Okay. Let's try like this. Oh, I don't see it. Okay. [01:03.140 --> 01:11.620] Okay. So, in order to accommodate our modern life and remote offices, almost every [01:11.620 --> 01:19.040] meeting invite now has a conference line details in it. And, which means that every [01:19.040 --> 01:23.940] aspect of a company life is discussed over the phone. You have vendor evaluation [01:23.940 --> 01:30.600] meetings, interviews happening over the phone, and even C-level presenting some [01:30.600 --> 01:34.760] financial reports. However, the larger the audience, the less we're concerned [01:34.760 --> 01:41.340] about our attendees. For example, you have a company-wide town hall, or you have a [01:41.340 --> 01:46.540] session training, which can easily be joined by 100 or 200 attendees. Obviously, [01:46.540 --> 01:51.820] no one is going to check that every call-in number is a legit user and has enough [01:55.220 --> 01:59.980] permissions to listen to the information discussed. Okay. This was already [01:59.980 --> 02:04.040] noticed as a nice way to obtain some information. And there was some research [02:04.040 --> 02:10.580] done in this area. One of them has been done by Martin, who is actually speaking [02:10.580 --> 02:16.700] today at Recon Village at 4.50. But there are not a lot of researchers what you can do [02:16.700 --> 02:24.240] with information you would like to find. No? It's very quiet? Okay, I'll try that one. [02:24.240 --> 02:32.400] Okay. So, how did I come up with this idea? I used to work as a business analyst, and [02:32.400 --> 02:36.720] one of my duties was to schedule meetings. Meetings with my clients, meetings with [02:36.720 --> 02:41.820] vendors, meetings with stakeholders. Tons of meetings. And everyone was asking, [02:41.820 --> 02:47.460] Alina, can you add a conference line, please? So, since I was constantly sharing [02:48.020 --> 02:54.060] meeting IDs and opening the lines, at one point I had a very clear idea that meeting [02:54.060 --> 03:01.420] ID is just a random sequence of nine digits, sometimes ten or eleven. But it's a [03:01.420 --> 03:09.600] combination of random digits. So, later in the year I heard that AWS released a speech [03:09.600 --> 03:14.220] recognition framework called Transcriber, and it's available for everyone to use. [03:14.220 --> 03:19.340] It's one of AWS services. And also there was some viral video about Google Assistant [03:19.340 --> 03:24.620] making calls on your behalf, calling to different numbers and trying to act as a normal [03:24.620 --> 03:32.300] user. So, one year ago, at DEF CON 26, this idea came to my mind. If you have tools for [03:32.300 --> 03:39.580] automated dialing in, and we have tools for speech recognition, and meeting ID is just a [03:39.580 --> 03:45.200] random sequence of digits, can we get something cool out of it? Can we build a solution [03:45.200 --> 03:50.840] that will act as a user and call to different numbers? So, that's what we are going to try to [03:50.840 --> 04:01.320] see today. So, let's see how the conference line works. For example, I have a company X, and I [04:01.320 --> 04:07.100] need a conferencing solution for my company. So, I go to a vendor and I purchase licenses. [04:07.480 --> 04:14.140] The vendor assigns a fixed phone line to my company. And now my employees can add [04:14.140 --> 04:20.560] conference details to their meetings. For example, I have a meeting at 10 a.m., and I add [04:20.560 --> 04:26.240] conference details to it. And then I schedule another meeting at 11 a.m., and I add details [04:26.240 --> 04:32.460] as well. As we can see, the dialing number is the same for both meetings. And meeting ID is [04:32.460 --> 04:37.780] just random digits associated with this dialing number. So, not bad. In order for you to [04:37.780 --> 04:44.980] join, you need to find out the dialing number, meeting ID, and optional participant ID. But [04:44.980 --> 04:50.400] let's take it a step further and look at something called international numbers. Because we [04:50.400 --> 04:55.440] live in Canada, we always try to call into Canadian numbers. And if you go to your [04:55.440 --> 05:00.920] conferencing provider website, and there will be something called numbers for international [05:00.920 --> 05:06.920] users, international numbers, you will see that for each country, vendor provides one or [05:06.920 --> 05:15.060] couple fixed numbers. So it means if I'm in Canada, I just need one dialing number for all [05:15.060 --> 05:23.420] Canadian calls. Which is not bad, so it makes our conference even less. We can get even more [05:23.420 --> 05:30.860] luckier if we get something called personal meeting ID. What it does basically, it means that [05:30.860 --> 05:35.500] all meetings that I schedule, let's say, will have the same meeting ID associated with me. [05:35.500 --> 05:40.980] It's very convenient if you don't want people to re-open meeting hand-wide, or I have my [05:40.980 --> 05:47.040] details saved somewhere and just copy-paste them. Oh yeah, if you want to join a meeting, [05:47.040 --> 05:52.160] like, you do it every day basically, and you want something fast and easy. Or if I schedule, [05:52.160 --> 05:58.600] let's say, a recurrent session of meetings, maybe daily stand-ups, and I just put this, like, [05:58.600 --> 06:04.620] I schedule it as a series, then by default, my conferencing vendor will also assign one meeting [06:04.620 --> 06:12.240] ID to the whole series. So, let's see how a user can join a call, once you get the details from [06:12.240 --> 06:20.680] me. There are two general ways. The first one is using your laptop and you click on the link. [06:21.200 --> 06:27.620] What happens in that scenario? Basically, your laptop will make an API call to the server, and [06:27.620 --> 06:33.860] conference ID will be passed inside of that API call. Seamless user experience, you don't need [06:33.860 --> 06:40.020] to do anything. Or, if you, let's say, you want to call from your phone, if you're attending [06:40.020 --> 06:46.760] remotely, or people often do it from the car, you can call from your regular phone. And what you [06:46.760 --> 06:55.480] basically need to do in that case is just enter a number on your phone and play a sequence of [06:55.480 --> 07:03.560] signals. And those signals are, they're not called, basically, dual-tone multi-frequency signals. [07:03.560 --> 07:09.620] It's a special way you can dial in a number from your phone. And basically what you need to do, [07:09.620 --> 07:16.200] you need to enter a number and you need to play a sequence of certain signals. Like audio [07:16.200 --> 07:28.180] signals. So, now we know how a user can join a call. We set the following goals for our project. [07:28.180 --> 07:34.700] So, we were thinking, can we build a solution that will take a meeting ID, call into the [07:34.700 --> 07:41.400] meeting, listen to information said, write it to the file or to some sort of storage, have it [07:41.400 --> 07:48.800] transcribed for our future use, and we also wanted a solution that is relatively easy to build and [07:48.800 --> 07:55.760] cheap to run. Okay, at this moment, I'll pass it to Alex for technical side of this talk. [07:58.240 --> 08:04.960] Okay, thank you very much, Alina. Hi, everyone. So, as Alina mentioned, when she came up with [08:04.960 --> 08:09.880] this idea, she already had certain AWS technology in mind. So, given that I already had some [08:09.880 --> 08:16.640] prior experience using it, that became our platform of choice. As you might know, AWS has a [08:16.640 --> 08:21.300] huge number of different services to offer, so let's take a look at those few that were [08:21.300 --> 08:28.160] important for our project. First of all, it's Amazon Connect. Amazon Connect is a cloud-based [08:28.180 --> 08:35.760] contact center that is designed to provide some customer service purposes. However, we used it [08:35.760 --> 08:44.320] to make outbound calls. Also, Connect has some nice features that we'll discuss a bit later. Then [08:44.320 --> 08:51.020] we used Amazon Kinesis Video Streams for streaming our call to a stream so that we can [08:51.020 --> 08:56.020] retrieve the audio file at a later point. Next, we used Amazon Transcribe that Alina [08:56.020 --> 09:02.100] mentioned to get the audio file we obtained and have it transcribed into readable text. We [09:02.100 --> 09:08.800] also used AWS Lambda Service, by which you can execute any kind of function you need, so [09:08.800 --> 09:14.380] without the need of a dedicated server. So, we used that a lot. Other than that, we used [09:14.380 --> 09:20.200] Amazon Cognita for user authentication, we used Amazon Simple Storage Provider, Simple [09:20.200 --> 09:28.900] Storage Service, API Gateway to make our calls more secure, and we used DynamoDB. So, given the [09:28.900 --> 09:33.460] requirements that Alina has mentioned, let's take a look at the architectural diagram of the [09:33.460 --> 09:41.160] solution. Although the whole process can be fully automated, for the purposes of this talk, we [09:41.160 --> 09:47.340] split it into manually invocable steps so that it's easier to follow and understand. As I said, [09:47.340 --> 09:56.140] we first start by logging into the portal, into the solution, using AWS Cognita hosted UI. Once [09:56.140 --> 10:01.640] logged in, we get back the authentication token that we will be using from there on in every [10:01.640 --> 10:08.400] API call to other services. So, as Alina mentioned, we need to have, in order to join a [10:08.400 --> 10:13.060] meeting, we need to have the DTMF signal sequence. So, to generate that audio file that we [10:13.060 --> 10:18.640] will be playing, corresponding to the conference ID, I've written a Java program that I've [10:18.640 --> 10:24.300] uploaded as a Lambda function, so I'm calling that Lambda function, passing it a conference [10:24.300 --> 10:30.400] ID, and get the audio file generated. Once generated, it is stored in an S3 bucket, however, I [10:30.400 --> 10:37.400] need to pull it locally for the next step. One of the nice features of AWS Connect is the [10:37.400 --> 10:44.040] ability to play prompts. By design, it can be used, for example, to play some announcement, [10:44.040 --> 10:49.160] some advertisement to the customer, or to guide them through different menu options in the [10:49.160 --> 10:55.460] call, if it's a customer service call. However, we use this option to be able to play the [10:55.460 --> 11:03.480] audio file. However, Connect does not have the ability to upload, it doesn't have nice API, or [11:03.480 --> 11:09.160] it doesn't have good integration with other services, for example, with S3 buckets. So, to [11:09.160 --> 11:15.740] upload a file, an audio file to be played, you need to go to actually the page and upload the [11:15.740 --> 11:21.100] file in there. However, obviously that doesn't scale, because if you are talking, if you want [11:21.100 --> 11:26.740] to join multiple meetings at a time, you won't be able to go and upload file one by one, so [11:26.740 --> 11:33.080] what we need to do in that case, we just need to do one call to the AWS Connect, which is [11:33.080 --> 11:38.860] designed, we need to grab the token and the cookie from the packet, and having that, we can [11:38.860 --> 11:45.300] basically craft our own packets and upload as many audio files to play as we want. So, once [11:45.300 --> 11:51.240] the file is uploaded, we get back the GUID of the prompt to be played. We keep a note of it, [11:51.240 --> 11:56.040] and it will be used further. So, at this stage, at this step, we kind of have all the [11:56.040 --> 12:02.440] preparation done. And then we call, we can start the call. We started by invoking this lambda [12:02.440 --> 12:07.420] function, which creates, and we pass all the conference information to the phone number, [12:07.420 --> 12:14.320] the GUID of the prompt to play, and the conference ID. And what it does, it creates an [12:14.320 --> 12:21.360] entry in DynamoDB, and it actually starts the flow of the Connect. The Connect flow. So, [12:21.360 --> 12:26.900] this gray box here, this gray area, is actually what's happening inside the flow of the AWS [12:26.900 --> 12:32.140] Connect service. First of all, it starts the Kinesis streaming. So, all of the audio that [12:32.140 --> 12:37.520] will be heard on the call, it will be passed to the Kinesis stream. Then it executes two [12:37.520 --> 12:43.420] more lambda functions. One will look up the data of the GUID, the GUID to play, from the [12:43.420 --> 12:50.200] DynamoDB. And the other one will update our DynamoDB entry with the information about the [12:50.200 --> 12:55.200] stream where we are streaming to. So, it will be fragment number and stream name. Finally, [12:55.200 --> 13:00.120] we need to check whether the call has ended or not. Again, unfortunately, Connect does not [13:00.120 --> 13:05.460] provide a nice API to do that. So, the best thing we can do is just make a regular signed [13:05.460 --> 13:12.980] request to the service, and then just parse the HTML response to see if it contains the [13:12.980 --> 13:17.080] termination timestamp. If it does, we know the call has ended. Otherwise, we just need to [13:17.080 --> 13:24.640] wait. And then the last step would be to pass the extracted audio file from Kinesis. Oh, [13:24.640 --> 13:29.440] yeah, we need to extract the audio file from Kinesis and upload it to S3 bucket. And once we [13:29.440 --> 13:36.240] do that, we need to decode text using the transcribe service. So, now that we covered that, [13:36.240 --> 13:41.920] let's take a look at the real demo. So, in this demo, in order to simulate a typical [13:41.920 --> 13:48.500] meeting conversation, we are going to use the sensitivity training scene from the office. So, [13:48.500 --> 13:53.920] just imagine that we were lucky to find the conference number and conference ID to join the [13:53.920 --> 13:59.360] meeting. So, what we did, in fact, we just took a different laptop, we put, created the [13:59.360 --> 14:04.600] meeting there, and we are trying with our tool, we are trying to join the meeting. So, let's [14:04.600 --> 14:11.940] see what will happen then. So, as you can see, we authenticate first, and we enter the meeting [14:11.940 --> 14:17.720] information, the phone number and the conference ID. As you will see, the conference ID will be [14:17.720 --> 14:24.080] ended with two pound signs. One pound will indicate the last digit of the meeting ID, and [14:25.180 --> 14:29.840] the second pound will indicate that there is no pin number required. We click submit, and [14:29.840 --> 14:36.400] then we generate the EDTMF sequence for the conference ID. Also, I forgot to mention that on [14:36.400 --> 14:41.740] the right-hand side, you can see some logs that my server is producing, so you can kind of [14:41.740 --> 14:47.620] get a better idea of what's going on behind the scenes here. So, the file is generated, I [14:47.620 --> 14:51.880] can download it, I upload it, you can see it's uploaded successfully, so we are ready to [14:51.880 --> 14:56.620] proceed to making the call. We start the call, we send, as you can see on the right side, we [14:56.620 --> 15:03.000] are sending contact ID, and from your ID, and then all we need to do is to check the status of [15:03.000 --> 15:07.820] the call. So, this part would be a little bit fast-forwarded. Obviously, we recorded about two [15:07.820 --> 15:12.380] minutes worth of audio. We won't be waiting and looking at the screen, the same screen for two [15:12.380 --> 15:18.500] minutes, so it was a bit fast-forwarded. However, at some point, we were lucky to check it [15:18.500 --> 15:24.100] and to see that the call has finished. So, now we call the new Lambda function to extract the [15:24.100 --> 15:28.740] audio. As you can see on the right side, we are passing the fragment number and the stream [15:28.740 --> 15:34.720] name to my Lambda function, which is also a Java function, Java code, Java program that would [15:34.720 --> 15:41.540] pull the audio, extract the audio from Kinesis and save it to S3 bucket. This one I didn't [15:41.540 --> 15:47.660] fast-forward, so this took maybe like 30 seconds. So, now that it's done, we initiate the [15:47.660 --> 15:54.180] call transcription job. And this one has, luckily, nice API, so at any point in time, you can [15:54.180 --> 16:01.140] check whether the call has finished or not. And if it has, you can just download the data that [16:01.140 --> 16:07.600] is already transcribed, the text. Otherwise, you just need to wait more. So, again, this was [16:07.600 --> 16:15.440] the longest thing we had to wait for. Probably took us about seven minutes, I'd say. So, yeah, [16:15.440 --> 16:23.520] as you can see, still in progress, but soon we can just click fetch again and see that it's [16:23.520 --> 16:30.460] completed. So, we click download, and here you are. So, basically, this is the text from the [16:30.460 --> 16:36.180] meeting. So, as you can see here, the transcribed text, not sure if it's visible from far [16:36.180 --> 16:42.840] across. So, it starts by, well, first it welcomes you to the provider, then it asks you to [16:42.840 --> 16:47.140] enter your meeting ID, followed by pound sign. And then it says that you are in the meeting [16:47.140 --> 16:52.860] now. And it says that there is other participant in the meeting. After that, you can actually [16:52.860 --> 16:57.880] see the actual text of the sensitivity training that Michael was providing to his [16:57.880 --> 17:05.240] employees. So, as you've seen in this demo, the only parameters that we had to provide to [17:05.240 --> 17:12.240] the project was a phone number and a conference ID. While the rest of the steps, we are [17:12.240 --> 17:21.240] basically checking the current status of the flow, and if it's at the desired state, we [17:21.240 --> 17:26.360] just press the next button to continue the flow. So, basically, it's very easy to automate. [17:26.360 --> 17:33.500] As long as you have the conference ID and the phone number, it's easily automatable. So, [17:33.500 --> 17:38.160] how much did it cost us? Well, it's hard to say how much it cost us, because we didn't [17:38.160 --> 17:43.360] really pay anything for it, because we were still within the free tier of AWS. However, if [17:43.360 --> 17:48.360] you refer to the official webpage and check the prices of different services we used, the [17:48.360 --> 17:54.020] two most expensive ones would be AWS Connect and AWS Transcribe. So, you can see the [17:54.020 --> 17:58.880] prices on the slide. And if you want to put that into context, say you want to record five [17:58.880 --> 18:03.460] hours worth of audio in one day and have it transcribed into text, you are going to pay [18:03.460 --> 18:10.660] something about $15. Obviously, there are always improvement and tuning opportunities. So, [18:10.660 --> 18:15.020] with regards to this project, I can see that the following can be done to make it even more [18:15.020 --> 18:21.800] interesting or to develop it further. So, since we only were working on this as POC, we used [18:21.800 --> 18:28.220] one phone number. However, you can claim as many as you need in AWS Connect and then run [18:28.220 --> 18:34.480] your attacks in parallel. Also, it would be useful to keep more information in the database, [18:34.480 --> 18:39.820] for example, which conference ID were actual and real, which meetings you were able to [18:39.820 --> 18:44.880] join, maybe how many participants there were. Also, if at some point you identify that there [18:44.880 --> 18:49.800] was the same speaker present at the same time on the same conference ID, you may sometimes [18:49.800 --> 18:55.820] make an assumption that it was his own personal meeting ID. Finally, you can always add [18:55.820 --> 19:01.200] more services to the pipeline. For example, you can add AWS Comprehend to get more idea of [19:01.200 --> 19:06.800] what the discussion was about, what was the key topics discussed in the meeting. And, for [19:06.800 --> 19:10.760] example, you can pass the data to SageMaker, where you might have your own machine [19:10.760 --> 19:16.240] learning models deployed, where you can process the data as you wish. Now, I'm giving it back [19:16.240 --> 19:18.340] to Alina for some final remarks. [19:20.880 --> 19:25.840] Thanks, Alex. Okay, and, of course, we need to finish this talk with giving you some [19:25.840 --> 19:32.440] advices how to protect yourself from this type of reconnaissance. So, the most useful [19:32.440 --> 19:37.700] advice will be hire employees who speak with accent, so it's very difficult to transcribe [19:37.700 --> 19:44.180] their text. But, yeah, to be serious, just go to the settings of your conferencing [19:44.180 --> 19:49.820] provider and check what's available there. Um, obviously, require meeting password for [19:49.820 --> 19:54.400] your sensitive discussions. Um, there is a second point, which is, like, generate and [19:54.400 --> 20:00.120] require passwords for participants joined by phone will be a good one. Um, maybe generate, [20:00.120 --> 20:07.660] um, new meeting ID for special, like, in the series if you have a series between your VIP [20:07.660 --> 20:14.020] level, um, like, um, C-level discussions. So, try to generate new meeting ID for [20:14.020 --> 20:20.500] each of them and, yeah, identify guest participants in the meeting will be also a [20:20.500 --> 20:25.940] useful one. Yeah, so just go to the settings, play with it, and try to be aware of this [20:25.940 --> 20:37.980] type of issue. Okay, thanks, everyone, for coming, and you can find us on LinkedIn. [20:39.040 --> 20:50.100] I think we have one or two minutes for questions. No? No questions? Okay. Yeah. [20:50.120 --> 20:53.660] Yeah, yeah, those are for meeting providers, so basically every company that is using [20:53.660 --> 20:58.960] that provider, uh, to join their meeting, you would call that phone number. Just single [20:58.960 --> 21:10.770] provider. Uh, I always do. Sorry? Actually, that's what we wanted to skip in this [21:10.770 --> 21:16.550] presentation for legal purposes, let's say, but if you Google name, like, name of the [21:16.550 --> 21:21.250] company you want and add those numbers, you will be able to find some in the Google. [21:21.250 --> 21:27.470] Like, I did a couple tests, like, like if you put the name of a bank or a big company, [21:27.470 --> 21:32.970] you will be able, because people always give them, let's say, um, there is like a day [21:32.970 --> 21:39.950] for co-ops, like, for students, or maybe there is like a wellness day going on between [21:39.950 --> 21:44.430] different companies, so you can find them, we just didn't want to include because they [21:44.430 --> 21:50.190] were very specific to some companies. Thanks, everyone. [21:51.730 --> 21:52.290] Thank you.