1 00:00:00,000 --> 00:00:02,660 Okay, everyone, thank you for coming. 2 00:00:02,660 --> 00:00:03,740 Welcome. 3 00:00:04,920 --> 00:00:15,160 I'm calling this talk Ghosting the Paxman, Basics of Physical Access Control and Physical Access Control Systems and Beyond. 4 00:00:15,160 --> 00:00:25,020 This is a very fast and abridged but hopefully fun comprehensive crash course into physical access control systems. 5 00:00:25,020 --> 00:00:28,440 This is not only going to talk about RFID. 6 00:00:28,440 --> 00:00:31,240 A lot of people like to focus on RFID. 7 00:00:31,440 --> 00:00:35,360 And that's just the very tip of the access control iceberg. 8 00:00:35,740 --> 00:00:37,580 And so we're going to be jumping around a lot . 9 00:00:37,580 --> 00:00:39,800 We're going to be talking about a lot of different things. 10 00:00:39,820 --> 00:00:41,540 I hope that it all makes sense. 11 00:00:41,540 --> 00:00:46,180 This is normally content that it takes me two days, two eight-hour days to train folks on . 12 00:00:46,440 --> 00:00:51,400 I just spent the last few hours collapsing it all into 80 minutes or less. 13 00:00:51,400 --> 00:00:53,200 So fingers crossed. 14 00:00:53,200 --> 00:00:56,920 If there's any questions , there will be time at the end. 15 00:00:56,920 --> 00:01:03,620 If not, with me in front of the microphone, certainly with me standing right over there behind the table so there won't be a problem. 16 00:01:03,960 --> 00:01:06,280 So without further ado, let's get started. 17 00:01:06,620 --> 00:01:07,780 Who am I? 18 00:01:08,020 --> 00:01:09,720 My name is Babak Javadi. 19 00:01:10,080 --> 00:01:14,020 I'm a lock picker, hardware hacker and covert entry instructor. 20 00:01:14,020 --> 00:01:18,260 I have been teaching methods of covert entry for over ten years. 21 00:01:18,560 --> 00:01:23,360 I'm the co-founder of the Open Organization of Lock Pickers, otherwise known as TOOL. 22 00:01:23,360 --> 00:01:24,860 Who knows about TOOL? 23 00:01:24,860 --> 00:01:26,620 Yeah, that's right. 24 00:01:26,620 --> 00:01:28,120 It's pretty awesome, right? 25 00:01:28,120 --> 00:01:39,440 It's amazing to me how much that organization has grown over the years and I continue to be thoroughly impressed by all of the people who continue to be so passionate about it. 26 00:01:39,480 --> 00:01:52,620 I served as the director there for about 13 years and finally decided it's time to let other people dump in their passion into the project so I have some room for some other things. 27 00:01:52,620 --> 00:01:56,240 I'm also founder and director of research for the Core Group. 28 00:01:56,240 --> 00:01:57,620 That is my consultancy. 29 00:01:57,620 --> 00:02:03,160 We specialize in penetration testing, reverse engineering and research just like about every other company here. 30 00:02:03,160 --> 00:02:04,860 So, not very exciting. 31 00:02:05,080 --> 00:02:07,320 Also co-founder of the Red Team Alliance. 32 00:02:07,520 --> 00:02:12,840 We specialize in physical security training and certifications and that's all I'll say about that. 33 00:02:12,840 --> 00:02:14,260 So let's jump right into it. 34 00:02:14,260 --> 00:02:16,600 Who has used an electronic door lock? 35 00:02:16,980 --> 00:02:17,980 Yes, that's right. 36 00:02:17,980 --> 00:02:22,140 When most people think of electronic door locks, this is what they think of. 37 00:02:34,960 --> 00:02:37,780 That's so easy. 38 00:02:38,720 --> 00:02:41,640 That's one of the main reasons why we use access control, right? 39 00:02:41,640 --> 00:02:43,000 It's easy for everyone. 40 00:02:43,100 --> 00:02:44,560 It's easy for the user. 41 00:02:44,620 --> 00:02:45,900 You get to pull out your card. 42 00:02:45,900 --> 00:02:46,940 You just wave it. 43 00:02:46,940 --> 00:02:48,840 Some magic happens and the door is open. 44 00:02:48,840 --> 00:02:49,360 It's great. 45 00:02:49,360 --> 00:02:52,600 From the administrative side, it's also pretty easy, right? 46 00:02:52,600 --> 00:02:54,800 If someone says, oh, no, I lost my card. 47 00:02:54,800 --> 00:02:55,360 No problem. 48 00:02:55,360 --> 00:02:56,560 Credential revoked. 49 00:02:56,760 --> 00:03:00,200 Someone decides they want to do something against company policy. 50 00:03:00,200 --> 00:03:01,160 They get terminated. 51 00:03:01,160 --> 00:03:02,060 Credential revoked. 52 00:03:02,060 --> 00:03:03,540 Very, very easy, right? 53 00:03:03,700 --> 00:03:05,620 You want to do time of day access. 54 00:03:05,620 --> 00:03:09,240 You want to only let someone in during the hours of 8 and 5. 55 00:03:09,240 --> 00:03:09,960 No problem. 56 00:03:09,960 --> 00:03:12,060 Just punch that into the access control system. 57 00:03:12,060 --> 00:03:13,460 It's all taken care of. 58 00:03:13,460 --> 00:03:14,780 Very, very easy. 59 00:03:14,840 --> 00:03:18,720 But ultimately, anything electronic, there's some feedback, isn't there? 60 00:03:18,800 --> 00:03:21,700 Is that bothering anyone else? 61 00:03:21,700 --> 00:03:23,420 I want to make sure you all are comfortable. 62 00:03:24,380 --> 00:03:24,940 Yeah? 63 00:03:25,440 --> 00:03:26,600 All right. 64 00:03:27,100 --> 00:03:34,220 I have to pick the right distance somewhere between like here, deeper. 65 00:03:34,220 --> 00:03:35,660 I've got to eat the ice cream. 66 00:03:36,820 --> 00:03:39,360 All right. 67 00:03:39,360 --> 00:03:40,660 We're going to do our best. 68 00:03:40,780 --> 00:03:45,720 So anytime you have something electronic meeting physical, there has to be an interconnect, right? 69 00:03:45,760 --> 00:03:50,440 Where the electronic world meets the physical world has to have an interface of some kind. 70 00:03:50,560 --> 00:03:55,220 And when it comes to modern access control, that comes in usually one of three different ways. 71 00:03:55,220 --> 00:03:57,040 So first you have this. 72 00:03:57,040 --> 00:03:57,540 What is this? 73 00:03:57,540 --> 00:03:59,080 What are we looking at in these photos? 74 00:03:59,080 --> 00:04:00,100 Can anyone tell me? 75 00:04:02,260 --> 00:04:03,220 Electrified strike. 76 00:04:03,220 --> 00:04:04,540 That is correct. 77 00:04:04,720 --> 00:04:07,720 So this would take place of the existing strike plate. 78 00:04:08,180 --> 00:04:10,000 And it's a little solenoid in there. 79 00:04:10,000 --> 00:04:18,780 Whenever you apply a voltage to it, it allows the little strike thing to swivel out of the way and you can just pull the door open without even turning the handle. 80 00:04:19,020 --> 00:04:20,060 What's this? 81 00:04:20,640 --> 00:04:21,680 Mag lock. 82 00:04:21,680 --> 00:04:22,860 Yes, magnetic lock. 83 00:04:22,860 --> 00:04:24,300 Two-piece construction. 84 00:04:24,460 --> 00:04:27,980 You have an electromagnet and the giant boxy thing on the right. 85 00:04:27,980 --> 00:04:30,640 You have a steel plate and the boxy thing on the left. 86 00:04:30,640 --> 00:04:34,240 And when you apply power, they stick together really, really, really well. 87 00:04:34,240 --> 00:04:35,880 That's also very, very popular. 88 00:04:36,180 --> 00:04:39,440 Third kind is an electrified lock set. 89 00:04:40,440 --> 00:04:43,000 This is an example of an electrified lock set. 90 00:04:43,000 --> 00:04:52,800 So this does not use an electrified strike or a magnetic lock plate, but rather has a solenoid hidden inside of the lock. 91 00:04:52,960 --> 00:04:57,200 And I used to have a photo of this, of a different lock. 92 00:04:57,200 --> 00:04:59,700 This was the official manufacturer's photo. 93 00:04:59,700 --> 00:05:01,880 Does this photo bother anyone else? 94 00:05:02,240 --> 00:05:03,520 No? 95 00:05:04,060 --> 00:05:07,440 What bothers you about this photo, sir? 96 00:05:07,760 --> 00:05:09,260 What's that? 97 00:05:09,260 --> 00:05:10,500 Well, there's a lock. 98 00:05:10,500 --> 00:05:11,160 Okay. 99 00:05:11,720 --> 00:05:17,580 Red and black wires really in general should never be designed to go right into each other. 100 00:05:17,580 --> 00:05:19,140 That just seems like bad design. 101 00:05:19,140 --> 00:05:21,120 But that is the official manufacturer's photo. 102 00:05:21,120 --> 00:05:37,600 But regardless of all of those things and all of these cases, what's happening is you have a source of power, whether that be a transformer, AC or otherwise, and a backup battery perhaps, if the crap has really hit the HVAC system, so to speak. 103 00:05:37,840 --> 00:05:45,480 And these are powering these secure entry and exit devices, whether they be mag locks or electrified strikes. 104 00:05:45,480 --> 00:05:51,960 The simplest form can be sometimes seen in your friendly neighborhood cheap discount jewelry store. 105 00:05:51,960 --> 00:06:03,820 If you have ever walked up to a store where the door is locked and you have to like knock on the glass or press a doorbell and someone like presses another button underneath the counter, that's not access control that we're talking about today. 106 00:06:03,960 --> 00:06:07,760 What we're talking about is something a little bit more common in enterprise. 107 00:06:07,780 --> 00:06:14,100 So this is a better example of what we're talking about in terms of physical access control systems today. 108 00:06:14,100 --> 00:06:15,840 What we're looking at is a door controller. 109 00:06:15,840 --> 00:06:17,840 What is a door controller, you may ask? 110 00:06:17,840 --> 00:06:23,020 A door controller is a fancy term for embedded Linux device with some relays on it. 111 00:06:23,020 --> 00:06:24,220 That's about it. 112 00:06:24,540 --> 00:06:31,340 So this door controller is actually what's in charge of all the logic that takes place in an access control system. 113 00:06:31,340 --> 00:06:44,400 Every time you use the door, every time you open a door, every time you close a door, every time you present a card to the reader, there is a signal or a series of signals of some kind that is monitored by the door controller and that's making decisions. 114 00:06:44,420 --> 00:06:47,500 The most common type of input into a door controller is what? 115 00:06:47,700 --> 00:06:48,960 Credentials, of course. 116 00:06:49,500 --> 00:06:57,800 So I'm going to go ahead in parts of this talk, I'm going to insult your intelligence a little bit, not literally, but I like to use analogies. 117 00:06:57,800 --> 00:07:02,660 I like to use analogies because it demystifies how opaque some of this technology is. 118 00:07:02,660 --> 00:07:06,940 I want to really break it down into the simple, simple building blocks. 119 00:07:06,940 --> 00:07:14,160 So if this seems overly simplistic, I hope that you're not too bothered by it, but I do know that for a lot of folks it helps kind of drive the point home. 120 00:07:14,160 --> 00:07:21,040 So we are going to, and I'm going to have trouble with this word, anthropomorphize. 121 00:07:21,220 --> 00:07:22,580 Someone help me out here. 122 00:07:23,500 --> 00:07:28,480 That, what these groups of people here just said, we're going to do that to the access control system. 123 00:07:29,040 --> 00:07:30,340 And here are our players. 124 00:07:30,340 --> 00:07:33,660 We have our RFID credential in the lower left there. 125 00:07:33,660 --> 00:07:34,840 His name is Alberto. 126 00:07:35,040 --> 00:07:37,860 And we have our RFID reader as a security guard. 127 00:07:38,020 --> 00:07:41,800 That executive manager person over there, that's the door controller panel. 128 00:07:41,800 --> 00:07:45,060 And of course our electrified strike is played by the door hardware. 129 00:07:45,060 --> 00:07:46,100 Pretty straightforward. 130 00:07:46,480 --> 00:07:54,560 So, basic idea, door, the card reader is always going to be interrogating the credential, whatever that credential is. 131 00:07:54,560 --> 00:07:57,840 It's going to be saying hi, who are you, over and over and over again. 132 00:07:57,960 --> 00:08:00,020 The credential is going to identify itself. 133 00:08:00,020 --> 00:08:05,080 It's going to supply a means of identification to the card reader. 134 00:08:05,200 --> 00:08:14,620 The card reader is going to interpret that response, convert it, and sanitize it into a format that the door controller can understand and send that information to the door controller. 135 00:08:14,860 --> 00:08:18,720 The door controller receives that response, processes some logic. 136 00:08:18,720 --> 00:08:20,420 It says, hey, I know who that person is. 137 00:08:20,420 --> 00:08:21,800 I know that card number. 138 00:08:21,800 --> 00:08:27,020 I'm going to go ahead and let that person in and I'm going to fire the electrified strike and that's going to let them in. 139 00:08:27,020 --> 00:08:28,640 Pretty straightforward, right? 140 00:08:28,780 --> 00:08:31,020 That's the whole system in a nutshell. 141 00:08:31,020 --> 00:08:35,980 So, credentials are one type of input that goes into an access control system. 142 00:08:36,120 --> 00:08:39,800 Of course, credentials, we're going to talk about them a little bit more in depth in a moment. 143 00:08:39,880 --> 00:08:41,500 They come in a couple different formats. 144 00:08:41,500 --> 00:08:50,620 They can be something you have, something you know, or in the case of biometric systems, something you are, such as fingerprint, iris, facial, all that stuff. 145 00:08:51,260 --> 00:08:55,800 These are all different forms of inputs that go into the door controller. 146 00:08:55,920 --> 00:08:58,160 There is another really common type of input. 147 00:08:58,160 --> 00:09:00,580 We're going to get that out of the way first. 148 00:09:00,680 --> 00:09:01,280 It's this. 149 00:09:01,280 --> 00:09:02,880 Who can tell me what this is? 150 00:09:03,240 --> 00:09:07,440 This is a REX, otherwise known as a request to exit sensor. 151 00:09:07,440 --> 00:09:10,680 This is the most common use of this type of sensor. 152 00:09:10,840 --> 00:09:17,340 It is basically a fancy name for a motion sensor and that also gets tied into the door controller. 153 00:09:17,340 --> 00:09:20,000 And there's a couple of different ways that a REX can be set up. 154 00:09:20,000 --> 00:09:26,560 The most common type of way, show of hands, who has ever walked through a secure door and as you approach the door, the door unlocks? 155 00:09:27,440 --> 00:09:28,000 Yep. 156 00:09:28,400 --> 00:09:30,280 So that's using a request to exit sensor. 157 00:09:30,280 --> 00:09:32,220 Here's the basic concept behind it. 158 00:09:32,360 --> 00:09:34,680 Here's a request to exit sensor right over here. 159 00:09:35,100 --> 00:09:38,280 So our credential comes, or user rather, comes along. 160 00:09:38,320 --> 00:09:40,300 The sensor says, hey, I see some motion. 161 00:09:40,300 --> 00:09:41,980 Someone is probably trying to leave. 162 00:09:42,540 --> 00:09:43,780 Let the door controller know. 163 00:09:43,780 --> 00:09:47,120 Door controller says, hey, there's motion on the secured side of the door. 164 00:09:47,120 --> 00:09:48,640 We're going to go ahead and let them out. 165 00:09:48,680 --> 00:09:49,860 Fire the electric strike. 166 00:09:49,860 --> 00:09:50,960 They can exit. 167 00:09:50,960 --> 00:09:51,920 Easy peasy. 168 00:09:51,940 --> 00:09:53,060 Now here's the thing. 169 00:09:53,060 --> 00:09:55,860 This guy doesn't have a great vision plan. 170 00:09:55,860 --> 00:09:57,180 He can't see very well. 171 00:09:57,180 --> 00:10:00,020 So as a result, you can kind of trick him sometimes. 172 00:10:00,240 --> 00:10:06,120 And a lot of folks have probably seen this, but I want to show it to those who haven't just again to drive the point home. 173 00:10:06,120 --> 00:10:09,840 Here's a couple of examples of how you can do that and how you can mess with that. 174 00:10:16,420 --> 00:10:18,040 So what did we just see happen? 175 00:10:18,040 --> 00:10:26,820 We were standing on the secured side of the door and our friendly neighborhood doctor Tran himself used not a credential. 176 00:10:26,820 --> 00:10:28,540 What did he use instead to enter? 177 00:10:29,140 --> 00:10:30,140 Can of air. 178 00:10:30,140 --> 00:10:31,020 That's right. 179 00:10:31,020 --> 00:10:36,260 So he's turning that upside down, spraying it through the gap in the door and magically the door opens. 180 00:10:36,260 --> 00:10:37,440 Here's another example. 181 00:10:37,440 --> 00:10:38,940 Research lab in Philly. 182 00:10:39,080 --> 00:10:45,640 I'm showing my colleague how this works and trying to teach him building owners to standing behind us. 183 00:10:45,760 --> 00:10:48,320 And initially he's using it wrong. 184 00:10:48,360 --> 00:10:50,540 And so I have to correct him a little bit. 185 00:10:50,540 --> 00:10:53,700 And notice we're not interacting with the card reader on the right at all. 186 00:10:53,700 --> 00:11:03,620 We're just interacting with the gap in between to get into that particular lab and he's going to go ahead and spray that, turn that upside down and doors open. 187 00:11:03,800 --> 00:11:05,340 Well, why does that work? 188 00:11:05,340 --> 00:11:06,560 That's really dumb. 189 00:11:06,940 --> 00:11:09,460 Like this shouldn't be a thing, right? 190 00:11:10,400 --> 00:11:13,660 And it works all the time. 191 00:11:13,660 --> 00:11:17,500 You can do this in a couple of different ways and we're not going to go in depth into all of them. 192 00:11:17,500 --> 00:11:22,200 But basically the most common type of the sensor is called a PIR sensor. 193 00:11:22,200 --> 00:11:23,820 Anyone know what PIR stands for? 194 00:11:24,600 --> 00:11:25,900 Yes, that's right. 195 00:11:25,900 --> 00:11:27,100 Passive infrared. 196 00:11:27,100 --> 00:11:30,220 Infrared is really good at detecting a change in what? 197 00:11:30,960 --> 00:11:31,920 Heat. 198 00:11:32,000 --> 00:11:32,720 Right. 199 00:11:32,840 --> 00:11:35,080 So heat is a 2D heat map, right? 200 00:11:35,080 --> 00:11:37,340 So they're very good at detecting change in heat. 201 00:11:37,340 --> 00:11:47,140 Now the problem with that is if you folks in the audience saw the sensor and I take one step back or one step forward, has the 2D heat map that you can see change in an appreciable way? 202 00:11:47,580 --> 00:11:48,760 No, not really. 203 00:11:48,760 --> 00:11:50,180 I got to do this, right? 204 00:11:50,280 --> 00:11:59,580 So as a result, in order to prevent users from running smack into the door, they have to turn the sensitivity up really, really high so people can get in really, really easily, right? 205 00:11:59,600 --> 00:12:01,520 Because you don't want angry users. 206 00:12:01,760 --> 00:12:04,220 So as a result, they're very, very easy to manipulate. 207 00:12:04,580 --> 00:12:07,280 There's another type of sensor we're not going to get into really much. 208 00:12:07,280 --> 00:12:11,060 It's called RCR or range controlled radar, also known as microwave. 209 00:12:11,060 --> 00:12:12,600 That detects change in distance. 210 00:12:12,600 --> 00:12:15,740 It's very good in this forward and backward direction. 211 00:12:15,740 --> 00:12:18,300 Not quite as good as the side to side. 212 00:12:18,300 --> 00:12:28,520 And so these RCR sensors are usually dual technology sensors that incorporate both infrared and microwave and you have to activate both in order for it to fire usually. 213 00:12:28,520 --> 00:12:30,040 You'll see these all over the place. 214 00:12:30,040 --> 00:12:34,580 They'll be mounted above door frames, on the side of door frames. 215 00:12:34,580 --> 00:12:37,520 Sometimes you'll see them like in really, really high up places. 216 00:12:37,520 --> 00:12:40,220 Like take a look at where the sensor is here. 217 00:12:40,220 --> 00:12:42,700 It's all the way up top in this corner. 218 00:12:43,180 --> 00:12:49,180 And because you have this huge, wide hallway, we don't actually have to be very close to it in order to trigger it. 219 00:12:50,460 --> 00:12:53,220 Now, you don't have to use CanDare. 220 00:12:54,320 --> 00:12:56,660 Here's our colleague Dave Kennedy. 221 00:12:57,240 --> 00:13:03,680 And what he's going to do is he's just going to use his fancy physical security compromise tool in his hand. 222 00:13:03,680 --> 00:13:04,600 What is that? 223 00:13:05,000 --> 00:13:06,200 Yeah, it's a vape. 224 00:13:06,200 --> 00:13:07,340 Pretty straightforward. 225 00:13:07,460 --> 00:13:09,060 And it's our favorite door. 226 00:13:09,460 --> 00:13:11,460 And he's just going to blow right through. 227 00:13:11,460 --> 00:13:12,880 It's not going to work the first time. 228 00:13:12,880 --> 00:13:14,540 So he's going to give it another shot. 229 00:13:15,560 --> 00:13:20,800 And on the second draw, that vapor is just hot enough and warm enough to go ahead and activate that door. 230 00:13:20,920 --> 00:13:22,040 And we're in. 231 00:13:22,120 --> 00:13:25,280 Of course, if you don't vape, maybe you like whiskey, right? 232 00:13:25,880 --> 00:13:31,140 Here's my business partner, Deviant, out on a night on a town. 233 00:13:31,140 --> 00:13:33,560 And he's looking at this ATM lobby. 234 00:13:33,560 --> 00:13:35,820 And he's like, hmm, I don't feel like using my card. 235 00:13:35,820 --> 00:13:37,480 I'm just going to go ahead and do that. 236 00:13:37,540 --> 00:13:39,100 And the door will pop open. 237 00:13:39,680 --> 00:13:44,720 And again, you can use a lot of different varieties of substances to do this. 238 00:13:44,720 --> 00:13:49,160 But this is just one type of input in a access control system. 239 00:13:49,280 --> 00:13:53,340 So there's a couple of things that we need to consider when looking at an access control system. 240 00:13:53,340 --> 00:13:54,700 We have our credentials. 241 00:13:54,860 --> 00:13:56,720 And they can come in a variety of different formats. 242 00:13:56,720 --> 00:13:58,160 We're going to talk about that. 243 00:13:58,260 --> 00:14:00,280 We have our readers . 244 00:14:00,280 --> 00:14:03,420 They can also come in a variety of different architectures and formats. 245 00:14:03,420 --> 00:14:05,020 We'll talk about that as well. 246 00:14:05,160 --> 00:14:09,600 We have our door hardware, whether they be mag lock or electrified strike. 247 00:14:09,680 --> 00:14:13,420 We have our motion sensors and door contacts. 248 00:14:13,420 --> 00:14:15,720 We will talk about door contacts in a bit. 249 00:14:15,740 --> 00:14:20,240 We have our door controller, which all this is connected to that makes the logical decision. 250 00:14:20,300 --> 00:14:28,640 And of course we have our administrative software that door controller has to know which users are allowed to get in and which users are not. 251 00:14:28,640 --> 00:14:31,940 All of this is one happy family, right? 252 00:14:31,940 --> 00:14:33,340 Hmm, kind of. 253 00:14:34,260 --> 00:14:37,460 So each one of these links speaks a different language. 254 00:14:37,580 --> 00:14:41,900 And that creates some really fun security situations as we will find out. 255 00:14:41,920 --> 00:14:48,800 So when most people talk about RFID, what they're actually talking about is only that first link, right? 256 00:14:48,860 --> 00:14:53,000 When most people think of RFID, they're actually thinking of the whole system, right? 257 00:14:53,000 --> 00:14:54,800 They're like, oh, that whole thing is RFID. 258 00:14:54,800 --> 00:14:55,600 No. 259 00:14:55,760 --> 00:14:56,740 False. 260 00:14:56,940 --> 00:15:00,060 Only that very first link is RFID. 261 00:15:00,060 --> 00:15:04,000 Like I said, RFID is the very tip of the access control iceberg. 262 00:15:04,120 --> 00:15:10,000 So whether you have Prox, MyFair, iClass, MagStripe, who's a what's it, biometric, doesn't matter. 263 00:15:10,000 --> 00:15:12,900 It's still all only talking about that first link. 264 00:15:12,900 --> 00:15:14,520 So let's talk about that first link. 265 00:15:14,520 --> 00:15:17,520 Let's learn a little bit of the history of access control. 266 00:15:18,340 --> 00:15:20,000 Who's heard of WeGand? 267 00:15:20,620 --> 00:15:21,620 Yeah. 268 00:15:21,880 --> 00:15:23,600 Who knew WeGand was a person? 269 00:15:24,240 --> 00:15:25,280 A couple people. 270 00:15:25,280 --> 00:15:26,120 Impressive. 271 00:15:26,260 --> 00:15:34,380 So let's learn about John Richard WeGand, a very badass OG German hacker born in 1912. 272 00:15:34,440 --> 00:15:35,960 Immigrated to the U.S. 273 00:15:36,020 --> 00:15:39,220 to study choral conducting at Juilliard, right? 274 00:15:39,220 --> 00:15:40,560 Huge music nerd. 275 00:15:41,080 --> 00:15:45,300 And while he was there, you know, in order to reproduce music, you have to use what? 276 00:15:45,640 --> 00:15:46,520 Speakers, right? 277 00:15:46,520 --> 00:15:51,240 So he became really interested in audio amplifiers and through that electromagnetics. 278 00:15:51,240 --> 00:15:53,840 And he went through a couple of different really interesting jobs. 279 00:15:53,840 --> 00:15:56,240 He, for a while, made tape recorders for the U.S. 280 00:15:56,240 --> 00:15:58,140 government and stuff like that. 281 00:15:58,140 --> 00:16:04,180 And eventually he became so interested in electromagnetics that he made some really interesting discoveries. 282 00:16:04,420 --> 00:16:06,740 He came up with something called WeGand wire. 283 00:16:07,320 --> 00:16:09,980 Originally patented 1974. 284 00:16:09,980 --> 00:16:10,960 Very old technology. 285 00:16:10,960 --> 00:16:12,560 You can look up the patents yourself. 286 00:16:12,560 --> 00:16:14,160 It's really, really cool stuff. 287 00:16:14,400 --> 00:16:20,220 To put it bluntly, it is a little piece of wire with a soft inner core and a hard outer shell. 288 00:16:20,220 --> 00:16:21,820 Now that may not make any sense. 289 00:16:21,820 --> 00:16:24,960 You might be thinking, Bobik, metal is hard. 290 00:16:24,960 --> 00:16:25,720 What are you talking about? 291 00:16:25,720 --> 00:16:26,320 Soft metal. 292 00:16:26,320 --> 00:16:27,660 That doesn't make any sense. 293 00:16:27,860 --> 00:16:30,320 Well, what we're talking about is relatively speaking, right? 294 00:16:30,320 --> 00:16:36,160 So if you ever take a paper clip and you bend it back and forth, what happens to the material right before it breaks? 295 00:16:37,020 --> 00:16:38,140 Yeah, work hardening. 296 00:16:38,140 --> 00:16:39,620 It gets brittle, right? 297 00:16:39,960 --> 00:16:43,260 Its characteristics, its physical characteristics change. 298 00:16:43,260 --> 00:16:52,600 And you can twist wire and you can do interesting things to it such that the outer shell, the outer layers of the wire become more hard and more brittle than the inner layers. 299 00:16:52,600 --> 00:16:56,520 And when you do that to certain iron alloys, really interesting things happen. 300 00:16:56,520 --> 00:16:58,960 We don't have to get into the science really, really deeply. 301 00:16:58,960 --> 00:17:12,600 However, weekend wire is literally pieces of wire embedded in a plastic card, drum or encoder of some kind that passes by two permanent magnets with a sense coil in between. 302 00:17:12,600 --> 00:17:17,180 And as it passes in between, some really cool stuff happens inside the wire. 303 00:17:17,180 --> 00:17:38,760 Basically the outer core of the outer surface of the wire magnetizes first, then the inner core magnetizes and as you pass the wire past the second magnet, the inner polarity, the magnetic polarity of the inner core flips and that flip is actually detected as an electromagnetic pulse by the sense coil. 304 00:17:38,900 --> 00:17:41,500 And that's actually how original systems worked. 305 00:17:41,500 --> 00:17:46,320 This is an example of an original weekend card, okay? 306 00:17:46,320 --> 00:17:53,360 So the original access control cards, when access control, modern access control was first invented, were not proximity. 307 00:17:53,360 --> 00:17:55,480 They were swipe cards, not mag stripe. 308 00:17:55,480 --> 00:17:56,960 We'll talk about that in a moment. 309 00:17:56,960 --> 00:17:59,620 And they literally had two rows of wires. 310 00:17:59,720 --> 00:18:03,400 The wires physically represented the zero bits and the one bits. 311 00:18:03,400 --> 00:18:13,020 So as you slid this card through the reader, they would pass over two different read heads and those wires would physically produce little blips on the line, right? 312 00:18:13,020 --> 00:18:19,600 So here we have 26 wires in the card and as you slide that through the reader, there's a data zero and data one line. 313 00:18:19,600 --> 00:18:33,020 It's a five volt signaling protocol and every time a little wire passes by the sensor, one of those signal lines is shorted to ground for a very short amount of time and a signal is sent down the wire representing zero or one. 314 00:18:33,020 --> 00:18:36,140 This became very, very, very popular. 315 00:18:36,420 --> 00:18:38,140 So it was invented in 74. 316 00:18:38,420 --> 00:18:42,380 By the 80s, it was considered leading edge, best of the best. 317 00:18:42,580 --> 00:18:45,780 And by the mid 90s, this thing was everywhere. 318 00:18:45,780 --> 00:18:46,780 It was widespread. 319 00:18:46,780 --> 00:18:48,000 Everyone was using it. 320 00:18:48,000 --> 00:18:49,300 I mean everyone. 321 00:18:49,300 --> 00:19:00,300 To such an extent that by 1996, SIA, the security industry association adopted it as the official standard communication protocol for card readers and door controllers. 322 00:19:00,620 --> 00:19:04,380 And everyone began to use it to make things backwards compatible. 323 00:19:04,380 --> 00:19:09,700 So I want to show you an example of what weekend wire looks like because it's not something you get to see very, very often. 324 00:19:09,840 --> 00:19:12,900 And we're going to place this here. 325 00:19:14,400 --> 00:19:17,000 And let's see if we can get our camera working. 326 00:19:18,440 --> 00:19:22,140 We'll do... there we are. 327 00:19:22,140 --> 00:19:23,460 We'll do this. 328 00:19:24,020 --> 00:19:28,660 And we'll flip over to duplicate mode. 329 00:19:30,720 --> 00:19:32,120 All right. 330 00:19:32,700 --> 00:19:38,780 So what we have here is just a neat little demo tool that we've created. 331 00:19:47,630 --> 00:19:48,470 All right. 332 00:19:48,470 --> 00:19:52,890 This is an original weekend swipe card reader. 333 00:19:54,030 --> 00:19:57,170 And we have a weekend card. 334 00:19:57,170 --> 00:20:04,890 Now, for those of you that can't see, you'll notice that as I tilt it, you can actually see physically something embedded in the card. 335 00:20:05,190 --> 00:20:08,070 And what I'm going to do is I'm actually going to shine a flashlight through the bottom. 336 00:20:08,070 --> 00:20:11,710 You'll actually be able to see the physical zero bits and one bits. 337 00:20:29,340 --> 00:20:34,940 So you can actually see as we move the flashlight, there's literally wires embedded in the card. 338 00:20:35,160 --> 00:20:39,680 And that's actually what's going to be detected by the reader as I swipe this through. 339 00:20:39,680 --> 00:20:41,240 So we're going to go ahead and try that. 340 00:20:45,000 --> 00:20:46,080 And that's it. 341 00:20:46,080 --> 00:20:48,660 And so this screen here is a little decoder. 342 00:20:48,660 --> 00:20:55,180 It's going to take that, those little blips of weekend data and it's going to try to decode it in a number of different human readable formats. 343 00:20:55,440 --> 00:20:56,940 Now, here's what's interesting. 344 00:20:56,940 --> 00:20:59,440 We're going to talk about this a little bit later in the presentation. 345 00:20:59,860 --> 00:21:05,520 Notice how there's 36 bits, but there's a number of different ways to decode them. 346 00:21:05,520 --> 00:21:08,340 There are different facility codes and card numbers. 347 00:21:08,420 --> 00:21:12,280 And these are all just different ways of decoding the same physical data. 348 00:21:12,340 --> 00:21:18,640 So we're in a little bit going to talk about bit formats and how it's kind of a nightmare when it comes to access control. 349 00:21:18,640 --> 00:21:22,800 And that's a very important thing to understand about weekend cards. 350 00:21:23,180 --> 00:21:26,260 So we'll go ahead and minimize that. 351 00:21:26,340 --> 00:21:30,300 And let's talk about another old technology because context is really, really important. 352 00:21:30,300 --> 00:21:32,220 You might be thinking, man, we're in wireless village. 353 00:21:32,220 --> 00:21:33,840 Why are we talking about weekend? 354 00:21:34,040 --> 00:21:37,240 Because you got to know where you came from before you know where you're going, right? 355 00:21:37,260 --> 00:21:40,900 So let's take a look at a magnetic stripe card. 356 00:21:42,040 --> 00:21:44,000 One of these guys here, right? 357 00:21:44,340 --> 00:21:46,880 So we'll again switch back to our camera. 358 00:21:47,740 --> 00:21:49,120 Here's our mag stripe card. 359 00:21:49,120 --> 00:21:51,380 We'll go ahead and pop that into focus. 360 00:21:51,500 --> 00:21:54,940 Increase our exposure so we can actually see what we're doing. 361 00:21:55,580 --> 00:21:56,640 All right. 362 00:21:57,180 --> 00:22:01,320 So mag stripe, I like to think of it as fancy bar code. 363 00:22:01,320 --> 00:22:02,120 Not literally. 364 00:22:02,120 --> 00:22:04,700 It's not quite the same encoding, but it is close. 365 00:22:04,740 --> 00:22:07,320 What I'm going to use is pretty cool stuff. 366 00:22:07,320 --> 00:22:08,680 It's really, really basic, actually. 367 00:22:08,680 --> 00:22:17,040 This is magnetic developer, which is just a fancy way of saying really fast evaporating solvent with really, really tiny particles of iron in it. 368 00:22:17,040 --> 00:22:25,040 And I'm going to drip this on the card and you're going to again see the physical representation of that credential data encoded on the card. 369 00:22:58,500 --> 00:23:10,600 That is not my favorite example, but you can actually see on the left-hand side especially, you can see where that strip has been magnetized and where those iron particles are sticking. 370 00:23:11,400 --> 00:23:16,700 Again, these are all just different ways of physically encoding logical data, right? 371 00:23:16,700 --> 00:23:22,760 So if you have a card number, say 1, 2, 3, 4, 5, 6, there are different ways you can encode it, right? 372 00:23:22,760 --> 00:23:24,300 We can use weekend wire. 373 00:23:24,340 --> 00:23:25,540 We can use mag stripe. 374 00:23:25,540 --> 00:23:26,960 We can use a bar code. 375 00:23:26,960 --> 00:23:28,420 We can use a QR code. 376 00:23:28,420 --> 00:23:29,460 We can use a key pad. 377 00:23:29,460 --> 00:23:34,840 These are all just different ways of physically ‑‑ man, sorry, guys. 378 00:23:35,340 --> 00:23:38,540 These are all different ways of physically encoding the same data. 379 00:23:39,820 --> 00:23:47,800 And this is what we need to keep in mind when we talk about RFID and access control is ‑‑ let's go back here. 380 00:23:47,800 --> 00:23:48,860 There we go. 381 00:23:53,100 --> 00:23:58,960 These are all just different ways of saving different types of data on a physical card. 382 00:23:58,980 --> 00:24:01,100 How many different ways are there to save data? 383 00:24:01,100 --> 00:24:02,180 A lot. 384 00:24:02,180 --> 00:24:09,780 This is a really, really awesome website that one of the Proxmark developers created, cardinfo.barkweb.com.au. 385 00:24:10,200 --> 00:24:15,040 And just to show you what it looks like briefly, I wonder if I can zoom in. 386 00:24:15,040 --> 00:24:16,000 Let's see. 387 00:24:16,120 --> 00:24:17,340 There we go. 388 00:24:18,760 --> 00:24:24,660 So this is just 70, and this is not all inclusive. 389 00:24:24,660 --> 00:24:27,280 This is just 70 different card formats. 390 00:24:27,280 --> 00:24:29,240 These are weekend bit formats. 391 00:24:29,340 --> 00:24:38,960 And if you look, there's a lot of these that are the same number of bits long, and they all represent different ways of encoding the same data, right? 392 00:24:38,960 --> 00:24:41,440 So, for example, I just clicked on a random one. 393 00:24:41,440 --> 00:24:43,840 This is ATS weekend 32‑bit. 394 00:24:43,840 --> 00:24:45,540 This is 32 bits of data. 395 00:24:45,540 --> 00:24:59,380 And they're saying when used with an ATS system, we're going to use the first 12 bits as the site code or facility code, and then we have a card number, and then we have some parity bits as well. 396 00:24:59,380 --> 00:25:17,520 And, again, we are not going to be dealing with that a whole lot, but what's important to understand is these are the physical bits that are encoded on the card, and the card number is just how that particular vendor decides to decode that weekend information and is something human readable, 397 00:25:17,520 --> 00:25:18,120 right? 398 00:25:18,120 --> 00:25:29,400 Because a sysadmin or physical security person, they're not going to be sitting there typing in 47, 50, however many ones and zeros for each user to encode their credential, right? 399 00:25:29,400 --> 00:25:37,860 They want to just encode card number 4256 or card 555137, and they want to be done with it. 400 00:25:37,860 --> 00:25:48,080 So these are just different ways of representing that raw data as something that we can more easily and colloquially understand as we use our access control system. 401 00:25:48,620 --> 00:25:51,240 So let's take a look at a modern credential, right? 402 00:25:51,240 --> 00:25:58,580 So things ‑‑ that system became really, really popular, and they said, hey, this weekend stuff is awesome, but we have something new for you, right? 403 00:25:58,580 --> 00:26:09,820 So we've got this new awesome card reader, it's a prox reader, it's a whatever reader, and the best part about all this is, is you don't have to rip and replace your existing system. 404 00:26:09,820 --> 00:26:12,680 You can take it, and it's backwards compatible. 405 00:26:12,680 --> 00:26:19,940 You can keep your same door controller, and all you have to do is replace your card readers and your cards, and it just works. 406 00:26:19,940 --> 00:26:21,180 Isn't that wonderful? 407 00:26:21,740 --> 00:26:22,580 Yeah. 408 00:26:22,580 --> 00:26:23,640 It is and it isn't, right? 409 00:26:23,640 --> 00:26:33,700 Saves you a lot of money, but it means that even today in 2019, we're still using a communication standard developed in 1974 for transporting credential data. 410 00:26:33,700 --> 00:26:35,320 How awesome does that sound? 411 00:26:35,640 --> 00:26:36,120 Yeah. 412 00:26:36,120 --> 00:26:37,280 Really great. 413 00:26:37,820 --> 00:26:40,660 So let's see how things changed over time. 414 00:26:40,660 --> 00:26:42,760 So again, we're still just dealing with card numbers. 415 00:26:42,760 --> 00:26:48,180 We're still just dealing with different ways of physically encoding that credential data. 416 00:26:48,180 --> 00:26:51,120 Let's look inside of an RFID tag, right? 417 00:26:51,120 --> 00:26:52,940 What's inside of an RFID card? 418 00:26:52,940 --> 00:27:00,980 It's literally a chip and an antenna, and we are going to zoom in and focus here. 419 00:27:05,070 --> 00:27:06,210 All right. 420 00:27:06,210 --> 00:27:07,170 So here we are. 421 00:27:07,170 --> 00:27:13,090 These are two different credentials actually physically placed into the same piece of plastic. 422 00:27:13,090 --> 00:27:17,290 So we have a low frequency traditional prox credential. 423 00:27:17,290 --> 00:27:21,210 That is actually the thicker antenna in the middle. 424 00:27:21,510 --> 00:27:26,990 And then we have a high frequency, high freak, 13.56 megahertz credential. 425 00:27:26,990 --> 00:27:28,470 It happens to be I class. 426 00:27:28,470 --> 00:27:31,850 That's actually the thinner antenna around the outside. 427 00:27:31,850 --> 00:27:43,890 Generally speaking, you're going to find that low frequency readers and cards are going to use more turns, more loops of wire, and the higher frequency uses a shorter piece of wire. 428 00:27:43,890 --> 00:27:45,850 So fewer turns of wire. 429 00:27:45,850 --> 00:28:02,110 So one of the easiest ways to tell if something is low frequency or high frequency is literally just to shine a flashlight through it and see if the antenna looks like it's low frequency or high frequency without even having to connect it to your prox mark or anything like that. 430 00:28:08,480 --> 00:28:15,280 So when we talk about prox, as I mentioned, we are talking about credential to reader communication. 431 00:28:15,820 --> 00:28:18,540 So there are different types of credential readers. 432 00:28:18,540 --> 00:28:21,600 They represent different types of technologies. 433 00:28:21,640 --> 00:28:27,900 Here in North America, we have a couple of really, really popular low frequency and high frequency credentials. 434 00:28:27,940 --> 00:28:33,680 On the low frequency side, we have prox and DALA, IOPROX, EM and AWID. 435 00:28:33,680 --> 00:28:36,820 Those are less popular, but they are still here in North America and Europe. 436 00:28:36,820 --> 00:28:39,300 They have a lot of other credentials that they like to use. 437 00:28:39,400 --> 00:28:48,300 On the high frequency side, we have some other common brand names, HID I class and NXP My Fair and stuff like that. 438 00:28:49,000 --> 00:28:51,180 And we already talked about this, right? 439 00:28:51,180 --> 00:28:52,640 What's happening here? 440 00:28:52,640 --> 00:29:00,800 Well, when we talk about cloning a credential, what we're doing is we've basically learned the language that the card and the card reader are speaking. 441 00:29:01,060 --> 00:29:04,120 And so what we do is we pretend to be a card reader, right? 442 00:29:04,140 --> 00:29:11,460 So we go and we talk to the credential and we say the same thing the card reader says to it and says, hi, who are you? 443 00:29:11,520 --> 00:29:14,940 The credential identifies itself and now we have that information. 444 00:29:15,120 --> 00:29:27,040 And as long as we can produce it in the same way and reproduce that signal for the reader on demand, then the reader has no way to discriminate between an original and a clone, right? 445 00:29:27,040 --> 00:29:31,080 So we approach the reader, we present our credential, we can say the same thing. 446 00:29:31,080 --> 00:29:33,300 It's kind of like a replay attack basically, right? 447 00:29:33,300 --> 00:29:34,580 That's what a clone is. 448 00:29:34,580 --> 00:29:39,740 A clone is a delayed replay attack and everything works as you would expect it to. 449 00:29:39,740 --> 00:29:43,680 The most common type of tool that we use today to do this is the Proxmark 3. 450 00:29:43,700 --> 00:29:44,560 That's not this. 451 00:29:44,560 --> 00:29:46,020 This is the original Proxmark. 452 00:29:46,020 --> 00:29:47,820 It's gone through a couple of iterations. 453 00:29:47,880 --> 00:30:03,360 Originally designed by a student named Jonathan Westhues back in 2006, really 2004 and then he kept developing it, made the Proxmark 2, made the Proxmark 3, open sourced it and then people had this wonderful contraption to drag around with them. 454 00:30:03,620 --> 00:30:07,860 Here's mine with the hand-wound antenna that I had to make to make it work. 455 00:30:08,260 --> 00:30:10,940 And then eventually it was remixed a couple of different ways. 456 00:30:10,940 --> 00:30:17,520 If anyone saw Iceman's talk yesterday morning, he actually went really in depth into all the different hardware revisions that have been out there. 457 00:30:17,520 --> 00:30:21,340 But we have the Proxmark 2 and it had some really good antennas. 458 00:30:21,340 --> 00:30:23,840 Then there was a Proxmark 3 RDV3. 459 00:30:23,840 --> 00:30:30,800 Then now we have the current, in my opinion, best iteration, which is the Proxmark 3 RDV4. 460 00:30:30,800 --> 00:30:38,940 This is the same base hardware remixed to be more stable, more efficient in its use of physical space. 461 00:30:38,940 --> 00:30:40,520 So it's very, very compact. 462 00:30:40,620 --> 00:30:47,260 The antennas are really beautifully built into it and it's really just a delightful , wonderful package. 463 00:30:47,260 --> 00:30:54,320 So that was co-developed by Iceman and Proxgrind of the RFID research group. 464 00:30:54,380 --> 00:30:56,300 You can buy them at Hacker Warehouse. 465 00:30:56,300 --> 00:30:57,580 They're really, really awesome. 466 00:30:58,020 --> 00:31:01,080 So yes, you can use a Proxmark like this. 467 00:31:01,080 --> 00:31:02,820 You can use it in simulate mode. 468 00:31:02,820 --> 00:31:08,340 Here's one of my original Proxmark 3s way back in the day and I can do that. 469 00:31:08,380 --> 00:31:12,320 And that's really, really great, but that's not very practical, is it? 470 00:31:12,320 --> 00:31:21,400 So let's take a look at an example of what cloning a low frequency credential looks like just so folks can see what I'm talking about. 471 00:31:21,560 --> 00:31:25,860 So what we have here is we're going to connect our Proxmark 3. 472 00:31:26,180 --> 00:31:28,200 We have some credentials. 473 00:31:28,280 --> 00:31:32,560 Once I find the little plastic bag where the credentials are. 474 00:31:35,300 --> 00:31:36,480 Let's see. 475 00:31:41,130 --> 00:31:42,430 Here we are. 476 00:31:50,860 --> 00:31:51,580 All right. 477 00:31:51,580 --> 00:31:53,020 So we have our credential. 478 00:31:53,160 --> 00:32:03,080 And just to show you folks what we have here, this is a simulated access control system very similar to that more beautiful one and larger one that you see in the case over there. 479 00:32:03,080 --> 00:32:05,020 So we have two card readers. 480 00:32:05,080 --> 00:32:13,120 We have a real live genuine door controller making all of our decisions with some credentials cached and programmed into it. 481 00:32:13,120 --> 00:32:18,080 And of course, what demo is complete without very pretty, pretty lights, right? 482 00:32:18,080 --> 00:32:19,440 So we have those two. 483 00:32:22,830 --> 00:32:24,030 I mean, it looks pretty good, right? 484 00:32:24,030 --> 00:32:24,990 It's not bad. 485 00:32:25,690 --> 00:32:27,590 So let's take a look. 486 00:32:32,340 --> 00:32:34,640 And we have our Proxmark 3. 487 00:32:34,640 --> 00:32:36,920 We have our credential, right? 488 00:32:36,940 --> 00:32:40,280 We have our baggage handler that we're going to target. 489 00:32:40,880 --> 00:32:45,600 And at the moment, this credential will go ahead and open that door. 490 00:32:45,600 --> 00:32:47,580 Ooh, ah, right? 491 00:32:48,120 --> 00:32:53,820 If you want to make a door controller go or a door rather and card reader go green, you too can do that. 492 00:32:53,820 --> 00:33:00,980 We're running a CTF right now where you too can try your hand at cloning some credentials and seeing how many points you can accrue. 493 00:33:01,180 --> 00:33:02,600 So we have our Proxmark 3. 494 00:33:02,600 --> 00:33:04,820 We have our credential, but that's not enough. 495 00:33:04,820 --> 00:33:06,320 We also need to run our client. 496 00:33:06,540 --> 00:33:12,860 So I'm going to very awkwardly try to do that while using this microphone. 497 00:33:17,370 --> 00:33:18,290 All right. 498 00:33:18,510 --> 00:33:21,350 And if I don't move, it will work. 499 00:33:22,190 --> 00:33:24,590 So we have our Proxmark 3 client. 500 00:33:24,610 --> 00:33:27,010 This talk is not about how to use Proxmark 3. 501 00:33:27,010 --> 00:33:28,390 So we're going to go pretty quick. 502 00:33:28,550 --> 00:33:30,990 I'm going to use a command called LF search. 503 00:33:31,350 --> 00:33:34,750 And actually, I'll make it a little bit easier for you folks to see what I'm doing. 504 00:33:34,750 --> 00:33:37,730 I'm going to go ahead and bump that font size up to 20. 505 00:33:37,730 --> 00:33:39,670 And hopefully that will be less awful. 506 00:33:39,670 --> 00:33:40,770 Is that less awful? 507 00:33:41,230 --> 00:33:41,730 Yeah? 508 00:33:41,730 --> 00:33:42,010 Okay. 509 00:33:42,010 --> 00:33:42,830 I'm seeing some nodding. 510 00:33:42,830 --> 00:33:43,550 That's good. 511 00:33:43,730 --> 00:33:45,090 So we'll do LF search. 512 00:33:45,090 --> 00:33:46,970 And oh, my goodness , we found a Prox tag. 513 00:33:47,150 --> 00:33:47,770 Yay. 514 00:33:47,970 --> 00:33:51,310 And what we can do is we can just go ahead and grab that raw data. 515 00:33:51,430 --> 00:33:58,490 And we can use a different command called LF HID sim and that. 516 00:33:58,810 --> 00:34:03,270 And in theory, if all went well, there we go. 517 00:34:03,270 --> 00:34:03,830 Green. 518 00:34:04,490 --> 00:34:07,870 But that's not ‑‑ it's really easy. 519 00:34:07,870 --> 00:34:08,570 Trust me. 520 00:34:08,990 --> 00:34:11,950 I know you want to clap because that's the polite thing to do. 521 00:34:11,950 --> 00:34:14,650 But I'm sitting up here going, no, don't clap for that. 522 00:34:15,350 --> 00:34:16,350 But thank you. 523 00:34:16,710 --> 00:34:21,710 So let's talk about something a little bit more practical than that. 524 00:34:22,570 --> 00:34:23,570 Let's see here. 525 00:34:23,570 --> 00:34:25,270 Oh, that is the wrong presentation. 526 00:34:25,270 --> 00:34:28,370 You will see that at the end if we have time. 527 00:34:28,870 --> 00:34:30,370 We'll go back here. 528 00:34:31,670 --> 00:34:32,950 And we'll jump back. 529 00:34:32,950 --> 00:34:36,570 So we saw how we can clone a credential just by simulating it. 530 00:34:36,730 --> 00:34:40,110 And there are a lot of different credentials out there. 531 00:34:40,110 --> 00:34:42,070 We have Prox by HID. 532 00:34:42,430 --> 00:34:45,350 Sometimes their cards are labeled really, really obviously. 533 00:34:45,570 --> 00:34:47,170 Sometimes less so. 534 00:34:47,170 --> 00:34:51,130 Their readers are really, really easy to recognize if they're original readers. 535 00:34:51,130 --> 00:34:54,690 Although there are a lot of third parties that also make readers. 536 00:34:54,930 --> 00:34:58,030 There's another brand that they sell called Indala. 537 00:34:58,030 --> 00:35:03,090 Those are different credentials, different ways of encoding that same card number data. 538 00:35:03,130 --> 00:35:05,270 And of course their readers also look different. 539 00:35:05,270 --> 00:35:06,890 They look very cool in my opinion. 540 00:35:06,890 --> 00:35:09,690 They have that fun little four lights. 541 00:35:09,690 --> 00:35:25,450 And what's really important in my opinion, and this is something I go more in depth when I have more time usually, what's important to understand about these different readers is being able to identify them in advance allows you to tell what tools you need to bring with you if you're on an engagement. 542 00:35:25,450 --> 00:35:27,770 You need to do your proper recon on your target. 543 00:35:27,870 --> 00:35:30,470 Here's Kantech Tyco IO Prox. 544 00:35:30,490 --> 00:35:33,010 They have different tags, different readers. 545 00:35:33,010 --> 00:35:36,870 They all have a certain visual aesthetic that works really well. 546 00:35:36,870 --> 00:35:38,670 There's other tags, EM. 547 00:35:38,970 --> 00:35:40,950 They make them in a couple different formats. 548 00:35:40,950 --> 00:35:42,390 They make a couple different readers. 549 00:35:42,390 --> 00:35:51,910 Again , we're not going to deep dive into all this stuff because this is just a light overview of some of the different components of the system so you can see how it all works as a whole . 550 00:35:51,910 --> 00:35:54,010 We have AWID, Applied Wireless ID. 551 00:35:54,010 --> 00:35:55,470 They make their own special tags. 552 00:35:55,470 --> 00:35:57,090 They make their own special readers. 553 00:35:57,230 --> 00:36:02,150 But all of these things, these are just different ways of encoding the same data. 554 00:36:02,150 --> 00:36:08,710 So when we talk about cloning, you know, it's not really practical to hang a Proxmark 3 off of your badge holder . 555 00:36:08,710 --> 00:36:12,570 That's not really going to make you blend in very, very well , is it? 556 00:36:12,770 --> 00:36:15,830 So instead, we want to have a legit looking badge. 557 00:36:15,830 --> 00:36:26,050 And since we can't just take our badge, stick it in a copy machine and call it good, we're going to use the Proxmark 3 and we're going to use another type of credential called the Atmel T5577. 558 00:36:26,450 --> 00:36:29,910 This was not a chip that was originally designed for pen testers. 559 00:36:29,910 --> 00:36:35,390 This was originally designed for OEMs that were tired of making their own chips. 560 00:36:35,450 --> 00:36:39,110 They said, hey, instead of making your own silicon, you can buy our chip. 561 00:36:39,110 --> 00:36:42,490 You can make it emulate almost any credential you want. 562 00:36:42,570 --> 00:36:44,150 You know, you can change the frequency. 563 00:36:44,150 --> 00:36:46,070 You can change the data rates and the modulation. 564 00:36:46,070 --> 00:36:49,290 We don't have to worry about all that stuff because it's built into the Proxmark. 565 00:36:49,290 --> 00:37:02,430 And the Proxmark allows you to use that same T5577 to recreate almost any low frequency credential regardless of whether or not it's Prox or Indala or IOProx or EM or AWID. 566 00:37:02,730 --> 00:37:04,370 It's really, really cool. 567 00:37:04,370 --> 00:37:10,870 We're not going to go super deep into cloning other than I'll just show you really quick how that works. 568 00:37:10,870 --> 00:37:13,610 Actually, I don't have any T5577s in front of me. 569 00:37:13,610 --> 00:37:23,490 So for the sake of time, I'll actually do it with the same credential, which is not as exciting, I realize, because this is actually a T5577. 570 00:37:23,550 --> 00:37:32,610 So what I'll do is I will copy this, which is our original enrolled credential, and I will wipe the card first. 571 00:37:34,670 --> 00:37:37,730 And we'll make sure it's wiped by doing search. 572 00:37:37,730 --> 00:37:39,150 There's no known tags. 573 00:37:39,150 --> 00:37:40,890 So it does nothing. 574 00:37:40,890 --> 00:37:41,710 Oh, no. 575 00:37:41,710 --> 00:37:43,130 We broke our credential. 576 00:37:43,330 --> 00:37:44,110 Never fear. 577 00:37:44,130 --> 00:37:45,650 Proxmark is here. 578 00:37:45,670 --> 00:37:47,370 LF HID clone. 579 00:37:48,170 --> 00:37:50,490 And to check our work, we'll go ahead and do LF search. 580 00:37:50,490 --> 00:37:51,650 It says it's working. 581 00:37:52,170 --> 00:37:54,590 And that is basically how you would make a clone. 582 00:37:54,590 --> 00:37:59,110 And you can do that with almost any low frequency credential because these are all different ways. 583 00:37:59,110 --> 00:38:00,390 Yes, thank you. 584 00:38:00,450 --> 00:38:10,570 These are all different ways of encoding different types of data, different types of signals, but it's still following the same physical communication medium, right? 585 00:38:10,570 --> 00:38:17,950 So we're able to emulate different types of cards as long as they're all low frequency with this particular card. 586 00:38:18,730 --> 00:38:23,370 And that is really, really cool because you can actually get this in a couple different formats. 587 00:38:23,370 --> 00:38:25,970 They even make stickers and implantables. 588 00:38:25,970 --> 00:38:31,270 So you, too, can embed a T5577 in your hand if you want. 589 00:38:31,270 --> 00:38:33,810 And now you'll never forget your apartment key again. 590 00:38:33,810 --> 00:38:37,830 You can just wave your hand in front of the door and the door will open for you. 591 00:38:38,050 --> 00:38:40,930 They make them for MyFairCards as well. 592 00:38:40,930 --> 00:38:46,610 So if you want to open your hotel room with your hand, you can do that as well. 593 00:38:47,290 --> 00:38:49,910 Now, in the field we're not using a Proxmark. 594 00:38:50,030 --> 00:38:52,910 Proxmarks only work for very short distances. 595 00:38:53,170 --> 00:38:56,330 In the field what we do is we take a reader and we weaponize it. 596 00:38:56,450 --> 00:38:59,110 Ooh, ah, doesn't that sound great? 597 00:38:59,130 --> 00:39:00,590 Doesn't that sound hackery and cool? 598 00:39:00,590 --> 00:39:02,570 Well, it's actually very, very simple. 599 00:39:02,670 --> 00:39:09,490 Readers, remember, they take power and they take credentials and they spit out zeros and ones. 600 00:39:09,490 --> 00:39:10,410 That's it. 601 00:39:10,410 --> 00:39:11,990 It's not a bidirectional system. 602 00:39:11,990 --> 00:39:13,030 It's very, very simple. 603 00:39:13,030 --> 00:39:19,050 So that reader, once it gets that credential information, it's just sending that down the wire to the door controller. 604 00:39:19,510 --> 00:39:41,010 So when we talk about long range readers or weaponized readers, all we're doing is really just taking a long range reader that is used, say, for parking lots, for garages, any application where you don't want the user to have to get within two inches of the reader and you install like an Arduino or a Raspberry Pi or something just to record those ones and zeros. 605 00:39:41,010 --> 00:39:42,190 That's basically it. 606 00:39:42,190 --> 00:39:48,670 It's not a very complicated system, but it allows you to get very reliable longer range reads out of the device. 607 00:39:48,790 --> 00:39:49,990 I have to apologize. 608 00:39:49,990 --> 00:39:54,130 I realize I'm going pretty fast, but I am worried about getting everything done in time. 609 00:39:54,130 --> 00:39:56,390 So if you have questions, please forgive me. 610 00:39:56,390 --> 00:39:58,810 I'll do my best to answer them at the end of the talk. 611 00:39:59,590 --> 00:40:02,330 If you watch TV, you might have seen a show called Mr. 612 00:40:02,330 --> 00:40:02,770 Robot. 613 00:40:02,770 --> 00:40:03,410 Who's seen Mr. 614 00:40:03,410 --> 00:40:04,010 Robot? 615 00:40:04,750 --> 00:40:07,330 Yeah, they use a long range reader in the show. 616 00:40:07,450 --> 00:40:11,930 It's actually fairly accurate how they do it, although it's a little bit dramatized. 617 00:40:11,930 --> 00:40:13,790 They go a little bit over the top, right? 618 00:40:13,930 --> 00:40:15,970 So here we are. 619 00:40:15,970 --> 00:40:16,510 There we go. 620 00:40:16,510 --> 00:40:18,010 We won't make it quite so loud. 621 00:40:18,350 --> 00:40:20,570 Here's a scene that a lot of you folks might remember. 622 00:40:20,570 --> 00:40:25,430 They have their long range reader and, you know, he's getting himself psyched up. 623 00:40:25,650 --> 00:40:30,130 He's prepping and he does something that in my opinion is unnecessary. 624 00:40:30,130 --> 00:40:35,610 It attracts undue attention to yourself, but it drives the point home for the non-hacker folks out there, right? 625 00:40:35,610 --> 00:40:40,050 He kind of bumps into the guy physically and is able to read that credential. 626 00:40:40,230 --> 00:40:42,150 Of course in real life you don't have to do that. 627 00:40:42,150 --> 00:40:43,410 You don't have to get that close. 628 00:40:43,410 --> 00:40:47,970 You don't have to physically almost assault someone to get that credential information. 629 00:40:48,510 --> 00:40:54,070 And it's very easy to get credentials because credentials are usually very, very, you know, obvious, right? 630 00:40:54,070 --> 00:40:56,210 People are hanging them off their hip. 631 00:40:56,210 --> 00:40:57,270 You see them in trains. 632 00:40:57,270 --> 00:41:00,230 You see them in, you know, when people are standing in line. 633 00:41:00,230 --> 00:41:01,870 Very easy to get to. 634 00:41:01,870 --> 00:41:04,530 You see them where people are their most vulnerable. 635 00:41:06,030 --> 00:41:22,750 I wish I could say that I was better than the idea of not doing this, but I have to say that if you've ever been to a bathroom, a stall, you might have sometimes seen like a toilet seat cover dispenser, right? 636 00:41:23,070 --> 00:41:26,410 To make you feel a little bit better about using a public restroom. 637 00:41:26,410 --> 00:41:39,270 So you can actually buy those toilet seat cover dispensers and you can put RFID reading electronics behind them and then you go into the bathroom stall and you just kind of stick it with double stick tape as a convenience, right? 638 00:41:39,270 --> 00:41:42,710 You're offering a hygienic product to everyone. 639 00:41:42,750 --> 00:41:48,390 And in exchange for this toilet seat cover, all you ask is for a copy of their credential. 640 00:41:48,870 --> 00:41:49,990 And it works out well. 641 00:41:49,990 --> 00:41:52,230 People seem to be really happy with that exchange. 642 00:41:53,090 --> 00:41:55,050 So what about high frequency, right? 643 00:41:55,050 --> 00:41:59,470 What about these smart cards, these high end secure credentials, right? 644 00:41:59,470 --> 00:42:06,290 Well, again, I'm going to insult your intelligence a little bit because I think it's helpful to understand the main difference between low and high frequency. 645 00:42:06,290 --> 00:42:12,390 So if we pretend our low frequency credential is a piece of paper with a number written on it, right? 646 00:42:12,390 --> 00:42:21,150 We understand that we don't care if that number is in English or if it's obfuscated in some sort of weird wingdings type language. 647 00:42:21,150 --> 00:42:29,010 We can just take that piece of paper and stick it in a copy machine and as long as we produce another piece of paper with the same markings, it's going to work, right? 648 00:42:29,050 --> 00:42:32,690 So that's basically what low frequency is in a nutshell. 649 00:42:32,690 --> 00:42:42,970 As long as we're able to reproduce that signal, which is relatively easy to do, the reader is going to be able to talk to it because that credential information itself isn't protected really. 650 00:42:43,130 --> 00:42:45,490 It's just using a different communication medium. 651 00:42:45,490 --> 00:42:48,070 It's basically just a very fancy bar code. 652 00:42:48,530 --> 00:42:53,690 Now what we do when we talk about high frequency credentials, I'm going to shut this off for the moment. 653 00:42:53,710 --> 00:43:01,510 When we talk about high frequency credentials is we're going to take that piece of paper that has our very sensitive, secure credentialing information. 654 00:43:01,510 --> 00:43:02,910 We're going to fold it up. 655 00:43:02,910 --> 00:43:04,070 We're going to put it in an envelope. 656 00:43:04,070 --> 00:43:06,070 We're going to put that envelope in a safe, alright? 657 00:43:06,070 --> 00:43:10,270 And that's basically what a high frequency smart card is. 658 00:43:10,270 --> 00:43:11,850 It's a digital lock box. 659 00:43:11,850 --> 00:43:17,950 It's a digital safe for sensitive information and in this case it happens to be RFID. 660 00:43:17,950 --> 00:43:29,950 So this is actually a really cool example or analogy in my opinion because this particular safe has a serial number plate on the side and it has a combination to open it. 661 00:43:29,950 --> 00:43:45,850 So similarly, if you imagine that you could use a special algorithm and pre-shared secret key to based off of the serial number, which is on the outside of the safe, calculate what the combination is going to be, you can unlock the safe and get to the credentialing information, 662 00:43:45,850 --> 00:43:46,090 right? 663 00:43:46,090 --> 00:43:53,150 So if you're designing an access control system, you wouldn't use the serial numbers of the safe as the credential data, right? 664 00:43:53,150 --> 00:43:54,630 Because anyone can read that. 665 00:43:54,630 --> 00:43:56,670 You would try to protect it in some way. 666 00:43:56,670 --> 00:44:03,710 And when we talk about high frequency credentials, whether it's iClass or MyFair or Desfire, that's what we're talking about. 667 00:44:03,710 --> 00:44:18,130 We're talking about taking a credential information, putting it into a block of data and that block is read protected by a key, by a password, by some authentication mechanism of some kind. 668 00:44:18,130 --> 00:44:32,770 So by way of example, let's for example talk about MyFair Classic, very, very popular credentialing format used by a lot of transit systems, by a lot of events and by a lot of access control systems in Europe and abroad. 669 00:44:33,330 --> 00:44:41,010 So again, we're not going to get too technical into it because I don't think it's actually necessary to understand how the technology works as a whole. 670 00:44:41,210 --> 00:44:45,530 Here you have a MyFair credential memory map, right? 671 00:44:45,530 --> 00:44:51,610 So you have your credential and then the memory is broken up into different sectors and blocks. 672 00:44:51,630 --> 00:44:56,210 And in order to read those different sectors, you have to have the right key. 673 00:44:56,230 --> 00:45:13,890 So when you do cracking of MyFair, when you run MyFair dark side attack or the nested attack or this or that, these are all just different methods of recovering these keys that are on the card that protect the information encoded onto the blocks, right? 674 00:45:13,890 --> 00:45:19,270 So you would not use the serial number, which happens to be encoded in block zero. 675 00:45:19,270 --> 00:45:24,790 You would not use the serial number to run your access control system. 676 00:45:24,790 --> 00:45:29,850 Instead, you would store your credential in one of these other blocks and you would protect it with a key. 677 00:45:29,850 --> 00:45:33,490 And again, this is how all these different credentialing formats work. 678 00:45:33,490 --> 00:45:39,770 There is some method of authentication that is used that unlocks the card and that's what the reader is doing. 679 00:45:39,770 --> 00:45:44,190 That moment when you present your card to the reader, it's doing a little handshake, right? 680 00:45:44,190 --> 00:45:51,870 There's some mutual authentication that's taking place and it's unlocking the card and it's reading protected memory inside the card. 681 00:45:51,870 --> 00:45:57,610 So in order to clone that particular card, you actually have to figure out how to unlock it first. 682 00:45:57,650 --> 00:46:06,590 And so you have to either find the key, whether it's leaked or cracked or otherwise or find a way to brute force the key in order to clone it. 683 00:46:06,710 --> 00:46:16,410 We're not going to go in depth into how to do those things because again, this talk is talking about high level how a modern access control system works. 684 00:46:17,070 --> 00:46:21,850 So let's talk about another way that these things can be abused, right? 685 00:46:21,850 --> 00:46:26,830 So we've talked about how we have low frequency and high frequency credentials. 686 00:46:27,070 --> 00:46:30,810 But how does one switch from low frequency to high frequency? 687 00:46:30,810 --> 00:46:39,370 It's easy when you only have one system or one door because you go up to it on a weekend, you rip out all the stuff and you replace it and you're done, right? 688 00:46:39,370 --> 00:46:40,790 But imagine you're a company. 689 00:46:40,790 --> 00:46:46,970 Imagine you have hundreds or thousands of doors and hundreds or thousands of users. 690 00:46:46,970 --> 00:46:54,810 Is it reasonable to expect that in one weekend during non-business hours, you could go in and rip and replace everything? 691 00:46:55,390 --> 00:46:56,710 No, absolutely not. 692 00:46:56,710 --> 00:46:59,950 That sounds incredibly infeasible and impractical. 693 00:47:00,190 --> 00:47:03,050 So they make these things called migration readers. 694 00:47:03,770 --> 00:47:07,290 And I wish I had jammed a photo of a migration reader in here. 695 00:47:07,290 --> 00:47:09,890 I apologize that I don't have one at the moment. 696 00:47:09,890 --> 00:47:14,490 But imagine you have, it actually, this is a migration reader. 697 00:47:14,490 --> 00:47:17,030 This is an example of a migration reader. 698 00:47:17,030 --> 00:47:19,950 It reads both high and low frequency credentials. 699 00:47:19,950 --> 00:47:23,830 So again, by way of example, I'm going to go ahead and power this system on. 700 00:47:23,830 --> 00:47:27,210 I will grab the credential for it. 701 00:47:31,760 --> 00:47:40,340 And to show you that these are two different technologies, we remember that the airport credential, that was a low frequency prox card. 702 00:47:40,340 --> 00:47:46,100 What I'm going to do is we're going to pop back over to our prox mark and here we are. 703 00:47:46,100 --> 00:47:49,840 Here's our research assistance credential, Louise McDougall. 704 00:47:49,840 --> 00:48:05,710 And her credential, if I run my HF search command, you will find once it switches all the FPGA code, let's see if we can get that into the right spot. 705 00:48:05,710 --> 00:48:06,510 There we go. 706 00:48:06,510 --> 00:48:08,110 So this is an I class credential. 707 00:48:08,110 --> 00:48:11,510 This is a high frequency smart card type credential. 708 00:48:11,510 --> 00:48:24,350 These are two different technologies and yet we have both the old credential and once that door closes, we'll try our high frequency I class credential and we'll see that they both unlock the door. 709 00:48:24,350 --> 00:48:28,490 This reader can talk to two different technologies, both old and new. 710 00:48:28,490 --> 00:48:35,730 And the reason that exists is the idea is, okay, don't worry, you guys want to upgrade to our newest, latest and greatest technology. 711 00:48:35,730 --> 00:48:36,970 We got you covered. 712 00:48:36,970 --> 00:48:40,110 What we're going to do is we're going to sell you our migration readers. 713 00:48:40,110 --> 00:48:47,630 They can read both your old cards and the new cards and you'll slowly upgrade your readers at your own pace. 714 00:48:47,630 --> 00:48:54,910 And once all those readers are upgraded, remember meanwhile everyone's old credentials, they're still working, right? 715 00:48:54,910 --> 00:49:02,330 Once you've upgraded all the readers, then you can take everyone's credentials again at your own pace and you can replace them, right? 716 00:49:02,330 --> 00:49:03,350 Makes sense. 717 00:49:03,350 --> 00:49:04,990 Now here's the thing. 718 00:49:05,050 --> 00:49:12,150 After you do that, your fancy new reader can still read old ass credentials. 719 00:49:12,430 --> 00:49:19,870 So what that leaves you open to is what I call a format downgrade attack. 720 00:49:19,970 --> 00:49:30,490 This is something where you would take a secure credential such as a CEOS credential which is, hi. 721 00:49:31,550 --> 00:49:33,090 Datagram everyone. 722 00:49:33,090 --> 00:49:33,990 Oh, nothing. 723 00:49:33,990 --> 00:49:36,010 Just came up, said hi and left. 724 00:49:36,010 --> 00:49:36,790 All right . 725 00:49:36,790 --> 00:49:51,690 So you can take your secure credential and maybe you can't clone it but you can find a reader that reads it and remember, what does every reader use as a communications protocol to send credential data back to the door controller? 726 00:49:51,970 --> 00:49:53,110 WeGand, right. 727 00:49:53,110 --> 00:49:55,950 It still converts it to the same end format. 728 00:49:55,950 --> 00:50:30,290 So you can take this high security credential, you can read it with something besides the Proxmark, you can read it with a regular reader made by that particular company and then you can take that WeGand data, you can save it onto an older format card and now you can downgrade the format of the card to something that is more easily clonable and manipulatable and the door controller will treat that card the same way because there's no way for the door controller to know the difference between the different types of credentials that were presented at the reader. 729 00:50:30,290 --> 00:50:32,850 The reader doesn't give that information to the door controller. 730 00:50:32,850 --> 00:50:37,110 The door controller just sees 26 bits of WeGand, right. 731 00:50:37,170 --> 00:50:40,650 So that's also another important consideration. 732 00:50:40,650 --> 00:50:44,150 If you have questions about this, please feel free to ask. 733 00:50:44,150 --> 00:50:45,910 I'll do my best to clarify it. 734 00:50:45,910 --> 00:50:47,890 I know we're jumping around a lot. 735 00:50:48,150 --> 00:50:51,450 So let's talk about door contacts and sensors. 736 00:50:51,450 --> 00:50:56,670 We were talking about different types of inputs into physical access control systems. 737 00:50:56,930 --> 00:50:57,610 Whoops. 738 00:50:57,610 --> 00:50:58,850 There we go. 739 00:50:59,690 --> 00:51:24,910 So what we're seeing here is a tall door and we're going to use our mirror and it's really hard to see in this particular photo, but as we slide our mirror over, what we see here, let's see if it works, is the very edge of a little door contact and what that is, 740 00:51:24,910 --> 00:51:29,590 that's a little magnetic read sensor that tells the door controller the state of the door. 741 00:51:29,610 --> 00:51:31,050 How is that used? 742 00:51:31,050 --> 00:51:34,230 Well, that's often used as a way of detecting forced entry. 743 00:51:34,230 --> 00:51:38,410 So remember that door controller is always monitoring a bunch of different types of inputs. 744 00:51:38,790 --> 00:51:51,250 So for example, let's say you have a door that you're monitoring and you have a card reader on the secured side and you have a motion sensor like this on the other side, right? 745 00:51:51,250 --> 00:52:07,110 So what the door controller does, it says, okay, if I detect that the door is opened and there is no valid card read and there was no motion detected before the door was opened, what do I assume happened? 746 00:52:09,370 --> 00:52:10,690 What's that? 747 00:52:11,610 --> 00:52:12,910 I heard it. 748 00:52:12,910 --> 00:52:14,570 Forced entry, right? 749 00:52:14,570 --> 00:52:20,150 So logically, again, the access control system says, hey, this door has been opened. 750 00:52:20,150 --> 00:52:24,490 The door contact sensor is no longer in contact. 751 00:52:24,490 --> 00:52:26,210 I'm assuming the door is open. 752 00:52:26,250 --> 00:52:29,790 No one presented a card first and no one exited. 753 00:52:29,790 --> 00:52:31,850 So then it triggers an alarm condition. 754 00:52:31,850 --> 00:52:36,850 So again, by knowing that that's how the system is designed, we can take advantage of that. 755 00:52:36,850 --> 00:52:40,570 So what we're going to see here, here's a rec sensor. 756 00:52:40,570 --> 00:52:44,150 It is not used to automatically unlock the door. 757 00:52:44,150 --> 00:52:49,490 It is instead used to decide if there's a forced entry alarm or not. 758 00:52:49,490 --> 00:52:56,450 So what you're going to see is I'm going to use canned air and you can tell from the noise, where are we? 759 00:52:57,470 --> 00:52:59,250 We're in a server room, right? 760 00:52:59,710 --> 00:53:06,150 So we use the canned air to trigger the motion sensor and then we just slip the latch with some plastic. 761 00:53:06,310 --> 00:53:10,970 And because of this process, that video, you just saw an entry. 762 00:53:10,970 --> 00:53:13,510 But what did the door controller think took place? 763 00:53:13,510 --> 00:53:15,450 An exit, that's right. 764 00:53:15,450 --> 00:53:25,010 By simulating motion first before bypassing the door, we told the door controller that we're actually leaving instead of entering and so no alarm was triggered. 765 00:53:25,230 --> 00:53:27,490 How do you find door contacts? 766 00:53:27,490 --> 00:53:30,850 One of the easiest ways is to use a tool like this. 767 00:53:30,850 --> 00:53:32,230 This is really cool. 768 00:53:32,670 --> 00:53:36,230 This is a door contact sensor. 769 00:53:36,230 --> 00:53:36,990 That's what I call it. 770 00:53:36,990 --> 00:53:39,230 It's actually just a little magnet on a swivel. 771 00:53:39,230 --> 00:53:40,750 I'll show you what it looks like. 772 00:53:43,410 --> 00:53:44,690 Here it is. 773 00:53:45,730 --> 00:53:59,410 And basically any time it comes near a magnet, this little guy here points in the direction of the magnet and you can just kind of wave this around the edge of the door and anywhere where there's a magnet in the door, it will tell you that's where the door contact is. 774 00:53:59,410 --> 00:54:18,490 So if you're not as fortunate as being able to say just use a mirror to look into the side of the door and see that that door contact is there like this, and again, what we're looking at is right here. 775 00:54:18,490 --> 00:54:19,970 There's our door contact. 776 00:54:20,210 --> 00:54:25,370 By the way, in this example, we're about to try to break into this data hall. 777 00:54:25,370 --> 00:54:26,950 We see the door contact. 778 00:54:26,950 --> 00:54:31,050 What's the easiest dumbest way to bypass this door contact? 779 00:54:31,930 --> 00:54:33,030 Magnet, yeah. 780 00:54:33,030 --> 00:54:34,770 I didn't have a lot of fancy tools with me. 781 00:54:34,770 --> 00:54:35,790 We were overseas. 782 00:54:36,090 --> 00:54:44,710 So what I did is I just took out my hotel key card and I bent it at 90 degrees just to create a little shelf and I taped a magnet to it. 783 00:54:44,710 --> 00:54:50,010 I taped a magnet to it and I shoved that in the door and that was enough to bypass that sensor. 784 00:54:50,090 --> 00:54:59,070 So here our door into the data hall is opened but according to the door controller, according to the access control system, what is the current state of this door? 785 00:54:59,470 --> 00:55:00,550 It's closed. 786 00:55:00,550 --> 00:55:01,410 That's right. 787 00:55:01,790 --> 00:55:03,990 So these are all over the place. 788 00:55:03,990 --> 00:55:05,430 You'll see them on the top of frames. 789 00:55:05,430 --> 00:55:07,450 You'll see them on the sides of frames. 790 00:55:07,910 --> 00:55:10,970 Here's a really close-up photo of a door contact. 791 00:55:10,970 --> 00:55:12,630 What have we done to this door contact? 792 00:55:13,530 --> 00:55:15,010 Yeah, we stuck a magnet on there. 793 00:55:15,010 --> 00:55:17,030 But what did we do to make it extra clever? 794 00:55:17,770 --> 00:55:20,130 Our tape is in the shape of a circle. 795 00:55:20,170 --> 00:55:28,230 So unless I would have told you that, hey, this is a door contact that we bypassed, your average user is not going to notice that. 796 00:55:28,230 --> 00:55:39,570 And these are the small things about modern access control systems besides RFID that you want to be aware of in order to know, okay, what is the lowest, easiest path of entry. 797 00:55:39,570 --> 00:55:42,210 Oftentimes it's not the RFID card. 798 00:55:42,210 --> 00:55:48,150 It's finding a combination of bypasses to make the system behave or think differently . 799 00:55:48,970 --> 00:56:03,930 So we've talked about RFID and we've talked about how all these different credentials, whether they're mag stripe or smart card or high freak or low freak, these are all just different ways of encoding the same data that is stored on the card, right? 800 00:56:03,930 --> 00:56:06,370 And that's still sent over WeGand, right? 801 00:56:06,370 --> 00:56:07,850 So we talked about this. 802 00:56:07,850 --> 00:56:11,590 We talked about how this is all just different ways of doing the same function. 803 00:56:11,590 --> 00:56:17,390 But once that data leaves the reader, it's still usually WeGand. 804 00:56:17,390 --> 00:56:21,790 Now, there are other communication protocols that technically exist. 805 00:56:21,790 --> 00:56:23,630 They are not very popular. 806 00:56:23,730 --> 00:56:38,190 And even the other ones that do exist, with the exception of one protocol, which we will talk about, everything in red here, these are protocols that transport that credential information without encryption, without any protection. 807 00:56:38,190 --> 00:56:41,710 You can just connect to the wires and read that information. 808 00:56:41,710 --> 00:56:43,830 And this has been done for years. 809 00:56:43,930 --> 00:56:49,250 Like over ten years ago, Adam Laurie and Zach Franken, they came up with something called the Gecko. 810 00:56:49,250 --> 00:56:53,970 The Gecko was something that you would install behind the reader and it was a literal man in the middle. 811 00:56:53,970 --> 00:57:03,050 You would connect it to the WeGand data wires and you would try to read that information as it goes across the wires and then replay that information. 812 00:57:03,510 --> 00:57:05,870 And that's a very, very old technique. 813 00:57:05,870 --> 00:57:07,630 You don't even need a special tool to do it. 814 00:57:07,630 --> 00:57:12,950 You can use an Arduino or anything you want that can record and replay two minutes. 815 00:57:13,050 --> 00:57:14,150 Holy crap. 816 00:57:15,850 --> 00:57:17,370 They said 80 minutes. 817 00:57:17,370 --> 00:57:18,830 Someone said it was an 80-minute talk. 818 00:57:18,830 --> 00:57:20,070 Is that not correct? 819 00:57:31,640 --> 00:57:33,660 Oh, well, that's unfortunate. 820 00:57:33,920 --> 00:57:34,500 Okay. 821 00:57:34,500 --> 00:57:39,640 Someone in the audience said that it was on the schedule for 80 minutes, so that's why I had adjusted my talk. 822 00:57:41,680 --> 00:57:42,280 Okay. 823 00:57:47,990 --> 00:57:49,450 That's what the schedule says. 824 00:57:49,450 --> 00:57:50,650 That's what people are saying. 825 00:57:52,290 --> 00:57:53,230 All right. 826 00:57:53,650 --> 00:57:54,410 All right. 827 00:57:54,410 --> 00:58:03,410 Well, I will show you this last thing and then I guess if you have more questions, unfortunately, we'll just have to ‑‑ okay. 828 00:58:03,410 --> 00:58:06,490 So everyone is looking at their phones and they're saying 80 minutes. 829 00:58:07,730 --> 00:58:10,230 So I'm going to ‑‑ who's the next talk? 830 00:58:10,610 --> 00:58:11,450 Are they here? 831 00:58:11,930 --> 00:58:12,650 Okay. 832 00:58:12,670 --> 00:58:13,270 All right. 833 00:58:13,270 --> 00:58:18,970 So we're going to finish up this one section with apologies and then if you have more questions, please find me afterwards. 834 00:58:19,370 --> 00:58:20,990 So we can intercept the data. 835 00:58:20,990 --> 00:58:21,930 It's really, really easy. 836 00:58:21,930 --> 00:58:23,690 There's a couple different tools to do it. 837 00:58:23,690 --> 00:58:24,890 There was the Gecko. 838 00:58:24,930 --> 00:58:26,870 There was the BLE key a few years ago. 839 00:58:26,870 --> 00:58:40,790 One of our friends made an even better tool, Kenny McElroy, OctoSavvy on Twitter, he created this tool called the ESP key and the ESP key is the interception tool that you install behind the reader and it's a literal man in the middle, right? 840 00:58:40,790 --> 00:58:43,570 Look at that cool hacker looking guy, right? 841 00:58:43,730 --> 00:58:53,410 So that man in the middle is going to monitor those communications and as that credential information goes across the wire, we can replay that information. 842 00:58:53,510 --> 00:59:00,910 So what I'm going to do is we're going to skip through a couple slides as the very last thing and this is brave. 843 00:59:00,910 --> 00:59:05,330 I'm going to try to show you a demo of how this all works. 844 00:59:05,330 --> 00:59:15,130 You're going to watch me install one of these keys in the video and while that's happening, I'm going to try to set up my demo here and we're going to see if it works. 845 00:59:17,270 --> 00:59:19,830 Oh, video paused so I can't do that. 846 00:59:21,490 --> 00:59:23,550 So I'm going to fast forward through it. 847 00:59:23,890 --> 00:59:26,450 So we have our ESP key. 848 00:59:26,450 --> 00:59:27,850 I'm going to pop that out. 849 00:59:27,870 --> 00:59:29,790 I'm outside of a server room door. 850 00:59:29,990 --> 00:59:32,910 I have not disconnected the reader from the door controller. 851 00:59:33,570 --> 00:59:37,610 I'm just getting those data control wires out of there. 852 00:59:37,610 --> 00:59:38,490 I've got my power. 853 00:59:38,490 --> 00:59:39,290 I've got my ground. 854 00:59:39,290 --> 00:59:44,970 I'm just using a punch down tool to punch those wires down onto the wall there. 855 00:59:45,730 --> 00:59:49,630 And once it's all said and done and we're going to fast forward just a few seconds. 856 00:59:49,630 --> 00:59:50,410 Here we go. 857 00:59:50,410 --> 00:59:52,890 You can see our ESP key is turned on. 858 00:59:53,390 --> 00:59:56,570 And we're going to feed that back into the wall. 859 00:59:56,750 --> 00:59:58,170 And we're done. 860 00:59:58,850 --> 01:00:05,350 So this is a bold demo attempt in the wireless village. 861 01:00:05,930 --> 01:00:10,570 I'm going to see if this is even a possibility. 862 01:00:13,050 --> 01:00:18,350 If I'm able to connect to my ESP key or not. 863 01:00:18,490 --> 01:00:20,470 Or if someone is going to screw with it instead. 864 01:00:20,470 --> 01:00:21,750 Fingers crossed. 865 01:00:21,910 --> 01:00:25,050 Yeah, demo gods are not smiling upon us today. 866 01:00:25,090 --> 01:00:27,090 We'll try two more times. 867 01:00:31,540 --> 01:00:32,400 Nope. 868 01:00:33,200 --> 01:00:34,060 Yeah, of course. 869 01:00:34,060 --> 01:00:36,440 Wi-Fi village can't connect to any Wi-Fi. 870 01:00:37,920 --> 01:00:39,440 Such is life, right? 871 01:00:41,400 --> 01:00:42,140 All right. 872 01:00:42,140 --> 01:00:43,920 And last time. 873 01:00:47,580 --> 01:00:48,520 Nope. 874 01:00:48,920 --> 01:01:05,660 So in any other space but this one, we would be able to connect to our ESP key and be able to replay, intercept and replay that credential information without interacting with the card reader at all. 875 01:01:05,660 --> 01:01:08,560 Later on, I will try to have this working. 876 01:01:08,560 --> 01:01:15,600 I don't know how possible that's going to be with all of this stuff going on in the airwaves right now. 877 01:01:16,400 --> 01:01:18,000 But you get the idea. 878 01:01:18,000 --> 01:01:21,140 We can replay the information and that works. 879 01:01:21,300 --> 01:01:22,400 So let's see. 880 01:01:22,400 --> 01:01:24,620 I think that's going to have to be it. 881 01:01:24,620 --> 01:01:28,140 I can't think of ‑‑ we're going to shut this off. 882 01:01:28,300 --> 01:01:34,700 Let's see if there's any last minute great things that we can talk about in 30 seconds. 883 01:01:35,560 --> 01:01:36,240 Oh, yeah. 884 01:01:36,240 --> 01:01:37,440 I'll share one thing. 885 01:01:37,440 --> 01:01:39,640 There's an easy fix for interception. 886 01:01:39,640 --> 01:01:40,720 It's a new standard. 887 01:01:40,720 --> 01:01:42,080 It's called OSDP. 888 01:01:42,080 --> 01:01:46,740 If you install a new system, you absolutely 100% should be using OSDP. 889 01:01:46,940 --> 01:01:50,200 It protects the panel to server communication. 890 01:01:50,260 --> 01:01:58,240 It allows you to encrypt and secure that communication between the reader and the door controller. 891 01:01:58,500 --> 01:02:05,220 It's bidirectional so you can do cool things like preventing eaves dropping. 892 01:02:06,100 --> 01:02:14,500 It can do ‑‑ if you want to learn more about it, go to securityindustry.org slash OSDP or ask me more questions about it later. 893 01:02:14,500 --> 01:02:18,300 And then with sincere apologies, we're going to call that done. 894 01:02:18,360 --> 01:02:24,640 And I'm going to go ahead and put my contact information up on the slides here if you have any questions. 895 01:02:24,760 --> 01:02:25,880 We'll do this. 896 01:02:25,880 --> 01:02:27,700 We'll scroll all the way down. 897 01:02:27,740 --> 01:02:29,740 And there you go. 898 01:02:31,200 --> 01:02:32,360 Thank you. 899 01:02:34,680 --> 01:02:40,160 I'm really sorry that was so much information that we couldn't get through. 900 01:02:40,160 --> 01:02:45,480 As I said, this is normally two days worth of material that we tried to cram into just a few minutes. 901 01:02:45,500 --> 01:02:51,180 So if you have any questions, please come find me over there while Woody sets up his next awesome talk. 902 01:02:51,180 --> 01:02:52,060 Thank you again.