start	end	text
0	2800	One second here, we'll go ahead and get us kicked off.
4880	8400	All right. How's everyone doing?
10700	15880	Cool. Well, I think we got here safely. We can take these off for the moment.
16060	25660	Yep. So, thank you guys for coming. This has been a long time coming. This is a super exciting
25660	31560	topic for us, and we're really passionate about it. We've worked really hard to try to provide
31560	36000	you all the necessary context you need to understand what happened and what the implications
36000	41020	are. We're going to do our best to kind of take you along the journey as best as possible. So,
41020	43920	thank you for being here. Thank you for your patience in advance.
44680	50700	But first, I really want to introduce some of the other researchers. First and foremost, Aaron.
54320	60660	This is not an overstatement. If it was not for Aaron, I would not be standing here.
60660	65620	I don't know if much of this work would have gotten done. He was absolutely the tip of the
65620	69800	spear, and I can't say enough good things about him. He's one of the most talented and kindest
69800	79630	researchers I've ever worked with. So, yeah, thank you. Thank you so much, Babak, for the kind words.
79630	85030	So, I want to introduce Nick Draphin, who is one of the most talented security engineers,
85030	90890	security researchers I have ever worked with. He accomplishes so much stuff. He works on so
90890	96370	much stuff beyond all of this. He's just incredible. He's amazing.
98750	104790	Thanks, Aaron. That's very nice. I'm very pleased to have met you and know you.
105710	111670	I would like to introduce Babak Javadi, who I'm also pleased to call my friend, and I really
111670	117150	appreciate our friendship and the things that we've worked on together. Amazing, really kind
117150	125630	person, one of the best hardware hackers I know, and we constantly compete for who has the
125630	131270	newest tool or who is on the latest firmware of something. He has a tendency to update firmware
131270	136090	at the worst possible moment, like right before a critical training or something, it's time to do
136090	151070	the latest GPU update. So, my friend Babak. So, fun fact, we're all really awkward about talking
151070	156210	about ourselves, so we came up with this shtick of introducing each other instead. So, hopefully
156210	164950	that worked okay. I do want to talk about one researcher who wasn't able to join us on the
164950	172250	stage, and that's Kate. Kate has also been involved with the project. She's also one of the
172250	176990	finest, most talented hackers I've had the pleasure of working with. We're honored to call her a
176990	182830	friend, and she's definitely been a part of this journey as well. So, just want to give a quick
182830	189970	thank you to Kate. Where is Kate? There's Kate. All right. So, let's get started. Topics of the
189970	198850	hour, because holy shit, 75 minutes. The longest talk. Who gave us the slant? All right. We'll do
198850	203610	our best to make the best of it. We got a couple things to cover. We're going to talk about access
203610	209250	control systems and a couple of really critical elements of it. We're going to talk about
209250	215730	obsession, because this has been all-consuming, as we will discuss. And, of course, the reason why
215730	222370	we're all here, a heist, right? That's the really exciting stuff that we're here for. But before we
222370	228110	begin, Aaron, can you tell us a little bit more about, like, why they should stick around? Like,
228110	234050	what does all this actually mean? Absolutely. So, if you look at this video, you can see that
234050	240470	there are two cards. These are HID CS cards, theoretically unclonable. And yet, if you look,
240470	247990	they have the same ID card number when scanned, right? So, we have cloned the unclonable. And in
247990	256110	this talk, we're going to show you how we did it. So, I mentioned obsessions, because we all get
256110	261930	that, right? This project has been kind of all-consuming for all three of us in different
261930	268710	ways. It has took over my entire COVID, basically, because we had nothing else to do other than
269550	275290	wake up, work for 12 to 14 hours, and then go to bed, and then rinse and repeat for, you know,
275350	282510	a few months, basically. And even got into shower thoughts in the shower. We can't stop thinking
282510	286950	about this stuff. Essentially, like, thinking about this research when we wake up, thinking
286950	291210	about it before we go to bed, waking up in the middle of the night thinking about it, going to
291210	296830	dinner with our significant others, and all we can think about is HID research. So, that's what
296830	303790	brought us here today. Yeah, and we have so many HID readers at this point, it's kind of crazy.
303790	310310	So many, in fact, that my now-husband actually used an HID reader in proposing to me a few
310310	321870	years ago. It's true. We're not kidding. But yeah, this is collectively thousands of hours
321870	329350	collectively, hundreds of readers, way, way too many dollars. I was considering trying to
329350	334590	tabulate it, and then I thought better of it. So, let's just say it was a lot. And of course,
334590	340650	very little sleep, including preparing for this talk. So, here we are. We are going to go kind
340650	347010	of quick on a couple of topics. As long as this talk is, it is not a soup to nuts on how access
347010	352270	control works, but in order for you to understand why this stuff is important, you do need some
352270	356850	basic building blocks. So, we worked really hard to try to give you guys those basic building
356850	361730	blocks as quickly as possible. If something doesn't fully track, it's okay. This stuff is
361730	368630	kind of weird, but I suspect that you guys will get it pretty easily. So, the main foundation of
368630	373350	all of this stuff is physical access control systems. And these are, of course, physical
373350	379050	security controls that are designed to control access into or out of areas. And there's a lot
379050	383830	of different components to these, right? There's readers, there's cards, there's door lock hardware
383830	390250	and stuff like that. And ultimately, there's a few main tenets that all of these systems have
390250	396610	to be focused on and hit in order to be successful in the marketplace. In order for it to be viable,
396610	402370	these things have to be cheap. They have to be cost effective. Because for literally anyone else
402370	410470	except us in this room, security isn't fun, it's a cost. And so, since businesses have to make
410470	415690	money, for better or for worse, they don't really necessarily like spending money on security,
415690	421930	because they exist to maximize profit. So, cost effectiveness actually has a huge, huge driver
421930	427630	for how this stuff gets designed and how it sticks around. It also, of course, has to be easy to use,
427630	432930	because security that gets in your way and prevents you from doing your job or getting
432930	439530	where you need to be also sucks and incurs a different kind of cost, both to you, psychologically,
439530	445810	and to the business. By way of example, I recall there was a pen test that we were on, and we
445810	451630	noticed that during reconnaissance, we noticed there was a side door that people kept coming out
451630	455950	of, and it wouldn't latch all the way. And we're like, we can just walk in here. And so, we used
455950	461310	it several times. And I remember that in the after-action report, we brought it up. We're like,
461310	466810	by the way, do you guys know this door doesn't latch, and it goes right into your office?
467210	472250	And the head of facilities was there, and he's like, yeah, let me tell you about that door, see?
473350	479510	So, this is a very efficient building. It seals very, very well. And when the weather is nice,
479510	483650	and the HVAC system is not running, we have everything adjusted, and that's fine.
483650	487990	But then, when the HVAC system is running, there's a positive air pressure inside the building,
487990	493110	and now, the door closers won't actually close the doors fully. So, we go through, and we tighten
493110	497330	all the door closers, and we're like, okay, it's good. And then, the weather gets nice again,
497330	501950	and the HVAC system is off, and the doors start slamming. And so, we got all these trouble tickets
501950	506570	of people complaining that they're on meetings, they're on sales calls, and the door is slamming.
506730	512930	And so, we had to choose between security and keeping our employees happy. What do you think
512930	519510	won? Of course, it wouldn't be a story if it was security. It was the latter. So, simplicity,
519510	524650	ease of use, that's a huge deal. The golden rule of access control is never get in the way of doing
524650	530150	business, for better or for worse. And that really drives a lot of this stuff. So, there's a couple
530150	533710	components you need to understand about access control. And if you've been doing any of this
533710	539130	stuff at all, you probably already know about this, but we'll give you the building blocks anyway.
539130	545470	So, we have cards, we have readers, we have door hardware, like an electric strike or latch,
545470	551470	and we have door controller of some kind. This is an embedded device that controls access. It's
551470	556070	what makes the logical decision. And of course, it has a database of some kind that it synchronizes
556070	563130	with and connects to. And ultimately, the sequence diagram, the way it works, is we have...
563130	569710	we'll zoom in here. So, we have a card presentation. So, that's you presenting your card.
569830	575370	The reader activates it. And then some weekend data is retrieved from the card. It's sent to
575370	580010	the reader. The reader goes ahead and grabs that and sends it to all the way to the controller.
580010	584290	That's what that beep is. And then the controller makes a decision. And if you have access, it
584290	590250	activates the relay. And that's basically it. But for this talk, we're not going to talk about the
590250	595470	back half of that. We're really only just going to focus on that first part, card to reader,
595470	601190	because that's such a critical aspect and it's oftentimes the most exposed element of the access
601190	605790	control system. And we'll see all the ways that people have tried to do it right and still
605790	611510	sometimes you struggle. So, what is WGAN data? This is something that's important to understand
611510	617370	about access control if you haven't had to deal with it before. WGAN data is a static binary
617370	623690	authentication string that represents a very simple series of numbers. You've got your facility
623690	629450	code, you've got a card number, and you also have a set of rules that are used to encode these into
629850	634030	a static binary string, and that's called the bit format. And we don't need to get into the details
634030	638510	of it. All you've got to know is that it's a little static binary string. We'll talk about that more
638510	643970	in a little bit. There is a difference, though, technically, if you want to get technical about
643970	652110	it, I suspect you all do, between a card and a credential. See, RFID cards of any kind are really
652110	659190	just memory storage devices. Like a USB stick, but a lot shittier. They don't become a credential
659190	665390	until you put access control data on it. And so, technically, these two concepts are discrete
665390	671730	concepts. So, something to keep in mind. The technology is different from how you put data
671730	678490	on that technology. And if you really think about it, we think that all fundamental aspects of access
678490	685470	control can be boiled down into either an encode or decode operation. Storage or retrieval. So,
685470	689890	let's talk about how storage works. How do we make that credential in the first place?
689890	696590	How do we go from card to credential? Well, you can see we have a facility code and card number
696590	703990	that goes into some set of rules called the bit format, and you produce WGAN data. And that WGAN
703990	710830	data is then stored on the card. If you're having trouble visualizing this, let's show you. So, for
710830	716310	example, let's say we have a facility code of 42 that we want to encode. We'll go ahead and grab
716310	721490	our handy-dandy calculator, and we'll convert that decimal to binary. So, that will give us
721490	728830	these 8 bits here. Then we have our unique card number. That's, of course, 1337, obviously. And
728830	733370	we'll go ahead and convert that to binary as well. And what you see at the bottom left there,
733370	739510	that's the bit format. That defines where these bits go in that long string. So, we'll go ahead
739510	745530	and take the facility code and card number, we'll drop that into our bit format, do some parity bit
745530	750090	calculations that we don't need to get into, and that is our authentication string. That's what
750090	754250	the door controller is actually waiting for. And depending on the credential, we might have to add
754370	760490	a preamble to it, but then that whole blob gets written to the card. That's it. That's what a
760490	767190	credential basically is. Very simple, static data stored on a memory device. Similarly, when you're
767370	773070	reading a card, it's just that in reverse. So, you have your card memory. You got to get in there,
773070	778090	get it out. That's what the reader does. And then, whoop, went too fast. My apologies.
780090	787030	Too fast for my own good. There we go. Okay. So, the reader grabs that credential data, it
787030	791450	transmits it to the door controller, and now the controller has to interpret it. So, what does that
791450	796470	look like? I'm so glad you didn't ask. So, here's our credential. We present it to the reader.
796670	802410	The reader grabs that credential data, retrieves it, it processes it, rips out that preamble,
802410	807690	sends the WGAN to the door controller, and now that door controller interprets that data, breaks
807690	812570	it back apart into its constituent components, and we have, of course, our original facility
812570	818550	code and card number. Very simple. Happens in the blink of an eye. So, in this example, we're
818550	824690	talking about unauthenticated cards. You'll notice in this diagram, there was no password needed to
824690	830150	do either of these operations. And in fact, if you guys have ever used a prox credential or old
830150	836170	school credential, if you've used a flipper to clone, you know, low frequency tag, that's the
836170	841630	type of card we're talking about. These are cards that don't require any security or authentication
842250	848410	in order to read that data off of it. So, you'll see in the sequence diagram, you present the card,
848410	853790	the reader powers it on, it spits out the data, the reader takes the data, and then forwards it
853790	859130	to the controller. Simple as that. But if you have unauthenticated credentials, you have, of course,
859130	864450	unauthenticated problems. Generally speaking, this is an issue because there's no protection
864450	869030	for the data at rest, there's no protection for the data in motion, and as a result, it's very easy
869030	875490	to tamper with that data, it's very easy to clone that data. So, what's the solution? Authentication,
875490	882250	right? Easy enough. So, we can add an authentication layer in. You'll notice right over here, we add a
882830	889330	little mutual authentication. So, now, in order for us to access that memory for reading or for writing,
889330	895910	we have to authenticate with that card. Simple enough. We can even go a step further. And we can,
895910	900410	before writing that data, we can encrypt it and put it on the card. And that's what we call,
900410	906950	actually, transport encryption. And it also adds another step. Right there. So, now, the reader has
906950	913110	to authenticate with the card, unlock it, grab the encrypted data, and now it has to then decrypt it,
913110	920810	usually with a different key, and then get the WGAN data, send it to the controller. So, this is the
920810	927030	cornerstone of modern access control in terms of how RFID cards work. But, of course, more security,
927030	931790	more problems, my friends. Right? Because if you have keys that you've got to use, you have to
931790	937330	manage those keys. They have to be generated appropriately. They have to be stored properly.
937410	942770	And, of course, you have to use them correctly. If you write them down on a post-it or, say, put
942770	947590	them in an Android app, mobile app, and not realize it, and people disassemble it and find it, that's kind
947590	953530	of a problem. We can also go a step further. We're just touching on this topic very lightly. If we
953530	958590	want to make sure that we don't put the same key in every card, we can, of course, do diversification.
958950	966770	So, a key diversification function, or KDF, as it's colloquially referred to, basically takes a
966770	973610	secret master key, some sort of unique value tied to the credential, like a CSN or UID, and sometimes
973610	979110	an optional salt or piece of context, and that goes into the KDF. And what comes out is a unique
979110	985130	key that is just for that credential and nothing else. And that's a pretty solid system. That's a
985130	991150	best practice, and almost every vendor follows it these days. Now, you might wonder, how are these
991150	996470	master keys generated? How are they used? Because any of you have ever bought access control systems
996470	1001330	or used them, you may not realize or may not have thought that you don't actually get to pick that
1001330	1008630	key. Generally speaking, these keys fall into two categories, and that's shared master keys and
1008630	1015190	custom master keys. So, with a shared master key, these are cards and readers that are interoperable
1015190	1020270	by default. You buy the card, you buy the reader, and it just works. It's great. It's great for
1020270	1025390	integrators, it's great for customers, it's really fast and easy to install, and of course, because
1025390	1031470	it's so easy, that means your cost is lower. But maybe you got special security needs and you want
1031950	1037350	a custom key, and so now a unique key is generated for you, and someone has to manage it. Maybe it's
1037350	1043190	you, maybe it's your vendor. And of course, if you do that though, now you need to order those cards
1043190	1049090	and those credentials and those readers on demand. They have to program specifically for you.
1049130	1054810	Because of this extra step, this is a process and a technology that is kind of poorly understood,
1055970	1060310	a lot of integrators don't really like to do this because it kind of gets in the way of the process,
1060310	1065930	it's something that's confusing for a lot of customers, and ultimately, it really slows down
1065930	1072070	the process as well, which people of course don't like. But no matter what you do, whether you use
1072070	1077230	unauthenticated credentials, or authenticated credentials, or ones with encryption, whenever it
1077230	1084130	is, the reader still outputs WeGand, which is really interesting. But we're not going to get
1084130	1090330	too far down that path today. Before we continue further, we wanted to share with you a little bit
1090330	1097230	of context. As any of you guys know, who've ever learned any of this stuff, played with anything,
1097230	1103290	done anything even remotely hackery, we all stand on the shoulders of giants before us that have
1103290	1109830	paved the way before for us to learn from and then build on top of that. And this is no exception.
1109830	1115450	In our opinion, one of the big pieces of research that really kind of set us on this path
1115450	1123590	started back in 2011, 2010 rather, when Milos released his paper, Heart of Darkness.
1124070	1129610	And it was one of the first really interesting ways of compromising sensitive cryptographic key
1129610	1134750	material that was supposed to be kept secure in the reader and doing it in a really, really
1134750	1139710	innovative way. Nick, what do you want to say about this?
1144000	1149420	Yeah, so the predecessor to the system that we're going to talk about today,
1149420	1155900	iClass, was introduced in 2002. And for quite a while, it was a relatively secure system.
1155900	1164060	It used a modern credential. It had authentication keys. It had encryption keys.
1164060	1172280	It was a relatively secure implementation. But use of cheaper hardware and inadequate
1172280	1176680	key protection kind of ultimately led to the recovery of those keys that made the system
1176680	1182820	secure. So it was originally based on an inside secure or inside contactless at the time
1183520	1191480	PicoPass chip. And it was mainly popular in North America. It saw some penetration in other markets,
1191480	1197920	but primarily in North America. iClass legacy credential looks like this from a memory map
1197920	1205140	perspective. There are unencrypted variants or encrypted variants. Funny enough, the credential
1205140	1210900	itself or the card itself controls whether or not it's encrypted or plain text.
1220260	1227940	So you see like two examples here of an encrypted card and an unencrypted card.
1228760	1233560	Suffice to say that having the credential itself specify whether it's encrypted or not
1233560	1239280	might not be the best idea. But the hardware for this ecosystem was a few different revisions.
1239280	1245300	There was rev A, B, and C. B really wasn't in the channel very long. Not a lot of customers
1245300	1251700	with rev B readers. But Milosz selected rev A readers as a target because it's the earlier
1251700	1256600	generation. There might be some bugs. That's a typical thing for hardware hackers to do is
1256600	1264320	select an earlier revision. It used a relative commodity pick microcontroller, which was not
1264320	1272440	targeted against attacks that Milosz performed. So when iClass was introduced, this is where
1272440	1279170	the concept of the shared standard keys and what the vendor calls elite keys was introduced.
1279840	1286020	So most customers went with a standard key option. Elite keys were for customers that
1286020	1291320	had or were concerned about advanced threats so that their cards wouldn't work on other
1291320	1297880	readers and vice versa. So those cards and readers are built to order. Customers don't
1297880	1302020	actually get to choose that key. It's chosen for you. There's some good research about that we'll
1302020	1309620	talk about later. But it was elite is probably one of the, if not the most prominent vendor
1309620	1318520	managed key program that exists in the access control space. So in this ecosystem, there was
1318520	1326260	an encoder. And that encoder had some use cases for stored value applications, vending,
1326260	1330780	things like that. And it was just another reader that had an interface that you could connect to
1330780	1336740	with your PC and talk to it with a protocol. But this is what Milosz targeted for his research.
1336860	1343720	And his research, the paper's titled Heart of Darkness, it relied on using two readers. It was
1343820	1350040	a destructive attack against each one. With the first reader, you would erase the boot block
1350560	1355740	because the debug interface would let you do some limited things. And in that erased boot
1355740	1362860	block, he wrote a dumper program to dump the rest of the memory. And then on the second reader,
1363120	1369780	he did the opposite. He erased the end part of the memory and wrote the dumper program at the
1369780	1374140	end, which then looped back around and got the first bit that he didn't have from the first
1374140	1380340	reader. So this led to complete recovery of the firmware and all associated data with that
1380340	1388660	system. Let's see if this might... way too loud this time. All right. Just a quick add. One thing
1388660	1394840	that I found really cool about this attack is that this chip technically had read protection.
1394840	1401360	So they thought the keys were secure, but he found a very innovative way to get his code to
1401360	1409020	run inside the chip without erasing the rest of it. And he found, quite by accident, that code
1409020	1414440	running inside the microprocessor was kind of behind the firewall, so to speak. And so it was
1414440	1420700	able to then get access to those re-protected areas of memory. And that basic concept of,
1420700	1425580	I don't have access to that thing, so I'm going to find something else that has access to that
1425580	1431620	thing and try to manipulate my way in, that is so critical to so many different aspects of hacking.
1431620	1437880	Yeah, exactly. So once you actually have that extracted firmware and data, you can start to
1437880	1442760	look through it. You kind of have broken the chain of custody. You now have those keys that were
1442760	1449200	meant to be kept secret. And through analysis, it ultimately revealed the algorithms that were
1449200	1455380	used by the platform. It prompted a lot of subsequent research over the next couple of years,
1455380	1462340	primarily by a handful of European researchers. There are some really interesting cryptanalysis
1462340	1468140	talks. There's a few of the papers that are listed here. Fantastic reads. These are deep,
1468140	1485000	math-heavy papers, so I'll be frank, it's over my head a lot. Testing 1.2, there we go. So yeah,
1485000	1490880	this is truly next-level research. And from a failure perspective, choosing a commodity
1490880	1497280	microcontroller, even with re-protection, is not necessarily the proper key protection mechanism
1497280	1501920	that you'd want for a system like this, especially if you've got standard or shared keys across
1501920	1511140	all sorts of customers, potentially globally. So with the data integrity portion of this,
1511140	1516940	it being optional and controlled by the card, also maybe not the best security decision. If
1517480	1520280	customers want encryption, they should be able to specify that on the reader, not
1520280	1529440	the credential. And one other issue that plagues this platform, not just this vendor, but in this
1529440	1535360	industry as a whole, is firmware upgrades or updating devices in the field. If you take these
1535360	1540240	readers and they're at your doors, if you have five doors, it's not much of a problem. But if
1540240	1545600	you have 50,000 doors with readers that are spread out across the globe, if you want to update
1545600	1550940	those and you have to go to each one of them, that's quite the task. So centralized updates are
1550940	1556980	an issue just kind of industry-wide that we're hoping to get some attention on in the next couple
1556980	1562380	of years with product advancements and whatnot. And I think one of the really interesting
1562380	1566620	things to understand and take away from this, if you're not familiar with any of this technology
1566620	1574260	already, is that even though they had this encryption layer on there as well,
1574730	1580020	what people found is that once you have the authentication key, you didn't even have to
1580020	1587080	decrypt it in order to clone it because there was no validation of which card that data belonged
1587080	1593920	to. So you could actually just take one card, unlock it, grab the encrypted blob of data,
1593920	1598660	throw it onto another one, and even though the serial number of that card was different,
1598660	1604780	it would still work, which really kind of undermined a lot of the integrity of the
1604780	1610120	data. So when we talk about data tampering, that's what we're talking about. And it's a critical
1610120	1617680	aspect that you'll see coming up as a theme over and over. And as a result of this research,
1617680	1624740	it actually led to a really cool new platform, really the rebirth of iClass. And to talk to
1624740	1645950	you about that, I'd like to have Aaron come up if you're willing. We have a phoenix rising from the
1645950	1653630	ashes here. It's truly a next generation, next level platform. Yeah, I mean, if it looks a little
1653630	1659770	bit dramatic, it's because in many ways you could argue that that original platform really kind of
1659770	1667650	got burned down in a lot of ways. But to HID's credit, they actually came back pretty hard. And
1667650	1679030	when SE came out, it was kind of a BFD. Aaron, tell us about it. Sure. So to replace iClass comes
1679030	1688230	iClass SE. Launched in 2011. Technically it stands for SIO enabled. SIO stands for secure
1688230	1694910	identity objects. Yes, nested. A lot of confusing terminology here. But in short, they got a lot
1694910	1702670	of things right here. HID clearly learned a lot of lessons of things that went wrong with iClass.
1702670	1714170	And so iClass SE really was arguably the secure edition of the platform. So this name, iClass SE,
1714170	1722070	refers to three different things. A platform, a reader, a credential technology. You can see how
1722070	1734630	that might be confusing, right? And it has been, right? To this day, there is still an incredible
1734630	1741430	amount of confusion over what iClass SE actually means. And I don't mean just from like everyday
1741430	1748390	users. I mean industry professionals. People who, this is their job. Nothing but access control.
1748410	1755650	Selling it, installing it, maintaining it. The phrase iClass SE is very, very nebulous. But when
1755650	1759510	you look at it at a technical level, you can understand why there is so much confusion.
1759510	1765800	Because they reuse the same name for very different discrete aspects of the technology.
1765800	1771620	So we do our best to separate things out here for you. But it's important to understand that
1771620	1778960	depending on the context in which you invoke the phrase iClass SE, what we're referring to can vary.
1780000	1787400	Indeed. And so one of the interesting things about iClass SE as a reader platform...
1789780	1796280	One of the interesting things about iClass SE as a reader platform is that it is very much
1796280	1802380	upgradable. And so they've added support over the years for newer, other credential technologies.
1802860	1806960	Something that was not easily possible with the original iClass reader platform.
1806960	1814160	So right in 2011, we had those four. iClass SE most significantly. 2012, we got CEOS,
1814160	1819220	which we'll talk about later. 2014, mobile. And so on and so forth.
1821180	1826400	So I mentioned that term before, SIO, secure identity object. So let's talk a little bit about
1826400	1836680	what that is. So with iClass, one of the things that Babak was talking about, and Nick as well,
1836680	1842040	was the fact that there was nothing to cryptographically bind the encrypted data
1842040	1848220	payload on the card to that particular card. And that's one of the main things that the SIO
1848880	1857200	endeavors to fix. So it is an ASN.1 encoded payload. It is cryptographically bound to a
1857200	1864280	specific card by its serial number or UID. And the data in it is encrypted. So in other words,
1864280	1870060	if you take an SIO from one card and you put it on another card with a different serial number,
1870060	1875160	it won't work. And that's a big deal, right? Like that's a big step forward in terms of the
1875160	1884640	security of the SIO-based credential technology. Yeah. I want to clarify, just in case, because
1884640	1893020	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,
1893180	1901200	a secure object of any kind, is not only is the data encrypted, but as he mentioned, it's
1901200	1907400	cryptographically bound. It's tied to something unique and unchangeable about that credential
1907400	1914080	such that if you mess with it, if you tamper with it, you change even one bit of data, it breaks
1914080	1922060	the signature and the reader considers it invalid. It's a very important and critical piece of
1922640	1932160	security. Indeed. So let's talk about the advantages of SIOs. So we already spoke a bit
1932160	1936360	about some of this. But there's a really good sort of way to think of this, which is that an
1936360	1943700	SIO is kind of like a tamper seal, right? If you have the card, right, and the weekend data on the
1943700	1951980	card, the SIO is ensuring that, well, effectively it's a tamper seal, right? You can't tamper with
1951980	1958480	it at all. And it's independent of card technology. It's a really, you know, overall good
1958480	1968440	design. So the first major technology, right, to talk about with regard to SIOs is iClass SE,
1968440	1977860	right? So uses the same, like, card technology as iClass, right, which is called PicoPass. Still
1977860	1984380	cost effective. It was cheap. The silicon wasn't broken, right? It had good read distance. You
1984380	1990140	know, honestly, a lot of things about iClass as a card technology were good, at least for the
1990140	1999180	time, right? So iClass SE essentially took iClass and made it more or less secure. Yeah. And,
1999180	2003700	you know, if you see iClass credentials, you can see, like, an SE or an SR marking to indicate
2003700	2010540	that there's an SIO on the card. Yeah. This is, uh, this is one of the first places where you
2010540	2016020	begin to have that confusion, right? We talked about how iClass SE gets reused over and
2016020	2022980	over. So now we're talking about iClass SE cards, specifically. So they just took the same
2022980	2028320	card technology that they had already, but because their keys were broken and their algorithms
2028320	2032440	were broken, yada, yada, yada, they said, hey, you know what? The container is still not so
2032440	2038280	bad. So why don't we just create a new data model and change our keys and change our
2038280	2046000	algorithms and all those things, uh, and basically kind of remix it. And it did pretty well.
2046000	2054680	Yeah. Indeed. But let's talk a little bit about the limitations of PicoPass, right? The, the
2054680	2060080	card technology that, uh, you know, iClass is built on, right? It has limited memory, uh, you
2060080	2064860	know, you really only have two application areas, uh, so there, you can't have too many
2064860	2070200	different uses, right, for an iClass card. It doesn't have replay protection, um, you know,
2070200	2075420	there are a number of, of, of bugs, uh, in terms of reader firmware impacting iClass and
2075420	2082240	PicoPass specifically. Uh, more, more recently PicoPass became EOL, uh, and HID actually had
2082240	2087740	to, had to, uh, develop a custom IC that emulates PicoPass so they can continue to sell
2087740	2094100	iClass cards. Um... Challenges of not owning your whole supply chain, right? They bought
2094100	2099020	someone else's chip, they said, hey, we're gonna rebrand this, call it iClass, and then
2099020	2107120	eventually they stopped making that chip, so they had to emulate it, basically. Indeed. Uh,
2107120	2113620	and actually, uh, you know, NVX, uh, discovered a really interesting, uh, implementation
2113620	2120260	defect in, in reader firmware having to do with iClass and is giving a talk called iClass
2120260	2128600	Throwing Away the Keys on Friday. That's today. Yes, today in RF Village. Um, definitely
2128600	2136520	check it out. We're excited. So, let's talk about CEOS. So, CEOS is that card technology,
2136520	2141260	uh, that was shown in, in the initial, uh, video at the beginning of the talk. It is
2141260	2147020	HID's flagship to this day, uh, launched in 2012. Originally they called it iClass CEOS,
2147020	2152520	uh, which now, you know, uh, you know, may, may be a, an interesting decision, right?
2152520	2159500	Because iClass, uh, has certain, you know, connotations of, of weakened security, right? Um,
2159500	2163960	but, uh, at the time, right, iClass was a well-established brand name, so it, it, it helped
2163960	2167880	really sell it to, to their customer base. But it, it, you know, CEOS, honestly, it gets, it
2167880	2172340	gets a lot of stuff, right? Like, this is, this is a really solid credential technology. It's
2172340	2176780	more memory, much better security. It's, it's very much standards-based, right? You don't
2176780	2182380	have a lot of the proprietary, uh, you know, algorithms and, and, and, and, uh,
2182860	2186400	diversification algorithms and things like that that were being done with, with iClass and, and
2186400	2190260	previous generations of technology. They made tons of improvements. Yeah. Like, they, this
2190260	2197940	was like the Rolls-Royce of credentials when it came out. Uh, and the price reflects that, uh, as,
2197940	2205960	as you can see. Um, but it had a lot of cool stuff. Uh, and, um, you know, it wasn't really
2205960	2211480	big on adoption initially because of the cost, but now that's actually very, very cost
2211480	2217420	effective because they've had like 10 years plus to optimize it. Yeah. Agreed. And, and it's
2217420	2223240	also, you know, sort of a virtual credential or, or, or can be in a sense, right? So see us,
2223240	2229880	there are see us cards. There are also see us, uh, virtual cards or mobile cards, right? Uh, you
2229880	2234440	know, if you've heard of like HID mobile access or things like that, right? Um, there are all
2234440	2239460	these different, different, uh, form factors really where see us can exist. Uh, so it's
2239460	2243180	extremely portable, extremely mobile. I'd say to this day, it's a very solid credential
2243180	2253040	technology. Um, now let's talk about support for other technologies with, with, within, uh,
2253040	2258500	within the platform. So, uh, SIOs, again, they made things very card agnostic, right? You're
2258500	2263600	not relying on proprietary features of iClass or really any other credential. It's, uh, you
2263600	2268060	know, uh, you know, SIO can be applied, you know, even to my fair classic, right? Another
2268060	2272980	sort of, uh, infamously insecure card technology. Uh, they're, you know, they're very much
2272980	2280100	feature proof, um, and, uh, yeah, they're, um, they're an extremely powerful technology. I
2280100	2285040	don't know, Bubik, if you have anything you want to add or Nick? Uh, yeah, so the, the, the,
2285040	2291800	the neat idea about a secure object is that it's agnostic. So you can take any container you
2291800	2298860	want, whether it's an iClass, uh, Pico pass container or whether it's SIOs or it does fire,
2298860	2304560	whatever flavor of little tiny crappy digital safe that you want to use, you can actually
2304560	2311180	still put this concept of a secure object on there. And so it makes it very extensible and,
2311180	2318580	and reusable. Um, and it gives them a lot more flexibility because they can control the data
2318580	2323600	model. Uh, you can't control as much how the card technology itself behaves in the reader,
2323600	2327920	but that's kind of splitting hairs a little bit. So we don't need to spend too much time on
2327920	2333020	that. Uh, but they really did try to intend for this card to be the one card that ruled them
2333020	2337020	all. And they tried to be as forward thinking as possible. And they really kind of hit that
2337020	2343520	mark in a lot of ways, in my opinion. I agree. I agree. So let's talk about how SE credentials
2343520	2350580	are encoded. Um, so to start, right, you have to obtain the binding from the card, really the
2350580	2356540	serial number or UID of a card. Uh, you have to calculate diversified write keys. You need to
2356540	2362340	generate a unique ID, right, for the secure object and calculate the keys for that, for
2362340	2368320	encrypting the secure object. You gotta encrypt and sign the data. And lastly, you need to
2368320	2373940	authenticate the card with diversified keys and write that, write the SIO to it. And so that
2373940	2382700	brings us to the iClass SE encoder, right? This is how HID enables customers to encode their
2382700	2389800	own SE, right, SIO-enabled credentials, be that iClass SE, SEOS, MyFairClassic, you know,
2389800	2394840	with SIO, uh, that's SIO-enabled, et cetera, right? And it came in two form factors, or it
2394840	2401340	comes in two form factors. The desktop encoder, um, as well as an embedded printer-based
2401340	2407920	encoder as well. And, uh, it can do a lot of stuff, right? It can encode, you know,
2407920	2412280	primarily, right, it can encode genuine HID cards, but you can also encode third-party cards
2412280	2418200	as well, um, right? It can, you know, encode prox, uh, lots of different high-frequency
2418200	2422840	credentials, including both SEOS, DesFire, iClass SE. Yeah, these were, these were pretty
2422840	2429480	cool little tools. Uh, not cheap, uh, very, very expensive, but, uh, you know, if you had a
2429480	2435060	need for it, it really kind of came in clutch. So it allowed you not only to create your own
2435060	2440640	credentials on demand, but also it allowed you to, you know, create custom configuration
2440640	2446560	cards, and really enable, being able to service your own platform a lot more easily than
2446560	2451100	having to call the vendor every single time. So it definitely filled a very important
2451620	2458480	business need, uh, from that perspective. Absolutely, and, and yeah, configuration cards,
2458480	2462360	that last one there, that's, that's an important one that we're going to talk about a little
2462360	2468580	more in a bit. Um, but first let's talk about the target markets for this. Why did HID make
2468580	2472740	this, right? Who, who, who, who's buying this? Who, you know, what, what is it used for?
2472840	2477300	Right? So whether it's customers that have custom keys, right, for, for various security
2477300	2481220	reasons, or they have a bunch of credentials that they want to keep, they don't have to buy
2481220	2485240	new ones, but they want to re-encode them, like put it, put different data on them or, or
2485240	2490680	switch from standard to elite. Uh, they want to generate their own card numbers that HID
2490680	2495540	doesn't know about, right? Or they want to customize certain reader behavior functionality
2495540	2500900	or loading keys, right? And so they want to create config cards. Um. A couple of these are a
2500900	2506040	little sneaky in my opinion. So for example, you know, we have customer generated card
2506040	2512560	numbers on there. Uh, that is a very specific use case because what you may not realize, or
2512560	2518100	maybe many of you already do realize if you're in this talk, is that by default when you buy
2518100	2523960	credentials, they are pre-programmed with card numbers and weekend information. So someone
2523960	2531040	else is giving you a box of passwords to use and you assign those passwords. It feels kind of
2531040	2536000	weird sometimes when you think about it. And so what the encoder would allow you to do, if
2536000	2541540	you're really super secret squirrel about it, is you could get blank card stock. And you
2541540	2546620	could have this encoder either at your desktop or built into your printer, uh, and you can
2546620	2551920	basically generate your own card numbers, uh, and then you wouldn't have to worry as much
2551920	2557180	about some third party vendor that you don't have control over knowing those critical bits
2557180	2561740	of information. Of course that's a lot of overhead too, because now you have to manage and
2561740	2566480	remember all the card numbers that you used, ever, so you can't repeat it. Uh, and in
2566480	2570580	practice it wasn't a feature that's used very often. But you still need to have that
2570580	2575800	capability there. The other sneaky thing is integrator lock in. You might be thinking how
2575800	2581720	does that work? There have been a couple of areas, globally, where a integrator that has a
2581720	2588040	really strong market presence will say, hmm, you know what? We're going to get our own
2588040	2593500	custom key and all of our customers, we're going to issue them readers and cards that use
2593500	2598680	our custom key. And so now if you're one of their customers and you need more readers or
2598680	2603460	you need more cards, you only got one place you can go in order to get interoperable
2603460	2609380	credentials. Because only they have the key. So we don't see too much of that in the U.S.,
2609380	2614940	but we did see some of that in Singapore and Australia and a few other places. So it's just
2614940	2620680	really interesting to see how people kind of creatively use some of the features that are
2620680	2629660	offered by the platform. Indeed. So, uh, the I-Class SE encoder, the CP1000, that's the
2629660	2635500	hardware. Assure ID is the software. Um, right? It, it, it doesn't exclusively exist for the
2635500	2641100	CP1000, right? It's used primarily for badge printing, right? Um, but it is the software
2641100	2645760	primarily that is used for credential encoding with the CP1000 and, and it sort of
2645760	2651200	facilitates all of these encoding operations. Um. Yeah. This is, this is the front end. This
2651200	2660560	is the main default user interface for interacting with this piece of hardware. Uh, and it is a
2660560	2665220	little bit clunky to use. I'm not going to lie. Um, but it's kind of the only thing that you
2665220	2670240	have out of the box. Uh, some software vendors, uh, if you have a really large access
2670240	2676780	control system, let's say from, well now, or software house, uh, some vendors actually are
2676780	2682820	able to integrate pieces of this software, the SDK, into their access control software. So
2682820	2687560	as a customer, when you wanted to encode a card, you don't have to load a separate
2687560	2693380	application. You can just do it natively in your application and behind the scenes it
2693380	2699020	makes the appropriate API calls, yada, yada, yada. Uh, so that's, that's how the SDK
2699020	2705860	portion is designed to be used. Indeed. So let's talk about the internal operation of the
2705860	2711900	encoder. Uh, essentially, right, everything in, in that box, right, that is inside of the
2711900	2718300	encoder itself, which also happens to be rectangular in shape. Uh, so you have the
2718300	2723480	desktop here, essentially the Assure ID software in normal operations, right? That talks to
2723480	2728160	core, which acts as a router between different components in the encoder, sending messages
2728160	2733120	back and forth, right? Which will send commands to the, to the SAM. The SAM will send
2733120	2738420	commands, uh, to the NFC front end. NFC front end talks to the credential and, and that's
2738420	2744920	sort of the, the overall sort of, uh, block diagram of how encoding works. Um, and you
2744920	2748980	know, the, the, these encoders are, they're very customizable, they're very flexible, right?
2748980	2754600	You can use different types of keys with them. Um, one sort of interesting thing is that, uh,
2754600	2761140	you know, HID does, you know, sell these, uh, encoders, but they're not unlimited use, right?
2761140	2765080	They actually have a credit system, uh, where when you buy an encoder, only have, you can
2765080	2769180	only encode a certain number of cards of different credential types. This is super sneaky.
2769180	2774100	You spend $1,500 or $2,000 on an encoder, you're like, cool, I can make as many cards as I
2774100	2783360	want, right? Nope! Indeed, indeed. You can make 30 configuration cards. Out of the gate, yes,
2783360	2790700	only, only 30, yes. Um, so now let's talk about the, the reader side of things. So the
2790700	2795340	iClass SE reader, it's generally what we call revision e-readers. Technically there are
2795340	2800160	some revision d-readers that came before it, although they're very rare. Um, they can be
2800160	2804020	branded as iClass SE, multi-class SE, and a few other things. They come in all kinds of
2804020	2810600	different form factors. Um, uh, but I, uh, I, I can guarantee that most of the people in this
2810600	2814840	audience have seen at least one. Yeah, it's the same piece of hardware internally. It's just
2814840	2820060	marked up differently with different stickers and different software configurations. Uh, and
2820060	2825080	then of course they make them in different sizes and shapes, but the primary circuitry and
2825080	2830140	the design of it is still all the same. Yeah. So let's talk about how things are
2830140	2839660	decoded, right? Um, so in short here, what's happening is that, um, once, once the card is,
2839660	2846200	is pulling back or, or, or reading the encrypted data blob, now the SIO from the card, first
2846200	2849920	it's doing a signature check, right? Making sure that the data hasn't been tampered with.
2849920	2854400	Then it's decrypting the data and then it's parsing the weekend data, that, that, that same
2854400	2858720	weekend data that Babak was talking about earlier, right? That everything else is sort of a
2858720	2863300	wrapper around, um, and, and sending it back to the door controller, which will ultimately
2863300	2872960	decode it and, and, and make a sort of a, a go, no go, or an allow slash deny decision. Um, so
2872960	2878420	just, uh, and, and, uh, so yeah. Go ahead. Yeah. This is kind of a cool zoomed in part of
2878420	2882920	what actually happens inside the reader when dealing with an SIO. Yeah. So what I just
2882920	2889760	explained, like the job of that signature check is to see, has that data been modified? Uh, is
2889760	2895800	that data bound to the UID or CSN of the car that it just came off of? So, uh, after that step
2895800	2900540	and only if that step succeeds, does it actually do the decryption of that weekend data. And
2900540	2904960	then once it decrypts the weekend data, it does the transmit step, which we all know and
2904960	2912900	love. That's when we hear the beep and it kind of goes on from there. So, uh, yeah. Thanks. So
2913640	2919940	migration modes, uh, so in the industry, yeah, in the industry, there's a, there's a type of
2919940	2924820	reader called migration readers that are designed to support both old and new technologies,
2924820	2930300	right? And, and like they need to exist, right? Their, their existence is to help customers
2930300	2935600	move from less secure, older technologies to more secure, newer ones, right? And so, so by
2935600	2940420	definition they have to support multiple credential types. And the most common one you'll
2940420	2945380	see in the field is probably the multi-class SE reader from HID. It's literally the Swiss
2945380	2950900	army knife of readers. It reads, you know, pretty much all the common technologies. Um, and
2950900	2955920	even though they aren't always needed by customers, a lot of times integrators will install
2955920	2961420	these and stock these because they always work, right? If you have to keep, if there's only
2961420	2966300	one kind of reader you can keep in stock, right? To be able to, to, to sell your, your, your
2966300	2970300	customers, your clients, right? It stands to reason a lot of people are going to go with the
2970300	2974180	multi-class. Um, it always works. And that is indeed what happens a lot of the time.
2974180	2979160	It always works is a big problem in the industry. Not just with readers. So, not only do we
2979160	2982860	have these readers that can read all these different card technologies, you're like, oh,
2982860	2987480	that's great. Uh, it's very flexible. It's always going to work. That's awesome. Except it
2987480	2992980	also really undermines how access control works. Uh, similarly on the hardware side, when it
2992980	2997380	comes to electric strikes and the door hardware that goes in the door, if you've ever
2997380	3003320	slipped a latch with a card or anything like that, that's because that strike is either
3003320	3010280	misadjusted or also very likely sometimes way too darn big for the actual latch. And as a
3010280	3017100	result, those deadlatch mechanisms don't actually work properly. But if they only carry one
3017100	3021760	part that's just really big and it just works with everything, then it's just a lot easier
3021760	3026600	for that integrator as well and they probably get a better price on it too. Indeed. And
3026600	3030640	these migration readers open the door for so-called downgrade attacks, credential
3030640	3036200	downgrade attacks, right? Uh, because as we discussed earlier, right, uh, at the end of the
3036200	3041040	day, uh, everything else is sort of just a wrap around that WGAN's data that Bobik was
3041040	3045000	talking about earlier. So as long as the right WGAN's data gets sent from the reader to the
3045000	3048900	door controller, it doesn't matter necessarily what the credential technology on the front
3048900	3054580	end is. So you can take WGAN data from a, you know, a more secure credential that comes out
3054580	3058880	of a reader and put it on a prox credential instead as long as it's supported. And as far as
3058880	3063480	the door controller is concerned, it's the same thing. It's the same person. But we don't
3063480	3070020	wanna bore you too much with this. It's really important stuff. Uh, we're gonna wanna, uh, get
3070020	3074440	to some more interesting stuff here in a second, but because it's good context, uh, we
3074440	3080800	wanna make sure you have a little bit of it at least. Indeed. Um, so let's talk about the
3080800	3088240	iClass SE reader modules, right? So not all iClass SE readers look like a typical iClass SE
3088240	3091960	reader, right? There are embedded modules where other vendors can actually take this
3091960	3095800	technology, the, the, the reader platform and embed it in something else. Something that
3095800	3099620	looks completely different, such as like a biometric reader or, or, or something along those
3099620	3106620	lines. Um, so now let's talk about configuration methods for these readers. So it's all SNMP3
3106620	3112020	based, right? Uh, which is an interesting choice of, of protocol we'll get to in a bit. Um, but,
3112020	3118340	you know, it, it's SNMP3, SNMPv3 over APDUs. You can do it over NFC, BLE, OSDP, UART, et
3118340	3121640	cetera. It doesn't matter. And there are a few different ways to do it, but, you know,
3121640	3127540	generally for readers in the field, it's either with config cards or the HID reader manager app
3127540	3134860	most of the time. Um, generally when it comes to reader, generally when it comes to reader
3134860	3142360	configuration, uh, you know, there are a lot of different things that you can do. Um, right?
3142360	3146600	Uh, and, and these configuration cards specifically, uh, were, were a bit of a new
3146600	3151860	technology with the platform. Uh, they're Java card based, um, right? Also known as the
3151860	3158780	Artemis updater card. Um, and, uh, if you encode one with a CP1000 encoder, right, they, you
3158780	3164480	know, they have credits. Uh, ones from the factory have unlimited credits. Um, yeah. In
3164480	3170320	short, HID config cards are the same as the Java, uh, are the same technology, right? They're
3170320	3176540	Java cards like a J3D081, just like many EMV bank cards, credit cards, et cetera, are, uh,
3176540	3182040	same, same platform, different use case. Uh, so let's talk a bit about how the firmware
3182040	3190180	structure sits. Do you mind jumping on that? Sure. Yeah. Thank you. Uh, so from a firmware
3190180	3194380	perspective, we've got, uh, those components we talked about earlier within the encoder kind of
3194380	3199160	similar components within the reader. We've got that core, SAM, uh, we've got expansion
3199160	3203760	modules. Each of these things have firmware and all those things have to be upgraded or
3203760	3208860	ideally they should be able to be upgraded. So, uh, one of the ways that those things are
3208860	3215180	actually updated is firmware upgrade cards. Uh, same interfaces that work for the config
3215180	3221440	cards also work for firmware upgrades. So you've got the, uh, NFC, BLE, OSTP, et cetera.
3221440	3225420	Uh, although OSTP doesn't have as much market penetration yet as we'd like for firmware
3225420	3229460	upgrades, but we're getting there. So, uh, for firmware upgrade cards, there's actually this
3229460	3233840	little plastic bracket that you hang because you have to, you like, to fit firmware on cards,
3233840	3238080	you have to use a lot of cards actually. If anyone remembers splitting RAR files onto floppy
3238080	3243600	disks, a bunch of disks to take Age of Empires home from school with the fast internet
3243600	3250780	connection. But, yeah, so, uh, you've got a bunch of firmware cards, uh, really didn't get
3250780	3255800	used. They were clunky, uh, could end up in, like, with brick readers, but ultimately, like,
3255800	3261580	firmware upgrades are still kind of a problem even in this new, new, new platform. So, uh, but
3262060	3266720	as we had mentioned, uh, this platform introduced a SAM, otherwise known as a secure
3266720	3272620	application module. It's entire job is to protect secrets. So it's implemented on top of a
3272620	3276620	secure microcontroller. Uh, it's, it's designed to be a black box to protect your secrets,
3276620	3282500	whether those are cryptographic keys or, uh, the, like, algorithms or intellectual property
3282500	3288300	that makes your product unique. You can kind of put that into a black box and, uh, with using a
3288720	3292420	secure microcontroller, it's entire job is to just protect those secrets. Yeah, do you mind if I
3292420	3295760	touch on this a little bit? Yeah, go ahead. So, so this is, you know, very similar to the
3295760	3300820	concept of a TPM, basically. You have a special processor or a special hardware module. It's
3300820	3305460	only job is security. Whether it is, you know, storing keys or performing cryptographic
3305460	3311420	operations. Uh, and they're designed to, you know, resist really, really advanced threats. Uh,
3311420	3318280	this particular SAM was made by, uh, Infineon ultimately. It was an SLE88. Uh, and one of the
3318280	3322700	first things that we wanted to figure out is how do we get access to this so we can try to
3322700	3328860	understand it, uh, better ultimately. Uh, the SAM comes in a lot of different types and shapes
3328860	3334580	and sizes, uh, for different purposes, right? So you have these SIM cards, you have, uh, you
3334580	3338580	know, different physical form factors that can be used. They can go into readers, they can go
3338580	3344420	into printers, they can go into third party products. But ultimately this is the piece of
3344420	3350160	technology that is responsible for key management. And so inside of that SAM, which is kind of
3350160	3356840	like a digital vault for keys, uh, there are, you know, special write only slots that you can
3356840	3362280	only write keys to. You're not supposed to be able to read keys out of them. Uh, and these, as
3362280	3365640	I mentioned, have both official applications and you might have heard some of the
3365640	3374660	unofficial applications. Someone owns a flipper. Of course that's Eric. Eric Betts, uh, writer
3374660	3378700	of Cedar. If you ever, you know, have used that, it's a super cool app. We can talk about it in
3378700	3384480	RF Village later. Uh, but yeah, it's basically, you know, this little super secure little guy
3384480	3389520	and, you know, he handles all the important stuff. Uh, and so you put it inside of anything
3389520	3394720	that you want compatibility with and there you go. Bob's your uncle. Uh, the firmware is
3394720	3398800	separated out into a couple of pieces. We're not going to get super deep into the weeds on
3398800	3405240	that just for the sake of time. But suffice to say, it is a layered implementation. Uh, that
3405240	3411420	builds basically a chain of trust, uh, top to bottom to try to protect everything along the
3411420	3417160	way. So, there's multiple, you know, steps and keys that, you know, control what
3417160	3423520	applications run on there, what data's accessible by what application, so on and so forth. But
3423520	3427600	the reason I sped up a little bit there is because we want to make sure we talk about the
3427600	3432820	most important part. It's the heist. And of course, you know, safety first, right? So we
3434920	3443120	gotta... that's right. This is some high intensity stuff here, right? Uh, so, so let's talk
3443120	3449420	about this process a little bit. Um, you know, I, I remember, you know, Aaron and I talking a
3449420	3456100	lot about one of the favorite aspects of, uh, of hacking this project is what? Yeah, so, so
3456100	3460820	one of the really great parts of this project is that, you know, a lot of reverse engineering
3460820	3466820	work that you do involves sort of unraveling information that you already have, right? So,
3466820	3470440	whether that's reversing a binary in Ghidra, and you're just trying to figure out what a
3470440	3476920	bunch of, you know, uh, instructions are doing, um, you know, that, you're, you know, all the
3476920	3480280	same, right? You're, you're trying to make sense of info you already have. In this case,
3480280	3485700	right, a lot of what happens inside of the SAM is sort of a black box. So we have, uh, you
3485700	3489460	know, a lot of information, but we don't have all the information. And so you really have to
3489460	3495820	like, put yourself into the head space of who built this. And, you know, what, what, if
3495820	3501640	they, if they, you know, did X, Y, and Z, then how might they have designed, you know, some
3501640	3505640	other thing? And you have to make these really educated guesses and, and put yourself in the
3505640	3508940	shoes of the person. And you gotta really stretch yourself. It crosses a lot of domains. It's
3508940	3513820	not just software, it's hardware, it's firmware, it's a lot of really cool stuff. So first we
3513820	3517940	need to, you know, think about this. How do we want to approach this? Well, where are the
3517940	3523180	master keys? Let's think through all the places that keys are used and stored. Let's think
3523180	3529380	through what kind of operations and what commands would have to use those keys. Uh, and then
3529380	3533700	how do those keys get there in the first place, right? We gotta understand the whole process
3533700	3539260	and see if we can find any, uh, you know, vulnerabilities in the armor, so to speak. So we
3539260	3543700	identified our targets, which is anything with keys, of course, right? That includes standard
3543700	3548900	readers, desktop USB readers, embedded readers, encoders, of course, that's one of the big
3548900	3554600	things we're talking about today. Uh, configuration cards, the common denominator in all of
3554600	3560120	these things is that iClass SE secure processor, it's that SAM, cause that's, that's the one
3560120	3566340	trusted, you know, piece, that component that is allowed to do all this stuff. So how do we
3566340	3572820	turn unknowns into knowns? Well, we gotta start touching hardware, right? So we need to get
3572820	3578340	inside, see what we can, uh, find out about what chips are used, see if we can tap into some
3578340	3584820	communication buses, and just start trying to understand the language that it speaks. Uh, on
3584820	3589940	the firmware side, we want to try to get a copy of anything we can get our hands on and start
3589940	3597680	reverse engineering, right? That is like Aaron's and, uh, Nick's bread and butter. I can poke hot
3597680	3602740	pokey things at hardware all day long, I'll cut things apart, but honestly when it comes to the
3602740	3608800	actual, like, hardcore reverse engineering, I still rely on geniuses like Aaron and Nick,
3608800	3614560	otherwise I'm, you know, just not as effective on my own. Uh, but, you know, all the normal, you
3614560	3620000	know, uh, techniques that you'd apply, we had to apply to these different domains, software,
3620000	3627480	firmware, hardware, etc. Uh, as a fun story, uh, while we were working on this, uh, one of our
3627480	3631800	mutual friends, actually, who we didn't know was a mutual friend until we started this
3631800	3638940	project, Vlad, um, he, uh, as a side quest, decided to look at, uh, some, some readers and
3638940	3643860	there was this really fun, uh, exchange that we had that he gave me permission to post, uh, and
3643860	3649240	he cut it apart and he just sends me this photo out of the blue and he says, Bobik, what the
3649240	3654940	fuck is this powder? The reader's full of it, does HID literally put a felony amount of
3654940	3659880	cocaine in every reader? And I corrected him, of course, that's clearly anthrax, that's how
3659880	3666240	HID takes out their researchers and, of course, that explains a lot. Uh, but no, that's, that's
3666240	3671800	not the case, uh, this is, this is just, you know, uh, epoxy fill, uh, serves a couple different
3671800	3677460	purposes from weather, you know, resistance, uh, to, uh, making it harder to get to the damn
3677460	3682940	thing, like, as evidenced by these photos. Um, but that was just the hardware piece. On the
3682940	3687660	software piece, we had tons of other tools as well, right? You know, we had Aaron and Nick
3687660	3693840	breaking out DotPeak and Jeb. Uh, I was breaking out the Celia logic analyzer and we were doing
3693840	3699400	all this remotely, like during COVID, you know, you were in San Francisco, I was in Phoenix and
3699400	3705380	tons of screen sharing, way, way too much screen sharing. Uh, so lots of tiny wires, lots of,
3705380	3711560	you know, hot, uh, you know, dangerous things, blood, sweat and tears, patients, and of course,
3711900	3720660	a very, very healthy slash unhealthy dose of neurodivergent persistence. Uh, FCC docs, if you've
3720660	3725540	ever, you know, been curious, it's a great resource for finding out, you know, preliminary
3725540	3730900	information about hardware, uh, anything that has a radio in it is required to go through FCC
3730900	3737220	certification, so you sometimes get leaks of products well in advance of the product actually
3737220	3742940	coming out. And I remember back in 2016, there was this, you know, article on a, uh, tech site,
3742940	3748140	like, oh, Apple is, you know, working on this mystery device, you know, it has NFC and
3748140	3752080	Bluetooth and, you know, maybe it's a new crazy airport extreme and I looked at the sticker and
3752080	3759240	I'm like, dude, it says D1D0, it's weekend, it's just a card reader. Uh, and yes, it was, it was
3759240	3763560	just a card reader as, you know, it came out, uh, six to eight months later and it's a custom
3763560	3769660	piece, uh, for Apple that they use in their facility, but we digress. We did FCC research on the
3769660	3775280	iClass SE platform, we got some kind of blurry potato quality photos, so we had to get to that
3775280	3782240	ourselves. We tried a lot of stuff, guys, we tried cutting acetone, I tried boiling readers in my
3782240	3788640	apartment, uh, to try to heat up the epoxy and make it more brittle, um, I remember hitting it
3788640	3795200	with like 1,200 degrees of hot air and trying to chip away at the epoxy and it just sucks, um, but
3795200	3802640	that worked. I found that hot air embrittled the epoxy, uh, it did not smell good, I probably have
3802640	3807880	some stuff going on in my head as a result, but I'm here and you're here and we're gonna have a
3807880	3815500	good time. Uh, so here's a photo, uh, that actually one of our close friends, Kevin, uh, 0xffff
3815500	3820580	took when he did the same process and he's just a master at this stuff. And you can see it's a
3820580	3825540	little bit clearer. And of course, there's our, there's our SAM, right? That's, protects the
3825540	3830000	secret things. That's the thing that we're trying to hack. There's other chips in there as well, we
3830000	3835220	have the RF front end, the HF front end, uh, the main microcontroller, which we refer to as
3835220	3840460	core, uh, and, you know, we wanted to figure out, how do we, how do we get to these SAMs? How do
3840460	3843980	we get more access to more of them? And, you know, readers aren't cheap, so we gotta try to
3843980	3849540	figure it out. What I ultimately, by accident, figured out is that by a weird quirk of
3849540	3856680	manufacturing, uh, on the back of the reader, if you'll notice, right over here, there's this
3856680	3862120	debug port that's actually used for, uh, it's an expansion port for external modules like
3862120	3867100	Bluetooth and stuff like that. And something about the manufacturing process required them to
3867100	3872540	put a little plastic bubble in that area. And wouldn't you know it, the SAM's right in that
3872540	3878360	bubble with no epoxy surrounding it. So what I found is I was able to use one of my new best
3878360	3885780	friends, that ultrasonic knife on the right hand side, and the official SAM recovery guide tool,
3885780	3891800	which is just a piece of cardboard that I cut. Uh, here's the 1.1 version. It's the same thing
3891800	3897520	basically. And I'll show you the process. This is sped up three times because this is already way
3897520	3903020	too long, let's be honest. So I'm just drawing a little rectangle on there and I'm using the
3903020	3908820	ultrasonic knife to cut through that top layer of epoxy and plastic. And, uh, it goes pretty
3908820	3913420	quick actually. I love this tool. If you do a lot of hardware hacking, Wonder Cutter, buy it.
3913420	3920060	It's freaking awesome. And you saw I sliced through it there pretty quick, even at 3X. Uh, and
3920060	3925180	then boom, the board is exposed. Now that tool on the right, that's pretty cool actually. Those of
3925180	3930440	you who wear glasses, like me for a long time, might remember seeing one in your optometrist's
3930440	3935800	office way back in the day. Uh, and it's just a bath of hot glass beads. And I used that to
3935800	3941620	preheat the reader to make it easier, uh, to then remove that SAM using a hot air station. And
3941620	3946640	so just after a little bit of time, we're able to recover that SAM and that was a very nice,
3946640	3953100	efficient process of trying to, uh, recover SAMs. And to be fair, this looks really slick, but
3953100	3959960	we went through a lot. Uh, I damaged a lot and spent a lot of money, uh, to get to that point. I
3959960	3965680	even had a little SAM cemetery and then I ran out of room and I just stopped. I had a whole pile
3965680	3970700	of these dead damn things. Um, but ultimately, you know, what worked was choosing the right
3970700	3975280	reader and, you know, doing all the things and great success, right? That's actually a pile of
3975280	3979960	SAMs I successfully extracted out of a bunch of readers and all of them worked. I was very
3979960	3985460	proud of it. Uh, but we wanted to see inside because why not? And so, uh, we, I live in Las
3985460	3990180	Vegas. Uh, there's a really cool local company here called Full Spectrum Laser. They make
3990180	3995900	really cool stuff. And for some reason, they let me play with one of their fancy UV lasers. And I
3995900	4003360	learned that you can decapsulate an IC with UV really, really fast. Um, it is destructive, of
4003360	4008800	course, but, uh, that is, that worked a treat. So thank you to Full Spectrum Laser for letting us
4008800	4013960	do that. Uh, but these are some dye shots that, you know, Kevin took when he did a little, you
4013960	4019200	know, acid bath process himself. And that's what proved that this was, in fact, the Infineon
4019740	4025140	SLE88. Uh, and, you know, you kind of, you get where we're going with this. I'm going to skip a
4025140	4030280	couple of slides here just for the sake of time. We want to show you the cool demo. Um, but the
4030280	4035660	Artemis platform, uh, is, was the code name for all of that hardware. And as was mentioned
4035660	4042280	earlier, it uses SNMPv3 messages, uh, to, you know, talk to different endpoints. Uh, if you're
4042280	4046700	curious about this more, you know, come talk to us later. Maybe we can, you know, share a little
4046700	4052860	bit more about it. Um, but you want, do you have a quick, uh, quick thing to mention about this? I
4052860	4056260	want to make sure we have enough time to get the demos in. Yeah, like standards based
4056260	4061220	protocols, uh, using an efficient protocol for an embedded system like this, uh, provides pretty
4061220	4066280	good security actually. It's a really interesting use. So, yeah. Uh, there's a couple different
4066280	4071000	roles that we discovered, right? You know, there's OEM admin, there's HID admin. These are users
4071000	4076340	basically that have different levels of access. Uh, and that was critical for, uh, the exploit
4076340	4082760	itself actually, right? Yeah, no, that, uh, that very much was critical. And, uh, yes, SNMPv3,
4082760	4087860	while it is primarily a network technology, is actually a really good, uh, it's, it's used quite
4087860	4092200	well in this platform. Yeah. So all this stuff is built on Java cards, which if you've never played
4092200	4095680	with, they're super, super cool, but they're used for all sorts of different applications,
4095680	4101380	everything from credit cards to access control, et cetera. Uh, the config cards use them as
4101380	4106900	well. So you can update firmware and, you know, change all those settings that used Java card.
4106900	4113220	Uh, but config card operations, Nick, take it away and punch through this. When a config card
4113220	4118020	is encoded, uh, the app is initialized, it's told how much space it should have. And then after
4118020	4122520	that happens, the encoder says, okay, here are the SNMP keys you should use when you generate
4122520	4127360	messages. And then loads the configuration data that can be keys or configuration objects,
4127360	4132780	things like LED color, et cetera. So, uh, when that, like that process is finished and you
4132780	4137480	actually go to use it at a reader, the reader selects the applet. It, like the reader itself
4137480	4143160	sends the SAM, like engine ID that uses for the SNMP v3 and then, uh, the user name that it
4143160	4147340	should use, that the config card should use to actually generate those messages. And then the
4147340	4152740	reader says, okay, give me messages. And now we're at the heist, essentially. So, uh, we
4152740	4157680	looked at that set SNMP keys portion and found that, like, it requires a secure channel to do
4157680	4162240	that. But, uh, if you have a secure channel, you can actually change the keys without
4162240	4168180	knowing them, without deleting data. So, if you find a card that you can establish a secure
4168180	4175740	channel with, you can then use that to set SNMP keys to zero. Uh, and then when you go and
4175740	4180220	pretend to be a reader, you can give it a SAM session ID, you can give it a user name and
4180220	4185140	then you can just get messages that are encrypted with zeros. So, here is a demonstration of
4185140	4191920	that exact thing happening. And in this case, we'll take the config card, we'll use it, uh,
4191920	4198400	with this, this standard PCSC reader. And, uh, in this case, we're gonna take the, uh, script
4198400	4203760	here to zero, establish a secure channel and zero out those keys. And let me just go ahead
4203760	4228680	and skip ahead. Oops, sorry. Oh, too far. I'm trying to zoom ahead. Alright, go ahead. So, in
4228680	4233920	this, this, when this script runs, it essentially zeroes the keys out on the card so that we
4233920	4238400	can then pretend to be a reader with the Proxmark3 there on the right-hand side. Uh, you can
4238400	4242440	see here the success messages generated by the card, showing the keys have been set to
4242440	4247760	zeros. And then when we go and use that, uh, config card with a reader, in this case our
4247760	4254040	Proxmark3, uh, we'll tell it to generate those messages. Nope, it's not letting me scrub
4254040	4270930	through it. Essentially, uh, resulting in... Yeah, uh... Yeah, so, uh, so, uh, so, uh,
4270950	4278750	tech problems, sorry guys. A live demo might have been better. Anyway, uh... So, this video will
4278750	4282990	be uploaded, uh, you know, we're, we're uploading this version of the deck and the demo
4282990	4287430	video, so you guys will be able to play it yourself as well. Essentially, we had a custom key
4287430	4291330	encoded on that config card and by zeroing the keys and retrieving that SNMP message, we
4291330	4295090	were able to decrypt it and retrieve that secret key. That same process works for any key
4295090	4301710	stored on an encoder, SAM, or secure element of any kind, uh, in this platform. So, uh, the
4301710	4305250	config card impact of this is that if you can establish a secure channel, you can change keys
4305250	4309390	and recover any sort of data that's on these cards. And that's... The, the, the teal deer is,
4309390	4314890	you know, Nick found a bug where you can zero out keys on a card and then dump messages from
4314890	4319750	it and if that card contained keys, you were able to then recover it. Exactly. So, all of that
4319750	4323450	is gonna be in the video, uh, you, you know, those of you who are into this can inspect it
4323450	4328850	more, uh, that'll be on the media server. Uh, and then the other thing that, sadly, I apologize
4328850	4333670	that we're going a little bit slow earlier in the talk, uh, the main thing is the encoder attack.
4333670	4338450	Now, the encoder attack is a little bit more devastating, uh, and for that reason, uh, we are
4338450	4343350	releasing, uh, in video form all of the details of how the config card works. Uh, we're
4343350	4348230	describing what happens here, we're not releasing any code for it because, uh, after our
4348230	4353730	investigation, the impact was gonna be significant, uh, but we are gonna explain, uh, how it
4353730	4364680	worked basically. So, you wanna touch on this? Sure. So, the way that the encoder attack really
4364680	4370800	works, um, is that as part of encoding a config card and loading key material into it, you need
4370800	4378080	to have a secure channel. Um, but essentially what we found is that, uh, the client is overly
4378080	4383180	trusted here, so if you look, if we, if we cut out all the steps that involve initializing a
4383180	4389260	secure channel, et cetera, we can just transmit the key in the clear. Um. Yeah, so normally, uh,
4389260	4395240	what happens, and while this video is playing, uh, you know, during any key loading operation,
4395240	4401560	uh, that encoder creates a secure session with the card to create an encrypted channel and then
4401560	4406240	it transfers the key. And so you have this whole end to end piece that is like, you know,
4406240	4412460	closed tunnel. Uh, what we found is that we could actually trick the encoder into saying, don't
4412460	4418140	worry about secure channel session, just do your thing. So, we were able to then instruct it,
4418140	4422660	yeah, ignore secure channel, just load the keys to the card, you're good, you're good, it's
4422660	4428780	cool. Uh, and then we used a Proxmark 3 to intercept those keys in the clear, cause we told
4428780	4433980	it to ignore secure channel, and using that method, we were then able to iterate through, uh,
4433980	4439000	keys, uh, that were built into the encoder and actually then recover them. Because we, we were
4439000	4445360	able to, you know, find a defect in this very critical piece of implementation, uh, and that,
4445360	4452000	you know, all this work, you know, simple, simple mistakes can be made. Um, with apologies,
4452000	4457580	we're, we're, we're, we're unfortunately, uh, out of time, uh, we are going to share, uh, these
4457580	4463960	slides, uh, and the videos. Um, the impacts that I just, if I could have an extra 60 seconds, if
4463960	4470240	that's okay, I, I appreciate that. Um, the, these types of mistakes are easy to make from an
4470240	4475060	engineering perspective, okay? Uh, and even though this is one of the most well-designed
4475060	4480760	systems that we've seen to date, with enough persistence, we found problems. Um, and
4480760	4487100	ultimately, you know, this was, uh, a vulnerability that came about due to a lot of internal and
4487100	4492040	external pressures from customers, from, you know, marketing, from sales, all sorts of different
4492040	4497180	things, and really it boils down to an industry still being hooked on WeGant, uh, and looking for
4497180	4502880	that interoperability. And what the main message that we're trying to drive home is that no vendor
4502880	4508680	is safe, technically. This was one of the most secure systems on the market, and we're still able
4508680	4514480	to find problems, and really the issue is we're trying to, you know, put patches on something that
4514480	4518800	really isn't designed to be that secure in the first place, which was WeGant. But if you do your
4518800	4524100	risk mitigation properly, if you're building your security like an onion, it's not that big of a
4524100	4528620	deal. So the last thing that we want to leave you with, uh, depending on your threat model, and
4528620	4533320	again, these will be in the slides. Sincere apologies that we went a little bit slower than we
4533320	4538140	originally had wanted to. Depending on your threat actor, that's gonna define whether or not you
4538140	4543140	have to do anything about this in any serious way. If you're just an average user, uh, and you're
4543140	4548260	using standard keys, we do recommend that you move to a custom key like elite keys, and they're
4548260	4553220	actually waiving the fees for this program for the first year as a result. If you're already using
4553220	4559300	elite keys, you're probably fine. Uh, even though technically there may be advanced ways of
4559300	4563700	recovering those out of a reader, it still takes a lot of skill, and not a lot of people know how
4563700	4571560	to do that. Um, but if you're an advanced, uh, you know, threat person, uh, or customer, then you
4571560	4576040	really want to upgrade your hard, hardware to the latest version, make sure you're using custom
4576040	4581340	keys, and engage your vendor. Engage, uh, you know, your integrator and HID, and talking about
4581340	4585120	your risks and what you're trying to mitigate against, so you have a practical, real world
4585120	4591260	understanding of what your system will do, what it will not do, um, and that's, that's really the
4591260	4595960	size of it. Uh, again, thank you for being here. Thanks for your patience. Apologies we didn't get
4595960	4601540	through a couple slides, but that was really the meat of it. Um, and thank you. Thank you again.
4601560	4602400	Appreciate it.
