1 00:00:00,000 --> 00:00:01,260 Hello, welcome. 2 00:00:01,260 --> 00:00:05,660 I'm Iceman and today we have a little show we call Rip and Tear. 3 00:00:06,080 --> 00:00:11,040 And next to me I have the most famous, fabulous guy in whatever shit. 4 00:00:11,040 --> 00:00:12,560 Are we ready to roll this show? 5 00:00:12,760 --> 00:00:13,820 Yeah, I think we are, babe. 6 00:00:13,820 --> 00:00:14,520 All right. 7 00:00:14,520 --> 00:00:15,420 I'm excited. 8 00:00:15,420 --> 00:00:16,600 I hope you're all excited. 9 00:00:16,600 --> 00:00:17,980 And sorry about the flipper thing. 10 00:00:17,980 --> 00:00:19,760 That's something we do over there. 11 00:00:22,240 --> 00:00:23,340 And presentation text. 12 00:00:23,340 --> 00:00:24,340 Yeah, look at that. 13 00:00:24,680 --> 00:00:25,720 Talk summary. 14 00:00:26,500 --> 00:00:28,480 Oh, God, heavens, this is real awful. 15 00:00:28,480 --> 00:00:30,880 I can't see. 16 00:00:32,420 --> 00:00:33,660 Oh, man. 17 00:00:34,340 --> 00:00:35,700 This is a two-part... 18 00:00:36,080 --> 00:00:37,960 Oh, God, can I get this one? 19 00:00:38,340 --> 00:00:39,680 We can have this one. 20 00:00:39,680 --> 00:00:40,640 I like this one. 21 00:00:41,880 --> 00:00:43,320 All right. 22 00:00:43,520 --> 00:00:44,820 Much better. 23 00:00:45,560 --> 00:00:49,700 So, what we have today is a two-pronged talk. 24 00:00:49,700 --> 00:00:52,940 The first one we call Rip and the other one we call Tear. 25 00:00:53,440 --> 00:00:57,600 And it's not Tear, which is my joke, with Adam Lorry. 26 00:00:57,600 --> 00:00:59,900 But since he's not here, it's okay. 27 00:01:00,180 --> 00:01:01,820 But this is for Rix. 28 00:01:03,260 --> 00:01:04,580 I'm Iceman. 29 00:01:09,290 --> 00:01:10,610 Red team. 30 00:01:11,210 --> 00:01:13,530 We're going to talk about diversification. 31 00:01:13,630 --> 00:01:18,090 Remember today that we are not really bashing on any kind of company or anything like that. 32 00:01:18,090 --> 00:01:22,290 This is our findings that has been going on in the community for years. 33 00:01:22,430 --> 00:01:23,930 So , take it for what it is. 34 00:01:23,930 --> 00:01:27,190 And the Tear of Attack is something new. 35 00:01:27,190 --> 00:01:28,430 Something blue. 36 00:01:28,870 --> 00:01:30,550 And let's go with that. 37 00:01:30,550 --> 00:01:36,430 Together with me on stage is the most fabulous, fantastic man in the world. 38 00:01:36,430 --> 00:01:39,070 This is 0xFF, Kevin Barker from Australia. 39 00:01:39,070 --> 00:01:40,330 Give it up for him. 40 00:01:40,330 --> 00:01:48,850 He is the administrator of the Proxmox forum originally and has helped developing VRD for Proxmox and all that shit. 41 00:01:48,850 --> 00:01:50,370 And we hacked some stuff. 42 00:01:52,980 --> 00:01:54,040 Thank you. 43 00:01:54,040 --> 00:01:57,100 And beside me, everybody knows who he is. 44 00:01:57,260 --> 00:01:57,600 Mr. 45 00:01:57,600 --> 00:01:58,860 Iceman himself. 46 00:01:58,900 --> 00:02:01,680 Met this gentleman quite a few years ago. 47 00:02:01,680 --> 00:02:04,480 Saw somebody that was interested in NFC RFID. 48 00:02:04,660 --> 00:02:06,940 Jumped on to admin role straight away. 49 00:02:06,940 --> 00:02:09,500 And ever since then, he's been building the community ever since. 50 00:02:09,500 --> 00:02:12,980 And thanks to the contributions of everybody around... 51 00:02:12,980 --> 00:02:13,960 Speaking to the microphone. 52 00:02:13,960 --> 00:02:15,540 Speaking to the microphone. 53 00:02:17,400 --> 00:02:21,040 Thanks to everybody's contributions to make what the Proxmox is today. 54 00:02:21,040 --> 00:02:22,440 So, yeah. 55 00:02:22,440 --> 00:02:23,420 Thank you very much. 56 00:02:23,420 --> 00:02:24,720 Everybody, Iceman. 57 00:02:27,380 --> 00:02:28,160 Stop that. 58 00:02:28,160 --> 00:02:28,600 Stop that. 59 00:02:28,600 --> 00:02:29,000 Stop that. 60 00:02:29,000 --> 00:02:29,320 Stop that. 61 00:02:29,320 --> 00:02:30,240 We're not doing it yet. 62 00:02:30,240 --> 00:02:30,940 All right. 63 00:02:30,940 --> 00:02:31,900 Rest in peace. 64 00:02:31,900 --> 00:02:32,840 Why do we say that? 65 00:02:32,840 --> 00:02:34,020 That's a good question. 66 00:02:34,620 --> 00:02:36,820 You know all about this little company. 67 00:02:37,100 --> 00:02:40,320 We're going to focus today and talk about Picopass. 68 00:02:40,320 --> 00:02:44,420 The card technology that is based for these companies. 69 00:02:44,560 --> 00:02:47,020 InsideSecure made the Picopass product. 70 00:02:47,020 --> 00:02:51,580 And HRD is famous in this country for the security tokens that we use upon them. 71 00:02:51,580 --> 00:02:54,970 And it's... yeah. 72 00:02:55,100 --> 00:02:57,480 It's a mess. 73 00:02:57,480 --> 00:03:06,620 What's happening with iClass in the future and in the history is based on some serious academic research. 74 00:03:06,740 --> 00:03:18,600 And this previous talk or previous work has been done by people like Rul, Andrew Garcia, Flavio, Milovic, and all those people. 75 00:03:18,600 --> 00:03:25,780 And they extracted a lot of data and knowledge and what you Red Team has pen-tested or other guys are doing here in this show today. 76 00:03:25,860 --> 00:03:28,220 So this is what it's based upon. 77 00:03:29,240 --> 00:03:31,760 Now, before we get going, I don't know... 78 00:03:31,760 --> 00:03:35,540 How many of you have a Proxmox and have done any kind of RFID hacking? 79 00:03:35,540 --> 00:03:36,760 Up with your hand. 80 00:03:37,800 --> 00:03:38,540 All right. 81 00:03:38,540 --> 00:03:39,300 All right. 82 00:03:39,380 --> 00:03:40,400 That's pretty decent. 83 00:03:40,640 --> 00:03:43,300 How many have hacked and cloned a card? 84 00:03:44,880 --> 00:03:46,140 A little bit better. 85 00:03:46,140 --> 00:03:54,700 How many roads must man walk down before karaoke? 86 00:03:54,700 --> 00:03:56,300 Yeah, that's for you. 87 00:03:58,140 --> 00:04:07,660 Anyway, it's a little bit confusing terminology, so I want to say a little briefly saying that we have something called iClass Legacy, iClass SE, and SEOS. 88 00:04:07,660 --> 00:04:11,440 That's three different security levels that HID presents. 89 00:04:11,440 --> 00:04:20,060 With that comes another word, that protection, that you're using is called standard mode, high or elite mode, or SE, secure edition. 90 00:04:20,440 --> 00:04:25,580 Confusing, but in the end, all it's based upon the Pico Pass. 91 00:04:29,180 --> 00:04:30,840 Look at that little face. 92 00:04:30,840 --> 00:04:32,520 I know that, Babak. 93 00:04:34,560 --> 00:04:36,120 SIO enabled. 94 00:04:37,140 --> 00:04:40,240 Give it up for our J-man number one himself. 95 00:04:40,240 --> 00:04:41,740 He made a little box over there. 96 00:04:41,740 --> 00:04:44,600 That's Babak Yavari, amazing person. 97 00:04:46,100 --> 00:04:48,240 Ah, there you go. 98 00:04:50,180 --> 00:04:52,740 Anyway, back to standard security. 99 00:04:54,480 --> 00:05:05,720 What we have here is the first crypto that came up, the encrypt was then decoded and all that stuff was figured out, the key diversification, and it added support for it in the Proxmox. 100 00:05:07,320 --> 00:05:15,580 The old academic papers that you saw has been doing firmly for going through and presented a lot of attacks into it. 101 00:05:15,580 --> 00:05:24,580 The standard security is probably known, probably properly addressed in the Proxmox clients and other places. 102 00:05:25,500 --> 00:05:38,680 With the high security and elite mode, it became a little bit more difficult, in the sense that they added the complexity in diversifying the keys that was generated. 103 00:05:38,680 --> 00:05:43,540 Do everybody here know what a key is used for in an RFID tag system? 104 00:05:44,680 --> 00:05:47,440 If you don't know, raise a hand, I will take a little bit shortly. 105 00:05:50,480 --> 00:05:55,040 So, you can see an RFID tag as a memory stick, a USB memory stick. 106 00:05:55,720 --> 00:06:01,400 And you want to have some access control to it by saying you are allowed to write to it or you're not allowed to write to it. 107 00:06:01,400 --> 00:06:03,480 And by that, we add some layers of crypto. 108 00:06:03,880 --> 00:06:06,600 With that crypto, we have keys, cryptographic keys. 109 00:06:06,600 --> 00:06:10,120 And how to generate those keys is made in different ways for different systems. 110 00:06:10,120 --> 00:06:12,700 That's the shortest way I can say it. 111 00:06:12,800 --> 00:06:13,920 Right? 112 00:06:13,920 --> 00:06:14,940 Simple. 113 00:06:14,940 --> 00:06:16,740 We're going to get more technical. 114 00:06:18,200 --> 00:06:19,860 We are, actually. 115 00:06:20,640 --> 00:06:24,800 Now, 5-class SIO enabled. 116 00:06:25,980 --> 00:06:28,180 HRD went down a different road. 117 00:06:28,260 --> 00:06:35,720 They made readers and that was a little bit better because their own cryptographic research showed that the old stuff was totally broken. 118 00:06:35,720 --> 00:06:41,380 So, we came up with a little bit improved version of it so this uses CMRKIS diversification system. 119 00:06:41,380 --> 00:06:42,060 It's good. 120 00:06:42,060 --> 00:06:43,820 Better, at least. 121 00:06:43,900 --> 00:06:45,120 Let's see what happens. 122 00:06:45,540 --> 00:06:47,060 And, yeah. 123 00:06:47,140 --> 00:06:48,080 Next generation. 124 00:06:48,080 --> 00:06:49,620 This is still old stuff. 125 00:06:51,240 --> 00:07:02,480 With that said, current status, how we support all of this stuff is actually made and implemented in Proxmox quite well, I would say, by now. 126 00:07:02,840 --> 00:07:03,920 Pretty solid. 127 00:07:03,920 --> 00:07:07,160 And we had implemented in the LibNFC. 128 00:07:07,200 --> 00:07:08,600 Adam Lord did that. 129 00:07:08,600 --> 00:07:13,040 And we had the Proxmox Freehazit where Holman added all the commands for it. 130 00:07:13,040 --> 00:07:17,240 And in the Flipper 0, I don't know if Betts is in the audience here today. 131 00:07:17,640 --> 00:07:18,860 Where's Betts? 132 00:07:20,520 --> 00:07:21,840 Eric Betts! 133 00:07:21,840 --> 00:07:22,740 Man with a hat. 134 00:07:22,740 --> 00:07:23,620 Give up your hand. 135 00:07:24,120 --> 00:07:28,080 So, he's the one who added iClass stuff to Flipper 0. 136 00:07:28,340 --> 00:07:29,820 Give it up to him. 137 00:07:34,750 --> 00:07:39,530 Anyway, Holman implemented all this crypto in the Proxmox, which everybody else is using. 138 00:07:39,530 --> 00:07:42,010 And he got a cease and desist letter as a thank you. 139 00:07:42,010 --> 00:07:43,530 So that was pretty good. 140 00:07:49,950 --> 00:07:55,490 So, when we talk about crypto and we talk about here in this village about how we recover keys. 141 00:07:55,490 --> 00:07:56,930 Do you know what that means? 142 00:07:58,410 --> 00:07:59,290 No! 143 00:07:59,290 --> 00:08:00,590 Or yes? 144 00:08:01,150 --> 00:08:01,990 You know? 145 00:08:02,850 --> 00:08:03,750 No, yes? 146 00:08:03,750 --> 00:08:04,430 Okay. 147 00:08:04,450 --> 00:08:12,470 It means in one way that we want to somehow extract the cryptographic key that is used to read out the memory and manipulate the memory. 148 00:08:12,830 --> 00:08:14,770 And if we do well, we do well. 149 00:08:14,890 --> 00:08:24,930 For this kind of stuff, for the global system that was iClass standard or iClass legacy that we mentioned before the global master key was recovered from firmware hacks. 150 00:08:25,250 --> 00:08:27,130 So you don't have to think so very much about it. 151 00:08:27,130 --> 00:08:28,370 That key is in the repos. 152 00:08:28,370 --> 00:08:31,770 It's very easy to clone it if you do the CTF challenge over there. 153 00:08:31,770 --> 00:08:32,850 It's kind of simple. 154 00:08:32,950 --> 00:08:34,470 Then we have another user. 155 00:08:34,470 --> 00:08:35,470 It's called Carl55. 156 00:08:35,470 --> 00:08:36,670 Amazing guy. 157 00:08:36,750 --> 00:08:42,430 He came up with another idea how to recover the key from systems. 158 00:08:42,430 --> 00:08:45,510 It's called the elite system that I mentioned briefly. 159 00:08:45,510 --> 00:08:47,350 That is called the low class attack. 160 00:08:47,430 --> 00:08:56,190 Basically, you use simulation to extract 9 CSN and that generates the key material that you can use to run a command called low class. 161 00:08:56,190 --> 00:08:59,710 If you heard these words, it's going to sound familiar. 162 00:08:59,710 --> 00:09:03,770 But you will recover the elite key for in about 3 seconds. 163 00:09:04,150 --> 00:09:05,150 Common knowledge. 164 00:09:05,910 --> 00:09:07,170 All basic. 165 00:09:07,630 --> 00:09:08,990 So what is left? 166 00:09:08,990 --> 00:09:11,750 When you look at the iClass legacy world. 167 00:09:12,850 --> 00:09:17,370 What is left is the generation of elite master keys. 168 00:09:17,370 --> 00:09:18,950 The elite master keys is... 169 00:09:21,150 --> 00:09:23,010 Let's begin from the beginning. 170 00:09:23,010 --> 00:09:31,090 The elite system is based on HRD makes its own custom triple desk keys one by one. 171 00:09:31,090 --> 00:09:34,750 And then that is kept secret. 172 00:09:35,030 --> 00:09:38,430 So we can extract all the keys from the firmware. 173 00:09:38,430 --> 00:09:41,050 We have a low class extract the keys from the reader. 174 00:09:41,270 --> 00:09:42,690 It's not an issue. 175 00:09:42,950 --> 00:09:46,150 What's left for the community to understand because this is what it is. 176 00:09:46,150 --> 00:09:49,970 It's a community effort to understand how are these things done. 177 00:09:49,970 --> 00:09:53,970 And this is the focus of what we are doing today. 178 00:09:53,970 --> 00:09:55,650 How is the generated... 179 00:09:55,650 --> 00:09:58,610 How is the elite keys master keys generated? 180 00:10:00,990 --> 00:10:04,050 And thus begins a tale of two. 181 00:10:05,190 --> 00:10:15,150 So for the community side of it, we have known or suspected that this elite and high security triple desk keys was generated by some kind of algo. 182 00:10:15,670 --> 00:10:22,870 Now, today's finding we are going to talk about is based upon two researchers' efforts over the years. 183 00:10:24,770 --> 00:10:27,290 Which leads me to Carl55. 184 00:10:27,790 --> 00:10:29,190 I'm going fast, am I not? 185 00:10:29,190 --> 00:10:29,870 Okay. 186 00:10:30,090 --> 00:10:38,110 So Carl, among others, has been hacking iClass for a long time. 187 00:10:38,410 --> 00:10:41,830 So the key how he does it is that he gets readers from eBay. 188 00:10:42,670 --> 00:10:52,110 And everybody got particularly curious after we figured out the standard iClass key out the Global Mosque. 189 00:10:52,110 --> 00:10:54,790 God, I hate to repeat myself all the time. 190 00:10:55,010 --> 00:10:55,790 Jesus. 191 00:10:55,790 --> 00:10:56,990 With that dude, fine. 192 00:10:57,570 --> 00:10:58,490 They actually took... 193 00:10:59,950 --> 00:11:01,870 He took time to figure things out. 194 00:11:01,870 --> 00:11:04,010 He had a friend in Australia, down under. 195 00:11:04,430 --> 00:11:07,230 And they have a system there called the Gold or whatever. 196 00:11:07,230 --> 00:11:10,070 And they have a lot of elite systems down there. 197 00:11:10,070 --> 00:11:14,230 So his friend and them checked out eBay and bought a whole bunch of them. 198 00:11:14,230 --> 00:11:20,090 Did the low class and he also extracted from the firmware the keys how to look like. 199 00:11:20,090 --> 00:11:27,710 Now for him, when he compiled that list of keys that he figured out, was some kind of pattern emerged. 200 00:11:28,690 --> 00:11:32,710 Now with that said, it comes over to Kevin. 201 00:11:34,830 --> 00:11:39,030 So, up to me, I did my own set of research. 202 00:11:39,030 --> 00:11:46,850 Carl had already well and truly traveled quite a bit of ground before I started acquiring R10 readers for myself. 203 00:11:46,990 --> 00:11:55,350 Once I'd done so, I'd taken them for a bath in some acetone and undercapsulated ICs and had a look at what was underneath the hood. 204 00:11:55,450 --> 00:11:58,970 One of the first things that I found was the PIC18F. 205 00:11:58,970 --> 00:12:07,650 Now, if any of you are familiar with hardware hacking, you would also perhaps be familiar with microchips overvoltage vulnerabilities. 206 00:12:08,090 --> 00:12:17,790 So upon discovering this, within the epoxy resin and seeing that PIC18F, I decided to investigate further. 207 00:12:18,150 --> 00:12:29,230 Now usually information on these microchips are stored at the end, because you've got bootloaders and everything else, that's all the fun stuff at the start, but you know, all the information is usually at the end. 208 00:12:29,230 --> 00:12:35,590 So I thought I'd take a bit of a gamble and I did my HPE attack on the second half of the reader and extracted all the keys. 209 00:12:35,590 --> 00:12:36,410 Great. 210 00:12:36,810 --> 00:12:38,350 That was interesting. 211 00:12:38,350 --> 00:12:40,550 How did the keys get generated? 212 00:12:40,550 --> 00:12:41,510 How did the keys get used? 213 00:12:41,510 --> 00:12:42,670 I wasn't really sure. 214 00:12:43,010 --> 00:12:59,970 So I didn't really know where to go from this point in time, but I knew that there was a simple PRNG that was being used based on the information that I'd obtained through the firmware and I had seen a PRNG in the assembly code that I had decompiled. 215 00:13:00,090 --> 00:13:18,350 So I needed to contact somebody else and start sharing knowledge and start understanding what's going on, because at that point in time after I'd done that much research, I'd found that there were other people around the globe, very intelligent people such as Kyle55 that I could then collaborate with. 216 00:13:18,350 --> 00:13:22,610 So very happy with the results that we got there. 217 00:13:23,090 --> 00:13:27,710 Yeah, so once I got that far, it was off to my mate Chris. 218 00:13:27,710 --> 00:13:28,890 So yeah. 219 00:13:31,650 --> 00:13:33,390 This is yours, you know that. 220 00:13:33,990 --> 00:13:35,290 This is yours. 221 00:13:36,130 --> 00:13:37,470 Back to me. 222 00:13:38,070 --> 00:13:43,990 Okay, so after that, knowing that I had this PRNG, bounce that off Chris. 223 00:13:43,990 --> 00:13:45,590 Chris introduced me to Kyle. 224 00:13:45,590 --> 00:13:47,230 Kyle and I had a bit of a yak. 225 00:13:47,710 --> 00:13:55,930 We had verified that we both had extracted the same keys from that same PIC88F micro and we knew that we were up to something. 226 00:13:55,930 --> 00:14:00,430 It was just that last little while that we had to travel to figure out what was going on with the algos. 227 00:14:01,250 --> 00:14:04,690 So, how did we figure out the PRNG? 228 00:14:04,930 --> 00:14:17,070 What we did was we compiled all of the assembly and ran through various different instructions until eventually we found a subroutine which had a very embarrassing PRNG in there. 229 00:14:17,070 --> 00:14:24,310 Now, I probably shouldn't say embarrassing because it's just PicoPass silicon has been around for quite some time. 230 00:14:24,310 --> 00:14:30,430 So the technology that's there, credit where credit's due, was reasonably good at the time. 231 00:14:30,430 --> 00:14:35,470 So , now we've figured out that we've got the PRNG and we've got the keys. 232 00:14:35,810 --> 00:14:46,670 Now, I verified that just to absolutely make sure of things, I'd found a copy of the PRNG also in software from the same manufacturer. 233 00:14:46,770 --> 00:14:50,410 So that was absolute confirmation that we'd had everything sorted out. 234 00:14:51,130 --> 00:14:56,810 Then, yeah, it was a matter of turning this discovery into an implementation. 235 00:14:56,950 --> 00:14:57,630 Yeah. 236 00:14:59,390 --> 00:15:01,670 Which leads to me again. 237 00:15:02,130 --> 00:15:03,250 Bloody hell. 238 00:15:03,250 --> 00:15:04,830 I thought you were going to speak longer. 239 00:15:05,910 --> 00:15:06,790 You're welcome. 240 00:15:06,950 --> 00:15:08,710 So, what's the problem? 241 00:15:08,790 --> 00:15:10,570 We figured out the keys. 242 00:15:10,570 --> 00:15:12,130 We figured out the PRNG. 243 00:15:12,130 --> 00:15:14,010 We figured out all the stuff that's needed. 244 00:15:14,010 --> 00:15:19,730 If you think we're kind of weak in what we're exactly saying, there's a reason for that. 245 00:15:21,030 --> 00:15:21,510 And... 246 00:15:22,530 --> 00:15:24,970 Yeah, we don't want any trouble in that sense. 247 00:15:25,750 --> 00:15:28,710 But the concept is, we know it. 248 00:15:29,050 --> 00:15:31,490 And you can verify it later if you're a little bit fast. 249 00:15:32,130 --> 00:15:33,770 So what is the problem? 250 00:15:33,910 --> 00:15:43,210 Well, whenever PRNG is a random number generator that you have a seed into it, and then you have to figure out the chain of blocks that repeat themselves 60 million times. 251 00:15:43,250 --> 00:15:50,310 Now the question is, how do you find the seed, and how do you verify the generated keys? 252 00:15:52,310 --> 00:16:02,150 Which is quite simple, because Adam Lohrer did that a couple of years ago, where he had a firmware and he was like, yeah, let's just brute force the firmware file instead. 253 00:16:02,270 --> 00:16:04,590 So I thought, I'm going to do the same thing. 254 00:16:05,050 --> 00:16:17,850 And for verifying the keys, it's even simpler, because call it a compile list, or a long chain of bytes that actually match with that, and it's just brute force the motherfucker out of this. 255 00:16:18,510 --> 00:16:24,670 It's also very sensitive here, what it is, but yeah, it matches. 256 00:16:26,170 --> 00:16:27,750 And it goes quite fast. 257 00:16:28,350 --> 00:16:29,430 Can't say a long time. 258 00:16:30,210 --> 00:16:31,270 The thing is... 259 00:16:36,090 --> 00:16:38,090 Yeah, okay, brute force, fuck it. 260 00:16:39,310 --> 00:16:42,010 The thing is, once you've done it, it's quite simple. 261 00:16:42,010 --> 00:16:54,490 Then you need to have support for it in Proxmox, which was happening, and if you've been around the Proxmox world, there was a time about 2017, 2018, when the check commands and lookup commands existed, or came to be. 262 00:16:54,490 --> 00:17:02,150 The reason was, this is the reason, why do you want to have a dictionary command file, Iceman, when there's only one key? 263 00:17:02,150 --> 00:17:04,770 And I said, are there really? 264 00:17:05,610 --> 00:17:09,010 There are many keys, but they didn't know that. 265 00:17:09,330 --> 00:17:12,450 Regardless of that, that's how it is, it works, so you can do it. 266 00:17:12,750 --> 00:17:20,910 We have not implemented the key generation algorithm for lead keys in Proxmox, and we're not going to release it either, so chill over there. 267 00:17:24,280 --> 00:17:26,600 But I can prove you that it works. 268 00:17:27,360 --> 00:17:30,900 I will do that by trying to please Vedema gods. 269 00:17:33,500 --> 00:17:35,400 They would speak all. 270 00:17:39,170 --> 00:17:41,030 We need to have bigger... 271 00:17:41,890 --> 00:17:42,710 You're good? 272 00:17:43,710 --> 00:17:45,690 I can't see, that's the problem. 273 00:17:46,750 --> 00:17:47,290 Am I in? 274 00:17:47,290 --> 00:17:48,130 Yes, I am. 275 00:17:51,960 --> 00:17:53,280 Oh, we don't have a camera. 276 00:17:53,300 --> 00:17:54,380 Ah, fuck it. 277 00:17:55,680 --> 00:17:59,900 In my hand, I have a bag of lead keys that I don't know the key of. 278 00:18:01,580 --> 00:18:03,300 Because it says so on the label. 279 00:18:06,070 --> 00:18:09,450 I will take one of these keys, and I will prove it. 280 00:18:10,610 --> 00:18:11,310 Stupid. 281 00:18:11,310 --> 00:18:12,910 The camera doesn't work, sorry. 282 00:18:12,930 --> 00:18:17,390 I would have Babak up here, everything would have worked from the beginning, because he's so fucking professional. 283 00:18:23,500 --> 00:18:25,200 Here we go, let's see. 284 00:18:26,540 --> 00:18:33,440 This is a iClass , and it's a legacy, because this is down there. 285 00:18:34,860 --> 00:18:35,580 And it's... 286 00:18:35,580 --> 00:18:40,420 We can verify that we don't know the key to it, because we can do this. 287 00:18:41,060 --> 00:18:42,520 Key index 0. 288 00:18:44,320 --> 00:18:45,260 Is that correct? 289 00:18:45,260 --> 00:18:46,200 Because I can't see. 290 00:18:47,180 --> 00:18:50,340 You have to stand there and tell me if it looks right, because I can't see it. 291 00:18:54,240 --> 00:18:54,780 Can? 292 00:18:56,260 --> 00:18:57,840 I can't see it. 293 00:18:58,380 --> 00:18:59,760 Anywho, it doesn't work. 294 00:19:00,180 --> 00:19:04,400 However, I would need to add actually elite if I don't do that, but that's a different story. 295 00:19:04,960 --> 00:19:05,840 Is that right? 296 00:19:05,840 --> 00:19:07,000 All right, cool. 297 00:19:07,100 --> 00:19:10,980 So what I'm doing now is running the check command list and running it now. 298 00:19:11,440 --> 00:19:19,260 I generated a list of these elite keys, and you're telling the approximate client to run it under the elite algorithm to generate the keys. 299 00:19:19,800 --> 00:19:23,560 And in the end, it finds it quite easily, because it exists there. 300 00:19:24,120 --> 00:19:30,640 That means that now you don't need to do low class or whatever to extract information from an elite key. 301 00:19:35,890 --> 00:19:36,770 Applauds. 302 00:19:42,890 --> 00:19:44,510 Oh my god, we rixed over. 303 00:19:45,870 --> 00:19:53,550 For you who don't understand what the implications of this is, it's a different story, but in our little world, it's kind of fun. 304 00:19:55,310 --> 00:20:01,910 However, we're not going to do very much more about this one, because it's yours for the next one. 305 00:20:04,750 --> 00:20:05,530 All right. 306 00:20:05,530 --> 00:20:09,830 So the question is why are we talking about this? 307 00:20:10,150 --> 00:20:14,870 Part of the reason is that all of this information is already in the public domain. 308 00:20:15,230 --> 00:20:27,050 There's information across forums, there's information in the form of white papers from the legends before us that have done a lot of research and helped us along this journey. 309 00:20:27,570 --> 00:20:37,790 And yeah, there are also products in the market that are commercially available that have not only a list of iClass keys available in them, but have the algos and everything else as well. 310 00:20:37,790 --> 00:20:45,590 So not to mention that this particular product here as an example, has things like DRM built into it. 311 00:20:45,590 --> 00:21:05,110 So what has happened with this particular product is that we've got a good friend, Dogox, that has found, extracted it, extracted all the firmware from it, and published a separate repo to uncover everything that is contained within the iCopyX. 312 00:21:05,110 --> 00:21:09,710 So that link down the bottom there is something worthwhile checking out. 313 00:21:12,060 --> 00:21:17,480 If you bring that little box up there, that orange one, so yeah, that's how it looks like. 314 00:21:17,740 --> 00:21:20,320 And now it sounds like it's a marketing thing, but it's not. 315 00:21:20,320 --> 00:21:24,640 We actually dislike it very, very much because it goes against everything we stand for. 316 00:21:25,600 --> 00:21:29,620 Close source DRM and, you know, fuck the community. 317 00:21:29,620 --> 00:21:36,000 I'm a very strong fan of open source, so this offends me, so you know that. 318 00:21:40,160 --> 00:21:45,720 And, you know, we don't do this shit just because we think we're going to commercialize the fuck out of it. 319 00:21:45,840 --> 00:21:52,540 The thing is, I'm a value person, so I stand for values, and open source is a heart of mine. 320 00:21:52,680 --> 00:21:54,720 So I want to talk about things. 321 00:21:54,720 --> 00:22:03,760 I don't want to give you guys exactly the implications and how to do things, but I will give you the tools how to use this stuff, if that makes sense to you guys. 322 00:22:04,440 --> 00:22:05,440 All right? 323 00:22:05,620 --> 00:22:06,340 Cool. 324 00:22:06,360 --> 00:22:13,760 So this sucks, but if you're a pentester and teamer, I totally understand it because it will do exactly what's promised. 325 00:22:13,760 --> 00:22:16,360 It will clone a card with one button. 326 00:22:17,040 --> 00:22:18,200 You will get it. 327 00:22:18,200 --> 00:22:21,760 So if you're on a mission , you don't need to know all this shit that we know . 328 00:22:21,840 --> 00:22:25,260 You buy one of those motherfuckers and you will have done your stuff. 329 00:22:26,300 --> 00:22:31,860 I'm sorry to say it, you know , if you buy a Proxmog, you will try to do some research, but if you buy that one, it's different. 330 00:22:32,340 --> 00:22:42,940 And with this talk, I'm pretty sure that the FlippaZero guys, like Betz over there, will implement even more stuff, so you guys will have some more fun with it. 331 00:22:43,300 --> 00:22:47,260 FlippaZero is only in the beginning of iteration of what they can do there. 332 00:22:47,260 --> 00:22:52,240 Firmware and all that stuff is just going to build up, even if there's some limitation to the hardware. 333 00:22:53,500 --> 00:22:57,040 One of these days, we'll actually start doing attribution. 334 00:22:57,960 --> 00:23:02,260 So until that day, fuck the Flippa. 335 00:23:04,080 --> 00:23:05,940 I'm a value person, sorry. 336 00:23:07,500 --> 00:23:09,820 Was that interesting enough for you guys? 337 00:23:13,740 --> 00:23:18,080 Because we're stressing our asses off here, because we're kind of nervous, at least I am. 338 00:23:18,080 --> 00:23:21,480 I don't know why, because yeah , that's how I am. 339 00:23:22,740 --> 00:23:25,940 With this said , that was the rest in peace . 340 00:23:25,940 --> 00:23:29,880 There are no more protections for the legacy I-class. 341 00:23:29,880 --> 00:23:32,960 You have to understand the implications of what we have said today. 342 00:23:32,960 --> 00:23:37,940 There are no more secureness in an I-class legacy. 343 00:23:39,120 --> 00:23:46,280 All vendors, whatever you do, upgrade to C-OS or whatever shit you're going to do, that's what you're going to do, because that's the next thing that's coming. 344 00:23:46,280 --> 00:23:47,300 Or Deathfire. 345 00:23:47,300 --> 00:23:48,520 I prefer Deathfire. 346 00:23:48,520 --> 00:23:49,580 I'm European. 347 00:23:49,980 --> 00:23:51,600 So that's how it works. 348 00:23:51,680 --> 00:23:55,420 I want to make sure that this is end-of-the-line stuff. 349 00:23:55,420 --> 00:23:58,920 This doesn't implicate anything with it like that. 350 00:23:58,920 --> 00:24:05,480 It's all if you have customers who are wondering about things and think that they are secure because they have this stuff. 351 00:24:05,540 --> 00:24:06,260 No. 352 00:24:06,260 --> 00:24:07,220 You're not. 353 00:24:07,220 --> 00:24:08,980 And you never will be anymore. 354 00:24:08,980 --> 00:24:10,820 So stop it. 355 00:24:11,100 --> 00:24:12,140 Upgrade. 356 00:24:12,760 --> 00:24:13,880 All right? 357 00:24:14,580 --> 00:24:19,940 For you pentesters or red teamers, you're going to have a good time, though. 358 00:24:21,020 --> 00:24:22,300 It is. 359 00:24:22,300 --> 00:24:26,000 You're going to buy one of those and then extract the default key list that's there. 360 00:24:26,000 --> 00:24:27,520 And then you're happy. 361 00:24:27,520 --> 00:24:30,000 Everybody can use the Proxmog for it. 362 00:24:30,000 --> 00:24:33,120 With that said, it's time to go over to the next part of the talk. 363 00:24:34,660 --> 00:24:35,920 The tear. 364 00:24:38,300 --> 00:24:40,260 Now, the tearing part. 365 00:24:40,620 --> 00:24:41,560 That's a different story. 366 00:24:41,560 --> 00:24:42,460 This is my party. 367 00:24:42,460 --> 00:24:43,080 Oh, totally. 368 00:24:43,080 --> 00:24:44,440 Oh, my fucking god. 369 00:24:45,080 --> 00:24:45,860 Can I move? 370 00:24:45,860 --> 00:24:47,020 I feel like a rockstar. 371 00:24:47,020 --> 00:24:47,620 Wow. 372 00:24:48,260 --> 00:24:50,120 How long do I have? 373 00:24:50,640 --> 00:24:51,480 Wow. 374 00:24:52,680 --> 00:24:54,700 I find it easy to stand like this. 375 00:24:54,700 --> 00:24:57,820 So, tear-off-attacks is something that we imaginary... No, we didn't. 376 00:24:57,820 --> 00:24:58,580 Actually, we... 377 00:24:58,580 --> 00:25:03,440 It was invented a couple of years ago by the researchers of Mobius and Dojox. 378 00:25:03,780 --> 00:25:06,980 If you don't know Philip Turvin, he's an amazing man. 379 00:25:06,980 --> 00:25:11,640 And Mobius, I can tell you, guys, if I said wrong, I'm sorry. 380 00:25:12,440 --> 00:25:13,660 He's also an amazing man. 381 00:25:13,660 --> 00:25:16,460 They came up with a tear-off-attack original one. 382 00:25:16,460 --> 00:25:20,320 I got the Micron card of a Russian subway system with blue cards. 383 00:25:20,320 --> 00:25:25,340 I managed to acquire a bunch of Russian Micron cards, finally. 384 00:25:25,340 --> 00:25:30,680 And to verify his findings, only to find out that I got the red ones. 385 00:25:31,500 --> 00:25:33,420 Which is not the same as the blue ones. 386 00:25:33,420 --> 00:25:35,010 That was the vulnerable ones. 387 00:25:35,320 --> 00:25:49,740 However, we have replicated that things with Dojox and me actually resetting the counter on ultralight EV1s, which, you know, forced NXP to do things. 388 00:25:49,880 --> 00:25:53,020 Now, the tear-off-attack is quite simple. 389 00:25:56,220 --> 00:25:57,760 Do you know what a tear-off-attack is? 390 00:25:57,760 --> 00:26:00,460 A concept of a tear-off-attack in RFID. 391 00:26:00,920 --> 00:26:01,940 Hands-risen. 392 00:26:01,940 --> 00:26:03,080 It's a new concept. 393 00:26:03,080 --> 00:26:05,040 It's not really out on the market. 394 00:26:05,300 --> 00:26:06,240 Trust me. 395 00:26:06,600 --> 00:26:15,440 A tear-off-attack is, if you know how RFID works, you have EM field reflux, and then you cut the power at a very specific timing. 396 00:26:15,440 --> 00:26:16,480 Very precise. 397 00:26:17,260 --> 00:26:29,460 And then you hope that resistors and the memory gaps in the memory gates, will lower enough electrons so you get a bit-flip. 398 00:26:29,880 --> 00:26:31,080 Does that make sense? 399 00:26:31,160 --> 00:26:35,320 It's like a fault-injectory for EM, but not. 400 00:26:35,500 --> 00:26:38,180 Because fault-injectors have a persistent power line. 401 00:26:38,180 --> 00:26:40,320 We fucking cut the power and it's off. 402 00:26:40,320 --> 00:26:41,440 It's nothing there. 403 00:26:41,640 --> 00:26:48,040 And it's a little bit imprecise, because impreciseness is because of the caps or whatever is left of the rest of the energy. 404 00:26:48,040 --> 00:26:49,660 So it takes some timing with it. 405 00:26:50,680 --> 00:26:54,940 Now, prerequisites for a tear-off-attack. 406 00:26:55,140 --> 00:27:04,180 First, you can either tear off memory that goes to zeros, or you tear it off and it goes to FFFFs. 407 00:27:04,480 --> 00:27:06,240 Which is kind of funny. 408 00:27:06,860 --> 00:27:09,920 Because his name is FFFF. 409 00:27:10,540 --> 00:27:17,140 You need also enable to read a command to read the memory that you're trying to tear. 410 00:27:17,140 --> 00:27:18,700 Does that make sense? 411 00:27:19,260 --> 00:27:20,080 Right? 412 00:27:20,240 --> 00:27:25,020 And of course, you need something to write that you're actually tearing. 413 00:27:25,020 --> 00:27:27,660 So in the write process, you're tearing something off. 414 00:27:28,000 --> 00:27:40,520 A normal write process goes on that you send the write command to the reader and it, inside of a chip of RFID tag, inside of that, starts an erase cycle. 415 00:27:40,520 --> 00:27:44,840 And then, a little bit lower on, it does a write cycle, where it does these things. 416 00:27:44,840 --> 00:27:46,580 And it tries to do some checks as well. 417 00:27:46,580 --> 00:27:50,700 It's a little bit guesswork, because we don't have exact insights in how it's done. 418 00:27:50,700 --> 00:27:51,900 But it's quite nice. 419 00:27:53,240 --> 00:27:55,060 So, why are we talking about that? 420 00:27:55,060 --> 00:27:57,020 Yes, we're talking about Picopass. 421 00:27:57,020 --> 00:27:59,880 Of course, because that's the focus of this talk. 422 00:28:00,060 --> 00:28:04,360 Now, last year, another community member, he had a talk together with Mixon. 423 00:28:04,360 --> 00:28:05,860 Is Mixon in the house? 424 00:28:07,420 --> 00:28:08,780 Stand up, brother. 425 00:28:10,820 --> 00:28:11,920 Stand up! 426 00:28:11,920 --> 00:28:13,100 There you go, that's Mixon. 427 00:28:13,100 --> 00:28:13,960 He had a talk. 428 00:28:16,500 --> 00:28:17,700 His first. 429 00:28:17,900 --> 00:28:19,260 So, give it up for him. 430 00:28:19,260 --> 00:28:27,500 The thing is, he and his friend Wendel, told me last year that when the Terrafortechs came out, it was kind of popular, we ripped some shit out of some proxy card. 431 00:28:27,900 --> 00:28:31,480 And he said he can rip a normal block on I-class Picopass. 432 00:28:32,160 --> 00:28:33,420 Which is kind of...