start	end	text
0	7020	Hello everyone. Thanks for coming. My name is Alina and I'm an Identity and Access
7020	12460	Management Consultant and I'm speaking today with Alex. He's a Staff Security
12460	17660	Intelligence Engineer at Lookout. Okay. We would like to start our talk with a small
17660	23360	disclaimer. This talk is not based on any particular vulnerability for any specific
23360	29060	vendor. This talk only presents a general approach to use automation with a known
29060	38280	vector of reconnaissance. Okay. Let's begin. Remote offices are becoming more and more
38280	43580	popular. People attending meetings from home, from other buildings, or even other
43580	52880	countries. So, in order to accommodate this, maybe I should take the book. Yeah. Okay.
52880	63120	Let's try like this. Okay. Okay. Let's try like this. Oh, I don't see it. Okay.
63140	71620	Okay. So, in order to accommodate our modern life and remote offices, almost every
71620	79040	meeting invite now has a conference line details in it. And, which means that every
79040	83940	aspect of a company life is discussed over the phone. You have vendor evaluation
83940	90600	meetings, interviews happening over the phone, and even C-level presenting some
90600	94760	financial reports. However, the larger the audience, the less we're concerned
94760	101340	about our attendees. For example, you have a company-wide town hall, or you have a
101340	106540	session training, which can easily be joined by 100 or 200 attendees. Obviously,
106540	111820	no one is going to check that every call-in number is a legit user and has enough
115220	119980	permissions to listen to the information discussed. Okay. This was already
119980	124040	noticed as a nice way to obtain some information. And there was some research
124040	130580	done in this area. One of them has been done by Martin, who is actually speaking
130580	136700	today at Recon Village at 4.50. But there are not a lot of researchers what you can do
136700	144240	with information you would like to find. No? It's very quiet? Okay, I'll try that one.
144240	152400	Okay. So, how did I come up with this idea? I used to work as a business analyst, and
152400	156720	one of my duties was to schedule meetings. Meetings with my clients, meetings with
156720	161820	vendors, meetings with stakeholders. Tons of meetings. And everyone was asking,
161820	167460	Alina, can you add a conference line, please? So, since I was constantly sharing
168020	174060	meeting IDs and opening the lines, at one point I had a very clear idea that meeting
174060	181420	ID is just a random sequence of nine digits, sometimes ten or eleven. But it's a
181420	189600	combination of random digits. So, later in the year I heard that AWS released a speech
189600	194220	recognition framework called Transcriber, and it's available for everyone to use.
194220	199340	It's one of AWS services. And also there was some viral video about Google Assistant
199340	204620	making calls on your behalf, calling to different numbers and trying to act as a normal
204620	212300	user. So, one year ago, at DEF CON 26, this idea came to my mind. If you have tools for
212300	219580	automated dialing in, and we have tools for speech recognition, and meeting ID is just a
219580	225200	random sequence of digits, can we get something cool out of it? Can we build a solution
225200	230840	that will act as a user and call to different numbers? So, that's what we are going to try to
230840	241320	see today. So, let's see how the conference line works. For example, I have a company X, and I
241320	247100	need a conferencing solution for my company. So, I go to a vendor and I purchase licenses.
247480	254140	The vendor assigns a fixed phone line to my company. And now my employees can add
254140	260560	conference details to their meetings. For example, I have a meeting at 10 a.m., and I add
260560	266240	conference details to it. And then I schedule another meeting at 11 a.m., and I add details
266240	272460	as well. As we can see, the dialing number is the same for both meetings. And meeting ID is
272460	277780	just random digits associated with this dialing number. So, not bad. In order for you to
277780	284980	join, you need to find out the dialing number, meeting ID, and optional participant ID. But
284980	290400	let's take it a step further and look at something called international numbers. Because we
290400	295440	live in Canada, we always try to call into Canadian numbers. And if you go to your
295440	300920	conferencing provider website, and there will be something called numbers for international
300920	306920	users, international numbers, you will see that for each country, vendor provides one or
306920	315060	couple fixed numbers. So it means if I'm in Canada, I just need one dialing number for all
315060	323420	Canadian calls. Which is not bad, so it makes our conference even less. We can get even more
323420	330860	luckier if we get something called personal meeting ID. What it does basically, it means that
330860	335500	all meetings that I schedule, let's say, will have the same meeting ID associated with me.
335500	340980	It's very convenient if you don't want people to re-open meeting hand-wide, or I have my
340980	347040	details saved somewhere and just copy-paste them. Oh yeah, if you want to join a meeting,
347040	352160	like, you do it every day basically, and you want something fast and easy. Or if I schedule,
352160	358600	let's say, a recurrent session of meetings, maybe daily stand-ups, and I just put this, like,
358600	364620	I schedule it as a series, then by default, my conferencing vendor will also assign one meeting
364620	372240	ID to the whole series. So, let's see how a user can join a call, once you get the details from
372240	380680	me. There are two general ways. The first one is using your laptop and you click on the link.
381200	387620	What happens in that scenario? Basically, your laptop will make an API call to the server, and
387620	393860	conference ID will be passed inside of that API call. Seamless user experience, you don't need
393860	400020	to do anything. Or, if you, let's say, you want to call from your phone, if you're attending
400020	406760	remotely, or people often do it from the car, you can call from your regular phone. And what you
406760	415480	basically need to do in that case is just enter a number on your phone and play a sequence of
415480	423560	signals. And those signals are, they're not called, basically, dual-tone multi-frequency signals.
423560	429620	It's a special way you can dial in a number from your phone. And basically what you need to do,
429620	436200	you need to enter a number and you need to play a sequence of certain signals. Like audio
436200	448180	signals. So, now we know how a user can join a call. We set the following goals for our project.
448180	454700	So, we were thinking, can we build a solution that will take a meeting ID, call into the
454700	461400	meeting, listen to information said, write it to the file or to some sort of storage, have it
461400	468800	transcribed for our future use, and we also wanted a solution that is relatively easy to build and
468800	475760	cheap to run. Okay, at this moment, I'll pass it to Alex for technical side of this talk.
478240	484960	Okay, thank you very much, Alina. Hi, everyone. So, as Alina mentioned, when she came up with
484960	489880	this idea, she already had certain AWS technology in mind. So, given that I already had some
489880	496640	prior experience using it, that became our platform of choice. As you might know, AWS has a
496640	501300	huge number of different services to offer, so let's take a look at those few that were
501300	508160	important for our project. First of all, it's Amazon Connect. Amazon Connect is a cloud-based
508180	515760	contact center that is designed to provide some customer service purposes. However, we used it
515760	524320	to make outbound calls. Also, Connect has some nice features that we'll discuss a bit later. Then
524320	531020	we used Amazon Kinesis Video Streams for streaming our call to a stream so that we can
531020	536020	retrieve the audio file at a later point. Next, we used Amazon Transcribe that Alina
536020	542100	mentioned to get the audio file we obtained and have it transcribed into readable text. We
542100	548800	also used AWS Lambda Service, by which you can execute any kind of function you need, so
548800	554380	without the need of a dedicated server. So, we used that a lot. Other than that, we used
554380	560200	Amazon Cognita for user authentication, we used Amazon Simple Storage Provider, Simple
560200	568900	Storage Service, API Gateway to make our calls more secure, and we used DynamoDB. So, given the
568900	573460	requirements that Alina has mentioned, let's take a look at the architectural diagram of the
573460	581160	solution. Although the whole process can be fully automated, for the purposes of this talk, we
581160	587340	split it into manually invocable steps so that it's easier to follow and understand. As I said,
587340	596140	we first start by logging into the portal, into the solution, using AWS Cognita hosted UI. Once
596140	601640	logged in, we get back the authentication token that we will be using from there on in every
601640	608400	API call to other services. So, as Alina mentioned, we need to have, in order to join a
608400	613060	meeting, we need to have the DTMF signal sequence. So, to generate that audio file that we
613060	618640	will be playing, corresponding to the conference ID, I've written a Java program that I've
618640	624300	uploaded as a Lambda function, so I'm calling that Lambda function, passing it a conference
624300	630400	ID, and get the audio file generated. Once generated, it is stored in an S3 bucket, however, I
630400	637400	need to pull it locally for the next step. One of the nice features of AWS Connect is the
637400	644040	ability to play prompts. By design, it can be used, for example, to play some announcement,
644040	649160	some advertisement to the customer, or to guide them through different menu options in the
649160	655460	call, if it's a customer service call. However, we use this option to be able to play the
655460	663480	audio file. However, Connect does not have the ability to upload, it doesn't have nice API, or
663480	669160	it doesn't have good integration with other services, for example, with S3 buckets. So, to
669160	675740	upload a file, an audio file to be played, you need to go to actually the page and upload the
675740	681100	file in there. However, obviously that doesn't scale, because if you are talking, if you want
681100	686740	to join multiple meetings at a time, you won't be able to go and upload file one by one, so
686740	693080	what we need to do in that case, we just need to do one call to the AWS Connect, which is
693080	698860	designed, we need to grab the token and the cookie from the packet, and having that, we can
698860	705300	basically craft our own packets and upload as many audio files to play as we want. So, once
705300	711240	the file is uploaded, we get back the GUID of the prompt to be played. We keep a note of it,
711240	716040	and it will be used further. So, at this stage, at this step, we kind of have all the
716040	722440	preparation done. And then we call, we can start the call. We started by invoking this lambda
722440	727420	function, which creates, and we pass all the conference information to the phone number,
727420	734320	the GUID of the prompt to play, and the conference ID. And what it does, it creates an
734320	741360	entry in DynamoDB, and it actually starts the flow of the Connect. The Connect flow. So,
741360	746900	this gray box here, this gray area, is actually what's happening inside the flow of the AWS
746900	752140	Connect service. First of all, it starts the Kinesis streaming. So, all of the audio that
752140	757520	will be heard on the call, it will be passed to the Kinesis stream. Then it executes two
757520	763420	more lambda functions. One will look up the data of the GUID, the GUID to play, from the
763420	770200	DynamoDB. And the other one will update our DynamoDB entry with the information about the
770200	775200	stream where we are streaming to. So, it will be fragment number and stream name. Finally,
775200	780120	we need to check whether the call has ended or not. Again, unfortunately, Connect does not
780120	785460	provide a nice API to do that. So, the best thing we can do is just make a regular signed
785460	792980	request to the service, and then just parse the HTML response to see if it contains the
792980	797080	termination timestamp. If it does, we know the call has ended. Otherwise, we just need to
797080	804640	wait. And then the last step would be to pass the extracted audio file from Kinesis. Oh,
804640	809440	yeah, we need to extract the audio file from Kinesis and upload it to S3 bucket. And once we
809440	816240	do that, we need to decode text using the transcribe service. So, now that we covered that,
816240	821920	let's take a look at the real demo. So, in this demo, in order to simulate a typical
821920	828500	meeting conversation, we are going to use the sensitivity training scene from the office. So,
828500	833920	just imagine that we were lucky to find the conference number and conference ID to join the
833920	839360	meeting. So, what we did, in fact, we just took a different laptop, we put, created the
839360	844600	meeting there, and we are trying with our tool, we are trying to join the meeting. So, let's
844600	851940	see what will happen then. So, as you can see, we authenticate first, and we enter the meeting
851940	857720	information, the phone number and the conference ID. As you will see, the conference ID will be
857720	864080	ended with two pound signs. One pound will indicate the last digit of the meeting ID, and
865180	869840	the second pound will indicate that there is no pin number required. We click submit, and
869840	876400	then we generate the EDTMF sequence for the conference ID. Also, I forgot to mention that on
876400	881740	the right-hand side, you can see some logs that my server is producing, so you can kind of
881740	887620	get a better idea of what's going on behind the scenes here. So, the file is generated, I
887620	891880	can download it, I upload it, you can see it's uploaded successfully, so we are ready to
891880	896620	proceed to making the call. We start the call, we send, as you can see on the right side, we
896620	903000	are sending contact ID, and from your ID, and then all we need to do is to check the status of
903000	907820	the call. So, this part would be a little bit fast-forwarded. Obviously, we recorded about two
907820	912380	minutes worth of audio. We won't be waiting and looking at the screen, the same screen for two
912380	918500	minutes, so it was a bit fast-forwarded. However, at some point, we were lucky to check it
918500	924100	and to see that the call has finished. So, now we call the new Lambda function to extract the
924100	928740	audio. As you can see on the right side, we are passing the fragment number and the stream
928740	934720	name to my Lambda function, which is also a Java function, Java code, Java program that would
934720	941540	pull the audio, extract the audio from Kinesis and save it to S3 bucket. This one I didn't
941540	947660	fast-forward, so this took maybe like 30 seconds. So, now that it's done, we initiate the
947660	954180	call transcription job. And this one has, luckily, nice API, so at any point in time, you can
954180	961140	check whether the call has finished or not. And if it has, you can just download the data that
961140	967600	is already transcribed, the text. Otherwise, you just need to wait more. So, again, this was
967600	975440	the longest thing we had to wait for. Probably took us about seven minutes, I'd say. So, yeah,
975440	983520	as you can see, still in progress, but soon we can just click fetch again and see that it's
983520	990460	completed. So, we click download, and here you are. So, basically, this is the text from the
990460	996180	meeting. So, as you can see here, the transcribed text, not sure if it's visible from far
996180	1002840	across. So, it starts by, well, first it welcomes you to the provider, then it asks you to
1002840	1007140	enter your meeting ID, followed by pound sign. And then it says that you are in the meeting
1007140	1012860	now. And it says that there is other participant in the meeting. After that, you can actually
1012860	1017880	see the actual text of the sensitivity training that Michael was providing to his
1017880	1025240	employees. So, as you've seen in this demo, the only parameters that we had to provide to
1025240	1032240	the project was a phone number and a conference ID. While the rest of the steps, we are
1032240	1041240	basically checking the current status of the flow, and if it's at the desired state, we
1041240	1046360	just press the next button to continue the flow. So, basically, it's very easy to automate.
1046360	1053500	As long as you have the conference ID and the phone number, it's easily automatable. So,
1053500	1058160	how much did it cost us? Well, it's hard to say how much it cost us, because we didn't
1058160	1063360	really pay anything for it, because we were still within the free tier of AWS. However, if
1063360	1068360	you refer to the official webpage and check the prices of different services we used, the
1068360	1074020	two most expensive ones would be AWS Connect and AWS Transcribe. So, you can see the
1074020	1078880	prices on the slide. And if you want to put that into context, say you want to record five
1078880	1083460	hours worth of audio in one day and have it transcribed into text, you are going to pay
1083460	1090660	something about $15. Obviously, there are always improvement and tuning opportunities. So,
1090660	1095020	with regards to this project, I can see that the following can be done to make it even more
1095020	1101800	interesting or to develop it further. So, since we only were working on this as POC, we used
1101800	1108220	one phone number. However, you can claim as many as you need in AWS Connect and then run
1108220	1114480	your attacks in parallel. Also, it would be useful to keep more information in the database,
1114480	1119820	for example, which conference ID were actual and real, which meetings you were able to
1119820	1124880	join, maybe how many participants there were. Also, if at some point you identify that there
1124880	1129800	was the same speaker present at the same time on the same conference ID, you may sometimes
1129800	1135820	make an assumption that it was his own personal meeting ID. Finally, you can always add
1135820	1141200	more services to the pipeline. For example, you can add AWS Comprehend to get more idea of
1141200	1146800	what the discussion was about, what was the key topics discussed in the meeting. And, for
1146800	1150760	example, you can pass the data to SageMaker, where you might have your own machine
1150760	1156240	learning models deployed, where you can process the data as you wish. Now, I'm giving it back
1156240	1158340	to Alina for some final remarks.
1160880	1165840	Thanks, Alex. Okay, and, of course, we need to finish this talk with giving you some
1165840	1172440	advices how to protect yourself from this type of reconnaissance. So, the most useful
1172440	1177700	advice will be hire employees who speak with accent, so it's very difficult to transcribe
1177700	1184180	their text. But, yeah, to be serious, just go to the settings of your conferencing
1184180	1189820	provider and check what's available there. Um, obviously, require meeting password for
1189820	1194400	your sensitive discussions. Um, there is a second point, which is, like, generate and
1194400	1200120	require passwords for participants joined by phone will be a good one. Um, maybe generate,
1200120	1207660	um, new meeting ID for special, like, in the series if you have a series between your VIP
1207660	1214020	level, um, like, um, C-level discussions. So, try to generate new meeting ID for
1214020	1220500	each of them and, yeah, identify guest participants in the meeting will be also a
1220500	1225940	useful one. Yeah, so just go to the settings, play with it, and try to be aware of this
1225940	1237980	type of issue. Okay, thanks, everyone, for coming, and you can find us on LinkedIn.
1239040	1250100	I think we have one or two minutes for questions. No? No questions? Okay. Yeah.
1250120	1253660	Yeah, yeah, those are for meeting providers, so basically every company that is using
1253660	1258960	that provider, uh, to join their meeting, you would call that phone number. Just single
1258960	1270770	provider. Uh, I always do. Sorry? Actually, that's what we wanted to skip in this
1270770	1276550	presentation for legal purposes, let's say, but if you Google name, like, name of the
1276550	1281250	company you want and add those numbers, you will be able to find some in the Google.
1281250	1287470	Like, I did a couple tests, like, like if you put the name of a bank or a big company,
1287470	1292970	you will be able, because people always give them, let's say, um, there is like a day
1292970	1299950	for co-ops, like, for students, or maybe there is like a wellness day going on between
1299950	1304430	different companies, so you can find them, we just didn't want to include because they
1304430	1310190	were very specific to some companies. Thanks, everyone.
1311730	1312290	Thank you.
