start	end	text
0	5820	All right. Hello. Wow, that's loud. Hi, this is access control done right the first time. My name
5820	12140	is Tim Clevenger. A little bit about me. I'm a network cybersecurity engineer by day. By night,
12140	16580	I'm a low-voltage hardware junkie, vintage computing enthusiast. In a previous life,
16580	22060	I was certified with Linnell and S2 access and video. And I got to drive around in a truck and
22060	29060	look at other systems available in Southern California. I'm on the Physical Security
29060	33760	Village Discord. My handle is NSFW. No, I will not tell you why it's my handle.
34660	38760	A little bit about this talk. You know, we have a lot of talks about bypasses.
38760	44620	My talk is more about the installation of a system. I'm looking to give some tips and tricks
44620	50060	based on the kind of systems that I had seen and had to work on. A lot of vendors out there,
50060	54100	you know, it's a low-bid situation and you get a minimal viable product. You know,
54100	57460	it kind of does the job, but it's not particularly maintainable, reliable,
57460	63300	or even secure. I'm focusing more on large facilities. You know, if you're a small gym
63300	68040	with a single door, some of this will apply to you, but maybe not quite as much.
69180	74480	Just starting off, I have an RFP based on this talk and some other stuff that I've learned.
74560	78520	I'll put this QR code up again at the end in case you can't catch it right now.
79200	85600	So, choosing a system. Most of the larger vendors use equipment created by a company called Mercury
85600	90800	Security. They're kind of the big gorilla. They have local storage and independent processing,
90800	96760	so you don't have to worry about having to pry open your server room door if your DNS goes down
97380	103320	Facebook. They have multiple vendor support and they are reflashable. The cool thing about that
103320	107460	is if you decide you're tired of Linnell and you want to go with Genentech or Honeywell,
107460	110660	they can reflash the firmware on most of your existing equipment
110660	114720	and it reduces the amount of hardware that you have to buy to switch vendors.
115720	122340	So, a little bit about system layout considerations. So, depending on where you're
122340	126220	going to do this installation, you'll have a couple of different installation options.
126240	131580	I'll start here with kind of a basic four-door layout. So, this is a typical enclosure right
131580	136840	here. The top board is your access panel that has all the brains of the operation and makes all of
136840	142800	the decisions about whether to let somebody in based on their card number and access rights.
142800	146120	The board below it is an additional door controller that's connected.
146120	152160	That additional controller doesn't have a lot of brains on its own. It will communicate with
152160	156680	that main panel board and that's where the decision happens. What that means is if you
156680	161620	lose communication between those two boards, any of those dumber, cheaper door controller
161620	167260	boards become suddenly very dumb. They will either lock down, lock open, or they'll just
167260	172780	use a facility code to grant access, which isn't always the best as far as security goes.
173920	178760	There's an enclosure here, obviously, that houses all of this. There's a power supply,
178760	185240	and then there are batteries. So, when you go to place this enclosure with your panels in it,
185240	189560	there are a couple things to consider. You know, kind of the obvious stuff like, you know,
189560	195480	environment, heat, humidity, power, physical security. Is this going to be on a wall that
195480	200840	people can walk by and pry the, you know, pry the door open on it? Accessibility, you know,
200840	204680	is this going to be up on a ceiling somewhere where maybe your batteries aren't going to get
204680	208840	changed regularly because you have to get out a long, you know, step ladder or something?
209000	212580	And then the future, and I'll talk about that here in just a second.
213180	219960	So, for wiring considerations, so the main access panel connects to your server computer that runs
219960	225620	the software with Ethernet, typically. Ethernet, as we know, is kind of a shorter range communications
225620	233180	medium. So, what they have between your access panel and your individual door controllers is
233180	240360	called RS-485. It's an older four-wire communications protocol. Theoretically,
240360	246300	it's good to 4,000 feet. However, it's much more sensitive to interference than, you know,
246300	251780	Ethernet or some of the newer communications technologies. There's also, there's a foil
251780	255900	shield in the wire that you have to deal with. There's termination at the end of a string of
255900	261360	devices. So, what that means is that RS-485 is substantially, in my opinion, as somebody who's
261360	267880	had to go and crawl into spaces and replace wire, it's less reliable over long distances. But we
267880	271580	will see in a minute, there are some places that you just really don't have a choice.
272020	278300	So, next up, we think about our distances to doors. So, for something like a magnetic lock
278300	282680	or a motorized crash bar, that's going to take a lot more amperage than just,
282680	288960	you know, a kind of a simple relay-based door opener. And if that door also happens to be a
288960	293700	long way from where you want to place your panel, then you end up with a voltage drop,
293700	299120	which causes the locks to either not unlock when you want them to, or in the case of a magnetic
299120	304640	lock, the magnet becomes so weak from low voltage that you could just pull the door open anyway.
304640	309320	And what will happen is, when you go to do your installation, the vendor will figure this out
309320	313500	after they've already installed the door and installed the panel and run all the wire,
313500	317860	and they'll go, okay, well, we're going to need to do a remote power supply. And what they'll do
317860	323420	is they'll find a place up in the ceiling nearest to the door and put the cheapest power supply they
323420	328680	possibly can, not having any consideration for the environment it's going to be in. It's not
328680	332400	going to have batteries. They're not going to tell you where it is. It's going to be up in a
332400	337940	where when you do need to get to it, you're like ripping out drywall or something even more
337940	342760	expensive. So part of your system layout considerations with your project manager
342760	348580	is to say, okay, this door is way over here. Are we going to need a remote power supply? If so,
348580	356900	let's get this going now. In addition, you know, again, hard lid. So if you've got that drywall
356900	361880	above your closet where you're going to be doing your installation, that's going to affect your
361880	367660	installation. Block walls or concrete walls, like maybe don't put this in a hallway where
367660	373280	you're going to have to tunnel through concrete to get all your wiring to your doors. Integrity
373280	378360	and security, you know, I'm going to make sure that if I'm going to have wiring run from my
378360	383360	suite over here through a public hallway to this suite over here above a drop ceiling, maybe I'll
383360	389860	put that in conduit so it's not easy to get in either tamper with or cut or, you know, other
389860	396400	shenanigans. So here's one of the two kind of situations that I'm going to talk about. This is,
396400	403140	you know, a warehouse. We have, you know, 65, 70 doors for trucks to back into. And then every
403140	408700	few doors you have a person door so that somebody can get in and out of the warehouse. And you want
408700	414340	to do access control on these. Well, you know, we're talking 700 or 800 feet here or maybe more
414340	420860	to go from where your access panel might be at the far end across to each one of these drops to
420860	426360	these doors. So what you might do is you might go ahead and use that RS-485. You know, it's not in
426640	430720	a harsh environment so it's probably safe to use. It's going to be exposed there so if something
430720	437360	happens you can get to it. But it allows you to do this without having to run multiple
437360	443680	Ethernet drops or fiber with media converters or whatever it takes to get Ethernet 700 feet down
443680	453620	that doorway. Excuse me. Here's a kind of a typical Class A office space. You know, this is a floor
453620	458860	in pretty much any Class A building that you'd be into. So this right here, you know, it's a
458860	463740	relatively small space here. What you probably want to do is a centralized panel somewhere near
463740	470900	the elevators where you kind of fan out to all of the doors that you need access to from there.
471840	477040	But something to consider for the future, you know, there might be, oh I don't know, a pandemic and
477040	482840	suddenly companies are trying to get rid of excess space because people are working from
482840	487120	home. So if you plan this out ahead of time when you're first moving into the space you can say,
487120	491560	you know what, these are pretty much, you know, they're two half offices essentially. They each
491560	498920	have their own elevators, have their own entrance doors. Maybe I'll go ahead and put a panel on each
498920	505360	side and then RS-485 to my doors from there. And that way if for some reason we need to get rid of
505360	510760	half of this floor, it's real easy to just put up some drywall, cut access to that half of the system,
510760	514920	and whoever moves in can handle that. So again, it's just something to consider if you're looking
514920	519620	at a space. Look at how you need to do it today, but also maybe look at the future.
521340	525400	This is a larger installation. I'm just showing this here for you.
525400	530020	Again, power supply, batteries. Here we have the access panel at the top with the ethernet drop,
530020	534620	and then two door controller boards that are below this. This is kind of, when you're talking
534620	538920	about these centralized panel situations, this is what you typically do. Use an enclosure.
539200	544920	You have six or eight door controllers. Each one can control two doors. And you kind of keep them
544920	550240	in one enclosure or two enclosures right next to each other. The RS-485 runs are really short.
550240	554300	In this case it's a pre-wired panel, so you don't even have to mess with it. And it just gives you
554300	559720	that kind of extra security to have that there instead of saying, I'm going to run a door
559720	564800	controller way over on the other side of the building. And that means that all of that wire
564800	570820	from here to there can be a problem in the future. Now let's talk a little bit about wiring to the
570820	577000	doors. Some of this is a repeat if you've seen some of the bypass stuff already, but I'll try to
577000	582480	warp through that part because I think we know how to bypass some of this stuff.
582480	587520	So when you're wiring from your panels to the doors themselves, so some of your wiring
587520	591960	considerations. So you're going to need a power, some heavier gauge wires to the door hardware,
591960	596460	whatever unlocks the door. Motion sensors are going to need a power in addition to
596460	601540	their contacts. You're going to need some kind of shielded cable to the badge reader. That could be
601540	607300	RS-485 or it could be Wigan cable. You're going to have your door contact and your request to
607300	611960	exit wiring is going to need to go on there. And then it's a good idea to have extra cables, extra
612640	617400	conductors there for tamper switches, auxiliary inputs and outputs and that type of thing.
618220	623600	The wrong way to do this is to let your vendors just decide because what they will do is they
623600	628400	will find the cheapest wire. Often it's what they have on the truck and they will run undersized
628400	633500	power connectors to doors they think don't need it. You know, that could be a fire hazard in
633500	639480	addition to just, you know, having door opening problems. They could use unshielded splice cable.
639480	645640	They could use Ethernet or Cat 3 telephone wire if that's what they have access to and that causes
645640	650280	communications issues. And then if they don't have those extra conductors in there, that means that
650280	655040	in the future if your receptionist needs a push button to be able to open the door without getting
655040	660940	up, I mean, that could involve tunneling under the concrete or up into the ceiling or, you know,
660940	665660	it's a lot of extra work that you could have avoided if you had that already pre-wired with
665660	671740	those additional conductors. So the right way to do this is to specify composite access control
671740	679580	cable. So this is all together in one cable. It's produced by manufacturers who specialize in this.
679700	683440	It comes in multiple options depending on how many extra conductors you want, how, you know,
683440	688760	what kind of locks you're using. It comes with the right card reader communications cable that's
688760	693840	shielded properly, has all the spare conductors, and then it has that thick extra jacket on the
693840	698360	outside. So if they're pulling it through a drop ceiling and they just grind, you know, the cable
698360	704340	against a sharp piece of metal, it's less likely to cause damage to the conductors inside. It's also
704340	708760	unique. You know, a thick yellow cable, they're not going to just go cutting through that, you
708760	716120	know, with, you know, willy-nilly like they might a bunch of thin white cables. A little bit about
716120	721200	power supplies and enclosure. So the way the power works in this situation is typically AC or DC,
721200	727380	12 volts or 24 volts or accommodation of 12 and 24 volts. Your project manager can help you pick
727380	733660	the right system as far as voltage goes. You want to make sure that they specify one that has a
733660	738760	power supply with a charger. Batteries are extremely important. The last thing you want is to get
738760	742440	locked out of your building when the power goes out because you didn't have batteries on this and
742440	748680	all your doors are locked. Verify the amperage and the temperature range. This is particularly
748680	754340	important if you're going to be putting that enclosure in a hot room. And then also AC fail
754340	760660	and battery fail outputs on the power supply that you can run back to your system and it'll alert
760660	766160	you if your batteries are dead or if you're about to, or if you have an AC fail and it's running on
766160	773480	batteries, it's good to catch that stuff before your batteries die. The enclosure, you know,
773480	777700	there are different sizes, single or multiple panels in a single enclosure. You can also chain
777700	782420	them together so that you can run multiple stuff in, you know, multiple enclosures. They're
782420	788200	typically sold as a kit with the power supply. So again, make sure that you get that specified to
788200	792900	what you need. You can get them pre-wired like the one that we saw a couple slides ago, or you can
792900	798860	DIY if you want to wire your own. Make sure you get one that has a tamper switch like you can see
798860	806020	in the picture here and a key lock so that you can lock that enclosure. If it's going to be in a
806020	811200	because all these enclosures have the same key. And then optionally weatherproof if you've got
811340	815640	a parking lot with a gate on it way out in the, you know, at the other end of the property.
815960	820380	Maybe put it in the weatherproof enclosure if you don't have a guard shack or someplace to install
820380	826620	the panel out there. And then a little bit about batteries. I cannot tell you how many times I've
826620	831400	seen either no batteries or dead batteries because they hadn't been changed since the
831400	837180	system was installed. They're right in the enclosure, so they're hard to remember sometimes.
837900	841980	Again, you have to have a power supply with charging capability. What I like to do is
841980	845500	write that install date on the battery. So if you're ever in that enclosure in the future,
845500	850300	you can look at and see, you know, how far ahead those batteries are going to need to be replaced.
850420	854420	Typically, I do it every three to five years. If it's in a nice air conditioned server room,
854420	858040	then I'll replace them every five years. If they're out in a hot, you know,
858760	863420	garage or something, then I'll replace them every three years. You can usually tell because when you
863420	867040	pick up the battery and shake it, you'll hear rattling because the electrolytes drying up when
867040	872860	the batteries are going dead. And again, use those battery fail outputs. I grabbed this out of a
872860	880140	hardware guide. Connect that and run it back to your panels so that you can see when either the
880140	885020	batteries are no longer chargeable or if the AC has failed, maybe a breaker has tripped somewhere
885020	890860	and you need to go take care of that. A little bit about those remote power supplies. Again,
890860	896520	for those power hungry locks, make sure that you get those specified out ahead of time during the
896520	900620	planning phase. That way, you know where those are going to go. You know they're going to be
900620	905000	in a place that you can get to and not have to cut through drywall. You're going to make sure
905000	909540	then that it still has the power supply, the charger and the batteries. You know, having that
909540	915400	exterior door on its own power supply with no batteries in it does you no good because that's
915400	923080	the door you want to get in when the power goes out. A little bit about fire safety. Your doors,
923080	929140	the locking mechanism on your door can be either fail safe or fail secure. What that means is if
929140	934700	your access system crashes and it does happen, you want to know whether you can actually get
934700	938880	out of the building or not. If it fails secure, then that door is not going to open when the
938880	943660	software is crashed. If it's fail safe, then the door is going to go unlocked. Now there's
943660	947920	different reasons that people would choose a fail safe versus a fail secure depending on what you're
947920	953240	protecting. I would just say that if you choose to do something that is a fail secure, make sure
953240	958360	that people who are in that room can get out in the case of a fire, a power outage, a software
958360	966360	crash. It's not worth life safety to protect assets. Find another way to do it. Make sure that
966360	972720	your system is going to comply with the local fire code and the authority having jurisdiction.
972720	977400	That's sometimes a fire marshal, sometimes it's a building inspector, depends on your jurisdiction.
977620	982600	And also if you're particularly in a class A building, you may be required by your lease
982600	986920	to tie your system into a building fire alarm using a relay like one of these
986920	994660	that opens the door or unlocks the lock when the fire alarm goes off. Again, make sure that
994660	1000000	you take care of that. And then finally, there's a box in the U.S. at least on the outside of most
1000000	1005260	of these buildings. It's called a Knox box. It's a little hardened metal box that the fire
1005260	1009920	department can open up to get a key into the building. I typically will put a badge in there
1009920	1015280	because I don't have keys. We don't do keys. But if you do, make sure that's in there. I strongly
1015280	1020560	recommend that you put a tamper switch in that so that if somebody uses the probably well-known
1021340	1026700	Knox box common keys out there, that you know that that's been tampered with.
1027480	1032280	A little bit about door hardware. I'm not going to go through these. These are, you know, pretty
1032280	1037380	standard. The electrified strike is the one that you see here. That's the one that makes the nasty
1037380	1043880	buzzing sound and the door never closes quite right. Solenoids are the more common ones that
1043880	1048820	you see on office doors. The only thing with those is if your door is set to stay open 8 to 10 or 12
1048820	1054860	hours a day, that solenoid is staying engaged that entire time. And those things can fail
1054860	1058640	prematurely and then you can't open the door. So it's just something to keep an eye on.
1059140	1063660	Magnetic locks typically need more power than standard locks because the
1064900	1070680	electromagnet requires that voltage in order to have the holding power. And those will always
1070680	1075640	fail safe. So maybe don't use those for your front doors because if the power goes out,
1075640	1079400	they're going to open. And then finally, motorized crash bars, which I've only seen
1079400	1087740	in one place, but they're expensive, but they're pretty good. So quick thing about door hardware.
1087740	1092060	So you have two sensors on a door. Typically, you have the door contact that tells you whether
1092060	1098540	the door is open or closed. That can be a reed switch up in the door frame. It can be
1098540	1103360	integrated into the lock set itself. And then the request to exit, that's what tells
1103360	1108840	the access control system that this door is being opened legitimately from the inside by
1108840	1114460	the correct person and not being jimmied open from the outside. So it detects if that door
1114460	1119460	is being forced or bypassed and it still allows the door to open from the secure side.
1119900	1124020	There's also in cases where you have, for instance, a mag lock, that request to exit
1124020	1127940	switch will actually unlock the door because there's not really any other way to do it.
1128440	1133620	And then typically, your other options are a button, a buzzer, a motion detector, or
1134160	1138760	a switch integrated into the handle for your Rex. The reason I mention these is because we
1138760	1143340	need to talk a little bit about supervision. Supervision is a set of resistors in series
1143340	1148540	or parallel that need to be as close to the door contact or Rex contact as possible.
1148540	1154560	And what they do is they change your situation from either these wires are open or closed,
1154560	1160140	circuit is open or closed, it gives you now four different readings depending on whether the door
1160140	1165060	is open, the door is closed, or if the wires are cut or the wires are shorted. And that's
1165060	1170460	very important because the last thing you need is the door contact falling off and then people
1170460	1176740	can just open the door and go in and out. You don't know what's happened. Motion detectors,
1178160	1181380	again, there's attack examples here. We've talked about this quite a bit. You can come
1181380	1186580	to Physical Security Village and we'll talk you through it. They're often used to trigger
1186580	1193220	and unlock, again, on motion, I'm sorry, on mag lock doors and some other types. So not
1193220	1198700	only are they a security risk, but they can actually open the door if you can bypass them.
1199320	1203860	And then door handle attacks, I know that we just had a presentation on this. Some of
1203860	1207980	those mitigations, you know, dual Rex, so you have to have something where they pull
1207980	1211900	the door handle on the inside and there's a motion detector or a second badge reader
1211900	1216800	or a push button. Again, if you're going to use a badge reader to exit, make sure you have a way
1216800	1221520	to get out. Typically, you get one of those plastic covers that you rip off and pull the
1221520	1226100	handle and they'll let you out while also setting off an alarm. That's what that's for is so that
1226100	1232360	you can get out in case of a fire and you don't happen to have your badge. A little bit about
1232360	1236600	badges and readers. So, you know, badges come in multiple sizes and shapes. You know, you've got
1236600	1240360	the fobs, you've got the smart card readers. If you're from the 80s, you've got mag stripe
1240360	1245980	cards, like there's all kinds. Additional factors, biometrics and pin entry. This thing here is
1245980	1249240	called a scramble pad. It's cool every time you hit the button, all the numbers are in a
1249240	1253960	different order so people watch you put your pin in and they still can't figure out what it is.
1253960	1261460	The badges, the most common types of badges, 125 kilohertz prox, that's what your gym gives you.
1261460	1265940	1356 megahertz iClass are what you typically get in an office situation. They're pretty
1265940	1272900	trivially broken and clonable. The MyFairDes fire and the COs are not broken directly but
1272900	1280720	there are downgrade attacks on those. Prox and iClass, they have a facility code and a badge ID
1280720	1289740	in a 26-bit format. The facility code is 0 to 255 and you can buy any badges from eBay or any
1289740	1296900	other vendor with whatever facility code that you want. So, for instance, most of the places
1296900	1304260	that I've worked, for whatever reason, and this is Texas, California, Utah, the code 132 is the
1304260	1309960	most common facility code. I have no idea why, but if you bought a batch of 132 codes or cards
1309960	1317680	from eBay and just walked up to a random building, you have a fair chance of getting in.
1318560	1322740	The, again, the 26-bit Prox and iClass is pretty trivial. Any compatible reader
1322740	1329340	can read it, so you can just go buy an HID reader off of eBay, attach it to an ESP32,
1330140	1333260	touch your badge to it, it'll give you the facility code and the badge number.
1333640	1339940	You can also do portable readers. I know we've had talks about, you know, the clipboard thing
1339940	1345160	where you put a badge reader in your clipboard and you just read people's badges with it.
1345780	1351680	So the solution is custom badges. Like I said, there are, there's the MyFair ones. I've never
1351680	1358480	used those. I've only used the HIDs. So they have a format, excuse me, a format called HID
1358480	1364700	Corporate 1000. It's COs protected, so it's more secure. It has a dedicated facility code. When
1364700	1369520	you sign up, your company gets its own facility code because there's millions of possibilities.
1369720	1373380	And then only you can order more cards with that particular facility code.
1373380	1378740	These are 48-bit formats. So for each facility code, you can have 8.3 million badge numbers,
1378740	1383140	which is cool because you can pick a number in the high range and not worry about if you acquire
1383140	1391580	another company, those badge numbers coinciding with somebody else's. I'm going to warp through
1391580	1396160	this real quick because my time's out. Make sure you disable older formats on your readers. That's
1396160	1402640	downgraded. Badge reader communications, Wigan. It's a low-speed protocol from 1975.
1403360	1412100	The mitigation is called OSDP. OSDP has very few compromises. They're pretty easy to avoid.
1412100	1418740	The biggest problem with OSDP is that 84% of installers never or seldom use it.
1418740	1425660	So it's almost never used these. And this is from 2015. So what else should I do? Test your
1427460	1433000	readers regularly. Set up alerts in your software. Again, so many people have software and they've
1433000	1437380	never set up alerts in it. Document everything. I put a sticker on the bottom of every reader
1437380	1441600	that has a number. And I match that number to my access control system. So when they say
1441600	1447640	reader number 24 is not working, I can just go fix it. Check your batteries. Batteries die. They
1447640	1452960	don't do you any good. Audit your user list regularly. And then come visit us in the physical
1452960	1456020	security village. I'm actually going to be volunteering over there right after this if you
1456020	1458980	have any questions for me. Thank you very much.
