[00:00.000 --> 00:02.800] One second here, we'll go ahead and get us kicked off. [00:04.880 --> 00:08.400] All right. How's everyone doing? [00:10.700 --> 00:15.880] Cool. Well, I think we got here safely. We can take these off for the moment. [00:16.060 --> 00:25.660] Yep. So, thank you guys for coming. This has been a long time coming. This is a super exciting [00:25.660 --> 00:31.560] topic for us, and we're really passionate about it. We've worked really hard to try to provide [00:31.560 --> 00:36.000] you all the necessary context you need to understand what happened and what the implications [00:36.000 --> 00:41.020] are. We're going to do our best to kind of take you along the journey as best as possible. So, [00:41.020 --> 00:43.920] thank you for being here. Thank you for your patience in advance. [00:44.680 --> 00:50.700] But first, I really want to introduce some of the other researchers. First and foremost, Aaron. [00:54.320 --> 01:00.660] This is not an overstatement. If it was not for Aaron, I would not be standing here. [01:00.660 --> 01:05.620] I don't know if much of this work would have gotten done. He was absolutely the tip of the [01:05.620 --> 01:09.800] spear, and I can't say enough good things about him. He's one of the most talented and kindest [01:09.800 --> 01:19.630] researchers I've ever worked with. So, yeah, thank you. Thank you so much, Babak, for the kind words. [01:19.630 --> 01:25.030] So, I want to introduce Nick Draphin, who is one of the most talented security engineers, [01:25.030 --> 01:30.890] security researchers I have ever worked with. He accomplishes so much stuff. He works on so [01:30.890 --> 01:36.370] much stuff beyond all of this. He's just incredible. He's amazing. [01:38.750 --> 01:44.790] Thanks, Aaron. That's very nice. I'm very pleased to have met you and know you. [01:45.710 --> 01:51.670] I would like to introduce Babak Javadi, who I'm also pleased to call my friend, and I really [01:51.670 --> 01:57.150] appreciate our friendship and the things that we've worked on together. Amazing, really kind [01:57.150 --> 02:05.630] person, one of the best hardware hackers I know, and we constantly compete for who has the [02:05.630 --> 02:11.270] newest tool or who is on the latest firmware of something. He has a tendency to update firmware [02:11.270 --> 02:16.090] at the worst possible moment, like right before a critical training or something, it's time to do [02:16.090 --> 02:31.070] the latest GPU update. So, my friend Babak. So, fun fact, we're all really awkward about talking [02:31.070 --> 02:36.210] about ourselves, so we came up with this shtick of introducing each other instead. So, hopefully [02:36.210 --> 02:44.950] that worked okay. I do want to talk about one researcher who wasn't able to join us on the [02:44.950 --> 02:52.250] stage, and that's Kate. Kate has also been involved with the project. She's also one of the [02:52.250 --> 02:56.990] finest, most talented hackers I've had the pleasure of working with. We're honored to call her a [02:56.990 --> 03:02.830] friend, and she's definitely been a part of this journey as well. So, just want to give a quick [03:02.830 --> 03:09.970] thank you to Kate. Where is Kate? There's Kate. All right. So, let's get started. Topics of the [03:09.970 --> 03:18.850] hour, because holy shit, 75 minutes. The longest talk. Who gave us the slant? All right. We'll do [03:18.850 --> 03:23.610] our best to make the best of it. We got a couple things to cover. We're going to talk about access [03:23.610 --> 03:29.250] control systems and a couple of really critical elements of it. We're going to talk about [03:29.250 --> 03:35.730] obsession, because this has been all-consuming, as we will discuss. And, of course, the reason why [03:35.730 --> 03:42.370] we're all here, a heist, right? That's the really exciting stuff that we're here for. But before we [03:42.370 --> 03:48.110] begin, Aaron, can you tell us a little bit more about, like, why they should stick around? Like, [03:48.110 --> 03:54.050] what does all this actually mean? Absolutely. So, if you look at this video, you can see that [03:54.050 --> 04:00.470] there are two cards. These are HID CS cards, theoretically unclonable. And yet, if you look, [04:00.470 --> 04:07.990] they have the same ID card number when scanned, right? So, we have cloned the unclonable. And in [04:07.990 --> 04:16.110] this talk, we're going to show you how we did it. So, I mentioned obsessions, because we all get [04:16.110 --> 04:21.930] that, right? This project has been kind of all-consuming for all three of us in different [04:21.930 --> 04:28.710] ways. It has took over my entire COVID, basically, because we had nothing else to do other than [04:29.550 --> 04:35.290] wake up, work for 12 to 14 hours, and then go to bed, and then rinse and repeat for, you know, [04:35.350 --> 04:42.510] a few months, basically. And even got into shower thoughts in the shower. We can't stop thinking [04:42.510 --> 04:46.950] about this stuff. Essentially, like, thinking about this research when we wake up, thinking [04:46.950 --> 04:51.210] about it before we go to bed, waking up in the middle of the night thinking about it, going to [04:51.210 --> 04:56.830] dinner with our significant others, and all we can think about is HID research. So, that's what [04:56.830 --> 05:03.790] brought us here today. Yeah, and we have so many HID readers at this point, it's kind of crazy. [05:03.790 --> 05:10.310] So many, in fact, that my now-husband actually used an HID reader in proposing to me a few [05:10.310 --> 05:21.870] years ago. It's true. We're not kidding. But yeah, this is collectively thousands of hours [05:21.870 --> 05:29.350] collectively, hundreds of readers, way, way too many dollars. I was considering trying to [05:29.350 --> 05:34.590] tabulate it, and then I thought better of it. So, let's just say it was a lot. And of course, [05:34.590 --> 05:40.650] very little sleep, including preparing for this talk. So, here we are. We are going to go kind [05:40.650 --> 05:47.010] of quick on a couple of topics. As long as this talk is, it is not a soup to nuts on how access [05:47.010 --> 05:52.270] control works, but in order for you to understand why this stuff is important, you do need some [05:52.270 --> 05:56.850] basic building blocks. So, we worked really hard to try to give you guys those basic building [05:56.850 --> 06:01.730] blocks as quickly as possible. If something doesn't fully track, it's okay. This stuff is [06:01.730 --> 06:08.630] kind of weird, but I suspect that you guys will get it pretty easily. So, the main foundation of [06:08.630 --> 06:13.350] all of this stuff is physical access control systems. And these are, of course, physical [06:13.350 --> 06:19.050] security controls that are designed to control access into or out of areas. And there's a lot [06:19.050 --> 06:23.830] of different components to these, right? There's readers, there's cards, there's door lock hardware [06:23.830 --> 06:30.250] and stuff like that. And ultimately, there's a few main tenets that all of these systems have [06:30.250 --> 06:36.610] to be focused on and hit in order to be successful in the marketplace. In order for it to be viable, [06:36.610 --> 06:42.370] these things have to be cheap. They have to be cost effective. Because for literally anyone else [06:42.370 --> 06:50.470] except us in this room, security isn't fun, it's a cost. And so, since businesses have to make [06:50.470 --> 06:55.690] money, for better or for worse, they don't really necessarily like spending money on security, [06:55.690 --> 07:01.930] because they exist to maximize profit. So, cost effectiveness actually has a huge, huge driver [07:01.930 --> 07:07.630] for how this stuff gets designed and how it sticks around. It also, of course, has to be easy to use, [07:07.630 --> 07:12.930] because security that gets in your way and prevents you from doing your job or getting [07:12.930 --> 07:19.530] where you need to be also sucks and incurs a different kind of cost, both to you, psychologically, [07:19.530 --> 07:25.810] and to the business. By way of example, I recall there was a pen test that we were on, and we [07:25.810 --> 07:31.630] noticed that during reconnaissance, we noticed there was a side door that people kept coming out [07:31.630 --> 07:35.950] of, and it wouldn't latch all the way. And we're like, we can just walk in here. And so, we used [07:35.950 --> 07:41.310] it several times. And I remember that in the after-action report, we brought it up. We're like, [07:41.310 --> 07:46.810] 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:59.510] So, this is a very efficient building. It seals very, very well. And when the weather is nice, [07:59.510 --> 08:03.650] and the HVAC system is not running, we have everything adjusted, and that's fine. [08:03.650 --> 08:07.990] But then, when the HVAC system is running, there's a positive air pressure inside the building, [08:07.990 --> 08:13.110] and now, the door closers won't actually close the doors fully. So, we go through, and we tighten [08:13.110 --> 08:17.330] all the door closers, and we're like, okay, it's good. And then, the weather gets nice again, [08:17.330 --> 08:21.950] and the HVAC system is off, and the doors start slamming. And so, we got all these trouble tickets [08:21.950 --> 08:26.570] of people complaining that they're on meetings, they're on sales calls, and the door is slamming. [08:26.730 --> 08:32.930] And so, we had to choose between security and keeping our employees happy. What do you think [08:32.930 --> 08:39.510] won? Of course, it wouldn't be a story if it was security. It was the latter. So, simplicity, [08:39.510 --> 08:44.650] ease of use, that's a huge deal. The golden rule of access control is never get in the way of doing [08:44.650 --> 08:50.150] business, for better or for worse. And that really drives a lot of this stuff. So, there's a couple [08:50.150 --> 08:53.710] components you need to understand about access control. And if you've been doing any of this [08:53.710 --> 08:59.130] stuff at all, you probably already know about this, but we'll give you the building blocks anyway. [08:59.130 --> 09:05.470] So, we have cards, we have readers, we have door hardware, like an electric strike or latch, [09:05.470 --> 09:11.470] and we have door controller of some kind. This is an embedded device that controls access. It's [09:11.470 --> 09:16.070] what makes the logical decision. And of course, it has a database of some kind that it synchronizes [09:16.070 --> 09:23.130] with and connects to. And ultimately, the sequence diagram, the way it works, is we have... [09:23.130 --> 09:29.710] we'll zoom in here. So, we have a card presentation. So, that's you presenting your card. [09:29.830 --> 09:35.370] The reader activates it. And then some weekend data is retrieved from the card. It's sent to [09:35.370 --> 09:40.010] the reader. The reader goes ahead and grabs that and sends it to all the way to the controller. [09:40.010 --> 09:44.290] That's what that beep is. And then the controller makes a decision. And if you have access, it [09:44.290 --> 09:50.250] activates the relay. And that's basically it. But for this talk, we're not going to talk about the [09:50.250 --> 09:55.470] back half of that. We're really only just going to focus on that first part, card to reader, [09:55.470 --> 10:01.190] because that's such a critical aspect and it's oftentimes the most exposed element of the access [10:01.190 --> 10:05.790] control system. And we'll see all the ways that people have tried to do it right and still [10:05.790 --> 10:11.510] sometimes you struggle. So, what is WGAN data? This is something that's important to understand [10:11.510 --> 10:17.370] about access control if you haven't had to deal with it before. WGAN data is a static binary [10:17.370 --> 10:23.690] authentication string that represents a very simple series of numbers. You've got your facility [10:23.690 --> 10:29.450] code, you've got a card number, and you also have a set of rules that are used to encode these into [10:29.850 --> 10:34.030] a static binary string, and that's called the bit format. And we don't need to get into the details [10:34.030 --> 10:38.510] of it. All you've got to know is that it's a little static binary string. We'll talk about that more [10:38.510 --> 10:43.970] in a little bit. There is a difference, though, technically, if you want to get technical about [10:43.970 --> 10:52.110] it, I suspect you all do, between a card and a credential. See, RFID cards of any kind are really [10:52.110 --> 10:59.190] just memory storage devices. Like a USB stick, but a lot shittier. They don't become a credential [10:59.190 --> 11:05.390] until you put access control data on it. And so, technically, these two concepts are discrete [11:05.390 --> 11:11.730] concepts. So, something to keep in mind. The technology is different from how you put data [11:11.730 --> 11:18.490] on that technology. And if you really think about it, we think that all fundamental aspects of access [11:18.490 --> 11:25.470] control can be boiled down into either an encode or decode operation. Storage or retrieval. So, [11:25.470 --> 11:29.890] let's talk about how storage works. How do we make that credential in the first place? [11:29.890 --> 11:36.590] How do we go from card to credential? Well, you can see we have a facility code and card number [11:36.590 --> 11:43.990] that goes into some set of rules called the bit format, and you produce WGAN data. And that WGAN [11:43.990 --> 11:50.830] data is then stored on the card. If you're having trouble visualizing this, let's show you. So, for [11:50.830 --> 11:56.310] example, let's say we have a facility code of 42 that we want to encode. We'll go ahead and grab [11:56.310 --> 12:01.490] our handy-dandy calculator, and we'll convert that decimal to binary. So, that will give us [12:01.490 --> 12:08.830] these 8 bits here. Then we have our unique card number. That's, of course, 1337, obviously. And [12:08.830 --> 12:13.370] we'll go ahead and convert that to binary as well. And what you see at the bottom left there, [12:13.370 --> 12:19.510] that's the bit format. That defines where these bits go in that long string. So, we'll go ahead [12:19.510 --> 12:25.530] and take the facility code and card number, we'll drop that into our bit format, do some parity bit [12:25.530 --> 12:30.090] calculations that we don't need to get into, and that is our authentication string. That's what [12:30.090 --> 12:34.250] the door controller is actually waiting for. And depending on the credential, we might have to add [12:34.370 --> 12:40.490] a preamble to it, but then that whole blob gets written to the card. That's it. That's what a [12:40.490 --> 12:47.190] credential basically is. Very simple, static data stored on a memory device. Similarly, when you're [12:47.370 --> 12:53.070] reading a card, it's just that in reverse. So, you have your card memory. You got to get in there, [12:53.070 --> 12:58.090] get it out. That's what the reader does. And then, whoop, went too fast. My apologies. [13:00.090 --> 13:07.030] Too fast for my own good. There we go. Okay. So, the reader grabs that credential data, it [13:07.030 --> 13:11.450] transmits it to the door controller, and now the controller has to interpret it. So, what does that [13:11.450 --> 13:16.470] look like? I'm so glad you didn't ask. So, here's our credential. We present it to the reader. [13:16.670 --> 13:22.410] The reader grabs that credential data, retrieves it, it processes it, rips out that preamble, [13:22.410 --> 13:27.690] sends the WGAN to the door controller, and now that door controller interprets that data, breaks [13:27.690 --> 13:32.570] it back apart into its constituent components, and we have, of course, our original facility [13:32.570 --> 13:38.550] code and card number. Very simple. Happens in the blink of an eye. So, in this example, we're [13:38.550 --> 13:44.690] talking about unauthenticated cards. You'll notice in this diagram, there was no password needed to [13:44.690 --> 13:50.150] do either of these operations. And in fact, if you guys have ever used a prox credential or old [13:50.150 --> 13:56.170] school credential, if you've used a flipper to clone, you know, low frequency tag, that's the [13:56.170 --> 14:01.630] type of card we're talking about. These are cards that don't require any security or authentication [14:02.250 --> 14:08.410] in order to read that data off of it. So, you'll see in the sequence diagram, you present the card, [14:08.410 --> 14:13.790] the reader powers it on, it spits out the data, the reader takes the data, and then forwards it [14:13.790 --> 14:19.130] to the controller. Simple as that. But if you have unauthenticated credentials, you have, of course, [14:19.130 --> 14:24.450] unauthenticated problems. Generally speaking, this is an issue because there's no protection [14:24.450 --> 14:29.030] for the data at rest, there's no protection for the data in motion, and as a result, it's very easy [14:29.030 --> 14:35.490] to tamper with that data, it's very easy to clone that data. So, what's the solution? Authentication, [14:35.490 --> 14:42.250] right? Easy enough. So, we can add an authentication layer in. You'll notice right over here, we add a [14:42.830 --> 14:49.330] little mutual authentication. So, now, in order for us to access that memory for reading or for writing, [14:49.330 --> 14:55.910] we have to authenticate with that card. Simple enough. We can even go a step further. And we can, [14:55.910 --> 15:00.410] before writing that data, we can encrypt it and put it on the card. And that's what we call, [15:00.410 --> 15:06.950] actually, transport encryption. And it also adds another step. Right there. So, now, the reader has [15:06.950 --> 15:13.110] to authenticate with the card, unlock it, grab the encrypted data, and now it has to then decrypt it, [15:13.110 --> 15:20.810] usually with a different key, and then get the WGAN data, send it to the controller. So, this is the [15:20.810 --> 15:27.030] cornerstone of modern access control in terms of how RFID cards work. But, of course, more security, [15:27.030 --> 15:31.790] more problems, my friends. Right? Because if you have keys that you've got to use, you have to [15:31.790 --> 15:37.330] manage those keys. They have to be generated appropriately. They have to be stored properly. [15:37.410 --> 15:42.770] And, of course, you have to use them correctly. If you write them down on a post-it or, say, put [15:42.770 --> 15:47.590] them in an Android app, mobile app, and not realize it, and people disassemble it and find it, that's kind [15:47.590 --> 15:53.530] of a problem. We can also go a step further. We're just touching on this topic very lightly. If we [15:53.530 --> 15:58.590] 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:06.770] So, a key diversification function, or KDF, as it's colloquially referred to, basically takes a [16:06.770 --> 16:13.610] secret master key, some sort of unique value tied to the credential, like a CSN or UID, and sometimes [16:13.610 --> 16:19.110] an optional salt or piece of context, and that goes into the KDF. And what comes out is a unique [16:19.110 --> 16:25.130] key that is just for that credential and nothing else. And that's a pretty solid system. That's a [16:25.130 --> 16:31.150] best practice, and almost every vendor follows it these days. Now, you might wonder, how are these [16:31.150 --> 16:36.470] master keys generated? How are they used? Because any of you have ever bought access control systems [16:36.470 --> 16:41.330] or used them, you may not realize or may not have thought that you don't actually get to pick that [16:41.330 --> 16:48.630] key. Generally speaking, these keys fall into two categories, and that's shared master keys and [16:48.630 --> 16:55.190] custom master keys. So, with a shared master key, these are cards and readers that are interoperable [16:55.190 --> 17:00.270] by default. You buy the card, you buy the reader, and it just works. It's great. It's great for [17:00.270 --> 17:05.390] integrators, it's great for customers, it's really fast and easy to install, and of course, because [17:05.390 --> 17:11.470] it's so easy, that means your cost is lower. But maybe you got special security needs and you want [17:11.950 --> 17:17.350] a custom key, and so now a unique key is generated for you, and someone has to manage it. Maybe it's [17:17.350 --> 17:23.190] you, maybe it's your vendor. And of course, if you do that though, now you need to order those cards [17:23.190 --> 17:29.090] and those credentials and those readers on demand. They have to program specifically for you. [17:29.130 --> 17:34.810] Because of this extra step, this is a process and a technology that is kind of poorly understood, [17:35.970 --> 17:40.310] a lot of integrators don't really like to do this because it kind of gets in the way of the process, [17:40.310 --> 17:45.930] it's something that's confusing for a lot of customers, and ultimately, it really slows down [17:45.930 --> 17:52.070] the process as well, which people of course don't like. But no matter what you do, whether you use [17:52.070 --> 17:57.230] unauthenticated credentials, or authenticated credentials, or ones with encryption, whenever it [17:57.230 --> 18:04.130] is, the reader still outputs WeGand, which is really interesting. But we're not going to get [18:04.130 --> 18:10.330] too far down that path today. Before we continue further, we wanted to share with you a little bit [18:10.330 --> 18:17.230] of context. As any of you guys know, who've ever learned any of this stuff, played with anything, [18:17.230 --> 18:23.290] done anything even remotely hackery, we all stand on the shoulders of giants before us that have [18:23.290 --> 18:29.830] paved the way before for us to learn from and then build on top of that. And this is no exception. [18:29.830 --> 18:35.450] In our opinion, one of the big pieces of research that really kind of set us on this path [18:35.450 --> 18:43.590] started back in 2011, 2010 rather, when Milos released his paper, Heart of Darkness. [18:44.070 --> 18:49.610] And it was one of the first really interesting ways of compromising sensitive cryptographic key [18:49.610 --> 18:54.750] material that was supposed to be kept secure in the reader and doing it in a really, really [18:54.750 --> 18:59.710] innovative way. Nick, what do you want to say about this? [19:04.000 --> 19:09.420] Yeah, so the predecessor to the system that we're going to talk about today, [19:09.420 --> 19:15.900] iClass, was introduced in 2002. And for quite a while, it was a relatively secure system. [19:15.900 --> 19:24.060] It used a modern credential. It had authentication keys. It had encryption keys. [19:24.060 --> 19:32.280] It was a relatively secure implementation. But use of cheaper hardware and inadequate [19:32.280 --> 19:36.680] key protection kind of ultimately led to the recovery of those keys that made the system [19:36.680 --> 19:42.820] secure. So it was originally based on an inside secure or inside contactless at the time [19:43.520 --> 19:51.480] PicoPass chip. And it was mainly popular in North America. It saw some penetration in other markets, [19:51.480 --> 19:57.920] but primarily in North America. iClass legacy credential looks like this from a memory map [19:57.920 --> 20:05.140] perspective. There are unencrypted variants or encrypted variants. Funny enough, the credential [20:05.140 --> 20:10.900] 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:33.560] Suffice to say that having the credential itself specify whether it's encrypted or not [20:33.560 --> 20:39.280] might not be the best idea. But the hardware for this ecosystem was a few different revisions. [20:39.280 --> 20:45.300] There was rev A, B, and C. B really wasn't in the channel very long. Not a lot of customers [20:45.300 --> 20:51.700] with rev B readers. But Milosz selected rev A readers as a target because it's the earlier [20:51.700 --> 20:56.600] generation. There might be some bugs. That's a typical thing for hardware hackers to do is [20:56.600 --> 21:04.320] select an earlier revision. It used a relative commodity pick microcontroller, which was not [21:04.320 --> 21:12.440] targeted against attacks that Milosz performed. So when iClass was introduced, this is where [21:12.440 --> 21:19.170] the concept of the shared standard keys and what the vendor calls elite keys was introduced. [21:19.840 --> 21:26.020] So most customers went with a standard key option. Elite keys were for customers that [21:26.020 --> 21:31.320] had or were concerned about advanced threats so that their cards wouldn't work on other [21:31.320 --> 21:37.880] readers and vice versa. So those cards and readers are built to order. Customers don't [21:37.880 --> 21:42.020] actually get to choose that key. It's chosen for you. There's some good research about that we'll [21:42.020 --> 21:49.620] talk about later. But it was elite is probably one of the, if not the most prominent vendor [21:49.620 --> 21:58.520] managed key program that exists in the access control space. So in this ecosystem, there was [21:58.520 --> 22:06.260] an encoder. And that encoder had some use cases for stored value applications, vending, [22:06.260 --> 22:10.780] things like that. And it was just another reader that had an interface that you could connect to [22:10.780 --> 22:16.740] with your PC and talk to it with a protocol. But this is what Milosz targeted for his research. [22:16.860 --> 22:23.720] And his research, the paper's titled Heart of Darkness, it relied on using two readers. It was [22:23.820 --> 22:30.040] a destructive attack against each one. With the first reader, you would erase the boot block [22:30.560 --> 22:35.740] because the debug interface would let you do some limited things. And in that erased boot [22:35.740 --> 22:42.860] block, he wrote a dumper program to dump the rest of the memory. And then on the second reader, [22:43.120 --> 22:49.780] he did the opposite. He erased the end part of the memory and wrote the dumper program at the [22:49.780 --> 22:54.140] end, which then looped back around and got the first bit that he didn't have from the first [22:54.140 --> 23:00.340] reader. So this led to complete recovery of the firmware and all associated data with that [23:00.340 --> 23:08.660] system. Let's see if this might... way too loud this time. All right. Just a quick add. One thing [23:08.660 --> 23:14.840] that I found really cool about this attack is that this chip technically had read protection. [23:14.840 --> 23:21.360] So they thought the keys were secure, but he found a very innovative way to get his code to [23:21.360 --> 23:29.020] run inside the chip without erasing the rest of it. And he found, quite by accident, that code [23:29.020 --> 23:34.440] running inside the microprocessor was kind of behind the firewall, so to speak. And so it was [23:34.440 --> 23:40.700] able to then get access to those re-protected areas of memory. And that basic concept of, [23:40.700 --> 23:45.580] I don't have access to that thing, so I'm going to find something else that has access to that [23:45.580 --> 23:51.620] thing and try to manipulate my way in, that is so critical to so many different aspects of hacking. [23:51.620 --> 23:57.880] Yeah, exactly. So once you actually have that extracted firmware and data, you can start to [23:57.880 --> 24:02.760] look through it. You kind of have broken the chain of custody. You now have those keys that were [24:02.760 --> 24:09.200] meant to be kept secret. And through analysis, it ultimately revealed the algorithms that were [24:09.200 --> 24:15.380] used by the platform. It prompted a lot of subsequent research over the next couple of years, [24:15.380 --> 24:22.340] primarily by a handful of European researchers. There are some really interesting cryptanalysis [24:22.340 --> 24:28.140] talks. There's a few of the papers that are listed here. Fantastic reads. These are deep, [24:28.140 --> 24:45.000] math-heavy papers, so I'll be frank, it's over my head a lot. Testing 1.2, there we go. So yeah, [24:45.000 --> 24:50.880] this is truly next-level research. And from a failure perspective, choosing a commodity [24:50.880 --> 24:57.280] microcontroller, even with re-protection, is not necessarily the proper key protection mechanism [24:57.280 --> 25:01.920] that you'd want for a system like this, especially if you've got standard or shared keys across [25:01.920 --> 25:11.140] all sorts of customers, potentially globally. So with the data integrity portion of this, [25:11.140 --> 25:16.940] it being optional and controlled by the card, also maybe not the best security decision. If [25:17.480 --> 25:20.280] customers want encryption, they should be able to specify that on the reader, not [25:20.280 --> 25:29.440] the credential. And one other issue that plagues this platform, not just this vendor, but in this [25:29.440 --> 25:35.360] industry as a whole, is firmware upgrades or updating devices in the field. If you take these [25:35.360 --> 25:40.240] readers and they're at your doors, if you have five doors, it's not much of a problem. But if [25:40.240 --> 25:45.600] you have 50,000 doors with readers that are spread out across the globe, if you want to update [25:45.600 --> 25:50.940] those and you have to go to each one of them, that's quite the task. So centralized updates are [25:50.940 --> 25:56.980] an issue just kind of industry-wide that we're hoping to get some attention on in the next couple [25:56.980 --> 26:02.380] of years with product advancements and whatnot. And I think one of the really interesting [26:02.380 --> 26:06.620] things to understand and take away from this, if you're not familiar with any of this technology [26:06.620 --> 26:14.260] already, is that even though they had this encryption layer on there as well, [26:14.730 --> 26:20.020] what people found is that once you have the authentication key, you didn't even have to [26:20.020 --> 26:27.080] decrypt it in order to clone it because there was no validation of which card that data belonged [26:27.080 --> 26:33.920] to. So you could actually just take one card, unlock it, grab the encrypted blob of data, [26:33.920 --> 26:38.660] throw it onto another one, and even though the serial number of that card was different, [26:38.660 --> 26:44.780] it would still work, which really kind of undermined a lot of the integrity of the [26:44.780 --> 26:50.120] data. So when we talk about data tampering, that's what we're talking about. And it's a critical [26:50.120 --> 26:57.680] aspect that you'll see coming up as a theme over and over. And as a result of this research, [26:57.680 --> 27:04.740] it actually led to a really cool new platform, really the rebirth of iClass. And to talk to [27:04.740 --> 27:25.950] you about that, I'd like to have Aaron come up if you're willing. We have a phoenix rising from the [27:25.950 --> 27:33.630] ashes here. It's truly a next generation, next level platform. Yeah, I mean, if it looks a little [27:33.630 --> 27:39.770] bit dramatic, it's because in many ways you could argue that that original platform really kind of [27:39.770 --> 27:47.650] got burned down in a lot of ways. But to HID's credit, they actually came back pretty hard. And [27:47.650 --> 27:59.030] when SE came out, it was kind of a BFD. Aaron, tell us about it. Sure. So to replace iClass comes [27:59.030 --> 28:08.230] iClass SE. Launched in 2011. Technically it stands for SIO enabled. SIO stands for secure [28:08.230 --> 28:14.910] identity objects. Yes, nested. A lot of confusing terminology here. But in short, they got a lot [28:14.910 --> 28:22.670] of things right here. HID clearly learned a lot of lessons of things that went wrong with iClass. [28:22.670 --> 28:34.170] And so iClass SE really was arguably the secure edition of the platform. So this name, iClass SE, [28:34.170 --> 28:42.070] refers to three different things. A platform, a reader, a credential technology. You can see how [28:42.070 --> 28:54.630] that might be confusing, right? And it has been, right? To this day, there is still an incredible [28:54.630 --> 29:01.430] amount of confusion over what iClass SE actually means. And I don't mean just from like everyday [29:01.430 --> 29:08.390] users. I mean industry professionals. People who, this is their job. Nothing but access control. [29:08.410 --> 29:15.650] Selling it, installing it, maintaining it. The phrase iClass SE is very, very nebulous. But when [29:15.650 --> 29:19.510] 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:31.620] So we do our best to separate things out here for you. But it's important to understand that [29:31.620 --> 29:38.960] depending on the context in which you invoke the phrase iClass SE, what we're referring to can vary. [29:40.000 --> 29:47.400] Indeed. And so one of the interesting things about iClass SE as a reader platform... [29:49.780 --> 29:56.280] One of the interesting things about iClass SE as a reader platform is that it is very much [29:56.280 --> 30:02.380] upgradable. 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:14.160] So right in 2011, we had those four. iClass SE most significantly. 2012, we got CEOS, [30:14.160 --> 30:19.220] which we'll talk about later. 2014, mobile. And so on and so forth. [30:21.180 --> 30:26.400] So I mentioned that term before, SIO, secure identity object. So let's talk a little bit about [30:26.400 --> 30:36.680] what that is. So with iClass, one of the things that Babak was talking about, and Nick as well, [30:36.680 --> 30:42.040] was the fact that there was nothing to cryptographically bind the encrypted data [30:42.040 --> 30:48.220] payload on the card to that particular card. And that's one of the main things that the SIO [30:48.880 --> 30:57.200] endeavors to fix. So it is an ASN.1 encoded payload. It is cryptographically bound to a [30:57.200 --> 31:04.280] specific card by its serial number or UID. And the data in it is encrypted. So in other words, [31:04.280 --> 31:10.060] if you take an SIO from one card and you put it on another card with a different serial number, [31:10.060 --> 31:15.160] it won't work. And that's a big deal, right? Like that's a big step forward in terms of the [31:15.160 --> 31:24.640] security of the SIO-based credential technology. Yeah. I want to clarify, just in case, because [31:24.640 --> 31:33.020] it's easy to get lost in the weeds on this if it's a new concept to you. The main gain of an SIO, [31:33.180 --> 31:41.200] a secure object of any kind, is not only is the data encrypted, but as he mentioned, it's [31:41.200 --> 31:47.400] cryptographically bound. It's tied to something unique and unchangeable about that credential [31:47.400 --> 31:54.080] such that if you mess with it, if you tamper with it, you change even one bit of data, it breaks [31:54.080 --> 32:02.060] the signature and the reader considers it invalid. It's a very important and critical piece of [32:02.640 --> 32:12.160] security. Indeed. So let's talk about the advantages of SIOs. So we already spoke a bit [32:12.160 --> 32:16.360] about some of this. But there's a really good sort of way to think of this, which is that an [32:16.360 --> 32:23.700] SIO is kind of like a tamper seal, right? If you have the card, right, and the weekend data on the [32:23.700 --> 32:31.980] card, the SIO is ensuring that, well, effectively it's a tamper seal, right? You can't tamper with [32:31.980 --> 32:38.480] it at all. And it's independent of card technology. It's a really, you know, overall good [32:38.480 --> 32:48.440] design. So the first major technology, right, to talk about with regard to SIOs is iClass SE, [32:48.440 --> 32:57.860] right? So uses the same, like, card technology as iClass, right, which is called PicoPass. Still [32:57.860 --> 33:04.380] cost effective. It was cheap. The silicon wasn't broken, right? It had good read distance. You [33:04.380 --> 33:10.140] know, honestly, a lot of things about iClass as a card technology were good, at least for the [33:10.140 --> 33:19.180] time, right? So iClass SE essentially took iClass and made it more or less secure. Yeah. And, [33:19.180 --> 33:23.700] you know, if you see iClass credentials, you can see, like, an SE or an SR marking to indicate [33:23.700 --> 33:30.540] that there's an SIO on the card. Yeah. This is, uh, this is one of the first places where you [33:30.540 --> 33:36.020] begin to have that confusion, right? We talked about how iClass SE gets reused over and [33:36.020 --> 33:42.980] over. So now we're talking about iClass SE cards, specifically. So they just took the same [33:42.980 --> 33:48.320] card technology that they had already, but because their keys were broken and their algorithms [33:48.320 --> 33:52.440] were broken, yada, yada, yada, they said, hey, you know what? The container is still not so [33:52.440 --> 33:58.280] bad. So why don't we just create a new data model and change our keys and change our [33:58.280 --> 34:06.000] algorithms and all those things, uh, and basically kind of remix it. And it did pretty well. [34:06.000 --> 34:14.680] Yeah. Indeed. But let's talk a little bit about the limitations of PicoPass, right? The, the [34:14.680 --> 34:20.080] card technology that, uh, you know, iClass is built on, right? It has limited memory, uh, you [34:20.080 --> 34:24.860] know, you really only have two application areas, uh, so there, you can't have too many [34:24.860 --> 34:30.200] different uses, right, for an iClass card. It doesn't have replay protection, um, you know, [34:30.200 --> 34:35.420] there are a number of, of, of bugs, uh, in terms of reader firmware impacting iClass and [34:35.420 --> 34:42.240] PicoPass specifically. Uh, more, more recently PicoPass became EOL, uh, and HID actually had [34:42.240 --> 34:47.740] to, had to, uh, develop a custom IC that emulates PicoPass so they can continue to sell [34:47.740 --> 34:54.100] iClass cards. Um... Challenges of not owning your whole supply chain, right? They bought [34:54.100 --> 34:59.020] someone else's chip, they said, hey, we're gonna rebrand this, call it iClass, and then [34:59.020 --> 35:07.120] eventually they stopped making that chip, so they had to emulate it, basically. Indeed. Uh, [35:07.120 --> 35:13.620] and actually, uh, you know, NVX, uh, discovered a really interesting, uh, implementation [35:13.620 --> 35:20.260] defect in, in reader firmware having to do with iClass and is giving a talk called iClass [35:20.260 --> 35:28.600] Throwing Away the Keys on Friday. That's today. Yes, today in RF Village. Um, definitely [35:28.600 --> 35:36.520] check it out. We're excited. So, let's talk about CEOS. So, CEOS is that card technology, [35:36.520 --> 35:41.260] uh, that was shown in, in the initial, uh, video at the beginning of the talk. It is [35:41.260 --> 35:47.020] HID's flagship to this day, uh, launched in 2012. Originally they called it iClass CEOS, [35:47.020 --> 35:52.520] uh, which now, you know, uh, you know, may, may be a, an interesting decision, right? [35:52.520 --> 35:59.500] Because iClass, uh, has certain, you know, connotations of, of weakened security, right? Um, [35:59.500 --> 36:03.960] but, uh, at the time, right, iClass was a well-established brand name, so it, it, it helped [36:03.960 --> 36:07.880] really sell it to, to their customer base. But it, it, you know, CEOS, honestly, it gets, it [36:07.880 --> 36:12.340] gets a lot of stuff, right? Like, this is, this is a really solid credential technology. It's [36:12.340 --> 36:16.780] more memory, much better security. It's, it's very much standards-based, right? You don't [36:16.780 --> 36:22.380] have a lot of the proprietary, uh, you know, algorithms and, and, and, and, uh, [36:22.860 --> 36:26.400] diversification algorithms and things like that that were being done with, with iClass and, and [36:26.400 --> 36:30.260] previous generations of technology. They made tons of improvements. Yeah. Like, they, this [36:30.260 --> 36:37.940] was like the Rolls-Royce of credentials when it came out. Uh, and the price reflects that, uh, as, [36:37.940 --> 36:45.960] as you can see. Um, but it had a lot of cool stuff. Uh, and, um, you know, it wasn't really [36:45.960 --> 36:51.480] big on adoption initially because of the cost, but now that's actually very, very cost [36:51.480 --> 36:57.420] effective because they've had like 10 years plus to optimize it. Yeah. Agreed. And, and it's [36:57.420 --> 37:03.240] also, you know, sort of a virtual credential or, or, or can be in a sense, right? So see us, [37:03.240 --> 37:09.880] there are see us cards. There are also see us, uh, virtual cards or mobile cards, right? Uh, you [37:09.880 --> 37:14.440] know, if you've heard of like HID mobile access or things like that, right? Um, there are all [37:14.440 --> 37:19.460] these different, different, uh, form factors really where see us can exist. Uh, so it's [37:19.460 --> 37:23.180] extremely portable, extremely mobile. I'd say to this day, it's a very solid credential [37:23.180 --> 37:33.040] technology. Um, now let's talk about support for other technologies with, with, within, uh, [37:33.040 --> 37:38.500] within the platform. So, uh, SIOs, again, they made things very card agnostic, right? You're [37:38.500 --> 37:43.600] not relying on proprietary features of iClass or really any other credential. It's, uh, you [37:43.600 --> 37:48.060] know, uh, you know, SIO can be applied, you know, even to my fair classic, right? Another [37:48.060 --> 37:52.980] sort of, uh, infamously insecure card technology. Uh, they're, you know, they're very much [37:52.980 --> 38:00.100] feature proof, um, and, uh, yeah, they're, um, they're an extremely powerful technology. I [38:00.100 --> 38:05.040] don't know, Bubik, if you have anything you want to add or Nick? Uh, yeah, so the, the, the, [38:05.040 --> 38:11.800] the neat idea about a secure object is that it's agnostic. So you can take any container you [38:11.800 --> 38:18.860] want, whether it's an iClass, uh, Pico pass container or whether it's SIOs or it does fire, [38:18.860 --> 38:24.560] whatever flavor of little tiny crappy digital safe that you want to use, you can actually [38:24.560 --> 38:31.180] still put this concept of a secure object on there. And so it makes it very extensible and, [38:31.180 --> 38:38.580] and reusable. Um, and it gives them a lot more flexibility because they can control the data [38:38.580 --> 38:43.600] model. Uh, you can't control as much how the card technology itself behaves in the reader, [38:43.600 --> 38:47.920] but that's kind of splitting hairs a little bit. So we don't need to spend too much time on [38:47.920 --> 38:53.020] that. Uh, but they really did try to intend for this card to be the one card that ruled them [38:53.020 --> 38:57.020] all. And they tried to be as forward thinking as possible. And they really kind of hit that [38:57.020 --> 39:03.520] mark in a lot of ways, in my opinion. I agree. I agree. So let's talk about how SE credentials [39:03.520 --> 39:10.580] are encoded. Um, so to start, right, you have to obtain the binding from the card, really the [39:10.580 --> 39:16.540] serial number or UID of a card. Uh, you have to calculate diversified write keys. You need to [39:16.540 --> 39:22.340] generate a unique ID, right, for the secure object and calculate the keys for that, for [39:22.340 --> 39:28.320] encrypting the secure object. You gotta encrypt and sign the data. And lastly, you need to [39:28.320 --> 39:33.940] authenticate the card with diversified keys and write that, write the SIO to it. And so that [39:33.940 --> 39:42.700] brings us to the iClass SE encoder, right? This is how HID enables customers to encode their [39:42.700 --> 39:49.800] own SE, right, SIO-enabled credentials, be that iClass SE, SEOS, MyFairClassic, you know, [39:49.800 --> 39:54.840] with SIO, uh, that's SIO-enabled, et cetera, right? And it came in two form factors, or it [39:54.840 --> 40:01.340] comes in two form factors. The desktop encoder, um, as well as an embedded printer-based [40:01.340 --> 40:07.920] encoder as well. And, uh, it can do a lot of stuff, right? It can encode, you know, [40:07.920 --> 40:12.280] primarily, right, it can encode genuine HID cards, but you can also encode third-party cards [40:12.280 --> 40:18.200] as well, um, right? It can, you know, encode prox, uh, lots of different high-frequency [40:18.200 --> 40:22.840] credentials, including both SEOS, DesFire, iClass SE. Yeah, these were, these were pretty [40:22.840 --> 40:29.480] cool little tools. Uh, not cheap, uh, very, very expensive, but, uh, you know, if you had a [40:29.480 --> 40:35.060] need for it, it really kind of came in clutch. So it allowed you not only to create your own [40:35.060 --> 40:40.640] credentials on demand, but also it allowed you to, you know, create custom configuration [40:40.640 --> 40:46.560] cards, and really enable, being able to service your own platform a lot more easily than [40:46.560 --> 40:51.100] having to call the vendor every single time. So it definitely filled a very important [40:51.620 --> 40:58.480] business need, uh, from that perspective. Absolutely, and, and yeah, configuration cards, [40:58.480 --> 41:02.360] that last one there, that's, that's an important one that we're going to talk about a little [41:02.360 --> 41:08.580] more in a bit. Um, but first let's talk about the target markets for this. Why did HID make [41:08.580 --> 41:12.740] this, right? Who, who, who, who's buying this? Who, you know, what, what is it used for? [41:12.840 --> 41:17.300] Right? So whether it's customers that have custom keys, right, for, for various security [41:17.300 --> 41:21.220] reasons, or they have a bunch of credentials that they want to keep, they don't have to buy [41:21.220 --> 41:25.240] new ones, but they want to re-encode them, like put it, put different data on them or, or [41:25.240 --> 41:30.680] switch from standard to elite. Uh, they want to generate their own card numbers that HID [41:30.680 --> 41:35.540] doesn't know about, right? Or they want to customize certain reader behavior functionality [41:35.540 --> 41:40.900] or loading keys, right? And so they want to create config cards. Um. A couple of these are a [41:40.900 --> 41:46.040] little sneaky in my opinion. So for example, you know, we have customer generated card [41:46.040 --> 41:52.560] numbers on there. Uh, that is a very specific use case because what you may not realize, or [41:52.560 --> 41:58.100] maybe many of you already do realize if you're in this talk, is that by default when you buy [41:58.100 --> 42:03.960] credentials, they are pre-programmed with card numbers and weekend information. So someone [42:03.960 --> 42:11.040] else is giving you a box of passwords to use and you assign those passwords. It feels kind of [42:11.040 --> 42:16.000] weird sometimes when you think about it. And so what the encoder would allow you to do, if [42:16.000 --> 42:21.540] you're really super secret squirrel about it, is you could get blank card stock. And you [42:21.540 --> 42:26.620] could have this encoder either at your desktop or built into your printer, uh, and you can [42:26.620 --> 42:31.920] basically generate your own card numbers, uh, and then you wouldn't have to worry as much [42:31.920 --> 42:37.180] about some third party vendor that you don't have control over knowing those critical bits [42:37.180 --> 42:41.740] of information. Of course that's a lot of overhead too, because now you have to manage and [42:41.740 --> 42:46.480] remember all the card numbers that you used, ever, so you can't repeat it. Uh, and in [42:46.480 --> 42:50.580] practice it wasn't a feature that's used very often. But you still need to have that [42:50.580 --> 42:55.800] capability there. The other sneaky thing is integrator lock in. You might be thinking how [42:55.800 --> 43:01.720] does that work? There have been a couple of areas, globally, where a integrator that has a [43:01.720 --> 43:08.040] really strong market presence will say, hmm, you know what? We're going to get our own [43:08.040 --> 43:13.500] custom key and all of our customers, we're going to issue them readers and cards that use [43:13.500 --> 43:18.680] our custom key. And so now if you're one of their customers and you need more readers or [43:18.680 --> 43:23.460] you need more cards, you only got one place you can go in order to get interoperable [43:23.460 --> 43:29.380] credentials. Because only they have the key. So we don't see too much of that in the U.S., [43:29.380 --> 43:34.940] but we did see some of that in Singapore and Australia and a few other places. So it's just [43:34.940 --> 43:40.680] really interesting to see how people kind of creatively use some of the features that are [43:40.680 --> 43:49.660] offered by the platform. Indeed. So, uh, the I-Class SE encoder, the CP1000, that's the [43:49.660 --> 43:55.500] hardware. Assure ID is the software. Um, right? It, it, it doesn't exclusively exist for the [43:55.500 --> 44:01.100] CP1000, right? It's used primarily for badge printing, right? Um, but it is the software [44:01.100 --> 44:05.760] primarily that is used for credential encoding with the CP1000 and, and it sort of [44:05.760 --> 44:11.200] facilitates all of these encoding operations. Um. Yeah. This is, this is the front end. This [44:11.200 --> 44:20.560] is the main default user interface for interacting with this piece of hardware. Uh, and it is a [44:20.560 --> 44:25.220] little bit clunky to use. I'm not going to lie. Um, but it's kind of the only thing that you [44:25.220 --> 44:30.240] have out of the box. Uh, some software vendors, uh, if you have a really large access [44:30.240 --> 44:36.780] control system, let's say from, well now, or software house, uh, some vendors actually are [44:36.780 --> 44:42.820] able to integrate pieces of this software, the SDK, into their access control software. So [44:42.820 --> 44:47.560] as a customer, when you wanted to encode a card, you don't have to load a separate [44:47.560 --> 44:53.380] application. You can just do it natively in your application and behind the scenes it [44:53.380 --> 44:59.020] makes the appropriate API calls, yada, yada, yada. Uh, so that's, that's how the SDK [44:59.020 --> 45:05.860] portion is designed to be used. Indeed. So let's talk about the internal operation of the [45:05.860 --> 45:11.900] encoder. Uh, essentially, right, everything in, in that box, right, that is inside of the [45:11.900 --> 45:18.300] encoder itself, which also happens to be rectangular in shape. Uh, so you have the [45:18.300 --> 45:23.480] desktop here, essentially the Assure ID software in normal operations, right? That talks to [45:23.480 --> 45:28.160] core, which acts as a router between different components in the encoder, sending messages [45:28.160 --> 45:33.120] back and forth, right? Which will send commands to the, to the SAM. The SAM will send [45:33.120 --> 45:38.420] commands, uh, to the NFC front end. NFC front end talks to the credential and, and that's [45:38.420 --> 45:44.920] sort of the, the overall sort of, uh, block diagram of how encoding works. Um, and you [45:44.920 --> 45:48.980] know, the, the, these encoders are, they're very customizable, they're very flexible, right? [45:48.980 --> 45:54.600] You can use different types of keys with them. Um, one sort of interesting thing is that, uh, [45:54.600 --> 46:01.140] you know, HID does, you know, sell these, uh, encoders, but they're not unlimited use, right? [46:01.140 --> 46:05.080] They actually have a credit system, uh, where when you buy an encoder, only have, you can [46:05.080 --> 46:09.180] only encode a certain number of cards of different credential types. This is super sneaky. [46:09.180 --> 46:14.100] You spend $1,500 or $2,000 on an encoder, you're like, cool, I can make as many cards as I [46:14.100 --> 46:23.360] want, right? Nope! Indeed, indeed. You can make 30 configuration cards. Out of the gate, yes, [46:23.360 --> 46:30.700] only, only 30, yes. Um, so now let's talk about the, the reader side of things. So the [46:30.700 --> 46:35.340] iClass SE reader, it's generally what we call revision e-readers. Technically there are [46:35.340 --> 46:40.160] some revision d-readers that came before it, although they're very rare. Um, they can be [46:40.160 --> 46:44.020] branded as iClass SE, multi-class SE, and a few other things. They come in all kinds of [46:44.020 --> 46:50.600] different form factors. Um, uh, but I, uh, I, I can guarantee that most of the people in this [46:50.600 --> 46:54.840] audience have seen at least one. Yeah, it's the same piece of hardware internally. It's just [46:54.840 --> 47:00.060] marked up differently with different stickers and different software configurations. Uh, and [47:00.060 --> 47:05.080] then of course they make them in different sizes and shapes, but the primary circuitry and [47:05.080 --> 47:10.140] the design of it is still all the same. Yeah. So let's talk about how things are [47:10.140 --> 47:19.660] decoded, right? Um, so in short here, what's happening is that, um, once, once the card is, [47:19.660 --> 47:26.200] is pulling back or, or, or reading the encrypted data blob, now the SIO from the card, first [47:26.200 --> 47:29.920] it's doing a signature check, right? Making sure that the data hasn't been tampered with. [47:29.920 --> 47:34.400] Then it's decrypting the data and then it's parsing the weekend data, that, that, that same [47:34.400 --> 47:38.720] weekend data that Babak was talking about earlier, right? That everything else is sort of a [47:38.720 --> 47:43.300] wrapper around, um, and, and sending it back to the door controller, which will ultimately [47:43.300 --> 47:52.960] decode it and, and, and make a sort of a, a go, no go, or an allow slash deny decision. Um, so [47:52.960 --> 47:58.420] just, uh, and, and, uh, so yeah. Go ahead. Yeah. This is kind of a cool zoomed in part of [47:58.420 --> 48:02.920] what actually happens inside the reader when dealing with an SIO. Yeah. So what I just [48:02.920 --> 48:09.760] explained, like the job of that signature check is to see, has that data been modified? Uh, is [48:09.760 --> 48:15.800] that data bound to the UID or CSN of the car that it just came off of? So, uh, after that step [48:15.800 --> 48:20.540] and only if that step succeeds, does it actually do the decryption of that weekend data. And [48:20.540 --> 48:24.960] then once it decrypts the weekend data, it does the transmit step, which we all know and [48:24.960 --> 48:32.900] love. That's when we hear the beep and it kind of goes on from there. So, uh, yeah. Thanks. So [48:33.640 --> 48:39.940] migration modes, uh, so in the industry, yeah, in the industry, there's a, there's a type of [48:39.940 --> 48:44.820] reader called migration readers that are designed to support both old and new technologies, [48:44.820 --> 48:50.300] right? And, and like they need to exist, right? Their, their existence is to help customers [48:50.300 --> 48:55.600] move from less secure, older technologies to more secure, newer ones, right? And so, so by [48:55.600 --> 49:00.420] definition they have to support multiple credential types. And the most common one you'll [49:00.420 --> 49:05.380] see in the field is probably the multi-class SE reader from HID. It's literally the Swiss [49:05.380 --> 49:10.900] army knife of readers. It reads, you know, pretty much all the common technologies. Um, and [49:10.900 --> 49:15.920] even though they aren't always needed by customers, a lot of times integrators will install [49:15.920 --> 49:21.420] these and stock these because they always work, right? If you have to keep, if there's only [49:21.420 --> 49:26.300] one kind of reader you can keep in stock, right? To be able to, to, to sell your, your, your [49:26.300 --> 49:30.300] customers, your clients, right? It stands to reason a lot of people are going to go with the [49:30.300 --> 49:34.180] multi-class. Um, it always works. And that is indeed what happens a lot of the time. [49:34.180 --> 49:39.160] It always works is a big problem in the industry. Not just with readers. So, not only do we [49:39.160 --> 49:42.860] have these readers that can read all these different card technologies, you're like, oh, [49:42.860 --> 49:47.480] that's great. Uh, it's very flexible. It's always going to work. That's awesome. Except it [49:47.480 --> 49:52.980] also really undermines how access control works. Uh, similarly on the hardware side, when it [49:52.980 --> 49:57.380] comes to electric strikes and the door hardware that goes in the door, if you've ever [49:57.380 --> 50:03.320] slipped a latch with a card or anything like that, that's because that strike is either [50:03.320 --> 50:10.280] misadjusted or also very likely sometimes way too darn big for the actual latch. And as a [50:10.280 --> 50:17.100] result, those deadlatch mechanisms don't actually work properly. But if they only carry one [50:17.100 --> 50:21.760] part that's just really big and it just works with everything, then it's just a lot easier [50:21.760 --> 50:26.600] for that integrator as well and they probably get a better price on it too. Indeed. And [50:26.600 --> 50:30.640] these migration readers open the door for so-called downgrade attacks, credential [50:30.640 --> 50:36.200] downgrade attacks, right? Uh, because as we discussed earlier, right, uh, at the end of the [50:36.200 --> 50:41.040] day, uh, everything else is sort of just a wrap around that WGAN's data that Bobik was [50:41.040 --> 50:45.000] talking about earlier. So as long as the right WGAN's data gets sent from the reader to the [50:45.000 --> 50:48.900] door controller, it doesn't matter necessarily what the credential technology on the front [50:48.900 --> 50:54.580] end is. So you can take WGAN data from a, you know, a more secure credential that comes out [50:54.580 --> 50:58.880] of a reader and put it on a prox credential instead as long as it's supported. And as far as [50:58.880 --> 51:03.480] the door controller is concerned, it's the same thing. It's the same person. But we don't [51:03.480 --> 51:10.020] wanna bore you too much with this. It's really important stuff. Uh, we're gonna wanna, uh, get [51:10.020 --> 51:14.440] to some more interesting stuff here in a second, but because it's good context, uh, we [51:14.440 --> 51:20.800] wanna make sure you have a little bit of it at least. Indeed. Um, so let's talk about the [51:20.800 --> 51:28.240] iClass SE reader modules, right? So not all iClass SE readers look like a typical iClass SE [51:28.240 --> 51:31.960] reader, right? There are embedded modules where other vendors can actually take this [51:31.960 --> 51:35.800] technology, the, the, the reader platform and embed it in something else. Something that [51:35.800 --> 51:39.620] looks completely different, such as like a biometric reader or, or, or something along those [51:39.620 --> 51:46.620] lines. Um, so now let's talk about configuration methods for these readers. So it's all SNMP3 [51:46.620 --> 51:52.020] based, right? Uh, which is an interesting choice of, of protocol we'll get to in a bit. Um, but, [51:52.020 --> 51:58.340] you know, it, it's SNMP3, SNMPv3 over APDUs. You can do it over NFC, BLE, OSDP, UART, et [51:58.340 --> 52:01.640] cetera. It doesn't matter. And there are a few different ways to do it, but, you know, [52:01.640 --> 52:07.540] generally for readers in the field, it's either with config cards or the HID reader manager app [52:07.540 --> 52:14.860] most of the time. Um, generally when it comes to reader, generally when it comes to reader [52:14.860 --> 52:22.360] configuration, uh, you know, there are a lot of different things that you can do. Um, right? [52:22.360 --> 52:26.600] Uh, and, and these configuration cards specifically, uh, were, were a bit of a new [52:26.600 --> 52:31.860] technology with the platform. Uh, they're Java card based, um, right? Also known as the [52:31.860 --> 52:38.780] Artemis updater card. Um, and, uh, if you encode one with a CP1000 encoder, right, they, you [52:38.780 --> 52:44.480] know, they have credits. Uh, ones from the factory have unlimited credits. Um, yeah. In [52:44.480 --> 52:50.320] short, HID config cards are the same as the Java, uh, are the same technology, right? They're [52:50.320 --> 52:56.540] Java cards like a J3D081, just like many EMV bank cards, credit cards, et cetera, are, uh, [52:56.540 --> 53:02.040] same, same platform, different use case. Uh, so let's talk a bit about how the firmware [53:02.040 --> 53:10.180] structure sits. Do you mind jumping on that? Sure. Yeah. Thank you. Uh, so from a firmware [53:10.180 --> 53:14.380] perspective, we've got, uh, those components we talked about earlier within the encoder kind of [53:14.380 --> 53:19.160] similar components within the reader. We've got that core, SAM, uh, we've got expansion [53:19.160 --> 53:23.760] modules. Each of these things have firmware and all those things have to be upgraded or [53:23.760 --> 53:28.860] ideally they should be able to be upgraded. So, uh, one of the ways that those things are [53:28.860 --> 53:35.180] actually updated is firmware upgrade cards. Uh, same interfaces that work for the config [53:35.180 --> 53:41.440] cards also work for firmware upgrades. So you've got the, uh, NFC, BLE, OSTP, et cetera. [53:41.440 --> 53:45.420] Uh, although OSTP doesn't have as much market penetration yet as we'd like for firmware [53:45.420 --> 53:49.460] upgrades, but we're getting there. So, uh, for firmware upgrade cards, there's actually this [53:49.460 --> 53:53.840] little plastic bracket that you hang because you have to, you like, to fit firmware on cards, [53:53.840 --> 53:58.080] you have to use a lot of cards actually. If anyone remembers splitting RAR files onto floppy [53:58.080 --> 54:03.600] disks, a bunch of disks to take Age of Empires home from school with the fast internet [54:03.600 --> 54:10.780] connection. But, yeah, so, uh, you've got a bunch of firmware cards, uh, really didn't get [54:10.780 --> 54:15.800] used. They were clunky, uh, could end up in, like, with brick readers, but ultimately, like, [54:15.800 --> 54:21.580] firmware upgrades are still kind of a problem even in this new, new, new platform. So, uh, but [54:22.060 --> 54:26.720] as we had mentioned, uh, this platform introduced a SAM, otherwise known as a secure [54:26.720 --> 54:32.620] application module. It's entire job is to protect secrets. So it's implemented on top of a [54:32.620 --> 54:36.620] secure microcontroller. Uh, it's, it's designed to be a black box to protect your secrets, [54:36.620 --> 54:42.500] whether those are cryptographic keys or, uh, the, like, algorithms or intellectual property [54:42.500 --> 54:48.300] that makes your product unique. You can kind of put that into a black box and, uh, with using a [54:48.720 --> 54:52.420] secure microcontroller, it's entire job is to just protect those secrets. Yeah, do you mind if I [54:52.420 --> 54:55.760] touch on this a little bit? Yeah, go ahead. So, so this is, you know, very similar to the [54:55.760 --> 55:00.820] concept of a TPM, basically. You have a special processor or a special hardware module. It's [55:00.820 --> 55:05.460] only job is security. Whether it is, you know, storing keys or performing cryptographic [55:05.460 --> 55:11.420] operations. Uh, and they're designed to, you know, resist really, really advanced threats. Uh, [55:11.420 --> 55:18.280] this particular SAM was made by, uh, Infineon ultimately. It was an SLE88. Uh, and one of the [55:18.280 --> 55:22.700] first things that we wanted to figure out is how do we get access to this so we can try to [55:22.700 --> 55:28.860] understand it, uh, better ultimately. Uh, the SAM comes in a lot of different types and shapes [55:28.860 --> 55:34.580] and sizes, uh, for different purposes, right? So you have these SIM cards, you have, uh, you [55:34.580 --> 55:38.580] know, different physical form factors that can be used. They can go into readers, they can go [55:38.580 --> 55:44.420] into printers, they can go into third party products. But ultimately this is the piece of [55:44.420 --> 55:50.160] technology that is responsible for key management. And so inside of that SAM, which is kind of [55:50.160 --> 55:56.840] like a digital vault for keys, uh, there are, you know, special write only slots that you can [55:56.840 --> 56:02.280] only write keys to. You're not supposed to be able to read keys out of them. Uh, and these, as [56:02.280 --> 56:05.640] I mentioned, have both official applications and you might have heard some of the [56:05.640 --> 56:14.660] unofficial applications. Someone owns a flipper. Of course that's Eric. Eric Betts, uh, writer [56:14.660 --> 56:18.700] of Cedar. If you ever, you know, have used that, it's a super cool app. We can talk about it in [56:18.700 --> 56:24.480] RF Village later. Uh, but yeah, it's basically, you know, this little super secure little guy [56:24.480 --> 56:29.520] and, you know, he handles all the important stuff. Uh, and so you put it inside of anything [56:29.520 --> 56:34.720] that you want compatibility with and there you go. Bob's your uncle. Uh, the firmware is [56:34.720 --> 56:38.800] separated out into a couple of pieces. We're not going to get super deep into the weeds on [56:38.800 --> 56:45.240] that just for the sake of time. But suffice to say, it is a layered implementation. Uh, that [56:45.240 --> 56:51.420] builds basically a chain of trust, uh, top to bottom to try to protect everything along the [56:51.420 --> 56:57.160] way. So, there's multiple, you know, steps and keys that, you know, control what [56:57.160 --> 57:03.520] applications run on there, what data's accessible by what application, so on and so forth. But [57:03.520 --> 57:07.600] the reason I sped up a little bit there is because we want to make sure we talk about the [57:07.600 --> 57:12.820] most important part. It's the heist. And of course, you know, safety first, right? So we [57:14.920 --> 57:23.120] gotta... that's right. This is some high intensity stuff here, right? Uh, so, so let's talk [57:23.120 --> 57:29.420] about this process a little bit. Um, you know, I, I remember, you know, Aaron and I talking a [57:29.420 --> 57:36.100] lot about one of the favorite aspects of, uh, of hacking this project is what? Yeah, so, so [57:36.100 --> 57:40.820] one of the really great parts of this project is that, you know, a lot of reverse engineering [57:40.820 --> 57:46.820] work that you do involves sort of unraveling information that you already have, right? So, [57:46.820 --> 57:50.440] whether that's reversing a binary in Ghidra, and you're just trying to figure out what a [57:50.440 --> 57:56.920] bunch of, you know, uh, instructions are doing, um, you know, that, you're, you know, all the [57:56.920 --> 58:00.280] same, right? You're, you're trying to make sense of info you already have. In this case, [58:00.280 --> 58:05.700] right, a lot of what happens inside of the SAM is sort of a black box. So we have, uh, you [58:05.700 --> 58:09.460] know, a lot of information, but we don't have all the information. And so you really have to [58:09.460 --> 58:15.820] like, put yourself into the head space of who built this. And, you know, what, what, if [58:15.820 --> 58:21.640] they, if they, you know, did X, Y, and Z, then how might they have designed, you know, some [58:21.640 --> 58:25.640] other thing? And you have to make these really educated guesses and, and put yourself in the [58:25.640 --> 58:28.940] shoes of the person. And you gotta really stretch yourself. It crosses a lot of domains. It's [58:28.940 --> 58:33.820] not just software, it's hardware, it's firmware, it's a lot of really cool stuff. So first we [58:33.820 --> 58:37.940] need to, you know, think about this. How do we want to approach this? Well, where are the [58:37.940 --> 58:43.180] master keys? Let's think through all the places that keys are used and stored. Let's think [58:43.180 --> 58:49.380] through what kind of operations and what commands would have to use those keys. Uh, and then [58:49.380 --> 58:53.700] how do those keys get there in the first place, right? We gotta understand the whole process [58:53.700 --> 58:59.260] and see if we can find any, uh, you know, vulnerabilities in the armor, so to speak. So we [58:59.260 --> 59:03.700] identified our targets, which is anything with keys, of course, right? That includes standard [59:03.700 --> 59:08.900] readers, desktop USB readers, embedded readers, encoders, of course, that's one of the big [59:08.900 --> 59:14.600] things we're talking about today. Uh, configuration cards, the common denominator in all of [59:14.600 --> 59:20.120] these things is that iClass SE secure processor, it's that SAM, cause that's, that's the one [59:20.120 --> 59:26.340] trusted, you know, piece, that component that is allowed to do all this stuff. So how do we [59:26.340 --> 59:32.820] turn unknowns into knowns? Well, we gotta start touching hardware, right? So we need to get [59:32.820 --> 59:38.340] inside, see what we can, uh, find out about what chips are used, see if we can tap into some [59:38.340 --> 59:44.820] communication buses, and just start trying to understand the language that it speaks. Uh, on [59:44.820 --> 59:49.940] the firmware side, we want to try to get a copy of anything we can get our hands on and start [59:49.940 --> 59:57.680] reverse engineering, right? That is like Aaron's and, uh, Nick's bread and butter. I can poke hot [59:57.680 --> 01:00:02.740] pokey things at hardware all day long, I'll cut things apart, but honestly when it comes to the [01:00:02.740 --> 01:00:08.800] actual, like, hardcore reverse engineering, I still rely on geniuses like Aaron and Nick, [01:00:08.800 --> 01:00:14.560] otherwise I'm, you know, just not as effective on my own. Uh, but, you know, all the normal, you [01:00:14.560 --> 01:00:20.000] know, uh, techniques that you'd apply, we had to apply to these different domains, software, [01:00:20.000 --> 01:00:27.480] firmware, hardware, etc. Uh, as a fun story, uh, while we were working on this, uh, one of our [01:00:27.480 --> 01:00:31.800] mutual friends, actually, who we didn't know was a mutual friend until we started this [01:00:31.800 --> 01:00:38.940] project, Vlad, um, he, uh, as a side quest, decided to look at, uh, some, some readers and [01:00:38.940 --> 01:00:43.860] there was this really fun, uh, exchange that we had that he gave me permission to post, uh, and [01:00:43.860 --> 01:00:49.240] he cut it apart and he just sends me this photo out of the blue and he says, Bobik, what the [01:00:49.240 --> 01:00:54.940] fuck is this powder? The reader's full of it, does HID literally put a felony amount of [01:00:54.940 --> 01:00:59.880] cocaine in every reader? And I corrected him, of course, that's clearly anthrax, that's how [01:00:59.880 --> 01:01:06.240] HID takes out their researchers and, of course, that explains a lot. Uh, but no, that's, that's [01:01:06.240 --> 01:01:11.800] not the case, uh, this is, this is just, you know, uh, epoxy fill, uh, serves a couple different [01:01:11.800 --> 01:01:17.460] purposes from weather, you know, resistance, uh, to, uh, making it harder to get to the damn [01:01:17.460 --> 01:01:22.940] thing, like, as evidenced by these photos. Um, but that was just the hardware piece. On the [01:01:22.940 --> 01:01:27.660] software piece, we had tons of other tools as well, right? You know, we had Aaron and Nick [01:01:27.660 --> 01:01:33.840] breaking out DotPeak and Jeb. Uh, I was breaking out the Celia logic analyzer and we were doing [01:01:33.840 --> 01:01:39.400] all this remotely, like during COVID, you know, you were in San Francisco, I was in Phoenix and [01:01:39.400 --> 01:01:45.380] tons of screen sharing, way, way too much screen sharing. Uh, so lots of tiny wires, lots of, [01:01:45.380 --> 01:01:51.560] you know, hot, uh, you know, dangerous things, blood, sweat and tears, patients, and of course, [01:01:51.900 --> 01:02:00.660] a very, very healthy slash unhealthy dose of neurodivergent persistence. Uh, FCC docs, if you've [01:02:00.660 --> 01:02:05.540] ever, you know, been curious, it's a great resource for finding out, you know, preliminary [01:02:05.540 --> 01:02:10.900] information about hardware, uh, anything that has a radio in it is required to go through FCC [01:02:10.900 --> 01:02:17.220] certification, so you sometimes get leaks of products well in advance of the product actually [01:02:17.220 --> 01:02:22.940] coming out. And I remember back in 2016, there was this, you know, article on a, uh, tech site, [01:02:22.940 --> 01:02:28.140] like, oh, Apple is, you know, working on this mystery device, you know, it has NFC and [01:02:28.140 --> 01:02:32.080] Bluetooth and, you know, maybe it's a new crazy airport extreme and I looked at the sticker and [01:02:32.080 --> 01:02:39.240] I'm like, dude, it says D1D0, it's weekend, it's just a card reader. Uh, and yes, it was, it was [01:02:39.240 --> 01:02:43.560] just a card reader as, you know, it came out, uh, six to eight months later and it's a custom [01:02:43.560 --> 01:02:49.660] piece, uh, for Apple that they use in their facility, but we digress. We did FCC research on the [01:02:49.660 --> 01:02:55.280] iClass SE platform, we got some kind of blurry potato quality photos, so we had to get to that [01:02:55.280 --> 01:03:02.240] ourselves. We tried a lot of stuff, guys, we tried cutting acetone, I tried boiling readers in my [01:03:02.240 --> 01:03:08.640] apartment, uh, to try to heat up the epoxy and make it more brittle, um, I remember hitting it [01:03:08.640 --> 01:03:15.200] with like 1,200 degrees of hot air and trying to chip away at the epoxy and it just sucks, um, but [01:03:15.200 --> 01:03:22.640] that worked. I found that hot air embrittled the epoxy, uh, it did not smell good, I probably have [01:03:22.640 --> 01:03:27.880] some stuff going on in my head as a result, but I'm here and you're here and we're gonna have a [01:03:27.880 --> 01:03:35.500] good time. Uh, so here's a photo, uh, that actually one of our close friends, Kevin, uh, 0xffff [01:03:35.500 --> 01:03:40.580] took when he did the same process and he's just a master at this stuff. And you can see it's a [01:03:40.580 --> 01:03:45.540] little bit clearer. And of course, there's our, there's our SAM, right? That's, protects the [01:03:45.540 --> 01:03:50.000] secret things. That's the thing that we're trying to hack. There's other chips in there as well, we [01:03:50.000 --> 01:03:55.220] have the RF front end, the HF front end, uh, the main microcontroller, which we refer to as [01:03:55.220 --> 01:04:00.460] core, uh, and, you know, we wanted to figure out, how do we, how do we get to these SAMs? How do [01:04:00.460 --> 01:04:03.980] we get more access to more of them? And, you know, readers aren't cheap, so we gotta try to [01:04:03.980 --> 01:04:09.540] figure it out. What I ultimately, by accident, figured out is that by a weird quirk of [01:04:09.540 --> 01:04:16.680] manufacturing, uh, on the back of the reader, if you'll notice, right over here, there's this [01:04:16.680 --> 01:04:22.120] debug port that's actually used for, uh, it's an expansion port for external modules like [01:04:22.120 --> 01:04:27.100] Bluetooth and stuff like that. And something about the manufacturing process required them to [01:04:27.100 --> 01:04:32.540] put a little plastic bubble in that area. And wouldn't you know it, the SAM's right in that [01:04:32.540 --> 01:04:38.360] bubble with no epoxy surrounding it. So what I found is I was able to use one of my new best [01:04:38.360 --> 01:04:45.780] friends, that ultrasonic knife on the right hand side, and the official SAM recovery guide tool, [01:04:45.780 --> 01:04:51.800] which is just a piece of cardboard that I cut. Uh, here's the 1.1 version. It's the same thing [01:04:51.800 --> 01:04:57.520] basically. And I'll show you the process. This is sped up three times because this is already way [01:04:57.520 --> 01:05:03.020] too long, let's be honest. So I'm just drawing a little rectangle on there and I'm using the [01:05:03.020 --> 01:05:08.820] ultrasonic knife to cut through that top layer of epoxy and plastic. And, uh, it goes pretty [01:05:08.820 --> 01:05:13.420] quick actually. I love this tool. If you do a lot of hardware hacking, Wonder Cutter, buy it. [01:05:13.420 --> 01:05:20.060] It's freaking awesome. And you saw I sliced through it there pretty quick, even at 3X. Uh, and [01:05:20.060 --> 01:05:25.180] then boom, the board is exposed. Now that tool on the right, that's pretty cool actually. Those of [01:05:25.180 --> 01:05:30.440] you who wear glasses, like me for a long time, might remember seeing one in your optometrist's [01:05:30.440 --> 01:05:35.800] office way back in the day. Uh, and it's just a bath of hot glass beads. And I used that to [01:05:35.800 --> 01:05:41.620] preheat the reader to make it easier, uh, to then remove that SAM using a hot air station. And [01:05:41.620 --> 01:05:46.640] so just after a little bit of time, we're able to recover that SAM and that was a very nice, [01:05:46.640 --> 01:05:53.100] efficient process of trying to, uh, recover SAMs. And to be fair, this looks really slick, but [01:05:53.100 --> 01:05:59.960] we went through a lot. Uh, I damaged a lot and spent a lot of money, uh, to get to that point. I [01:05:59.960 --> 01:06:05.680] even had a little SAM cemetery and then I ran out of room and I just stopped. I had a whole pile [01:06:05.680 --> 01:06:10.700] of these dead damn things. Um, but ultimately, you know, what worked was choosing the right [01:06:10.700 --> 01:06:15.280] reader and, you know, doing all the things and great success, right? That's actually a pile of [01:06:15.280 --> 01:06:19.960] SAMs I successfully extracted out of a bunch of readers and all of them worked. I was very [01:06:19.960 --> 01:06:25.460] proud of it. Uh, but we wanted to see inside because why not? And so, uh, we, I live in Las [01:06:25.460 --> 01:06:30.180] Vegas. Uh, there's a really cool local company here called Full Spectrum Laser. They make [01:06:30.180 --> 01:06:35.900] really cool stuff. And for some reason, they let me play with one of their fancy UV lasers. And I [01:06:35.900 --> 01:06:43.360] learned that you can decapsulate an IC with UV really, really fast. Um, it is destructive, of [01:06:43.360 --> 01:06:48.800] course, but, uh, that is, that worked a treat. So thank you to Full Spectrum Laser for letting us [01:06:48.800 --> 01:06:53.960] do that. Uh, but these are some dye shots that, you know, Kevin took when he did a little, you [01:06:53.960 --> 01:06:59.200] know, acid bath process himself. And that's what proved that this was, in fact, the Infineon [01:06:59.740 --> 01:07:05.140] SLE88. Uh, and, you know, you kind of, you get where we're going with this. I'm going to skip a [01:07:05.140 --> 01:07:10.280] couple of slides here just for the sake of time. We want to show you the cool demo. Um, but the [01:07:10.280 --> 01:07:15.660] Artemis platform, uh, is, was the code name for all of that hardware. And as was mentioned [01:07:15.660 --> 01:07:22.280] earlier, it uses SNMPv3 messages, uh, to, you know, talk to different endpoints. Uh, if you're [01:07:22.280 --> 01:07:26.700] curious about this more, you know, come talk to us later. Maybe we can, you know, share a little [01:07:26.700 --> 01:07:32.860] bit more about it. Um, but you want, do you have a quick, uh, quick thing to mention about this? I [01:07:32.860 --> 01:07:36.260] want to make sure we have enough time to get the demos in. Yeah, like standards based [01:07:36.260 --> 01:07:41.220] protocols, uh, using an efficient protocol for an embedded system like this, uh, provides pretty [01:07:41.220 --> 01:07:46.280] good security actually. It's a really interesting use. So, yeah. Uh, there's a couple different [01:07:46.280 --> 01:07:51.000] roles that we discovered, right? You know, there's OEM admin, there's HID admin. These are users [01:07:51.000 --> 01:07:56.340] basically that have different levels of access. Uh, and that was critical for, uh, the exploit [01:07:56.340 --> 01:08:02.760] itself actually, right? Yeah, no, that, uh, that very much was critical. And, uh, yes, SNMPv3, [01:08:02.760 --> 01:08:07.860] while it is primarily a network technology, is actually a really good, uh, it's, it's used quite [01:08:07.860 --> 01:08:12.200] well in this platform. Yeah. So all this stuff is built on Java cards, which if you've never played [01:08:12.200 --> 01:08:15.680] with, they're super, super cool, but they're used for all sorts of different applications, [01:08:15.680 --> 01:08:21.380] everything from credit cards to access control, et cetera. Uh, the config cards use them as [01:08:21.380 --> 01:08:26.900] well. So you can update firmware and, you know, change all those settings that used Java card. [01:08:26.900 --> 01:08:33.220] Uh, but config card operations, Nick, take it away and punch through this. When a config card [01:08:33.220 --> 01:08:38.020] is encoded, uh, the app is initialized, it's told how much space it should have. And then after [01:08:38.020 --> 01:08:42.520] that happens, the encoder says, okay, here are the SNMP keys you should use when you generate [01:08:42.520 --> 01:08:47.360] messages. And then loads the configuration data that can be keys or configuration objects, [01:08:47.360 --> 01:08:52.780] things like LED color, et cetera. So, uh, when that, like that process is finished and you [01:08:52.780 --> 01:08:57.480] actually go to use it at a reader, the reader selects the applet. It, like the reader itself [01:08:57.480 --> 01:09:03.160] sends the SAM, like engine ID that uses for the SNMP v3 and then, uh, the user name that it [01:09:03.160 --> 01:09:07.340] should use, that the config card should use to actually generate those messages. And then the [01:09:07.340 --> 01:09:12.740] reader says, okay, give me messages. And now we're at the heist, essentially. So, uh, we [01:09:12.740 --> 01:09:17.680] looked at that set SNMP keys portion and found that, like, it requires a secure channel to do [01:09:17.680 --> 01:09:22.240] that. But, uh, if you have a secure channel, you can actually change the keys without [01:09:22.240 --> 01:09:28.180] knowing them, without deleting data. So, if you find a card that you can establish a secure [01:09:28.180 --> 01:09:35.740] channel with, you can then use that to set SNMP keys to zero. Uh, and then when you go and [01:09:35.740 --> 01:09:40.220] pretend to be a reader, you can give it a SAM session ID, you can give it a user name and [01:09:40.220 --> 01:09:45.140] then you can just get messages that are encrypted with zeros. So, here is a demonstration of [01:09:45.140 --> 01:09:51.920] that exact thing happening. And in this case, we'll take the config card, we'll use it, uh, [01:09:51.920 --> 01:09:58.400] with this, this standard PCSC reader. And, uh, in this case, we're gonna take the, uh, script [01:09:58.400 --> 01:10:03.760] here to zero, establish a secure channel and zero out those keys. And let me just go ahead [01:10:03.760 --> 01:10:28.680] and skip ahead. Oops, sorry. Oh, too far. I'm trying to zoom ahead. Alright, go ahead. So, in [01:10:28.680 --> 01:10:33.920] this, this, when this script runs, it essentially zeroes the keys out on the card so that we [01:10:33.920 --> 01:10:38.400] can then pretend to be a reader with the Proxmark3 there on the right-hand side. Uh, you can [01:10:38.400 --> 01:10:42.440] see here the success messages generated by the card, showing the keys have been set to [01:10:42.440 --> 01:10:47.760] zeros. And then when we go and use that, uh, config card with a reader, in this case our [01:10:47.760 --> 01:10:54.040] Proxmark3, uh, we'll tell it to generate those messages. Nope, it's not letting me scrub [01:10:54.040 --> 01:11:10.930] through it. Essentially, uh, resulting in... Yeah, uh... Yeah, so, uh, so, uh, so, uh, [01:11:10.950 --> 01:11:18.750] tech problems, sorry guys. A live demo might have been better. Anyway, uh... So, this video will [01:11:18.750 --> 01:11:22.990] be uploaded, uh, you know, we're, we're uploading this version of the deck and the demo [01:11:22.990 --> 01:11:27.430] video, so you guys will be able to play it yourself as well. Essentially, we had a custom key [01:11:27.430 --> 01:11:31.330] encoded on that config card and by zeroing the keys and retrieving that SNMP message, we [01:11:31.330 --> 01:11:35.090] were able to decrypt it and retrieve that secret key. That same process works for any key [01:11:35.090 --> 01:11:41.710] stored on an encoder, SAM, or secure element of any kind, uh, in this platform. So, uh, the [01:11:41.710 --> 01:11:45.250] config card impact of this is that if you can establish a secure channel, you can change keys [01:11:45.250 --> 01:11:49.390] and recover any sort of data that's on these cards. And that's... The, the, the teal deer is, [01:11:49.390 --> 01:11:54.890] you know, Nick found a bug where you can zero out keys on a card and then dump messages from [01:11:54.890 --> 01:11:59.750] it and if that card contained keys, you were able to then recover it. Exactly. So, all of that [01:11:59.750 --> 01:12:03.450] is gonna be in the video, uh, you, you know, those of you who are into this can inspect it [01:12:03.450 --> 01:12:08.850] more, uh, that'll be on the media server. Uh, and then the other thing that, sadly, I apologize [01:12:08.850 --> 01:12:13.670] 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:18.450] Now, the encoder attack is a little bit more devastating, uh, and for that reason, uh, we are [01:12:18.450 --> 01:12:23.350] releasing, uh, in video form all of the details of how the config card works. Uh, we're [01:12:23.350 --> 01:12:28.230] describing what happens here, we're not releasing any code for it because, uh, after our [01:12:28.230 --> 01:12:33.730] investigation, the impact was gonna be significant, uh, but we are gonna explain, uh, how it [01:12:33.730 --> 01:12:44.680] worked basically. So, you wanna touch on this? Sure. So, the way that the encoder attack really [01:12:44.680 --> 01:12:50.800] works, um, is that as part of encoding a config card and loading key material into it, you need [01:12:50.800 --> 01:12:58.080] to have a secure channel. Um, but essentially what we found is that, uh, the client is overly [01:12:58.080 --> 01:13:03.180] trusted here, so if you look, if we, if we cut out all the steps that involve initializing a [01:13:03.180 --> 01:13:09.260] secure channel, et cetera, we can just transmit the key in the clear. Um. Yeah, so normally, uh, [01:13:09.260 --> 01:13:15.240] what happens, and while this video is playing, uh, you know, during any key loading operation, [01:13:15.240 --> 01:13:21.560] uh, that encoder creates a secure session with the card to create an encrypted channel and then [01:13:21.560 --> 01:13:26.240] it transfers the key. And so you have this whole end to end piece that is like, you know, [01:13:26.240 --> 01:13:32.460] closed tunnel. Uh, what we found is that we could actually trick the encoder into saying, don't [01:13:32.460 --> 01:13:38.140] worry about secure channel session, just do your thing. So, we were able to then instruct it, [01:13:38.140 --> 01:13:42.660] yeah, ignore secure channel, just load the keys to the card, you're good, you're good, it's [01:13:42.660 --> 01:13:48.780] cool. Uh, and then we used a Proxmark 3 to intercept those keys in the clear, cause we told [01:13:48.780 --> 01:13:53.980] it to ignore secure channel, and using that method, we were then able to iterate through, uh, [01:13:53.980 --> 01:13:59.000] keys, uh, that were built into the encoder and actually then recover them. Because we, we were [01:13:59.000 --> 01:14:05.360] able to, you know, find a defect in this very critical piece of implementation, uh, and that, [01:14:05.360 --> 01:14:12.000] you know, all this work, you know, simple, simple mistakes can be made. Um, with apologies, [01:14:12.000 --> 01:14:17.580] we're, we're, we're, we're unfortunately, uh, out of time, uh, we are going to share, uh, these [01:14:17.580 --> 01:14:23.960] slides, uh, and the videos. Um, the impacts that I just, if I could have an extra 60 seconds, if [01:14:23.960 --> 01:14:30.240] that's okay, I, I appreciate that. Um, the, these types of mistakes are easy to make from an [01:14:30.240 --> 01:14:35.060] engineering perspective, okay? Uh, and even though this is one of the most well-designed [01:14:35.060 --> 01:14:40.760] systems that we've seen to date, with enough persistence, we found problems. Um, and [01:14:40.760 --> 01:14:47.100] ultimately, you know, this was, uh, a vulnerability that came about due to a lot of internal and [01:14:47.100 --> 01:14:52.040] external pressures from customers, from, you know, marketing, from sales, all sorts of different [01:14:52.040 --> 01:14:57.180] things, and really it boils down to an industry still being hooked on WeGant, uh, and looking for [01:14:57.180 --> 01:15:02.880] that interoperability. And what the main message that we're trying to drive home is that no vendor [01:15:02.880 --> 01:15:08.680] is safe, technically. This was one of the most secure systems on the market, and we're still able [01:15:08.680 --> 01:15:14.480] to find problems, and really the issue is we're trying to, you know, put patches on something that [01:15:14.480 --> 01:15:18.800] really isn't designed to be that secure in the first place, which was WeGant. But if you do your [01:15:18.800 --> 01:15:24.100] risk mitigation properly, if you're building your security like an onion, it's not that big of a [01:15:24.100 --> 01:15:28.620] deal. So the last thing that we want to leave you with, uh, depending on your threat model, and [01:15:28.620 --> 01:15:33.320] again, these will be in the slides. Sincere apologies that we went a little bit slower than we [01:15:33.320 --> 01:15:38.140] originally had wanted to. Depending on your threat actor, that's gonna define whether or not you [01:15:38.140 --> 01:15:43.140] have to do anything about this in any serious way. If you're just an average user, uh, and you're [01:15:43.140 --> 01:15:48.260] using standard keys, we do recommend that you move to a custom key like elite keys, and they're [01:15:48.260 --> 01:15:53.220] actually waiving the fees for this program for the first year as a result. If you're already using [01:15:53.220 --> 01:15:59.300] elite keys, you're probably fine. Uh, even though technically there may be advanced ways of [01:15:59.300 --> 01:16:03.700] recovering those out of a reader, it still takes a lot of skill, and not a lot of people know how [01:16:03.700 --> 01:16:11.560] to do that. Um, but if you're an advanced, uh, you know, threat person, uh, or customer, then you [01:16:11.560 --> 01:16:16.040] really want to upgrade your hard, hardware to the latest version, make sure you're using custom [01:16:16.040 --> 01:16:21.340] keys, and engage your vendor. Engage, uh, you know, your integrator and HID, and talking about [01:16:21.340 --> 01:16:25.120] your risks and what you're trying to mitigate against, so you have a practical, real world [01:16:25.120 --> 01:16:31.260] understanding of what your system will do, what it will not do, um, and that's, that's really the [01:16:31.260 --> 01:16:35.960] size of it. Uh, again, thank you for being here. Thanks for your patience. Apologies we didn't get [01:16:35.960 --> 01:16:41.540] through a couple slides, but that was really the meat of it. Um, and thank you. Thank you again. [01:16:41.560 --> 01:16:42.400] Appreciate it.