Today I am chatting about RFID cloning, the typical equipment that you will use on engagements and audits, as well as the pros and cons of each piece of gear. I give my opinion on what type of gear a physical pentester or auditor should get, when to use each and how to best utilize them to accomplish your objectives.
We also discuss how you might go about deciding ahead of time, what equipment to bring with you on engagements to maximize success and why some devices are better than others in some situations.
I walk through war stories on how to actually go about cloning RFID cards in the field by performing embedded recon, combining social engineering with specific equipment and even how to use redundancies to ensure success.
This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit covertaccessteam.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00welcome to the covert access team podcast today we're going to be talking about rfid cloning with cat chief instructor brian harris so let's start with the basics of rfid technology and why it's so relevant to physical security yeah so as
SPEAKER_02companies and organizations have gotten away from standard locks and standard doors and this type of thing they've moved into an access control system which is what we know right the standard id badge or some type of little token uh maybe it's a little dongle looking thing on your key chain. Maybe if you're really into it, it's an embedded thing in the palm of your hand. But most of us are familiar with some type of access control system in the form of an employee ID. And that's what you see most of the time. Access control systems are,
SPEAKER_02they're very, very simple, but it's just a way to funnel employees or people who should be allowed to be in a building. Sometimes that's a gym, sometimes that's a work environment or whatever, but we've all seen these. I honestly can't think of a single instance in the last 10 years where I've been on an engagement, whether it be a pen test or an audit where I haven't seen some form of RFID, you know, access control system.
SPEAKER_00Can you talk a little bit about why people have been diverting from keys to access control systems and maybe some of the benefits of access control systems? I know we're going to spend a lot of this podcast talking about ways to basically take advantage of these systems, but there is a reason why people are investing in these systems. Can we talk a little bit about those benefits?
SPEAKER_02A lot of it just has to do with, one, a misconception that RFID technology was safer, and two, its convenience. RFID technology, when it first came out, was kind of seen as this very secure, high technology kind of solution to the problem of, what do you do against people who can pick locks?
SPEAKER_01So,
SPEAKER_02you know, ever since time immemorial, we've had people who can pick locks going all the way back down to, you know, skeleton keys with various warded locks. And, you know, it's, you know, with key impressioning and lock picking, and it's always been this cat and mouse game and it still is. But access control systems have been around for a long, long time at this point, decades. And it was really just kind of seen as one, it's more secure, right? It's high tech, right? And that, weirdly, has never really gotten away from how we view it.
SPEAKER_02We still view access control system somehow as more secure than a standard key. But just like lock picking, you can clone badges. You can attack the reader. There's ways to bypass an access control system, sometimes even easier than lock picking. So yes, it is very common these days. But in my opinion, it's no safer than a standard lock.
SPEAKER_00Now, I know that you said that there hasn't been a project that you've been on or a test that you've been on in the past 10 years where RFID cloning or access control hasn't been a part of the assignment. Can you share maybe one or two examples of jobs where you've cloned RFID badges in a an access control system in a novel or interesting way.
SPEAKER_02Yeah, so last time on the podcast, I talked about doing it in a cafe, right? I use long-range badge readers to clone badges of people. So basically the idea there was that if you have a backpack or you have a shoulder bag or a briefcase or something with a long-range badge reader, and you can get it within between one and three feet of somebody parallel to the badge, then you can usually read it. And depending on the encryption type and if you already have the keys, that can take anywhere from... a few seconds up to a few minutes to actually break the encryption, clone the badge.
SPEAKER_02So I'm not going to go back into that example. But there was an example that I did recently at a large pension company. And so in this instance, like many organizations, there was a public accessible cafe, not necessarily in the lobby of this building, but connected to the lobby, kind of just out. It was halfway in the building, halfway out the building. that I used for my semi-embedded recon. So embedded recon is where you get inside of a building under real or false pretexts to kind of scout it out, look for the security, look for where people are wearing their badges,
SPEAKER_02look for choke points, that sort of thing. You can think of embedded recon as if you wanted to walk into a bank dressed well, Most banks have free coffee in the lobby. So if you walked into the lobby of a bank dressed semi well, you were pretending to be on your phone and you walk, get some of their free coffee, you drink it and you're looking around pretending to be on your call. Maybe let five minutes ago by finish the coffee, put the phone down and then go up to the teller and say, hi, I'm so and so I'd like to, you know, Think about opening up an account in your bank.
SPEAKER_02Could you help me out? There's nothing illegal about that. And realistically, there's not much suspicious about it. It becomes more and more suspicious as time goes on because people don't typically go to banks. But if you have somebody on your team who's over the age of 65, that fits perfectly. But that's the idea of embedded recon, right? Can you get into the building under real or false pretext just to scout it out? You're not actually trying to abuse anything. You're not trying to bypass anything. You're just trying to see where all the, get an insider feel. So in this case, I use the cafe in the same way, right?
SPEAKER_02So the cafe is attached to the building. I'm kind of there looking for employee badges, where they're using them, what they look like, what the lanyards look like, you know, all these kinds of things. Some of the things that we were able to figure out was, is that as a pension company, this company allowed anyone, any company to make real meetings with their organization because it makes sense, right? They, as a pension company, if you have a company that has a thousand employees, it would be very beneficial for them to take over the pension of all of those employees.
SPEAKER_02Right. So we set up a real meeting with this company, and I was operating with one colleague of mine. And what we had discovered through our embedded recon was that the front desk staff kept access control badges for cleaning staff and janitors and anybody of that sort who was going to be coming into the building. They kept those badges behind the front desk. So they were within arm's reach. You could definitely lean over the desk and grab the badge.
SPEAKER_02But that's a very awkward move, right? Walk up to the secretary and reach over the desk to grab a badge. That's very suspicious. And you can't really use a long range reader for this because it has to be parallel. So if I had a long range reader as a briefcase, even if it was within, you know, a half a foot of the actual badge, because it's now perpendicular, it's not going to make that read. And of course, it would be very awkward if I literally held the bag over the desk. So I had to come up with a new different approach. And this is where I used the idea of using a flipper with a Wi-Fi or an RFID extender.
SPEAKER_02Now, the thing about flippers that are great is that they can go into infinite read mode. So that's not a technical term. That's just what I refer to it as, where you just tell the device, read the badge, and it will just attempt to read a badge, and it'll sit there passively trying to read a badge kind of indefinitely, which is great. And then if you take some rubber bands and a RFID extender, which is basically, it just looks like two RFID badges that are connected by a long wire. And what this does is it acts as both a receiver and a transmitter.
SPEAKER_02So it doesn't matter which end goes where. But if you take one of those ends and you use rubber bands to tie around the flipper and you put that whole thing in your pocket, And then you run the other end up your sleeve and have it so it's just barely outside the palm of your hand. So it's very hard to see unless you're showing somebody the palm of your hand. And you can kind of see where I'm going with this. But the idea was that we set up a real meeting. We made up a fake company online on LinkedIn. And we said we had, I don't know, I think we had like 500 employees.
SPEAKER_02And we were interested in this pension company taking over the pension for all of our people. We made up a real meeting with them. And me and a colleague showed up. Now, when we walked in, I immediately walked off to the side, pretending to be on a phone call the entire time. And I was wearing very, very thick glasses. It wasn't really thick glasses, but it was thick glasses. And my colleague was using some innocuous name, Bob Smith. But I had purposefully given them a very obnoxious sounding, long Indian style name.
SPEAKER_02And what we had noticed was that when somebody would make a meeting with this company, they they would give them little guest badges. Now these guest badges get you through the front gate and they have your name guest followed by your name printed on it. And when we showed up to the desk, I'm standing off to the side of the desk. My colleague walks to the front of the desk and he says, hi, we're from so-and-so company. We have a meeting in 20 minutes. I'm so-and-so, this is my colleague so-and-so. And when we got the guest badges with our names printed on them, my colleague,
SPEAKER_02my fake colleague, looks at me and laughs and points to my badge and says, can you believe they always spell your name this way? Now, what I did was I pretended to get off the call for a minute. I squinted really hard through my thick glasses like I was having difficulty seeing. I put the phone in my pocket and I leaned in over the desk, pulling the glasses down to see what he was saying. And I said, while I was in this position, leaned over the desk, I said, oh, you know, that's everybody spells it that way. Don't worry about it. My name is so confusing to people of this country that I was currently working in.
SPEAKER_02And I said, everybody gets it wrong. It's no big deal. It's actually spelled this way, but this is perfectly fine. Don't worry about it. And I smiled and I laughed and I took the badge from her and we went about our day. Now, the reason why I did that was because the entire time that I was leaning over the desk, I actually had my hand on the badge. I didn't have a device in my hand and I had put the secretary on a defensive footing, which is really important. If I had just leaned over the If I had just leaned over the desk, that's kind of a red flag.
SPEAKER_02That's kind of off-putting, right? But the secretary, her job is to be the front man for the company. She is supposed to be there. And any person who walks through the door is greeted by this person. They are there to be nice. They're there to be helpful and friendly. And right off the bat, she thought that she had made a mistake. And I was a potential investor in the company. I was potential business.
SPEAKER_00Or potential customer, yeah. Yes.
SPEAKER_02Yes. Thank you. I was a potential customer of this company and she could have just ruined that opportunity if I was really sensitive. So she's already on a very defensive footing. And the reason why that's important is because as a secretary who's already thinks that she's made a mistake, she's much less likely to accost me over me in kind of violating what might be considered her personal space by leaning over the desk a little bit. So this whole setup was a way that we cloned a badge. And it turned out later, we found out that we cloned a janitor's badge who had full access to the entire building.
SPEAKER_02So we went about our meeting and we thanked the person and then we left. And now we had a valid badge. And so, but that was a way that we were able to clone a badge and combining RFID cloning and social engineering, which is often what you will be doing.
SPEAKER_00Gotcha. And so in that example, you used the Flipper with the RFID extender. Can you talk a little bit about some of the common RFID cloning tools? I know you just wrote a blog post looking at the Flipper Zero, the iCopy, Chameleon Ultra, and Proxmark. Which one's your favorite and why?
SPEAKER_02So I don't have a favorite. I have, just like anything else, these are all tools and they all have their benefits. Really, I always kind of go with Thomas Sowell on this one and say there's no good or bad, there's just trade-offs. The Proxmark is very good at what it does. It's the Swiss Army knife. But if you're going to use the Proxmark, you basically have two options. Either you're going to have to have that thing connected to a laptop and be running console commands while you try to use it, or you're going to have to buy a whole bunch of extra bells and whistles so that it can actually be used via your phone.
SPEAKER_02And neither is really convenient in the field. Because if you're trying to use a Proxmark to clone a badge through your phone, then you have to basically be running two devices simultaneously. And that's not the most convenient thing to do in the world. The Proxmark is the most, it can do the most. It can clone badges the quickest. It's constantly being updated. So these are all pros, right? If you want the best, in my opinion, best way to use the Proxmark, go to the Iceman GitHub repo and use that fork because it's the best.
SPEAKER_02And he's always running videos and blogs and all this kind of stuff. And it's probably the best way to go. But again, pros and cons, right? It's also expensive. The Flipper, on the other hand, it's $100. It's very, very cheap. It's robust. It's a jack of all trades. It does a lot of things okay. And it's also constantly being worked on. There's different forks for it. There's the default firmware. There's the momentum firmware. There's all kinds of different types of people have made basically firmware
SPEAKER_02depending on how they want to run it, which is great. It's also open source, so it's always being updated. It's constant. That's great. The downside to the flipper, of course, is that it's the slowest. So when you're cloning badges, in my experience, there have literally been badges where I have had to wait for, I'm not kidding, five to 10 minutes. And so you can imagine if you're inside of a building or you're trying to social engineer somebody and you're trying to clone a badge and you have to sit there for five to 10 minutes, even if you find a badge on a desk, the person has walked away to the bathroom or the coffee machine or whatever,
SPEAKER_02five to 10 minutes is an eternity to sit there and go, come on, come on, come on, come on, come on.
SPEAKER_01Sure.
SPEAKER_02So it's, you know, yes, it's very, very good at what it does. It's very, very cheap, but it can be exceptionally slow. The iCopy, which is another good one, iCopy is basically a Proxmark in a box. So an iCopy is a closed source project, which is bad, in my opinion, because it means that only one person or group actually is updating it at any given time. And if they decide to stop for any reason, well, you're screwed. It's just discontinued.
SPEAKER_02And there's also no forks, right? So there's nobody who's coming along and saying, oh, I'm looking at what you've done, and I bet I could improve upon it or adjust it in some useful way. That doesn't exist. So it's a very expensive tool. It's like $500, $600. But it's basically a Proxmark in a box, so it's very fast. You can clone things just as fast as you can with a Proxmark. But there's one thing with the iCopy that makes it stand above pretty much anything else. And that is the I have no idea what I'm doing, do everything for me button.
SPEAKER_02With a Proxmark, you can run like Autopone and other things. And it will try its best to figure out everything. Is the card high or low frequency? What type of card is it? What's the encryption type? What's trying to break it? It'll try to do all this stuff for you. The iCopy, by comparison, has a button on it that just does all that for you by default, which can be very handy if you're trying to social engineer somebody or if you need to basically just put a badge on a thing, push a button while you're talking to somebody or while you're multitasking and
SPEAKER_02have it clone the badge very fast. So that's useful. One of the downsides to the iCopy, however, also is that it takes an eternity to boot up. So it has a shit, I'm sorry, it has a very bad battery life. The flipper, okay, the flipper on the, the battery on the flipper seems to be almost indefinite. I've had instances where I haven't used a flipper for months, turn it on and it's like, it's like 99% charged. But if I have an iCopy and I fully charge it and I haven't used it in a week, it's dead.
SPEAKER_02So that's an issue. There's also some, because it's probably a closed source project, there's some issues where sometimes we'll turn the iCopy on and it'll go into like this boot error mode and you have to undo it. And it takes like one to two minutes to actually boot up, which again is an eternity. So when you're going to use the thing, when you walk into the building, you have to have the thing on, but it only has like a three, two, three hour battery life to start with. So that's, again, so I don't, there really aren't any, perfect solutions. There's just pros and cons.
SPEAKER_02Now, these aren't necessarily card cloning devices, but there are rogue readers and long-range readers, and those are also fantastic. But yeah, again, they all have their place.
SPEAKER_00And I think one really interesting point you made is essentially, regardless of what device you use, you have to know your device. You cannot... Your window of opportunity may be so narrow and you may only get that one chance. For example, in the example you started this podcast with, you can't let a mistake like, oh, it's dead or it went into this different mode or something like that.
SPEAKER_00You could lose your entire opportunity to clone that card.
SPEAKER_02Yeah.
SPEAKER_00So you're not prepared.
SPEAKER_02No, you're absolutely right. You have to know your tools and you have to you have to know how to get them out of situations. So knowing how to unscramble a bad situation is is very, very important. Right. If you if you have an error and you're on a time crunch, you have to know how to fix it quickly. And yeah, if your iCopy dies, then if that's all you have, then that's it. You're done. You can't clone the badge. So it is tricky.
SPEAKER_02There's a lot of things about this that you just need to know your equipment. And I always encourage you to bring a backup. One of the things that I usually do is I just throw a flipper in a bag just as a backup because it's not a great solution. But in worst case scenario, if I'm running some other device and the device crashes or it shorts out or it, it won't read or the battery died. It's always better to have a backup. Um, and the benefit is of course the flipper is, you know, it's a hundred bucks. So if it, if it breaks or you lose it or whatever, you're not out a tremendous amount of money.
SPEAKER_02Um, unlike, you know, which is kind of hilarious because in my opinion, when you hold a I copy or if you hold a, uh, uh, a Proxmark or an iCopy, they feel very flimsy. Like if you drop them down a flight of stairs, that thing is definitely destroyed forever. But the Flipper, which is $100, you could drop that thing off a cliff and it seems like it's going to be fine. It's surprisingly robust. So, yeah.
SPEAKER_00And I know that you kind of walked through some of the pros and cons, battery life, cloning duration, things like that. But are there certain conditions under which you would use this device over that device? How do you kind of make that decision, make that distinction of which device to use?
SPEAKER_02Yeah. So, okay. So you, in my opinion, when you're doing this, when you're going into a building, think of it as how am I anticipating cloning a badge? What are the situations and scenarios where I could reasonably clone a badge? So in the last episode, we talked about how I wanted to clone badges by getting in front of or behind people in line to a cafe, right? well, OK, if I'm going to do that, then obviously I need a long range reader, right? I can't literally put the flipper with the extender, which is in the palm of my hand,
SPEAKER_02and reach up and touch somebody's chest for 10 seconds or their hip, right? Very awkward. Similarly, with an iCopy, I still need to basically put the card on the device. So again, very awkward. So you think about, OK, how am I anticipating this working? How am I anticipating cloning a badge? If I think that I'm going to clone a badge at a distance, like I'm going to be in line with somebody, for a cafe or restaurant or whatever, then bring a long range reader. If I think that I'm going to be moving through a building and there might be the possibility where a card is going to be on the desk,
SPEAKER_02then go with a flipper with an extender or an iCopy, right? It just really depends. So for example, if I come across the desk, let's say it's lunchtime. I'm inside the building. I've made it inside, but I haven't cloned a badge yet. Maybe I've tailgated. Maybe I've picked a lock. Maybe I jumped through a window, whatever. But I'm inside the building and I've yet to clone a badge. Everybody's at lunch. I find a card on a desk. Great. Okay. I could clone it. Well, if nobody's around and I have an iCopy in my pocket and it's on,
SPEAKER_02so I don't have to wait for the boot up time, I might just use an iCopy. because it's gonna be really, really fast and nobody's around. But at the same time, if there's a lot of people around, then I might use the flipper with the extender because I can think of an excuse to lean under a desk. I can drop a pen. I could drop my phone. I could bend down to tie my shoe. I could do anything that I want to do. And as long as I've got that flipper in read mode with the extender in the palm of my hand, I can put that on the card.
SPEAKER_02I can bend down and grab whatever I'm going to do. I can stand back up. And most people will look at that situation and say, well, he didn't have a device in his hand and he didn't take my card. So... Why do I care? Right. It's a little awkward. I put his hand right on my card, but I mean, nothing happened. He didn't take anything. Most people don't realize that's even a possibility that you could have some type of RFID and cloning thing in the palm of your hand. Of course, it doesn't have to be the palm of your hand. You could be creative and put it on your elbow or somewhere else inside of a sleeve. I don't know. I just find the palm of the hand is usually the easiest for me.
SPEAKER_00Probably also the most mobile. Yeah. Now, with all of these different devices, does a physical pen tester need to have all of them to perform a successful pen tester audit?
SPEAKER_02No, you absolutely do not need all these bells and whistles and all these toys to do these things. You absolutely don't. We've all seen instances where people have literally just, what is that? In the movie Spy Game, there's a scene in which Robert Redford is playing the senior spy and he's teaching Brad Pitt. And Brad Pitt says something along the lines of what tools or gadgets do you need? And Robert Redford's character says something like, most of the time, all you need is a pocket knife, a stick of gum and a smile. And it's like, yeah, that's honestly, that's about right. Like if you're very good,
SPEAKER_02if you're very confident and charismatic, you can often breach with nothing more than social engineering. That's all you need. Um, but having more tools gives you more options. So, you know, it's kind of like saying, how do you get to work? Well, if the only thing available to you is your feet, well, then you're walking. If you have a bicycle, well, then you could walk or bike. If you have a car, you kind of see that the more options you have, the more options you have. That's really all that it comes down to. One of the downsides that I see a lot of organizations have is that they don't have
SPEAKER_02a dedicated physical security or physical pen testing team. And as a result, it usually comes down to Bob, the web app guy, who has an interest in physical pen testing, and he might have a flipper. And that's all the tools and gadgets you got. Maybe he has an underdoor tool. Maybe he has a set of lock picks and a flipper. And because there's no dedicated team, there's no dedicated tools, that's all we have. So we have to make this work. And it's like, yeah, okay, you can probably make that work, but it's harder. It's much, much harder.
SPEAKER_02So like go back to if I wanted to clone badges waiting in line for the coffee shop, that attack vector basically is off limits now. I literally can't do that because I cannot think of a way that I could be standing in front or behind you in a line, you're wearing a badge around your neck. And if all I have is a flipper with no extender or anything else, I can't think of a way that I could touch the flipper to your chest for 10, 30 seconds and you not notice. Like that would be really, really hard to do. Maybe someone can think of a way, but having that long range reader gives you options.
SPEAKER_00Understood. And now, when I asked that question, I said, would you need these devices for a test or an audit? Do you ever use RFID tools on audits versus pen tests? And I guess maybe a good place to start is to talk about the difference between those two, and then we can kind of get to the RFID tools for auditing.
SPEAKER_02Yeah, sure. Okay. So basically the fundamental difference between a physical pen test and a physical audit is that a pen test is testing your security. It's exactly what you think it is. We are trying to be sneaky, break into the building, do sneaky stuff and get out without getting caught. That's the whole goal, right? That's what you're doing. the audit, by contrast, is that oftentimes you are not trying to be sneaky. There might be sneaky elements to it, but you're not trying to be sneaky, you're not doing any recon, and you're just testing everything.
SPEAKER_02So with a pen test, during your recon phase, which is usually about half the time of the entire engagement, you're making a list of every last possible vulnerability you see, and you're making kind of a a plan, you know, well, we think we can get in this way. And then we also think we can get in that way. And then we might be able to do this over here. And you're making a list of all the possible ways you think you can get in and you can think you can accomplish whatever the objective is. And then you rank them from most likely to succeed to absolutely stupidest, most likely to get you caught. And of course you start with the most likely to succeed.
SPEAKER_02But because of that, and especially if the client comes back and says you cannot get caught. So oftentimes clients will say, look, we don't want you to get caught because we want to scare the board of directors into a bigger budget. So please do not get caught in that instance, because if you did get caught, then the board of directors is going to say, well, yeah, somebody broke in and they did these bad things, but we caught them. So we don't need to actually increase our security. So you're not going to test every method you have, right? If you have a really stupid method, like I'm just going to walk in, you know, with a hard hat on and a clipboard wave to the secretary and hope she buzzes me through.
SPEAKER_02Like that's a pretty loud attempt, right? It's not necessarily not going to succeed, but it's harder to buy. Like if she had cost you and says, you know, Hey, who are you? And, you know, show me a work order and this and that, that becomes far trickier than if you can slip in, if you can clone a badge, if you can break in some other way, et cetera. An audit by comparison is that you're not doing any of that. You're literally just coming into the building and you're testing every last possible vulnerability and every last possible security feature that they have and seeing if it is vulnerable. If you look at a door and you say, I bet I could slip that latch.
SPEAKER_02Try it. See if you can. You look at their badge and say, I want to see if I can clone that badge. Are they running clonable or unclonable technology? If I pull the badge reader off the wall, is there a tamper switch and is it hooked up correctly? And does somebody get alerted? And if somebody does get alerted, do they actually action on it? Or is it more like a car alarm going off where nobody cares?
SPEAKER_01So,
SPEAKER_02you know, you're, you go through all these processes and kind of to answer the second question you had about what RFID stuff you're going to use the same exact stuff, right? You might not use the long range readers because there's not really a need for that, but you're still going to check for stuff. Are, are employees wearing their ID badges on the train and the bus, you know, when they leave work, are they going to the cafe outside of work or the restaurant for lunch and they're still wearing their badges? That's stupid because I'm going to try and either clone them or, uh, take pictures of them, you know, to get a good high quality image.
SPEAKER_02cloning them actually has a weird gray area outside of work. But you might do, so there's a gentleman named Travis Weathers. He has a great set of tools on his website to physical exploit. I encourage everybody to go there. Now, one complaint that I have with his website is that they don't ship to Europe, which kind of sucks. But basically he makes long range readers and rogue readers, which are fantastic. So rogue readers are basically, they look just like real readers.
SPEAKER_02In fact, they really are real readers, but you put them on places that don't require it. So this, when I'm doing an audit, I actually will do this. I will get into the building and I'll take a reader and I'll put it on a door that doesn't require it. And I'll see how many employees actually do that batch, especially if that door is on the outside of the building somewhere. And the reason for this is that... So suppose the RFID reader is running WeGAN technology, which is like this 1970s unencrypted number. If I put that reader on the outside of the building, especially on a door that doesn't require a badge,
SPEAKER_02and you convince an employee to badge in on that door, then really what you've done is just stolen the card data, the WeGAN and everything else. So... You can clone a badge that way, and I didn't even have to get close to you. So what are you really testing there? Well, one, you're testing what's the backend technology that the card is running. Two, is the card clonable? And three, can the employees be convinced to do this? It's kind of like a phishing campaign. As I mentioned previously, right? You want to pull the card reader off the wall. Now, don't just rip it off the wall.
SPEAKER_02There's always a screw or some mechanism on the bottom that you can pull the thing off. Unless it's, of course, hooked up to the door. Sometimes, anyway, it doesn't matter. But most card readers, there'll be a little screw on the bottom. You can undo it and you can pull it off. Well, you should. Because one, you should check how it's wired. Make sure that it's running something like OSDB 2 version 2 with encrypted comms and not WeGant. Or something else like clock and data or anything else. But... you want to make sure that it's running a secure backend protocol. And two, if you pull that card reader off the wall, that's what an attacker might do. He might pull it off the wall to install an ESP key.
SPEAKER_02He might try to mess with the wiring back there. But when you pull a card reader off the wall, somebody in the physical stock or facility manager, somebody should be getting an alert that says, hey, card number or card reader number five got pulled off the wall. So there should be that. Tamper switch should be hooked up. Somebody should be getting alerted. And then somebody should action on it, right? You could It doesn't matter if it just goes into a log somewhere that everybody forgets about and nobody reads. Somebody actually has to do something about it. So that's also something that you should test for when you're running an audit. So there's a lot of these types of things that you want to test for.
SPEAKER_00Gotcha. So the tools will still be useful, but the way that you use them will be very different on an audit versus a pen test.
SPEAKER_02More or less, yeah. Yeah.
SPEAKER_00Now, why would a company choose to do an audit over a pen test or vice versa?
SPEAKER_02Okay, so when you're doing a pen test, there's only a few reasons why you should. You should run a pen test, as I mentioned, because you see a vulnerability, right, or a weakness, which most organizations have. I would say that the overwhelming majority of organizations have vulnerabilities. And you see, okay, there's this glaring physical weakness. security issue, but the board of directors will not give me, the CISO, the facility manager, whoever, enough money to fix it. So I'm going to take my meager budget and I'm going to invest in a pen test to
SPEAKER_02scare the hell out of the board of directors so that next year we do get a bigger budget and we can actually fix all these issues. That's one instance. Another one is, as weird as it sounds, compliance. There are some organizations out there, I'm looking at you, Europe with CER coming, that have to do pen tests by law. And as a result, you don't have a choice. So you have to do it for compliance purposes. Okay, that's fine. You should, but fine. And then the last one is you actually want to test your security. You're actually curious, could a bad guy actually do something?
SPEAKER_02And if so, what? So this is usually a mature company, a mature organization that has relatively high security already. Maybe they've already done an audit and they want to check is I've put all the compliance tools in place. I've got the defense in place. Now let's make sure that my guys are actually using those defensive tools in the way they should. Right. Because it doesn't matter if you have all the bells and whistles in place, if you don't care or you're using them incorrectly or you've gotten really complacent. So these are kind of the reasons why you might want to run a pen test. When you want to run an audit,
SPEAKER_02however, which I would say the overwhelming majority of businesses should be running audits and all of the building, all the organization should be running audits before they run a pen test. is you want to actually test your physical security and bring it up to a high standard. So there's usually no point in running a pen test if you haven't done an audit first, because what most organizations will say is, I know you can already get in. Okay, well, if you know that I can already get in and you laugh about it, why are you paying me to do it? Let me come in first, fix your security up so that it's a question.
SPEAKER_02Could I get in? Maybe I can't, right? Because the ultimate goal of a pen test, as weird as it sounds, is to walk five feet in the door, get caught, and then be turned around on her heel. That is the ultimate goal. Because if you have done your job, if you've run an audit, you've run a pen test, and that organization has beefed up its security to what it should be, or they fixed all the vulnerabilities you showed them, and you return at some future date, you shouldn't be able to get in, right? Because that's the whole point. The entire point is that you are helping their security.
SPEAKER_02You are beefing them up so that you stop them from having any kind of exploitable weakness. So yes, all organizations should start with auditing first because the vast majority of them have never even considered what if a bad person tried to break in? And usually it's just, well, we have alarms, we have cameras, we'll be fine.
SPEAKER_00In terms of access control systems, which is kind of what we're circling around discussing RFID cloning, if you were on an audit, what would you recommend in terms of access control system and unclonable cards and all of that to sort of harden their security in specifically this regard?
SPEAKER_02Okay, so this is a fantastic question because the gold standard right now would be something like a high frequency MyFairDesFire version two or version three. So something like that would be kind of where you're leaning towards now. Now there's a problem with this. Because most organizations, not most, a lot of organizations have subsidiaries. They have satellites. Think of a bank, right? How many branch offices does your average bank have? Tons, maybe hundreds, who knows?
SPEAKER_02But the point is, is that if you turned around tomorrow and said, okay, I want our new building to change from whatever crappy RFID thing it's running now to this awesome, unclonable thing. Okay. Well, here's the question. And this is, I get this question all the time. If we invest all this time and all this money to change out the RFID readers and swap every employee's badge for this thing, how long could we guarantee that it's going to be unclonable? Well, I have no idea. Maybe it's, you know, maybe somebody makes a breakthrough tomorrow and now suddenly the iCopy or the
SPEAKER_02Flipper can break the, you know, the Desfire version too. Who knows? There's no way to tell. So that's one issue. But what I can tell you is that it's almost a certainty that at some time in the future and probably the near future, the Desfire 2, the Desfire 3, they will be compromised. You know, it's just, you don't know when it's going to happen, but you just know it's going to happen at some point. So that's one of the problems, right? So you can't tell a client, it's very difficult to tell a client, look, you need to upgrade to the latest,
SPEAKER_02greatest, awesome thing. It's like, yes, okay, you should, but do be aware that that alone is not going to be the end-all be-all solution.
SPEAKER_00Well, and I think people should kind of look at it as versions of Windows. Like having the latest version of Windows will mean that you're as secure as possible. But given enough time, even that's going to be insecure and you're going to have to get an update.
SPEAKER_02More or less, yes. There's a whole infinite number of Windows jokes I could make right now, but I won't. But the other issue is, is that let's suppose for a minute that you have that awesome unclonable card, but you have a two inch gap under your door where I could slide an under door tool. and grab the handle from the other side? Or what if the door hardware doesn't shut properly? Or what if your employees are really nice and they will just let me tailgate in? Like, it doesn't matter if you have this setup, if I can just bypass your security anyway.
SPEAKER_02So it's not just about like, oh, you need the latest, greatest RFID. It's an entire, you know, the whole concept of defense in depth, right? You need layers of security. And this is why I really, really encourage companies to invest in, not invest, because it's not really an investment, to adopt the CAT program, right? This Catch, Award, and Try Again program where... Let's suppose I'm the attacker. I break into your bank. Either I'm a pen tester or I'm just a bad guy. If I get into your building, I'm probably going to try and break in during the day.
SPEAKER_02And the reason is that it's a lot easier to manipulate people via social engineering than manipulate alarms and cameras because alarms and cameras are unforgiving. If you miss one even by a little bit, you're screwed. But if you have a culture where every employee or most employees are constantly scanning the room, looking for that suspicious character or that rogue device, and then they're reporting it to security, it makes it almost impossible for bad people to break into the building during the day.
SPEAKER_02So you can already see that if you have an organization that has adopted that policy of rewarding employees, rewarding employees who catch bad people. And you do this by having every month or every quarter some guy who the employees don't know walk through the building, and the employee who stops in gets a few days of paid vacation, right? Very simple. It's a very, very simple concept. And then you do the same thing for rogue readers. Show the employees what rogue readers look like. Show the employees what rogue devices look like, man-in-the-middle devices, key lockers, et cetera. And then put one somewhere on a workstation or the back of a TV every once in a while in the boardroom.
SPEAKER_02And see, hey, if you're the employee who turns this in or you're the employee who calls security on the suspicious guy that you don't know who's not wearing a badge, whatever, that you get like, I don't know, two, three, four, five days of paid vacation. And you do that regularly enough, maybe once a month, maybe once a quarter, that the employees are constantly looking for. They're constantly scanning. Now, if you have an organization that adopts that policy, even if I do clone your badge or I do bypass your RFID reader somehow, I'm going to walk 10 feet in your building and somebody's going to stop me.
SPEAKER_02And that's the best security. Because no matter how many employees you have, you now have that many sentient security watching devices roving your building. And that's infinitely better than just an unclonable batch.
SPEAKER_00Sure. Is there anything else in terms of RFID cloning that we should talk about that we haven't touched on already?
SPEAKER_02So when it comes to RFID stuff, just like everything else, as a pen tester or an auditor, you don't have to be an expert in everything, right? You don't have to have all the tools. You don't have to be writing Proxmark code in the same level Iceman is to call yourself somebody who knows something about RFID. You do need to know about it, and you do need to use the tools, and you do need to know how to do an audit, and you do need to know how to use a pen test. But the more tools and the more you know, it just gives you more options.
SPEAKER_02Don't let this imposter syndrome, if you're somebody who's just starting out and you're like, well, I have a flipper, but that's all I have, then go with that. Try it out. Just because you don't have all the tools, just because you don't have a $10,000 budget, or you haven't got 10 years of experience writing code for the latest RFID cloning device, it's you can still practice you can still jump into it you might not have all the options maybe you can't clone badges at distance maybe you don't have access to a rogue reader but don't let that stop you try it out get out there you know practice
SPEAKER_02on your own work if you want practice you know just don't let there be this mental barrier where it's like well i can't do a pen test until i have $5,000 worth of hardware and all this kind of stuff. No, no, no, no. Even if you just have a flipper, use that, try it, go for it. So don't let this idea of like, oh, you don't have the latest, greatest stuff be the barrier of like, well, then I can't do it. It's like, no, no, no, you absolutely can't. You might have to up your social engineering game. You might have to update or upgrade your elicitation skills as a compensator,
SPEAKER_02but you can absolutely get into it. But what I encourage all the pen testers to think about Don't think about security like compliance. Don't look at it and just say, well, if you have the latest, greatest RFID reader that's running Desfire version 3 and it's running OSDP version 2 with encrypted comms on the back end, if you're running all of that, then you are just secure, full stop. It's like, but you're not. You don't know that. Maybe, you know, like what if the guy tailgates? What if he can use another door tool?
SPEAKER_02What if he can slip the latch? What if he can pick the lock? What if he can, you know, infinite number of things. What if he can get past that reader? Then what? Because most organizations have this concept of front heavy security, which is two things. All the securities around the perimeter are at choke points. And if you've any person who's gotten past that, well, they just must be allowed to be in the building because how else did they get in here, right? Sure. So that's what you should think of when you think of any aspect of security is this just security in depth. Think of it like a bad guy. Think of the problem like a bad guy.
SPEAKER_02And then that'll help you to figure out how I can solve it, how I can make solutions for it.
SPEAKER_00So I guess it kind of sums up to think like the bad guy to be the good guy and get started no matter what kind of gear you have.
Logan is a geographer, cartographer and spatial data scientist specializing in geospatial analysis, location intelligence, infrastructure resilience and geopolitical risk. This is a public episode. If you'd like to...
This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit covertaccessteam.substack.com/subscribe
Don’t use AI this way people .Link to the research :https://apiiro.com/blog/coding-agents-leaking-secrets-github-dont-ask-again This is a public episode. If you'd like to discuss this with other subscribers or get...
Based on 3,000 businesses already affected by the riots in Europe so far, if X percentage of businesses never reopen, Europe has permanently lost: * 5% permanently close: 150 businesses * 10% permanently close: 300...
Answering some of the most common questions about Digital Night Vision & locating hidden cameras Original video on this topic here: This is a public episode. If you'd like to discuss this with other subscribers or get...