In this podcast, I am discussing how the offensive team need to think outside the box and deploy novel approaches to truly test an organizations security and keep the defensive team honest.
This will be a podcast and deeper dive into my last post about this engagement.
We’re diving into the journey of Tim the Tiny Paper Crane, a seasoned member of the Covert Access Team (CAT) with three successful security breaches under his wings.
On this mission, Tim helps us pull off another breach: getting past layers of security, swiping keycard reads, and gaining access to a high-security R&D lab.
Follow along as Tim and I navigate a maze of PACS, keypads, and personnel, blending in, swapping intel, and using some unconventional charm to bypass defenses.
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. I'm Sarah, and today we're going to be doing something a little bit different. I'm going to be interviewing Brian about his latest engagement, and it's a fun one. Brian, welcome to your own podcast. I'm assuming most people are at least somewhat familiar with you, but for anyone who doesn't already know you, how about we start with an abbreviated version of your bio?
SPEAKER_02Sure. So currently I'm the chief instructor and the black team lead for Covert Access Team. In effect, we run all over the world breaking into corporate offices, government offices, high security facilities, and basically just test their security. So that's a very abbreviated version for the last 18 years.
SPEAKER_00All right. Awesome. That's the most abbreviated version I have ever heard. So phenomenal job. This week, you outlined a couple of fun attack scenarios on the blog from the benefits of the tactical toilet or tactical bathroom to how a tiny paper crane got you into a very secure facility. For a little bit of background, can you tell me about this test that you were on?
SPEAKER_02Yeah, so this was kind of a last minute assignment. Oftentimes what happens with people within our profession is that you're going to have basically experts. And as somebody who does a lot of B&E, breaking and entering, sometimes you'll have people Pentesters, pentesting companies, consultants who call you up and they say, Hey, we've got this pen test. Could you come and try and get us onto a server? Could you try and break in and get us connected to this?
SPEAKER_02Or could you just basically break in? So I do a lot of subcontracting on top of everything else. And this was one of those cases. So this was an entity where in a capital city, somewhere in Europe, I needed to run in and try and get access to basically a pretty secure facility.
SPEAKER_00Was it government, corporate?
SPEAKER_02I can't really say, but it was an office building that was shared, which I'll go into why that's important in a little bit. But this was, I will say that it's an important establishment. I'll say it that way. It's a very important establishment.
SPEAKER_00Okay. So then what was the scope of the test? What did the client say were their most important assets? What were they particularly wanting you to test? What were your objectives going in?
SPEAKER_02Right. Okay. So oftentimes when you're doing a physical pen test, the client will want one of several things. The first thing they might want, which is what the client in this case wanted, was to effectively get more money for physical security. This usually occurs when you have the facility manager, the CEO, the CTO, the CFO, somebody high up who says, look, I see a problem with our physical security. I want a bigger budget to fix it. But in order to get that bigger budget, I have to take my meager budget,
SPEAKER_02authorize you to do a pen test, scare the hell out of the board. And then we will use that fear to get a bigger budget so that we can actually increase and fix stuff. In this particular case, that's what they want. There are other instances too, of course, where you just want to actually test, you want to do your due diligence and test your security and additional other things but in this particular case the client wanted um to increase their security they saw some real problems which i obviously also saw when i got there um and we we needed to convince the board that this is a real
SPEAKER_02threat it's a real problem so that's effectively what we were trying to do the client outlined for me several um objectives ranging from the standard, could you even get access to something? Can you clone a badge? Can you place bugs on various places throughout the building? Can you gain access to sensitive areas? And the ultimate crown jewel was basically, can you get in access to this like very restrictive R&D laboratory kind of thing? So that's more or less what we were trying to do.
SPEAKER_00Gotcha. And I know from experience that every job starts with the reconnaissance. What did you do in terms of OSINT? What long-range recon did you do? What embedded recon did you do?
SPEAKER_02Right. Okay. So when you're running recon on a physical engagement, You basically want to do this in concentric circles that get closer and closer to the middle. So the farthest out circle that you're going to be able is your OSINT. You can do this from halfway around the world. It doesn't matter. You're using the internet. In this particular case, and then you get slowly closer, OSINT and then long-range, short-range, embedded, recon. In this case, OSINT was very simple, right? We wanted to see if we couldn't find badges, what a badge looks like online.
SPEAKER_02This is where you're going to look on LinkedIn and other places and see if anybody's being not the brightest. And they're saying, hi, I just started or I just ended my career at this location. Here's a badge, you know, something like that. You're also looking for a lot of establishments, especially on LinkedIn or for events or for promos. They will take video inside the establishment. So that's always really helpful because what you can see when they take video, you know, maybe it's somebody walking through the building. Maybe it's somebody, you know, oh, it's so-and-so's birthday and they're, you know, whatever.
SPEAKER_02And you kind of get a really good feel for what the interior of the building looks like, where people are sitting, what the employee dress code is like, maybe even what the lanyards their ID badge is holding. You get a lot of information that way. You're going to look for stuff like that during your OSINT. You're also looking for names. You're looking for who works in what department. And you're basically just trying to do your standard OSINT stuff, right? Get as much information as you possibly can that you find useful. You don't need to, you know, like, oh, what time, what was the year the company was founded?
SPEAKER_02You know, you don't need that much information, but you do need anything real. Um, some other useful information was, is that the building was shared. That's going to be very important later, but shared buildings, in my opinion, are much easier to breach than buildings that are dedicated to a single company or organization. And the reason is because nobody is really sure who belongs and who doesn't. If every floor of the building is a different company, then on any public areas, most shared office buildings have like a ground floor where it's,
SPEAKER_02um, Maybe they'd have a shared cafe or a canteen or break rooms or lounge areas or something on the ground floor. And this building was no different. But because you have so many people from so many different companies coming and going, it makes your job a lot easier to blend in because nobody's really sure. If you're in a small office with 20, 30, 40 people, there's a good chance you know most people. And you're going to notice somebody who comes in and you
SPEAKER_02You have no idea. Long range recon wasn't really possible on this engagement because it was in a very urban dense kind of area. So this is one of those where long range recon, you're doing, you know, telescopes and telephoto lenses and this sort of thing. And it's helpful to a degree, but depending on what you're doing in this particular case, it wasn't particularly useful. So I didn't really bother with it. Short range recon is where you're moving around the target building.
SPEAKER_02Maybe you're pretending to go on a walk or walk the dog or jogging or whatever. Get as close to the building as you can without going inside. And again, this wasn't really necessary much because it was a shared office. Getting inside, and I already knew through OSINT that there was a cafe and a restaurant and other things inside the establishment, which meant that anybody could come inside and move into those areas and just hang out. So I spent most of my recon between OSINT and embedded recon.
SPEAKER_02I spent a lot of time in that cafe.
SPEAKER_00I'm sure you did. I'm sure you were very capped up. You know, I know from reading the blog that the cafe was very important for your initial attack vector with the cloning of the badges. Can you kind of walk us through how you cloned the badges? And then also what type of reader you use? What was the range on it? And I'm just curious, what was your success rate? Like if you tried it 10 times, how many times did it work?
SPEAKER_02Okay. So in this particular case, you're, you're going into it and I wanted to basically be a walking RFID field, right? Employees tend to wear badges either around their neck on kind of a necklace or on the hip on like a little belt clip thing. And I didn't, and it really varied. So some, some people were wearing it as a necklace. Some people were wearing it on their head. And I didn't know who I was going to run into. So I had a long range badge reader in a backpack and I had a long range badge
SPEAKER_02reader in a shoulder bag that I could carry as a briefcase. I also had a flipper that would go into infinite read mode. So if you're using a little flipper device, you can basically just tell it to just read a card and it will pretty much indefinitely just sit there and just try to read. When you're using a Proxmark, they can do that for some cards, not all cards. Maybe there's some forks of the Proxmark protocol that I'm not aware of that can do it for all of them.
SPEAKER_02I'm not sure. But iCopies also can't do that indefinitely. It's like you have to have a card right there. So the reason why I like the Flipper is because in certain events... Okay, so let me back up. The long-range readers, they have a range of, depending on the situation, maybe about one to three feet, something in there. Um, so if I can get within one to three feet for a few seconds, maybe I can, I can clone your batch. In this particular case, they were a type of badge, high frequency badge, but they were a type of badge that didn't require much,
SPEAKER_02um, uh, time to break. Uh, I already had, it turns out I already had the key because they were using default keys, which is good for me. Um, and as a result, it cracked the, cracked the encryption very quick. So I've got the backpack, I've got the shoulder bag, and I've got the flipper in my pocket. And the thing with the flipper was that I have on the flipper attached an RFID high-frequency extender that's kind of taped to it via rubber bands. And then that cord runs up my jacket pocket, up through my jacket sleeve, and into the palm of my hand.
SPEAKER_02The reason I have that set up is because when you clone an RFID badge, the reader and the card have to be parallel. So you have to be within range, and you have to be parallel to the card. So let's say for a minute that I had my shoulder bag. I see a card on a table sitting right in front of me, and I put my shoulder bag like a centimeter away from it. Well, even though it's so close, I still probably won't get a badge read because it's perpendicular.
SPEAKER_02In order for the antenna to pick up the energy that it's emitting, it has to be parallel. and basically staying orientation. So in this case, what I'm doing is I've got the backpack for people who are wearing their badges like a necklace. I've got the shoulder bag carrying like a briefcase for people who are carrying it on their hip. and I've got the flipper in case I see a badge on a table. And effectively, my plan was this. I could see when employees were coming into the cafe, and employees came into the cafe all the time, right? They wanted muffins, they wanted croissants, they wanted coffee, stuff like this.
SPEAKER_02So there was constantly a stream of people coming and going. I positioned myself fairly close to the counter, but I could still see the door, so that when people were coming into the cafe, I could see at a distance what their badge looked like, are they with the correct organization that I'm going for. And on top of that, where are they wearing their badge? So if somebody was wearing a badge on their front, like around a necklace, then what I would do is I would grab my backpack. I would sit up, I would get up, put my backpack on. I'd go to the counter, get in front of them.
SPEAKER_02And I would kind of stall, right? I was like, oh, I don't really know what I want. Maybe I want a caff, maybe I want a cappuccino. Oh, but maybe a latte sounds better. And the whole reason why I'm doing that is because they're wearing their badge on their front. I'm standing right in front of them. facing behind me, and I'm within that range effectively. Now, if they were wearing the badge on their hip, I would do basically the exact same idea, but then I would carry the shoulder bag instead. And sometimes if I would let them get in front of me,
SPEAKER_02because then what I could do is I could come up behind them with the shoulder bag, I could stand behind them if you've got the badge on the hip, and I can kind of get the badge that way. In one instance, I even leaned past the woman at the counter and I could say to the barista, I said, oh, I finished my coffee. I just wanted to give this back to you. I'm being a good Samaritan. Here you go. All the while holding the shoulder bag close enough to get the read. So that was basically the idea. I think after a day or so, I had five or six badge reads that way.
SPEAKER_00what proportion of the times that you tried it, did you get a badge?
SPEAKER_02I'd say pretty much a hundred percent. Um, so it's not really like when you kind of think about the trick, it's, it's not really complicated, right? So if I'm wearing a backpack and I get in front of you in line, you're going to be within one to three feet behind me because chances are you're not going to stand like, you know, five or 10 feet behind me in a line. Um, And the long-range badge reader will definitely get that badge read as long as I'm within that range. So yeah, it's pretty straightforward.
SPEAKER_02It works pretty much all the time, as long as the badge can be read.
SPEAKER_00Gotcha. Do you want to talk a little bit about that? Like what type of badges they had and which ones are readable and which ones aren't?
SPEAKER_02Sure. So the majority of badges can be read. If it's low frequency, most of them, if not all of them. If it's high frequency, there are a few that, you know, that you might need a password for. These are like your hotel style. But a lot of people in Europe, a lot, are using high frequency cards somewhere in the MyFair Classic 1K or 4K range. Um, and a lot of them still use default keys.
SPEAKER_02So, uh, there's a lot of databases out there. There's a lot of places you can go, GitHub repos, et cetera, where people have discovered either default keys or new keys or whatever, and they just put them in a GitHub repo and you can just download them and you can add them to your inventory or something. Um, so this was a particular instance where they were running a clonable badge. I won't say which, um, but it wasn't, it was very quick to copy. And as a result, yeah, I was able to get a lot of badges pretty quick within a day.
SPEAKER_02Now, the problem with cloning badges is that you don't necessarily know the security layout of the people that you're cloning badges, right? So when you clone a badge, you don't necessarily know, did I just clone the badge of Bob the intern who has no privilege whatsoever? He can come in the front door, but that's about it. Or did I just clone the badge of... the R and D chief scientist. I mean, yes. Okay, fine. I think if the organization has a hundred people in it, you're probably not going to have memorized every single person's face to be like,
SPEAKER_02Oh, that's the guy. Right now. One thing that I do is I do try to be a walking on top of being a walking RFID field. I also try to be a walking surveillance system with, you know, watch cameras, button cameras, using my phone as a camera, like all this kind of stuff. But it's also good for once you've cloned a badge, you can go back and you can grab that person's face from one of your cameras and you can try to figure out who they are. And then once you know who they are, you have an idea what privilege level they probably have.
SPEAKER_00Gotcha. So you've got the badges, you badge your way into the target office, you're on the right floor. Before you go and hide in your tactical bathroom, before you break into the R&D facility, what are some of the things that you do to sort of make it clear to the client so that they can get that budget they're after? What are some of the things that you go after before you go scurry away and hide?
SPEAKER_02Right. Okay. So in this particular case, I simply, you know, through OSINT and then literally just looking at the lobby floor of which offices are where, I knew exactly where the client offices were. I knew what floor they were on. No problem. One issue that I had was I noticed that they were running an RFID reader that needed a badge, but it could also use a pin code. And through some embedded recon, I noticed that the employees were not punching in the code. They were just using the badge,
SPEAKER_02going through the, you know, going through the doors or using the elevators or what have you. Now, in my experience, oftentimes what that could mean is that the pin code is not needed during daylight hours, like work hours, but then after work hours, you're going to need both the badge and a pin code. So that concerned me because I had gotten a lot of badges. but I had no pin codes and there wasn't really a good method for getting the pin code because it, there were so many people coming and going. If I use like phosphorescent dye on the, on the, on the card reader.
SPEAKER_02And then I, you know, I planted that. It would be very hard to get a badge read, get to the card reader, plant the phosphorescent dye, make sure they went to the right card reader. They were the ones who did it. And then I can figure out, you know, like, okay, well I know what the four buttons that they pushed were. And then I can try and just figure that one out. But that would be very, very tricky. So what my plan was, was that effectively I first got up to the floor, I wandered around, I blended in, I planted a few bugs. I got a layout of the offices.
SPEAKER_02I went into some meeting rooms that, you know, I felt like I could go into without an issue. I got on their network. I grabbed a PCAP file. I did a few things that you can do, right? I found printer rooms. I figured out where the printer rooms were, where the server rooms were, where the archive rooms were, where the R&D facility was. I figured out the layout of everything. I kind of got a lay of the land. Now, the problem is, is that the R&D room was the crown jewel they were really interested in. And it was also very small.
SPEAKER_02It was significantly smaller than I thought it was going to be. And so you only had a few people in this room, basically a relatively small room. And so it would have been very hard for me to get in there and just blend in. That's not easy to do. Now, I have been in situations where I've done exactly that. And humorously, it did work. But in this particular case, they wanted me to bug something. So there was a similar case where I was doing a government office where I was on the top floor. They wanted me to get into a restricted area.
SPEAKER_02I managed to get into a restricted area. I pretended to be on the phone. I walk in. Everybody stops what they're doing and looks at me, right? Everybody's in this tiny little restricted area. They all know each other. They look at me. Every desk is taken. So I can't blend in that way. You have to think on your feet. And because I'm on the top floor of this government office and I'm wearing what looks like a legitimate badge, everybody's like, oh, well, he must work here. pretending to be on the phone. I walk in and I just say, you know, oh, sorry. You know, I pretended like, oh, so sorry, you know, that I'm talking on the phone while they're all working. I'm pretending to be polite.
SPEAKER_02I hushed my voice. I walked to the end of the room and I say, hey, I'm sorry, I'm in here. Could you just tell me what the number was again? So just loud enough for people to hear me. And I see a laptop sitting there that, you know, on nobody's desk that's just kind of in the corner. And I said, oh, it's one, two, whatever. And I read the serial number off from the laptop. I was like, yep, I got it right here. I'll But in this case, they wanted me to bug something, which would have been much harder to blend in. So effectively,
SPEAKER_02what my plan was, was to use what I lovingly refer to as the tactical bathroom, where...
SPEAKER_00I'm sorry, tactical toilet is so much better. It has the alliteration. Okay, fair enough.
SPEAKER_02I'll take that under advisement.
SPEAKER_00Thanks.
SPEAKER_02The idea with that is just around the end of workday, if you position yourself inside of a toilet stall, chances are everybody's going to leave the office. You'll be in there alone. There will usually only be one sensor or alarm that you have to even bother with, which is usually one PIR sensor or motion sensor or something, just tape over it or something, in the off chance that it is wired to an alarm system. Um, that way, you know, when you move around in the bathroom, you don't accidentally set off an alarm or something.
SPEAKER_02And that way you can, you can emerge later with the office all to yourself. Now, a few things that I highly recommend if you're going to do that is one, the only way that will work typically is a, they have all the security apparatuses, cameras, sensors, et cetera, basically at the perimeter, like at the doors and nothing else inside or. you know for a fact that the cleaning staff is going to come after hours through your recon, and they're going to immediately turn off all the alarms when they show up to clean. In this case, through the recon,
SPEAKER_02I knew that they had a cleaning staff that went floor by floor every evening. So I knew that they would show up. And, and this is kind of important, you're probably going to be in the bathroom for hours, hours and hours and hours. So it works much better if they have private bathroom rooms, not like one communal bathroom with little stalls, like most men or women or used to in the United States. In Europe, you often have kind of a, you go into the bathroom and it's like a hallway. And then on either side are like little individual rooms with doors that lock.
SPEAKER_02And if you have one of those, that's excellent, right? Because then you just walk in, you can go into one of those rooms, lock the door, and you have your own private little office where you can just hang out. Now, the downside, of course, is from about 3.30 when most people leave the office until about 6.00 And one of the things that I tell students when I teach them, you know, all this type of stuff, you cannot listen to your headphones because nothing will ruin your day more. If somebody has noticed that you like that bathroom stall is occupied for hours and
SPEAKER_02hours and hours, they knock on the door to check on you and you don't answer because you're watching Netflix loudly. You know, you can't do that. So you have to sit there and you just have to basically just be bored out of your mind. Um, but yeah, so anyway, so I, you know, so I got into the floor. Um, I, I didn't want to leave the floor, right. I wanted to on the, on the off chance that I was going to need a pin code after, you know, three 30, four o'clock, whatever. I just wanted to be on the floor. And I knew through recon that around four or five o'clock, the cleaning staff was going to start going floor by floor and cleaning stuff.
SPEAKER_02So I knew that I would be in that bathroom anywhere from half an hour to a few hours. Cleaning staff would eventually show up. It would probably just be me and the cleaning staff. And as a result, I would now be on the floor I wanted to be in. And the office would be basically empty with the exception of maybe the cleaning staff and maybe one or two extremely dedicated workers. So that was basically the goal.
SPEAKER_00Gotcha. Now you mentioned in the blog post that a cleaning lady knocks on the door to the bathroom that you're in and that wasn't planned. But that cleaning lady meeting her was kind of key to the ultimate success of this assignment. What would you have done to strike up rapport with her if this opportunity hadn't fallen into your lap?
SPEAKER_02I probably would have done the exact same thing. So now, okay. So the R&D room, It was my original plan for the R&D room was to use some bypass method, right? I was going to use an underdoor tool. I was going to try and slip a latch. The standard get around the door trick, right? So around six o'clock, I'm expecting the cleaning staff to show up. I'm patiently waiting. And eventually, I hear somebody come into the bathroom. Obviously, you can't tell who it is. And then all of a sudden, I hear someone knock on my door, which is, you know, oh, no.
SPEAKER_02But then I hear her moving a trolley around, which is a very standard thing for large offices with cleaning staff. So I kind of had to feel, okay, this is the cleaner. So I wasn't intending on having a conversation with this woman. So I come, you know, 6 p.m., everybody's gone except for me. So I emerge from, I flush the toilet, which didn't need to happen, but I flush the toilet, run the sink so it sounds legitimate. I come out of the bathroom stall and I'm holding my belly and I go, oh, I'm so sorry. You know, my bad food, this lunch bubble. And I start weaving a tail.
SPEAKER_02You know, she, she apologizes. She strikes up. She's like, oh, I'm so sorry. You're feeling bad. And I start telling her about how it's my first time in Europe and it's my first day. And wouldn't you know what? I got a little bit of food poisoning from the new food because I'm not used to it. And briefly talking to this woman, I can tell, you know, one by her visage, but also by her accent that she was probably Turkish. which is a very common thing. And I started talking to her about, you know, traveling here to Europe for the first time, which was a lie, of course, but I had a plan. I had a plan.
SPEAKER_02I was going somewhere with the social engineering thing. I got her, I started a conversation about travel and I was from America. She was, it turned out I was right. She was from Turkey. So we talked about, you know, how we were both foreigners in this location. And I told her, which is a lie, that I love Turkish food, and I love Turkish coffee, and it was this and this. And then she, of course, has some commonality, and I'm flattering her culture. She lights up, and she talks about how she loves to cook, and she does this and does that.
SPEAKER_02And as soon as she tells me that she can cook, I say, oh, that's so amazing. I wish I could cook. I'm terrible. That part's true. And I said, I've never been able, in all of my travels, I've never picked up any useful skill, except one time when I was in Japan, I picked up the skill of learning how to fold tiny little origami cranes. And then we talked about that for a little bit, about Japan and how she wanted to travel there, et cetera. The whole point was that I eventually wanted to use social engineering to pivot the conversation naturally to the topic of little paper cranes.
SPEAKER_02So I started with, I could tell from her accent that she was Turkish. I was American. I used that as a commonality to talk about travel and how we were both foreigners in this place and how we both obviously liked to travel. I then got, I just kind of flattered her with talking about how much I liked her food and culture and this and that. We built up a little rapport there. I've been pivoted with a little self-deprecation saying,
SPEAKER_00oh,
SPEAKER_02I suck at this skill and that skill, cooking, et cetera. And I do have one useless skill that I picked up when I was traveling, this thing, right? And I kind of, you know, boasted a little bit. I was like, oh, yeah, but, you know, me and my friend, we learned how to fold these little paper cranes. And then we competed with each other to see who could make the tiniest one. And I made them so tiny. They were like this super tiny thing. And she, you know, she was laughing about it. And keep in mind, this whole time, we're still standing basically in the bathroom, which is a little weird. But not in the bathroom itself, but like in the little hallway where all the bathrooms are.
SPEAKER_02And eventually I said, OK, well, you know, after I say this to her, she laughs and I'm Uh, I, I say, well, we should probably both go about, you know, finishing our work so we can finally go home because it's getting late. So we part ways, right? It turns out that there's nobody else in the office. It's just me and like three cleaners, uh, her included. And I go about my business. I go about bugging workstations and picking locks to like the archive room and other things. And, you know, I just kind of generally doing stuff. Um, then a little later I fold a really tiny paper crane.
SPEAKER_02And I just kind of keep it where it's not going to get damaged. And I know where it is. And maybe 20, 30 minutes go by. And she's cleaned all the bathrooms. And she's vacuumed the floors. And I see that the lights in the R&D lab have turned on. And that's when I grab my little paper crane. And I walk over to the R&D lab. And I knock on the door. And I hold the little paper crane in my hand, in the palm of my hand. And I point to it with a big smile on my face. And she comes up to the door excited. And I say, oh, see, I wasn't kidding. She opens the door.
SPEAKER_02She looks at the crane, and she's like, wow, that actually is real. That's so amazing. Oh, I wish I could do it. I hand her the crane. I say, this is a gift for you. I hope you have a great night. It was great meeting you, and she thanks me, and as we turn apart, I use a little bit of tape to tape the plunger over the door. The door closes. We part ways. I go back to what I'm doing. She goes back to what she's doing. Eventually, she finishes, leaves the R&D lab, but now one of the doors is not engaging properly, so I just walk in. Now, I kind of lucked out because some doors will have a mechanism in place,
SPEAKER_02an alarm system in place, where if the door latch doesn't properly shut, you get an alarm. So I lucked out that that wasn't the case, but oh, yeah. The whole point, the reason why I wrote this on my blog post, why I wrote this on Substack, was that oftentimes when you're doing offensive work, you... very regularly will have to think outside the box. And yes, I was able to show later that you could simply use an underdoor tool on the store.
SPEAKER_02You could slip the latch on the store. You do certain things, right? That was all true. But I wanted to demonstrate that when it comes to real life attackers, a real life threat actor doesn't have this concept of, well, that's not in scope. That doesn't exist for a bad guy. And as a result, bad guys will think out of the box. Bad guys will come up with really novel, really weird kinds of attack vectors. And I just kind of wanted to show a real world case where this was something that I
SPEAKER_02used to bypass an access control system. And your job is the offense. So let me back up. Security has three components. Compliance, which are basically the tools that you use to make you secure. Maybe it's a fence, a lock, an access control system, a firewall, whatever. the defense, which is your sock or your physical sock, your guards, et cetera. And it's basically, they're the ones who use the compliance tools to make you safe. And then the offense, who are basically a reality check for the defense. Well, reality can be weird. Reality can be unexpected.
SPEAKER_02It can be completely novel. And that's why the offensive team often wins against the defense because they come up with really out of the box, novel approaches to things. And if you don't incorporate the offensive work into your security posture. Well, you're never, I guarantee that there is not a physical security apparatus anywhere in the world that has a standard operating procedure for how to, you know, prevent tiny brains from being used to bypass access control systems.
SPEAKER_00So to work your way into people's hearts.
SPEAKER_02Exactly right. So it's, it's just one of those things that the whole point of this was to illustrate, look, Bad guys and pen testers, we come up with really stupid but really novel ideas on how to bypass whatever you have put in place as the defense. And you have to test that. You have to do a reality check on your defense. You cannot just take the vendor's word for it and say, well, the vendor says that if I have this camera with this fence with this lock, I'm impenetrable. You can't do that. You have to try.
SPEAKER_02You have to test it.
SPEAKER_00And I know that you said that you were later able to prove that the doors to the R&D lab was bypassable. But given that you initially got in with the paper crane via the cleaning lady, do you ever feel guilty when you sort of use people like this? And has anyone that you've ever used in this way gotten in trouble for being your entry point?
SPEAKER_02So this is an excellent question. This gets into the morality of pen testing and specifically social engineering. So one of the things that I do is when I am negotiating methods, rules of engagement, et cetera, like for the engagement, I explain to the client some of the things that I might try to do. And I make sure in the contract that I say that I am not going to name employees that I tricked. So first things first, I will not name them.
SPEAKER_02And second, I also tell the employee, I make sure that somewhere around, like the client is very aware that everybody is manipulated or everybody can be manipulated. It's not their fault. So this trick works because of a trusting culture. You know, it works because Because this woman has no reason to doubt me. And also because in most instances,
SPEAKER_02most of the people listening to this podcast will have worked in an office. And if I asked you, if anybody who's ever worked in an office, especially a big office, can you name three of the cleaning staff that work at that office? And can they name you? The chances are the answer is no, across the board. your cleaning staff are almost always going to be the least paid, least security aware people with the highest level of access. Because they have to go everywhere, right?
SPEAKER_02They have to go to the server room. Well, maybe not server room. They have to go every, the CEO's office, the board of directors, every place to clean it. But they don't have any security training. They just want to clean the toilets. They want to mop up the floor. They just want to do their job. They're getting paid nothing. And so it's not fair for me, who is acting confident, who has what looks like a real badge, who has what looks like, or maybe is a real badge, a real lanyard, to basically abuse that relationship and say, ha ha, you should have known better.
SPEAKER_02Chances are that cleaning staff isn't even an employee of that organization. So very, very common. So no, it's not fair to do this. And I vehemently tell the clients that, look, if you're going to come after the employees that we social engineer, then we're not going to social engineer. And we're very clear about that. But then we also do our due diligence to make sure that we don't name the employees that we do this.
SPEAKER_02And in this particular case, we didn't name the cleaning staff person who did this. We didn't even say it was a cleaning staff. We just said that we were able to social engineer an employee to gain access to this. And we were very vague about how we did it. And in my opinion, that's really the best way to go about it because it doesn't matter if I did this to a janitor, if I did it to an employee, the process is the same.
SPEAKER_00But, you know, I think that their response would be different, though, especially if the cleaning staff will say third party, because they may, you know, if they if you know, you don't want them to be mad at the cleaning staff for being the weak point. But in one hand, but you also don't want them to you want to equip them with information to close the loopholes. So that might be, you know. security training for the cleaning staff or a change in policy or something like that,
SPEAKER_00but they can't change that if they don't know it was the cleaning staff. You know what I'm saying? So how do you balance those two competing things?
SPEAKER_02Well, first off, most of the time, you can't mandate third parties go through various trainings. That's usually not something that's within your power. Any more so than if you called the plumber to come to your house and fix something, you can't mandate that they go through some type of rigorous training that you put on to come clean your pipes. Maybe if you paid them to do it, sure. But it's not the janitor's fault. The vulnerability here is not on the janitor.
SPEAKER_02The vulnerability was they were running clonable cards. Nobody in the office stopped me. Nobody cared that this new person was wandering through the building. The janitorial staff is a vulnerability for sure. But it's not something that the organization themselves has a lot of control over. And also, The only reason it was a vulnerability was because I already exploited like three or four other vulnerabilities leading up to that point. And keep in mind that I didn't even need to use the janitor staff because the following day when I came back and did the same trick,
SPEAKER_02I just slipped the latch, got into the building or got into the R&D room and did it that way. So, I mean, it's one of those things that in my opinion, 100% of this comes down to the organization and most organizations. And I would argue the overwhelming majority of organizations can resolve this issue without any real cost to them. So for 10 years, maybe, I've been explaining to companies, now that I have a podcast,
SPEAKER_02hopefully this will get out to more people, that I've invented something that basically I call the CAP program, which is basically just catch, award, and try again. And it's a form of employee engagement and security awareness that actually works. I have a lot of metrics to know that this actually works. If I told people, you know, hey, we're going to talk about security awareness training, their eyes are going to roll back in their head. And the only thing that they're going to do is figure out how they can
SPEAKER_02clandestinely look on their phone on Reddit and do stupid stuff because nobody's going to pay attention, right? Because most of the time it's don't reuse passwords. We ran a phishing campaign last week and five people out of the company, that's what you're doing at most security awareness channels. That's not what this is. This has two components. First things first. Physical security is not your employee's job. It's not their job. It's not their responsibility. And honestly, they don't care. So the first thing you have to do is give them in writing something that says under no circumstance will any employee ever get in trouble if you professionally stop
SPEAKER_02whatever. If you see somebody who's looking shifty, somebody you've never seen before, somebody who's wearing a wrong badge or no badge, and you walk up to them and you say, Hey, I'm really sorry, but we have to go to security or I have to call security or whatever, because I don't know who you are. Okay. You will never get in trouble for that ever. Now you can't dog tackle somebody in the stairwell. That's not professional, but as long as you're professional about it, you'll never get in trouble. Because one thing is that a lot of employees are scared and nervous because you're like, that's not my job. What if that guy's important? What if he's like the son of the CEO? Like, I don't know him. Okay. Second, you have to incentivize employees to actually care.
SPEAKER_02Now, if I was in a room full of 100 employees in an office and I said, okay, somewhere in this building, I have placed a piece of garbage and the employee who finds and brings me my piece of garbage will walk home today with $500,000 in cash. Everybody would stop listening to me immediately and go bring me every piece of trash in the building. It's not their job. They don't have to do it, but I have incentivized them with something they really, really want. And now they are happy to go pick up garbage.
SPEAKER_02So most organizations cannot afford to just do this and just give their employees half a million dollars at the drop of a hat. So employees typically want one of two things, money and time off. Well, time off is something you can afford. So here's what I have been telling companies to do for over a decade. Once a quarter or once a month, I recommend starting with once a month to make sure it kind of sticks and then backing off with once a quarter. Have somebody who the employees don't know walk through the building. And if you are the employee who professionally stops that person and you walk up to
SPEAKER_02them and say, hey, I'm really sorry. You're not wearing a badge. I don't know you, et cetera. We have to go to security. Or you just call security and say, hey, there is this really suspicious person who I see walking around. He's on this floor. This is what he looks like. you will get so many days of paid vacation. Maybe it's free, maybe it's a week. Okay, if the company does that once a quarter, so four times a year, that's four weeks of paid vacation a year total. And you will have drastically increased your physical security. Any company, and I'm saying this with 18 years of experience,
SPEAKER_02any company that has implemented this program basically makes it impossible for me to blend in during the day. It's not impossible, that's probably too much to say, but it is really, really hard when every 10th person that you walk past, somebody stops you and says, sorry, I don't know you, we have to go to security. It makes your job a living hell as a pen tester, but that's good. And then you realize that daylight hours, which is when most people try to social engineer their way into a building, is now this physical security has gone through the roof because
SPEAKER_02Most of your employees enjoy this. They want that paid time off. And as long as it happens regularly, the employees don't forget it's a thing. And so as a result, the employees are constantly scanning, they're constantly looking. And I highly encourage you as an employer to pair that not just with some random guy walking through the building, but show the employees rogue devices. This is what a key logger looks like. This is what a Raspberry Pi looks like. This is what an HDMI man in the middle device looks like. These are your typical rogue devices.
SPEAKER_02Every once in a while, put a rogue device somewhere on the back of a workstation, on the back of a TV, whatever. And same thing. If you are the employee who spots it and calls security, you get a day or two paid vacation. And as a result, this becomes a game with employer or employees. They really like it. It's engaging. As long as it happens regularly enough, they kind of get into it. Employees love the time off. The employers can afford to give you a few days of paid vacation. And it's a win-win.
SPEAKER_02And it's not something that you had to break the bank to, oh, you've got to spend $10 million to fix your, no, screw that, fuck that. You can drastically increase your security by doing really simple things as long as you do them smart.
SPEAKER_00Sure. And I like what you said about how the cleaning person wasn't the weak point It was, you know, because you never would have gotten there if everything else had been in place before. And, you know, I'm sure that that's also communicated in the report. And now you said that once you got into the R&D lab, you did notice that there were, you know, physical security deficiencies, the door was bypassable. et cetera. Were there any attack factors that you identified that you weren't able to test on
SPEAKER_00the assignment, given that it was short term, late notice? And how do you handle it when you find attack factors that would likely work, but you don't have time to compromise those systems to prove it out? What do you include in the report?
SPEAKER_02Okay, so there's two ways to answer this question, and I'm going to answer them both ways. The first is if your client says under no circumstance are you to get caught, right? This is usually the case where they want to scare the hell out of the board of directors for more money, and they don't want you to get caught because if you get caught, the board of directors is going to turn around and go, yeah, but you got caught. So our security clearly is fine, so why do we need to increase the budget? So don't get caught. In that case, you might see some questionable attack vectors that you're like,
SPEAKER_02well, maybe that would work. So let me give you an example. Let's suppose for a minute that they were using unclonable badges. So the staff was using unclonable badges, or maybe they're using unclonable badges and they're using PIN codes at all hours. okay well that really makes my life harder uh because if i'm gonna try and get in during the day then i don't not only have i mean i can't clone your badge but i also even if i stole a badge i have to know the pin code that goes along with it so it makes it much more complicated uh so maybe in that hypothetical say well i'm
SPEAKER_02gonna try and just get into an elevator with some people and tailgate into the office hoping for the best right sure, you could do that. But it's one of those really loud situations where what happens if you're in the elevator and it's going up and the guy turns to you and goes, who the hell are you? So at that point, you're like, you're stuck in a box with a guy and that's where your escape clause comes in. And you had better have the best escape clause in the world because you don't know like where you're going. You don't have a valid ID. Like, yeah, now you could have like
SPEAKER_02maybe you clone a badge or maybe you print out a badge from another company and you're like, oh, I'm working here. Aren't we going to floor five? Oh no, we're going to floor seven. Oh, sorry, my bad. So you could try something like that and maybe it would work, but you can kind of see how that's high risk, right? So the other instance is that you don't have time. So when you're running a pen test, you're probably going to come up with like, when you're doing a recon, you're probably going to come up with like five, maybe 10 attack factors. You're like, well, We think these will all work, but we obviously don't have time to run all of them.
SPEAKER_02Or maybe you don't, maybe you do. But if you don't have time to run all of the attack vectors, then you obviously never did it. But in the report, you will outline every attack vector you did and every attack vector you didn't do, and then explain why it was likely to work, but why you didn't have time to check it. Because if you don't include it in the client's report, they will assume it's not an issue. you have to tell the client like so take the latch looking like in this real life thing with the paper crane and whatnot so i was able to get into the r d facility
SPEAKER_02with the stupid little paper crane but then i came back the following day and i slipped the latch and i you know whatever so if i hadn't of um if i only told them about the paper crane and they were like oh well what we need to do is we need to make sure that all of our employees have more awareness training and this and this and this Well, okay, that's fine, but I might still be able to get to the R&D lab, use the bathroom, be there after hours, and then just slip the latch. So you have to tell them every last possible thing that you encounter, even if you didn't have time to check it,
SPEAKER_02which is often why I encourage, first off, I never encourage clients to start off with a pen test, ever. I will do it if they are very adamant about it or if they have very robust security or whatever. but I always recommend that clients start off with a physical audit because an audit, unlike a pen test, an audit is where I overtly, I come up, I show up at like nine in the morning. I get a little badge. I just walk through your building and I check everything. I check every, is your latch slippable? Can I use an underdoor tool?
SPEAKER_02What happens if I put a post-it note on this camera? Does anybody notice? Can I pull the card reader off the wall? Are you running? with that, get their security up to a high level, and then maybe come back in six, eight months or something and test, okay, your security is now at a high level, your compliance and your defense are pretty good.
SPEAKER_02Now let's do a reality check and make sure that you're using those tools correctly. That's usually the process that I advocate clients do.
SPEAKER_00That makes a lot of sense. And I've seen the pact or the checklist that you give out for your physical audit certification training course. And I know that it's a very long list. And if they had even, you know, 10 of those things on the list weren't set up right during the audit, a physical pen test would be so pointless because they probably only catch a small fraction of what they could catch in an audit.
SPEAKER_02Well, yeah, exactly. So it would be like if I said, you know, if if somebody came to me and they said, hey, we have a company and we want you to do a network pen test. So go inside, get on the Internet, get on our internal network and see what you can do. Right. See what bad things you can do. And if the client says we want to pay you for a two week internal red team, full on penetration test of our network. We're running the best version of Windows 7 that you've ever seen with all the latest patches. It's like, okay, well, it doesn't matter, man, because I'm going to destroy you.
SPEAKER_02The second I get on your network, I'm like, yeah. So it's that, right? And most organizations are that way. Most organizations, their physical security is so far in the past and it's so kind of antiquated that it's not really difficult to get in. It's just... You need to help them to increase their security overall. Then you probe it and test it and kind of like, okay, let's see if this actually works out the way. Are you defending it the way that you should be?
SPEAKER_02We gave you all the tools, told you what to be doing, but let's check. Because sometimes the checks themselves can be the thing that gets you messed up. For example, I once did a government office where they have everything in place, right? Unclonable badges, cameras everywhere, on-site security. You had to use an unclonable badge, a biometric scanner. There was an armed guard standing in the lobby to go through. They had everything set up correctly. But one of the things that I noticed during my recon was that every morning around
SPEAKER_026 a.m., there was a guy. There was a security guard who walked around and opened every door. And he'd open the door. He'd get on his radio. And he'd walk to the next door. So he's walking. He's on the outside of the building. He walks to a door. He unlocks it. He opens it up. He says something on the radio, which obviously I can't hear because I'm across the street sitting at a kebab shop. And then he goes to the next door and does the same thing. And what I realized that he was doing was that at shift change around 6 AM, he was opening the door,
SPEAKER_02calling the physical sock and saying, Hey, I opened door number five. Did you see that door number five was open? And they were checking this and it's like, okay, that's, that's really good. That's a good policy, right? Let's make sure that if the door does get open, that the physical sock is alerted that that door was open. Okay. Great policy. But this poor guy had been doing that day after day. God knows how long. And as a result, you would watch him do this. And there was two or three doors that were clearly kind of weathering not the best
SPEAKER_02because he'd open the door. He'd do his little comms check. He'd walk off and the door would take 20 to 30 seconds to close, which is way too long for an external door to be sitting there. Right. Because I can easily shadow him and just dart in. You have all the best compliance, you have all the best defense. But if you don't look at the situation through the lens of a bad guy, you're going to miss that.
SPEAKER_00Absolutely. And one thing that I've learned from listening to you describe as many pen tests as I've heard you describe is that every single one, even though you might reuse the same tactics over and over again, every test is a little bit unique. What made this test unique in your mind, having done hundreds, if not thousands of these?
SPEAKER_02Well, I don't think that I've done thousands. I've done a lot. I mean, I've been doing this for almost 18 years, so I have no idea how many I've done, but I think it's been a lot. But if I had to ask what was unique about this, I think every test, Um, because you're dealing with humans, you're always going to be, um, interacting with new people. Like, you know, you have tricks, you have, how am I going to clone these badges? Uh,
SPEAKER_02in this particular test, I, the paper crane thing was, this is not the first time that I've used that trick, but the reason why I do the paper crane. is because I wanted to create a curiosity of something in the other person's mind that they want to come to me, right? So if I said to you something like, my top three favorite actors of all time, if I had to put them on paper would probably be number one, Mel Gibson,
SPEAKER_02number three would probably be Arnold Schwarzenegger. If I just move on with the topic, you notice that I didn't list the second one. And what I've done there is I've planted something in your mind where hopefully what I'm hoping you will do is come to me and ask me, so who's your second favorite actor?
SPEAKER_00Sure, I immediately wanted to.
SPEAKER_02Okay, so. effectively, what I wanted to do with the curiosity hook is I wanted them to come to me in this way, literally, because I wanted to come to the door that I didn't have access to. And I wanted them to come to me and open the door, right? The reason why I use the paper crane is because I can fold really tiny paper cranes. So it's a skill that I literally have. It's also a skill that is novel, right? If I told you, oh,
SPEAKER_02Well, I can't. Let's suppose that I could. I can't use that in the situation. I can't somehow magically conjure a bunch of sushi to be like, oh, wow, look, come to the door. Please let me open. So it's an easy trick to do. Going back to your, like, what makes this one unique is they're all kind of unique because you're dealing with different buildings, different agencies, different organizations, different people. So from that, you're like, well, I've used this trick in the past. It's worked.
SPEAKER_02Let's try this again. And also, let's think of new things. Let's think of novel things. Like, what could I do that's... something different. In this particular case, I ended up not really doing anything different. But again, I think that every engagement brings its own uniqueness to it because you don't know the layout of the building. You don't know how things are going to go. For instance, luck always plays a role, right? Maybe the last time you used that trick on the cleaner with the little paper crane,
SPEAKER_02Maybe it worked out like a charm. And maybe the next time you do it, the woman looks at you and she just ignores you. You know, maybe that's how it works out. So there's always that wild card luck. Like, how is this going to go down?
SPEAKER_00Sure. Well, is there anything else related to this assignment that you think that we should talk about that we haven't already?
SPEAKER_02I think, so the reason I wrote this blog post at all was, and I kind of relayed the story, was that Whether you're on the defensive side or the offensive side, the purpose of the offensive team is to be a reality check for the defensive team. Don't be afraid to think outside the box. Don't be afraid to come up with novel approaches to problems. It's one of those things that what I see more often than not is I see the
SPEAKER_02compliance guys come in and they say, well, to be secure, you need this checklist. day, we have to do X, Y, and Z, and then we are secure. But if you as the attacker come in and you look at the setup that the compliance and the defense have put together, I guarantee you that you will think of a way to bypass everything that they have set up. You're just going to have to think differently.
SPEAKER_02One of the stories that I use all the time to accentuate this point, that's not the to go with it, is an instance where the U.S. Delta Force and the U.S. Secret Service basically somehow got pitted against each other, which is actually something that could happen, where the Delta Force basically argued that at any point they could get into the White House if they wanted, and the Secret Service could do nothing to stop them. Now,
SPEAKER_02after the debacle that we saw with the Trump assassinations, I think that most people think they too could probably get past the Secret Service, but this was way before that. And so the bet, as I understand it, was that there was a week, sometime during this week, the Delta Force was going to try and get into the White House and Secret Service was going to try and stop them. They didn't say when during the week, but they said there's this one week window of time and that's when it's going to be. Of course, how did the Secret Service plan to prevent it? They put more agents on station, more agents on the walls, did extra checks on vehicles coming and going.
SPEAKER_02They beefed up the perimeter. They beefed up their security, right? Okay. Well, that's what the Delta Force recon teams likely saw was, okay, you have the perimeter. It's now a matrix of personnel and guards and snipers and sensors and alarms and cameras. Okay, that's what we have. So what do they think? Well, we're Delta Force. We all do halo jumping, high altitude, low opening jumps. So we can't fly directly over the White House because it's restricted airspace. But what we could do is we could fly at 30,000 feet and then jump out of an
SPEAKER_02airplane and free fall over the White House at like 3, 4 a.m. and then land right next to the door. And that's exactly what they did. And so as the story goes, they literally just landed at like four in the morning and they just walked into the White House. And it's like, yeah, see, that's the point is thought like the defense team. They said, how can we make this more secure? But they never thought of, you know what we should do? We should make sure to watch the skies for people free fall parachuting over our
SPEAKER_02perimeter at like four in the morning. That's not something that you're ever going to think to try any more so than you would think, you know what, we should make sure that the janitorial staff don't fall for it. Little people are, these are these out of the box ways of thinking. This is what your job is as an attacker is to think of, I see what the defense have put together. Let's see if I can bypass it by doing whatever. So yeah.
SPEAKER_00Yeah. So that's the real takeaway. Never accept a paper crane from a stranger. Yeah.
SPEAKER_02So, but the point is, is again, like as an attacker, Your job is to reality check the defense, regardless as to what the reason why defense regularly gets compromised. And in my opinion, offense will always win in the end is because offense can be patient and it can be novel. And it's that's why all the time you see some type of bypass on the defense. All we as the as the simulated bad guys, all we have to do is find a hole and we will always find a hole.
SPEAKER_02So the point of regularly testing this is to find those before actual bad people do.
SPEAKER_00Absolutely. Well, thanks for sharing the specifics of this particular pen test. And hopefully it will give our listeners one more novel way to get in for their upcoming pen tests. So start practicing folding paper cranes, guys.
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...