WEBVTT

00:00.000 --> 00:01.340
Hello everyone.

00:01.340 --> 00:06.480
I'm Marco and today we will be presenting C-traps.

00:06.480 --> 00:11.560
C-trap client impersonation and API confusion on Fido 2.

00:13.100 --> 00:14.280
So I'm Marco.

00:14.280 --> 00:17.340
I'm a post doc at KTH in Sweden.

00:17.780 --> 00:21.140
I've done this work while I was doing my Ph.D.

00:21.140 --> 00:28.000
at Eurocom in France under Professor Antonioli which will talk with me as a co-speaker.

00:28.100 --> 00:35.640
My research is in security and privacy so I look at proprietary and standard protocols of IoT devices.

00:35.640 --> 00:39.900
For example, authenticators from Fido 2.

00:40.060 --> 00:48.880
I also look at mobile, so Android and transport very common ones like Bluetooth energy, Wi-Fi, NFC and so on.

00:48.880 --> 00:54.620
So now Daniele will have the stage for him.

00:55.160 --> 00:56.560
All right guys.

00:56.560 --> 00:58.440
Thank you for coming to our talk.

00:58.440 --> 00:59.800
My name is Daniele Antonioli.

00:59.800 --> 01:07.840
I'm an assistant professor at Eurocom, a university and research center located in Sofia Antipolis in the southern part of France.

01:08.420 --> 01:10.640
We do research in security and privacy.

01:10.640 --> 01:17.580
We cover topics including Bluetooth, electric scooters, Fido 2, web tracking and more.

01:17.580 --> 01:21.420
Feel free to reach out to me after the talk if you're interested in doing a Ph.D.

01:21.420 --> 01:23.220
or a post doc in any of these topics.

01:23.280 --> 01:28.160
You can also check out my website for more information about myself and my research.

01:28.400 --> 01:30.540
This is the CTRAPS talk outline.

01:30.540 --> 01:36.260
So I will start by introducing Fido 2 and the CTRAPS contributions, attacks and vulnerabilities.

01:36.520 --> 01:41.260
We'll talk about some background information about Fido 2 and our threat model.

01:41.260 --> 01:50.500
Then Marco will take over and talk about really cool attacks with demos including the client impersonation attacks, the API confusion, man in the middle attacks.

01:50.500 --> 02:06.540
Then he will talk about the CTRAPS vulnerabilities, a toolkit that we developed an open source implementing the attacks, our experimental results and countermeasures and responsible disclosure we did with the Fido Alliance.

02:07.080 --> 02:09.100
Let's jump into the talk.

02:09.240 --> 02:20.480
So this talk is based on a research paper that we published in 2025 at IEEE Euro S&P called CTRAPS, CTRAPS, Client Impersonation and API Confusions on Fido.

02:20.800 --> 02:38.800
Remember that we started this research in 2023 and it took quite a lot to get the paper accepted but when the paper got accepted then we also submitted the content of the paper to DEF CON to also showcase our results to a broader audience and not only to boring academics.

02:40.580 --> 02:43.080
So let's start with Fido to set the stage.

02:43.080 --> 02:43.700
What is Fido?

02:43.700 --> 02:47.260
Fido means Fast Identity Online version 2.

02:47.260 --> 02:51.980
This is an open authentication standard that was designed to be resilient against phishing.

02:51.980 --> 02:53.980
Phishing is a password compromise.

02:54.340 --> 02:58.420
It highly relies on the concept of authenticator.

02:58.420 --> 03:03.700
An authenticator can be like a USB dongle like this one.

03:03.700 --> 03:04.500
This is a YubiKey.

03:04.500 --> 03:05.240
It's quite popular.

03:05.240 --> 03:12.260
There are billions of authenticators like this one which are storing billions of credentials.

03:12.500 --> 03:17.940
These days you can also use your smartphone as a Fido authenticator.

03:17.940 --> 03:25.980
And then the authenticator is storing some authentication credentials which are cryptographically key pairs that you can use to authenticate.

03:26.220 --> 03:29.780
There are two typical use cases for Fido authentication.

03:29.780 --> 03:48.340
The first one is a second factor or multi-factor authentication where let's say you want to log in on Apple.com, you register with Apple.com, you register a Fido credential, and then whenever you log in, you enter your username, your password, and then you provide your authenticator to the backend.

03:48.400 --> 03:54.060
And this allows you to tolerate the password compromise attack.

03:54.080 --> 04:06.020
Because even if the attacker gets access to your password, it cannot get access to your USB authenticator, to your key pairs which is not phishable because this is a cryptographic key.

04:06.020 --> 04:14.420
It is not a password that can be brute forced and so cannot impersonate you on Apple.com.

04:14.480 --> 04:25.000
More recently, Fido also enabled what is called passwordless authentication where you can log in on a website by using your username and only the passkey.

04:25.240 --> 04:28.860
And this is also known as passkey authentication.

04:28.860 --> 04:34.020
It's a single factor authentication while the other is a second factor authentication.

04:36.890 --> 04:42.090
These are the entities involved in a Fido authentication ceremony.

04:42.090 --> 04:44.310
There is the authenticator that you've already seen.

04:44.310 --> 04:59.450
Then there is a Fido client which can be a smartphone, a laptop, and there is a user which usually owns the authenticator and the client and wants to authenticate to a web service via the client like Apple.com, Facebook.com, Google.com.

04:59.450 --> 05:02.650
And so the user is contacting the relying party.

05:02.650 --> 05:11.190
Relying party is just some technical jargon using the Fido standard to indicate a service who is supporting Fido authentication.

05:11.450 --> 05:18.430
And then Fido specifies two standard application layer protocols that are used to authenticate.

05:18.430 --> 05:20.210
One is called CTAP.

05:20.210 --> 05:23.130
CTAP stands for client to authentication protocol.

05:23.130 --> 05:32.950
And this protocol is used in the link between the authenticator and the user and can be transported using multiple technologies including USB and NFC.

05:33.070 --> 05:36.730
In fact, if you look at the authenticator, you have a USB port.

05:36.730 --> 05:40.550
You can plug in your authenticator in your laptop and then complete authentication.

05:40.550 --> 05:45.270
Or you can tap your authenticator to your smartphone.

05:45.270 --> 05:46.930
They are in NFC range.

05:46.930 --> 05:51.210
They exchange some CTAP messages and then you can complete authentication.

05:51.210 --> 05:52.950
Second factor or single factor.

05:53.330 --> 05:56.390
On the other hand of the scheme, there is WebAuthn.

05:56.390 --> 06:06.750
This is a communication protocol which is spoken by the client and the relying party, which is using standard internet-based technologies like TCPAP and TLS.

06:06.910 --> 06:14.090
And in CTAPs, we focus on the CTAP link, specifically on the security and privacy of the CTAP protocol.

06:14.390 --> 06:21.590
So the attacker is a protocol level attacker which is trying to find design vulnerabilities in the CTAP protocol.

06:21.650 --> 06:29.330
And we will see, we will focus on vulnerabilities enabling client impersonation and man-in-the-middle attacks.

06:29.470 --> 06:37.790
So with a client impersonation, the attacker is approaching the authenticator as a client and is trying to tamper with the client.

06:37.790 --> 06:45.430
In a man-in-the-middle scenario, the attacker has a man-in-the-middle channel between the authenticator and the client.

06:45.430 --> 06:48.890
And these attacks, they have critical impacts on the FIDO ecosystems.

06:48.890 --> 06:55.350
So here we talk about millions of keys and billions of credentials stored in these keys.

06:55.830 --> 07:12.290
And as an example of attack impact, you can delete credentials, you can track users based on their credentials, you can denial of service an authenticator, you can leak some sensitive data about the user, like the list of relying parties, the list of accounts,

07:12.290 --> 07:13.550
and so on and so forth.

07:13.650 --> 07:20.430
And interestingly, while attacking CTAP, you are kind of agnostic to the link layer.

07:20.430 --> 07:28.250
So if you find the vulnerabilities at the application layer, then you can attack communications over USB, over NFC, over BLE, and so on and so forth.

07:28.250 --> 07:33.190
Plus, you can also affect, as a side effect, the relying party.

07:33.190 --> 07:42.930
So we mount attacks using CTAP messages, and without even sending one single web out and message, we can affect the relying party.

07:42.930 --> 07:50.230
Because if we delete the credentials in the authenticator, then the user will not be able to log in on the relying party.

07:50.690 --> 07:56.210
This is the list of contributions that we provide with the CTAP's work.

07:56.210 --> 08:09.130
After doing extensive security evaluation of the protocol, the application layer protocol, we found eight critical design vulnerabilities affecting even the latest version of CTAP.

08:09.130 --> 08:12.750
So up to CTAP version 2.2.

08:13.310 --> 08:19.050
And we show how to exploit these design vulnerabilities in 11 new ways.

08:19.050 --> 08:36.450
So we present 11 new attacks, four of which are client impersonation ones, and seven of which are man-in-the-middle attacks, where we exploit a new attack technique in the context of FIDO that we call API confusion, which essentially means that the client wants to call APIA.

08:36.450 --> 08:38.950
We are in the middle, and then we play some tricks.

08:38.950 --> 08:48.990
We are able to bypass authorization and play some tricks to call API B on the authenticator and return an APIA OK message to the client.

08:49.530 --> 08:53.550
Then we also present a toolkit, which is on GitHub.

08:53.550 --> 08:54.950
It is open source.

08:54.950 --> 08:56.490
It is implementing our attacks.

08:56.490 --> 09:04.810
It also includes a virtual CTAP testbed that you can use to test your own authenticator without having to attack Apple.com or Microsoft.com.

09:04.810 --> 09:09.290
You can just test it locally, and then you can try the attack somewhere else.

09:09.290 --> 09:18.350
We also provide four attack clients that can be used on real devices against real devices to perform all of our attacks.

09:18.350 --> 09:34.350
We run an extended evaluation, experimental evaluation with real devices, where we compromise six of the most popular authenticators, including Yubico Authenticators, Faitian Authenticators, and open source Google Authenticators, and also 10 very popular reliant parties.

09:34.350 --> 09:39.510
So we are capable of compromising Apple.com, Microsoft.com, NVIDIA.com, and so on and so forth.

09:39.510 --> 09:47.290
And all the web services that are relying on their login mechanism as a piggyback.

09:47.290 --> 09:53.590
And then we also discuss eight fixes at the design level, because here we are focusing about the protocol.

09:53.590 --> 09:55.550
We are not talking about side channels, fault injection.

09:55.550 --> 09:57.510
We talk about the CTAP protocol.

09:57.590 --> 10:01.230
And we present eight design fixes, which are compliant with FIDO, too.

10:02.490 --> 10:02.890
All right.

10:02.890 --> 10:07.230
So now a very quick introduction about FIDO.

10:08.610 --> 10:10.710
So I talk a lot about FIDO credentials.

10:10.710 --> 10:11.970
What is a FIDO credential?

10:11.970 --> 10:16.850
This is an ECDSA key pair, where you have a private key that you are using to sign something.

10:16.850 --> 10:20.190
You have a public key that you are using to verify something.

10:20.290 --> 10:22.430
There are two types of FIDO credentials.

10:22.550 --> 10:24.590
First type is non-discoverable.

10:24.590 --> 10:30.870
These are credentials where the private key, which is encrypted, is stored on the relying party.

10:31.010 --> 10:35.430
And this is historically the first type of credentials that was introduced by the FIDO standard.

10:35.510 --> 10:48.150
And something that might sound surprising to you, it was to me when I started working on this field, is that FIDO credential, the private key of your FIDO account, is not stored on the authenticator by default.

10:48.190 --> 10:52.770
But it is stored on the relying party, on the Apple backend.

10:52.810 --> 10:59.430
And it is encrypted, this private key, with a master key that is instead stored on the YubiKey.

11:00.010 --> 11:03.130
Then the second type of credentials is called discoverable.

11:03.130 --> 11:08.310
And these are credentials that are enabling the passkey authentication thing.

11:08.310 --> 11:10.290
So the single factor authentication.

11:10.470 --> 11:16.850
And in this case, the private key is encrypted with the master key, and then it is stored on the authenticator itself.

11:17.670 --> 11:21.310
And a typical authentication flow with FIDO goes as follows.

11:21.310 --> 11:27.370
So you create a FIDO credential when you are interacting with a relying party.

11:28.530 --> 11:33.730
And then you use this credential whenever you want to authenticate using the client.

11:33.730 --> 11:45.530
So you use the client, you contact the relying party, you enter your username, your password, and then you authenticate with FIDO, or you only authenticate with FIDO.

11:45.530 --> 12:02.730
And the authentication under the hood is a challenge-response-based protocol, where the relying party is sending a challenge , the client is relaying the challenge to your authenticator, the authenticator is answering the challenge with a signed response using the private key corresponding to that credential,

12:02.730 --> 12:09.790
and then the relying party knows the public key and can verify your challenge and let you in.

12:10.570 --> 12:22.650
Now, within this authentication flow, there is a channel, the sit-up channel, which is providing communication means from the authenticator to the client using this sit-up protocol.

12:22.650 --> 12:25.050
This is a standard application layer protocol.

12:25.050 --> 12:29.750
As I told you, it is transported over USB, NFC, or Bluetooth Low Energy.

12:29.970 --> 12:32.050
And it is a request-response protocol.

12:32.050 --> 12:40.810
So the client is requesting something from the authenticator, like make a new credential, the authenticator is doing something, and then it is returning the credential.

12:41.150 --> 12:47.330
The first sit-up version was also known as UTF, or Universal Second Factor.

12:47.330 --> 12:58.430
And this first version of sit-up standardized in the FIDO specification two-factor authentication and provided what is known as an authenticator API.

12:58.430 --> 13:04.230
This keyword is very important because this is what we are attacking in the sit-ups slides later.

13:04.250 --> 13:11.830
The authenticator API is a way to manage, create credentials, generate authentication responses, and so on and so forth.

13:11.830 --> 13:14.950
Then sit-up was updated to version two.

13:15.210 --> 13:17.390
The latest is 2.2.

13:17.390 --> 13:23.630
And this standard introduced password-less authentication with discoverable credentials.

13:23.630 --> 13:31.310
And it also extended the authentication API with features such as protection of discoverable credential.

13:31.330 --> 13:40.830
And remember that our attacks are focusing on sit-up two, and so they're effective even against the latest and most secure FIDO authenticators, clients, and their line parties.

13:41.790 --> 13:53.370
Specifically, we focus on seven core sit-up authenticator APIs, make credentials, get assertion, credential management, client pin, reset, selection, and get info.

13:53.510 --> 13:57.970
The get assertion API is the one used to authenticate.

13:57.990 --> 14:00.010
An API can have a subcommand.

14:00.010 --> 14:06.530
For example, the credential management API has enum RPIs or enum credential subcommands.

14:06.530 --> 14:13.670
And so you send a credential management API request with subcommand enumerate, please enumerate airline parties.

14:13.750 --> 14:18.730
You send this message to the authenticator, and the authenticator sends back the information.

14:18.950 --> 14:23.530
And this communication is protected by two main authorization mechanisms.

14:23.530 --> 14:27.890
These authorization mechanisms are standard, so everybody's implementing this API.

14:27.950 --> 14:31.750
Everybody in the FIDO ecosystem must implement these authorizations.

14:31.750 --> 14:35.690
The first one is called user verification, and here is color-coded in blue.

14:36.190 --> 14:40.570
With user verification, whenever you use an authenticator, you set a pin.

14:40.850 --> 14:48.130
This pin is stored in the authenticator, and then you have to enter the pin in the client whenever an API requires it.

14:48.130 --> 14:57.670
For example, if you want to create a new credential, before being able to do that, you enter the pin on the client, on your smartphone, then the smartphone communicates to the authenticator.

14:57.670 --> 15:02.590
You are kind of authenticated because you know the pin, and then you can proceed.

15:02.970 --> 15:11.350
The second orthogonal authorization mechanism is called user presence, and here is color-coded in violet.

15:11.490 --> 15:18.830
This user presence is entirely managed by the authenticator, and it depends on the transport that you are using.

15:18.830 --> 15:27.470
If you are using USB for your authentication, your API call, as a user, you have to press a button on the authenticator.

15:27.470 --> 15:35.810
So you insert the authenticator, the client is asking something to the authenticator, and then the user has to press a button to confirm his presence.

15:35.870 --> 15:42.530
Instead, if you are using NFC, then NFC range automatically guarantees user presence.

15:42.530 --> 15:43.870
So you don't need to press any button.

15:43.870 --> 15:46.110
There is no user interaction required.

15:46.110 --> 15:50.030
You just have to put the devices in range.

15:51.710 --> 16:03.850
And this is the threat model, the CTRAPS threat model, just to understand the requirements of the attack before we talk about the attacks.

16:03.850 --> 16:10.450
We consider a scenario where a victim is owning a client device and an authenticator, like a smartphone and a YubiKey .

16:10.470 --> 16:17.230
The user is capable of performing user verification with the client and also user presence with the authenticator.

16:17.230 --> 16:24.150
And the client is communicating to airline party via WebO10 and also to the authenticator via CTAP.

16:24.150 --> 16:39.050
And we assume that there is an attacker, protocol-level attacker, focusing on design issues on CTAP, which is either trying to spoof a client, so approaching the authenticator as a client, or as a man-in-the-middle position between the authenticator and the client.

16:39.310 --> 16:43.650
It is important to realize that we are not assuming any compromise on the FIDO devices.

16:43.650 --> 16:45.910
So we are not installing malware on the client.

16:45.910 --> 16:48.070
We are not installing malware on the airline party.

16:48.070 --> 16:50.890
We are not running a side-channel attack on the authenticator.

16:50.890 --> 16:56.890
Here we are just sending CTAP packets and we want to exploit the CTAP protocol.

16:57.490 --> 17:05.010
So this concludes my part and now Marco will continue talking about the client impersonation attacks and other really good things.

17:06.110 --> 17:10.150
So let's look at attacks and video demonstrations.

17:10.290 --> 17:22.850
We start with the client impersonation, but first we must have one single stop to understand what actually happens when you call a CTAP API.

17:23.030 --> 17:26.950
So the user wants to call API A.

17:27.190 --> 17:30.990
They do this through the client.

17:30.990 --> 17:37.930
So the client understands if the API A requires user verification.

17:38.270 --> 17:45.450
If it requires user verification, the client starts the pin UV out protocol.

17:45.630 --> 17:47.650
This goes as follows.

17:47.650 --> 17:52.310
You perform a secure defilement in order to get a shared secret.

17:52.310 --> 18:04.270
Then the client sends encrypted a message containing the hashed pin for the authenticator that the user inputted and the permissions.

18:04.270 --> 18:11.430
The permissions give access control to the user verification token at the end of the process.

18:11.430 --> 18:19.710
Basically they restrict the token to specific API calls or end to specific relying parties.

18:20.230 --> 18:26.750
Now the authenticator checks if the pin is the one stored inside its memory.

18:26.750 --> 18:31.990
If it's correct, sends the encrypted message containing the user verification token.

18:31.990 --> 18:35.770
And then the client retrieves it and can use it for the whole session.

18:35.770 --> 18:37.970
So this token is reusable.

18:37.970 --> 18:44.610
You can use it as many times as you want without asking for another pin input prompt to the user.

18:44.630 --> 18:47.630
If you disconnect, you have to do this again.

18:48.590 --> 18:56.090
Now the client actually calls API A and attaches the token if it requires user verification.

18:56.590 --> 19:03.070
Then the authenticator understands if API A requires or not a user presence check.

19:03.070 --> 19:05.250
If it does, he does it.

19:05.250 --> 19:14.990
If it's correct, then the authenticator executes API A and sends an API A okay result.

19:15.850 --> 19:18.010
So this is how it works normally.

19:18.010 --> 19:21.150
Let's see how we tamper with it.

19:21.150 --> 19:26.770
So first the client impersonation attack that factory resets the authenticator.

19:26.770 --> 19:33.790
So we have on the left the authenticator and on the right the attacker posing as a legitimate FIDO client.

19:34.050 --> 19:37.030
The attacker sends a reset command.

19:37.030 --> 19:39.070
It's one of the sit up APIs.

19:39.250 --> 19:41.630
This command requires user presence.

19:41.630 --> 19:55.290
So connects to the authenticator, sends reset, user presence check, passes, and then the authenticator deletes the master key which invalidates all credentials because without the master key, the authenticator cannot decrypt them.

19:55.290 --> 19:58.130
No matter if they are discoverable or non-discoverable.

19:58.130 --> 20:00.030
No credential is safe.

20:00.110 --> 20:08.710
Then it also resets the PIN and other data and settings on authenticator and finally sends the reset okay result.

20:09.570 --> 20:13.150
So let's look at the first demonstration.

20:13.150 --> 20:14.910
So let me open the link.

20:14.910 --> 20:22.190
So we have the FIDO authenticator put inside the pocket of a jacket just right now.

20:22.190 --> 20:28.050
Then I have my malicious app that connects over NFC to it.

20:28.110 --> 20:29.930
I'm trying to scan for it.

20:29.990 --> 20:31.690
Now it works.

20:31.970 --> 20:38.410
And we have the message here that... sorry I will show it better a little bit later.

20:38.410 --> 20:43.050
So you can see the message that the factory reset was successful.

20:43.610 --> 20:47.690
And now I will show you that there are no credentials inside anymore.

20:47.690 --> 20:58.710
So I just use another function of my app to show that we connected and here it's supposed to print credentials but there is no credentials.

20:59.450 --> 21:01.650
So that's the factory reset.

21:05.770 --> 21:07.450
We have plenty more.

21:07.450 --> 21:13.370
So let's go to the tracking user from the authenticator credentials.

21:13.370 --> 21:27.590
So now I think this is very interesting because the get assertion API call is used for authentication but for us we use it to track the user by extracting identifiers.

21:28.030 --> 21:41.070
So get assertion usually requires user verification but if the relying party set the credential protection policy as off, it doesn't require user verification.

21:41.070 --> 21:44.890
And this is the case for big players like Apple and Microsoft.

21:45.850 --> 21:48.250
So here the attack goes as follows.

21:48.250 --> 21:54.390
The client, the attacker posing as a client prepares a list of insecure relying parties.

21:55.270 --> 21:59.330
What I mean by insecure is they have credential protection as off.

21:59.370 --> 22:01.850
So this skips user verification.

22:02.270 --> 22:08.430
Then the client, the attacker sends the get assertion API call.

22:08.550 --> 22:12.930
Here it is the client that decides if the user presence is required.

22:12.930 --> 22:14.870
So we control the client.

22:14.870 --> 22:16.210
We are the attacker.

22:16.210 --> 22:23.450
We are the attacker client so we put it as false and we don't need user presence anymore.

22:23.490 --> 22:29.070
And we also touch the list of relying parties that are using credential protection off.

22:29.070 --> 22:36.910
So the authenticator gives back a list of all credential identifiers from those relying parties and all user identifiers.

22:36.910 --> 22:45.670
And these are the values that bind the online relying party user account to the credential IDs.

22:45.670 --> 22:48.830
Both of them are uniquely identifying the user.

22:48.830 --> 23:01.250
So we can put them in a fingerprint list and then track the user whenever he connects to our malicious client, our attacker, whenever we connect to it.

23:01.450 --> 23:03.790
So we have the demo.

23:03.790 --> 23:06.510
This is also over NFC.

23:06.750 --> 23:10.630
So this time we changed the piece of clothing.

23:10.630 --> 23:16.130
So we have the jeans if you were wondering if they work on every clothing.

23:16.130 --> 23:26.550
So now we are scanning the authenticator key and we can see no user input, no user consent.

23:27.170 --> 23:33.810
And we detected that there is one relying party, login Microsoft com, and we have two credentials inside.

23:34.190 --> 23:41.430
One, we have the credential identifier for the first one, 085C, and then the user identifier.

23:41.630 --> 23:44.250
And also same thing for the second credential.

23:44.250 --> 23:46.750
So that's how we can track users.

23:51.710 --> 23:57.970
Just to quickly add on what Marco showed, here we can track the user because the credential ID is unique.

23:58.050 --> 24:02.690
And so this can act as a really strong fingerprint for a tracking attack.

24:02.690 --> 24:07.890
And so the first time we collect the data, we create the fingerprint.

24:07.890 --> 24:16.750
And then whenever the user roams around and then we scan again, the same YubiKey, we can track the user via its unique credential IDs.

24:18.070 --> 24:19.190
Yes.

24:19.410 --> 24:22.110
So we have four client impersonation attacks.

24:22.110 --> 24:24.210
I already shown you the first two.

24:24.210 --> 24:28.050
For the third one, we attack the client API.

24:28.050 --> 24:33.210
So here we just submit 10 incorrect pin guesses.

24:33.350 --> 24:38.630
So then the authenticator goes into a hard lockout mode that requires factory resetting.

24:38.630 --> 24:41.290
So you lose all of your credentials .

24:42.150 --> 24:49.130
And we also have another attack that profiles the authenticator given the hardware and software details.

24:49.590 --> 24:52.730
Now we go into the second attack technique .

24:52.990 --> 24:59.370
So in this technique, we have a man in the middle attacker between the authenticator and the client.

24:59.370 --> 25:04.530
So for example, a malicious USB hub, a malicious sit-up library, and so on.

25:05.390 --> 25:22.670
So first, if the client wants to call API A and it requires user verification, the man in the middle attacker runs the pin UV out protocol, forcing to create a user verification token that accepts all APIs and all parties.

25:22.870 --> 25:28.230
So we break the access control part of the protocol.

25:28.310 --> 25:37.150
So now that we can run any API we want on any rank party we want, we wait for the client to call API A with a token if it's needed.

25:37.150 --> 25:41.170
And then we instead run API B on the authenticator.

25:41.170 --> 25:48.650
So we change, we confound API A with API B, which is the one the attacker wants to execute.

25:48.650 --> 25:53.450
Now, if API B requires user presence, we do the user presence check.

25:53.450 --> 26:06.130
Then API B is executed, a success message is returned, and the man in the middle attacker changes it to API A success to masquerade.

26:06.990 --> 26:13.510
We tested API Confusion with all combinations of the seven core sit-up APIs.

26:13.510 --> 26:16.590
You can see the seven APIs here.

26:17.210 --> 26:20.190
So let's give an example.

26:20.670 --> 26:33.530
Here we have on the left the APIs called by the user, and on the columns, so on the top, the APIs that the attacker wants to run, to execute.

26:33.630 --> 26:49.470
So for example, for Reset, it works that if the user calls MakeCredential, we can call Reset instead, because MakeCredential has compatible permissions, compatible user verification, user presence, compared to Reset.

26:49.470 --> 26:57.510
So we can use the user presence from MakeCredential to execute the user presence that Reset requires.

26:57.710 --> 27:00.310
And you can see some one and choose.

27:00.310 --> 27:16.550
We have these requirements because if we want the attacks to be stealthy, in some cases we require NFC to have user presence, or we need credential protection to not perform user verification.

27:16.550 --> 27:18.330
But this is optional.

27:18.710 --> 27:21.170
This is just for having stealthy attacks.

27:21.170 --> 27:23.290
But we can run them anyway.

27:25.050 --> 27:30.390
Now, the first API confusion attack I will present is the Factory Reset.

27:30.390 --> 27:35.330
So the goal is the same as the client impersonation, but the technique is different.

27:35.330 --> 27:42.050
So now the client calls API A that requires user presence, because Reset requires user presence.

27:42.050 --> 27:44.830
For example, get assertion, selection, and so on.

27:44.830 --> 27:48.450
The middle attacker confounds API A into Reset.

27:48.450 --> 27:52.370
We do the user presence check, which the user expects.

27:52.630 --> 28:03.170
We delete the credentials, other data, and then we get back to the client saying API A was executed and not Reset.

28:04.050 --> 28:09.990
Then we have the second attacks that we are presenting for API confusion.

28:09.990 --> 28:15.110
So deleting discoverer credentials, which are the ones stored in the authenticator.

28:15.110 --> 28:19.190
Now we run the middle attack.

28:19.190 --> 28:27.010
We have the pin UV authentication protocol that forces the user verification for everyone.

28:27.410 --> 28:29.770
The client calls API A.

28:29.770 --> 28:33.650
We confound it with calls to credential management.

28:33.650 --> 28:36.450
And here credential management has different subcommands.

28:36.450 --> 28:41.450
So the first one you can see from the diagram is getCredentialData.

28:41.450 --> 28:44.830
We see if there are any discoverer credentials inside.

28:44.830 --> 28:52.470
If there are, we enumerate all the parties tied to those credentials, and we get a list of the relying parties.

28:52.470 --> 28:54.910
So like Microsoft, Apple, Google, and so on.

28:54.910 --> 29:03.850
Then we use this to get, with the credential API call, the list of credential identifiers.

29:03.850 --> 29:08.630
And now we can delete one by one all the credentials stored in the authenticator.

29:08.650 --> 29:13.410
And then we tell the client that API A was okay.

29:14.930 --> 29:20.190
So here is a demonstration that we can use the user verification token for multiple API calls.

29:21.110 --> 29:24.390
And now, so here we have a setup that simulates.

29:24.390 --> 29:26.670
I'm in the middle over USB.

29:26.750 --> 29:29.490
So you will see a lot of traffic.

29:29.490 --> 29:31.630
Let me skip here.

29:31.890 --> 29:34.570
Yes, so you can see a lot of traffic here.

29:34.570 --> 29:37.490
So this is the client pin protocol that executes.

29:37.490 --> 29:40.930
Then we are enumerating the relying parties, enumerating the credentials.

29:41.130 --> 29:47.230
And at the end, you will see that we are deleting the discoverer credentials just in a little bit.

29:47.650 --> 29:51.890
So yes, I will just wait two seconds.

29:52.090 --> 29:55.690
And you will see that the stored credentials are now zero.

29:55.770 --> 29:57.790
So here you can see deleteCredential.

29:57.790 --> 30:03.070
We deleted one, two, three, four credentials, and then zero remaining.

30:03.070 --> 30:07.350
So that's how you delete discoverer credentials using API Confusion.

30:13.300 --> 30:15.780
So we present seven API Confusion attacks.

30:15.780 --> 30:20.000
Some of them are similar to the ones I've shown you for the client impersonation.

30:20.000 --> 30:29.000
Other ones are like filling the discoverer credential memory space by using make credential API calls or denial of servicing authenticator using selection.

30:29.920 --> 30:33.140
So now as for the vulnerabilities and the toolkit.

30:33.680 --> 30:38.580
So we find eight CTAP vulnerabilities on the design of CTAP.

30:38.580 --> 31:00.260
So the fact that you can connect the CTAP client without authentication, the fact that there is no feedback about API calls, the fact that NFC range gives user presence, allowing us to connect without the user noticing, the fact that you can use destructive APIs without user authorization,

31:00.260 --> 31:11.540
trackable identifiers, issues with the user verification, user presence of reset and credential management API, and also the DOS over the selection API.

31:11.840 --> 31:14.120
So this is how the vulnerabilities map.

31:14.120 --> 31:23.180
Basically the first two are required for connection to the, for connecting impersonating the client and many in the middling, the traffic.

31:23.180 --> 31:30.040
The second one is for stealthiness and the other ones are specific to some or just one API.

31:31.020 --> 31:36.180
So then we released open source toolkit for connecting these attacks.

31:36.180 --> 31:47.240
We have three modules, a virtual testbed for CTAP experiments for other clients and the sectors which improved the sectors for CTAP.

31:47.320 --> 31:52.180
So for the testbed, we have a virtual running party and CTAP client.

31:52.380 --> 32:01.160
We want to test, we wanted to test physical authenticators without breaking the actual running parties, without sending web authent requests.

32:01.160 --> 32:04.240
So this was very practical.

32:04.240 --> 32:11.640
We extended the Yubico testbed for this, the FIDO2 Python repository.

32:11.640 --> 32:18.280
We send raw CTAP packets with this so we can change them at a byte level.

32:18.280 --> 32:25.500
We can customize the configuration of the virtual client , changing the requirements and the curves, extension needed.

32:25.500 --> 32:29.500
We also offer templates imitating, simulating real running parties.

32:29.500 --> 32:35.360
So the correct running party ID, identifier, the real credential protection policy and so on.

32:35.780 --> 32:41.240
Then for the four attack clients, we have an Android app for the client impersonation over NFC.

32:41.240 --> 32:49.060
So it runs on the attacker phone like this one and we got up to two centimeters of range on my phone.

32:49.060 --> 32:58.100
Then for the Proxmark, we have a long range antenna that deploys the attack with a range of up to 6.5 centimeters.

32:58.100 --> 33:00.440
So a better result.

33:00.440 --> 33:04.580
And also sends this custom CTAP commands over NFC.

33:04.640 --> 33:09.780
Also an Android app running on the victim phone that performs a client impersonation.

33:10.420 --> 33:15.220
And we are using our custom API instead of the Android NFC API.

33:15.220 --> 33:23.600
And finally, this Electron app running on desktop that can simulate API confusion over USB using the node-hid library.

33:24.080 --> 33:25.840
And performs that in the middle.

33:26.220 --> 33:31.960
So we evaluated six popular authenticators from Mubico, Feitian, Solokeys and Google.

33:31.960 --> 33:33.300
Some of them were open source.

33:33.300 --> 33:34.620
Some of them are closed source.

33:34.620 --> 33:37.960
They have different amounts of memory for discoverer credentials.

33:38.300 --> 33:43.040
And years are from 2018 to pretty recent 2023.

33:44.120 --> 33:47.320
Then also ten popular running parties.

33:47.320 --> 33:54.200
Among them are Apple and Microsoft that has the discoverer weak type here.

33:54.200 --> 33:59.640
Which means that they use the credential protection off on their discoverer credentials.

33:59.820 --> 34:04.580
Then we have sites like Adobe and the GitHub that use discoverable credentials.

34:04.580 --> 34:06.160
So they are stored in the authenticator.

34:06.160 --> 34:09.920
And then DocuSign and Facebook that use non-discoverable credentials.

34:09.920 --> 34:13.020
They are stored by their running party.

34:14.820 --> 34:18.860
So our attacks, they target the SITAP protocol.

34:18.860 --> 34:27.000
So they are working regardless of the hardware and software of the authenticators.

34:27.000 --> 34:31.500
So all of our attacks are effective on all the authenticators.

34:31.500 --> 34:36.020
Just one exception that four authenticators do not implement the selection API.

34:36.020 --> 34:40.680
So of course we couldn't implement the selection-based attack.

34:40.680 --> 34:43.140
Because there was no API there.

34:45.380 --> 34:53.480
As Daniel already told you, we have impact also on the running party despite not sending any WebO10 command.

34:54.100 --> 34:57.720
So for the outcomes, we have the deletion of credentials.

34:57.720 --> 34:58.860
So you can't log in.

34:58.860 --> 34:59.700
You lose the credentials.

34:59.700 --> 35:01.000
You can't log into the account.

35:01.000 --> 35:03.860
So for example for Microsoft, this is for the Microsoft account.

35:03.860 --> 35:10.600
But you also use these credentials for the OneDrive, for the Office and even for your Minecraft login.

35:12.000 --> 35:14.300
Then we have the user tracking.

35:14.340 --> 35:19.840
So here we track the user and it doesn't work with non-discoverable credentials.

35:19.840 --> 35:23.020
So that's why we have the not applicable in our table.

35:23.020 --> 35:26.560
We only can track the user with discoverable credentials.

35:26.620 --> 35:30.840
And finally we have the service authenticator meaning that it doesn't work or it is busy.

35:30.840 --> 35:34.480
So you cannot use it for login, for authentication.

35:35.000 --> 35:42.120
So for the countermeasure disclosure, we have eight countermeasures fixing the eight vulnerabilities.

35:42.120 --> 35:50.440
So some of them are proposals for having a trusted sit-up client like PKI or attestation.

35:50.440 --> 35:52.440
Then visual feedback for authenticator.

35:52.440 --> 35:55.440
For example, using the LED is one of the options.

35:55.440 --> 36:02.200
Then user interaction for the user presence even when doing NFC, when having the NFC transport.

36:02.200 --> 36:04.720
A different pin for destructive APIs.

36:04.720 --> 36:10.460
Rotating and credential protection on credential identifiers and user identifiers.

36:10.500 --> 36:14.860
Adjustments to the authorization of the reset and credential management.

36:14.860 --> 36:19.780
And rate limiting for DOS on the selection, for DOS prevention on selection.

36:20.100 --> 36:24.640
So for the disclosure, we informed the FIDO Alliance on November 2023.

36:24.640 --> 36:30.680
They answered us on May 2024 with nice feedback.

36:30.680 --> 36:35.540
And they also requested us to disclose our findings to the vendors.

36:35.540 --> 36:40.240
So we contacted Yubico, Soloveit and Google about the attacks.

36:40.240 --> 36:46.900
We also told Yubico that we found an implementation flaw in their firmware.

36:46.960 --> 36:50.100
And we got a CVE and an advisory from them.

36:50.100 --> 36:54.060
And now it is fixed for newer models, but not for the old ones.

36:54.060 --> 36:55.400
It is still there.

36:55.860 --> 36:58.300
And it involves data leaking.

36:59.100 --> 37:06.080
And then we also contacted parties using the credential protection of policy, which is Microsoft and Apple.

37:06.820 --> 37:09.660
So thank you for the attention.

37:09.660 --> 37:15.720
And if you want to meet us later, we have a live demo for most of the attacks.

37:15.720 --> 37:19.200
So feel free to come to us.

37:19.200 --> 37:20.040
Thank you.

37:20.440 --> 37:21.620
Thank you very much.

