WEBVTT

00:00.000 --> 00:01.060
Hello everyone.

00:01.060 --> 00:02.360
Thanks for coming.

00:02.360 --> 00:10.420
My name is Alina and I'm an Identity and Access Management Consultant and I'm speaking today with Alex.

00:10.620 --> 00:14.620
He's a Staff Security Intelligence Engineer at Lookout.

00:14.620 --> 00:15.580
Okay.

00:15.580 --> 00:18.760
We would like to start our talk with a small disclaimer.

00:19.060 --> 00:24.340
This talk is not based on any particular vulnerability for any specific vendor.

00:24.560 --> 00:30.580
This talk only presents a general approach to use automation with a known vector of reconnaissance.

00:31.220 --> 00:31.760
Okay.

00:31.760 --> 00:32.960
Let's begin.

00:36.100 --> 00:39.200
Remote offices are becoming more and more popular.

00:39.200 --> 00:44.660
People attending meetings from home, from other buildings, or even other countries.

00:46.140 --> 00:52.080
So, in order to accommodate this, maybe I should take the book.

00:52.080 --> 00:52.680
Yeah.

00:52.680 --> 00:52.880
Okay.

00:52.880 --> 00:54.400
Let's try like this.

00:55.120 --> 00:56.320
Okay.

01:00.280 --> 01:01.020
Okay.

01:01.020 --> 01:02.420
Let's try like this.

01:02.480 --> 01:03.120
Oh, I don't see it.

01:03.120 --> 01:03.120
Okay.

01:03.140 --> 01:04.540
Okay.

01:05.340 --> 01:16.300
So, in order to accommodate our modern life and remote offices, almost every meeting invite now has a conference line details in it.

01:16.620 --> 01:22.500
And, which means that every aspect of a company life is discussed over the phone.

01:22.640 --> 01:32.040
You have vendor evaluation meetings, interviews happening over the phone, and even C-level presenting some financial reports.

01:32.240 --> 01:37.560
However, the larger the audience, the less we're concerned about our attendees.

01:37.560 --> 01:45.660
For example, you have a company-wide town hall, or you have a session training, which can easily be joined by 100 or 200 attendees.

01:45.780 --> 01:51.820
Obviously, no one is going to check that every call-in number is a legit user and has enough permissions

01:55.220 --> 01:57.720
to listen to the information discussed.

01:58.720 --> 01:59.300
Okay.

01:59.300 --> 02:02.900
This was already noticed as a nice way to obtain some information.

02:03.000 --> 02:05.480
And there was some research done in this area.

02:05.620 --> 02:12.640
One of them has been done by Martin, who is actually speaking today at Recon Village at 4.50.

02:13.560 --> 02:18.820
But there are not a lot of researchers what you can do with information you would like to find.

02:19.680 --> 02:20.000
No?

02:20.000 --> 02:21.180
It's very quiet?

02:22.500 --> 02:24.240
Okay, I'll try that one.

02:24.240 --> 02:24.840
Okay.

02:26.560 --> 02:30.080
So, how did I come up with this idea?

02:30.160 --> 02:35.080
I used to work as a business analyst, and one of my duties was to schedule meetings.

02:35.100 --> 02:38.860
Meetings with my clients, meetings with vendors, meetings with stakeholders.

02:38.860 --> 02:40.080
Tons of meetings.

02:40.200 --> 02:44.320
And everyone was asking, Alina, can you add a conference line, please?

02:44.500 --> 03:00.280
So, since I was constantly sharing meeting IDs and opening the lines, at one point I had a very clear idea that meeting ID is just a random sequence of nine digits, sometimes ten or eleven.

03:00.280 --> 03:03.420
But it's a combination of random digits.

03:03.980 --> 03:14.160
So, later in the year I heard that AWS released a speech recognition framework called Transcriber, and it's available for everyone to use.

03:14.160 --> 03:16.160
It's one of AWS services.

03:16.200 --> 03:25.440
And also there was some viral video about Google Assistant making calls on your behalf, calling to different numbers and trying to act as a normal user.

03:25.700 --> 03:30.900
So, one year ago, at DEF CON 26, this idea came to my mind.

03:30.900 --> 03:43.620
If you have tools for automated dialing in, and we have tools for speech recognition, and meeting ID is just a random sequence of digits, can we get something cool out of it?

03:44.100 --> 03:48.780
Can we build a solution that will act as a user and call to different numbers?

03:49.120 --> 03:51.820
So, that's what we are going to try to see today.

03:52.560 --> 03:58.060
So, let's see how the conference line works.

03:58.180 --> 04:03.640
For example, I have a company X, and I need a conferencing solution for my company.

04:03.720 --> 04:07.100
So, I go to a vendor and I purchase licenses.

04:07.480 --> 04:12.000
The vendor assigns a fixed phone line to my company.

04:12.280 --> 04:16.080
And now my employees can add conference details to their meetings.

04:16.980 --> 04:22.240
For example, I have a meeting at 10 a.m., and I add conference details to it.

04:22.540 --> 04:27.060
And then I schedule another meeting at 11 a.m., and I add details as well.

04:27.280 --> 04:31.180
As we can see, the dialing number is the same for both meetings.

04:31.340 --> 04:35.780
And meeting ID is just random digits associated with this dialing number.

04:36.040 --> 04:36.980
So, not bad.

04:36.980 --> 04:43.780
In order for you to join, you need to find out the dialing number, meeting ID, and optional participant ID.

04:44.380 --> 04:49.960
But let's take it a step further and look at something called international numbers.

04:49.960 --> 04:54.000
Because we live in Canada, we always try to call into Canadian numbers.

04:54.060 --> 05:09.060
And if you go to your conferencing provider website, and there will be something called numbers for international users, international numbers, you will see that for each country, vendor provides one or couple fixed numbers.

05:09.060 --> 05:16.300
So it means if I'm in Canada, I just need one dialing number for all Canadian calls.

05:18.080 --> 05:21.640
Which is not bad, so it makes our conference even less.

05:22.300 --> 05:27.760
We can get even more luckier if we get something called personal meeting ID.

05:28.440 --> 05:35.500
What it does basically, it means that all meetings that I schedule, let's say, will have the same meeting ID associated with me.

05:35.500 --> 05:43.560
It's very convenient if you don't want people to re-open meeting hand-wide, or I have my details saved somewhere and just copy-paste them.

05:44.100 --> 05:50.740
Oh yeah, if you want to join a meeting, like, you do it every day basically, and you want something fast and easy.

05:51.080 --> 06:06.220
Or if I schedule, let's say, a recurrent session of meetings, maybe daily stand-ups, and I just put this, like, I schedule it as a series, then by default, my conferencing vendor will also assign one meeting ID to the whole series.

06:07.180 --> 06:12.920
So, let's see how a user can join a call, once you get the details from me.

06:13.620 --> 06:16.440
There are two general ways.

06:16.440 --> 06:20.680
The first one is using your laptop and you click on the link.

06:21.200 --> 06:23.060
What happens in that scenario?

06:23.240 --> 06:31.300
Basically, your laptop will make an API call to the server, and conference ID will be passed inside of that API call.

06:31.360 --> 06:34.880
Seamless user experience, you don't need to do anything.

06:35.360 --> 06:45.800
Or, if you, let's say, you want to call from your phone, if you're attending remotely, or people often do it from the car, you can call from your regular phone.

06:46.080 --> 06:56.460
And what you basically need to do in that case is just enter a number on your phone and play a sequence of signals.

06:56.520 --> 07:03.560
And those signals are, they're not called, basically, dual-tone multi-frequency signals.

07:03.560 --> 07:07.820
It's a special way you can dial in a number from your phone.

07:08.040 --> 07:14.760
And basically what you need to do, you need to enter a number and you need to play a sequence of certain signals.

07:15.280 --> 07:16.980
Like audio signals.

07:18.240 --> 07:21.620
So, now we know how a user can join a call.

07:23.320 --> 07:28.180
We set the following goals for our project.

07:28.180 --> 07:50.120
So, we were thinking, can we build a solution that will take a meeting ID, call into the meeting, listen to information said, write it to the file or to some sort of storage, have it transcribed for our future use, and we also wanted a solution that is relatively easy to build and cheap to run.

07:50.400 --> 07:55.760
Okay, at this moment, I'll pass it to Alex for technical side of this talk.

07:58.240 --> 08:00.300
Okay, thank you very much, Alina.

08:00.580 --> 08:01.760
Hi, everyone.

08:01.960 --> 08:08.320
So, as Alina mentioned, when she came up with this idea, she already had certain AWS technology in mind.

08:08.320 --> 08:14.480
So, given that I already had some prior experience using it, that became our platform of choice.

08:14.620 --> 08:22.740
As you might know, AWS has a huge number of different services to offer, so let's take a look at those few that were important for our project.

08:23.540 --> 08:25.900
First of all, it's Amazon Connect.

08:26.180 --> 08:34.680
Amazon Connect is a cloud-based contact center that is designed to provide some customer service purposes.

08:34.680 --> 08:37.680
However, we used it to make outbound calls.

08:37.680 --> 08:43.920
Also, Connect has some nice features that we'll discuss a bit later.

08:44.040 --> 08:53.600
Then we used Amazon Kinesis Video Streams for streaming our call to a stream so that we can retrieve the audio file at a later point.

08:53.760 --> 09:01.560
Next, we used Amazon Transcribe that Alina mentioned to get the audio file we obtained and have it transcribed into readable text.

09:01.920 --> 09:11.960
We also used AWS Lambda Service, by which you can execute any kind of function you need, so without the need of a dedicated server.

09:12.060 --> 09:13.380
So, we used that a lot.

09:13.380 --> 09:26.440
Other than that, we used Amazon Cognita for user authentication, we used Amazon Simple Storage Provider, Simple Storage Service, API Gateway to make our calls more secure, and we used DynamoDB.

09:27.400 --> 09:34.380
So, given the requirements that Alina has mentioned, let's take a look at the architectural diagram of the solution.

09:35.700 --> 09:46.260
Although the whole process can be fully automated, for the purposes of this talk, we split it into manually invocable steps so that it's easier to follow and understand.

09:46.700 --> 09:55.160
As I said, we first start by logging into the portal, into the solution, using AWS Cognita hosted UI.

09:55.700 --> 10:03.700
Once logged in, we get back the authentication token that we will be using from there on in every API call to other services.

10:04.800 --> 10:11.200
So, as Alina mentioned, we need to have, in order to join a meeting , we need to have the DTMF signal sequence.

10:11.280 --> 10:27.020
So, to generate that audio file that we will be playing, corresponding to the conference ID, I've written a Java program that I've uploaded as a Lambda function, so I'm calling that Lambda function, passing it a conference ID, and get the audio file generated.

10:27.140 --> 10:33.300
Once generated, it is stored in an S3 bucket, however, I need to pull it locally for the next step.

10:34.320 --> 10:39.000
One of the nice features of AWS Connect is the ability to play prompts.

10:39.480 --> 10:51.860
By design, it can be used, for example, to play some announcement, some advertisement to the customer, or to guide them through different menu options in the call, if it's a customer service call.

10:51.860 --> 10:56.560
However, we use this option to be able to play the audio file.

10:57.960 --> 11:08.600
However, Connect does not have the ability to upload, it doesn't have nice API, or it doesn't have good integration with other services, for example, with S3 buckets.

11:08.660 --> 11:16.840
So, to upload a file, an audio file to be played, you need to go to actually the page and upload the file in there.

11:16.840 --> 11:32.660
However, obviously that doesn't scale, because if you are talking, if you want to join multiple meetings at a time, you won't be able to go and upload file one by one, so what we need to do in that case, we just need to do one call to the AWS Connect,

11:32.660 --> 11:44.020
which is designed, we need to grab the token and the cookie from the packet, and having that, we can basically craft our own packets and upload as many audio files to play as we want.

11:44.700 --> 11:49.900
So, once the file is uploaded, we get back the GUID of the prompt to be played.

11:50.240 --> 11:52.500
We keep a note of it, and it will be used further.

11:52.500 --> 11:57.280
So, at this stage, at this step, we kind of have all the preparation done.

11:57.500 --> 12:00.200
And then we call, we can start the call.

12:00.700 --> 12:12.260
We started by invoking this lambda function, which creates, and we pass all the conference information to the phone number, the GUID of the prompt to play, and the conference ID.

12:12.960 --> 12:19.260
And what it does, it creates an entry in DynamoDB, and it actually starts the flow of the Connect.

12:19.340 --> 12:20.640
The Connect flow.

12:20.920 --> 12:28.120
So, this gray box here, this gray area, is actually what's happening inside the flow of the AWS Connect service.

12:28.260 --> 12:30.900
First of all, it starts the Kinesis streaming.

12:30.900 --> 12:36.400
So, all of the audio that will be heard on the call, it will be passed to the Kinesis stream.

12:36.440 --> 12:38.980
Then it executes two more lambda functions.

12:39.040 --> 12:44.340
One will look up the data of the GUID, the GUID to play, from the DynamoDB.

12:44.340 --> 12:51.640
And the other one will update our DynamoDB entry with the information about the stream where we are streaming to.

12:51.640 --> 12:54.040
So, it will be fragment number and stream name.

12:54.700 --> 12:57.900
Finally, we need to check whether the call has ended or not.

12:58.180 --> 13:02.100
Again, unfortunately, Connect does not provide a nice API to do that.

13:02.100 --> 13:14.360
So, the best thing we can do is just make a regular signed request to the service, and then just parse the HTML response to see if it contains the termination timestamp.

13:14.360 --> 13:16.080
If it does, we know the call has ended.

13:16.080 --> 13:17.720
Otherwise, we just need to wait.

13:18.800 --> 13:23.980
And then the last step would be to pass the extracted audio file from Kinesis.

13:24.320 --> 13:28.360
Oh, yeah, we need to extract the audio file from Kinesis and upload it to S3 bucket.

13:28.480 --> 13:33.680
And once we do that, we need to decode text using the transcribe service.

13:34.560 --> 13:38.520
So, now that we covered that, let's take a look at the real demo.

13:39.260 --> 13:46.960
So, in this demo, in order to simulate a typical meeting conversation, we are going to use the sensitivity training scene from the office.

13:47.920 --> 13:54.380
So, just imagine that we were lucky to find the conference number and conference ID to join the meeting.

13:54.380 --> 14:04.000
So, what we did, in fact, we just took a different laptop, we put, created the meeting there, and we are trying with our tool, we are trying to join the meeting.

14:04.000 --> 14:07.080
So, let's see what will happen then.

14:08.700 --> 14:15.300
So, as you can see, we authenticate first, and we enter the meeting information, the phone number and the conference ID.

14:15.400 --> 14:19.920
As you will see, the conference ID will be ended with two pound signs.

14:19.920 --> 14:28.680
One pound will indicate the last digit of the meeting ID, and the second pound will indicate that there is no pin number required.

14:28.900 --> 14:35.020
We click submit, and then we generate the EDTMF sequence for the conference ID.

14:35.020 --> 14:44.860
Also, I forgot to mention that on the right-hand side, you can see some logs that my server is producing, so you can kind of get a better idea of what's going on behind the scenes here.

14:45.880 --> 14:53.400
So, the file is generated, I can download it, I upload it, you can see it's uploaded successfully, so we are ready to proceed to making the call.

14:53.800 --> 15:03.660
We start the call, we send, as you can see on the right side, we are sending contact ID, and from your ID, and then all we need to do is to check the status of the call.

15:03.660 --> 15:06.520
So, this part would be a little bit fast-forwarded.

15:06.520 --> 15:09.200
Obviously, we recorded about two minutes worth of audio.

15:09.360 --> 15:15.240
We won't be waiting and looking at the screen, the same screen for two minutes, so it was a bit fast-forwarded.

15:15.640 --> 15:20.660
However, at some point, we were lucky to check it and to see that the call has finished.

15:21.120 --> 15:24.880
So, now we call the new Lambda function to extract the audio.

15:24.920 --> 15:39.220
As you can see on the right side, we are passing the fragment number and the stream name to my Lambda function, which is also a Java function, Java code, Java program that would pull the audio, extract the audio from Kinesis and save it to S3 bucket.

15:40.620 --> 15:44.900
This one I didn't fast-forward, so this took maybe like 30 seconds.

15:45.040 --> 15:49.040
So, now that it's done, we initiate the call transcription job.

15:49.680 --> 15:56.300
And this one has, luckily, nice API, so at any point in time, you can check whether the call has finished or not.

15:56.720 --> 16:03.340
And if it has, you can just download the data that is already transcribed, the text.

16:03.340 --> 16:05.280
Otherwise, you just need to wait more.

16:06.300 --> 16:10.460
So, again, this was the longest thing we had to wait for.

16:10.460 --> 16:13.440
Probably took us about seven minutes, I'd say.

16:14.680 --> 16:24.680
So, yeah, as you can see, still in progress, but soon we can just click fetch again and see that it's completed.

16:24.820 --> 16:27.600
So, we click download, and here you are.

16:28.420 --> 16:31.040
So, basically, this is the text from the meeting.

16:31.840 --> 16:36.920
So, as you can see here, the transcribed text, not sure if it's visible from far across.

16:36.920 --> 16:45.480
So, it starts by, well, first it welcomes you to the provider, then it asks you to enter your meeting ID, followed by pound sign.

16:45.600 --> 16:47.920
And then it says that you are in the meeting now.

16:48.380 --> 16:51.160
And it says that there is other participant in the meeting.

16:51.360 --> 16:58.680
After that, you can actually see the actual text of the sensitivity training that Michael was providing to his employees.

17:00.660 --> 17:10.400
So, as you've seen in this demo, the only parameters that we had to provide to the project was a phone number and a conference ID.

17:10.400 --> 17:24.360
While the rest of the steps, we are basically checking the current status of the flow, and if it's at the desired state, we just press the next button to continue the flow.

17:24.360 --> 17:26.360
So, basically, it's very easy to automate.

17:26.360 --> 17:31.280
As long as you have the conference ID and the phone number, it's easily automatable.

17:33.160 --> 17:35.080
So, how much did it cost us?

17:35.120 --> 17:42.360
Well, it's hard to say how much it cost us, because we didn't really pay anything for it, because we were still within the free tier of AWS.

17:42.660 --> 17:53.200
However, if you refer to the official webpage and check the prices of different services we used, the two most expensive ones would be AWS Connect and AWS Transcribe.

17:53.320 --> 17:55.480
So, you can see the prices on the slide.

17:55.480 --> 18:05.140
And if you want to put that into context, say you want to record five hours worth of audio in one day and have it transcribed into text, you are going to pay something about $15.

18:06.460 --> 18:09.940
Obviously, there are always improvement and tuning opportunities.

18:10.120 --> 18:18.160
So, with regards to this project, I can see that the following can be done to make it even more interesting or to develop it further.

18:18.280 --> 18:23.360
So, since we only were working on this as POC, we used one phone number.

18:23.400 --> 18:29.800
However, you can claim as many as you need in AWS Connect and then run your attacks in parallel.

18:30.280 --> 18:42.120
Also, it would be useful to keep more information in the database, for example, which conference ID were actual and real, which meetings you were able to join, maybe how many participants there were.

18:42.120 --> 18:53.620
Also, if at some point you identify that there was the same speaker present at the same time on the same conference ID, you may sometimes make an assumption that it was his own personal meeting ID.

18:54.020 --> 18:57.540
Finally, you can always add more services to the pipeline.

18:57.540 --> 19:06.000
For example, you can add AWS Comprehend to get more idea of what the discussion was about, what was the key topics discussed in the meeting.

19:06.120 --> 19:15.040
And, for example, you can pass the data to SageMaker, where you might have your own machine learning models deployed, where you can process the data as you wish.

19:15.200 --> 19:18.340
Now, I'm giving it back to Alina for some final remarks.

19:20.880 --> 19:22.200
Thanks, Alex.

19:22.320 --> 19:29.980
Okay, and, of course, we need to finish this talk with giving you some advices how to protect yourself from this type of reconnaissance.

19:30.440 --> 19:38.840
So, the most useful advice will be hire employees who speak with accent, so it's very difficult to transcribe their text.

19:40.200 --> 19:47.380
But, yeah, to be serious, just go to the settings of your conferencing provider and check what's available there.

19:47.380 --> 19:51.520
Um, obviously, require meeting password for your sensitive discussions.

19:51.640 --> 19:58.420
Um, there is a second point, which is, like, generate and require passwords for participants joined by phone will be a good one.

19:58.420 --> 20:11.900
Um, maybe generate, um, new meeting ID for special, like, in the series if you have a series between your VIP level, um, like, um, C-level discussions.

20:11.900 --> 20:21.280
So, try to generate new meeting ID for each of them and, yeah, identify guest participants in the meeting will be also a useful one.

20:21.460 --> 20:27.240
Yeah, so just go to the settings, play with it, and try to be aware of this type of issue.

20:27.480 --> 20:31.180
Okay, thanks, everyone, for coming, and you can find us on LinkedIn.

20:37.500 --> 20:41.880
I think we have one or two minutes for questions.

20:42.480 --> 20:42.900
No?

20:43.260 --> 20:44.380
No questions?

20:44.380 --> 20:45.100
Okay.

20:49.580 --> 20:50.100
Yeah.

20:50.120 --> 20:58.580
Yeah, yeah, those are for meeting providers, so basically every company that is using that provider, uh, to join their meeting, you would call that phone number.

20:58.580 --> 20:59.720
Just single provider.

21:01.220 --> 21:03.140
Uh, I always do.

21:03.460 --> 21:04.300
Sorry?

21:07.990 --> 21:21.250
Actually, that's what we wanted to skip in this presentation for legal purposes, let's say, but if you Google name, like, name of the company you want and add those numbers, you will be able to find some in the Google.

21:21.250 --> 21:41.350
Like, I did a couple tests, like, like if you put the name of a bank or a big company, you will be able, because people always give them, let's say, um, there is like a day for co-ops, like, for students, or maybe there is like a wellness day going on between different companies,

21:41.350 --> 21:46.550
so you can find them, we just didn't want to include because they were very specific to some companies.

21:49.010 --> 21:50.190
Thanks, everyone.

21:51.730 --> 21:52.290
Thank you.

