WEBVTT

00:00.000 --> 00:02.800
One second here, we'll go ahead and get us kicked off.

00:04.880 --> 00:06.280
All right.

00:06.800 --> 00:08.400
How's everyone doing?

00:10.700 --> 00:11.780
Cool.

00:12.280 --> 00:14.100
Well, I think we got here safely.

00:14.100 --> 00:15.880
We can take these off for the moment.

00:16.060 --> 00:16.820
Yep.

00:19.520 --> 00:21.800
So, thank you guys for coming.

00:21.800 --> 00:24.280
This has been a long time coming.

00:24.280 --> 00:29.120
This is a super exciting topic for us, and we're really passionate about it.

00:29.140 --> 00:36.820
We've worked really hard to try to provide you all the necessary context you need to understand what happened and what the implications are.

00:37.020 --> 00:40.700
We're going to do our best to kind of take you along the journey as best as possible.

00:40.700 --> 00:42.020
So, thank you for being here.

00:42.020 --> 00:43.920
Thank you for your patience in advance.

00:44.680 --> 00:48.460
But first, I really want to introduce some of the other researchers.

00:48.520 --> 00:50.700
First and foremost, Aaron.

00:54.320 --> 00:57.420
This is not an overstatement.

00:57.420 --> 01:00.660
If it was not for Aaron, I would not be standing here.

01:00.660 --> 01:03.940
I don't know if much of this work would have gotten done.

01:03.980 --> 01:08.020
He was absolutely the tip of the spear, and I can't say enough good things about him.

01:08.020 --> 01:11.280
He's one of the most talented and kindest researchers I've ever worked with.

01:11.280 --> 01:13.760
So, yeah, thank you.

01:17.010 --> 01:19.630
Thank you so much, Babak, for the kind words.

01:19.630 --> 01:27.370
So, I want to introduce Nick Draphin, who is one of the most talented security engineers, security researchers I have ever worked with.

01:28.090 --> 01:30.270
He accomplishes so much stuff.

01:30.270 --> 01:33.550
He works on so much stuff beyond all of this.

01:34.330 --> 01:35.490
He's just incredible.

01:35.490 --> 01:36.370
He's amazing.

01:38.750 --> 01:39.550
Thanks, Aaron.

01:39.550 --> 01:40.650
That's very nice.

01:41.130 --> 01:44.790
I'm very pleased to have met you and know you.

01:45.710 --> 01:55.270
I would like to introduce Babak Javadi, who I'm also pleased to call my friend, and I really appreciate our friendship and the things that we've worked on together.

01:55.290 --> 02:08.790
Amazing, really kind person, one of the best hardware hackers I know, and we constantly compete for who has the newest tool or who is on the latest firmware of something.

02:08.790 --> 02:18.310
He has a tendency to update firmware at the worst possible moment, like right before a critical training or something, it's time to do the latest GPU update.

02:18.590 --> 02:20.110
So, my friend Babak.

02:25.690 --> 02:35.450
So, fun fact, we're all really awkward about talking about ourselves, so we came up with this shtick of introducing each other instead.

02:35.450 --> 02:37.690
So, hopefully that worked okay.

02:39.010 --> 02:46.830
I do want to talk about one researcher who wasn't able to join us on the stage, and that's Kate.

02:46.890 --> 02:49.630
Kate has also been involved with the project.

02:49.770 --> 02:55.650
She's also one of the finest, most talented hackers I've had the pleasure of working with.

02:55.650 --> 03:00.690
We're honored to call her a friend , and she's definitely been a part of this journey as well.

03:00.690 --> 03:03.650
So, just want to give a quick thank you to Kate.

03:03.650 --> 03:04.290
Where is Kate?

03:04.290 --> 03:05.170
There's Kate.

03:06.890 --> 03:07.730
All right.

03:07.730 --> 03:09.090
So, let's get started.

03:09.330 --> 03:13.210
Topics of the hour, because holy shit, 75 minutes.

03:13.750 --> 03:15.270
The longest talk.

03:15.370 --> 03:16.790
Who gave us the slant?

03:17.750 --> 03:18.390
All right.

03:18.390 --> 03:20.390
We'll do our best to make the best of it.

03:20.610 --> 03:22.270
We got a couple things to cover.

03:22.270 --> 03:27.750
We're going to talk about access control systems and a couple of really critical elements of it.

03:27.990 --> 03:34.110
We're going to talk about obsession, because this has been all-consuming, as we will discuss.

03:34.350 --> 03:38.290
And, of course, the reason why we're all here, a heist, right?

03:38.430 --> 03:41.250
That's the really exciting stuff that we're here for.

03:41.570 --> 03:47.910
But before we begin, Aaron, can you tell us a little bit more about, like, why they should stick around?

03:47.910 --> 03:49.790
Like, what does all this actually mean?

03:50.150 --> 03:51.030
Absolutely.

03:51.230 --> 03:55.050
So, if you look at this video, you can see that there are two cards.

03:55.050 --> 03:58.630
These are HID CS cards, theoretically unclonable.

03:58.630 --> 04:04.730
And yet, if you look, they have the same ID card number when scanned, right?

04:05.070 --> 04:07.770
So, we have cloned the unclonable.

04:07.770 --> 04:10.010
And in this talk, we're going to show you how we did it.

04:11.410 --> 04:17.170
So, I mentioned obsessions, because we all get that, right?

04:17.350 --> 04:22.850
This project has been kind of all-consuming for all three of us in different ways.

04:23.110 --> 04:36.670
It has took over my entire COVID, basically, because we had nothing else to do other than wake up, work for 12 to 14 hours, and then go to bed, and then rinse and repeat for, you know, a few months, basically.

04:37.550 --> 04:41.670
And even got into shower thoughts in the shower.

04:41.670 --> 04:43.690
We can't stop thinking about this stuff.

04:43.690 --> 04:55.370
Essentially, like, thinking about this research when we wake up, thinking about it before we go to bed, waking up in the middle of the night thinking about it, going to dinner with our significant others, and all we can think about is HID research.

04:55.890 --> 04:58.310
So, that's what brought us here today.

04:59.030 --> 05:03.790
Yeah, and we have so many HID readers at this point, it's kind of crazy.

05:03.790 --> 05:11.450
So many, in fact, that my now-husband actually used an HID reader in proposing to me a few years ago.

05:11.630 --> 05:12.690
It's true.

05:13.010 --> 05:14.570
We're not kidding.

05:17.950 --> 05:27.150
But yeah, this is collectively thousands of hours collectively, hundreds of readers, way, way too many dollars.

05:27.550 --> 05:31.870
I was considering trying to tabulate it, and then I thought better of it.

05:31.910 --> 05:33.450
So, let's just say it was a lot.

05:33.810 --> 05:36.910
And of course, very little sleep, including preparing for this talk.

05:36.910 --> 05:38.650
So, here we are.

05:39.150 --> 05:42.550
We are going to go kind of quick on a couple of topics.

05:42.990 --> 05:53.910
As long as this talk is, it is not a soup to nuts on how access control works, but in order for you to understand why this stuff is important, you do need some basic building blocks.

05:53.970 --> 05:58.630
So, we worked really hard to try to give you guys those basic building blocks as quickly as possible.

05:58.630 --> 06:01.250
If something doesn't fully track, it's okay.

06:01.250 --> 06:05.350
This stuff is kind of weird, but I suspect that you guys will get it pretty easily.

06:05.850 --> 06:12.010
So, the main foundation of all of this stuff is physical access control systems.

06:12.110 --> 06:18.230
And these are, of course, physical security controls that are designed to control access into or out of areas.

06:18.490 --> 06:20.530
And there's a lot of different components to these, right?

06:20.530 --> 06:25.370
There's readers, there's cards, there's door lock hardware and stuff like that.

06:25.370 --> 06:34.350
And ultimately, there's a few main tenets that all of these systems have to be focused on and hit in order to be successful in the marketplace.

06:34.830 --> 06:38.650
In order for it to be viable, these things have to be cheap.

06:38.650 --> 06:40.290
They have to be cost effective.

06:40.290 --> 06:48.110
Because for literally anyone else except us in this room, security isn't fun, it's a cost.

06:48.370 --> 06:58.430
And so, since businesses have to make money, for better or for worse, they don't really necessarily like spending money on security, because they exist to maximize profit.

06:58.650 --> 07:04.950
So, cost effectiveness actually has a huge, huge driver for how this stuff gets designed and how it sticks around.

07:04.950 --> 07:21.090
It also, of course, has to be easy to use, because security that gets in your way and prevents you from doing your job or getting where you need to be also sucks and incurs a different kind of cost, both to you, psychologically, and to the business.

07:21.750 --> 07:33.810
By way of example, I recall there was a pen test that we were on, and we noticed that during reconnaissance, we noticed there was a side door that people kept coming out of, and it wouldn't latch all the way.

07:33.810 --> 07:35.350
And we're like, we can just walk in here.

07:35.350 --> 07:37.230
And so, we used it several times.

07:37.450 --> 07:41.010
And I remember that in the after-action report, we brought it up.

07:41.010 --> 07:46.810
We're like, by the way, do you guys know this door doesn't latch, and it goes right into your office?

07:47.210 --> 07:52.250
And the head of facilities was there, and he's like, yeah, let me tell you about that door, see?

07:53.350 --> 07:56.250
So, this is a very efficient building.

07:56.250 --> 07:57.930
It seals very, very well.

07:58.170 --> 08:03.650
And when the weather is nice, and the HVAC system is not running, we have everything adjusted, and that's fine.

08:03.650 --> 08:11.550
But then, when the HVAC system is running, there's a positive air pressure inside the building, and now, the door closers won't actually close the doors fully.

08:11.710 --> 08:15.590
So, we go through, and we tighten all the door closers, and we're like, okay, it's good.

08:15.850 --> 08:20.170
And then, the weather gets nice again, and the HVAC system is off, and the doors start slamming.

08:20.490 --> 08:26.570
And so, we got all these trouble tickets of people complaining that they're on meetings, they're on sales calls, and the door is slamming.

08:26.730 --> 08:31.890
And so, we had to choose between security and keeping our employees happy.

08:32.250 --> 08:33.570
What do you think won?

08:34.310 --> 08:36.830
Of course, it wouldn't be a story if it was security.

08:36.830 --> 08:37.890
It was the latter.

08:38.330 --> 08:41.630
So, simplicity, ease of use, that's a huge deal.

08:41.630 --> 08:46.430
The golden rule of access control is never get in the way of doing business, for better or for worse.

08:46.430 --> 08:48.730
And that really drives a lot of this stuff.

08:49.330 --> 08:52.550
So, there's a couple components you need to understand about access control.

08:52.550 --> 08:59.130
And if you've been doing any of this stuff at all, you probably already know about this, but we'll give you the building blocks anyway.

08:59.130 --> 09:07.630
So, we have cards, we have readers, we have door hardware, like an electric strike or latch, and we have door controller of some kind.

09:07.630 --> 09:11.370
This is an embedded device that controls access.

09:11.370 --> 09:13.190
It's what makes the logical decision.

09:13.290 --> 09:17.450
And of course, it has a database of some kind that it synchronizes with and connects to.

09:17.930 --> 09:23.130
And ultimately, the sequence diagram, the way it works, is we have...

09:23.130 --> 09:25.310
we'll zoom in here.

09:25.730 --> 09:27.850
So, we have a card presentation.

09:27.850 --> 09:29.710
So, that's you presenting your card.

09:29.830 --> 09:31.450
The reader activates it.

09:31.890 --> 09:34.810
And then some weekend data is retrieved from the card.

09:34.810 --> 09:36.110
It's sent to the reader.

09:36.250 --> 09:40.010
The reader goes ahead and grabs that and sends it to all the way to the controller.

09:40.010 --> 09:41.370
That's what that beep is.

09:41.390 --> 09:43.050
And then the controller makes a decision.

09:43.050 --> 09:45.670
And if you have access, it activates the relay.

09:45.770 --> 09:47.550
And that's basically it.

09:47.910 --> 09:51.170
But for this talk, we're not going to talk about the back half of that.

09:51.170 --> 10:02.410
We're really only just going to focus on that first part, card to reader, because that's such a critical aspect and it's oftentimes the most exposed element of the access control system.

10:02.470 --> 10:07.570
And we'll see all the ways that people have tried to do it right and still sometimes you struggle.

10:08.250 --> 10:09.950
So, what is WGAN data?

10:09.950 --> 10:14.770
This is something that's important to understand about access control if you haven't had to deal with it before.

10:15.050 --> 10:22.970
WGAN data is a static binary authentication string that represents a very simple series of numbers.

10:22.970 --> 10:32.330
You've got your facility code, you've got a card number, and you also have a set of rules that are used to encode these into a static binary string, and that's called the bit format.

10:32.650 --> 10:34.430
And we don't need to get into the details of it.

10:34.430 --> 10:37.430
All you've got to know is that it's a little static binary string.

10:37.430 --> 10:39.670
We'll talk about that more in a little bit.

10:40.270 --> 10:48.150
There is a difference, though, technically, if you want to get technical about it , I suspect you all do, between a card and a credential.

10:48.670 --> 10:53.870
See, RFID cards of any kind are really just memory storage devices.

10:53.870 --> 10:56.470
Like a USB stick, but a lot shittier.

10:57.310 --> 11:02.810
They don't become a credential until you put access control data on it.

11:02.810 --> 11:06.390
And so, technically, these two concepts are discrete concepts.

11:06.710 --> 11:08.510
So, something to keep in mind.

11:08.510 --> 11:13.170
The technology is different from how you put data on that technology.

11:13.510 --> 11:23.090
And if you really think about it, we think that all fundamental aspects of access control can be boiled down into either an encode or decode operation.

11:23.090 --> 11:25.030
Storage or retrieval.

11:25.190 --> 11:26.990
So, let's talk about how storage works.

11:26.990 --> 11:29.890
How do we make that credential in the first place?

11:29.890 --> 11:32.510
How do we go from card to credential?

11:32.970 --> 11:43.430
Well, you can see we have a facility code and card number that goes into some set of rules called the bit format, and you produce WGAN data.

11:43.430 --> 11:46.570
And that WGAN data is then stored on the card.

11:46.810 --> 11:50.010
If you're having trouble visualizing this, let's show you.

11:50.270 --> 11:55.390
So, for example, let's say we have a facility code of 42 that we want to encode.

11:55.510 --> 11:59.930
We'll go ahead and grab our handy-dandy calculator, and we'll convert that decimal to binary.

12:00.270 --> 12:03.210
So, that will give us these 8 bits here.

12:03.430 --> 12:05.230
Then we have our unique card number.

12:05.230 --> 12:08.010
That's, of course, 1337, obviously.

12:08.530 --> 12:11.290
And we'll go ahead and convert that to binary as well.

12:11.450 --> 12:14.510
And what you see at the bottom left there, that's the bit format.

12:14.510 --> 12:18.430
That defines where these bits go in that long string.

12:18.690 --> 12:29.670
So, we'll go ahead and take the facility code and card number, we'll drop that into our bit format, do some parity bit calculations that we don't need to get into, and that is our authentication string.

12:29.670 --> 12:32.190
That's what the door controller is actually waiting for.

12:32.190 --> 12:37.990
And depending on the credential, we might have to add a preamble to it, but then that whole blob gets written to the card.

12:37.990 --> 12:38.990
That's it.

12:38.990 --> 12:41.350
That's what a credential basically is.

12:41.350 --> 12:45.410
Very simple, static data stored on a memory device.

12:45.990 --> 12:49.570
Similarly, when you're reading a card, it's just that in reverse.

12:49.570 --> 12:51.310
So, you have your card memory.

12:51.310 --> 12:53.430
You got to get in there, get it out.

12:53.430 --> 12:54.870
That's what the reader does.

12:55.330 --> 12:57.230
And then, whoop, went too fast.

12:57.230 --> 12:58.090
My apologies.

13:00.090 --> 13:01.610
Too fast for my own good.

13:01.610 --> 13:03.130
There we go.

13:03.190 --> 13:03.770
Okay.

13:04.750 --> 13:10.750
So, the reader grabs that credential data, it transmits it to the door controller, and now the controller has to interpret it.

13:10.750 --> 13:12.030
So, what does that look like?

13:12.030 --> 13:13.670
I'm so glad you didn't ask.

13:14.090 --> 13:15.230
So, here's our credential.

13:15.230 --> 13:16.470
We present it to the reader.

13:16.670 --> 13:31.690
The reader grabs that credential data, retrieves it, it processes it, rips out that preamble, sends the WGAN to the door controller, and now that door controller interprets that data, breaks it back apart into its constituent components, and we have, of course,

13:31.690 --> 13:33.810
our original facility code and card number.

13:33.950 --> 13:34.670
Very simple.

13:34.670 --> 13:36.210
Happens in the blink of an eye.

13:36.570 --> 13:41.130
So, in this example, we're talking about unauthenticated cards.

13:41.130 --> 13:46.310
You'll notice in this diagram, there was no password needed to do either of these operations.

13:46.570 --> 13:57.810
And in fact, if you guys have ever used a prox credential or old school credential, if you've used a flipper to clone, you know, low frequency tag, that's the type of card we're talking about.

13:57.810 --> 14:04.890
These are cards that don't require any security or authentication in order to read that data off of it.

14:04.990 --> 14:14.510
So, you'll see in the sequence diagram, you present the card, the reader powers it on, it spits out the data, the reader takes the data, and then forwards it to the controller.

14:14.510 --> 14:15.630
Simple as that.

14:15.690 --> 14:21.030
But if you have unauthenticated credentials, you have, of course, unauthenticated problems.

14:21.410 --> 14:32.810
Generally speaking, this is an issue because there's no protection for the data at rest, there's no protection for the data in motion, and as a result, it's very easy to tamper with that data, it's very easy to clone that data.

14:32.810 --> 14:34.190
So, what's the solution?

14:34.910 --> 14:36.070
Authentication, right?

14:36.070 --> 14:37.270
Easy enough.

14:37.490 --> 14:40.050
So, we can add an authentication layer in.

14:40.050 --> 14:44.150
You'll notice right over here, we add a little mutual authentication.

14:44.710 --> 14:51.890
So, now, in order for us to access that memory for reading or for writing, we have to authenticate with that card.

14:51.890 --> 14:52.970
Simple enough.

14:52.970 --> 14:55.010
We can even go a step further.

14:55.190 --> 14:59.590
And we can, before writing that data, we can encrypt it and put it on the card.

14:59.590 --> 15:01.990
And that's what we call, actually, transport encryption.

15:01.990 --> 15:03.850
And it also adds another step.

15:03.950 --> 15:05.150
Right there.

15:05.370 --> 15:18.750
So, now, the reader has to authenticate with the card, unlock it, grab the encrypted data, and now it has to then decrypt it, usually with a different key, and then get the WGAN data, send it to the controller.

15:19.230 --> 15:25.130
So, this is the cornerstone of modern access control in terms of how RFID cards work.

15:25.130 --> 15:28.570
But, of course, more security, more problems, my friends.

15:28.570 --> 15:29.130
Right?

15:29.430 --> 15:33.150
Because if you have keys that you've got to use, you have to manage those keys.

15:33.170 --> 15:35.270
They have to be generated appropriately.

15:35.290 --> 15:37.330
They have to be stored properly.

15:37.410 --> 15:39.890
And, of course, you have to use them correctly.

15:39.890 --> 15:48.450
If you write them down on a post-it or, say, put them in an Android app, mobile app, and not realize it, and people disassemble it and find it, that's kind of a problem.

15:49.010 --> 15:50.730
We can also go a step further.

15:50.730 --> 15:52.790
We're just touching on this topic very lightly.

15:53.050 --> 15:58.590
If we want to make sure that we don't put the same key in every card, we can, of course, do diversification.

15:58.950 --> 16:17.570
So, a key diversification function, or KDF, as it's colloquially referred to, basically takes a secret master key, some sort of unique value tied to the credential, like a CSN or UID, and sometimes an optional salt or piece of context, and that goes into the KDF.

16:17.570 --> 16:22.490
And what comes out is a unique key that is just for that credential and nothing else.

16:23.090 --> 16:24.750
And that's a pretty solid system.

16:24.750 --> 16:28.410
That's a best practice, and almost every vendor follows it these days.

16:28.910 --> 16:32.110
Now, you might wonder, how are these master keys generated?

16:32.110 --> 16:33.090
How are they used?

16:33.090 --> 16:42.050
Because any of you have ever bought access control systems or used them, you may not realize or may not have thought that you don't actually get to pick that key.

16:42.750 --> 16:50.410
Generally speaking, these keys fall into two categories, and that's shared master keys and custom master keys.

16:50.530 --> 16:56.510
So, with a shared master key, these are cards and readers that are interoperable by default.

16:56.510 --> 16:58.910
You buy the card, you buy the reader, and it just works.

16:58.910 --> 16:59.670
It's great.

16:59.670 --> 17:07.730
It's great for integrators, it's great for customers, it's really fast and easy to install, and of course, because it's so easy, that means your cost is lower.

17:07.830 --> 17:16.950
But maybe you got special security needs and you want a custom key, and so now a unique key is generated for you, and someone has to manage it.

17:16.950 --> 17:18.910
Maybe it's you, maybe it's your vendor.

17:19.390 --> 17:27.030
And of course, if you do that though, now you need to order those cards and those credentials and those readers on demand.

17:27.030 --> 17:29.090
They have to program specifically for you.

17:29.130 --> 17:43.610
Because of this extra step, this is a process and a technology that is kind of poorly understood, a lot of integrators don't really like to do this because it kind of gets in the way of the process, it's something that's confusing for a lot of customers,

17:43.610 --> 17:49.030
and ultimately, it really slows down the process as well, which people of course don't like.

17:49.690 --> 18:03.170
But no matter what you do, whether you use unauthenticated credentials, or authenticated credentials, or ones with encryption, whenever it is, the reader still outputs WeGand, which is really interesting.

18:03.290 --> 18:06.070
But we're not going to get too far down that path today.

18:06.510 --> 18:11.430
Before we continue further, we wanted to share with you a little bit of context.

18:11.910 --> 18:28.130
As any of you guys know, who've ever learned any of this stuff, played with anything, done anything even remotely hackery, we all stand on the shoulders of giants before us that have paved the way before for us to learn from and then build on top of that.

18:28.130 --> 18:29.830
And this is no exception.

18:29.830 --> 18:43.590
In our opinion, one of the big pieces of research that really kind of set us on this path started back in 2011, 2010 rather, when Milos released his paper, Heart of Darkness.

18:44.070 --> 18:56.590
And it was one of the first really interesting ways of compromising sensitive cryptographic key material that was supposed to be kept secure in the reader and doing it in a really, really innovative way.

18:56.970 --> 18:59.710
Nick, what do you want to say about this?

19:04.000 --> 19:12.320
Yeah, so the predecessor to the system that we're going to talk about today, iClass, was introduced in 2002.

19:12.820 --> 19:15.900
And for quite a while, it was a relatively secure system.

19:15.900 --> 19:17.820
It used a modern credential.

19:17.820 --> 19:22.700
It had authentication keys.

19:22.700 --> 19:24.060
It had encryption keys.

19:24.060 --> 19:26.580
It was a relatively secure implementation.

19:26.740 --> 19:37.680
But use of cheaper hardware and inadequate key protection kind of ultimately led to the recovery of those keys that made the system secure.

19:37.680 --> 19:45.080
So it was originally based on an inside secure or inside contactless at the time PicoPass chip.

19:45.540 --> 19:49.260
And it was mainly popular in North America.

19:49.260 --> 19:54.140
It saw some penetration in other markets, but primarily in North America.

19:54.860 --> 19:59.200
iClass legacy credential looks like this from a memory map perspective.

19:59.240 --> 20:02.920
There are unencrypted variants or encrypted variants.

20:02.920 --> 20:10.900
Funny enough, the credential itself or the card itself controls whether or not it's encrypted or plain text.

20:20.260 --> 20:27.940
So you see like two examples here of an encrypted card and an unencrypted card.

20:28.760 --> 20:34.760
Suffice to say that having the credential itself specify whether it's encrypted or not might not be the best idea.

20:35.120 --> 20:39.280
But the hardware for this ecosystem was a few different revisions.

20:39.280 --> 20:40.640
There was rev A, B, and C.

20:40.660 --> 20:44.720
B really wasn't in the channel very long.

20:44.720 --> 20:46.740
Not a lot of customers with rev B readers.

20:47.140 --> 20:52.380
But Milosz selected rev A readers as a target because it's the earlier generation.

20:52.380 --> 20:53.880
There might be some bugs.

20:54.380 --> 20:58.080
That's a typical thing for hardware hackers to do is select an earlier revision.

20:58.340 --> 21:08.420
It used a relative commodity pick microcontroller, which was not targeted against attacks that Milosz performed.

21:08.760 --> 21:19.170
So when iClass was introduced, this is where the concept of the shared standard keys and what the vendor calls elite keys was introduced.

21:19.840 --> 21:22.960
So most customers went with a standard key option.

21:23.160 --> 21:33.180
Elite keys were for customers that had or were concerned about advanced threats so that their cards wouldn't work on other readers and vice versa.

21:33.600 --> 21:36.560
So those cards and readers are built to order.

21:37.160 --> 21:39.100
Customers don't actually get to choose that key.

21:39.100 --> 21:40.180
It's chosen for you.

21:40.180 --> 21:43.180
There's some good research about that we'll talk about later.

21:43.580 --> 21:54.580
But it was elite is probably one of the, if not the most prominent vendor managed key program that exists in the access control space.

21:54.960 --> 21:59.700
So in this ecosystem, there was an encoder.

21:59.920 --> 22:07.560
And that encoder had some use cases for stored value applications, vending, things like that.

22:07.560 --> 22:13.800
And it was just another reader that had an interface that you could connect to with your PC and talk to it with a protocol.

22:13.800 --> 22:16.740
But this is what Milosz targeted for his research.

22:16.860 --> 22:23.220
And his research, the paper's titled Heart of Darkness, it relied on using two readers.

22:23.400 --> 22:26.100
It was a destructive attack against each one.

22:26.240 --> 22:34.520
With the first reader, you would erase the boot block because the debug interface would let you do some limited things.

22:34.520 --> 22:41.040
And in that erased boot block, he wrote a dumper program to dump the rest of the memory.

22:41.180 --> 22:44.840
And then on the second reader, he did the opposite.

22:44.840 --> 22:54.900
He erased the end part of the memory and wrote the dumper program at the end, which then looped back around and got the first bit that he didn't have from the first reader.

22:55.060 --> 23:01.640
So this led to complete recovery of the firmware and all associated data with that system.

23:02.060 --> 23:05.500
Let's see if this might... way too loud this time.

23:05.500 --> 23:06.380
All right.

23:06.440 --> 23:08.120
Just a quick add.

23:08.120 --> 23:14.840
One thing that I found really cool about this attack is that this chip technically had read protection.

23:14.840 --> 23:25.420
So they thought the keys were secure, but he found a very innovative way to get his code to run inside the chip without erasing the rest of it.

23:25.420 --> 23:33.780
And he found, quite by accident, that code running inside the microprocessor was kind of behind the firewall, so to speak.

23:33.780 --> 23:37.880
And so it was able to then get access to those re-protected areas of memory.

23:37.880 --> 23:51.620
And that basic concept of, I don't have access to that thing, so I'm going to find something else that has access to that thing and try to manipulate my way in, that is so critical to so many different aspects of hacking.

23:51.620 --> 23:52.960
Yeah, exactly.

23:52.960 --> 23:59.060
So once you actually have that extracted firmware and data, you can start to look through it.

23:59.160 --> 24:01.360
You kind of have broken the chain of custody.

24:01.360 --> 24:04.020
You now have those keys that were meant to be kept secret.

24:04.500 --> 24:10.900
And through analysis, it ultimately revealed the algorithms that were used by the platform.

24:11.260 --> 24:18.420
It prompted a lot of subsequent research over the next couple of years, primarily by a handful of European researchers.

24:18.860 --> 24:23.200
There are some really interesting cryptanalysis talks.

24:23.200 --> 24:25.580
There's a few of the papers that are listed here.

24:25.900 --> 24:27.060
Fantastic reads.

24:27.060 --> 24:32.720
These are deep, math-heavy papers, so I'll be frank, it's over my head a lot

24:41.480 --> 24:42.040
.

24:42.120 --> 24:44.040
Testing 1.2, there we go.

24:44.280 --> 24:47.160
So yeah, this is truly next-level research.

24:47.680 --> 25:04.460
And from a failure perspective, choosing a commodity microcontroller, even with re-protection, is not necessarily the proper key protection mechanism that you'd want for a system like this, especially if you've got standard or shared keys across all sorts of customers,

25:04.460 --> 25:05.820
potentially globally.

25:05.980 --> 25:16.940
So with the data integrity portion of this, it being optional and controlled by the card, also maybe not the best security decision.

25:16.940 --> 25:21.480
If customers want encryption, they should be able to specify that on the reader, not the credential.

25:22.320 --> 25:34.680
And one other issue that plagues this platform, not just this vendor, but in this industry as a whole, is firmware upgrades or updating devices in the field.

25:34.680 --> 25:39.980
If you take these readers and they're at your doors, if you have five doors, it's not much of a problem.

25:39.980 --> 25:49.140
But if you have 50,000 doors with readers that are spread out across the globe, if you want to update those and you have to go to each one of them, that's quite the task.

25:49.260 --> 25:59.980
So centralized updates are an issue just kind of industry-wide that we're hoping to get some attention on in the next couple of years with product advancements and whatnot.

25:59.980 --> 26:18.880
And I think one of the really interesting things to understand and take away from this, if you're not familiar with any of this technology already, is that even though they had this encryption layer on there as well, what people found is that once you have the authentication key,

26:18.880 --> 26:27.920
you didn't even have to decrypt it in order to clone it because there was no validation of which card that data belonged to.

26:27.920 --> 26:45.040
So you could actually just take one card, unlock it, grab the encrypted blob of data, throw it onto another one, and even though the serial number of that card was different, it would still work, which really kind of undermined a lot of the integrity of the data.

26:45.040 --> 26:48.640
So when we talk about data tampering, that's what we're talking about.

26:49.200 --> 26:53.320
And it's a critical aspect that you'll see coming up as a theme over and over.

26:54.000 --> 27:03.320
And as a result of this research, it actually led to a really cool new platform, really the rebirth of iClass.

27:03.600 --> 27:08.280
And to talk to you about that, I'd like to have Aaron come up if you're willing.

27:24.330 --> 27:27.050
We have a phoenix rising from the ashes here.

27:27.110 --> 27:30.470
It's truly a next generation, next level platform.

27:31.390 --> 27:42.350
Yeah, I mean, if it looks a little bit dramatic, it's because in many ways you could argue that that original platform really kind of got burned down in a lot of ways.

27:42.470 --> 27:47.430
But to HID's credit, they actually came back pretty hard.

27:47.490 --> 27:51.770
And when SE came out, it was kind of a BFD.

27:51.770 --> 27:52.790
Aaron, tell us about it.

27:52.790 --> 27:53.830
Sure.

27:53.950 --> 28:00.930
So to replace iClass comes iClass SE.

28:01.230 --> 28:03.070
Launched in 2011.

28:03.070 --> 28:06.950
Technically it stands for SIO enabled.

28:06.970 --> 28:09.250
SIO stands for secure identity objects.

28:09.250 --> 28:10.990
Yes, nested.

28:10.990 --> 28:13.250
A lot of confusing terminology here.

28:13.470 --> 28:16.430
But in short, they got a lot of things right here.

28:18.050 --> 28:22.670
HID clearly learned a lot of lessons of things that went wrong with iClass.

28:22.670 --> 28:29.550
And so iClass SE really was arguably the secure edition of the platform.

28:31.310 --> 28:36.790
So this name, iClass SE, refers to three different things.

28:36.790 --> 28:40.370
A platform, a reader, a credential technology.

28:40.730 --> 28:44.310
You can see how that might be confusing, right?

28:44.310 --> 28:46.570
And it has been, right?

28:50.090 --> 28:59.670
To this day, there is still an incredible amount of confusion over what iClass SE actually means.

28:59.670 --> 29:02.310
And I don't mean just from like everyday users.

29:02.310 --> 29:04.050
I mean industry professionals.

29:04.050 --> 29:06.210
People who, this is their job.

29:06.210 --> 29:08.390
Nothing but access control.

29:08.410 --> 29:11.270
Selling it, installing it, maintaining it.

29:11.270 --> 29:15.350
The phrase iClass SE is very, very nebulous.

29:15.350 --> 29:19.510
But when you look at it at a technical level, you can understand why there is so much confusion.

29:19.510 --> 29:25.800
Because they reuse the same name for very different discrete aspects of the technology.

29:25.800 --> 29:29.420
So we do our best to separate things out here for you.

29:29.420 --> 29:38.960
But it's important to understand that depending on the context in which you invoke the phrase iClass SE, what we're referring to can vary.

29:40.000 --> 29:41.360
Indeed.

29:41.400 --> 29:47.400
And so one of the interesting things about iClass SE as a reader platform...

29:49.780 --> 29:57.160
One of the interesting things about iClass SE as a reader platform is that it is very much upgradable.

29:57.160 --> 30:02.380
And so they've added support over the years for newer, other credential technologies.

30:02.860 --> 30:06.960
Something that was not easily possible with the original iClass reader platform.

30:06.960 --> 30:09.900
So right in 2011, we had those four.

30:09.900 --> 30:12.420
iClass SE most significantly.

30:12.480 --> 30:15.780
2012, we got CEOS, which we'll talk about later.

30:15.780 --> 30:17.240
2014, mobile.

30:17.520 --> 30:19.220
And so on and so forth.

30:21.180 --> 30:25.300
So I mentioned that term before, SIO, secure identity object.

30:25.300 --> 30:27.600
So let's talk a little bit about what that is.

30:28.660 --> 30:45.500
So with iClass, one of the things that Babak was talking about, and Nick as well, was the fact that there was nothing to cryptographically bind the encrypted data payload on the card to that particular card.

30:45.900 --> 30:50.740
And that's one of the main things that the SIO endeavors to fix.

30:50.740 --> 30:55.060
So it is an ASN.1 encoded payload.

30:55.060 --> 31:00.620
It is cryptographically bound to a specific card by its serial number or UID.

31:00.620 --> 31:02.480
And the data in it is encrypted.

31:02.480 --> 31:11.340
So in other words, if you take an SIO from one card and you put it on another card with a different serial number, it won't work.

31:11.640 --> 31:13.100
And that's a big deal, right?

31:13.100 --> 31:20.260
Like that's a big step forward in terms of the security of the SIO-based credential technology.

31:21.040 --> 31:22.160
Yeah.

31:22.340 --> 31:29.440
I want to clarify, just in case, because it's easy to get lost in the weeds on this if it's a new concept to you.

31:29.440 --> 31:42.760
The main gain of an SIO, a secure object of any kind, is not only is the data encrypted, but as he mentioned, it's cryptographically bound.

31:42.760 --> 31:58.560
It's tied to something unique and unchangeable about that credential such that if you mess with it, if you tamper with it, you change even one bit of data, it breaks the signature and the reader considers it invalid.

31:58.560 --> 32:03.600
It's a very important and critical piece of security.

32:05.600 --> 32:06.560
Indeed.

32:07.020 --> 32:10.060
So let's talk about the advantages of SIOs.

32:10.420 --> 32:13.440
So we already spoke a bit about some of this.

32:13.440 --> 32:19.600
But there's a really good sort of way to think of this, which is that an SIO is kind of like a tamper seal, right?

32:19.740 --> 32:31.260
If you have the card, right, and the weekend data on the card, the SIO is ensuring that, well, effectively it's a tamper seal, right?

32:31.260 --> 32:33.080
You can't tamper with it at all.

32:33.220 --> 32:35.960
And it's independent of card technology.

32:36.220 --> 32:39.540
It's a really, you know, overall good design.

32:41.740 --> 32:49.020
So the first major technology, right, to talk about with regard to SIOs is iClass SE, right?

32:49.020 --> 32:57.360
So uses the same, like, card technology as iClass, right, which is called PicoPass.

32:57.360 --> 32:58.700
Still cost effective.

32:58.700 --> 32:59.600
It was cheap.

32:59.860 --> 33:02.940
The silicon wasn't broken, right?

33:02.940 --> 33:04.280
It had good read distance.

33:04.280 --> 33:11.300
You know, honestly, a lot of things about iClass as a card technology were good, at least for the time, right?

33:11.780 --> 33:17.320
So iClass SE essentially took iClass and made it more or less secure.

33:18.480 --> 33:18.800
Yeah.

33:18.800 --> 33:26.040
And, you know, if you see iClass credentials, you can see, like, an SE or an SR marking to indicate that there's an SIO on the card.

33:26.280 --> 33:26.760
Yeah.

33:26.760 --> 33:32.540
This is, uh, this is one of the first places where you begin to have that confusion, right?

33:32.540 --> 33:36.640
We talked about how iClass SE gets reused over and over.

33:36.640 --> 33:41.020
So now we're talking about iClass SE cards, specifically.

33:41.120 --> 33:51.140
So they just took the same card technology that they had already, but because their keys were broken and their algorithms were broken, yada, yada, yada, they said, hey, you know what?

33:51.140 --> 33:53.120
The container is still not so bad.

33:53.120 --> 34:03.360
So why don't we just create a new data model and change our keys and change our algorithms and all those things, uh, and basically kind of remix it.

34:03.520 --> 34:06.000
And it did pretty well.

34:06.000 --> 34:06.480
Yeah.

34:07.300 --> 34:08.260
Indeed.

34:10.380 --> 34:14.280
But let's talk a little bit about the limitations of PicoPass, right?

34:14.280 --> 34:17.880
The, the card technology that, uh, you know, iClass is built on, right?

34:17.880 --> 34:26.820
It has limited memory, uh, you know, you really only have two application areas, uh, so there, you can't have too many different uses, right, for an iClass card.

34:26.920 --> 34:36.740
It doesn't have replay protection, um, you know, there are a number of, of, of bugs, uh, in terms of reader firmware impacting iClass and PicoPass specifically.

34:37.160 --> 34:49.200
Uh, more, more recently PicoPass became EOL, uh, and HID actually had to, had to, uh, develop a custom IC that emulates PicoPass so they can continue to sell iClass cards.

34:49.860 --> 34:53.580
Um... Challenges of not owning your whole supply chain, right?

34:53.580 --> 35:04.860
They bought someone else's chip, they said, hey, we're gonna rebrand this, call it iClass, and then eventually they stopped making that chip, so they had to emulate it, basically.

35:05.540 --> 35:06.660
Indeed.

35:06.680 --> 35:23.080
Uh, and actually, uh, you know, NVX, uh, discovered a really interesting, uh, implementation defect in, in reader firmware having to do with iClass and is giving a talk called iClass Throwing Away the Keys on Friday.

35:23.080 --> 35:24.000
That's today.

35:24.000 --> 35:26.040
Yes, today in RF Village.

35:26.040 --> 35:29.440
Um, definitely check it out.

35:30.180 --> 35:31.440
We're excited.

35:31.440 --> 35:33.780
So, let's talk about CEOS.

35:33.780 --> 35:40.460
So, CEOS is that card technology, uh, that was shown in, in the initial, uh, video at the beginning of the talk.

35:40.580 --> 35:44.840
It is HID's flagship to this day, uh, launched in 2012.

35:44.840 --> 35:52.520
Originally they called it iClass CEOS, uh, which now, you know, uh, you know, may, may be a, an interesting decision, right?

35:52.520 --> 35:58.580
Because iClass, uh, has certain, you know, connotations of, of weakened security, right?

35:58.720 --> 36:06.000
Um, but, uh, at the time, right, iClass was a well-established brand name, so it, it, it helped really sell it to, to their customer base.

36:06.080 --> 36:09.100
But it, it, you know, CEOS, honestly, it gets, it gets a lot of stuff, right?

36:09.100 --> 36:12.120
Like, this is, this is a really solid credential technology.

36:12.220 --> 36:13.880
It's more memory, much better security.

36:14.000 --> 36:16.280
It's, it's very much standards-based, right?

36:16.340 --> 36:27.600
You don't have a lot of the proprietary, uh, you know, algorithms and, and, and, and, uh, diversification algorithms and things like that that were being done with, with iClass and, and previous generations of technology.

36:27.600 --> 36:29.120
They made tons of improvements.

36:29.180 --> 36:29.320
Yeah.

36:29.320 --> 36:33.620
Like, they, this was like the Rolls-Royce of credentials when it came out.

36:33.620 --> 36:39.280
Uh, and the price reflects that, uh, as, as you can see.

36:39.280 --> 36:41.640
Um, but it had a lot of cool stuff.

36:41.640 --> 36:55.600
Uh, and, um, you know, it wasn't really big on adoption initially because of the cost, but now that's actually very, very cost effective because they've had like 10 years plus to optimize it.

36:55.600 --> 36:55.880
Yeah.

36:55.880 --> 36:56.340
Agreed.

36:56.340 --> 37:02.220
And, and it's also, you know, sort of a virtual credential or, or, or can be in a sense, right?

37:02.220 --> 37:04.200
So see us, there are see us cards.

37:04.200 --> 37:09.360
There are also see us, uh, virtual cards or mobile cards, right?

37:09.360 --> 37:13.720
Uh, you know, if you've heard of like HID mobile access or things like that, right?

37:13.720 --> 37:18.980
Um, there are all these different, different, uh, form factors really where see us can exist.

37:18.980 --> 37:21.060
Uh, so it's extremely portable, extremely mobile.

37:21.060 --> 37:24.060
I'd say to this day, it's a very solid credential technology.

37:24.700 --> 37:34.300
Um, now let's talk about support for other technologies with, with, within, uh, within the platform.

37:34.300 --> 37:38.340
So, uh, SIOs, again, they made things very card agnostic, right?

37:38.340 --> 37:43.100
You're not relying on proprietary features of iClass or really any other credential.

37:43.100 --> 37:47.840
It's, uh, you know, uh, you know, SIO can be applied, you know, even to my fair classic, right?

37:47.840 --> 37:51.460
Another sort of, uh, infamously insecure card technology.

37:51.580 --> 38:00.060
Uh, they're, you know, they're very much feature proof, um, and, uh, yeah, they're, um, they're an extremely powerful technology.

38:00.060 --> 38:02.600
I don't know, Bubik, if you have anything you want to add or Nick?

38:02.700 --> 38:09.860
Uh, yeah, so the, the, the, the neat idea about a secure object is that it's agnostic.

38:09.860 --> 38:28.960
So you can take any container you want, whether it's an iClass, uh, Pico pass container or whether it's SIOs or it does fire, whatever flavor of little tiny crappy digital safe that you want to use, you can actually still put this concept of a secure object on there.

38:28.960 --> 38:32.380
And so it makes it very extensible and, and reusable.

38:32.560 --> 38:39.460
Um, and it gives them a lot more flexibility because they can control the data model.

38:39.540 --> 38:45.620
Uh, you can't control as much how the card technology itself behaves in the reader, but that's kind of splitting hairs a little bit.

38:45.620 --> 38:48.480
So we don't need to spend too much time on that.

38:48.480 --> 38:53.580
Uh, but they really did try to intend for this card to be the one card that ruled them all.

38:53.580 --> 38:56.020
And they tried to be as forward thinking as possible.

38:56.020 --> 38:59.100
And they really kind of hit that mark in a lot of ways, in my opinion.

38:59.400 --> 39:00.320
I agree.

39:00.320 --> 39:01.140
I agree.

39:01.140 --> 39:05.220
So let's talk about how SE credentials are encoded.

39:05.820 --> 39:12.360
Um, so to start, right, you have to obtain the binding from the card, really the serial number or UID of a card.

39:12.480 --> 39:15.000
Uh, you have to calculate diversified write keys.

39:15.380 --> 39:24.020
You need to generate a unique ID, right, for the secure object and calculate the keys for that, for encrypting the secure object.

39:24.060 --> 39:25.900
You gotta encrypt and sign the data.

39:26.880 --> 39:33.360
And lastly, you need to authenticate the card with diversified keys and write that, write the SIO to it.

39:33.360 --> 39:37.660
And so that brings us to the iClass SE encoder, right?

39:37.660 --> 39:53.200
This is how HID enables customers to encode their own SE, right, SIO-enabled credentials, be that iClass SE, SEOS, MyFairClassic, you know, with SIO, uh, that's SIO-enabled, et cetera, right?

39:53.200 --> 39:56.280
And it came in two form factors, or it comes in two form factors.

39:56.320 --> 40:02.860
The desktop encoder, um, as well as an embedded printer-based encoder as well.

40:03.740 --> 40:06.640
And, uh, it can do a lot of stuff, right?

40:06.640 --> 40:14.820
It can encode, you know, primarily, right, it can encode genuine HID cards, but you can also encode third-party cards as well, um, right?

40:14.820 --> 40:21.800
It can, you know, encode prox, uh, lots of different high-frequency credentials, including both SEOS, DesFire, iClass SE.

40:21.800 --> 40:24.080
Yeah, these were, these were pretty cool little tools.

40:24.080 --> 40:32.020
Uh, not cheap, uh, very, very expensive, but, uh, you know, if you had a need for it, it really kind of came in clutch.

40:32.020 --> 40:48.520
So it allowed you not only to create your own credentials on demand, but also it allowed you to, you know, create custom configuration cards, and really enable, being able to service your own platform a lot more easily than having to call the vendor every single time.

40:48.520 --> 40:54.460
So it definitely filled a very important business need, uh, from that perspective.

40:55.560 --> 41:03.480
Absolutely, and, and yeah, configuration cards, that last one there, that's, that's an important one that we're going to talk about a little more in a bit.

41:03.620 --> 41:07.440
Um, but first let's talk about the target markets for this.

41:07.440 --> 41:09.220
Why did HID make this, right?

41:09.220 --> 41:10.860
Who, who, who, who's buying this?

41:10.860 --> 41:12.740
Who, you know, what, what is it used for?

41:12.840 --> 41:13.360
Right?

41:13.360 --> 41:25.060
So whether it's customers that have custom keys, right, for, for various security reasons, or they have a bunch of credentials that they want to keep, they don't have to buy new ones, but they want to re-encode them, like put it, put different data on them or,

41:25.060 --> 41:26.600
or switch from standard to elite.

41:27.060 --> 41:32.440
Uh, they want to generate their own card numbers that HID doesn't know about, right?

41:32.460 --> 41:37.100
Or they want to customize certain reader behavior functionality or loading keys, right?

41:37.100 --> 41:39.060
And so they want to create config cards.

41:39.580 --> 41:39.720
Um.

41:39.720 --> 41:42.340
A couple of these are a little sneaky in my opinion.

41:42.340 --> 41:46.860
So for example, you know, we have customer generated card numbers on there.

41:46.860 --> 42:03.120
Uh, that is a very specific use case because what you may not realize, or maybe many of you already do realize if you're in this talk, is that by default when you buy credentials , they are pre-programmed with card numbers and weekend information.

42:03.180 --> 42:10.320
So someone else is giving you a box of passwords to use and you assign those passwords.

42:10.320 --> 42:13.340
It feels kind of weird sometimes when you think about it.

42:13.520 --> 42:21.100
And so what the encoder would allow you to do, if you're really super secret squirrel about it, is you could get blank card stock.

42:21.100 --> 42:38.340
And you could have this encoder either at your desktop or built into your printer, uh, and you can basically generate your own card numbers, uh, and then you wouldn't have to worry as much about some third party vendor that you don't have control over knowing those critical bits of information.

42:38.480 --> 42:45.880
Of course that's a lot of overhead too, because now you have to manage and remember all the card numbers that you used, ever, so you can't repeat it.

42:46.060 --> 42:49.240
Uh, and in practice it wasn't a feature that's used very often.

42:49.240 --> 42:51.960
But you still need to have that capability there.

42:52.240 --> 42:54.920
The other sneaky thing is integrator lock in.

42:54.920 --> 42:56.960
You might be thinking how does that work?

42:57.020 --> 43:05.760
There have been a couple of areas, globally, where a integrator that has a really strong market presence will say, hmm, you know what?

43:05.980 --> 43:15.080
We're going to get our own custom key and all of our customers, we're going to issue them readers and cards that use our custom key.

43:15.320 --> 43:24.340
And so now if you're one of their customers and you need more readers or you need more cards, you only got one place you can go in order to get interoperable credentials.

43:24.480 --> 43:26.520
Because only they have the key.

43:26.800 --> 43:34.480
So we don't see too much of that in the U.S., but we did see some of that in Singapore and Australia and a few other places.

43:34.480 --> 43:42.100
So it's just really interesting to see how people kind of creatively use some of the features that are offered by the platform.

43:43.460 --> 43:44.420
Indeed.

43:45.300 --> 43:50.440
So, uh, the I-Class SE encoder, the CP1000, that's the hardware.

43:50.440 --> 43:52.100
Assure ID is the software.

43:52.580 --> 43:53.080
Um, right?

43:53.080 --> 43:56.380
It, it, it doesn't exclusively exist for the CP1000, right?

43:56.380 --> 43:58.880
It's used primarily for badge printing, right?

43:58.880 --> 44:08.460
Um, but it is the software primarily that is used for credential encoding with the CP1000 and, and it sort of facilitates all of these encoding operations.

44:08.980 --> 44:09.080
Um.

44:09.080 --> 44:09.620
Yeah.

44:09.620 --> 44:11.040
This is, this is the front end.

44:11.040 --> 44:16.720
This is the main default user interface for interacting with this piece of hardware.

44:16.900 --> 44:21.380
Uh, and it is a little bit clunky to use.

44:21.380 --> 44:22.640
I'm not going to lie.

44:22.660 --> 44:26.640
Um, but it's kind of the only thing that you have out of the box.

44:26.640 --> 44:42.720
Uh, some software vendors, uh, if you have a really large access control system, let's say from, well now, or software house, uh, some vendors actually are able to integrate pieces of this software, the SDK, into their access control software.

44:42.720 --> 44:48.420
So as a customer, when you wanted to encode a card, you don't have to load a separate application.

44:48.420 --> 44:56.640
You can just do it natively in your application and behind the scenes it makes the appropriate API calls, yada, yada, yada.

44:56.720 --> 45:01.160
Uh, so that's, that's how the SDK portion is designed to be used.

45:01.900 --> 45:02.900
Indeed.

45:03.660 --> 45:06.640
So let's talk about the internal operation of the encoder.

45:06.640 --> 45:15.680
Uh, essentially, right, everything in, in that box, right, that is inside of the encoder itself, which also happens to be rectangular in shape.

45:15.880 --> 45:22.040
Uh, so you have the desktop here, essentially the Assure ID software in normal operations, right?

45:22.180 --> 45:29.440
That talks to core, which acts as a router between different components in the encoder, sending messages back and forth, right?

45:29.440 --> 45:32.240
Which will send commands to the, to the SAM.

45:32.320 --> 45:35.980
The SAM will send commands, uh, to the NFC front end.

45:36.000 --> 45:42.760
NFC front end talks to the credential and, and that's sort of the, the overall sort of, uh, block diagram of how encoding works.

45:43.540 --> 45:48.980
Um, and you know, the, the, these encoders are, they're very customizable, they're very flexible, right?

45:48.980 --> 45:51.640
You can use different types of keys with them.

45:52.040 --> 46:01.140
Um, one sort of interesting thing is that, uh, you know, HID does, you know, sell these, uh, encoders, but they're not unlimited use, right?

46:01.140 --> 46:08.200
They actually have a credit system, uh, where when you buy an encoder, only have, you can only encode a certain number of cards of different credential types.

46:08.200 --> 46:09.180
This is super sneaky.

46:09.180 --> 46:14.980
You spend $1,500 or $2,000 on an encoder, you're like, cool, I can make as many cards as I want, right?

46:14.980 --> 46:15.860
Nope!

46:17.200 --> 46:18.900
Indeed, indeed.

46:19.280 --> 46:21.920
You can make 30 configuration cards.

46:22.120 --> 46:25.680
Out of the gate, yes, only, only 30, yes.

46:26.860 --> 46:30.520
Um, so now let's talk about the, the reader side of things.

46:30.520 --> 46:34.360
So the iClass SE reader, it's generally what we call revision e-readers.

46:34.360 --> 46:39.200
Technically there are some revision d-readers that came before it, although they're very rare.

46:39.440 --> 46:43.240
Um, they can be branded as iClass SE, multi-class SE, and a few other things.

46:43.240 --> 46:45.500
They come in all kinds of different form factors.

46:46.300 --> 46:52.280
Um, uh, but I, uh, I, I can guarantee that most of the people in this audience have seen at least one.

46:52.280 --> 46:54.520
Yeah, it's the same piece of hardware internally.

46:54.520 --> 46:58.980
It's just marked up differently with different stickers and different software configurations.

46:59.400 --> 47:07.440
Uh, and then of course they make them in different sizes and shapes, but the primary circuitry and the design of it is still all the same.

47:07.820 --> 47:08.200
Yeah.

47:08.200 --> 47:11.840
So let's talk about how things are decoded, right?

47:12.000 --> 47:27.560
Um, so in short here, what's happening is that, um, once, once the card is, is pulling back or, or, or reading the encrypted data blob, now the SIO from the card, first it's doing a signature check, right?

47:27.560 --> 47:29.920
Making sure that the data hasn't been tampered with.

47:29.920 --> 47:37.380
Then it's decrypting the data and then it's parsing the weekend data, that, that, that same weekend data that Babak was talking about earlier, right?

47:37.380 --> 47:49.820
That everything else is sort of a wrapper around, um, and, and sending it back to the door controller, which will ultimately decode it and, and, and make a sort of a, a go, no go, or an allow slash deny decision.

47:51.180 --> 47:55.960
Um, so just, uh, and, and, uh, so yeah.

47:55.960 --> 47:56.400
Go ahead.

47:56.400 --> 47:56.500
Yeah.

47:56.500 --> 48:01.940
This is kind of a cool zoomed in part of what actually happens inside the reader when dealing with an SIO.

48:01.940 --> 48:02.180
Yeah.

48:02.180 --> 48:08.840
So what I just explained, like the job of that signature check is to see, has that data been modified?

48:09.180 --> 48:13.700
Uh, is that data bound to the UID or CSN of the car that it just came off of?

48:13.920 --> 48:20.060
So, uh, after that step and only if that step succeeds, does it actually do the decryption of that weekend data.

48:20.100 --> 48:25.260
And then once it decrypts the weekend data, it does the transmit step, which we all know and love.

48:25.260 --> 48:28.920
That's when we hear the beep and it kind of goes on from there.

48:28.920 --> 48:30.960
So, uh, yeah.

48:30.980 --> 48:31.640
Thanks.

48:32.460 --> 48:45.240
So migration modes, uh, so in the industry, yeah, in the industry, there's a, there's a type of reader called migration readers that are designed to support both old and new technologies, right?

48:45.240 --> 48:47.800
And, and like they need to exist, right?

48:47.800 --> 48:54.660
Their, their existence is to help customers move from less secure, older technologies to more secure, newer ones, right?

48:54.660 --> 48:59.080
And so, so by definition they have to support multiple credential types.

48:59.180 --> 49:04.560
And the most common one you'll see in the field is probably the multi-class SE reader from HID.

49:04.760 --> 49:06.360
It's literally the Swiss army knife of readers.

49:06.360 --> 49:09.460
It reads, you know, pretty much all the common technologies.

49:10.000 --> 49:19.560
Um, and even though they aren't always needed by customers, a lot of times integrators will install these and stock these because they always work, right?

49:19.560 --> 49:23.740
If you have to keep, if there's only one kind of reader you can keep in stock, right?

49:23.740 --> 49:28.500
To be able to, to, to sell your, your, your customers, your clients, right?

49:28.580 --> 49:30.420
It stands to reason a lot of people are going to go with the multi-class.

49:30.420 --> 49:31.520
Um, it always works.

49:31.680 --> 49:34.180
And that is indeed what happens a lot of the time.

49:34.180 --> 49:36.620
It always works is a big problem in the industry.

49:36.620 --> 49:38.000
Not just with readers.

49:38.060 --> 49:43.860
So, not only do we have these readers that can read all these different card technologies, you're like, oh, that's great.

49:43.960 --> 49:45.260
Uh, it's very flexible.

49:45.260 --> 49:46.180
It's always going to work.

49:46.180 --> 49:46.980
That's awesome.

49:46.980 --> 49:50.460
Except it also really undermines how access control works.

49:50.640 --> 50:09.600
Uh, similarly on the hardware side, when it comes to electric strikes and the door hardware that goes in the door, if you've ever slipped a latch with a card or anything like that, that's because that strike is either misadjusted or also very likely sometimes way too darn big for the actual latch.

50:09.600 --> 50:13.720
And as a result , those deadlatch mechanisms don't actually work properly.

50:13.720 --> 50:24.660
But if they only carry one part that's just really big and it just works with everything, then it's just a lot easier for that integrator as well and they probably get a better price on it too.

50:25.600 --> 50:26.460
Indeed.

50:26.460 --> 50:32.520
And these migration readers open the door for so-called downgrade attacks, credential downgrade attacks, right?

50:32.600 --> 50:41.980
Uh, because as we discussed earlier, right, uh, at the end of the day, uh, everything else is sort of just a wrap around that WGAN's data that Bobik was talking about earlier.

50:41.980 --> 50:49.260
So as long as the right WGAN's data gets sent from the reader to the door controller, it doesn't matter necessarily what the credential technology on the front end is.

50:49.260 --> 50:58.420
So you can take WGAN data from a, you know, a more secure credential that comes out of a reader and put it on a prox credential instead as long as it's supported.

50:58.500 --> 51:01.300
And as far as the door controller is concerned, it's the same thing.

51:01.300 --> 51:02.280
It's the same person.

51:02.660 --> 51:05.220
But we don't wanna bore you too much with this.

51:05.220 --> 51:06.740
It's really important stuff.

51:06.980 --> 51:16.920
Uh, we're gonna wanna, uh, get to some more interesting stuff here in a second, but because it's good context, uh, we wanna make sure you have a little bit of it at least.

51:17.440 --> 51:18.240
Indeed.

51:18.500 --> 51:23.940
Um, so let's talk about the iClass SE reader modules, right?

51:23.940 --> 51:28.820
So not all iClass SE readers look like a typical iClass SE reader, right?

51:28.820 --> 51:35.380
There are embedded modules where other vendors can actually take this technology, the, the, the reader platform and embed it in something else.

51:35.380 --> 51:40.420
Something that looks completely different, such as like a biometric reader or, or, or something along those lines.

51:40.780 --> 51:45.520
Um, so now let's talk about configuration methods for these readers.

51:45.520 --> 51:47.980
So it's all SNMP3 based, right?

51:48.140 --> 51:51.120
Uh, which is an interesting choice of, of protocol we'll get to in a bit.

51:51.300 --> 51:55.920
Um, but, you know, it, it's SNMP3, SNMPv3 over APDUs.

51:55.920 --> 51:58.580
You can do it over NFC, BLE, OSDP, UART, et cetera.

51:58.580 --> 51:59.500
It doesn't matter.

51:59.740 --> 52:08.620
And there are a few different ways to do it, but, you know, generally for readers in the field, it's either with config cards or the HID reader manager app most of the time.

52:09.540 --> 52:19.020
Um, generally when it comes to reader, generally when it comes to reader configuration, uh, you know, there are a lot of different things that you can do.

52:19.480 --> 52:22.360
Um, right?

52:22.360 --> 52:28.400
Uh, and, and these configuration cards specifically, uh, were, were a bit of a new technology with the platform.

52:28.400 --> 52:31.020
Uh, they're Java card based, um, right?

52:31.020 --> 52:33.320
Also known as the Artemis updater card.

52:33.320 --> 52:39.980
Um, and, uh, if you encode one with a CP1000 encoder, right, they, you know, they have credits.

52:39.980 --> 52:42.460
Uh, ones from the factory have unlimited credits.

52:42.460 --> 52:43.620
Um, yeah.

52:44.120 --> 52:50.040
In short, HID config cards are the same as the Java, uh, are the same technology, right?

52:50.040 --> 52:58.700
They're Java cards like a J3D081, just like many EMV bank cards, credit cards, et cetera, are, uh, same, same platform, different use case.

52:59.720 --> 53:03.260
Uh, so let's talk a bit about how the firmware structure sits.

53:03.280 --> 53:04.480
Do you mind jumping on that?

53:04.480 --> 53:04.800
Sure.

53:04.800 --> 53:05.240
Yeah.

53:05.240 --> 53:06.020
Thank you.

53:08.940 --> 53:15.680
Uh, so from a firmware perspective, we've got, uh, those components we talked about earlier within the encoder kind of similar components within the reader.

53:15.680 --> 53:19.760
We've got that core, SAM, uh, we've got expansion modules.

53:19.760 --> 53:26.020
Each of these things have firmware and all those things have to be upgraded or ideally they should be able to be upgraded.

53:26.020 --> 53:32.160
So, uh, one of the ways that those things are actually updated is firmware upgrade cards.

53:32.380 --> 53:36.940
Uh, same interfaces that work for the config cards also work for firmware upgrades.

53:36.940 --> 53:41.440
So you've got the, uh, NFC, BLE, OSTP, et cetera.

53:41.440 --> 53:46.980
Uh, although OSTP doesn't have as much market penetration yet as we'd like for firmware upgrades, but we're getting there.

53:47.120 --> 53:55.300
So, uh, for firmware upgrade cards, there's actually this little plastic bracket that you hang because you have to, you like, to fit firmware on cards, you have to use a lot of cards actually.

53:55.300 --> 54:04.260
If anyone remembers splitting RAR files onto floppy disks, a bunch of disks to take Age of Empires home from school with the fast internet connection.

54:04.260 --> 54:11.120
But, yeah, so, uh, you've got a bunch of firmware cards, uh, really didn't get used.

54:11.120 --> 54:19.720
They were clunky, uh, could end up in, like, with brick readers, but ultimately, like, firmware upgrades are still kind of a problem even in this new, new, new platform.

54:20.100 --> 54:28.040
So, uh, but as we had mentioned, uh, this platform introduced a SAM, otherwise known as a secure application module.

54:28.040 --> 54:30.860
It's entire job is to protect secrets.

54:30.920 --> 54:33.740
So it's implemented on top of a secure microcontroller.

54:33.960 --> 54:43.980
Uh, it's, it's designed to be a black box to protect your secrets, whether those are cryptographic keys or, uh, the, like, algorithms or intellectual property that makes your product unique.

54:44.060 --> 54:51.580
You can kind of put that into a black box and, uh, with using a secure microcontroller, it's entire job is to just protect those secrets.

54:51.600 --> 54:53.260
Yeah, do you mind if I touch on this a little bit?

54:53.260 --> 54:53.480
Yeah, go ahead.

54:53.480 --> 54:57.400
So, so this is, you know, very similar to the concept of a TPM, basically.

54:57.420 --> 55:00.360
You have a special processor or a special hardware module.

55:00.360 --> 55:01.860
It's only job is security.

55:02.120 --> 55:06.480
Whether it is, you know, storing keys or performing cryptographic operations.

55:06.900 --> 55:10.920
Uh, and they're designed to, you know, resist really, really advanced threats.

55:11.080 --> 55:15.420
Uh, this particular SAM was made by, uh, Infineon ultimately.

55:15.420 --> 55:16.880
It was an SLE88.

55:17.100 --> 55:25.240
Uh, and one of the first things that we wanted to figure out is how do we get access to this so we can try to understand it, uh, better ultimately.

55:25.760 --> 55:31.640
Uh, the SAM comes in a lot of different types and shapes and sizes, uh, for different purposes, right?

55:31.640 --> 55:37.240
So you have these SIM cards, you have, uh, you know, different physical form factors that can be used.

55:37.240 --> 55:42.060
They can go into readers, they can go into printers, they can go into third party products.

55:42.100 --> 55:47.960
But ultimately this is the piece of technology that is responsible for key management.

55:48.140 --> 55:57.960
And so inside of that SAM, which is kind of like a digital vault for keys, uh, there are, you know, special write only slots that you can only write keys to.

55:57.960 --> 56:00.920
You're not supposed to be able to read keys out of them.

56:01.160 --> 56:07.360
Uh, and these, as I mentioned, have both official applications and you might have heard some of the unofficial applications.

56:09.160 --> 56:10.660
Someone owns a flipper.

56:11.820 --> 56:13.020
Of course that's Eric.

56:13.020 --> 56:15.500
Eric Betts, uh, writer of Cedar.

56:15.500 --> 56:18.000
If you ever, you know, have used that, it's a super cool app.

56:18.000 --> 56:19.880
We can talk about it in RF Village later.

56:20.160 --> 56:27.820
Uh, but yeah, it's basically, you know, this little super secure little guy and, you know, he handles all the important stuff.

56:27.940 --> 56:32.560
Uh, and so you put it inside of anything that you want compatibility with and there you go.

56:32.560 --> 56:33.660
Bob's your uncle.

56:33.900 --> 56:36.700
Uh, the firmware is separated out into a couple of pieces.

56:36.700 --> 56:40.720
We're not going to get super deep into the weeds on that just for the sake of time.

56:40.720 --> 56:44.380
But suffice to say, it is a layered implementation.

56:44.520 --> 56:51.840
Uh, that builds basically a chain of trust, uh, top to bottom to try to protect everything along the way.

56:51.840 --> 57:03.220
So, there's multiple, you know, steps and keys that, you know, control what applications run on there, what data's accessible by what application, so on and so forth.

57:03.220 --> 57:08.940
But the reason I sped up a little bit there is because we want to make sure we talk about the most important part.

57:08.940 --> 57:10.080
It's the heist.

57:10.160 --> 57:12.500
And of course, you know, safety first, right?

57:12.500 --> 57:16.440
So we gotta... that's right.

57:17.980 --> 57:21.520
This is some high intensity stuff here, right?

57:21.860 --> 57:25.220
Uh, so, so let's talk about this process a little bit.

57:25.780 --> 57:34.680
Um, you know, I, I remember, you know, Aaron and I talking a lot about one of the favorite aspects of, uh, of hacking this project is what?

57:34.960 --> 57:46.220
Yeah, so, so one of the really great parts of this project is that, you know, a lot of reverse engineering work that you do involves sort of unraveling information that you already have, right?

57:46.220 --> 57:57.340
So, whether that's reversing a binary in Ghidra, and you're just trying to figure out what a bunch of, you know, uh, instructions are doing, um, you know, that, you're, you know, all the same, right?

57:57.340 --> 57:59.560
You're, you're trying to make sense of info you already have.

57:59.560 --> 58:03.760
In this case, right, a lot of what happens inside of the SAM is sort of a black box.

58:03.980 --> 58:08.500
So we have, uh, you know, a lot of information, but we don't have all the information.

58:08.500 --> 58:13.220
And so you really have to like, put yourself into the head space of who built this.

58:13.740 --> 58:22.180
And, you know, what, what, if they, if they, you know, did X, Y, and Z, then how might they have designed, you know, some other thing?

58:22.180 --> 58:26.320
And you have to make these really educated guesses and, and put yourself in the shoes of the person.

58:26.320 --> 58:27.500
And you gotta really stretch yourself.

58:27.500 --> 58:28.860
It crosses a lot of domains.

58:28.860 --> 58:32.920
It's not just software, it's hardware, it's firmware, it's a lot of really cool stuff.

58:33.080 --> 58:35.220
So first we need to, you know, think about this.

58:35.220 --> 58:36.660
How do we want to approach this?

58:36.660 --> 58:38.900
Well, where are the master keys?

58:38.940 --> 58:42.580
Let's think through all the places that keys are used and stored.

58:42.680 --> 58:48.120
Let's think through what kind of operations and what commands would have to use those keys.

58:48.620 --> 58:51.980
Uh, and then how do those keys get there in the first place, right?

58:51.980 --> 58:58.780
We gotta understand the whole process and see if we can find any, uh, you know, vulnerabilities in the armor, so to speak.

58:58.900 --> 59:02.720
So we identified our targets, which is anything with keys, of course, right?

59:02.720 --> 59:10.680
That includes standard readers, desktop USB readers, embedded readers, encoders, of course, that's one of the big things we're talking about today.

59:10.720 --> 59:25.360
Uh, configuration cards, the common denominator in all of these things is that iClass SE secure processor, it's that SAM, cause that's, that's the one trusted, you know, piece, that component that is allowed to do all this stuff.

59:25.600 --> 59:28.720
So how do we turn unknowns into knowns?

59:28.720 --> 59:32.000
Well, we gotta start touching hardware, right?

59:32.000 --> 59:43.960
So we need to get inside, see what we can, uh, find out about what chips are used, see if we can tap into some communication buses, and just start trying to understand the language that it speaks.

59:44.100 --> 59:51.280
Uh, on the firmware side, we want to try to get a copy of anything we can get our hands on and start reverse engineering, right?

59:51.280 --> 59:56.120
That is like Aaron's and, uh, Nick's bread and butter.

59:56.120 --> 01:00:12.540
I can poke hot pokey things at hardware all day long, I'll cut things apart, but honestly when it comes to the actual, like, hardcore reverse engineering, I still rely on geniuses like Aaron and Nick, otherwise I'm, you know, just not as effective on my own.

01:00:12.760 --> 01:00:22.240
Uh, but, you know, all the normal, you know, uh, techniques that you'd apply, we had to apply to these different domains, software, firmware, hardware, etc.

01:00:22.460 --> 01:00:40.160
Uh, as a fun story, uh, while we were working on this, uh, one of our mutual friends, actually, who we didn't know was a mutual friend until we started this project, Vlad, um, he, uh, as a side quest, decided to look at, uh, some, some readers and there was this really fun,

01:00:40.160 --> 01:00:50.600
uh, exchange that we had that he gave me permission to post, uh, and he cut it apart and he just sends me this photo out of the blue and he says, Bobik, what the fuck is this powder?

01:00:50.760 --> 01:00:56.440
The reader's full of it, does HID literally put a felony amount of cocaine in every reader?

01:00:56.440 --> 01:01:04.740
And I corrected him, of course, that's clearly anthrax, that's how HID takes out their researchers and, of course, that explains a lot.

01:01:04.900 --> 01:01:20.440
Uh, but no, that's, that's not the case, uh, this is, this is just, you know, uh, epoxy fill, uh, serves a couple different purposes from weather, you know, resistance, uh, to, uh, making it harder to get to the damn thing, like, as evidenced by these photos.

01:01:20.860 --> 01:01:22.680
Um, but that was just the hardware piece.

01:01:22.680 --> 01:01:26.480
On the software piece, we had tons of other tools as well, right?

01:01:26.480 --> 01:01:30.460
You know, we had Aaron and Nick breaking out DotPeak and Jeb.

01:01:30.460 --> 01:01:42.480
Uh, I was breaking out the Celia logic analyzer and we were doing all this remotely, like during COVID, you know, you were in San Francisco, I was in Phoenix and tons of screen sharing, way, way too much screen sharing.

01:01:42.480 --> 01:01:57.180
Uh, so lots of tiny wires, lots of, you know, hot, uh, you know, dangerous things, blood, sweat and tears, patients, and of course, a very, very healthy slash unhealthy dose of neurodivergent persistence.

01:01:58.820 --> 01:02:18.220
Uh, FCC docs, if you've ever, you know, been curious, it's a great resource for finding out, you know, preliminary information about hardware, uh, anything that has a radio in it is required to go through FCC certification, so you sometimes get leaks of products well in advance of the product actually coming out.

01:02:18.220 --> 01:02:32.460
And I remember back in 2016, there was this, you know, article on a, uh, tech site, like, oh, Apple is, you know, working on this mystery device, you know, it has NFC and Bluetooth and, you know, maybe it's a new crazy airport extreme and I looked at the sticker and I'm like,

01:02:32.460 --> 01:02:37.440
dude, it says D1D0, it's weekend, it's just a card reader.

01:02:38.000 --> 01:02:48.060
Uh, and yes, it was, it was just a card reader as, you know, it came out, uh, six to eight months later and it's a custom piece, uh, for Apple that they use in their facility, but we digress.

01:02:48.060 --> 01:02:56.200
We did FCC research on the iClass SE platform, we got some kind of blurry potato quality photos, so we had to get to that ourselves.

01:02:56.200 --> 01:03:14.420
We tried a lot of stuff, guys, we tried cutting acetone, I tried boiling readers in my apartment, uh, to try to heat up the epoxy and make it more brittle, um, I remember hitting it with like 1,200 degrees of hot air and trying to chip away at the epoxy and it just sucks,

01:03:14.420 --> 01:03:16.060
um, but that worked.

01:03:16.060 --> 01:03:28.440
I found that hot air embrittled the epoxy, uh, it did not smell good, I probably have some stuff going on in my head as a result, but I'm here and you're here and we're gonna have a good time.

01:03:28.660 --> 01:03:39.420
Uh, so here's a photo, uh, that actually one of our close friends, Kevin, uh, 0xffff took when he did the same process and he's just a master at this stuff.

01:03:39.480 --> 01:03:41.420
And you can see it's a little bit clearer.

01:03:41.860 --> 01:03:44.440
And of course, there's our, there's our SAM, right?

01:03:44.440 --> 01:03:46.280
That's, protects the secret things.

01:03:46.480 --> 01:03:48.220
That's the thing that we're trying to hack.

01:03:48.220 --> 01:04:00.180
There's other chips in there as well, we have the RF front end, the HF front end, uh, the main microcontroller, which we refer to as core , uh, and, you know, we wanted to figure out, how do we, how do we get to these SAMs?

01:04:00.180 --> 01:04:01.960
How do we get more access to more of them?

01:04:01.960 --> 01:04:05.080
And, you know, readers aren't cheap, so we gotta try to figure it out.

01:04:05.080 --> 01:04:24.020
What I ultimately, by accident, figured out is that by a weird quirk of manufacturing, uh, on the back of the reader, if you'll notice, right over here, there's this debug port that's actually used for, uh, it's an expansion port for external modules like Bluetooth and stuff like that.

01:04:24.020 --> 01:04:29.880
And something about the manufacturing process required them to put a little plastic bubble in that area.

01:04:29.880 --> 01:04:35.320
And wouldn't you know it, the SAM's right in that bubble with no epoxy surrounding it.

01:04:35.500 --> 01:04:48.180
So what I found is I was able to use one of my new best friends, that ultrasonic knife on the right hand side, and the official SAM recovery guide tool, which is just a piece of cardboard that I cut.

01:04:48.340 --> 01:04:50.300
Uh, here's the 1.1 version.

01:04:50.560 --> 01:04:52.500
It's the same thing basically.

01:04:52.720 --> 01:04:54.380
And I'll show you the process.

01:04:54.380 --> 01:04:59.180
This is sped up three times because this is already way too long, let's be honest.

01:04:59.520 --> 01:05:06.800
So I'm just drawing a little rectangle on there and I'm using the ultrasonic knife to cut through that top layer of epoxy and plastic.

01:05:07.240 --> 01:05:09.480
And, uh, it goes pretty quick actually.

01:05:09.480 --> 01:05:10.480
I love this tool.

01:05:10.480 --> 01:05:13.420
If you do a lot of hardware hacking, Wonder Cutter, buy it.

01:05:13.420 --> 01:05:15.000
It's freaking awesome.

01:05:15.820 --> 01:05:19.340
And you saw I sliced through it there pretty quick, even at 3X.

01:05:19.440 --> 01:05:22.000
Uh, and then boom, the board is exposed.

01:05:22.060 --> 01:05:24.860
Now that tool on the right, that's pretty cool actually.

01:05:24.860 --> 01:05:32.060
Those of you who wear glasses, like me for a long time, might remember seeing one in your optometrist's office way back in the day.

01:05:32.200 --> 01:05:34.960
Uh, and it's just a bath of hot glass beads.

01:05:34.960 --> 01:05:41.320
And I used that to preheat the reader to make it easier, uh, to then remove that SAM using a hot air station.

01:05:41.480 --> 01:05:50.320
And so just after a little bit of time, we're able to recover that SAM and that was a very nice, efficient process of trying to, uh, recover SAMs.

01:05:50.320 --> 01:05:54.620
And to be fair, this looks really slick, but we went through a lot.

01:05:54.920 --> 01:05:59.700
Uh, I damaged a lot and spent a lot of money, uh, to get to that point.

01:05:59.760 --> 01:06:04.840
I even had a little SAM cemetery and then I ran out of room and I just stopped.

01:06:04.840 --> 01:06:07.600
I had a whole pile of these dead damn things.

01:06:07.880 --> 01:06:14.160
Um, but ultimately, you know, what worked was choosing the right reader and, you know, doing all the things and great success, right?

01:06:14.160 --> 01:06:19.620
That's actually a pile of SAMs I successfully extracted out of a bunch of readers and all of them worked.

01:06:19.620 --> 01:06:21.020
I was very proud of it.

01:06:21.020 --> 01:06:23.540
Uh, but we wanted to see inside because why not?

01:06:23.540 --> 01:06:26.080
And so, uh, we, I live in Las Vegas.

01:06:26.080 --> 01:06:29.480
Uh, there's a really cool local company here called Full Spectrum Laser.

01:06:29.480 --> 01:06:31.220
They make really cool stuff.

01:06:31.220 --> 01:06:35.040
And for some reason, they let me play with one of their fancy UV lasers.

01:06:35.160 --> 01:06:41.600
And I learned that you can decapsulate an IC with UV really, really fast.

01:06:41.780 --> 01:06:46.380
Um, it is destructive, of course, but, uh, that is, that worked a treat.

01:06:46.380 --> 01:06:49.660
So thank you to Full Spectrum Laser for letting us do that.

01:06:50.220 --> 01:06:55.900
Uh, but these are some dye shots that, you know, Kevin took when he did a little, you know, acid bath process himself.

01:06:55.900 --> 01:07:00.460
And that's what proved that this was, in fact, the Infineon SLE88.

01:07:00.860 --> 01:07:04.320
Uh, and, you know, you kind of, you get where we're going with this.

01:07:04.320 --> 01:07:07.020
I'm going to skip a couple of slides here just for the sake of time.

01:07:07.020 --> 01:07:08.720
We want to show you the cool demo.

01:07:09.100 --> 01:07:13.860
Um, but the Artemis platform, uh, is, was the code name for all of that hardware.

01:07:14.420 --> 01:07:21.680
And as was mentioned earlier, it uses SNMPv3 messages, uh, to, you know, talk to different endpoints.

01:07:21.680 --> 01:07:25.100
Uh, if you're curious about this more, you know, come talk to us later.

01:07:25.100 --> 01:07:27.940
Maybe we can, you know, share a little bit more about it.

01:07:28.020 --> 01:07:32.800
Um, but you want, do you have a quick, uh, quick thing to mention about this?

01:07:32.800 --> 01:07:35.460
I want to make sure we have enough time to get the demos in.

01:07:35.460 --> 01:07:42.420
Yeah, like standards based protocols, uh, using an efficient protocol for an embedded system like this, uh, provides pretty good security actually.

01:07:42.420 --> 01:07:43.780
It's a really interesting use.

01:07:43.780 --> 01:07:44.820
So, yeah.

01:07:45.180 --> 01:07:47.940
Uh, there's a couple different roles that we discovered, right?

01:07:47.940 --> 01:07:50.360
You know, there's OEM admin, there's HID admin.

01:07:50.360 --> 01:07:53.440
These are users basically that have different levels of access.

01:07:53.520 --> 01:07:57.920
Uh, and that was critical for, uh, the exploit itself actually, right?

01:07:58.060 --> 01:08:00.780
Yeah, no, that, uh, that very much was critical.

01:08:00.780 --> 01:08:09.040
And, uh, yes, SNMPv3, while it is primarily a network technology, is actually a really good, uh, it's, it's used quite well in this platform.

01:08:09.040 --> 01:08:09.260
Yeah.

01:08:09.260 --> 01:08:19.660
So all this stuff is built on Java cards, which if you've never played with, they're super, super cool, but they're used for all sorts of different applications, everything from credit cards to access control, et cetera.

01:08:19.660 --> 01:08:21.700
Uh, the config cards use them as well.

01:08:21.700 --> 01:08:26.900
So you can update firmware and, you know, change all those settings that used Java card.

01:08:26.900 --> 01:08:31.820
Uh, but config card operations, Nick, take it away and punch through this.

01:08:31.860 --> 01:08:37.060
When a config card is encoded, uh, the app is initialized, it's told how much space it should have.

01:08:37.060 --> 01:08:43.160
And then after that happens, the encoder says, okay, here are the SNMP keys you should use when you generate messages.

01:08:43.280 --> 01:08:49.060
And then loads the configuration data that can be keys or configuration objects, things like LED color, et cetera.

01:08:49.300 --> 01:08:55.800
So, uh, when that, like that process is finished and you actually go to use it at a reader, the reader selects the applet.

01:08:55.980 --> 01:09:05.940
It, like the reader itself sends the SAM, like engine ID that uses for the SNMP v3 and then, uh, the user name that it should use, that the config card should use to actually generate those messages.

01:09:06.360 --> 01:09:09.020
And then the reader says, okay, give me messages.

01:09:09.160 --> 01:09:11.180
And now we're at the heist, essentially.

01:09:11.340 --> 01:09:18.080
So, uh, we looked at that set SNMP keys portion and found that, like, it requires a secure channel to do that.

01:09:18.080 --> 01:09:24.600
But, uh, if you have a secure channel, you can actually change the keys without knowing them, without deleting data.

01:09:24.880 --> 01:09:33.660
So, if you find a card that you can establish a secure channel with, you can then use that to set SNMP keys to zero.

01:09:34.160 --> 01:09:42.520
Uh, and then when you go and pretend to be a reader, you can give it a SAM session ID, you can give it a user name and then you can just get messages that are encrypted with zeros.

01:09:43.360 --> 01:09:46.880
So, here is a demonstration of that exact thing happening.

01:09:47.220 --> 01:09:54.400
And in this case, we'll take the config card, we'll use it, uh, with this, this standard PCSC reader.

01:09:54.880 --> 01:10:01.560
And, uh, in this case, we're gonna take the, uh, script here to zero, establish a secure channel and zero out those keys.

01:10:02.340 --> 01:10:04.880
And let me just go ahead and skip ahead.

01:10:05.260 --> 01:10:06.160
Oops, sorry.

01:10:06.160 --> 01:10:07.200
Oh, too far.

01:10:20.210 --> 01:10:21.770
I'm trying to zoom ahead.

01:10:22.230 --> 01:10:23.430
Alright, go ahead.

01:10:28.080 --> 01:10:37.640
So, in this, this, when this script runs, it essentially zeroes the keys out on the card so that we can then pretend to be a reader with the Proxmark3 there on the right-hand side.

01:10:38.080 --> 01:10:43.100
Uh, you can see here the success messages generated by the card, showing the keys have been set to zeros.

01:10:43.560 --> 01:10:51.340
And then when we go and use that, uh, config card with a reader, in this case our Proxmark3, uh, we'll tell it to generate those messages.

01:10:52.840 --> 01:10:54.840
Nope, it's not letting me scrub through it.

01:10:57.200 --> 01:11:01.760
Essentially, uh, resulting in... Yeah, uh...

01:11:08.790 --> 01:11:12.710
Yeah, so, uh, so, uh, so, uh, tech problems, sorry guys.

01:11:13.070 --> 01:11:14.610
A live demo might have been better.

01:11:16.030 --> 01:11:26.170
Anyway, uh... So, this video will be uploaded, uh, you know, we're, we're uploading this version of the deck and the demo video, so you guys will be able to play it yourself as well.

01:11:26.170 --> 01:11:33.610
Essentially, we had a custom key encoded on that config card and by zeroing the keys and retrieving that SNMP message, we were able to decrypt it and retrieve that secret key.

01:11:33.690 --> 01:11:40.310
That same process works for any key stored on an encoder, SAM, or secure element of any kind, uh, in this platform.

01:11:40.310 --> 01:11:47.410
So, uh, the config card impact of this is that if you can establish a secure channel, you can change keys and recover any sort of data that's on these cards.

01:11:47.570 --> 01:11:58.730
And that's... The, the, the teal deer is, you know, Nick found a bug where you can zero out keys on a card and then dump messages from it and if that card contained keys, you were able to then recover it.

01:11:58.730 --> 01:11:58.870
Exactly.

01:11:58.870 --> 01:12:06.090
So, all of that is gonna be in the video, uh, you, you know, those of you who are into this can inspect it more, uh, that'll be on the media server.

01:12:06.090 --> 01:12:13.670
Uh, and then the other thing that, sadly, I apologize that we're going a little bit slow earlier in the talk, uh, the main thing is the encoder attack.

01:12:13.670 --> 01:12:22.790
Now, the encoder attack is a little bit more devastating, uh, and for that reason, uh, we are releasing, uh, in video form all of the details of how the config card works.

01:12:22.790 --> 01:12:35.050
Uh, we're describing what happens here, we're not releasing any code for it because, uh, after our investigation, the impact was gonna be significant, uh, but we are gonna explain, uh, how it worked basically.

01:12:37.600 --> 01:12:40.340
So, you wanna touch on this?

01:12:40.720 --> 01:12:41.780
Sure.

01:12:41.780 --> 01:12:52.400
So, the way that the encoder attack really works, um, is that as part of encoding a config card and loading key material into it, you need to have a secure channel.

01:12:52.620 --> 01:13:06.560
Um, but essentially what we found is that, uh, the client is overly trusted here, so if you look, if we, if we cut out all the steps that involve initializing a secure channel, et cetera, we can just transmit the key in the clear.

01:13:06.800 --> 01:13:07.380
Um.

01:13:07.380 --> 01:13:22.920
Yeah, so normally, uh, what happens, and while this video is playing, uh, you know, during any key loading operation, uh , that encoder creates a secure session with the card to create an encrypted channel and then it transfers the key.

01:13:23.000 --> 01:13:27.340
And so you have this whole end to end piece that is like, you know, closed tunnel.

01:13:27.840 --> 01:13:35.940
Uh, what we found is that we could actually trick the encoder into saying, don't worry about secure channel session, just do your thing.

01:13:36.020 --> 01:13:43.380
So, we were able to then instruct it, yeah, ignore secure channel, just load the keys to the card, you're good, you're good, it's cool.

01:13:43.480 --> 01:13:57.620
Uh, and then we used a Proxmark 3 to intercept those keys in the clear, cause we told it to ignore secure channel, and using that method, we were then able to iterate through, uh, keys, uh, that were built into the encoder and actually then recover them.

01:13:57.620 --> 01:14:09.140
Because we, we were able to, you know, find a defect in this very critical piece of implementation, uh, and that, you know, all this work, you know, simple, simple mistakes can be made.

01:14:10.080 --> 01:14:19.800
Um, with apologies, we're, we're, we're, we're unfortunately, uh, out of time, uh, we are going to share, uh, these slides, uh, and the videos.

01:14:19.920 --> 01:14:26.400
Um, the impacts that I just, if I could have an extra 60 seconds, if that's okay, I, I appreciate that.

01:14:26.420 --> 01:14:32.020
Um, the, these types of mistakes are easy to make from an engineering perspective, okay?

01:14:32.040 --> 01:14:39.400
Uh, and even though this is one of the most well-designed systems that we've seen to date, with enough persistence, we found problems.

01:14:39.580 --> 01:14:56.220
Um, and ultimately, you know, this was, uh, a vulnerability that came about due to a lot of internal and external pressures from customers, from, you know, marketing, from sales, all sorts of different things, and really it boils down to an industry still being hooked on WeGant,

01:14:56.220 --> 01:14:58.420
uh, and looking for that interoperability.

01:14:58.440 --> 01:15:04.360
And what the main message that we're trying to drive home is that no vendor is safe, technically.

01:15:04.360 --> 01:15:18.040
This was one of the most secure systems on the market, and we're still able to find problems, and really the issue is we're trying to, you know, put patches on something that really isn't designed to be that secure in the first place, which was WeGant.

01:15:18.040 --> 01:15:24.500
But if you do your risk mitigation properly, if you're building your security like an onion, it's not that big of a deal .

01:15:24.580 --> 01:15:30.140
So the last thing that we want to leave you with, uh, depending on your threat model, and again , these will be in the slides.

01:15:30.140 --> 01:15:34.500
Sincere apologies that we went a little bit slower than we originally had wanted to.

01:15:34.700 --> 01:15:40.460
Depending on your threat actor, that's gonna define whether or not you have to do anything about this in any serious way.

01:15:40.500 --> 01:15:52.000
If you're just an average user, uh, and you're using standard keys, we do recommend that you move to a custom key like elite keys, and they're actually waiving the fees for this program for the first year as a result.

01:15:52.220 --> 01:15:56.200
If you're already using elite keys, you're probably fine.

01:15:56.220 --> 01:16:04.760
Uh, even though technically there may be advanced ways of recovering those out of a reader, it still takes a lot of skill, and not a lot of people know how to do that.

01:16:04.880 --> 01:16:18.020
Um, but if you're an advanced, uh, you know, threat person, uh, or customer, then you really want to upgrade your hard, hardware to the latest version, make sure you're using custom keys, and engage your vendor.

01:16:18.020 --> 01:16:31.820
Engage, uh, you know, your integrator and HID, and talking about your risks and what you're trying to mitigate against, so you have a practical, real world understanding of what your system will do, what it will not do, um, and that's, that's really the size of it.

01:16:31.820 --> 01:16:33.660
Uh, again, thank you for being here.

01:16:33.660 --> 01:16:34.940
Thanks for your patience.

01:16:35.040 --> 01:16:38.960
Apologies we didn't get through a couple slides, but that was really the meat of it.

01:16:38.980 --> 01:16:40.900
Um, and thank you.

01:16:40.900 --> 01:16:41.540
Thank you again.

01:16:41.560 --> 01:16:42.400
Appreciate it.

