1 00:00:02,930 --> 00:00:03,910 Thanks everyone. 2 00:00:03,910 --> 00:00:08,530 Welcome to our talk titled Unsafe Lock, Unlocking Millions of Hotel Locks. 3 00:00:09,110 --> 00:00:14,110 I'm Lennart, I'm a hardware security researcher at the KU Leuven University in Belgium. 4 00:00:14,110 --> 00:00:18,870 I typically do research related to voltage glitching and other hardware attacks. 5 00:00:19,450 --> 00:00:22,570 I'm Ian, I'm an application security researcher. 6 00:00:22,570 --> 00:00:24,810 I was formerly at the red team at Robin Hood. 7 00:00:24,810 --> 00:00:27,750 And now I run a point search engine called Cicero. 8 00:00:27,830 --> 00:00:29,290 We got sued by Air Canada. 9 00:00:32,410 --> 00:00:39,530 So as you can probably tell from the first slide, neither of us is really working on locks or RFID stuff all of the time. 10 00:00:39,530 --> 00:00:43,050 So when we started working on this, it was all relatively new to us. 11 00:00:43,390 --> 00:00:52,370 And the reason we started looking at these locks is that a group of us got invited to hack some Las Vegas hotels back in 2022. 12 00:00:52,370 --> 00:00:54,330 And they were running a bug bounty program. 13 00:00:54,590 --> 00:00:58,750 And one of the elements of the hotel room that was in scope were the hotel locks. 14 00:00:58,750 --> 00:01:03,110 And that's how we got nerd sniped and started looking at these hotel locks. 15 00:01:03,490 --> 00:01:06,410 Now it wasn't just Ian and me, there were more people involved. 16 00:01:06,410 --> 00:01:08,990 And some of them are sitting here on the first row. 17 00:01:09,010 --> 00:01:10,130 So thanks everyone. 18 00:01:14,900 --> 00:01:18,100 So here's some related research of other researchers. 19 00:01:18,100 --> 00:01:25,500 So back in 2012, Sarah looked at the Onity locks. 20 00:01:25,720 --> 00:01:29,240 And she found that there is a programming part on the outside of the door. 21 00:01:29,240 --> 00:01:33,900 And if you plug into this, you can actually start reading memory of the lock itself. 22 00:01:34,160 --> 00:01:38,380 And if you analyze this memory, you can extract a side code. 23 00:01:38,480 --> 00:01:42,640 And this side code is enough to send an unlock command to the door and then open it up. 24 00:01:43,380 --> 00:01:47,440 Back then, Sarah immediately published all of the details of the attack. 25 00:01:47,440 --> 00:01:54,560 And this resulted in some people making their own devices, going to hotels, opening all of the doors, stealing TVs, and so on. 26 00:01:54,560 --> 00:02:00,900 There's a very nice Wired article about this hacking spree that some people went on. 27 00:02:01,040 --> 00:02:03,200 It's well worth the read, I would say. 28 00:02:04,020 --> 00:02:10,660 Then six years later, in 2018, there was an attack on the VIN card system by Essa Abloy. 29 00:02:10,820 --> 00:02:13,300 This was an attack by researchers from F-Secure. 30 00:02:13,300 --> 00:02:21,800 And they figured out that if you can read one card from the hotel, that they can make a master key and then open every door in the hotel, essentially. 31 00:02:21,800 --> 00:02:25,940 In this case, F-Secure worked with Essa Abloy on a fix. 32 00:02:25,940 --> 00:02:29,960 And this also meant that the talk didn't include a lot of technical details. 33 00:02:30,400 --> 00:02:33,420 And this is something where we want to strike a balance. 34 00:02:33,420 --> 00:02:39,400 So instead of publishing all of the details immediately, we went to a long, responsible disclosure process. 35 00:02:39,400 --> 00:02:42,860 And now we are sharing some of the details of what we found. 36 00:02:44,100 --> 00:02:47,520 So, this talk is about Dormakabos Saflock. 37 00:02:47,520 --> 00:02:51,320 It was introduced in 1988 by Computerized Security Systems. 38 00:02:51,320 --> 00:02:55,140 Back then, it was a mag stripe lock, and then they became RFID locks. 39 00:02:55,480 --> 00:02:57,520 It has kind of a weird corporate history. 40 00:02:57,580 --> 00:03:01,000 Computerized Security Systems was acquired by Kava in 2006. 41 00:03:01,220 --> 00:03:07,160 And then in 2015, two companies called Dorma and Kava merged, and now it's called Dormakaba. 42 00:03:08,560 --> 00:03:13,440 Saflock is used on 3 million doors in 13,000 hotels in 131 countries. 43 00:03:13,440 --> 00:03:15,940 So, this is one of the biggest brands of hotel locks. 44 00:03:17,180 --> 00:03:19,760 It's important to talk about the architecture before we start. 45 00:03:19,760 --> 00:03:22,440 So, these locks are usually entirely offline. 46 00:03:22,580 --> 00:03:26,320 So, there's the front desk server, and the front desk computers have a connection. 47 00:03:26,320 --> 00:03:28,620 But, they're not connected to the actual hotel locks. 48 00:03:28,620 --> 00:03:33,420 And so, the front desk will write the key card that contains the information of what doors it should open. 49 00:03:33,480 --> 00:03:37,080 And then, the locks make the decisions entirely themselves. 50 00:03:37,080 --> 00:03:39,360 They don't contact any server or anything. 51 00:03:39,620 --> 00:03:45,940 But, in the case of when the lock needs to be upgraded, or if you need to see the access history, there's this unit called the HH6. 52 00:03:46,060 --> 00:03:49,300 And you can plug into a USB port on the bottom of the lock to use this. 53 00:03:49,300 --> 00:03:52,220 So, generally, that's the only connection these locks have. 54 00:03:53,340 --> 00:03:58,820 In some places, especially in large Vegas hotels, they use kind of a semi-online architecture. 55 00:03:58,820 --> 00:04:01,900 So, in this case, the hallways have Zigbee coordinators in them. 56 00:04:01,900 --> 00:04:04,780 And this allows the front desk to kind of see the audit log. 57 00:04:05,120 --> 00:04:07,060 It still doesn't make it an online system. 58 00:04:07,060 --> 00:04:11,300 The key cards are still read by the lock, and the lock determines if it opens or not. 59 00:04:11,300 --> 00:04:15,480 But, afterwards, it tells the front desk, hey, this key opened this lock. 60 00:04:15,480 --> 00:04:20,040 This might be beneficial for hotels, because you can kind of detect what keys are being used. 61 00:04:23,140 --> 00:04:28,220 So, when we were starting out, we needed a hotel to do our research on. 62 00:04:28,220 --> 00:04:31,100 We don't own a hotel, so we had to build one ourselves. 63 00:04:31,460 --> 00:04:34,860 And that first meant acquiring the System 6000 software. 64 00:04:35,260 --> 00:04:39,980 As with any software, this is software you can find on some places on the internet. 65 00:04:40,420 --> 00:04:43,040 The other thing you need is an RFID encoder. 66 00:04:43,040 --> 00:04:47,860 So, this is the device that the front desk will use to encode a new key card. 67 00:04:48,080 --> 00:04:51,520 Back in 2022, these were very expensive on eBay. 68 00:04:51,580 --> 00:04:53,600 $600 to just get one. 69 00:04:54,100 --> 00:04:57,080 Now, thanks to our research, these have really come down in price. 70 00:04:57,080 --> 00:04:59,740 So, now you can find them for $45 online. 71 00:05:04,780 --> 00:05:08,820 So, the reason they are much cheaper these days is they all have to be replaced. 72 00:05:08,820 --> 00:05:12,000 So, all of the hotels are essentially selling their old encoders online. 73 00:05:12,720 --> 00:05:15,840 So, another thing you need are MiFair Classic 1K cards. 74 00:05:15,840 --> 00:05:17,720 These are very common, very cheap. 75 00:05:17,720 --> 00:05:18,980 You can find them everywhere. 76 00:05:19,940 --> 00:05:25,700 And optionally, if you want to actually open some doors, you can also buy on eBay some door locks. 77 00:05:25,980 --> 00:05:29,400 Or an HH6 programmer if you want to play with one of those. 78 00:05:30,320 --> 00:05:33,880 So, now that we have all of the elements for our hotel, we have to set it up. 79 00:05:33,880 --> 00:05:35,980 So, we start by installing the software. 80 00:05:35,980 --> 00:05:43,140 If you open the manual, the installation manual, the first step it tells you is to disable all of the Windows security features. 81 00:05:43,140 --> 00:05:46,060 And then you're good to start running the installer. 82 00:05:46,860 --> 00:05:52,580 Once you've installed the software, you copy over a GDB database file to the installation directory. 83 00:05:52,580 --> 00:05:54,440 And then you can start the software. 84 00:05:55,000 --> 00:05:57,920 This database file is very useful to us. 85 00:05:57,920 --> 00:06:00,140 It's a Firebird database file. 86 00:06:00,140 --> 00:06:03,080 It has a default username and password on there. 87 00:06:03,080 --> 00:06:06,440 And so you can start reading all of the elements in the database. 88 00:06:06,440 --> 00:06:09,880 So, this contains configuration data for your specific hotel. 89 00:06:10,180 --> 00:06:13,900 But also all of the cards that were created by the hotel software. 90 00:06:14,220 --> 00:06:20,940 So, this means that if you create a card, you can go look in the database and look at all of the different fields that are encoded on the card. 91 00:06:22,280 --> 00:06:26,480 Now, as I said, back in 2022, real encoders were very expensive. 92 00:06:26,480 --> 00:06:34,380 But we figured out that this system used to support just commercial RFID reader writers at some point. 93 00:06:34,940 --> 00:06:40,800 So, that means that you can go into the Firebird database and you can set the hide legacy encoders flag to zero. 94 00:06:40,800 --> 00:06:45,060 And now you can use a cheap off-the-shelf encoder essentially. 95 00:06:45,320 --> 00:06:47,760 So, this is what we used back in 2012. 96 00:06:47,760 --> 00:06:48,780 Yeah. 97 00:06:51,240 --> 00:06:53,520 So, about the handheld programmer. 98 00:06:53,520 --> 00:06:58,040 So, as I mentioned before, all of these locks have a mini USB port on the bottom of it. 99 00:06:58,040 --> 00:07:03,040 And obviously, that struck our interest pretty quickly because it's, you know, behind... it's in the hallway. 100 00:07:03,660 --> 00:07:06,340 So, we bought the H86 off of eBay. 101 00:07:07,140 --> 00:07:09,300 And we tried to use it in a lock at first. 102 00:07:09,300 --> 00:07:12,980 And we hit an issue where it detected it was being used at the wrong property. 103 00:07:13,140 --> 00:07:16,160 And so, we were like, okay, there's some kind of authentication here. 104 00:07:16,160 --> 00:07:22,720 But then we quickly realized that if we just changed the property ID in our database to the property we were staying at, it would start working. 105 00:07:24,080 --> 00:07:26,480 And so, there's a lot of interesting features in here. 106 00:07:26,480 --> 00:07:28,180 And we didn't use it too much in our attack. 107 00:07:28,180 --> 00:07:31,740 But the main interesting thing is you can actually interrogate these locks. 108 00:07:31,740 --> 00:07:34,660 And you can view every entry and every exit to the room. 109 00:07:34,660 --> 00:07:39,720 So, for example, you can even see, you know, when housekeeping entered your room, you can see when they left. 110 00:07:39,840 --> 00:07:41,580 You can see the previous guest. 111 00:07:41,580 --> 00:07:43,380 You can see when they were coming and going. 112 00:07:43,380 --> 00:07:47,500 And if you know the property ID, you can actually do this to any door on any hotel. 113 00:07:48,140 --> 00:07:49,900 It was also useful for our purposes. 114 00:07:49,900 --> 00:07:51,840 It will tell you why it refused to open the door. 115 00:07:51,840 --> 00:07:56,060 So, for a long time, we were making fake keycards and we couldn't figure out why it wasn't opening. 116 00:07:56,060 --> 00:07:59,440 But the HH6 will actually tell you, hey, this is why your keycard didn't work. 117 00:07:59,440 --> 00:08:01,500 So, it was very useful for our purposes. 118 00:08:04,690 --> 00:08:08,650 So, the next step was to reverse engineer the System 6000 software. 119 00:08:09,350 --> 00:08:14,310 The software consists out of some Delphi executables, which are very annoying to reverse engineer. 120 00:08:14,310 --> 00:08:18,230 But luckily, there are also some .NET binaries in there. 121 00:08:18,230 --> 00:08:20,430 And those are very easy to reverse engineer. 122 00:08:20,430 --> 00:08:23,610 We can simply decompile them and look at the code in .wik. 123 00:08:24,050 --> 00:08:26,850 Now, we had a few goals for reverse engineering the system. 124 00:08:26,850 --> 00:08:33,670 We wanted to understand how the MIFARE sector keys are derived, how the data stored on the card is encrypted. 125 00:08:34,110 --> 00:08:39,770 And then, once the data is decrypted, what is actually the meaning of the different fields of this data. 126 00:08:40,970 --> 00:08:43,690 So, first, a quick introduction to MIFARE Classic. 127 00:08:43,690 --> 00:08:47,570 Most of the CephLog deployments use MIFARE Classic 1K cards. 128 00:08:47,590 --> 00:08:52,450 These 1K cards have 16 sectors, each containing four 16-byte blocks. 129 00:08:52,490 --> 00:08:55,150 So, they are essentially just storing data. 130 00:08:55,690 --> 00:08:57,250 Block 0 is special. 131 00:08:57,250 --> 00:08:58,750 It's the manufacturer block. 132 00:08:58,750 --> 00:09:02,350 It contains the UID and the manufacturer data. 133 00:09:02,750 --> 00:09:06,250 And then, the last block of every sector contains the keys. 134 00:09:06,250 --> 00:09:10,690 So, the keys that you need to authenticate and to read the data on the card. 135 00:09:11,030 --> 00:09:13,570 Every sector has two keys associated to it. 136 00:09:13,570 --> 00:09:15,070 Key A and key B. 137 00:09:15,630 --> 00:09:22,890 And then, essentially, the access conditions indicate what actions you are allowed to perform with either of these keys. 138 00:09:24,350 --> 00:09:32,590 Now, if you look specifically at the CephLog cards, in the case of the CephLog system, all of the interesting data is stored in sector 0. 139 00:09:33,190 --> 00:09:36,570 And the key to read that sector is derived from the UID. 140 00:09:36,750 --> 00:09:42,810 So, all of the keys marked in orange on the slide are unique for every key card, so they always change. 141 00:09:42,810 --> 00:09:47,430 But they are derived from the UID, which is not a very secure way of implementing this. 142 00:09:48,070 --> 00:09:52,830 The key for sector 1 is the same on every CephLog card across all of the deployments. 143 00:09:52,830 --> 00:09:58,910 And that means that if you read one of these cards and you see this key, then you immediately know it's a CephLog system. 144 00:10:00,030 --> 00:10:02,050 So, the key derivation function. 145 00:10:02,610 --> 00:10:07,150 To read the data from the card, we need the keys to authenticate to this sector. 146 00:10:07,430 --> 00:10:09,630 There's a few ways you can get those keys. 147 00:10:09,630 --> 00:10:15,870 You can use a Proxmark3, run hfmfautopwn, and it will immediately spit out all of the keys for you. 148 00:10:16,370 --> 00:10:20,850 The other way to do it is to actually reverse-engineer the key derivation function. 149 00:10:21,130 --> 00:10:25,970 And it turns out that back in 2022, multiple people had already done this. 150 00:10:25,970 --> 00:10:29,030 They had reverse-engineered the KDF, but they hadn't published it. 151 00:10:29,190 --> 00:10:32,090 So, at the time, we had to reverse-engineer it ourselves. 152 00:10:32,410 --> 00:10:35,690 In the meantime, someone has published the KDF. 153 00:10:35,690 --> 00:10:40,670 And now it's also implemented in the Proxmark3 project and in the Flipper0. 154 00:10:42,650 --> 00:10:48,890 It's maybe interesting to know that knowing the KDF is not strictly necessary for our attack. 155 00:10:48,890 --> 00:10:53,050 And that's because there are cryptographic attacks on the MyFairClassic cards. 156 00:10:54,410 --> 00:10:56,570 So, reverse-engineering the KDF. 157 00:10:56,570 --> 00:11:05,030 We figured out that the CephLog card encoder DLL contains a kaba.getSecuredKeys function, which implements this KDF. 158 00:11:05,690 --> 00:11:10,070 Initially, we weren't 100% sure that this is the correct function we wanted to reverse-engineer. 159 00:11:10,070 --> 00:11:13,710 So, we made a simple Python wrapper that uses the DLL. 160 00:11:13,850 --> 00:11:21,330 And then we could feed in some UIDs and check if the response was the same key as what we were seeing in the Proxmark project, essentially. 161 00:11:21,770 --> 00:11:28,210 And then later on, when we were sure this was the correct function, we translated it to Python so that we had our own library for it. 162 00:11:29,870 --> 00:11:33,510 So, now we have a pretty good way of reading the data on the MyFair card. 163 00:11:33,510 --> 00:11:35,490 But, of course, our goal is not just to clone it. 164 00:11:35,490 --> 00:11:37,810 We want to modify what rooms the key can open. 165 00:11:38,150 --> 00:11:45,290 And so, we learned that really the only data that matters is the 16 bytes on block 1, which kind of tells the lock which doors the lock can open. 166 00:11:45,290 --> 00:11:48,790 And then the first byte on block 2 is a checksum of the first block. 167 00:11:49,170 --> 00:11:55,290 And so, we wanted to figure out... it looked like the data was encrypted on the sector because we didn't really see anything meaningful in it. 168 00:11:55,290 --> 00:11:59,770 And we found this encryptCard and decryptCard function in the Firebird services DLL. 169 00:11:59,770 --> 00:12:06,010 And so, using that, we discovered that the data on the card was actually encrypted using just a substitution table. 170 00:12:06,150 --> 00:12:11,170 And we unfortunately also learned that that substitution table is the same for every SAFLOC hotel. 171 00:12:11,170 --> 00:12:16,710 So, every SAFLOC installation has the keys to decrypt and encrypt every SAFLOC card. 172 00:12:18,610 --> 00:12:20,790 And so, now we know how to decrypt it. 173 00:12:20,790 --> 00:12:23,410 And now we want to start changing what the fields are. 174 00:12:23,410 --> 00:12:27,630 But, we had to decrypt the data, but we still didn't really know what the 16 bytes represented. 175 00:12:27,630 --> 00:12:31,670 Luckily, in the same DLL, we found a function that we didn't think was actually being used. 176 00:12:31,670 --> 00:12:35,590 But, it basically assembled the 16 bytes for an emergency card. 177 00:12:35,590 --> 00:12:40,970 And so, we kind of took a look at this function and saw, you know, what fields is it writing to on sector 1. 178 00:12:41,070 --> 00:12:48,030 And we were able to kind of work from there, work backwards and say, okay, these bytes are the expiration, these bytes are the room number, stuff like that. 179 00:12:48,510 --> 00:12:50,810 And being able to create cards was also very useful. 180 00:12:50,810 --> 00:12:57,610 We had our fake hotel, so we created some cards and we were able to decrypt that data and see, you know, do these fields align with what we expected. 181 00:12:57,630 --> 00:13:02,130 And so, slowly, byte by byte, we figured out what the data was starting to mean. 182 00:13:04,590 --> 00:13:08,710 So, this is the full card data format for the Cephalog systems. 183 00:13:09,310 --> 00:13:14,950 It is in alphabetical order, so if you want to reproduce it, you will have to figure out the correct order of the fields. 184 00:13:15,510 --> 00:13:17,150 There's a few logical fields in here. 185 00:13:17,150 --> 00:13:18,510 There's the card creation date. 186 00:13:18,510 --> 00:13:23,230 So, this is, like, up to the second when the card was created at the front desk. 187 00:13:23,230 --> 00:13:29,110 There are card levels, indicating if this is a guest key, a master key, or an emergency key. 188 00:13:29,110 --> 00:13:30,830 There's quite a few of these levels. 189 00:13:31,130 --> 00:13:35,050 There's a few different types of cards, but we'll get into those later on. 190 00:13:35,590 --> 00:13:39,330 There's a deadbolt override bit, which sounds very interesting, obviously. 191 00:13:39,330 --> 00:13:41,750 And then, there's a few more fields. 192 00:13:42,250 --> 00:13:44,130 So, the lock ID is an interesting one. 193 00:13:44,130 --> 00:13:50,190 This is just a numerical indicator in a database linking to a specific lock. 194 00:13:50,190 --> 00:13:55,130 So, you can't simply figure out what the lock ID is for a specific room number. 195 00:13:55,450 --> 00:14:02,190 But if you know the lock ID for your room number, you can sort of guess what the room next door has as a lock ID. 196 00:14:03,230 --> 00:14:07,770 The other thing that we need to know to make cards for every deployment is the property ID. 197 00:14:07,850 --> 00:14:13,030 So, this is a 12-bit number that is supposed to be different for every hotel. 198 00:14:13,590 --> 00:14:16,590 And to make a card for a hotel, you need to know this property ID. 199 00:14:17,090 --> 00:14:20,010 And finally, there's a sequence and combination field. 200 00:14:20,010 --> 00:14:24,030 And this was by far the most annoying field in this entire data format. 201 00:14:24,170 --> 00:14:28,050 And it took us quite a while to figure out how to work around this. 202 00:14:29,290 --> 00:14:33,850 So, as I mentioned before, multiple card levels and card types. 203 00:14:34,510 --> 00:14:38,990 Most of the keys you will get when you check into a hotel will have lower levels. 204 00:14:38,990 --> 00:14:42,330 So, guest keys, connector keys, suite keys, and so on. 205 00:14:42,370 --> 00:14:45,470 And they typically only open a single room in the property. 206 00:14:46,590 --> 00:14:51,750 There are more special cards, like housekeeping keys, that typically open a range of rooms. 207 00:14:51,750 --> 00:14:54,630 So, maybe a floor or a specific tower in the hotel. 208 00:14:55,150 --> 00:14:58,450 And then finally, we get to the interesting ones, like the emergency key. 209 00:14:58,450 --> 00:15:04,970 And the emergency key is interesting, because since it's used for emergencies, it also overrides the deadbolt. 210 00:15:05,150 --> 00:15:12,450 So, if someone inside of the room flips the deadbolt, and someone taps an emergency key on the card, it will allow them to override this deadbolt. 211 00:15:12,890 --> 00:15:16,570 I think it's important to realize if you're staying in a hotel, the deadbolt is just software. 212 00:15:16,590 --> 00:15:17,530 It's not software controlled. 213 00:15:18,550 --> 00:15:24,510 Two more interesting key levels are the primary programming key and secondary programming key. 214 00:15:24,970 --> 00:15:32,570 And we think the idea here is that you would tap one of these cards to a lock, before you can actually reprogram the lock with an H86 programmer. 215 00:15:35,240 --> 00:15:39,080 So, as Leonard said, we spent quite a lot of time on the sequence and combination. 216 00:15:39,080 --> 00:15:44,020 Because we knew what every field meant, but we couldn't figure out the valid sequence and combination for a lock. 217 00:15:44,020 --> 00:15:48,040 So, each lock has its own combination value between 0 and 4095. 218 00:15:48,640 --> 00:15:53,260 And, as Leonard said, you can kind of guess what lock IDs are, but guessing the combination is very painful. 219 00:15:53,620 --> 00:15:59,080 And there's also a sequence number, and so this is used just as you check in and check out, each guest gets their own sequence number. 220 00:15:59,080 --> 00:16:04,100 So, for example, if someone checks in after you, they'll tap their sequence number, and that will invalidate all the previous ones. 221 00:16:04,100 --> 00:16:09,080 So, that prevents, you know, two people from having a valid key to the same room, as that would be pretty bad. 222 00:16:09,580 --> 00:16:12,960 And the field is just the sequence encrypted and combined with a combination. 223 00:16:12,960 --> 00:16:18,540 And, as I said, this is really the only field that gave us any trouble in making a valid guest key. 224 00:16:19,800 --> 00:16:22,580 At first, we tried to brute force the field. 225 00:16:22,900 --> 00:16:29,160 Leonard tapped the Proxmark about 4,000 times, trying to guess what the valid sequence number was. 226 00:16:29,200 --> 00:16:30,240 This doesn't work. 227 00:16:30,240 --> 00:16:31,520 I don't suggest it. 228 00:16:31,540 --> 00:16:36,820 The lock does detect that you're trying to just guess key cards, and it kind of shuts itself down. 229 00:16:36,820 --> 00:16:39,440 It's also very physically strenuous and annoying. 230 00:16:41,000 --> 00:16:49,660 Later, kind of the crux of our discovery was that we found that, because these locks are offline, they sometimes have to be re-sequenced if they become desynchronized with the front desk. 231 00:16:50,260 --> 00:16:56,060 And what a re-sequencing card does is it just simply tells the lock, hey, this is your new sequence, and this is your new combination. 232 00:16:56,120 --> 00:16:58,860 And that's perfect for us, because those were the only two fields we didn't know. 233 00:16:58,860 --> 00:17:07,020 So, we were able to create a key card that simply re-sequenced this lock and tells it, hey, this is your new secret value, and that's the only one you need to create a forged key card. 234 00:17:09,440 --> 00:17:12,580 So, now we have all the elements to make a full attack. 235 00:17:12,900 --> 00:17:18,340 So, the idea is that you would start by obtaining any card from the hotel, just to get the property ID. 236 00:17:18,480 --> 00:17:19,900 This can be your own card. 237 00:17:19,900 --> 00:17:21,680 This can be an expired card. 238 00:17:21,680 --> 00:17:26,700 It can be a card you found on the floor, from the express checkout box, or simply one you bought from eBay. 239 00:17:27,560 --> 00:17:31,340 So, once you have the property ID, we can start forging keys. 240 00:17:31,340 --> 00:17:37,540 So, we forge a re-sequencing key card for a privileged level, so emergency or grandmaster. 241 00:17:37,540 --> 00:17:41,800 And the reason for picking emergency is that it works on all of the doors. 242 00:17:41,800 --> 00:17:44,080 So, you don't have to guess a lock ID anymore. 243 00:17:45,200 --> 00:17:55,640 Then, you walk up to a door, you tap your re-sequencing key card, it re-sequences the lock, and then you have your second key card that has an opening key for the same level, and it will open the door. 244 00:17:56,040 --> 00:18:04,020 And the nice thing is, you make this pair of cards once for every property, and you can now walk around and open every single door in the hotel. 245 00:18:11,960 --> 00:18:16,180 So, of course, we also implemented this as a full proof of concept attack. 246 00:18:16,300 --> 00:18:19,540 At this point, we had already written a PySafelock module. 247 00:18:19,580 --> 00:18:27,140 So, it's a Python module that supports doing the key derivation function, decrypting the card data, deserializing it into the different fields. 248 00:18:27,140 --> 00:18:33,520 Then, we can change fields, re-encrypt it, or re-serialize it, re-encrypt it, and then write it back to a card. 249 00:18:33,880 --> 00:18:46,080 And instead of implementing all of this within the Proxmark codebase, since we already had the Python script, we sort of made simple wrapper functions that call Proxmark code to read and write stuff to a card. 250 00:18:46,740 --> 00:18:52,120 Then, obviously, these days we have to implement the same thing on a Flipper 0. 251 00:18:52,200 --> 00:18:54,420 This was relatively straightforward. 252 00:18:54,740 --> 00:19:01,160 You can make an NFC-supported card plugin, and that essentially has to implement three functions. 253 00:19:01,240 --> 00:19:08,060 So, the first function is verify, and that's essentially a function that tries to verify if the card you tapped is a Safelock card. 254 00:19:08,060 --> 00:19:15,360 As I mentioned earlier, Sector 1 has a default key, and you can use that default key to detect if the card is a Safelock card. 255 00:19:15,740 --> 00:19:19,340 Now that you should have a Safelock card, you go to the read function. 256 00:19:19,520 --> 00:19:25,660 The read function derives the key, so implements the KDF, and then reads the relevant data blocks. 257 00:19:26,120 --> 00:19:36,500 Now that you have those data blocks, you can decrypt them, parse out the data, and then from there generate, re-sequence an emergency card that gets stored on the Flipper's file system. 258 00:19:37,480 --> 00:19:41,340 Before anyone asks, we are not releasing this plugin. 259 00:19:41,980 --> 00:19:50,440 But there is a KDF plugin available on GitHub that someone else made, and you can actually use that plugin to check if you're staying at a Safelock hotel. 260 00:19:53,790 --> 00:20:00,570 So, as I mentioned previously, we actually found this at DEF CON two years ago, and it was a very long disclosure process. 261 00:20:00,970 --> 00:20:09,290 So , in August, we kind of found the decryption key, and we were able to read and write to the card, but we didn't actually figure out the re-sequencing thing until a month later. 262 00:20:09,810 --> 00:20:15,170 Finally, we were able to figure that out, and we created a complete proof of concept. 263 00:20:15,350 --> 00:20:21,050 Unfortunately, Dorma Kava didn't have any disclosure process, and so I had to message their CSO on LinkedIn. 264 00:20:22,290 --> 00:20:25,270 Luckily, he actually took it seriously and responded quickly. 265 00:20:25,390 --> 00:20:28,370 And they actually have a VDP now, I think, which is great. 266 00:20:28,870 --> 00:20:39,070 We had our first meeting with them in October, and from there, I think we had at least 13 meetings with Dorma Kava talking about the vulnerability and how they were going to fix it. 267 00:20:39,450 --> 00:20:48,110 As I mentioned, it's three million hotel locks, and I don't think they were fully ready to do that upgrade for a while, and it was quite a painful change. 268 00:20:48,570 --> 00:20:53,510 But in November of 2023, they upgraded the first hotels to resolve the vulnerability, which was great. 269 00:20:54,110 --> 00:21:03,570 And then, as you may have seen, in March of 2024, we did a limited disclosure of saying, you know, these hotel locks have a vulnerability, but, you know, we're not going to say exactly what it is. 270 00:21:03,910 --> 00:21:07,530 At the time we published it, 36% of the locks have been upgraded. 271 00:21:08,330 --> 00:21:09,930 Today is our DEF CON talk. 272 00:21:10,070 --> 00:21:12,510 They only told us the majority of the locks have been updated. 273 00:21:12,510 --> 00:21:14,550 We don't have a specific percentage anymore. 274 00:21:14,870 --> 00:21:21,690 And they said nearly all Las Vegas properties are in the process of being mitigated or have been mitigated, more or less. 275 00:21:25,190 --> 00:21:30,470 Remediation, they added a new enhanced security mode, and this is to their Ambion software. 276 00:21:30,470 --> 00:21:32,650 So we mostly looked at System 6000. 277 00:21:32,810 --> 00:21:34,330 That's kind of deprecated now. 278 00:21:34,330 --> 00:21:38,110 There is a fix for it, but it's not as good as the enhanced security mode. 279 00:21:38,490 --> 00:21:41,010 The enhanced security mode has a new KDF. 280 00:21:41,030 --> 00:21:46,010 It encrypts the card data using AES, which is much better than a hard-coded substitution cipher. 281 00:21:46,630 --> 00:21:54,270 And it also uses MyFair Ultralight C, so even if you're able to decrypt the card data, it's still hard to actually write it to the card because you don't know the card keys. 282 00:21:54,670 --> 00:21:57,810 And as I mentioned previously, they also replaced all of the encoders. 283 00:21:57,810 --> 00:22:02,130 And so there's a new encoder for making the keys that also has a secure element inside of it. 284 00:22:05,270 --> 00:22:08,770 So a lot of people ask us, why did it take so long to fix these hotel locks? 285 00:22:08,770 --> 00:22:10,230 Why did it take two years? 286 00:22:10,510 --> 00:22:13,630 And it turns out that the main issue are the integrations. 287 00:22:13,630 --> 00:22:17,670 So of course, first, Tomacabra had to come up with a fix for their own hotel locks. 288 00:22:17,810 --> 00:22:24,170 But then if you start thinking about especially big Las Vegas properties, they have so many integrations with the hotel locks. 289 00:22:24,310 --> 00:22:26,590 So maybe you use the kiosk to check in. 290 00:22:26,810 --> 00:22:28,630 You've used the elevators. 291 00:22:28,710 --> 00:22:30,910 There's payment solutions in some hotels. 292 00:22:30,910 --> 00:22:33,130 And some hotels even have towel machines. 293 00:22:33,690 --> 00:22:39,210 And so when a hotel decides to upgrade their hotel locks, all of these systems have to be upgraded as well. 294 00:22:39,210 --> 00:22:42,690 And that typically means that they have to contact the manufacturers of these systems. 295 00:22:42,690 --> 00:22:45,110 And so you can imagine this takes a long time. 296 00:22:46,690 --> 00:22:49,090 Most of the locks have to be updated manually. 297 00:22:49,090 --> 00:22:53,910 That means that someone has to walk up to the door and hold the programmer in front of the lock for two minutes. 298 00:22:54,250 --> 00:22:58,030 Three million locks times two minutes is a lot of minutes. 299 00:22:58,030 --> 00:22:59,950 So it takes a long time. 300 00:23:00,710 --> 00:23:05,950 Then additionally, you have to convince property owners to perform this update. 301 00:23:05,950 --> 00:23:09,410 And that's also one of the reasons we had this limited disclosure initially. 302 00:23:09,410 --> 00:23:14,630 To make hotel owners aware of the vulnerability and give them some extra time to implement the fix. 303 00:23:14,630 --> 00:23:22,670 We were told that at the peak of deploying this fix, Tomacabo was resolving 500 properties per week. 304 00:23:24,090 --> 00:23:31,050 Another thing that has changed now in the new update is that the standard guest cards will be using Ultralight-C. 305 00:23:31,610 --> 00:23:40,350 And one of the reasons people are making the switch over to Ultralight-C now is that the cost of Ultralight-C cards has come down a lot over the last few years. 306 00:23:40,350 --> 00:23:45,030 So if we talk about card cost, we found a few statistics online. 307 00:23:45,550 --> 00:23:49,350 So on average, a hotel is occupied 65%. 308 00:23:50,570 --> 00:23:54,810 An average stay at a hotel takes 1.8 nights. 309 00:23:54,990 --> 00:23:58,670 The average number of cards that gets made per stay is two. 310 00:23:58,830 --> 00:24:03,270 And only 25% of all cards are returned when you check out. 311 00:24:03,590 --> 00:24:10,830 Now if we think about big Las Vegas properties that have between 3,000 and 7,000 rooms, then you can imagine they make a lot of cards. 312 00:24:10,830 --> 00:24:22,670 So if we do a bit of simple math, then we end up with a hotel with 5,000 rooms having roughly 660,000 stays per year. 313 00:24:22,810 --> 00:24:31,810 That means that around 1.3 million cards are made at one of these big properties, of which only 300,000 are being returned after stays. 314 00:24:31,950 --> 00:24:36,910 So that means that a hotel needs to buy roughly 1 million cards per year. 315 00:24:36,910 --> 00:24:42,230 If you assume $0.10 per card, that's $100,000 just in RFID cards. 316 00:24:42,570 --> 00:24:55,410 Now if you think about a MyFair Classic card, which is very cheap, and maybe those were $0.10, if an Ultralight C card a few years back was $0.20, then that would mean $200,000 in cards. 317 00:24:55,410 --> 00:24:58,870 And that's the reason you still find a lot of MyFair Classic cards around. 318 00:24:59,510 --> 00:25:06,470 But luckily, prices have been coming down, also because there's more of these systems asking for Ultralight C cards. 319 00:25:06,910 --> 00:25:11,750 So they've become cheap enough to the point where hotels are now using Ultralight C. 320 00:25:13,270 --> 00:25:16,530 So I guess most of the people in this room are staying at a hotel this week. 321 00:25:16,530 --> 00:25:21,850 So how can you tell if the hotel you're staying at is using CephLock and if it's fixed or not? 322 00:25:22,630 --> 00:25:26,590 It's relatively easy to see if a hotel is using CephLock. 323 00:25:26,590 --> 00:25:28,910 Typically, you can only tell when you're checking in. 324 00:25:28,910 --> 00:25:32,170 If you look over the counter, you can see the encoders. 325 00:25:32,470 --> 00:25:35,450 So we have two pictures of encoders on the slide here. 326 00:25:35,450 --> 00:25:38,230 The leftmost one is an old encoder. 327 00:25:38,270 --> 00:25:40,010 It's thicker, it's bigger. 328 00:25:40,250 --> 00:25:42,470 And the one on the right is a new one. 329 00:25:42,950 --> 00:25:46,030 Now, if you see the old one, you know it's a vulnerable system. 330 00:25:46,210 --> 00:25:53,910 If you see the new one, it could be a fixed system or it can be a system that is in the progress of being mitigated to the new solution. 331 00:25:54,650 --> 00:25:58,790 You can also quickly recognize the locks that are used in these systems. 332 00:25:58,790 --> 00:26:04,450 So the small black puck-type lock with the S going to it is very common here. 333 00:26:05,350 --> 00:26:07,430 And those are CephLock locks. 334 00:26:07,430 --> 00:26:10,490 So if you see those, you know it's a CephLock system. 335 00:26:11,330 --> 00:26:15,770 Then the next thing you can do is you get a card from when checking in. 336 00:26:15,770 --> 00:26:19,410 You can tell if it's a Mifac Classic or an Ultralight C card. 337 00:26:20,170 --> 00:26:25,450 So then you use your favorite RFID tool, which we all know is the Flipper Zero with Iceman firmware. 338 00:26:26,390 --> 00:26:31,950 Or you use an Android phone with the NFC Tag Info app, and that allows you to tell what type of card it is. 339 00:26:33,130 --> 00:26:38,230 So if it's a Mifac Classic card, then you know that the system is still vulnerable to this attack. 340 00:26:38,690 --> 00:26:43,450 Or it's not a CephLock deployment, so you have to really do all three of the steps. 341 00:26:45,370 --> 00:26:47,610 So how to protect yourself in a hotel? 342 00:26:47,610 --> 00:26:51,410 You see it's CephLock, you see it's Mifac Classic, well you're probably screwed. 343 00:26:52,210 --> 00:26:54,410 But there's some things you can buy. 344 00:26:55,210 --> 00:26:59,950 There's a door bolt deadbolt Velcro strap, and that kind of holds the deadbolt closed. 345 00:26:59,950 --> 00:27:02,030 And so that kind of prevents it from opening externally. 346 00:27:02,410 --> 00:27:07,110 You can also get under door wedges, which kind of drill themselves into the carpet and prevent the door from opening. 347 00:27:07,550 --> 00:27:10,670 Obviously these are kind of hacks, but they could be good if you travel a lot. 348 00:27:10,750 --> 00:27:13,910 And Deviant has some great videos about hotel security as well. 349 00:27:13,910 --> 00:27:19,570 And just in general, even if you're not staying in a CephLock hotel, maybe next year there will be more vulnerabilities. 350 00:27:21,870 --> 00:27:23,210 So that's it. 351 00:27:23,250 --> 00:27:28,130 Summary, reading a single card at a hotel allows us to open any door at the property if it's vulnerable. 352 00:27:28,690 --> 00:27:31,330 This system has been in use since 1988. 353 00:27:31,890 --> 00:27:37,370 You'd say, hey, they didn't have Mifac Classic back then, and it's true, but they did the same thing for MagStripe cards. 354 00:27:37,370 --> 00:27:42,630 So unfortunately the system has been vulnerable since before Leonard and I were even born. 355 00:27:45,810 --> 00:27:49,230 And many aspects of these systems still haven't been looked at. 356 00:27:49,230 --> 00:27:53,990 Once we found a way to make these master keys, we didn't really care about the rest of it. 357 00:27:54,010 --> 00:27:55,550 But there's a wide scope. 358 00:27:55,550 --> 00:27:57,130 The locks have USB ports. 359 00:27:57,850 --> 00:28:02,430 There's many, many aspects to these systems, and more vulnerabilities likely exist somewhere. 360 00:28:03,110 --> 00:28:05,630 Luckily, the cost of the secure cards have come down a lot. 361 00:28:05,630 --> 00:28:07,910 Ultralight C, Deathfire, stuff like that. 362 00:28:08,110 --> 00:28:11,690 Obviously it's a lot better than using Mifac Classic, which has been broken forever. 363 00:28:12,190 --> 00:28:21,130 And overall, even though we had to message them on LinkedIn at first that we did have a positive experience working with Dorma Kava, they didn't take it seriously, and they didn't sue me, so that's always great. 364 00:28:22,490 --> 00:28:23,830 It's time for a demo. 365 00:28:34,260 --> 00:28:36,580 Okay, we have two demos. 366 00:28:36,580 --> 00:28:38,720 We're going to attempt to show two demos. 367 00:28:47,100 --> 00:28:50,280 So for the first demo, we'll be using the Proxmark 3. 368 00:28:53,660 --> 00:28:56,380 I have a few RFID cards here. 369 00:28:56,660 --> 00:28:58,400 One of them says valid. 370 00:29:02,500 --> 00:29:04,620 As you can tell, it opens the lock. 371 00:29:04,800 --> 00:29:11,180 Now, if someone is staying inside of the room and they have the deadbolt on, then this card no longer works. 372 00:29:13,740 --> 00:29:17,340 So that's the normal behavior of regular guest cards. 373 00:29:19,120 --> 00:29:22,580 The second card I have says expired or invalid. 374 00:29:27,310 --> 00:29:29,230 And that card obviously doesn't work. 375 00:29:29,570 --> 00:29:35,170 So let's assume that this is the card the attacker finds in the hallway, or it's maybe the card to their room. 376 00:29:36,490 --> 00:29:40,290 And finally, I have the two attacker cards labeled 1 and 2. 377 00:29:40,430 --> 00:29:45,650 And just to show you that I'm not cheating for the demo, I'll tap these to the lock and show that the lock doesn't open. 378 00:29:51,730 --> 00:29:56,830 Okay, so now we'll start by reading the expired or the invalid card with the Proxmark. 379 00:30:02,440 --> 00:30:16,140 So what we do here is we take the UID that we read from the card, we derive the key for the sectors, we read the data from the card, we decrypt it, we deserialize it, and here we're printing a few of the fields that are stored on the card. 380 00:30:16,320 --> 00:30:19,740 So you can see this is a level 1 card, so it's a regular guest key. 381 00:30:19,820 --> 00:30:22,520 It was made for the lead room. 382 00:30:22,800 --> 00:30:25,480 And you can also see that the card was created in 1990. 383 00:30:25,780 --> 00:30:29,720 And that means the card is expired, and that's why it no longer works on this lock. 384 00:30:30,100 --> 00:30:33,320 Now, what we really need from this card is the property ID. 385 00:30:33,320 --> 00:30:37,240 And using this property ID, we can now start making new cards. 386 00:30:39,780 --> 00:30:42,640 So I'll first reprogram the first card. 387 00:30:46,010 --> 00:30:51,050 So what we're making now is an emergency level re-sequence card. 388 00:30:51,630 --> 00:30:53,830 So that's the re-sequencing key. 389 00:30:56,430 --> 00:30:59,830 And the next key we make is an opening key. 390 00:31:01,950 --> 00:31:04,910 And now we're ready to break into hotel rooms. 391 00:31:04,910 --> 00:31:10,510 I'm going to assume the person that's staying in this room has the deadbolt turned on, and then we'll start carrying out the attack. 392 00:31:14,440 --> 00:31:19,320 So the first key re-sequences the lock, and essentially enables the second card. 393 00:31:35,490 --> 00:31:42,250 And like I mentioned before, you can use these two cards over and over again in the same property and open all of the doors. 394 00:31:43,190 --> 00:31:47,130 Now the second demo is essentially the same thing, but using the flipper 0. 395 00:31:48,870 --> 00:31:51,230 I hope it's visible on the screen. 396 00:31:51,230 --> 00:31:57,310 But the idea is that whatever I'm doing here on the flipper is the same thing as you see on the screen over there. 397 00:31:57,650 --> 00:32:00,650 So essentially we just go into the NFC menu. 398 00:32:02,750 --> 00:32:05,210 I'm using the expired card again. 399 00:32:07,950 --> 00:32:10,690 So I'll read the expired card. 400 00:32:17,110 --> 00:32:26,610 It tells us it's a Zephyr card, we can again see the card level, the property ID, the lock ID, and that this card was created in the 1990s. 401 00:32:27,710 --> 00:32:33,930 And in the background, what this flipper app has done is it has automatically created two extra cards. 402 00:32:33,930 --> 00:32:37,270 So this first entry is a copy of the card we just read. 403 00:32:37,490 --> 00:32:40,130 And then the second one is the re-sequencing key. 404 00:32:40,130 --> 00:32:42,350 So we can start emulating this one. 405 00:32:46,780 --> 00:32:47,740 So now... 406 00:32:50,720 --> 00:32:52,960 Now the lock has been re-sequenced. 407 00:32:53,280 --> 00:32:57,860 We go back into the menu, we take our opening key, we emulate it. 408 00:33:01,870 --> 00:33:03,710 And it opens the lock. 409 00:33:12,380 --> 00:33:14,840 So thanks everyone for coming to the talk. 410 00:33:14,840 --> 00:33:17,700 If anyone has questions, we'll try to answer them. 411 00:33:29,850 --> 00:33:31,710 I'm too short for this, hello. 412 00:33:32,410 --> 00:33:35,590 Is that the Iceman firmware up there? 413 00:33:36,070 --> 00:33:38,490 Yeah, it's a special beta release. 414 00:33:38,670 --> 00:33:39,350 Alright. 415 00:33:39,690 --> 00:33:41,310 Okay, actual question. 416 00:33:42,970 --> 00:33:54,510 Considering what you said about the software from Dormakaba, do you think the responsibility lies on Dormakaba or the hotels for how long it's taking them to upgrade their systems? 417 00:33:54,510 --> 00:33:59,130 Thinking about the logging and even the encryption method used for their cards. 418 00:34:00,330 --> 00:34:02,270 That's a good question. 419 00:34:02,990 --> 00:34:06,650 We also don't know entirely how Dormakaba is handling the... 420 00:34:07,290 --> 00:34:09,570 resolving or doing the updates. 421 00:34:09,570 --> 00:34:13,490 How much hotels have to pay, how much Dormakaba pays and so on. 422 00:34:14,070 --> 00:34:18,090 I think the logging stuff is more an idea we came up with ourselves. 423 00:34:18,090 --> 00:34:29,090 Our idea was if the front desk can see logs of who is entering the rooms and so on, then in theory it shouldn't be too difficult to check if someone is using a re-sequencing card, for example. 424 00:34:29,090 --> 00:34:32,550 And you could have some alerts triggered when something like that happens. 425 00:34:32,670 --> 00:34:36,350 And then Ian, I heard you were a degenerate gambler. 426 00:34:36,350 --> 00:34:37,650 Are you up or down? 427 00:34:37,650 --> 00:34:39,810 I think I'm even now. 428 00:34:46,370 --> 00:34:47,750 What's going on? 429 00:34:47,950 --> 00:34:56,150 Thank you so much for talking about the disclosure process and explaining all the other factors that weigh on timelines and things like that. 430 00:34:56,230 --> 00:34:59,910 It's really important for all the researchers to understand that and I think it's wonderful. 431 00:34:59,910 --> 00:35:04,210 Did you find the process of working with them to be smooth the whole time? 432 00:35:04,210 --> 00:35:07,390 Or was it like smooth with an executive and then like lawyers? 433 00:35:07,770 --> 00:35:09,010 How did that go? 434 00:35:10,070 --> 00:35:13,610 They did ask us to sign an NDA at first, but we said no. 435 00:35:13,610 --> 00:35:15,850 And from there it was pretty good. 436 00:35:16,350 --> 00:35:21,390 I think obviously it was one of their first times going through this process. 437 00:35:21,390 --> 00:35:28,010 And so we just had to set our expectations of like we're eventually going to disclose this and it needs to be fixed. 438 00:35:28,010 --> 00:35:31,330 And I think once we all understood that it was okay. 439 00:35:31,350 --> 00:35:33,830 They never threatened to sue us or anything. 440 00:35:33,830 --> 00:35:35,690 So it was never hostile at all. 441 00:35:35,690 --> 00:35:36,310 Cool. 442 00:35:36,470 --> 00:35:37,310 We're really proud of you. 443 00:35:37,310 --> 00:35:38,170 Thank you guys. 444 00:35:38,170 --> 00:35:40,870 I'll just add that I think for them it was very new. 445 00:35:41,630 --> 00:35:42,430 Thanks. 446 00:35:44,110 --> 00:35:50,230 And like the picture you see in this slide is actually a video set that they had at their facilities. 447 00:35:50,830 --> 00:35:54,750 And on the website, on unsafelock.com, we have a small video showing the attack. 448 00:35:54,750 --> 00:35:58,310 And that video was actually shot at a facility from Dormakado. 449 00:36:00,210 --> 00:36:01,710 Thank you to them for that. 450 00:36:03,730 --> 00:36:07,550 Did you say that the substitution table was the same for every property? 451 00:36:07,550 --> 00:36:09,710 So you said they replaced that with AES? 452 00:36:10,550 --> 00:36:13,150 In the enhanced mode it uses AES. 453 00:36:13,150 --> 00:36:19,330 I think they made, if you're still using the old system 6000, my understanding is it's no longer a substitution table. 454 00:36:19,330 --> 00:36:21,090 I don't know if it uses AES. 455 00:36:21,390 --> 00:36:26,090 But it's something that's specific to each hotel at least, which is better than what they had before. 456 00:36:26,090 --> 00:36:26,970 That was my question. 457 00:36:26,970 --> 00:36:29,430 Are the keys now specific to each property? 458 00:36:29,710 --> 00:36:31,450 Or do you know one way or the other? 459 00:36:31,450 --> 00:36:32,630 That's our understanding. 460 00:36:33,390 --> 00:36:34,350 Fingers crossed. 461 00:36:34,350 --> 00:36:34,550 All right. 462 00:36:34,550 --> 00:36:35,250 Thank you. 463 00:36:37,550 --> 00:36:38,330 Hi. 464 00:36:38,530 --> 00:36:47,050 So you mentioned when you re-sequence a lock, it invalidates all of the existing cards with, I'm assuming, lower sequence numbers. 465 00:36:47,050 --> 00:36:51,830 Does that also happen with the emergency card that you re-sequenced the lock with? 466 00:36:54,490 --> 00:36:58,910 So I think you were asking about invalidating older cards and sequence numbers, right? 467 00:36:58,910 --> 00:36:59,210 Yeah. 468 00:37:00,370 --> 00:37:06,070 So the idea, or at least the way we think it works, is if you check in at the hotel, the sequence gets incremented. 469 00:37:06,090 --> 00:37:12,090 And once a lock sees a higher sequence number, it stops accepting older sequence numbers. 470 00:37:12,090 --> 00:37:14,870 And the same thing is probably true for emergency cards. 471 00:37:15,010 --> 00:37:22,030 But since our first card re-sequences the lock and tells it, this is now your sequence number, we can then use our lock. 472 00:37:22,030 --> 00:37:25,630 So the re-sequencing card can have any sequence number you want. 473 00:37:26,090 --> 00:37:32,910 So then the older cards that worked on the lock before that will get invalidated as a result? 474 00:37:33,010 --> 00:37:34,310 I couldn't get it. 475 00:37:34,510 --> 00:37:38,390 So I think you're asking if we do our attack, do the guest key cards get invalidated? 476 00:37:38,510 --> 00:37:40,590 So the sequence is specific to each level. 477 00:37:40,590 --> 00:37:42,670 So in our attack, we're doing the emergency key cards. 478 00:37:42,670 --> 00:37:47,370 So it would break the emergency key cards for the hotel, but the guest keys would be unaffected. 479 00:37:48,890 --> 00:37:49,530 Gotcha. 480 00:37:49,530 --> 00:37:50,330 Thank you. 481 00:37:51,050 --> 00:37:52,250 Thank you. 482 00:37:55,330 --> 00:38:00,810 Is it possible to brute force the property ID so then you wouldn't need another key from the same hotel? 483 00:38:02,630 --> 00:38:04,710 We could speculate that there's a way to do it. 484 00:38:04,710 --> 00:38:07,890 I don't know if I would do it via brute forcing because it is pretty painful. 485 00:38:07,890 --> 00:38:11,450 You have to physically move the device across the lock each time. 486 00:38:11,790 --> 00:38:17,470 But as I said, the USB port seemed pretty interesting to us and there may be a way to get that info from it. 487 00:38:17,470 --> 00:38:19,770 We just didn't look at that surface at all really. 488 00:38:20,190 --> 00:38:20,870 Thanks. 489 00:38:22,730 --> 00:38:24,170 Two questions. 490 00:38:24,510 --> 00:38:26,770 One, are you staying at Resort World? 491 00:38:26,770 --> 00:38:30,570 Two, is Resort World a Safelock hotel? 492 00:38:32,570 --> 00:38:34,970 I'm sorry, I couldn't hear the question. 493 00:38:34,970 --> 00:38:39,030 The second one was, is Resort World a Safelock hotel? 494 00:38:39,570 --> 00:38:45,650 Yeah, we've both stayed at Resort World and we believe it's been fixed there. 495 00:38:45,650 --> 00:38:47,510 I believe all the cards are ultra latency there. 496 00:38:51,130 --> 00:38:59,710 So for the legacy encoder that Dorma Kaba is replacing, it appears that that can also write ultralight C. 497 00:38:59,710 --> 00:39:02,110 So do you know why they replaced that encoder? 498 00:39:03,770 --> 00:39:07,410 I'm sorry, I think the mic is a little low, so I'm having trouble hearing the question. 499 00:39:07,410 --> 00:39:07,470 Sorry. 500 00:39:07,470 --> 00:39:07,850 Sorry. 501 00:39:07,850 --> 00:39:17,450 I was saying, so for the legacy encoder that Dorma Kaba is replacing, it appears that with the System 6000 software, it can also read and write the ultralight C cards. 502 00:39:17,510 --> 00:39:21,470 So do you know what additional security they got by replacing it? 503 00:39:22,330 --> 00:39:25,730 They told us that they added a secure element to the new encoder. 504 00:39:25,830 --> 00:39:29,750 We didn't look and they didn't tell us exactly how that's used. 505 00:39:29,850 --> 00:39:32,250 But I think that was part of the reason. 506 00:39:32,470 --> 00:39:35,750 I'm not sure if the old encoder supported ultralight C or not as well. 507 00:39:35,750 --> 00:39:36,670 I'm not sure. 508 00:39:36,670 --> 00:39:42,310 I think the older system supported other cards, not just MyFair Classic. 509 00:39:42,310 --> 00:39:45,230 I think they had even support for ultralight for a while. 510 00:39:45,330 --> 00:39:47,230 It's just no one really seemed to use it. 511 00:39:47,230 --> 00:39:50,270 Like all of the SAF log deployments we've seen were MyFair Classic. 512 00:39:50,810 --> 00:39:51,070 Thank you. 513 00:39:51,070 --> 00:39:52,050 Awesome talk. 514 00:39:54,270 --> 00:40:00,230 Hi, I read my photos card and it's not MyFair, but it's ST-CHIP. 515 00:40:00,230 --> 00:40:02,090 Do you know if it's vulnerable or not? 516 00:40:02,970 --> 00:40:04,210 ST-CHIP? 517 00:40:04,910 --> 00:40:07,530 It's quite difficult to understand the questions up here. 518 00:40:07,530 --> 00:40:10,470 I have a card with ST-CHIP, not MyFair. 519 00:40:10,550 --> 00:40:11,810 Did you look at those? 520 00:40:12,730 --> 00:40:18,750 I haven't looked at any hotels that had ST-CHIPs in them, but maybe Iceman knows about this specific card for a moment. 521 00:40:21,430 --> 00:40:22,750 I don't know, sorry. 522 00:40:22,910 --> 00:40:23,970 Okay, thank you. 523 00:40:34,830 --> 00:40:36,550 Hi, I'm Iceman. 524 00:40:36,550 --> 00:40:38,070 I have a question to you. 525 00:40:40,410 --> 00:40:43,070 No, the SD card is not vulnerable in that sense. 526 00:40:43,070 --> 00:40:44,290 Yes, it's true. 527 00:40:44,290 --> 00:40:48,190 But Benjamin Dipli did some work with it. 528 00:40:48,570 --> 00:40:50,730 Awesome fucking research. 529 00:40:50,730 --> 00:40:53,050 I'm in awe by it. 530 00:40:53,090 --> 00:40:55,310 It's amazing. 531 00:40:56,750 --> 00:41:00,090 I bow to the gods of 3D hacking. 532 00:41:04,070 --> 00:41:08,930 But to be honest, it was MyFair Classic and it did have .NET. 533 00:41:08,990 --> 00:41:10,230 So I think that's cheating. 534 00:41:10,230 --> 00:41:11,830 I thought you would have done more hardware. 535 00:41:12,750 --> 00:41:16,550 With that said, give them a well-rounded applause for us. 536 00:41:16,550 --> 00:41:18,530 They are fucking amazing. 537 00:41:25,280 --> 00:41:26,680 I guess that's it. 538 00:41:26,680 --> 00:41:27,760 Alright, thank you so much. 539 00:41:27,760 --> 00:41:28,580 Appreciate it.