1 00:00:00,000 --> 00:00:02,980 My name is David Tomaschek. I work on the Google security 2 00:00:02,980 --> 00:00:07,120 team. I'm a senior security engineer on the Google security 3 00:00:07,120 --> 00:00:10,820 assessments team. I predominantly conduct red 4 00:00:10,820 --> 00:00:14,660 teaming about 80% of my time. At Google we also have the 5 00:00:14,660 --> 00:00:19,440 opportunity to do 20% projects and I spend my 20% time breaking 6 00:00:19,440 --> 00:00:24,180 IOT. Those occasionally intersect and I'll tell you about 7 00:00:24,180 --> 00:00:29,480 one time when they did. But I will also tell you first some 8 00:00:29,480 --> 00:00:34,060 personal interests. I like to break IOT stuff for fun. I've 9 00:00:34,060 --> 00:00:37,780 been known to buy many, many IOT devices solely to see how they 10 00:00:37,780 --> 00:00:42,800 play and sometimes find bugs in them. I also like to make 11 00:00:42,800 --> 00:00:48,880 electronic things like badge life. So I'm going to start by 12 00:00:49,520 --> 00:00:53,000 telling you a little bit of a story about how I broke some 13 00:00:53,000 --> 00:00:56,880 door access controllers and what actually led me to the 14 00:00:56,880 --> 00:00:59,400 realization something was broken. I wasn't actually 15 00:00:59,480 --> 00:01:02,820 looking at the door access controllers on purpose. I kind 16 00:01:02,820 --> 00:01:05,560 of stumbled across the realization something was broken 17 00:01:05,560 --> 00:01:09,360 and then had to spend the time making an exploit. And then I 18 00:01:09,360 --> 00:01:12,000 want to talk about how we fix it. I know that stories about 19 00:01:12,000 --> 00:01:15,200 how we break things are really, really interesting. But we 20 00:01:15,200 --> 00:01:18,220 actually only make impact as security engineers if we get a 21 00:01:18,220 --> 00:01:23,120 fix made from it. So first I'm going to tell you like how do 22 00:01:23,120 --> 00:01:26,200 door access controllers work. Like many of you probably work 23 00:01:26,200 --> 00:01:29,300 in office buildings that use some kind of card based system 24 00:01:29,480 --> 00:01:33,320 for access. And so you probably interact with these all day 25 00:01:33,320 --> 00:01:35,900 long. But you probably don't think very much about how it 26 00:01:35,900 --> 00:01:38,680 works. You conceptually at a high level probably know, oh, I 27 00:01:38,680 --> 00:01:41,640 have an access card. There's a reader. The reader talks to a 28 00:01:41,640 --> 00:01:45,100 server and the server decides whether or not you're let in. 29 00:01:45,500 --> 00:01:48,320 But it turns out that the actual implementation of this is a 30 00:01:48,320 --> 00:01:51,280 little bit more complicated. You have the badge reader. You have 31 00:01:51,280 --> 00:01:55,140 a local controller that's present at the badge. You have 32 00:01:55,140 --> 00:01:59,040 the connection to the lock on the door. And then you have a 33 00:01:59,040 --> 00:02:02,580 local controller which will usually be in an IDF or similar 34 00:02:02,580 --> 00:02:05,940 facility within the building. And then the badge server may be 35 00:02:05,940 --> 00:02:11,060 sitting in fact in a data center somewhere or sitting even in a 36 00:02:11,060 --> 00:02:16,660 cloud facility or a colo. So there's different protocols in 37 00:02:16,660 --> 00:02:21,240 use at different points along this connection. The most common 38 00:02:21,240 --> 00:02:24,080 protocol that is used on the wire from the physical badge 39 00:02:24,080 --> 00:02:26,880 reader itself to the door controller is a protocol called 40 00:02:29,040 --> 00:02:30,000 WGAN protocol. It's a protocol that is used from actually 41 00:02:30,000 --> 00:02:34,200 magnetically encoding on the card and actually represents the 42 00:02:34,200 --> 00:02:39,360 flips in a magnetic field. Now, many of our cards now are in 43 00:02:39,360 --> 00:02:43,940 fact using a proximity system and have no mag stripe on them at 44 00:02:43,940 --> 00:02:47,560 all. But in order to maintain backwards compatibility, they 45 00:02:47,560 --> 00:02:50,080 kept using the same wire protocol between the badge 46 00:02:50,080 --> 00:02:52,660 reader and the door controllers. And even though we have door 47 00:02:52,660 --> 00:02:57,960 controllers now with IP that didn't exist at the time the WGAN 48 00:02:59,040 --> 00:03:02,820 was popular, because these installations may last for tens 49 00:03:02,820 --> 00:03:07,840 of years, then you can end up with a case where your backwards 50 00:03:07,840 --> 00:03:11,200 compatibility on each side is maintained for a long period of 51 00:03:11,200 --> 00:03:16,560 time. Beyond that, you have IP in this particular installation 52 00:03:16,560 --> 00:03:19,340 from the door controller to the local controller and then you 53 00:03:19,340 --> 00:03:22,820 have IP traffic again between the local controller and the 54 00:03:22,820 --> 00:03:26,860 badge server. As to actually unlocking the door, usually 55 00:03:26,860 --> 00:03:29,020 that's just a straight 12-volt signal to a phone. And then you 56 00:03:29,040 --> 00:03:31,500 have a physical lock or to one of those magnetic locks that will 57 00:03:31,500 --> 00:03:36,520 release the door so that you can open it. So let's go through a 58 00:03:36,520 --> 00:03:41,120 typical scenario in terms of swiping your badge and getting 59 00:03:41,120 --> 00:03:44,840 access to a facility. So the first thing that will happen is 60 00:03:44,840 --> 00:03:47,420 you'll swipe your badge against the badge reader and the badge 61 00:03:47,420 --> 00:03:50,260 reader will immediately relay the information about that badge 62 00:03:50,620 --> 00:03:52,880 to the door controller and they'll say, hey, badge number 63 00:03:52,880 --> 00:03:57,280 335 has just swiped. The door controller will say, okay, I 64 00:03:57,280 --> 00:03:59,020 need an access check for door number 335. And then the door 65 00:03:59,020 --> 00:04:01,300 number 1, because the badge reader doesn't know which door 66 00:04:01,300 --> 00:04:04,060 it's actually installed for, but the door controller does, so it 67 00:04:04,060 --> 00:04:07,380 says I need an access check for door number 1. Badge number is 68 00:04:07,380 --> 00:04:11,700 335. I'm passing it on to the local controller. The local 69 00:04:11,700 --> 00:04:15,720 controller basically passes it on to the badge server in order to 70 00:04:15,720 --> 00:04:19,420 find out this information. The badge server is what will 71 00:04:19,420 --> 00:04:22,500 actually make the authoritative determination. It says, looks 72 00:04:22,500 --> 00:04:25,380 good. This door, this card is allowed access to this door. 73 00:04:27,200 --> 00:04:29,000 Okay. The local controller says, badge number 335. This card is 74 00:04:29,020 --> 00:04:31,880 okay. And it tells the door controller, open the door 75 00:04:31,880 --> 00:04:35,640 numbered number 1. And at that point, you get your green light 76 00:04:35,640 --> 00:04:38,800 on the badge reader and you get your unlock signal to the door 77 00:04:38,800 --> 00:04:41,720 lock. Now, this in practice only takes a fraction of a second, 78 00:04:41,920 --> 00:04:44,900 you know, typically a few tens of milliseconds or a few 79 00:04:44,900 --> 00:04:47,840 hundreds of milliseconds to happen. Although I'm sure some 80 00:04:47,840 --> 00:04:50,640 of you have swiped and then had that really long pause before it 81 00:04:50,640 --> 00:04:54,000 unlocked. And, well, that's probably a sign of network 82 00:04:54,000 --> 00:04:58,220 congestion or failure along the way. So this is the typical 83 00:04:58,220 --> 00:04:59,000 scenario. If you're in a situation where you're in a 84 00:04:59,020 --> 00:04:59,420 situation where you have a remote control, you may want to 85 00:04:59,420 --> 00:05:01,180 facility and let you in. So that's the scenario for a door 86 00:05:01,180 --> 00:05:04,880 access controller setup. But there's also some other use cases 87 00:05:04,880 --> 00:05:08,280 of all of this infrastructure. So let's say that you're at a 88 00:05:08,280 --> 00:05:11,140 remote facility and you've forgotten your badge and you 89 00:05:11,140 --> 00:05:14,380 want to be let into that facility. You may be calling your 90 00:05:14,380 --> 00:05:17,120 company's security operations center and convince them that 91 00:05:17,600 --> 00:05:20,720 you're the right person and that you should be allowed access. But 92 00:05:20,720 --> 00:05:22,320 how are they going to do that? Are they going to send a 93 00:05:22,320 --> 00:05:26,120 security guard to come drive out to the remote facility and let 94 00:05:26,120 --> 00:05:29,000 you into the system? Or into the facility? Well, that's a 95 00:05:29,000 --> 00:05:29,020 different question. If you're at a remote facility, I'm not 96 00:05:29,020 --> 00:05:32,060 possibility. Actually, it turns out that there's a way that they 97 00:05:32,060 --> 00:05:35,640 can from a remote client PC connect to the badge server and 98 00:05:35,640 --> 00:05:39,200 just send an arbitrary command to unlock door number one. And 99 00:05:39,200 --> 00:05:41,840 that command goes to the badge server to the local controller 100 00:05:41,840 --> 00:05:45,060 to the door controller where it's converted to an analog signal 101 00:05:45,060 --> 00:05:48,380 and the door gets unlocked. So there's a remote access and 102 00:05:48,380 --> 00:05:52,440 remote unlock capability is very common in these systems and 103 00:05:52,440 --> 00:05:56,680 almost universally implemented for these particular types of 104 00:05:56,680 --> 00:05:58,980 cases. It also helps if the badge reader fails to access it. 105 00:05:59,000 --> 00:06:02,040 fails, they can send a remote command to put the door in an 106 00:06:02,040 --> 00:06:05,860 unlocked state for a certain period of time or they can do 107 00:06:05,860 --> 00:06:09,200 things like changing the configuration for the door on 108 00:06:09,200 --> 00:06:14,200 the fly or other settings. So this is a possibility as well. 109 00:06:14,360 --> 00:06:16,820 And you'll notice that in this case it's not associated with a 110 00:06:16,820 --> 00:06:20,320 badge swipe. It's just associated with a command that 111 00:06:20,320 --> 00:06:24,840 comes from the control PC in the security operations center 112 00:06:24,840 --> 00:06:31,400 or wherever the security staff may be. So now on to our story. 113 00:06:31,520 --> 00:06:36,500 Once upon a time, I'm executing a red team and the focus of our 114 00:06:36,500 --> 00:06:39,440 red teams was not in fact these door controllers. We just 115 00:06:39,440 --> 00:06:43,100 happened to be on a network that happened to have a patch panel 116 00:06:43,100 --> 00:06:46,460 in an area accessible to contractors. So we're like, 117 00:06:46,580 --> 00:06:49,220 cool, let's plug into this patch panel and see what's on this 118 00:06:49,220 --> 00:06:51,780 network. We didn't even know which network segment we were on 119 00:06:51,780 --> 00:06:54,820 at that point. But we realized straight away that this was a 120 00:06:54,840 --> 00:06:55,060 good idea. So we were like, cool, maybe this is like a 121 00:06:55,060 --> 00:06:56,560 physical access. And shortly afterwards, we started seeing 122 00:06:56,560 --> 00:06:59,860 traffic we were unfamiliar with and started tracing the cables. 123 00:07:00,080 --> 00:07:03,580 And they went to the locks and the door controllers next to each 124 00:07:03,580 --> 00:07:06,000 of the doors. And we're like, cool, maybe this is some 125 00:07:06,000 --> 00:07:10,180 physical access stuff. So we dumped some of the traffic, but 126 00:07:10,180 --> 00:07:13,300 we didn't immediately see a way that we could do a replay attack 127 00:07:13,300 --> 00:07:16,760 or otherwise influence the door controllers. And since we were 128 00:07:16,760 --> 00:07:19,800 doing one where we were physically onsite at one of our 129 00:07:19,800 --> 00:07:24,400 facilities and not in fact in our office. We didn't have a whole lot of time for analysis at 130 00:07:24,400 --> 00:07:29,260 this point. But I was like, you know what? I like to break IoT devices. I'm coming back for 131 00:07:29,260 --> 00:07:35,360 you later. And so I started looking at the traffic and trying to figure out why there was 132 00:07:35,360 --> 00:07:41,580 something that was just bothering me about the traffic. And so I started looking at this. And 133 00:07:41,580 --> 00:07:45,980 I was like, there's something suspicious here and I can't really put my finger on it. So I 134 00:07:45,980 --> 00:07:50,980 started looking at the traffic in just one direction at a time. And so this is three 135 00:07:50,980 --> 00:07:57,760 messages in a row, three packets, coming from the door controller to the local controller. And 136 00:07:57,760 --> 00:08:02,520 there's something really, really strange about these packets. And if you haven't figured out 137 00:08:02,520 --> 00:08:09,300 what that is, turns out the first 36 bytes of each message are the same. Which, that's pretty 138 00:08:09,300 --> 00:08:13,760 weird. The data looks very random. It doesn't look like it's some sort of plain text. But at 139 00:08:13,760 --> 00:08:15,960 the same time, 36 bytes are the same. And so I started looking at the traffic in just one 140 00:08:15,960 --> 00:08:19,700 direction. And then the remaining bytes are completely different. So at first I was 141 00:08:19,700 --> 00:08:24,020 thinking maybe it's some kind of proprietary binary protocol or something like that. But 142 00:08:24,020 --> 00:08:28,340 replaying these raw packets wasn't getting me anywhere. So I decided I needed to do some more 143 00:08:28,340 --> 00:08:34,200 analysis. So I went and looked at the literature for this particular product. And they make the 144 00:08:34,200 --> 00:08:40,200 claim, AES-256 network encryption. If I recall correctly, there was also something about this 145 00:08:40,200 --> 00:08:45,940 being used to protect top secret government data in the brochure. Well, there's a lot of 146 00:08:45,960 --> 00:08:49,880 information about this. So I'm pretty sure looking at that PCAP that they're doing it wrong. 147 00:08:50,060 --> 00:08:55,720 Because usually when you see encrypted data, you shouldn't have a pattern to it like that. I'm not 148 00:08:55,720 --> 00:09:00,800 a cryptographer. But I have seen a lot of encrypted protocols. And the ones that are well 149 00:09:00,800 --> 00:09:07,100 designed don't have 36 repeating bytes in them. So I started thinking, okay, maybe they're doing 150 00:09:07,580 --> 00:09:12,560 something weird with this and they're encrypting each message or something like that. But I 151 00:09:12,560 --> 00:09:15,940 couldn't really figure it out from a black box approach having a lot of data. So I started 152 00:09:15,940 --> 00:09:24,960 looking at the end point devices. And they're basically ARM devices running GNU Linux. Some sort 153 00:09:24,960 --> 00:09:31,520 of Debian derivative, it turns out. It may be actually pure Debian from several years ago. And 154 00:09:31,520 --> 00:09:37,540 the actual firmware applications that are used to do the door access control are supplied as 155 00:09:37,540 --> 00:09:43,380 dev packages. And in fact, you could download the updates from the vendor site and get the whole 156 00:09:43,380 --> 00:09:45,920 dev that contains all of the application and all of the code. And you can download all the code. 157 00:09:45,940 --> 00:09:52,640 And all of the libraries that they're using running on each of their applications. But these 158 00:09:52,640 --> 00:09:57,180 packages were actually several hundred megabytes. So I had a number of binaries, libraries, 159 00:09:57,500 --> 00:10:04,160 scripts. And I wasn't sure where to begin. So what tools do we turn to to begin? Well, there's a 160 00:10:04,160 --> 00:10:10,260 bunch of shared objects. And it turns out shared objects have to have some of the symbols left in. 161 00:10:10,340 --> 00:10:15,920 Right? You can't completely strip a shared object or else you can't do run time linking against it. 162 00:10:16,980 --> 00:10:21,660 So it turns out the fastest way to actually find out the names of the symbols in a shared 163 00:10:21,660 --> 00:10:26,920 object. And I know there's some way to do it with object dump or NM or those other tools. But it 164 00:10:26,920 --> 00:10:31,220 turns out just running strings against them is an amazingly effective way to get the names of 165 00:10:31,220 --> 00:10:37,940 symbols out of there. And then I don't have to look at the man pages for NM or object dump. And 166 00:10:38,480 --> 00:10:42,480 you could also use LDD to figure out which binaries were linking against those shared objects. 167 00:10:42,480 --> 00:10:48,640 Now, there's a bit of a wrinkle there if you've never worked on a non-X86 architecture. And that is 168 00:10:48,640 --> 00:10:54,300 that you need LDD that's been compiled particularly for the architecture that you're dealing with. So 169 00:10:54,300 --> 00:11:01,060 in this particular case, you need the arm E-A-B-I version so that LDD can run against these 170 00:11:01,060 --> 00:11:07,740 particular ones. So I know that there's better and much nicer ways of doing this. But it turns out 171 00:11:07,740 --> 00:11:10,600 that if something is stupid and it works, then it's really not stupid. 172 00:11:12,940 --> 00:11:20,720 So after a while, I come across this. In a shared object. Symbol still named. And it's 173 00:11:20,720 --> 00:11:31,080 labeled default AES key. It's also named default AES IV. I've fuzzed a few of the 174 00:11:31,080 --> 00:11:38,100 bytes. I'm sorry. Legal insisted. We have here, though, defaults. But you know what? I was 175 00:11:38,100 --> 00:11:41,960 like, okay, these are the defaults. Maybe these aren't the ones that are actually being used. 176 00:11:42,480 --> 00:11:46,840 And I spent a lot of time looking through the binary. I was like, all right, so where do you 177 00:11:46,840 --> 00:11:51,140 change the key? Like, is it loaded from a configuration file? Is it loaded from the 178 00:11:51,140 --> 00:11:55,900 interface? Is it loaded from an upstream server? Like, how do you change the key? It says 179 00:11:55,900 --> 00:12:01,120 default, so there must be a way to change the key. And I could never find a way to change the 180 00:12:01,120 --> 00:12:07,900 key. And I was really, really confused. So I was like, okay, what does default really mean? 181 00:12:08,460 --> 00:12:12,460 Default means a preselected option adopted by a computer program or other mechanism that's not a 182 00:12:12,460 --> 00:12:17,300 mechanism when no alternative is specified by the user or programmer. It is technically 183 00:12:17,300 --> 00:12:24,580 correct. The programmer did not let you specify an alternative, so it is the default. When we 184 00:12:24,580 --> 00:12:29,980 went to the vendor with our findings, I said, hey, it's labeled as the default key. Please tell 185 00:12:29,980 --> 00:12:33,760 me, was I just an idiot and couldn't find a way to change it? And they were like, no, we never 186 00:12:33,760 --> 00:12:37,560 thought a customer would need to change it, and we were afraid that if they changed it in one 187 00:12:37,560 --> 00:12:42,060 place, it would break their system and would result in all these support costs because the keys 188 00:12:42,060 --> 00:12:48,780 wouldn't be the same on all their devices. And I was like, ah, thanks, guys. All right. So I 189 00:12:48,780 --> 00:12:54,120 have a key. So what can I do with this? I mean, finding a key is cool, but at that point, I can 190 00:12:54,120 --> 00:12:59,660 get some plain text. Well, first I wanted to make sure that it was the right key. So I started 191 00:12:59,660 --> 00:13:04,920 decrypting. And for anyone who's ever looked a little bit at crypto, it turns out that plain 192 00:13:04,920 --> 00:13:11,960 text has lower entropy than the ciphertext. And so a really good sign was that I had long strings of 193 00:13:11,960 --> 00:13:17,240 null bytes in it once I did the decryption. That told me, hey, this is probably some binary 194 00:13:17,240 --> 00:13:23,120 packed protocol. There's lots of zero values. And so I've been able to successfully decrypt it. 195 00:13:24,200 --> 00:13:28,580 But it also turns out they weren't using any sort of a MAC or any authentication on the 196 00:13:28,580 --> 00:13:33,700 encryption, so I couldn't be 100% sure. But it would have been a pretty strange coincidence to 197 00:13:33,700 --> 00:13:40,900 get a bunch of null bytes and lower entropy if I had the wrong key. Unfortunately, the plain text 198 00:13:40,900 --> 00:13:41,940 still looked like a ciphertext. So I was like, okay, I'm going to do this. I'm going to do this. 199 00:13:41,960 --> 00:13:47,600 I'm going to make a bunch of noise, just lower entropy noise than the ciphertext. In general, 200 00:13:47,640 --> 00:13:54,000 plain text is useless to you unless you can assert some sort of meaning to it and figure out what 201 00:13:54,000 --> 00:14:00,060 it's structured. At this point I had the rough equivalent of decrypting it and finding out that I 202 00:14:00,060 --> 00:14:06,420 had Sanskrit inside. I didn't know what it meant, but it was no longer a secret. And it turns 203 00:14:06,420 --> 00:14:11,800 out it was some custom binary protocol. And so I had to start digging further into their binary 204 00:14:11,960 --> 00:14:18,980 analyses by doing binary analysis to try to get an understanding of how this works. So I started 205 00:14:18,980 --> 00:14:24,560 looking at badge reads with correct badge numbers and the responses that were coming back from the 206 00:14:24,560 --> 00:14:33,640 local controller. And getting the door unlock messages back from the local controller. And also 207 00:14:33,640 --> 00:14:38,860 coordinating, correlating with the door status messages in order to figure out, oh, this message 208 00:14:38,860 --> 00:14:41,940 says that the door is unlocked. This message says that the door is unlocked. And so I started 209 00:14:41,940 --> 00:14:45,400 trying to figure out how the door is locked. It turns out that their protocol actually, though, 210 00:14:45,440 --> 00:14:51,840 has some like 40 different message types in it. And so I couldn't figure out all of the messages. 211 00:14:51,960 --> 00:14:56,940 Many of them weren't probably relevant. They were messages to change various settings and timeouts 212 00:14:56,940 --> 00:15:02,040 and things like that. There's a certain amount of time the door remains unlocked after you swipe 213 00:15:02,040 --> 00:15:07,100 your badge, for example, and that can be five seconds, it can be a minute, depending upon the 214 00:15:07,100 --> 00:15:11,840 circumstances. Many of them are still unknown. I couldn't really justify fully reversing 215 00:15:11,940 --> 00:15:17,260 engineering their protocol at that point. But so I wanted to get a working exploit out of this, 216 00:15:17,380 --> 00:15:21,840 right? Like we didn't actually need it for a red team at this point. But like there's just 217 00:15:21,840 --> 00:15:27,260 something about the satisfaction of breaking a physical device and actually seeing that physical 218 00:15:27,260 --> 00:15:32,820 impact in the real world. So in this particular case, hearing the click of the lock mechanism 219 00:15:32,820 --> 00:15:38,260 opened the door. And I was like, all right, I have to keep going at this. I can probably justify 220 00:15:38,260 --> 00:15:41,920 another two or three days before my manager says, oh, this is not working. This is not working. And 221 00:15:41,940 --> 00:15:47,080 I said, well, we found enough to report it and move on. I was like, okay. Going to try to figure 222 00:15:47,080 --> 00:15:51,020 this out. So I start looking at it and there's some sequence numbers in the flow. And this is 223 00:15:51,020 --> 00:15:55,440 actually why the replay attack didn't work. It's not that the crypto is preventing the replay 224 00:15:55,440 --> 00:16:00,280 attack. It's just that they maintain sequence numbers within their application layer between the 225 00:16:00,280 --> 00:16:06,320 two end points. Unfortunately, the door controller connects to the local controller. At first I 226 00:16:06,320 --> 00:16:11,320 wanted to just initiate a new TCP connection to the door controller and say, hey, here's an unlock 227 00:16:11,320 --> 00:16:17,500 message. Unlock. But you can't do that if the door controller is the one reaching out to the 228 00:16:17,500 --> 00:16:22,100 local controller in order to get to things. And it kind of makes sense when you think about it 229 00:16:22,100 --> 00:16:26,520 because your door controller in some facilities, maybe it's behind some sort of NAT, the local 230 00:16:26,520 --> 00:16:32,420 controller is a little further away. It makes sense for the most remote piece of the equipment to 231 00:16:32,420 --> 00:16:38,300 be the one reaching out to the progressively closer to the core pieces of equipment. So if I 232 00:16:38,300 --> 00:16:41,300 couldn't initiate a new connection, I needed to find another way. So I'm going to go back to the 233 00:16:41,320 --> 00:16:47,180 previous slide. Turns out ARP spoofing still works. Thank you. And you just man in the middle of the 234 00:16:47,180 --> 00:16:51,560 connection. Because if you can man in the middle of the connection, you can decrypt and get those 235 00:16:51,560 --> 00:16:58,120 sequence numbers that you need in order to talk to both sides. And in order to avoid the local 236 00:16:58,120 --> 00:17:04,100 controller saying, hey, I lost a connection to a door, I started replying to both sides. That's 237 00:17:04,100 --> 00:17:08,800 what I was using the door message state for. I just kept telling the local controller, yeah, the 238 00:17:08,800 --> 00:17:11,300 door is still locked. Yeah, the door is still closed. You're not going to be able to get the door 239 00:17:11,320 --> 00:17:17,160 back. You're good to go. But to the door controller, I was telling it, hey, I have a remote door 240 00:17:17,160 --> 00:17:23,780 unlock from the administrative console. Please open the door for me. And then at the end, I 241 00:17:23,780 --> 00:17:28,920 just plain dropped the man in the middle. I could have fixed up the TCP sequence numbers and 242 00:17:28,920 --> 00:17:34,480 like adjusted the windows and gotten it back to the same state. But it turns out that on these 243 00:17:34,480 --> 00:17:40,780 networks, these devices are so reliable that the error message of communications lost for a brief 244 00:17:40,780 --> 00:17:41,300 period of time is not going to happen. So I'm going to go back to the local controller and I'm going to 245 00:17:41,320 --> 00:17:45,580 open the door. And you can see that the message is completely ignored by anyone looking at it. In 246 00:17:45,580 --> 00:17:50,960 fact, in our installations, those messages happen hundreds of times per day. They're not going to 247 00:17:50,960 --> 00:17:55,420 send someone to investigate every time a connection is lost. It can happen from a loose 248 00:17:55,420 --> 00:18:00,520 cable. It can happen from a quick drop in power at the site. It can happen from any number of 249 00:18:00,520 --> 00:18:05,540 factors. And so no one is investigating, oh, communication loss that came back 30 seconds later 250 00:18:05,540 --> 00:18:11,300 when it automatically did a reconnect. So it turns out that you could just never do a 251 00:18:11,300 --> 00:18:15,920 message like this. You just need a man in the middle with your encryption key and send it a 252 00:18:15,920 --> 00:18:22,420 message that says unlock the door and it unlocks the door for you. So this is basically what it 253 00:18:22,420 --> 00:18:25,780 looks like. You just need access to the network between the door controller and the local 254 00:18:25,780 --> 00:18:32,820 controller. And you can send an unlock door one message and it will unlock door one. Now, one 255 00:18:32,820 --> 00:18:38,280 interesting thing is when we first reported this to the vendor, their first response was, well, 256 00:18:38,380 --> 00:18:41,280 yeah, you shouldn't give attackers access to the network between the door and the door. So you 257 00:18:41,280 --> 00:18:46,380 just need the door controller and the local controller. And I had to actually stop and think 258 00:18:46,380 --> 00:18:51,200 about how to respond to that for a second. Because I was like, your product brochure says AES 259 00:18:51,200 --> 00:18:56,840 256. If your premise is they can't get physical access, why do you need the encryption in the 260 00:18:56,840 --> 00:19:03,860 first place? And then I said, and do you really think that all installations everywhere don't 261 00:19:03,860 --> 00:19:09,160 have physical access to an attacker? And they were like, well, yeah, you know, you always want 262 00:19:09,160 --> 00:19:11,260 to put these on an isolated network and it just doesn't work. And I said, well, you know, you 263 00:19:11,280 --> 00:19:17,760 should be completely internal to your site and all of these things. And I said, don't you also 264 00:19:17,760 --> 00:19:21,900 sell a security camera product that integrates with this? And they're like, yeah, yeah, we have 265 00:19:21,900 --> 00:19:27,400 security cameras. I said, don't some customers put the security cameras on the outside of the 266 00:19:27,400 --> 00:19:34,960 building? Well, yeah. And the security cameras talk to the network how? Well, yeah, but that 267 00:19:34,960 --> 00:19:39,500 should be on an isolated network that you then just bridge over the connection from the cameras into 268 00:19:41,280 --> 00:19:45,440 controllers network and I said, do you really think your 269 00:19:45,440 --> 00:19:47,560 customers are setting it up that way or do you think they're 270 00:19:47,560 --> 00:19:51,160 just plugging everything into a switch saying, hey, it works and 271 00:19:51,160 --> 00:19:56,620 moving on? Right? I mean, I don't know. It could be maybe 272 00:19:56,620 --> 00:19:59,560 everyone is segmenting every device into their own LAN 273 00:19:59,560 --> 00:20:03,880 segment and all patch panels are carefully hidden behind well 274 00:20:03,880 --> 00:20:10,120 secured doors. It was not marketing. It was in fact 275 00:20:10,120 --> 00:20:16,480 engineering that I was talking to. Although, you know, there 276 00:20:16,480 --> 00:20:21,380 were also managers in the room. So how do you go about fixing 277 00:20:21,380 --> 00:20:24,700 something like this? I'm not coming up here to tell you, oh, 278 00:20:24,780 --> 00:20:27,680 you know, these things are all broken and it's hopeless and 279 00:20:27,680 --> 00:20:31,600 everything like that. How do you actually go about fixing this in 280 00:20:31,600 --> 00:20:34,660 a way that makes the situation better? We tried to work with 281 00:20:34,660 --> 00:20:36,780 the vendor to get an improvement. And my first 282 00:20:36,780 --> 00:20:40,100 suggestion was stop rolling your own crypto. I mean, 283 00:20:40,120 --> 00:20:43,120 I know you're using AES. That's great. But stop rolling your own 284 00:20:43,120 --> 00:20:47,640 implementation of that and use TLS. And they were actually 285 00:20:47,640 --> 00:20:51,240 already linking to live SSL in order to get the AES functions 286 00:20:51,240 --> 00:20:54,140 to do the crypto. So it wasn't like they didn't have it sitting 287 00:20:54,140 --> 00:20:57,880 around. I was like, okay, use TLS. And they come back, all 288 00:20:57,880 --> 00:21:01,740 right, we will make an updated version of the product. And the 289 00:21:01,740 --> 00:21:04,280 updated version of the product will use TLS. And I said, great. 290 00:21:05,040 --> 00:21:08,160 How are you going to do key distribution? And they said, oh, 291 00:21:08,200 --> 00:21:10,100 it's simple. We'll distribute the keys and they're going to 292 00:21:10,120 --> 00:21:17,700 do firmware images. We're still back at hard coded keys. So, 293 00:21:17,820 --> 00:21:21,800 like, why is this such a thing, right? You can easily implement 294 00:21:22,260 --> 00:21:26,480 some proper crypto, but key distribution is really the hard 295 00:21:26,760 --> 00:21:31,220 part of doing transport security on embedded devices. Right? Like 296 00:21:31,220 --> 00:21:34,180 these devices do not have your typical interface that you would 297 00:21:34,180 --> 00:21:40,020 have on your laptop, on your desktop computer. In fact, 298 00:21:40,120 --> 00:21:42,900 many of them may not have host names. How do you do a TLS 299 00:21:42,900 --> 00:21:48,020 certificate verification when I point it to 10.1.1.1, right? No 300 00:21:48,020 --> 00:21:50,140 one is going to give me a certificate for an internal IP 301 00:21:50,140 --> 00:21:54,200 address, rightfully so. And at the same time, I expect to be 302 00:21:54,200 --> 00:21:58,360 able to communicate with that device securely. It also turns 303 00:21:58,360 --> 00:22:02,420 out they told us they couldn't fix the existing devices that 304 00:22:02,420 --> 00:22:05,400 were in place because they didn't have enough flash in 305 00:22:05,400 --> 00:22:09,140 order to have the entire TLS implementation present. So they 306 00:22:09,140 --> 00:22:10,100 said they can only fix it if they don't have an IP address. 307 00:22:10,120 --> 00:22:11,100 So they're going to have to fix it in the next generation of 308 00:22:11,100 --> 00:22:16,160 device. And obviously, these devices should really be on an 309 00:22:16,160 --> 00:22:18,600 isolated network, right? We can't depend on some Internet 310 00:22:18,600 --> 00:22:21,780 based solution for key distribution because I don't 311 00:22:21,780 --> 00:22:25,120 really want my door access controllers reaching out to the 312 00:22:25,120 --> 00:22:28,940 Internet to get their crypto material. Seems like I'm creating 313 00:22:28,940 --> 00:22:32,220 more problems. So we started working with them and we started 314 00:22:32,220 --> 00:22:34,720 thinking internally, even, like, how do you do these sort of 315 00:22:34,720 --> 00:22:38,460 things? So some of the criteria that you need in order to do it 316 00:22:38,460 --> 00:22:40,100 correctly is ensuring that key distribution is not just a 317 00:22:40,120 --> 00:22:42,180 key. That keys are not common across multiple installations. 318 00:22:43,080 --> 00:22:45,840 And that devices need to only communicate with trusted 319 00:22:45,840 --> 00:22:49,760 partners. And each individual message should have both 320 00:22:49,760 --> 00:22:53,040 confidentiality and integrity, which means having a Mac of some 321 00:22:53,040 --> 00:22:57,960 sort or otherwise signing the messages. And finally, they 322 00:22:57,960 --> 00:23:01,280 really shouldn't be rolling their own crypto. So coming up 323 00:23:01,280 --> 00:23:05,200 with this, we came up with a few hypothetical solutions. We 324 00:23:05,200 --> 00:23:07,380 weren't trying to redesign for them, right? We're not a 325 00:23:07,380 --> 00:23:10,100 consultancy, just a user of their product. But we were 326 00:23:10,120 --> 00:23:13,280 trying to make sure that we had something that we could feel 327 00:23:13,280 --> 00:23:18,120 comfortable using. So hypothetical one is use TLS, the 328 00:23:18,120 --> 00:23:21,380 vendor ships each device with a certificate and they trust all 329 00:23:21,380 --> 00:23:26,100 other devices signed by that vendor, right? Strictly speaking, 330 00:23:26,240 --> 00:23:29,060 I think maybe that's better than what we had, but not by much. 331 00:23:30,060 --> 00:23:34,500 And Tacker can just go on eBay, buy their own device, extract a 332 00:23:34,500 --> 00:23:36,820 key, and then they can man in the middle using the key they 333 00:23:36,820 --> 00:23:39,760 extracted from a device on eBay. So that's what we wanted to do. 334 00:23:40,120 --> 00:23:43,140 So this doesn't really get you into a much better situation 335 00:23:43,780 --> 00:23:57,040 than you have with just a hard coded AES key. So someone points 336 00:23:57,040 --> 00:24:00,060 out, why couldn't you just generate a new key at boot time 337 00:24:00,060 --> 00:24:02,680 and say, hey, here's my new key. Well, the problem is you 338 00:24:02,680 --> 00:24:05,880 still need some way to verify that that key belongs to the 339 00:24:05,880 --> 00:24:09,040 device you expect to talk to, right? A newly generated key, 340 00:24:10,120 --> 00:24:12,960 which is fine, but you need some sort of authentication to the 341 00:24:12,960 --> 00:24:17,120 key, which is why we have CAs in the traditional PKI model is to 342 00:24:17,120 --> 00:24:20,020 say that that key is a real key. If I just give you a random key 343 00:24:20,020 --> 00:24:24,960 every time, then anyone in the middle can do it. So one other 344 00:24:24,960 --> 00:24:29,760 proposal, use TLS. Configure each device with a customer 345 00:24:29,760 --> 00:24:36,000 specific CA certificate. And then the key material and the CA 346 00:24:36,000 --> 00:24:40,100 certificate on each device. And then you can use the standard 347 00:24:40,120 --> 00:24:42,880 key. And the biggest problem with that is it becomes difficult 348 00:24:42,880 --> 00:24:47,020 at scale if you have to manually deploy a key and CA certificate 349 00:24:47,020 --> 00:24:51,500 on each individual device. A large installation may have 350 00:24:51,500 --> 00:24:54,180 thousands of these devices in their place. Think about how 351 00:24:54,180 --> 00:24:57,740 many access control doors your employer has. If you work for a 352 00:24:57,740 --> 00:25:01,140 large Fortune 100 company, there's going to be anywhere 353 00:25:01,780 --> 00:25:04,760 from a couple of thousand to even tens of thousands of access 354 00:25:04,760 --> 00:25:10,100 control doors within your offices. So if you have a key, 355 00:25:10,120 --> 00:25:16,060 you can use TLS. You can ship each device with a hardware 356 00:25:16,060 --> 00:25:20,740 attestation key that's baked into a secure chip. And the device 357 00:25:20,740 --> 00:25:25,440 can sign a certificate request on the first boot. And then send 358 00:25:25,440 --> 00:25:28,880 it upstream to a central CA that's maintained on the same 359 00:25:28,880 --> 00:25:33,380 server that is actually making the authentication choices. So 360 00:25:33,380 --> 00:25:36,860 you now have a route of trust that's in the same place as your 361 00:25:36,860 --> 00:25:40,100 database of card credentials and door access control. So that's 362 00:25:40,120 --> 00:25:41,240 you need to be aware that you have access control. Now, this 363 00:25:41,240 --> 00:25:44,840 isn't perfect because it does require some additional setup. 364 00:25:45,000 --> 00:25:47,320 It requires a little bit of additional hardware and the 365 00:25:48,540 --> 00:25:51,180 device attestation key. And it does require that your network 366 00:25:51,180 --> 00:25:55,420 is trustworthy on first use. But in reality, it's a lot 367 00:25:55,420 --> 00:25:58,040 better than where you are. And it's actually very similar to 368 00:25:58,040 --> 00:26:01,200 the SSH model, right? The first time you SSH into a new machine, 369 00:26:01,680 --> 00:26:05,160 you get a prompt to accept the key. And I'm sure we all very 370 00:26:05,160 --> 00:26:08,120 diligently go and check the fingerprint of the key on their 371 00:26:08,120 --> 00:26:10,100 remote server. No, the reality is, if you have access control, 372 00:26:10,120 --> 00:26:10,820 you can't do anything about it. If you're on a network that you 373 00:26:10,820 --> 00:26:13,500 don't think is being screwed with, you say yes. And then if it 374 00:26:13,500 --> 00:26:16,180 ever changes, maybe you start to worry about how your network 375 00:26:16,180 --> 00:26:20,760 was. Additionally, since the CA is sitting on the same host where 376 00:26:20,760 --> 00:26:24,860 your door access control database is sitting or on the 377 00:26:24,860 --> 00:26:28,040 same servers that are providing that information, a compromise 378 00:26:28,040 --> 00:26:30,620 of your CA would have been a compromise of your door access 379 00:26:30,620 --> 00:26:34,080 control system anywhere. So this puts the root of trust in the 380 00:26:34,080 --> 00:26:37,620 same place as your authoritative source of data for it which 381 00:26:37,620 --> 00:26:40,100 results in possibly a breach of your network. So this puts the 382 00:26:40,120 --> 00:26:45,900 and one of the best case scenarios that you can have while still not having to have user 383 00:26:45,900 --> 00:26:51,380 interfaces or individual configuration of the devices. I don't make a claim that this is the 384 00:26:51,380 --> 00:26:57,180 best situation, but we're hoping that this is a model that the vendors of devices like these 385 00:26:57,180 --> 00:27:02,300 might consider moving towards since there already is a central point on each network for the 386 00:27:02,300 --> 00:27:09,120 communications. It's not fully distributed. So I think it's important to note that software 387 00:27:09,120 --> 00:27:14,040 security matters for physical security systems. I think many of you coming to the IoT village 388 00:27:14,040 --> 00:27:19,160 don't need to be convinced of that particular case. But it turns out that a lot of physical 389 00:27:19,160 --> 00:27:23,820 security vendors have so much expertise in terms of physical security, right? They'll tell you, 390 00:27:23,840 --> 00:27:30,200 oh, this lock is unshimmable and we will do this and we have a sensor on the back of the badge 391 00:27:30,200 --> 00:27:34,020 reader that will tell you if it's been pulled off the wall and all of these physical attacks. 392 00:27:34,360 --> 00:27:38,460 But they don't look at the network layer because they still are in the mindset of the physical 393 00:27:38,460 --> 00:27:39,100 attacks. They don't look at the network layer because they still are in the mindset of the 394 00:27:39,100 --> 00:27:43,660 physical attacks that they've been protecting against for years and IP has just been shoehorned 395 00:27:43,660 --> 00:27:49,140 into these systems. The industry could be doing so much more. By the industry, I mean both the 396 00:27:49,140 --> 00:27:53,420 physical security systems and customers. Customers who are aware of these security 397 00:27:53,420 --> 00:27:58,140 vulnerabilities and are aware of these concerns can be applying pressure to the vendors to get 398 00:27:58,680 --> 00:28:03,960 testing, to get their devices, you know, looked at by an independent security consultant and 399 00:28:03,960 --> 00:28:09,080 finding these bugs before they get to market, before they get them installed. And they're 400 00:28:09,080 --> 00:28:16,280 trying to find ways to make them more resistant to network layer tampering. But at the end of the 401 00:28:16,280 --> 00:28:23,560 day, it's an ecosystem and it will all depend upon what customers are asking for. Hopefully 402 00:28:23,560 --> 00:28:29,620 customers will be asking for secure systems since it is a physical security system. But in our 403 00:28:30,380 --> 00:28:36,660 discussions with vendors, it seems like very few customers seem to be caring about the network 404 00:28:36,660 --> 00:28:39,060 security aspects. They just want something that's secure. They just want something that's very, very 405 00:28:39,080 --> 00:28:49,540 secure. And it's going to keep physical concerns at bay. So any questions? I'm happy to take a few. 406 00:28:49,820 --> 00:28:56,480 There's also my Twitter handle, my blog, and a short link for this slide deck if you want to take 407 00:28:56,480 --> 00:29:01,440 another look at it. I also have some IOT hacker stickers. If anyone wants to come up after the talk, 408 00:29:01,520 --> 00:29:06,980 you're welcome to some of those as well. Yes, question? . 409 00:29:16,840 --> 00:29:23,920 . So the question was do I expect some attestation from the server that the device is 410 00:29:23,920 --> 00:29:28,560 actually one of the vendor's devices. Yes, so that's why in this third scenario I said that the 411 00:29:28,560 --> 00:29:33,220 device is shipped with a hardware attestation key. And so I would say that the certificate 412 00:29:33,220 --> 00:29:38,600 request for the first time use would be signed with that to at least show that the certificate is being 413 00:29:38,600 --> 00:29:43,980 issued to one of their devices. Obviously, if a malicious attacker gets one of the devices and 414 00:29:43,980 --> 00:29:48,420 plants it on your network, they might be able to get a key as well. So it's not a perfect solution. 415 00:29:48,740 --> 00:29:55,160 But I think it raises the bar. Yes? . 416 00:30:04,580 --> 00:30:08,580 . So I'm very vaguely familiar with it. I'm going to 417 00:30:08,600 --> 00:30:12,400 ask you a question. In this particular case, the Wiegand, I'm sorry, I should repeat the question. 418 00:30:12,540 --> 00:30:20,900 The question is how will the new OSDP protocol improve compared to Wiegand? And so the reality is it 419 00:30:20,900 --> 00:30:26,100 depends on the attack, right? There are certainly attacks that you've seen like BLE key and things 420 00:30:26,100 --> 00:30:32,380 like that where they're cloning the badge numbers off of the Wiegand wires. I don't know enough 421 00:30:32,380 --> 00:30:37,580 about OSDP to say whether or not that makes a dramatic improvement to those attacks. To this 422 00:30:37,580 --> 00:30:42,700 particular attack, it would have no effect because it's IP protocol between those two devices and 423 00:30:42,700 --> 00:30:46,420 it's their own proprietary protocol. It's no longer Wiegand at that point. It's just 424 00:30:46,420 --> 00:30:51,600 transporting the badge number as a single number. But I do think moving away from a protocol 425 00:30:51,600 --> 00:30:57,140 that was designed for encoding magnetic bit flips is probably the right choice in 2018. 426 00:31:02,380 --> 00:31:08,940 I think it's a good idea for the community to basically realize that the public 427 00:31:08,940 --> 00:31:18,600 ID is a strong one. It's really the right way to do it. We should be making a lot from 428 00:31:18,600 --> 00:31:25,620 something a little bit different. But because essentially, it's not as complex and not as 429 00:31:25,620 --> 00:31:31,680 powerful as we realize it. And we'll have, like, all the way down to the actual 430 00:31:32,380 --> 00:31:51,120 population. So the question basically is, is public key infrastructure the right way to go? 431 00:31:51,200 --> 00:31:57,400 Because public key infrastructure requires immense computing resources to perform the 432 00:31:57,400 --> 00:32:02,360 cryptographic calculations. And so IOT devices can't handle that. So I think it's a good idea to 433 00:32:03,140 --> 00:32:08,040 have a lot of data for various reasons. So I think in this particular scenario, the devices in 434 00:32:08,040 --> 00:32:12,600 question and devices of this style, a lot of the concerns that you mentioned in terms of battery 435 00:32:12,600 --> 00:32:17,840 life, for example, these are not battery powered devices. They're all hard wired. So battery life 436 00:32:17,840 --> 00:32:23,960 is not a concern. And the microcontrollers that are present on them, even on the smaller end, are 437 00:32:23,960 --> 00:32:30,280 more than capable of doing a PKI handshake each time they set up a TCP connection. These devices 438 00:32:30,280 --> 00:32:32,360 don't have high volumes of connectivity. They're not able to do a lot of work. So I think it's a good 439 00:32:32,360 --> 00:32:37,200 idea to have a PKI connection. They're not doing things that, you know, hundreds of connections at a 440 00:32:37,200 --> 00:32:42,560 time. In fact, if it wasn't for the occasional network comms failure on these devices, they stay 441 00:32:42,560 --> 00:32:49,080 connected for days at a time between the two endpoints with a TCP connection. Additionally, 442 00:32:49,320 --> 00:32:54,440 since this isn't part of a public PKI, you could easily do it with elliptic curve cryptography, 443 00:32:55,180 --> 00:33:02,340 which is dramatically easier on processors and much easier to do there. So I'm happy to say that I'm 444 00:33:02,360 --> 00:33:06,100 sure that there are other solutions as well. You said, should we be looking for something new? 445 00:33:06,360 --> 00:33:13,220 Yeah, absolutely. But I'm not aware of anything new that would address the problem in the correct 446 00:33:13,220 --> 00:33:18,320 fashion. If cryptographers have something up their sleeve that they would like to share with me, 447 00:33:18,360 --> 00:33:22,680 I'd love to learn about something else. But this is the best approach that I'm aware of. 448 00:33:52,220 --> 00:34:02,160 . . . Right. So the question is, like, how do you keep from spoofing a device in terms of having the 449 00:34:02,360 --> 00:34:12,640 TPM chip? Well, TPM do have unique keys burned into them at manufacturing time. Extracting those 450 00:34:12,640 --> 00:34:17,740 keys from those devices is supposed to be difficult. The manufacturers make it very difficult. It's 451 00:34:17,740 --> 00:34:24,620 not impossible. But it dramatically increases the bar on an attacker. And if you can start pulling 452 00:34:24,620 --> 00:34:31,220 secrets out of hardware secure elements, there's probably a large number of other attacks that 453 00:34:32,500 --> 00:34:41,560 up to having that capability. Yeah, I mean, if someone is able to start extracting RSA keys from 454 00:34:41,560 --> 00:34:47,340 TPM or secret keys from TPMs, another thing they can do, for example, is completely subvert the 455 00:34:47,340 --> 00:34:54,940 root of trust for like secure boot on a device. If they can get your encryption keys out or secure 456 00:34:54,940 --> 00:35:03,460 keys out of the TPM, I mean, that's what TPMs are designed to resist against is being able to 457 00:35:03,460 --> 00:35:12,880 spoof their identity, right? Sure. Any other questions? Oh, sorry. 458 00:35:30,680 --> 00:35:38,140 By a key device, you mean the badges? Yeah. So one of the reasons that badge cloning is so 459 00:35:38,140 --> 00:35:43,920 possible is that doing proper cryptography so when I was asked earlier about low power devices, 460 00:35:44,180 --> 00:35:53,080 right, that is the ultimate low power device. Your Prox card style badge has a micro controller in 461 00:35:53,080 --> 00:35:54,920 it. But that micro controller is only for the RSA key. So if you have something like a 462 00:35:54,920 --> 00:35:59,620 power by the inductive coupling between the door reader and the 463 00:35:59,620 --> 00:36:03,220 badge. And you expect it to happen in something like a 464 00:36:03,220 --> 00:36:07,440 tenth of a second. And so I've actually had conversations with 465 00:36:07,440 --> 00:36:09,820 designers of these chips. I was like, hey, why isn't it just a 466 00:36:09,820 --> 00:36:13,160 private key in there and you do like an ECDSA signature. Then 467 00:36:13,160 --> 00:36:16,880 no one could ever copy, could clone a badge just by reading 468 00:36:16,880 --> 00:36:20,680 it, right? I mean, ECDSA signatures are, should be 469 00:36:20,680 --> 00:36:24,420 strong. And he was like, yeah, we're dealing with processing 470 00:36:24,420 --> 00:36:28,220 power that's like 1% of what you would need to do an ECDSA 471 00:36:28,220 --> 00:36:32,120 signature. So if you had an active badge that had a battery 472 00:36:32,120 --> 00:36:35,120 in it, that would probably be feasible. But then you have 473 00:36:35,120 --> 00:36:37,700 people locked out of their office when the battery dies. So 474 00:36:38,380 --> 00:36:41,720 there's tradeoffs to be sure. I would love to see a solution 475 00:36:41,720 --> 00:36:44,780 where you basically have end to end cryptographic assurance all 476 00:36:44,780 --> 00:36:49,380 the way from your badge to the server that verifies it and back 477 00:36:49,380 --> 00:36:49,980 to the door. 478 00:36:57,480 --> 00:37:01,120 Yeah, so the bridge toll devices, they actually use very 479 00:37:01,120 --> 00:37:06,500 similar technology to a prox card. But most of what makes it 480 00:37:06,500 --> 00:37:09,580 chunkier is not in fact a battery, at least in the ones 481 00:37:09,580 --> 00:37:13,220 I've opened up in California. It's much, much, much larger 482 00:37:13,220 --> 00:37:16,600 antennas than what you have in the badge so that it can do the 483 00:37:16,600 --> 00:37:19,740 longer range read. And of course the readers that are mounted 484 00:37:19,740 --> 00:37:23,020 over the highway for the bridge tolls are much, much, much more 485 00:37:23,020 --> 00:37:24,400 powerful. So that's something that I would love to see. So I 486 00:37:24,400 --> 00:37:27,580 would love to see more readers than you have in it. It's also 487 00:37:27,580 --> 00:37:30,380 why you see if you go through a drive-in garage where you have 488 00:37:30,380 --> 00:37:34,420 to badge into the garage, you notice the readers there are 489 00:37:34,420 --> 00:37:38,960 typically maybe a foot by a foot in size. Whereas the ones on 490 00:37:38,960 --> 00:37:43,420 the door molding are two inches by three inches. And all of that 491 00:37:43,420 --> 00:37:46,260 size difference, it's not so that you can see it more easily 492 00:37:46,260 --> 00:37:48,500 or something like that. It's entirely so that you have a much 493 00:37:48,500 --> 00:37:52,300 bigger antenna and can have much more power coupling between the 494 00:37:52,300 --> 00:37:54,380 two devices, giving you a longer read range. So that's a 495 00:37:54,400 --> 00:37:58,040 big change. All right. I think I've just about run out of my 496 00:37:58,040 --> 00:38:02,420 time. If anyone wants to chat afterwards, I'll be around for a 497 00:38:02,420 --> 00:38:04,200 little bit. And thank you very much.