Latest / Blue Security / Red Teaming with Special Guest 23P
Transcript
- 0:06Welcome to the Blue Security Podcast, a weekly podcast for
- 0:10Information Security defenders where we bring you discussions
- 0:13on best practices, tools and implementation for enterprise
- 0:16security. Now here are your house for
- 0:19today's show. Andy, JA and Adam Brewer
- 0:21welcome. To this week's episode of the
- 0:23Blue Security Podcast. I'm Andy, your host.
- 0:25I'm Adam, your cohost. We have a great show lined up
- 0:28for you guys tonight. We are talking with a company
- 0:31called 23 P Two of the folks who work there, Michael Belton and
- 0:36Dave Falkenstein and I will let them introduce themselves, but
- 0:40these guys are a red teaming pen testing basically stuff that
- 0:44Adam and I are not experts in and we have them on.
- 0:48To give that perspective from the Red Team side on what
- 0:52they've seen and then how you can possibly protect your
- 0:55companies based on some of the war stories which we'll
- 0:57hopefully get into towards the end here.
- 1:00But Michael, why don't you start it off and tell us a little bit
- 1:02about yourself and your company? Sure, Awesome.
- 1:05And thanks Andy for not going with the Michael Bolton.
- 1:08I'd have to break out my office space quotes.
- 1:15So always appreciate that I. Celebrate his entire library.
- 1:21So a little bit about myself. I started doing information
- 1:24security in the mid to late 90s, had a dialup ISP with my wife
- 1:29and we also offered security services on the side.
- 1:33So at that time it was you know, firewall management and setup
- 1:37and secure e-mail services and things like that.
- 1:39We sold that company in 2000 and I went into training as a
- 1:44contractor for. OD I taught offense and defense
- 1:47at Portland Coy and Fort Gordon. From there I went into
- 1:50consulting and I consulted with a local company here in Madison,
- 1:53but also probably known nationally called Burby.
- 1:56Burby was later purchased by CDW to be their services wing.
- 2:00After that, I went to Rapid Seven.
- 2:01I was global manager of the penetration testing team at
- 2:04Rapid 7. I did that for several years.
- 2:06After that. I was a VP of R&D at Optive
- 2:09where we focused on vulnerability research and then
- 2:12applied research as well. That's what my team focused on
- 2:14from. There I took a little break and
- 2:16I taught at local Technical College, Madison College for a
- 2:19few years and then most recently started 23 P to really focus on
- 2:25using offensive security as a not only a learning tool, but
- 2:29also as a way to test standards that organizations might be
- 2:33aligned to. Awesome.
- 2:34What a history. Glad to have you on.
- 2:40Sure. Thank you.
- 2:37Dave, why don't you tell us a little bit about?
- 2:40Hi, I'm Dave. My history is not as epic as
- 2:43Mike's. I got into working in tech
- 2:45around 2010 or so. I was doing tech support at a
- 2:49game company called Square Enix. From there I worked at a ISP
- 2:53data center type place doing some Linux support at a place
- 2:56called Webin X in Los Angeles. From there I built up a decent
- 2:59skill set using Linux and using tools like Medisploit, and a
- 3:03company called Rapid Seven had acquired Medisploit.
- 3:06And they were looking for support engineers for an Expos
- 3:08and Medisploit. I got super lucky and got a job
- 3:10there. And then from there I got a
- 3:12phone call one day from Mike because like, hey, I heard you
- 3:14do some cool stuff sometimes. And then I ended up on the
- 3:16penetration testing team at Rabbit 7.
- 3:19From there, I moved on to a few different places.
- 3:22I worked at a bank here in Los Angeles City National Bank on
- 3:25the Red team. And then I went on to lead the
- 3:27red team over at a company called IO Active for a few
- 3:29years. And then now I'm over here at 23
- 3:31P, so basically about a decade of offensive security
- 3:34experience. Awesome.
- 3:36Well, one of the things that I wanted to ask right away because
- 3:40I do a lot of mentoring with new folks coming into security and
- 3:44then Mike, with your education background, you were teaching
- 3:47folks getting into red teaming and security as well.
- 3:50Dave, I'm also interested in hearing what you have on this
- 3:53topic because you didn't start off in red teaming right away.
- 3:56You spent a few years in IT in general and then worked your way
- 3:59into our teaming. But when I talked to these new
- 4:01folks and I asked them what is it that you want to do in
- 4:04security? Because there are so.
- 4:06Many different silos within security and what you can focus
- 4:09on. Almost all of them tell me that
- 4:12they want to do pen testing, they want to do red teaming,
- 4:15they want to hack into different companies and bug bounties and
- 4:20all that. They have this dream that that
- 4:22is exactly what they want to do. And I tried to dial them back
- 4:25and I'm like, well, you have 0 experience, no certificates, and
- 4:29I'm not exactly sure what you're doing at home.
- 4:32Not to say that that's not possible.
- 4:34I'm sure there are people who are, you know.
- 4:36And like Neo and the Matrix that can just see the code and find
- 4:39the way in. But what would you say to those
- 4:42folks who are getting in and what's your experience of like,
- 4:45you know, maybe starting off in red teaming right away or
- 4:48building up that experience before you getting into red
- 4:50teaming? I'll start with you, Mike.
- 4:51Sure. So you're right.
- 4:53Just starting day one as a Red Teamer or even a penetration
- 4:57tester at a junior level is incredibly challenging from a
- 5:01career perspective. Meaning, in my general
- 5:03experience, it's incredibly difficult unless you.
- 5:06To apply at a company that does some sort of technical interview
- 5:09where you get to demonstrate what you know, but I have
- 5:13interviewed many potential red teamers and penetration testers
- 5:17in over my career talk is one thing.
- 5:19Handson keys is a totally different thing.
- 5:21And so for those reasons, right, it's a credibly challenging area
- 5:26of the industry to get into. Very rewarding, very fun, but
- 5:30also very difficult. And I think Dave would probably
- 5:32agree with me on this. Some of the best penetration
- 5:35testers I've ever. Known spent a lot of time
- 5:37previously as system administrators and the reason I
- 5:41suggest that that is so is that when you're a System
- 5:44Administrator, you think about all of the challenges involved
- 5:47with just operational IT, right. And so you're thinking about OK,
- 5:52Oracle or you know SAP or whatever this enterprise grade
- 5:56software is. You know, it's complicated to
- 5:59set up, it's complicated to manage properly.
- 6:01And because of that administrators tend to do XY or
- 6:05Z. Maybe that's.
- 6:06Create a super admin account. That's effectively a backdoor in
- 6:09case everything starts to go bad, right?
- 6:11And so because you have that experience, you start to look
- 6:14for those things as a red team or a pen tester, and I think
- 6:17that gives people an advantage in this line of work.
- 6:20Dave, what are your thoughts on that?
- 6:22Yeah, I. Just said, agree with Mike.
- 6:23I really try to guide people towards being a sys admin or
- 6:27even being a software developer first.
- 6:28The best people I know in security, they didn't go
- 6:31directly to security at all. They spent years, you know,
- 6:34building apps, whether it was web apps.
- 6:36Or thick client apps, Windows applications.
- 6:38Game developers I know like amazing hackers who spent years
- 6:41just doing game hacks for years. I grew up playing with the weird
- 6:45little things like that, like making aim bots and stuff, and
- 6:47it gave me an idea of how to work with certain APIs.
- 6:50And I think going towards things that you're actually interested
- 6:53in makes a big difference. People want to hop into security
- 6:55and they don't really know what they want to do.
- 6:57But if you're like, hey, I really like playing with
- 6:59iPhones, or I really like writing malware or whatever is
- 7:02the case, you'll find niches that kind of help you grow and
- 7:05it grows a bit more organically and you have a passion for it
- 7:07versus sitting there and struggling to learn something
- 7:10like, oh, Active Directory. When I hate Active Directory, I
- 7:12don't want to sit there and play with Active Directory all day.
- 7:14I'd rather have someone who specializes in that skill set,
- 7:17who actually has fun setting those things up.
- 7:19And you do need to learn these things.
- 7:20As a consultant, like I've definitely set up AD myself and
- 7:23I've worked at a few places where I've had a set of AD
- 7:25environments, but I loved Linux. So I went around, you know,
- 7:28learning about Chef and Puppet and Ansible and all these
- 7:30things. And so that's like the skill set
- 7:32that now I'm able to bring to the table as a red teamers.
- 7:34Like I can be the Linux admin, I can set up the infrastructure
- 7:37and I can leave the AD stuff to someone else who has that skill
- 7:40set. Or I can focus on malware
- 7:41development or other things said answer the question.
- 7:43Yeah, absolutely. Cool.
- 7:45Kind of curious, Mike, you brought up technical interviews.
- 7:47Have either of you ever had to demonstrate?
- 7:50In technical review like hack on the fly type stuff or maybe over
- 7:54a weekend. Yeah, speaking for myself,
- 7:56definitely. At every job that I was in,
- 7:58except for the training and DoD, all the consulting positions,
- 8:02the VP role, the management role, I had to demonstrate that
- 8:06I knew what I was talking about right in that.
- 8:08Whether you're on the delivery side, meaning you're a
- 8:11practitioner, or whether you're on the management side, if you
- 8:13don't speak the language, if you don't understand the
- 8:16fundamentals of what it is that offensive brings to the table.
- 8:21Right. It's an incredibly challenging
- 8:22situation. So yes, I've been tested and you
- 8:25know, in my last employer, for example, when I was VP at
- 8:28OPTIVE, the Rd. team, we put together an embedded device that
- 8:32we would send to candidates. They'd have a week to crack it.
- 8:35The embedded device challenge would involve reversing some
- 8:38firmware, stealing some secrets from hardware.
- 8:41There was an API that was involved in a web application
- 8:44associated with the API, and each of those had flags that you
- 8:48had to capture. And so it's a mini CTF with.
- 8:50Piece of hardware that we would send you.
- 8:52And in my general experience, that's what these are.
- 8:54They're not necessarily like, oh, just show up and you know
- 8:58hack stuff. It's more we're going to set up
- 9:00a CTF for you. Here are some of the guardrails.
- 9:02Here are some of the boundaries of the CTF.
- 9:04You know it'll happen in four days and be prepared.
- 9:07And you know, then we give the candidate a colleague machine,
- 9:11for example, and let them do their thing.
- 9:13Super cool. So looking at the type of people
- 9:16who might be interested, there's definitely some traits and
- 9:19personality types that tend. To be more red teaming, I know
- 9:23in my background, having been in the military, having been in law
- 9:26enforcement, I definitely have a defender's mindset.
- 9:30It was very difficult for me to think about the different ways
- 9:33to get in to, you know, on a like a red teaming.
- 9:36So what are some personality traits or, you know, just ways
- 9:40of thinking that a good Red teamer might have?
- 9:43Dave, I'll start with you. Sure, I can go into it.
- 9:45So I would say I generally look for a few things, Passion and
- 9:48you know creativity. I look for people who have.
- 9:50Stuff that kind of evil bit, but are not actually evil people.
- 9:53And so they had to have that bit set in them where they're
- 9:55looking for a little mischief, right?
- 9:57They've, you know, maybe played with breaking into a few
- 9:59buildings or smuggling a few items through TSA or something.
- 10:03People who like to get around certain laws but don't want to
- 10:06live that lifestyle perhaps. Or just people that are just
- 10:08super passionate and want to do this type of work.
- 10:11I've met people from all walks of life who like to do red
- 10:14teamwork, People who are ex military like yourself, people
- 10:17who are ex criminals and everything in between.
- 10:19I've done red teamwork. With someone who used to, you
- 10:22know, do tons of like card forgery and they actually got
- 10:24arrested by law enforcement for all the forgery they did.
- 10:27But I did red teamwork and we had him, you know, forge badges
- 10:29with us. So it varies, but I just say
- 10:32creativity and someone who just has fun.
- 10:34I don't like to be super serious when we're doing this type of
- 10:37work. And also someone who is aware of
- 10:39their surroundings and safety when we do red teamwork, I like
- 10:41to do scenarios that really blend in and like we're not
- 10:44wearing like tons of tactical gear or anything like that.
- 10:46I'm more likely to dress up like an ATM technician.
- 10:48And so people who have that kind.
- 10:50Of safety mentality and are aware of the situations that
- 10:54they create an organization so that we're not creating more
- 10:57risk when we execute Red Team engagements.
- 10:59So there's quite a few variables that go into it.
- 11:01I would just add on to that by saying that if you think of red
- 11:04and blue in terms of musicians for example, right.
- 11:07A blue teamer to me is more of a classical artist, meaning blue
- 11:12teaming is really built around checklists and guidelines.
- 11:16And right Mist is our Bible I so 27001 is.
- 11:20Bible. And so we think in terms of
- 11:23defense as a series of checklists and best practices,
- 11:28and we're trying to implement those in a repeatable, auditable
- 11:31way so that we can build a baseline for security.
- 11:35Whereas a red teamer is more of a jazz musician.
- 11:37In that, to my mind, you really have to have the mentality not
- 11:41only to be creative and to think about, OK, what do I need to do
- 11:45to make my malware execute on this platform, but then also
- 11:48think about the idea that it's. Not going to come to you right
- 11:51away, right? You have to have that stick to
- 11:54itiveness. If I can abuse the language in
- 11:56that way to say, all right, this thing that I just did didn't
- 11:59work and you know, 4 hours later you're still pounded on it.
- 12:03And then at 4 hours, 35 minutes, the aha moment happens and you
- 12:07succeed, right? But if you're not driven by the
- 12:10cause, so to speak, if you're not driven by the problem
- 12:13itself, it's really easy to get burnt out in in pen testing or
- 12:17red teaming because we're doing things that you're not supposed
- 12:20to do, right? That's the whole point of this
- 12:22is to test your security controls in ways that you didn't
- 12:24think of, and if that doesn't get your juices flying, it's
- 12:28going to be very hard to really excel in a red or penetration
- 12:31testing environment. Yeah, just like Mike saying and
- 12:34it kind of pivot off of that, the ability to like learn from
- 12:36our failures and having a tenacity to kind of keep going
- 12:39in the face of adversity is a big part of red taming.
- 12:42Like we'll have times where our malware fails in the face of EDR
- 12:45or our phishing campaign might be detected and you have to
- 12:48learn how to pivot off of that or create a different.
- 12:50Aerial on the fly and so it's a big part of the skill set.
- 12:53Man, I really identified with your music analogy because I am
- 12:58a classical violinist and I do really well at learning
- 13:03classical music and playing it, but I'm really bad at jam
- 13:07sessions and people are like, oh, let's just jam and go on the
- 13:10fly. I can't do that.
- 13:12I can't create my own music just off of the fly like that.
- 13:14My kids are in fiddling and that's what jamming is, is
- 13:18listening and being able to key off of it.
- 13:20And they're really good at it. They're very creative.
- 13:22But I am not. So I really identify with that
- 13:25analogy and how people think. Because yeah, coloring within
- 13:28the lines is like what I do. And maybe, you know, if you
- 13:32don't have that personality and you're a little bit more
- 13:34mischievous like you said, David, that may be something.
- 13:37They will steer you towards red teaming.
- 13:39Yeah. And for the record, actually I
- 13:40cannot color inside the lines. I'm terrible.
- 13:43So I think there is some. Correlation there, Yeah,
- 13:47absolutely. You mentioned something, Dave,
- 13:49that was also interesting to me because again, there's these
- 13:52different silos and security and when we think red teaming, we
- 13:56often think, you know, the guy in the hoodie, gal in the hoodie
- 14:00at the keyboard hammering away trying to hack into some, you
- 14:03know, network. Hack the Gibson.
- 14:05Yeah, exactly. You mentioned the guy.
- 14:07That you worked with that forged badges and that brings up
- 14:10physical security too. And that's a specialty probably
- 14:14within pen testing, social engineering and physical
- 14:17security. And you know, I wanted to hear
- 14:19your thoughts on physical security and social engineering,
- 14:22but also your thoughts on how, you know, in this day and age,
- 14:26have you thought about, especially as a company owner,
- 14:29Mike, how race has played into possibly physical pen testing?
- 14:33Because there was those folks who were arrested in the South,
- 14:36and they were both. American.
- 14:38They were part of a pen testing team and they were maybe treated
- 14:41a little bit more with more scrutiny than if it was someone
- 14:45who was white who was breaking in.
- 14:46They were tasked to do this. They had contracts to do it.
- 14:49But when the police showed up, you know, they were arrested and
- 14:51put in the handcuffs. So, you know, how does that play
- 14:53into the safety of your employees if you're thinking
- 14:55about physical security? Just want to kind of hear your
- 14:57thoughts on that. Sure.
- 14:58So going into just like safety protocols, we try to be just as
- 15:02safe as possible with our scenarios.
- 15:04And so we first try to come up the scenarios that are extremely
- 15:06believable. Maybe.
- 15:07Be worried. the IT staff showing up.
- 15:09And actually one of my favorite things to do is pretend to be an
- 15:11incident responder. So I pretend to be a blue team
- 15:13person and I do a spoof phone call to an organization perhaps.
- 15:16And I say, hey, you know there's been an incident at this
- 15:18organization. We're going to send a blue team
- 15:20were there and just be ready for them to, you know, get access to
- 15:23what they need to. And then we'll have someone else
- 15:25on site who isn't even a part of the scenario.
- 15:27But it's just watching for anything bad that can happen.
- 15:29Just like you're saying law enforcement getting confused,
- 15:32people at the company getting confused any of that.
- 15:34And so if that does happen, we do have a third party that.
- 15:37Kind of walk up sometimes. Be like, hey, you know what?
- 15:39This is actually part of our scenario.
- 15:41Like there's a huge misunderstanding.
- 15:42But also you yourself having, you know, that vocabulary and
- 15:45that ability to stay cool. I have had various times where
- 15:48I've been sitting inside of a bank that I've broken into and I
- 15:51am freaking outside like, hey, they're gonna call the cops.
- 15:54I'm gonna get arrested, Someone's gonna beat the crap
- 15:56out of me. This is a bad situation and I
- 15:58just have to stay cool and just sit there and wait it out.
- 16:00And at worst, I've had a security guard show up.
- 16:02I haven't been arrested yet, thank goodness, but I think
- 16:05having those safety protocols and just like.
- 16:07We think about defense and depth for defending an organization.
- 16:10We have this kind of defense and depth protocol for protecting us
- 16:13in the event of any weird situations like this.
- 16:16Mike, would you like to go into that side of it a bit?
- 16:18And then I can go into, I guess some Red Team engagements
- 16:20further where I've done some physical work as well.
- 16:22Yeah, absolutely. And I think you hit on the core
- 16:25point that I would like to make as well.
- 16:26I don't know that it's necessarily that race
- 16:29necessarily has an impact on any of this.
- 16:32It's really boils down to professionalism and protocol at
- 16:35the end of the day, and I know the incident you.
- 16:37Mentioned, I don't know specifics about it, so I can't
- 16:39really speak to it, but I can say that if you're in a
- 16:42situation where law enforcement has been contacted, right,
- 16:45you've already probably committed a series of mistakes
- 16:48to get to that point beyond just getting caught, right?
- 16:51Your protocol would dictate that you have, you know, some sort of
- 16:54physical, auditable document that outlines who your emergency
- 16:58contact is and why you're there, and it's on target company's
- 17:02letterhead, etc, etc. Obviously, as with any law
- 17:06enforcement interaction. Being polite and respectful, it
- 17:09goes a long way towards success. And so to my mind, you know, I
- 17:13have been caught certainly doing red Team physical, red teamwork.
- 17:16I actually once got locked in a stairwell and the only way I
- 17:19could get out was either to trigger the fire alarm or to
- 17:22just call and say, you know, the jigs up, these things happen,
- 17:24right? But how you handle it is really
- 17:27the most important. It's.
- 17:29I like to say it doesn't matter that you made a mistake.
- 17:31It's how you, you know how you deal with it the matters the
- 17:33most. And I think that rings true
- 17:35here, and certainly there are situations.
- 17:37Where if you are now involved with law enforcement, where I'm
- 17:40sure race has some sort of coloring factor, I've managed
- 17:42very diverse teams. I haven't heard of that being an
- 17:45issue outside of the very public one you mentioned, but it is an
- 17:49interesting thought certainly. But again, I think
- 17:51professionalism Trump's any of that in general.
- 17:54Yeah, and also another point is like don't run around and like a
- 17:57ski mask and tackle here doing red seam stuff.
- 18:00When we do it, we do the situations where we pose as the
- 18:04blue team or we pose as some kind of enterprise.
- 18:07That, you know, may be there, even a janitor or something.
- 18:09We're not showing up in tactical gear.
- 18:11We're not kicking down doors. Occasionally we use things like
- 18:14the under the door tool and stuff, but a lot of times we're
- 18:16just tailgating in and we just look like another employee.
- 18:19And so, you know, very odd for someone just call the police on
- 18:21someone's like, hey, this guy's in the office, he looks like he
- 18:24shouldn't be there versus OK, this guy's walking out with 10
- 18:26computers. This is strange.
- 18:28And so it all depends on the activity that you're doing and
- 18:30how you present yourself. Yeah, awesome.
- 18:32So final thing on training when someone's trying to get into red
- 18:36teaming. Any type of training or
- 18:39certifications that you would recommend?
- 18:41Because I'm sure there's people who are listening to this
- 18:43podcast who might have thought about getting into red teaming
- 18:46at some point. Where should they be focusing on
- 18:50training and possibly any good certs in the industry that you
- 18:52would recommend? Sure.
- 18:54So my mindset on that is train and whatever you suck really bad
- 18:58at. If you have a background that
- 18:59you're really weak in, I would say target that.
- 19:01And so for myself, I have more of a sys admin background.
- 19:04I wasn't really a software developer, so I went after
- 19:06trainings that helped me. Row in that field and so there's
- 19:08like the Darkseid OPS courses where it's like focused on
- 19:11malware development. That's a great one.
- 19:12I believe that was under silent break security that moved on to
- 19:15Net Spy. There's also the Sector 7
- 19:17courses focused on malware development.
- 19:18There's the mound of Academy that's out there currently.
- 19:20So I like to focus on malware development and offensive tool
- 19:23development now because that's kind of where I'm personally
- 19:26weakest. There's other great trainings
- 19:28that I've taken vulnerability research Red Team operators from
- 19:30Spectre OPS, there's BC Security of course is just on you know
- 19:33using Empire. Spectre OPS also has a course on
- 19:36just managing a. Team operation.
- 19:38I believe Darkseid OPS even has one.
- 19:39But really, I think the mindset should be, you know, get
- 19:42stronger and things that you're weakened.
- 19:43And so if, you know, suck at operational infrastructure,
- 19:46maybe go look at a course like CRT Oh, or something that has
- 19:49some kind of Terraform, you know, built into the curriculum.
- 19:52If you suck as a developer, go target that training, but do
- 19:55things that you're interested in and that you have a passion for.
- 19:57Otherwise you'll just kind of sit there and bang your head all
- 20:00day. I would build on that a little
- 20:01bit. My experiences teaching at
- 20:03Madison College, for example. Two year Technical College.
- 20:06The first year is all fundamentals, operating system,
- 20:09fundamentals, command line, things like that.
- 20:12And then you know my counterpart when I taught there was focused
- 20:16on defense, I was focused on offense.
- 20:18But you can't even begin to start to think about those
- 20:20concepts or those topics until you have that base fundamental.
- 20:24And so A2 year course like that is a great place to start quite
- 20:27frankly. Beyond that you know if you're
- 20:29thinking about just sort of general sort of net pen based
- 20:33sort of training, I really love the OSCP course.
- 20:36It's a sort of it's probably the only certification I look for in
- 20:40a prospect. You write in a potential
- 20:42employee because the whole attitude behind offensive
- 20:45securities approach to OSCP and their other certs, but OSCP in
- 20:48particular is really incorporates that stick to
- 20:52itiveness, right? Their motto is you, you send
- 20:55them a help e-mail, you get something back that just says
- 20:58try harder. That's their approach.
- 21:00It's a brutal approach but it really does separate those who
- 21:04really want this from those that don't.
- 21:06And so if you're thinking about certification, it's a mountain
- 21:09to climb. Don't get me wrong, but OSCP is
- 21:11certainly something that I value as a hiring manager.
- 21:15Michael, I was going to make the same point you did about that
- 21:18kind of base level of knowledge, that fundamental education.
- 21:21My employer, Microsoft paid for my everyone.
- 21:24In my role, we all had to go get Certified Ethical Hacker.
- 21:27And this is like four or five years ago, and it was about 10
- 21:30years in the industry for me. And what amazed me about going
- 21:32through that course was how much assumptive knowledge there was
- 21:35built into it that you understood.
- 21:37How operating systems work. You understood how TCP IP work.
- 21:40You understood how network worked.
- 21:42And if you didn't walk in the door with a pretty fundamental
- 21:44understanding of here's what a packet is, you know and and
- 21:47here's these sorts of things like it wasn't going to teach
- 21:49you that you had to have that coming in the door.
- 21:51So there's just a certain amount of depending on on who we're
- 21:54talking to as a theoretical future red teamer where you're
- 21:57adding career. Some of it is you just have to
- 21:59be around technology. You have to get that base level
- 22:03of knowledge of how all the stuff works and how all the
- 22:05stuff fits together. Before you can start to figure
- 22:08out how to break it and how to pull it back apart, you have to
- 22:11understand how the pieces fit together 1st.
- 22:13And so I just wanted to +1 on your comments around that.
- 22:16Fundamental level of knowledge is you do have to build that
- 22:18first. And however you're going to get
- 22:20that, whether that's industry experience, whether that's
- 22:22accelerated learnings, you do have to understand all that too
- 22:26and be able to basically understand how computers and
- 22:28technology and networking works before you can figure out how to
- 22:30pull it back apart. Yeah, that's a great
- 22:31perspective. I like to say you need to know
- 22:33the rules before you can break them.
- 22:35If you don't know the rules, you just frame prey and that's no
- 22:38way to hack. Yeah, it was really funny
- 22:40because I would ask some of these mentees that would, you
- 22:43know, tell me that they wanted to be Red teamers.
- 22:45And I'd be like, OK, well, what's the name of the
- 22:47administrator that has, you know, complete control in an
- 22:51Active Directory domain that you want to get?
- 22:53And they couldn't tell me, You know, they're like the
- 22:55administrator. I'm like, OK, well, what is it
- 22:57called? And they couldn't name it, you
- 22:59know, it's like, OK, well, you should probably understand the
- 23:01fundamentals of AD before you can actually be a red teamer.
- 23:05Yeah. And then beyond that, the blue
- 23:07team perspective of who has domain admin and what is that
- 23:10account named? I mean, if there's not the
- 23:12defaults, if you're following any reasonable set of blue
- 23:15operational perspectives, so you also have to not be tripped up
- 23:18by, oh, it's not the default. So I don't know what to do
- 23:21anymore. And that's an experienced thing,
- 23:23right? Exactly.
- 23:24Well, let's talk about some war stories, because I'm sure you
- 23:28have some really good ones on how you have gotten into
- 23:32companies having been doing red teaming and pen testing for many
- 23:36years, Miss. Configurations, ways that you've
- 23:39defeated, physical security, stuff like that.
- 23:41So I think our audience would love to hear ways that you've
- 23:44gotten in and then maybe recommendations that you had for
- 23:47those companies to help them secure it in the future.
- 23:49Yeah, absolutely. So I'll start with the
- 23:51misconfigurations I just presented on this exact topic at
- 23:54Black Hat last week. And there are so many stock
- 23:58default configurations or misconfigurations that you'll
- 24:00find. I mean, we could do a show just
- 24:02on that. So I'll keep it very high level.
- 24:05We actually are putting out a document on our web website that
- 24:08calls out a variety of categories and provides some
- 24:11things to lookout for. But you know, networking
- 24:13protocols in particular are super hot.
- 24:15So like LLM and R, MDNS, right, SMB.
- 24:18A lot of the standard Microsoft protocols come into play when
- 24:21you're talking about relaying credentials or stealing them off
- 24:24the wire. Password policies, Again, at a
- 24:27high level, the idea that a longer password is better than a
- 24:30complex password. So one thing I used to train on
- 24:34in DoD was for officers, you know things.
- 24:37Think about a very long password, think about a pass
- 24:40phrase, right. The familiar term we all use,
- 24:43which to me means grab a book off your shelf, know the chapter
- 24:47and the page or just the page number and know that it's going
- 24:50to be the first sentence. And that first sentence is your
- 24:53password. Because if you think about the
- 24:54economics of a password cracking venture, the shorter the
- 24:58password, the quicker it is for you to try more permutations.
- 25:01The longer it is, the more CPU cycles, the costlier it is for
- 25:05you to crack that and Dave can provide more guidance I'm sure,
- 25:08but that at a high level, some of my thoughts on that.
- 25:11So again, we could have a whole show just on misconfigurations
- 25:14and how red teams abuse them. Well, but I'll just kind of,
- 25:18I'll pause there. They have some wisdom please.
- 25:21Yeah, so general misconfigurations I've seen
- 25:24recently or like MFA not being implemented on all portals,
- 25:27being able to use like Graph API to get around certain
- 25:30conditional access policies. I've seen a lot of failures in
- 25:33conditional access policies, white listing where people have
- 25:36very complex. Like EDR configurations and
- 25:38deployments, but then they'll have a huge group of software
- 25:41developers who had a, you know, white list everything or create
- 25:44these huge folders where everything's white listed.
- 25:46And it's pretty funny cuz I'll spend like, you know, two weeks
- 25:48of dev time, like writing some sick custom malware, writing
- 25:52some kit, some sick stage that like bypasses everything.
- 25:55And then I get to the client and they're like, yeah, we have
- 25:57crowd strike, but we whitelisted everything and it's like, well,
- 26:00I just wasted all this time. So I think those are the most
- 26:04brutal misconfigurations where even I as a red team, where I'm
- 26:07like, why? I even try, but in general it's
- 26:09tough to, you know, be on top of everything.
- 26:10And so I understand from the other side.
- 26:12And also the defaults can be pretty nasty, like, um, Azure
- 26:15portal that has it. Like the defaults where you can
- 26:17just kind of see everyone's workstation, you can see
- 26:19everyone's username just as a regular user.
- 26:21And so I think those kind of defaults that get implemented on
- 26:24all of those services are also pretty scary.
- 26:26So you're able to just enumerate right there as a regular user.
- 26:30Exactly, I don't need to go through a whole mess of command
- 26:32line flags and in burden the op SEC of the operation, I can just
- 26:36log into the Azure. Portal and get everything I need
- 26:38right there. Yeah, there is a configuration
- 26:40for our listeners. If you're not aware that you can
- 26:43block the Azure portal for the majority of your users, except
- 26:47for the ones that you might actually need to use Azure for.
- 26:50And there's also Conditional Access Analyzer that can show
- 26:53you the gaps that you have. That's a common thing that I
- 26:56think we've seen as well where people have conditional access
- 26:59scoped, but then there'll be gaps and so there is a builtin
- 27:03tool in Azure that can show you what application or user.
- 27:07Or whatever it is that is exempt from your conditional access
- 27:11rules. Let's talk about physical
- 27:12security. That's always a fun topic.
- 27:14Let's let's hear some more stories on that.
- 27:16Sure. So yeah, I've done a few
- 27:18physical engagements, having a background in finance.
- 27:21I got tasked with robbing a few banks.
- 27:24And so that was quite a bit of fun.
- 27:26And I can go into the tactics that I use for a few of those.
- 27:29One method that was really fun and it was actually pivoting off
- 27:32of a failed social engineering campaign.
- 27:34I mean, so this is kind of going back that mentality of even if
- 27:36you have something. Fails.
- 27:38You can learn to use that, right?
- 27:39And so we have this mass campaign of giving out free
- 27:42sports tickets to people and saying, hey, you know, we, the
- 27:45bank, are giving out free tickets to a football game to
- 27:47our employees, Click here to sign up.
- 27:49Various people did click on it. But then a huge, you know, mass
- 27:52e-mail from the bank went out after that saying, hey,
- 27:54everyone, be on the lookout. That was a phishing campaign.
- 27:56And then so the team was like, oh man, we're burned.
- 27:59Like we're screwed. They saw that everyone's gonna
- 28:01be on alert. And I was like, well, we can
- 28:03perhaps use that, right? We have inside knowledge.
- 28:05There's a e-mail that we know that people.
- 28:07People clicked on and people are freaking out about and
- 28:09everyone's talking about South. We can use that knowledge.
- 28:11And then I had done quite a bit of reconnaissance and I had, you
- 28:14know, got an idea of the org map, right?
- 28:16Who's who and and who's the manager and then who's the CTO
- 28:19and who would send out a blue team.
- 28:21And So what I did is I spoofed a phone call to a bank and I said,
- 28:25hey, this is the CTO. I'm sending an incident response
- 28:27team. I'm sure you saw that e-mail
- 28:29that was going around that phishing e-mail.
- 28:31Someone at your branch clicked on that e-mail.
- 28:32We're sending a team of incident responders, a blue team that go
- 28:35and look at your workstation do forensics.
- 28:37Let them access whatever they need.
- 28:39And they bought that story 100%. And so myself, another
- 28:43associate, we went to another branch and we got business
- 28:45cards. We got an idea of, you know, how
- 28:48they work a little bit. And I actually just went to a
- 28:50copy shop and I just forged my own business card for that
- 28:54company. And so now I've got a fake
- 28:55business card. And then I also went and I
- 28:57printed out a fake e-mail from that CTO saying here's the work
- 29:00order, here's what you guys need to do, Here's, you know, the
- 29:03incident made it look as official as possible.
- 29:05Got the clipboard. You know where a polo shirt.
- 29:07You know, as legit as possible. And we also forge badges.
- 29:10We have fake badges for the bank and so we have lanyards with
- 29:13fake badges. We have business cards, we have
- 29:15a work order, We have a spoof call to the bank branch.
- 29:18Quite a believable situation, right?
- 29:20So we just show up and say, hey, we're the IR guys, we know about
- 29:23this e-mail, someone at your branch clicked it, you know, let
- 29:25us into your back office, let us into whatever.
- 29:27And what we did is we implanted a Raspberry Pi with a
- 29:30transparent bridge that was to bypass snack and to a sniff
- 29:34everything going across the wires.
- 29:35So basically like a wiretap for a.
- 29:37Computer, right. And we actually had a 4G modem
- 29:41connected to as well that was just sniffing everything and
- 29:43passing that back to a VPS that we controlled.
- 29:45So it was a pretty basic setup, but it did work.
- 29:48And with that, we're able to grab the credentials for a bank
- 29:52manager. But there's MFA and there's no
- 29:54externally accessible portals, right?
- 29:56There's nothing that we could use externally with these
- 29:58credentials. So I had to breach yet another
- 30:01corporate facility, and I did that in a few different ways.
- 30:04I did that via tailgating during a fire drill I had.
- 30:07Intelligence that there was a fire drill going on.
- 30:09And so I just walked into a office that was unused, sat down
- 30:14a desk with that bank managers credentials and I had access to
- 30:16millions of dollars in assets. I could move money around as I
- 30:20wanted. And it was a really cool show of
- 30:22you know even though you have all these external things with a
- 30:24little bit of social engineering and just looking the part and
- 30:27playing the part you can get pretty far.
- 30:29And so that was like a full compromise with those assets.
- 30:32Other things we did were you know breaches of their data
- 30:34center with a UDT. So I actually.
- 30:37He did a lot of Recon on one of their facilities, which had
- 30:40their data center and their sock, and I had seen that they
- 30:43were open at night and they had a cleaning crew that liked to
- 30:45leave the door open. And so this cleaning crew likes
- 30:47to leave all the doors open. And so we just show up at night
- 30:50pretending to be the blue team again and just walk around and
- 30:53we actually found the door to the sock wide open.
- 30:56And so we're able to walk into the sock and take pictures of
- 30:58their analysis dashboards like everything that there's going
- 31:01on. But we had a ridiculous amount
- 31:03of access just through, you know, lack security policies and
- 31:05all that fun stuff and people just.
- 31:07Just not vetting who's calling them and these kind of weak
- 31:10processes and kind of a culture of being super friendly.
- 31:13This bank had this huge policy. If we want to be friendly to
- 31:15everyone, we don't want to be mean.
- 31:17And so by kind of exploiting that and being friendly with
- 31:19everyone, they kind of just constantly let us in and all we
- 31:22had to do was communicate clearly and be friendly.
- 31:25It was super fun. That's unbelievable.
- 31:29I mean, that's a crazy story. Yeah, that was a fun 1M.
- 31:34Do you have any other fun physicals?
- 31:36Yeah, I have one that I think is probably worth mentioning.
- 31:38This happened in DC with a very mature customer in a very mature
- 31:42facility. And this speaks to our earlier
- 31:44conversation about protocol and politeness.
- 31:47But there were only two people at the organization that knew we
- 31:50were going to be doing this and they had set the challenge up
- 31:53for us again because they were very mature in their operational
- 31:56security. The challenge was to literally
- 31:59every night break into the facility.
- 32:01We weren't allowed in. We had to get into the facility
- 32:04just so we could start to do the cyber side of the house, right.
- 32:07And so a few days of Recon before that taking pictures of
- 32:11badges, creating those, everything that Dave just went
- 32:14through and we were getting in every night and of course we
- 32:17were. And the reason I want to tell
- 32:19the story is we were looking for other ways in, right?
- 32:21How can we get in without having to show badges and you know,
- 32:25really more of a high profile approach, How can we kind of
- 32:28come in through a back door, so to speak.
- 32:30And while we were doing that, we're walking down a hall
- 32:33hallway and there was a small door, you know, like a two 2 1/2
- 32:36foot high door and it was about waist high in a hallway.
- 32:40And on the door it said John Malkovich's head, John
- 32:43Malkovich, of course, the actor and and what an odd, obscure
- 32:48door. So it's locked of course.
- 32:50So we picked the lock open, the door empty, So disappointed with
- 32:54such a great name on the outside.
- 32:56But yeah, there was nothing in there, unfortunately.
- 32:58So that one stands out because we had a potential to see John
- 33:02Malkovich's head, but it wasn't there.
- 33:07Awesome. Well, let's talk about 23 Pi.
- 33:10Want to give you guys a little bit of time certainly to for one
- 33:13to thank you for taking time out to come on our show and talk
- 33:16about red teaming. But you guys are a local
- 33:19company. Michael I know that you're local
- 33:21to Madison, WI where I live, but I'm sure you guys do engagements
- 33:25all over the place. So tell us a little bit about 23
- 33:28P what you guys went to the table kind of your philosophy
- 33:31behind pen testing and? Be the after actions and how you
- 33:35help companies secure after you've done the pen testing.
- 33:38Yeah, absolutely. Well and thank you very much for
- 33:40the opportunity to be on the podcast.
- 33:42It's a great show. I've watched many of your
- 33:43episodes and really happy to be here.
- 33:46That said, 23 P you're right, we're a Madison based company,
- 33:49Dave is in Los Angeles. So we have people around the
- 33:52United States. We have global customers.
- 33:54And so we're really adaptable regardless of your maturity
- 33:57level, whether you're a very basic sort of security posture
- 34:01or whether you have have what I had just described earlier in DC
- 34:05where you're doing everything and you really want to test
- 34:08hard. I think one thing that really
- 34:10separates us is our, you know, partly our passion for
- 34:13offensive, but then also the idea that offensive shouldn't
- 34:18just be OK. You came in and you hacked a
- 34:20bunch of stuff and you wrote a report and has recommendations.
- 34:23But you know, I don't really see a lot of business value in that,
- 34:27right. And and I'm really not a big fan
- 34:29of sort of checkbox pen testing where it's minimal efforts sort
- 34:33of engagement and it's really just sort of being done to check
- 34:37off a box for some sort of compliance, right.
- 34:39And So what we try to do is we have sort of two
- 34:42differentiators. One of them is that our Red team
- 34:45assessments, our penetration testing engagements are rooted
- 34:48in some sort of standard. And my favorite story to tell is
- 34:52of a customer that is actually IPO D And because of the
- 34:56industry they were in, they had never had outside of a very
- 35:00rudimentary penetration test, they had never really tested
- 35:02their security and they didn't really have a very mature
- 35:05program. And so we bound our testing to a
- 35:09security standard, right, a set of standards that we had
- 35:11defined. In this case, we started with
- 35:13CSC 20 and all of our testing efforts were focused around
- 35:17validating whether they could adhere to or demonstrate
- 35:21capabilities that match CSC 20. And so we helped that customer
- 35:24go from a very immature security program to what is now a pretty
- 35:29modern and secure program with short reaction times,
- 35:33visibility, all of those metrics that you look for in a good
- 35:35program. And so the other thing that we
- 35:37really bring to the table is our Purple Team engagements.
- 35:39The Purple Team engagements, we have something that we call a
- 35:42live fire replay. And so basically we'll come in
- 35:45and we do a red Team engagement. We write our report, we make our
- 35:49observations and then we come back after the fact with the
- 35:52purple team perspective, which is leveraging my time as a
- 35:55trainer and as a teacher to structure daily classes around
- 36:00each event. So let's say we we had
- 36:03credential relaying and and so we would do a whole day of
- 36:05classes on credential relaying. We would offer your company time
- 36:09for your employees to meet, whether that's involves network
- 36:12OPS and system administrators, whoever, right.
- 36:14We help sort of guide that so that you get the most impact out
- 36:17of it rather than just dropping a report full of lulls on your
- 36:20desk. We really want to help you grow
- 36:23and if you're not using offensive to grow, I don't think
- 36:26you're making the most of your investment and we really try to
- 36:29make sure that there's business value associated with all these
- 36:31engagements. Awesome.
- 36:33Well, I want to thank you guys for taking time out on a Sunday
- 36:36night to talk with us. I think when we think red
- 36:40teaming, you know it is those Great War stories that Dave
- 36:43painted. And I think the conversation,
- 36:46the beginning reminds everyone that there is a lot of hard work
- 36:49in the basics, the fundamentals to get there.
- 36:51But if you're really interested, it can be pretty exciting, I
- 36:55think. Absolutely.
- 36:56We're always looking for good people, so.
- 36:59Thanks again for coming on tonight.
- 37:01Hopefully our listeners learned a little bit about Red Teaming
- 37:04in your company. That's our show for this week.
- 37:06Thanks for watching and listening.
- 37:08As always, our contact information will be in the show
- 37:10notes as well as 23 P's website and their contact info.
- 37:14If you guys have any questions or topics you want us to talk
- 37:17about in the future, please let us know.
- 37:18Thanks. We'll talk to you guys next
- 37:19week. Thank you for listening to the
- 37:21Blue Security Podcast. Please check out the show notes,
- 37:24catch up on episodes you may have missed, and subscribe so
- 37:27you don't miss any future episodes.
- 37:28Find. Andy on Twitter at a Jaw Zero
- 37:31and Adam at Ajbrewer. See you at our next episode.