WEBVTT

00:00.000 --> 00:01.600
Good afternoon everyone.

00:01.600 --> 00:03.780
Welcome to our presentation.

00:03.780 --> 00:12.180
So what we're going to discuss is a new critical vulnerability that we have discovered and essentially it's a new critical crypto vulnerability.

00:12.180 --> 00:16.620
Where we found this is in Gotenna Pro device that is located right there.

00:16.680 --> 00:31.640
However this process is very unique to what we discovered and it can be more generalized and we advise other people as you go through this if you're designing your own RF systems or something like that, look and see if you have vulnerabilities similar like these.

00:31.640 --> 00:40.160
Our presentation is titled One Key, Two Key, I Just Stole Your Gotenna Key and Woody and I would also like to thank Clayton Smith for his assistance in this project.

00:45.760 --> 00:50.720
So now that we go into this, like first question is why does this matter?

00:50.720 --> 01:04.640
Why does often... when natural disasters like hurricanes and earthquakes happen, you have things that traditionally infrastructure completely goes down and first responders cannot rely on 5G or LTE.

01:04.640 --> 01:05.780
That is where radios come in.

01:05.780 --> 01:09.200
They create their own network device to device, no infrastructure required.

01:09.200 --> 01:16.000
So when these big disasters like Hurricane Katrina, Hurricane Helene happen, they use these radios to communicate.

01:16.020 --> 01:26.200
However, if an attacker can compromise the encryption, they can essentially modify the messages, spoof messages or shut down communications entirely.

01:26.400 --> 01:35.100
These radios, like the lives literally depend on them and radio security is the thin line between success and failure of these operations.

01:35.240 --> 01:43.020
So one of the other things that we want to make sure that we cover here because people always say, well, why would we have to worry about people attacking first responders?

01:43.680 --> 01:54.440
When you have a terrorist attack, when you have an event or anything that happens that could have first responders be intentionally targeted , this happens with arsonists, terrorism events, things like that.

01:54.440 --> 02:01.720
Now by being able to inject into this, you have the ability to affect not only medical first responders, law enforcement, military and other organizations.

02:01.860 --> 02:05.440
So these are the things that we want you to understand that this isn't an obscurity.

02:05.440 --> 02:15.040
These are things that have been done in the past, different kinds of attacks and we want to make sure that whatever equipment is out there, everyone is testing it and finding ways to make sure they can make it as secure as possible.

02:15.040 --> 02:16.440
And that's why we've done this.

02:16.460 --> 02:18.520
This talk and to be able to show this.

02:20.520 --> 02:23.820
Now in this specific case, we'll be talking about mobile mesh networks.

02:23.820 --> 02:26.860
So these are different than your traditional push to talk radios.

02:27.060 --> 02:36.880
So what these are, think of them as a web of devices that all talk to each other and every node is a relay and they pass messages until they get to final destination.

02:36.920 --> 02:42.240
Now that you're here at DEFCON, you've seen many mesh testing devices, that is another form of mesh network.

02:42.380 --> 02:51.200
Gotenna in this specific case uses Aspen Grove Mesh, which is their own proprietary mesh that combines data and control packets to make it more efficient.

02:51.200 --> 02:53.100
Their protocol is definitely efficient.

02:53.760 --> 02:59.840
And this is also one of the protocols that we mentioned, first responders and law enforcement use.

03:00.760 --> 03:10.720
So our team has been working, we were assessing Gotenna products for a number of years and we have found a total of 29 vulnerabilities.

03:10.720 --> 03:18.300
So 6 in V1 Gotenna, 4 in the mesh and then we have the Gotenna ATAC and the Gotenna Pro.

03:18.300 --> 03:25.940
What we're specifically talking here is one of the vulnerabilities that we have discussed with the vendor late last year.

03:25.940 --> 03:34.540
And this is a 9 .6 severity that compromises full integrity and availability and confidentiality with ease of access.

03:34.540 --> 03:37.900
Like this is a very simple exploit that we have discovered.

03:39.360 --> 03:47.000
So our mission is essentially to analyze RF signals, find exploitable vulnerabilities , teach these techniques to grow security talent .

03:47.000 --> 03:53.080
We do this with goals of making communication safer for critical operations and we do this to make your future safer.

03:53.080 --> 03:53.980
I'm Erwin.

03:53.980 --> 03:55.620
I'm a security researcher.

03:55.620 --> 04:04.260
I analyze various protocols, finding vulnerabilities in them, whether that is TCP IP based or RF based.

04:04.260 --> 04:14.000
I have a background in designing antennas and software defined radios and essentially sending exploits against either of those two mediums.

04:14.000 --> 04:18.100
I'm also a student at Virginia Commonwealth University where I'm pursuing my Ph.D.

04:18.160 --> 04:20.480
and essentially just furthering this.

04:21.040 --> 04:23.760
My name is Woody.

04:23.760 --> 04:44.420
I own Weathered Security and I have a 20 years active duty background in special operations before I got into the things that I do now with software defined radios, the RF spectrum and teaching people how to understand what their digital persona looks like and how it can be used for or against them in ways to protect against attacks and tracking.

04:45.180 --> 04:48.700
And lastly we're also staff at RF Village.

04:49.540 --> 04:51.240
This will be a challenge.

04:51.240 --> 04:54.700
So if you want points in the village, we're releasing the software.

04:54.700 --> 04:55.720
Come get some points.

04:56.000 --> 04:56.480
100%.

04:56.480 --> 05:02.660
So now we'll talk about the timeline of overall Gotenna vulnerabilities that we have discovered regarding Gotenna Pro.

05:02.660 --> 05:09.220
So in February 2024 we made initial contact with a vendor to discuss the initial vulnerabilities that we have discovered.

05:09.220 --> 05:15.340
We worked with them and CISA together in order for them to address these vulnerabilities.

05:15.380 --> 05:19.020
We presented them last year in August 2024 at DEF CON.

05:19.100 --> 05:40.300
After DEF CON I started sort of checking, tried to use the phones essentially because the way Gotenna Pro radios work so you have a radio like this that is connected to a phone and together essentially they allow you to send text messages between two people or multiple people who are using this.

05:40.300 --> 05:42.120
Again like this can scale.

05:42.240 --> 05:51.080
So after we've developed our initial proof of concept that compromises pretty much all kinds of vulnerabilities, I noticed that okay, they don't work anymore.

05:51.300 --> 05:52.680
This is really odd.

05:53.000 --> 05:54.580
And like why don't they work?

05:54.580 --> 06:01.400
I pull up the software, like using the software to find radio and I can see the messages in my computer but they don't work together.

06:01.700 --> 06:07.240
So I went in and okay, I did factory research on everything and then okay, they work now.

06:07.360 --> 06:13.600
So then I re-ran all the attacks that we presented last year and then I observed, like it happened again.

06:13.600 --> 06:29.440
Then I re-set it again and then I had root on one of the phones to be able to observe like the key changes and things like that and I observed when I sent one specific message that we'll be discussing shortly, it essentially like just changed the keys remotely.

06:29.960 --> 06:34.760
It was a key remote key update, unauthenticated.

06:34.760 --> 06:37.020
And this is an existing encrypted medium.

06:37.020 --> 06:43.220
They're using public key cryptography, ECDH, all of the things but it changed.

06:43.600 --> 06:45.700
So that's what this presentation is about.

06:45.700 --> 06:53.220
So we reported this right after Defcon and then we worked with the vendor and then in September, October there were patches released and everything like that.

06:53.220 --> 06:59.760
And now in 2025 we're specifically talking about this one vulnerability and discussing all the details from it.

06:59.760 --> 07:02.840
And then of course we'll be releasing the software called the GOAT.

07:03.120 --> 07:10.920
And this, after our talk last year, working with the vendor, they have released a patch that should resolve this.

07:10.920 --> 07:22.000
We have not done any further research to see how that works but per the standard that's out there, this should be patched so this shouldn't be a vulnerability that you have to worry about as long as you're using the most updated application of this program.

07:23.600 --> 07:27.760
So now, like, I mean, the biggest part is really the implementation.

07:27.760 --> 07:32.160
It's always the implementation, not the cryptography and that's what we're looking for here.

07:32.480 --> 07:39.980
So this is the wording that we've all agreed upon is essentially it allows unauthenticated attackers to remotely update public keys.

07:39.980 --> 07:41.160
But this doesn't really tell you much.

07:41.160 --> 07:42.500
Just like every other CVE.

07:42.500 --> 07:45.300
It basically tells you some general stuff and like, oh, you have a critical?

07:45.300 --> 07:46.440
Like, okay, so what?

07:46.540 --> 07:55.140
So what the really detailed impact of this is, is that this allows full man in the middle within like completely undetected.

07:55.600 --> 08:05.080
An attacker can go in a group of people using Gotenna pros and essentially stop any message, change any message, or just observe.

08:05.380 --> 08:09.480
And all of this is done without any knowledge to the user.

08:09.540 --> 08:13.580
Like, somebody going in forensically cannot see that anything changed.

08:13.580 --> 08:15.040
Nothing changed.

08:15.520 --> 08:20.480
So we're going to kind of describe this in like almost like an academic manner.

08:20.480 --> 08:23.920
So we're going to use fictional characters, Alice, Bob and Mallory.

08:23.920 --> 08:30.740
Invented by Ron Rivest, Adi Shamir and Leonard Edelman in their 1978 paper.

08:30.740 --> 08:36.060
And Alice and Bob are going to be our Gotenna pro operators and those are the call signs that we're going to be using.

08:36.060 --> 08:37.440
And then Mallory is the attacker.

08:37.440 --> 08:40.020
That's what we're representing with this computer right here.

08:40.180 --> 08:53.760
So for those not familiar with man in the middle attack, it's essentially a person who is listening in between and is able to essentially take information from both sides and then either decide to pass them through or not.

08:53.760 --> 09:00.700
So the specific vulnerability we identified was the implementation of their elliptic curve Dippy Hellman.

09:00.920 --> 09:03.160
So their specific implementation of it.

09:03.220 --> 09:06.620
And again, Alice and Bob are the operators and then Mallory is the attacker.

09:07.160 --> 09:15.260
So we want to make this general so that you can take this and assess your other assessment whether you're a designer or a developer .

09:15.380 --> 09:19.300
But we still need to discuss some things so that everything makes sense from here.

09:19.300 --> 09:21.980
So we have Gotenna identifiers , think of that as a MAC address.

09:21.980 --> 09:27.020
It's uniquely identifying the pair, the phone and the radio.

09:27.320 --> 09:36.840
Then of course you have the public key, private key that's stored privately on the phone and then you have the shared key that's being derived by ECDH and then of course they're using ASGCM.

09:36.840 --> 09:39.800
And all of this is going to be stored in Gotenna key encryption on XML.

09:39.800 --> 09:44.040
This is a local file on the phone that will be just describing how stuff changed.

09:44.880 --> 09:48.120
So here we have point-to-point peer-to-peer encryption.

09:48.120 --> 09:49.840
So this is what we looked at last year.

09:49.840 --> 10:03.120
So essentially if Alice wants to send a message to Bob, she takes her private key, Bob's public key, they run that through ECDH, they generate the shared key and that shared key along with the GID and HMAC SHA256 is going to generate the encryption key.

10:03.120 --> 10:05.760
And that is what they're using to encrypt things.

10:05.760 --> 10:09.680
So what we discovered last year, we implemented this algorithm in full.

10:09.680 --> 10:18.240
We made an assumption if somebody compromises an Android phone, which is absolutely possible, and they will be able to pull these keys from there.

10:18.240 --> 10:26.680
We found a vulnerability in being able to decrypt the Gotenna pro XML file because it was not rotating the IV so we broke that.

10:26.680 --> 10:31.740
And then that has a significant impact but not as much of this impact that we found here.

10:31.900 --> 10:38.740
Essentially we were able to change these public keys and of course that's the associated public key without any authentication.

10:39.120 --> 10:45.760
So to demonstrate this, first we go for example on our computer and we generate public and private key pairs.

10:45.760 --> 10:47.720
So this is just regular cryptography.

10:47.720 --> 10:51.140
And then Alice and Bob do this automatically on their Gotenna pro devices.

10:51.400 --> 10:55.080
So Mallory first starts observing the radio spectrum.

10:55.080 --> 10:56.540
So this is GQRX.

10:56.580 --> 11:03.240
Essentially from this point, we're looking, we're finding the signal, whether it's frequency hopping or doing anything like that, we're locating the signal.

11:03.580 --> 11:11.280
Once that is done, the software that they released last year allows people to essentially look at the metadata and be able to decode it.

11:11.340 --> 11:14.960
So for example, what that metadata looks like is this right here.

11:14.960 --> 11:19.780
So this gives you the information on the call signs and the sender GID and all of this information.

11:19.780 --> 11:21.720
It gives us that it's encrypted.

11:21.720 --> 11:23.540
Just like many people say mesh task is encrypted.

11:23.540 --> 11:24.380
Yes, this is encrypted.

11:24.380 --> 11:26.220
But does this tell us a lot of information?

11:26.220 --> 11:27.440
It tells us who is talking.

11:27.440 --> 11:29.240
It tells us like who they are.

11:29.380 --> 11:31.680
Like call signs tell us a lot of information.

11:32.580 --> 11:34.840
So now we're looking at Alice's key database.

11:34.840 --> 11:38.980
So they have already been communicating, Alice and Bob, and this only happens the first time.

11:38.980 --> 11:42.480
And this can be done in a secure environment where nobody can intercept you.

11:42.480 --> 11:49.160
So here, like let's look at just last couple hex bytes right here just to see if anything changed.

11:49.160 --> 11:51.080
So now we run this key injection.

11:51.080 --> 11:52.160
This is what we observe.

11:52.160 --> 11:53.360
So public key request.

11:53.360 --> 11:55.480
We request a public key.

11:55.620 --> 11:59.520
We spoof the ID in the metadata that's assigned to Bob .

11:59.520 --> 12:00.420
So think of that as a magnet.

12:00.420 --> 12:04.280
And we just change the number because this is completely unencrypted and we can see it.

12:04.820 --> 12:07.120
And then we put the public key that we own.

12:07.280 --> 12:10.740
And now this will update in the other device.

12:10.740 --> 12:13.280
Like this is not supposed to happen, but it did.

12:13.360 --> 12:17.320
And this was also never a test case for us, which is why we're sharing this.

12:17.360 --> 12:23.880
And now after that, like we see okay, the key absolutely changed after sending this one unauthenticated message.

12:25.020 --> 12:33.920
So in some different types of implementations of this, you might not be able to catch the public key in the back because you need two sides, public and private key.

12:33.940 --> 12:38.480
So we just flip the GID on there, like do something that Alice would not know.

12:38.480 --> 12:41.600
And then we send a public key request and we get the appropriate response.

12:41.940 --> 12:43.840
So now we have the full key exchange done.

12:43.840 --> 12:49.000
We have done the key replacement , we have the identity capture, encryption bypass and Bob is excluded.

12:49.000 --> 12:54.940
Now Bob can't send it like anything or see anything because his keys are changed in the other device.

12:55.600 --> 12:57.400
So what do we have as an attacker?

12:57.400 --> 13:04.320
So first line and last line are keys that we generated and now those are associated both public and private with Bob.

13:04.320 --> 13:06.160
Bob's ID, GID.

13:06.160 --> 13:12.820
And then of course we have the Alice's key that we have just requested and obtained.

13:13.240 --> 13:20.780
And at this point, we have full message interception like using this information, going through the algorithm before, we can do full message interception.

13:20.780 --> 13:22.940
So now these are pictures directly from the phone.

13:22.980 --> 13:31.500
So now that we look here, Bob sent hi from Bob and then Alice said okay, test from Alice from Bob, test again from Alice, but then these were never received by Bob.

13:31.500 --> 13:33.340
And here's the best part.

13:33.340 --> 13:35.820
There's a check mark there showing that it was delivered.

13:36.100 --> 13:37.880
And the phones were right next to each other.

13:37.880 --> 13:39.180
It was not delivered.

13:39.200 --> 13:40.960
But not delivered to Bob.

13:40.960 --> 13:42.080
Guess who it was delivered to?

13:42.640 --> 13:43.520
Us.

13:43.560 --> 13:44.520
Look at that.

13:44.520 --> 13:49.680
We have full decryption of this, remotely updated without any authentication.

13:55.660 --> 14:00.420
So from this perspective, we definitely saw that Gotenki exchange was broken.

14:00.420 --> 14:04.140
We saw lack of authentication on public key request and public key response.

14:04.140 --> 14:10.580
So both request and response had the same form factor of like updating the keys remotely.

14:10.640 --> 14:13.760
And the impact radius of this is anybody in the RF range.

14:13.760 --> 14:19.640
And based on the documentation that they provided, like on their website for VHF, it's 55 miles.

14:20.780 --> 14:22.740
And users could not perceive tampering.

14:22.740 --> 14:33.960
We ran through the analysis whether or not this was the first ever non-academic analysis of real protocols that performed this key update.

14:33.960 --> 14:35.060
And there were a couple.

14:35.060 --> 14:40.880
In 2018, there was a Z-Wave downgrade and then in 2020, there was a Philips Hue light bulb.

14:40.880 --> 14:43.300
Both of those used default horror coded keys.

14:43.300 --> 14:47.240
So that's not really a fair example because this is all completely unique.

14:47.240 --> 14:49.880
So we're not compromising anything static.

14:50.160 --> 14:52.300
So those don't really count.

14:52.300 --> 15:01.380
So the only ones that we have seen is there are two Bluetooth attacks in 2019, 2020, where they were able to compromise this.

15:01.380 --> 15:04.240
But Bluetooth is only accessible over short distance.

15:04.240 --> 15:07.480
So 55 miles is a lot better from in person.

15:07.480 --> 15:12.460
So this is like possibly one of the first that are actually impactful.

15:12.640 --> 15:14.200
So now we go into the rest.

15:15.780 --> 15:18.200
So why is this important and how does it really matter?

15:18.200 --> 15:22.480
So as we look at this, one, this can be done from a distance , which means you have no idea.

15:22.480 --> 15:25.460
You can't have, you don't have visual confirmation that somebody's doing this.

15:25.460 --> 15:27.300
They may not even be within visual range.

15:27.300 --> 15:28.960
They can be doing this through walls .

15:28.960 --> 15:31.640
This can all be done without you having any idea that it's happening.

15:31.660 --> 15:33.420
And it doesn't require any interaction.

15:33.420 --> 15:37.140
You can have this in your pocket going through your normal thing and now this interaction happens.

15:37.140 --> 15:44.400
I literally send a key and it takes the key you had, rewrites that new key in there and now I have the ability to control.

15:45.000 --> 15:47.960
The other thing about this is we can now reverse it.

15:47.960 --> 16:09.040
So I could man in the middle, make you think that you're having a communication with somebody and I'm sending both sides of the conversation so that you have no idea what each side is actually saying and then I can send your original key back so when you guys get back together you're able to communicate again and you have no idea that for a segment of time I had actually taken over communication,

16:09.040 --> 16:13.800
controlled each side of it and then I give your keys back and it looks like everything's fine.

16:13.800 --> 16:19.080
So I can not only take over but then I can replace and make everything good to go again so you don't even see that it's happened.

16:19.120 --> 16:30.920
And because of this, when you start looking at the devices and you start digging into your information, if I reverse this and change it back, you have no way of being able to look at this and tell that this has happened.

16:35.200 --> 16:39.380
So, building this, what does it take to really be able to do it?

16:39.840 --> 16:42.140
Well, we need a way to capture it.

16:42.180 --> 16:46.640
To do that, GNU radio, the GRT block is what we put into here.

16:46.700 --> 16:50.100
We have one radio to receive and we have one radio to transmit.

16:50.320 --> 16:53.120
Now, the reason we do this is it makes life a lot easier.

16:53.260 --> 17:00.500
I'm able to receive, now I can control, I see what you send me, now I dictate who it goes to and what I say.

17:00.540 --> 17:05.160
Do I allow the message to go through or do I change the message and make it say what I want?

17:05.160 --> 17:07.000
And we're going to see how this can be impacted.

17:07.140 --> 17:08.060
And it's that simple.

17:08.060 --> 17:15.460
And by using two software defined radios, we're able to now create this entire gap in your communication and control what's being said and done.

17:18.380 --> 17:23.180
So, we're going to talk about a real exploitation that could happen.

17:23.660 --> 17:36.420
So, if you were to go through and say, hey, I need to meet somebody at a certain location and know where they're going to be, we now have the ability to change that.

17:36.840 --> 17:47.940
So, right now, Erwin is going to go through and he's actually going to set the phones up and he's going to go through the steps and show you how he actually changes the keys so that we're able to manipulate this.

17:48.140 --> 17:50.020
So, what do we mean by doing that?

17:50.040 --> 17:54.380
So, imagine that you're out and you tell somebody, hey, I need to know where you are.

17:54.480 --> 17:59.460
That person takes their GPS coordinates and they send them to you.

17:59.460 --> 18:08.300
But what if I caught those GPS coordinates where you're supposed to do a medevac, where you're supposed to pick up supplies, where you're supposed to have a humanitarian drop off.

18:08.580 --> 18:18.360
And now I change a few digits so that I send you somewhere compromised where I know I can have an ambush set up, where I know that I have the ability to steal whatever it is that you have.

18:18.360 --> 18:24.660
Or, I make sure it's in a location where you can't get resupply or you can't get reinforcements .

18:24.660 --> 18:26.100
That's what this allows.

18:26.100 --> 18:44.400
So, in this scenario that we're talking about, by going through the scenario, Erwin's going to set the phones up, he's going to actually catch these signals and then he's going to replace and send a geo coordinate, change it and then send the wrong geo coordinate to you.

18:44.540 --> 18:57.040
Any of you who've worked in search and rescue, military or anything that involves having to meet up at set times and set locations, this becomes a huge game changer and it can be extremely dangerous.

18:57.040 --> 18:58.680
And that's what we want to talk about.

18:59.080 --> 19:13.520
The point of this talk, as we're going through this again, isn't to hammer one manufacturer, it's for people that do any type of communications to understand how important it is to protect your infrastructure and make sure that it's safe.

19:13.680 --> 19:13.940
Right?

19:13.940 --> 19:17.360
False security is worse than no security, quite honestly.

19:17.360 --> 19:19.260
So that's what we really want to focus on.

19:19.260 --> 19:25.680
So, what we have here in this case, we're showing that, okay, we have no keys in our local database, so everything is fine.

19:25.680 --> 19:37.060
So, we're going to run to the Gotenna Pro RX, USRP, and we're going to start listening in on the, on all of this.

19:37.060 --> 19:40.220
So, this is using our original GQRX, so.

19:48.220 --> 19:48.980
Hello?

19:48.980 --> 19:50.320
Okay, sorry, we lost it.

19:50.320 --> 19:59.680
So, now, what we're going to do is just by listening with these radios, you're going to live see one message be sent from the phone.

19:59.680 --> 20:03.560
So, one thing that we want to let you know is that as we're doing this, we're having to use a hub.

20:03.560 --> 20:04.680
We had some issues setting this up.

20:04.680 --> 20:06.220
So, you may see the screen go black.

20:06.220 --> 20:08.500
That's just because we're having to run everything through hubs.

20:08.500 --> 20:13.220
But we actually have these phones that we're using, communicating, using these antennas.

20:13.220 --> 20:15.260
So, I want you to make note of watching on here.

20:15.260 --> 20:25.840
This light shows you whenever there's a communication between the two of these and it gives you a confirmation that something has happened or you've had a, an update or that you've actually communicated with something.

20:26.240 --> 20:28.160
So, we take it, we send a message.

20:29.300 --> 20:30.500
There we go.

20:31.800 --> 20:32.280
Yeah.

20:33.320 --> 20:34.080
Okay.

20:34.080 --> 20:35.480
So, we'll, we'll put it here.

20:35.920 --> 20:45.060
So, as you can see here, we, we fully captured their, um, their messages.

20:45.060 --> 20:47.480
So, we, we get the, the GID from Alice.

20:47.480 --> 20:49.140
So, we'll copy that right here.

20:49.460 --> 20:50.240
Save that.

20:50.240 --> 20:51.400
So, this is Alice.

20:51.460 --> 20:53.380
So, that was a live capture right there.

20:53.380 --> 20:54.740
Sent a message from one phone.

20:54.740 --> 20:56.440
We caught it with a software defined radio.

20:56.440 --> 20:58.500
And now, we have that information we need.

20:58.500 --> 20:59.240
We have a hash.

20:59.240 --> 21:00.040
We have a GID.

21:00.040 --> 21:07.800
We have the ability to now make our own key and then be able to send back and make that key their key.

21:11.320 --> 21:12.560
And now, we got Bob.

21:19.860 --> 21:23.960
So, we're doing this manually, but obviously, you understand that this could be scripted quite easily.

21:23.960 --> 21:28.600
So, as we go through this, we see the original keys they have because we want to keep those.

21:28.600 --> 21:32.300
Because we're going to replace those later so that you don't know that any of this ever actually happened.

21:32.400 --> 21:38.940
So, so, to make this more challenging, so, when they do the first communication right here, they would exchange the keys.

21:38.940 --> 21:40.280
And our script will pick that up.

21:40.280 --> 21:43.660
We're going to stop the script to make sure that this happens later on.

21:43.660 --> 21:46.360
Because if you try to reproduce it, you'll be like, okay, this was the first setup.

21:46.360 --> 21:53.000
So, we're going to send messages between them and ensure that the key change happens and that we don't capture it so that we can resend the messages.

22:06.980 --> 22:14.340
So, a couple of the steps as we're going through this and you start thinking about, hey, how do you find these kinds of vulnerabilities and how do you get in this?

22:14.340 --> 22:23.040
One of the things that I want you to think about is as you are looking or testing protocols to figure things out and they're encrypted, a lot of people are like, well, there's nothing I can do with this.

22:23.140 --> 22:36.520
Some of the simple steps to be able to start figuring this out once you can demodulate and at least see there's something there, even if it's encrypted, is I can send 20 of the exact same character and then I can look at the bits and if I get 20 of the same character in a row and then I do it again,

22:36.520 --> 22:37.640
I get the same ones.

22:37.640 --> 22:42.840
While they may be encrypting, I now know that, okay, that is where that segment of the message is.

22:42.840 --> 22:46.160
Then I can change the name, send the same thing, multiple bits there.

22:46.160 --> 22:47.960
Now I can say, okay, that's where the name is.

22:47.960 --> 22:55.220
So these are some of the small steps that we do over and over to start breaking down protocols that aren't documented or that we don't know.

22:55.420 --> 23:00.420
Yeah, so, so, so in this specific case here, so we had them exchange public keys.

23:00.420 --> 23:02.420
So they're already set up securely.

23:02.620 --> 23:12.240
So what we're going to do here is we're going to send a message , so this is using the transmit side and we're listening here and we're going to ask the, the, the first of the GIDs for their public keys.

23:12.240 --> 23:13.920
So let's see what happens here.

23:14.180 --> 23:16.380
And then let's look at these flashing.

23:16.400 --> 23:23.240
I'm not sure which one of these is going to flash, but we have to make sure they do because we have to make sure that the counters are up high.

23:23.240 --> 23:25.120
So we may need to do this a couple of times.

23:25.480 --> 23:26.640
Did that one flash?

23:26.800 --> 23:30.240
Oh, actually, yeah, we, we, we got the public key right here so that we can see.

23:30.540 --> 23:34.760
So it retransmitted that and now we're going to do the same thing for the other GID.

23:35.200 --> 23:39.180
So we're going to fire it off here, increment our counter.

23:42.440 --> 23:50.840
So the counter is important because we have to make sure that as we do this, we have to have a count higher than the last message that was sent.

23:50.840 --> 23:53.280
So that is one of the things that's built in this protocol that's good.

23:53.280 --> 23:57.440
If you try to replay a message that it's already seen that count for, it won't accept it.

23:57.440 --> 24:03.280
But all we have to do is have a higher number each time we send something and now we can make it believe that that's a new message.

24:03.280 --> 24:03.760
Exactly.

24:03.760 --> 24:06.180
So, so here we have, we have captured all these.

24:06.180 --> 24:10.880
So, so I can do control C to kind of look at the list of the keys.

24:10.880 --> 24:17.380
So if we zoom in into here, we can see that we have public keys associated with these.

24:17.380 --> 24:23.980
So now we're going into the goat directory and we're going to update these GIDs to make sure that they are ready for poisoning.

24:27.540 --> 24:33.740
So our first target here is going to be the, the first phone.

24:33.740 --> 24:35.560
So we're going to put Alice there.

24:36.340 --> 24:43.160
And the second one is going to be Bob right here.

24:43.160 --> 24:45.200
So we're going to update that one there.

24:47.140 --> 24:48.900
So now we have those saved.

24:48.900 --> 24:52.000
So those, those are going to be ready for our script when we execute that.

24:52.000 --> 24:59.240
And then we're also going to run through a key gen to generate our, our keys, just like what we showed in the slides for 01 and 02.

24:59.240 --> 25:02.620
And now we're going to go through and check out the list of keys.

25:02.620 --> 25:07.380
So now we have the public and private keys that we're trying to poison both of the sides of the communication.

25:07.700 --> 25:11.480
And we have these public keys so that we can restore the communication.

25:11.480 --> 25:13.800
Because in this case, we actually want to restore it.

25:14.640 --> 25:17.820
So from this point, we're going to go into our scenario.

25:17.820 --> 25:20.480
So we're going to have Bob send a message.

25:20.480 --> 25:21.780
So Bob right here.

25:21.780 --> 25:24.640
So we have Alice on the phone.

25:25.540 --> 25:27.620
So it's talking to Bob.

25:28.540 --> 25:31.160
So this is Bob right here.

25:31.420 --> 25:45.120
And Bob is going to send a private message to Alice saying, Alice need your GPS coordinates.

25:46.500 --> 25:50.920
And then that flashed and then we can see here that Bob sent that.

25:51.020 --> 25:55.320
So now at this point, Alice will of course try to send these coordinates right now.

25:55.320 --> 25:59.440
But while she does that, before she does that, we're, we're going to intercept the communication.

25:59.440 --> 26:01.380
So we're going to go, go directory.

26:01.540 --> 26:11.860
We're going to go, go replace key and we're going to go with poison target 1, target 2 and we're going to give it a count of 8.

26:12.820 --> 26:15.980
So here it tells us to stop the thread.

26:17.380 --> 26:19.500
Which it is stopped .

26:20.440 --> 26:22.360
Now we're going to restart it.

26:24.060 --> 26:26.700
Actually, we're in the wrong side.

26:48.530 --> 26:50.290
So here we're listening again.

26:50.870 --> 26:53.970
This is to make sure that we fully capture the signal.

26:54.670 --> 26:56.810
So we have restarted it and now we're going to send it.

26:56.810 --> 27:00.070
Make sure that it gets visible.

27:00.310 --> 27:01.450
No, no flash.

27:01.450 --> 27:01.730
Okay.

27:01.730 --> 27:03.830
So we're going to run it with a different counter.

27:23.980 --> 27:24.780
Okay.

27:26.860 --> 27:27.440
Okay.

27:27.440 --> 27:28.720
We have a flash.

27:29.140 --> 27:31.140
So now we stop it again.

27:33.780 --> 27:35.960
And then we restart it.

27:37.520 --> 27:49.030
And then, so now this one is done, but just because we're, we're doing a full demo here for you, we're going to poison target 1 as well.

27:49.030 --> 27:51.210
So we're going to do both, both sides of the communication.

27:51.810 --> 27:53.670
So we're going to stop this here.

28:04.000 --> 28:04.580
Okay.

28:04.580 --> 28:06.520
We're listening back again.

28:07.080 --> 28:10.780
Our next thread has been restarted to watch.

28:11.260 --> 28:11.360
Okay.

28:11.360 --> 28:13.160
They flashed

28:16.540 --> 28:16.940
.

28:17.420 --> 28:21.100
And now we have completed the poisoning of both of the sides.

28:21.560 --> 28:28.100
So now as we start communicating with these phones and these actual devices, you're going to see they no longer communicate with each other.

28:28.100 --> 28:31.720
They communicate with us and we dictate what will go to each device.

28:31.720 --> 28:36.580
So, so here we got Alice talking to Bob and we're going to paste these coordinates.

28:36.580 --> 28:38.380
These are the coordinates that we want to see.

28:38.600 --> 28:39.820
So now we fired this off.

28:39.820 --> 28:45.100
We get check mark that it was seen and we can decrypt it fully here.

28:45.100 --> 28:50.980
Now let's plug in Bob here just to show what Bob saw.

28:52.160 --> 28:54.220
And then Bob never saw anything.

28:54.320 --> 28:57.900
And this shows it's delivered and we have here the encrypted part.

28:57.900 --> 29:02.640
So now we're going to send the message by encrypting it.

29:02.640 --> 29:05.640
So we have here sending as Alice.

29:05.640 --> 29:07.480
So we're going to go here sending as Alice.

29:07.480 --> 29:08.860
We have the counter.

29:08.960 --> 29:11.820
We're going to do counter 16.

29:12.940 --> 29:14.800
Make sure we send this.

29:15.300 --> 29:17.280
And we're still listening here.

29:17.960 --> 29:20.580
Going to put this up.

29:24.420 --> 29:26.420
And then we, we have sent it.

29:26.420 --> 29:29.820
Now this encoder here, because like we have that part.

29:30.080 --> 29:40.640
And if we look at what we can see here in this phone, we can see the exact coordinate that we have sent here.

29:40.640 --> 29:47.560
Because as you can see here in this file, we sent 122 and the original was then 121.

29:47.560 --> 29:49.840
So we have sent somebody to a wrong location.

29:49.840 --> 29:50.180
Yeah.

29:50.180 --> 29:55.020
So we caught the middle and we completely changed the GPS coordinates that the end user received .

29:55.020 --> 30:01.920
That they're using for whatever they need to pick someone up, find out where somebody is, send a search and rescue or anything else.

30:02.220 --> 30:03.380
Changing those.

30:03.380 --> 30:16.240
So from them communicating to each other, to us controlling the communication, they can no longer communicate with each other and now we've actually injected and made whatever we want them to hear, they can only hear what we say.

30:16.280 --> 30:20.840
So a complete ownership of the conversation has now occurred because of what we just did.

30:21.260 --> 30:22.060
Exactly.

30:26.320 --> 30:35.720
And I know that the demonstration is a little bit slow as we're moving through this, but we thought it would be more beneficial to actually let you see us do it live than just show you a PowerPoint for it.

30:35.720 --> 30:38.740
So you can see that this is actually real and this is how it happens.

30:38.920 --> 30:41.220
And then here's the cool part about this.

30:41.220 --> 30:44.700
So as you can see here, we have a full decryption.

30:44.700 --> 30:48.200
So this is encrypted but we can see it in our messaging.

30:48.200 --> 30:51.100
So now we have exchanged this bar.

30:51.100 --> 30:53.100
So let's fix their communication.

30:53.100 --> 30:57.000
Like we leave the area of operation and we let them do their thing.

30:57.000 --> 30:58.640
So now let's do that.

30:59.120 --> 31:02.600
So we're going to go back to the poisoning and we're going to do

31:10.790 --> 31:11.150
this .

31:11.150 --> 31:25.590
So at this point we've manipulated, we have the ability to inject, we're controlling the conversation, they're in an operational area and we've dictated where we can move troops, where we can move individuals, where resupply is going to come, where a support element is going to go to.

31:25.590 --> 31:40.530
And now because we want to make sure that they don't realize this has happened because we want to be able to have future operations that they don't know that we've been able to control the communications, we're now going to put everything back so they can communicate with each other so they would have no idea that we were manipulating their comms during this entire time.

31:40.530 --> 31:43.890
So now we're replacing everything back to the way it was in the beginning.

31:44.690 --> 31:47.570
So that's what we're going to set up and go through.

31:48.110 --> 31:49.910
So again, why is this important?

31:50.690 --> 31:55.750
You have the ability to take comms over, you have the ability to manipulate and then you have the ability to restore.

31:55.850 --> 31:58.450
And that's what's really important about this and what we wanted to say.

31:58.450 --> 32:09.290
And again, when you're making protocols, you can have the best encryption out there, you can have the best ability to have keys that you use for whatever you're doing.

32:09.290 --> 32:15.410
But if you don't manage it correctly and you take shortcuts, this is what can start happening, right?

32:15.650 --> 32:17.750
And again, this causes compromise.

32:17.750 --> 32:21.990
So we want this to be a learning point for other manufacturers and for other elements.

32:22.730 --> 32:25.610
If you find these things, let the manufacturers know.

32:25.610 --> 32:29.390
Help them understand what they've done and what can be done to fix this.

32:29.390 --> 32:35.370
But again, if you're manufacturing and making these things, these are things that should be tested, right?

32:35.370 --> 32:37.890
You shouldn't just assume that there's no way this could happen.

32:37.890 --> 32:39.390
You need to test it and see.

32:39.390 --> 32:41.670
We had no idea that this would be possible.

32:41.670 --> 32:43.750
We were like, there's no way that we can actually do this.

32:43.750 --> 32:51.190
That's why the errors we kept running into because we were like, there's no way over the air that it will just wipe its own key and accept anything we send it.

32:51.190 --> 32:52.270
But it did.

32:53.370 --> 32:55.130
Then we found a way to manipulate.

32:56.170 --> 33:01.570
So as we're going through here, what we're seeing, restoring the communications.

33:01.770 --> 33:02.370
Here we go.

33:02.370 --> 33:02.730
Yep.

33:02.730 --> 33:05.870
So it said hi from Alice, back to Bob, received.

33:06.030 --> 33:07.990
And then we're going to do back to hi.

33:08.530 --> 33:12.230
Now of course we're running over a hub so we're having some power issues.

33:12.290 --> 33:15.630
But as you can see here, we got both hi's on both of the sides.

33:15.630 --> 33:19.650
So we fully restored the comms on both sides of the communication.

33:24.770 --> 33:33.870
So we're going to talk about a couple different scenarios so that you can think through how this could be done.

33:33.870 --> 33:38.570
We're not going to do demos for all this just because of the amount of time it takes.

33:38.570 --> 33:40.130
But we want to think about this.

33:40.670 --> 33:45.210
So having the ability to do all of these different elements.

33:47.490 --> 33:51.250
The first one , I let most of your communications pass right through.

33:51.250 --> 33:51.410
Right?

33:51.410 --> 33:55.110
I take them, they pass right through me so you think that everything is good to go.

33:55.110 --> 33:57.030
But occasionally I just slip something in.

33:57.030 --> 34:00.130
It could be something that seems semi offensive.

34:00.130 --> 34:05.410
It could be something where I can take your mind out of the game because I make an obscure comment.

34:05.550 --> 34:24.050
But all these things make you still feel like you have a trusted communication network but we're slowly degrading the integrity of the team because we just inject little small things to make people think somebody is incompetent or to make somebody go to the wrong place and you slowly have the ability to degrade the capabilities of an element.

34:24.290 --> 34:31.830
And that's where as we go through this, each one of these scenarios that we did we picked because these are things that we've seen happen.

34:31.830 --> 34:34.910
We've seen how an element is able to do this.

34:35.690 --> 34:40.130
Not necessarily with this device but using other forms that are out there.

34:40.130 --> 34:51.510
The other thing we can do with this is I can force you to not trust something you have so that I can get you to move to a piece of communications that I know that I can manipulate or that I know that's easier to track.

34:51.510 --> 34:55.050
So that's another reason that we would do this and intentionally degrade it, right?

34:55.170 --> 35:12.890
So as you look at this, if I had 15 people that were all communicating over a network using this similar capability, I could now go ahead and just replace their keys with anything I wanted and nobody has the ability to communicate anymore.

35:12.930 --> 35:17.150
Everybody is shut down and nobody has the ability to communicate at all.

35:17.770 --> 35:20.450
That means you're going to have to go to a secondary communication platform.

35:20.450 --> 35:33.050
You're going to have to find another way to be able to do what you want and it also is going to start having mission capability issues because if you're in an area that nothing else is working, I've now taken away one of the elements that you were relying on,

35:33.050 --> 35:35.620
especially when it comes to search and rescue type missions.

35:37.900 --> 35:55.520
So, the reason that we have to be really careful in making these things is because detecting this, being able to find out did this happen or not, is going to be very difficult for you to do.

35:55.520 --> 36:06.660
Because if I replace everything at the end of it, when you get back, other than looking at your two phones side by side and showing, oh, that didn't leave my phone but it showed up in yours, that would be the only way you'd be able to see this.

36:06.660 --> 36:09.780
If you looked at your keys, everything would look normal.

36:09.920 --> 36:12.100
And that's where we really want to understand that.

36:12.200 --> 36:23.740
You're not going to be able to just look at the RF spectrum unless you have some really amazing tools with you to be able to see that there's somebody using a different Resi value from a different area that's injecting into your communications.

36:24.940 --> 36:31.640
And then the other part to that, like, if you're just comparing the two phones, that's only possible if somebody actually changed it.

36:31.640 --> 36:37.400
If the attacker just wanted to see what you were talking about, they can just listen and you'd never see that.

36:37.780 --> 36:38.660
Exactly.

36:39.100 --> 36:45.160
So now, what are some things we can do to protect against this, regardless of what communication platform you're using is?

36:45.300 --> 36:47.620
Coming up with an operational playbook.

36:47.620 --> 36:54.520
So, pre mission, I know what my keys are, I know what my device looks like, I know certain key aspects of what I have.

36:54.640 --> 36:57.640
Now, after the mission's over, I go back and I look at that.

36:57.640 --> 37:01.280
Now, that works unless they replace the key back.

37:01.280 --> 37:05.820
If they replace the key back, then the compromise is going to be there and you may never know what happened.

37:05.920 --> 37:13.880
But, if I'm just replacing everyone's keys so I can continue to monitor and listen to what's going on, that would be a way that you could figure this out.

37:15.580 --> 37:18.980
You need to make sure that you're implementing proper key authentication.

37:19.220 --> 37:25.520
Your keys should never update without letting you know, hey, you have a key update, do you want to do this, yes or no?

37:25.520 --> 37:27.860
Or at least give you a notification of when it's happened.

37:28.380 --> 37:30.200
Making sure that you have versions of your keys.

37:30.200 --> 37:33.120
Hey, this is the third time that this same key has been used.

37:33.120 --> 37:33.500
Why?

37:33.500 --> 37:36.580
Well, because I put two versions in there before and then I brought you back.

37:36.580 --> 37:38.120
So, making sure that you do that.

37:38.200 --> 37:51.000
And this error telemetry, that is something, a higher end technique of being able to say, hey, it looks like I was getting signals with different power strengths that should have had a very solid power strength.

37:51.000 --> 37:56.460
If we were both at two static locations , we shouldn't start having influxes in the power of how strong that signal is.

37:56.460 --> 37:59.120
So, those are things that we want to look at there as well.

38:00.620 --> 38:02.320
So, our key takeaways.

38:02.320 --> 38:05.960
Key management, critical for secure communications, absolutely.

38:06.000 --> 38:09.000
Authentication of key exchange, again.

38:10.580 --> 38:15.440
The visibility of potential tampering, these are things you need to know your equipment.

38:17.840 --> 38:30.240
Having pro words built into something where if you think something suspicious is happening, being able to say things in a format that you may be able to give hidden codes is another technique that you can do to see whether or not somebody's manipulating.

38:31.040 --> 38:45.840
So, as we go through this, one of the things we really want to do is we want to thank, um, the CISA team who, you know, when we first started doing this, they were really instrumental, um, in helping us be able to talk to the vendor and be able to communicate with them.

38:46.000 --> 38:52.660
All the people who did research with us and everyone who's helped us be able to put this together and be able to find this.

38:52.660 --> 38:55.520
The people in the wireless village are a huge benefit to us.

38:55.520 --> 39:03.740
We're both staff there as well, but the other individuals in there and some of the competitors that are in there that do some amazing work all help with this kind of research.

39:03.920 --> 39:09.620
And those are the areas that you should find people that play in those areas that play in those worlds to be able to communicate with.

39:09.640 --> 39:11.940
We are going to be releasing all of this code.

39:11.940 --> 39:14.040
This is the GitHub page right here for Erwin.

39:14.900 --> 39:19.420
Yeah, this is from Clayton, the guy who we've been working with.

39:19.420 --> 39:21.640
So this is going to be released after DEF CON.

39:21.660 --> 39:24.800
We won't release it like right now, but we're going to release it very soon.

39:24.940 --> 39:39.660
All of this code that you have seen, like the updates of the keys, the script to send the keys, restore the keys, as well as the entire encryption parts that allow you to encrypt it and use it at different stages of the communication.

39:39.660 --> 39:43.840
So all of that will be released and you'll be able to experiment this at your own.

39:43.980 --> 39:53.180
And that's one of the reasons too that we wanted to do at least one real live demo is so you can go back, watch this video when you download the code, and actually be able to see how it happens.

39:53.180 --> 40:01.740
So you're not just trying to use the struggle bus to get through this, you can actually have a visual aid to do it because I know that's a problem I have sometimes just going off the GitHub page.

40:01.740 --> 40:06.180
Now you have a visual reference with him typing the actual code for you to be able to do this yourself.

40:06.260 --> 40:09.680
Again, to an unpatched item is the only way that this works.

40:09.820 --> 40:20.980
And then lastly, like, we really want to have a community call like looking at more of over the key authentication mechanisms and, and all of these updates, all of this should be checked.

40:20.980 --> 40:29.400
This is the first of its kind, like at the distance, other devices should be checked against this because this was never part of our assessment part.

40:29.400 --> 40:33.400
Like this is pretty much a brand new type of thing where somebody can do this.

40:33.400 --> 40:35.740
Now, can somebody do this in a different protocol?

40:35.740 --> 40:42.560
Like you can't say no, because we had that same assumption that no, it's not, it's not going to be possible to be changed, but then it was.

40:42.980 --> 40:47.000
So you need to test these assumptions and you need to test the protocols.

40:47.000 --> 40:55.520
And this goes both to security assessors, as well as the designers of these equipment to make sure that all of these vulnerabilities are checked, like don't assume actually check.

40:56.500 --> 41:01.580
So now are there any questions about what we've done or anything we have?

41:03.060 --> 41:05.440
Could you come up or?

41:05.440 --> 41:06.700
Yeah, we can't hear you.

41:06.700 --> 41:06.880
Yeah.

41:06.880 --> 41:08.260
Can you come up here?

41:08.640 --> 41:09.360
Or the mic?

41:09.360 --> 41:10.780
There's a mic right there.

41:11.660 --> 41:13.540
We've got about five minutes.

41:21.150 --> 41:22.570
The mic is not working.

41:22.570 --> 41:23.030
Yeah .

41:24.930 --> 41:27.290
Just come on up and I'll repeat your question.

41:42.920 --> 41:52.260
So, so the question that he asked was for us doing this, we wanted to get the visual of the flashing lights happening for us to be able to know that this was happening.

41:52.260 --> 41:56.380
We were doing that because in this scenario, we wanted to save time and do it.

41:56.440 --> 42:04.240
Remember, one of the things is because we're able to capture it, we can actually see in our program when that has actually happened and done that.

42:04.240 --> 42:10.580
We use the lights because it was easier and it also gives you a demonstration, but you don't have to have that, especially if you know that you need to have that progressive count.

42:10.580 --> 42:17.680
And that's where that tack in the number, the count becomes important to make sure that you're increasing that, which you can actually see that count number, which will assist.

42:17.940 --> 42:20.320
And you can also just send a really large number.

42:20.320 --> 42:22.760
I mean, not super large, but a very large number.

42:22.760 --> 42:24.380
And that's always visible in the metadata.

42:24.380 --> 42:27.880
You can tell what it is, but you can just elect to send a really large number.

42:27.880 --> 42:35.720
The reason why we just didn't send one large number initially is because we're doing all kinds of changes and we wanted to make sure that all those get sent appropriately.

42:36.940 --> 42:38.720
Are there any other questions?

42:41.840 --> 42:42.780
All right.

42:43.260 --> 42:44.200
Well, thank you very much.

42:44.200 --> 42:45.500
We appreciate you being here.

42:45.500 --> 42:46.200
Thank you.

