All right. Hello. Wow, that's loud. Hi, this is access control done right the first time. My name is Tim Clevenger. A little bit about me. I'm a network cybersecurity engineer by day. By night, I'm a low-voltage hardware junkie, vintage computing enthusiast. In a previous life, I was certified with Linnell and S2 access and video. And I got to drive around in a truck and look at other systems available in Southern California. I'm on the Physical Security Village Discord. My handle is NSFW. No, I will not tell you why it's my handle. A little bit about this talk. You know, we have a lot of talks about bypasses. My talk is more about the installation of a system. I'm looking to give some tips and tricks based on the kind of systems that I had seen and had to work on. A lot of vendors out there, you know, it's a low-bid situation and you get a minimal viable product. You know, it kind of does the job, but it's not particularly maintainable, reliable, or even secure. I'm focusing more on large facilities. You know, if you're a small gym with a single door, some of this will apply to you, but maybe not quite as much. Just starting off, I have an RFP based on this talk and some other stuff that I've learned. I'll put this QR code up again at the end in case you can't catch it right now. So, choosing a system. Most of the larger vendors use equipment created by a company called Mercury Security. They're kind of the big gorilla. They have local storage and independent processing, so you don't have to worry about having to pry open your server room door if your DNS goes down Facebook. They have multiple vendor support and they are reflashable. The cool thing about that is if you decide you're tired of Linnell and you want to go with Genentech or Honeywell, they can reflash the firmware on most of your existing equipment and it reduces the amount of hardware that you have to buy to switch vendors. So, a little bit about system layout considerations. So, depending on where you're going to do this installation, you'll have a couple of different installation options. I'll start here with kind of a basic four-door layout. So, this is a typical enclosure right here. The top board is your access panel that has all the brains of the operation and makes all of the decisions about whether to let somebody in based on their card number and access rights. The board below it is an additional door controller that's connected. That additional controller doesn't have a lot of brains on its own. It will communicate with that main panel board and that's where the decision happens. What that means is if you lose communication between those two boards, any of those dumber, cheaper door controller boards become suddenly very dumb. They will either lock down, lock open, or they'll just use a facility code to grant access, which isn't always the best as far as security goes. There's an enclosure here, obviously, that houses all of this. There's a power supply, and then there are batteries. So, when you go to place this enclosure with your panels in it, there are a couple things to consider. You know, kind of the obvious stuff like, you know, environment, heat, humidity, power, physical security. Is this going to be on a wall that people can walk by and pry the, you know, pry the door open on it? Accessibility, you know, is this going to be up on a ceiling somewhere where maybe your batteries aren't going to get changed regularly because you have to get out a long, you know, step ladder or something? And then the future, and I'll talk about that here in just a second. So, for wiring considerations, so the main access panel connects to your server computer that runs the software with Ethernet, typically. Ethernet, as we know, is kind of a shorter range communications medium. So, what they have between your access panel and your individual door controllers is called RS-485. It's an older four-wire communications protocol. Theoretically, it's good to 4,000 feet. However, it's much more sensitive to interference than, you know, Ethernet or some of the newer communications technologies. There's also, there's a foil shield in the wire that you have to deal with. There's termination at the end of a string of devices. So, what that means is that RS-485 is substantially, in my opinion, as somebody who's had to go and crawl into spaces and replace wire, it's less reliable over long distances. But we will see in a minute, there are some places that you just really don't have a choice. So, next up, we think about our distances to doors. So, for something like a magnetic lock or a motorized crash bar, that's going to take a lot more amperage than just, you know, a kind of a simple relay-based door opener. And if that door also happens to be a long way from where you want to place your panel, then you end up with a voltage drop, which causes the locks to either not unlock when you want them to, or in the case of a magnetic lock, the magnet becomes so weak from low voltage that you could just pull the door open anyway. And what will happen is, when you go to do your installation, the vendor will figure this out after they've already installed the door and installed the panel and run all the wire, and they'll go, okay, well, we're going to need to do a remote power supply. And what they'll do is they'll find a place up in the ceiling nearest to the door and put the cheapest power supply they possibly can, not having any consideration for the environment it's going to be in. It's not going to have batteries. They're not going to tell you where it is. It's going to be up in a where when you do need to get to it, you're like ripping out drywall or something even more expensive. So part of your system layout considerations with your project manager is to say, okay, this door is way over here. Are we going to need a remote power supply? If so, let's get this going now. In addition, you know, again, hard lid. So if you've got that drywall above your closet where you're going to be doing your installation, that's going to affect your installation. Block walls or concrete walls, like maybe don't put this in a hallway where you're going to have to tunnel through concrete to get all your wiring to your doors. Integrity and security, you know, I'm going to make sure that if I'm going to have wiring run from my suite over here through a public hallway to this suite over here above a drop ceiling, maybe I'll put that in conduit so it's not easy to get in either tamper with or cut or, you know, other shenanigans. So here's one of the two kind of situations that I'm going to talk about. This is, you know, a warehouse. We have, you know, 65, 70 doors for trucks to back into. And then every few doors you have a person door so that somebody can get in and out of the warehouse. And you want to do access control on these. Well, you know, we're talking 700 or 800 feet here or maybe more to go from where your access panel might be at the far end across to each one of these drops to these doors. So what you might do is you might go ahead and use that RS-485. You know, it's not in a harsh environment so it's probably safe to use. It's going to be exposed there so if something happens you can get to it. But it allows you to do this without having to run multiple Ethernet drops or fiber with media converters or whatever it takes to get Ethernet 700 feet down that doorway. Excuse me. Here's a kind of a typical Class A office space. You know, this is a floor in pretty much any Class A building that you'd be into. So this right here, you know, it's a relatively small space here. What you probably want to do is a centralized panel somewhere near the elevators where you kind of fan out to all of the doors that you need access to from there. But something to consider for the future, you know, there might be, oh I don't know, a pandemic and suddenly companies are trying to get rid of excess space because people are working from home. So if you plan this out ahead of time when you're first moving into the space you can say, you know what, these are pretty much, you know, they're two half offices essentially. They each have their own elevators, have their own entrance doors. Maybe I'll go ahead and put a panel on each side and then RS-485 to my doors from there. And that way if for some reason we need to get rid of half of this floor, it's real easy to just put up some drywall, cut access to that half of the system, and whoever moves in can handle that. So again, it's just something to consider if you're looking at a space. Look at how you need to do it today, but also maybe look at the future. This is a larger installation. I'm just showing this here for you. Again, power supply, batteries. Here we have the access panel at the top with the ethernet drop, and then two door controller boards that are below this. This is kind of, when you're talking about these centralized panel situations, this is what you typically do. Use an enclosure. You have six or eight door controllers. Each one can control two doors. And you kind of keep them in one enclosure or two enclosures right next to each other. The RS-485 runs are really short. In this case it's a pre-wired panel, so you don't even have to mess with it. And it just gives you that kind of extra security to have that there instead of saying, I'm going to run a door controller way over on the other side of the building. And that means that all of that wire from here to there can be a problem in the future. Now let's talk a little bit about wiring to the doors. Some of this is a repeat if you've seen some of the bypass stuff already, but I'll try to warp through that part because I think we know how to bypass some of this stuff. So when you're wiring from your panels to the doors themselves, so some of your wiring considerations. So you're going to need a power, some heavier gauge wires to the door hardware, whatever unlocks the door. Motion sensors are going to need a power in addition to their contacts. You're going to need some kind of shielded cable to the badge reader. That could be RS-485 or it could be Wigan cable. You're going to have your door contact and your request to exit wiring is going to need to go on there. And then it's a good idea to have extra cables, extra conductors there for tamper switches, auxiliary inputs and outputs and that type of thing. The wrong way to do this is to let your vendors just decide because what they will do is they will find the cheapest wire. Often it's what they have on the truck and they will run undersized power connectors to doors they think don't need it. You know, that could be a fire hazard in addition to just, you know, having door opening problems. They could use unshielded splice cable. They could use Ethernet or Cat 3 telephone wire if that's what they have access to and that causes communications issues. And then if they don't have those extra conductors in there, that means that in the future if your receptionist needs a push button to be able to open the door without getting up, I mean, that could involve tunneling under the concrete or up into the ceiling or, you know, it's a lot of extra work that you could have avoided if you had that already pre-wired with those additional conductors. So the right way to do this is to specify composite access control cable. So this is all together in one cable. It's produced by manufacturers who specialize in this. It comes in multiple options depending on how many extra conductors you want, how, you know, what kind of locks you're using. It comes with the right card reader communications cable that's shielded properly, has all the spare conductors, and then it has that thick extra jacket on the outside. So if they're pulling it through a drop ceiling and they just grind, you know, the cable against a sharp piece of metal, it's less likely to cause damage to the conductors inside. It's also unique. You know, a thick yellow cable, they're not going to just go cutting through that, you know, with, you know, willy-nilly like they might a bunch of thin white cables. A little bit about power supplies and enclosure. So the way the power works in this situation is typically AC or DC, 12 volts or 24 volts or accommodation of 12 and 24 volts. Your project manager can help you pick the right system as far as voltage goes. You want to make sure that they specify one that has a power supply with a charger. Batteries are extremely important. The last thing you want is to get locked out of your building when the power goes out because you didn't have batteries on this and all your doors are locked. Verify the amperage and the temperature range. This is particularly important if you're going to be putting that enclosure in a hot room. And then also AC fail and battery fail outputs on the power supply that you can run back to your system and it'll alert you if your batteries are dead or if you're about to, or if you have an AC fail and it's running on batteries, it's good to catch that stuff before your batteries die. The enclosure, you know, there are different sizes, single or multiple panels in a single enclosure. You can also chain them together so that you can run multiple stuff in, you know, multiple enclosures. They're typically sold as a kit with the power supply. So again, make sure that you get that specified to what you need. You can get them pre-wired like the one that we saw a couple slides ago, or you can DIY if you want to wire your own. Make sure you get one that has a tamper switch like you can see in the picture here and a key lock so that you can lock that enclosure. If it's going to be in a because all these enclosures have the same key. And then optionally weatherproof if you've got a parking lot with a gate on it way out in the, you know, at the other end of the property. Maybe put it in the weatherproof enclosure if you don't have a guard shack or someplace to install the panel out there. And then a little bit about batteries. I cannot tell you how many times I've seen either no batteries or dead batteries because they hadn't been changed since the system was installed. They're right in the enclosure, so they're hard to remember sometimes. Again, you have to have a power supply with charging capability. What I like to do is write that install date on the battery. So if you're ever in that enclosure in the future, you can look at and see, you know, how far ahead those batteries are going to need to be replaced. Typically, I do it every three to five years. If it's in a nice air conditioned server room, then I'll replace them every five years. If they're out in a hot, you know, garage or something, then I'll replace them every three years. You can usually tell because when you pick up the battery and shake it, you'll hear rattling because the electrolytes drying up when the batteries are going dead. And again, use those battery fail outputs. I grabbed this out of a hardware guide. Connect that and run it back to your panels so that you can see when either the batteries are no longer chargeable or if the AC has failed, maybe a breaker has tripped somewhere and you need to go take care of that. A little bit about those remote power supplies. Again, for those power hungry locks, make sure that you get those specified out ahead of time during the planning phase. That way, you know where those are going to go. You know they're going to be in a place that you can get to and not have to cut through drywall. You're going to make sure then that it still has the power supply, the charger and the batteries. You know, having that exterior door on its own power supply with no batteries in it does you no good because that's the door you want to get in when the power goes out. A little bit about fire safety. Your doors, the locking mechanism on your door can be either fail safe or fail secure. What that means is if your access system crashes and it does happen, you want to know whether you can actually get out of the building or not. If it fails secure, then that door is not going to open when the software is crashed. If it's fail safe, then the door is going to go unlocked. Now there's different reasons that people would choose a fail safe versus a fail secure depending on what you're protecting. I would just say that if you choose to do something that is a fail secure, make sure that people who are in that room can get out in the case of a fire, a power outage, a software crash. It's not worth life safety to protect assets. Find another way to do it. Make sure that your system is going to comply with the local fire code and the authority having jurisdiction. That's sometimes a fire marshal, sometimes it's a building inspector, depends on your jurisdiction. And also if you're particularly in a class A building, you may be required by your lease to tie your system into a building fire alarm using a relay like one of these that opens the door or unlocks the lock when the fire alarm goes off. Again, make sure that you take care of that. And then finally, there's a box in the U.S. at least on the outside of most of these buildings. It's called a Knox box. It's a little hardened metal box that the fire department can open up to get a key into the building. I typically will put a badge in there because I don't have keys. We don't do keys. But if you do, make sure that's in there. I strongly recommend that you put a tamper switch in that so that if somebody uses the probably well-known Knox box common keys out there, that you know that that's been tampered with. A little bit about door hardware. I'm not going to go through these. These are, you know, pretty standard. The electrified strike is the one that you see here. That's the one that makes the nasty buzzing sound and the door never closes quite right. Solenoids are the more common ones that you see on office doors. The only thing with those is if your door is set to stay open 8 to 10 or 12 hours a day, that solenoid is staying engaged that entire time. And those things can fail prematurely and then you can't open the door. So it's just something to keep an eye on. Magnetic locks typically need more power than standard locks because the electromagnet requires that voltage in order to have the holding power. And those will always fail safe. So maybe don't use those for your front doors because if the power goes out, they're going to open. And then finally, motorized crash bars, which I've only seen in one place, but they're expensive, but they're pretty good. So quick thing about door hardware. So you have two sensors on a door. Typically, you have the door contact that tells you whether the door is open or closed. That can be a reed switch up in the door frame. It can be integrated into the lock set itself. And then the request to exit, that's what tells the access control system that this door is being opened legitimately from the inside by the correct person and not being jimmied open from the outside. So it detects if that door is being forced or bypassed and it still allows the door to open from the secure side. There's also in cases where you have, for instance, a mag lock, that request to exit switch will actually unlock the door because there's not really any other way to do it. And then typically, your other options are a button, a buzzer, a motion detector, or a switch integrated into the handle for your Rex. The reason I mention these is because we need to talk a little bit about supervision. Supervision is a set of resistors in series or parallel that need to be as close to the door contact or Rex contact as possible. And what they do is they change your situation from either these wires are open or closed, circuit is open or closed, it gives you now four different readings depending on whether the door is open, the door is closed, or if the wires are cut or the wires are shorted. And that's very important because the last thing you need is the door contact falling off and then people can just open the door and go in and out. You don't know what's happened. Motion detectors, again, there's attack examples here. We've talked about this quite a bit. You can come to Physical Security Village and we'll talk you through it. They're often used to trigger and unlock, again, on motion, I'm sorry, on mag lock doors and some other types. So not only are they a security risk, but they can actually open the door if you can bypass them. And then door handle attacks, I know that we just had a presentation on this. Some of those mitigations, you know, dual Rex, so you have to have something where they pull the door handle on the inside and there's a motion detector or a second badge reader or a push button. Again, if you're going to use a badge reader to exit, make sure you have a way to get out. Typically, you get one of those plastic covers that you rip off and pull the handle and they'll let you out while also setting off an alarm. That's what that's for is so that you can get out in case of a fire and you don't happen to have your badge. A little bit about badges and readers. So, you know, badges come in multiple sizes and shapes. You know, you've got the fobs, you've got the smart card readers. If you're from the 80s, you've got mag stripe cards, like there's all kinds. Additional factors, biometrics and pin entry. This thing here is called a scramble pad. It's cool every time you hit the button, all the numbers are in a different order so people watch you put your pin in and they still can't figure out what it is. The badges, the most common types of badges, 125 kilohertz prox, that's what your gym gives you. 1356 megahertz iClass are what you typically get in an office situation. They're pretty trivially broken and clonable. The MyFairDes fire and the COs are not broken directly but there are downgrade attacks on those. Prox and iClass, they have a facility code and a badge ID in a 26-bit format. The facility code is 0 to 255 and you can buy any badges from eBay or any other vendor with whatever facility code that you want. So, for instance, most of the places that I've worked, for whatever reason, and this is Texas, California, Utah, the code 132 is the most common facility code. I have no idea why, but if you bought a batch of 132 codes or cards from eBay and just walked up to a random building, you have a fair chance of getting in. The, again, the 26-bit Prox and iClass is pretty trivial. Any compatible reader can read it, so you can just go buy an HID reader off of eBay, attach it to an ESP32, touch your badge to it, it'll give you the facility code and the badge number. You can also do portable readers. I know we've had talks about, you know, the clipboard thing where you put a badge reader in your clipboard and you just read people's badges with it. So the solution is custom badges. Like I said, there are, there's the MyFair ones. I've never used those. I've only used the HIDs. So they have a format, excuse me, a format called HID Corporate 1000. It's COs protected, so it's more secure. It has a dedicated facility code. When you sign up, your company gets its own facility code because there's millions of possibilities. And then only you can order more cards with that particular facility code. These are 48-bit formats. So for each facility code, you can have 8.3 million badge numbers, which is cool because you can pick a number in the high range and not worry about if you acquire another company, those badge numbers coinciding with somebody else's. I'm going to warp through this real quick because my time's out. Make sure you disable older formats on your readers. That's downgraded. Badge reader communications, Wigan. It's a low-speed protocol from 1975. The mitigation is called OSDP. OSDP has very few compromises. They're pretty easy to avoid. The biggest problem with OSDP is that 84% of installers never or seldom use it. So it's almost never used these. And this is from 2015. So what else should I do? Test your readers regularly. Set up alerts in your software. Again, so many people have software and they've never set up alerts in it. Document everything. I put a sticker on the bottom of every reader that has a number. And I match that number to my access control system. So when they say reader number 24 is not working, I can just go fix it. Check your batteries. Batteries die. They don't do you any good. Audit your user list regularly. And then come visit us in the physical security village. I'm actually going to be volunteering over there right after this if you have any questions for me. Thank you very much.