WEBVTT

00:00.000 --> 00:01.360
Well, thank you all for coming.

00:01.360 --> 00:02.520
That was an amazing line.

00:02.520 --> 00:04.080
We really appreciate it.

00:04.160 --> 00:07.520
And I'm glad you all are the last survivors of that line.

00:07.740 --> 00:09.320
I'm Langston Clement.

00:09.480 --> 00:14.640
I've been in the industry of red teaming and pentesting for over 15 years.

00:14.800 --> 00:20.500
And had the pleasure of working with this guy for seven of these years doing red teaming.

00:20.500 --> 00:23.420
And we were lucky enough to do a lot of physical engagements.

00:23.600 --> 00:26.480
So, we're very excited to share some of these techniques with you.

00:27.140 --> 00:28.160
Hi, everyone.

00:28.160 --> 00:29.220
My name is Dan Goga.

00:29.220 --> 00:35.240
I've been working with Langston for the past six years doing all types of penetration tests and physical red teams.

00:35.240 --> 00:42.420
So, this presentation is a culmination of our experiences over the past few years and how it's been changing.

00:42.420 --> 00:45.240
And it really changed a lot with the Flipper Zero.

00:45.240 --> 00:48.960
So, we're really excited to share those experiences with everyone here .

00:48.980 --> 00:53.540
And thanks again for bearing with us with these difficulties we're having.

00:57.070 --> 01:03.250
So, over the years, there's been so many great people that have come before us with badge cloning technology.

01:03.250 --> 01:04.810
We've had the Proxmark.

01:04.810 --> 01:08.970
We've had the ESP RFID tool.

01:08.970 --> 01:18.430
And all of these different technologies have allowed people to surreptitiously clone badge technologies.

01:18.430 --> 01:24.530
So, those RFID badges that everyone carries around nowadays, those are very susceptible to cloning.

01:25.090 --> 01:31.030
All of these different hardware, we started out with the Proxmark 3, for anyone who's unfamiliar with that.

01:31.030 --> 01:34.650
That was kind of the entry point for RFID cloning.

01:34.670 --> 01:37.970
And then over the years, we've come to the Flipper Zero.

01:38.070 --> 01:41.950
So, now all those things are much easier to do.

01:42.470 --> 01:44.030
And just palm of your hand.

01:45.230 --> 01:48.930
So, with the Flipper Zero, it is a great device, right?

01:48.930 --> 01:53.430
But if you want to do remote badge cloning, you're gonna need some friends to follow along, okay?

01:53.430 --> 02:02.810
And this is something that was really unique that we kind of came across because we had to figure this out in a certain time period.

02:02.810 --> 02:09.890
But we're gonna talk about just real quick what RFID cloning is first, if you don't understand or know anything about that.

02:09.890 --> 02:13.190
So, basically, you're talking about radio frequency identification.

02:13.190 --> 02:15.750
It supports many protocols.

02:15.750 --> 02:17.150
There's unencrypted protocols.

02:17.150 --> 02:17.990
There's encrypted.

02:17.990 --> 02:19.590
We're gonna talk about both today.

02:19.850 --> 02:25.150
And a lot of these are just widespread all over the country, all over the world, really.

02:25.250 --> 02:29.290
And so, these sort of antiquated badge systems are very easy to break.

02:29.410 --> 02:36.470
And you come across these, you know, different protocols as you're sort of traveling around.

02:36.470 --> 02:39.770
One would be the low frequency versus high frequency slide.

02:39.770 --> 02:41.610
That's where we're at, in case you're wondering.

02:42.110 --> 02:44.890
So, low frequency is less secure.

02:45.250 --> 02:49.150
And essentially, it's got a longer range.

02:49.410 --> 02:55.970
But then the high frequency, 13.5 megahertz is secure.

02:55.970 --> 03:00.310
And it's also a little bit of a shorter range when you're getting close to them.

03:00.370 --> 03:04.370
Now, when you're doing your reader recon, okay?

03:04.370 --> 03:06.830
So, the reader recon is really important.

03:06.830 --> 03:11.510
Because what you're gonna do is you're going to walk up to a badge reader.

03:11.590 --> 03:20.990
And depending on if you have this little device here that I always carry on my keychain, this is the RFID Proxgrind field detector.

03:20.990 --> 03:32.470
It's really neat because what it does is that when you prop it up to a reader, it's just automatically going to flash these two different colors depending on what type of frequency it has, right?

03:32.470 --> 03:35.870
So, it might be a low frequency or it might be a higher frequency.

03:35.870 --> 03:37.170
In this case, it's both.

03:37.170 --> 03:38.790
Which is very interesting, right?

03:38.790 --> 03:42.250
So, we'll talk about what this type of badge reader is later.

03:42.250 --> 03:48.930
But really easy way to just find out what type of frequency that the badge reader is giving off, you can just get one of these.

03:48.970 --> 03:59.270
Now, if it does both, like I said, that's a different type of reader called a multiclass reader that we have a really fun sort of workaround to get to that.

03:59.350 --> 04:05.930
But the key thing here is that if it flashes red, if it's red, you're dead.

04:05.930 --> 04:06.270
All right?

04:06.270 --> 04:08.030
So, that's just the rule of thumb, okay?

04:08.110 --> 04:09.650
Because it's unencrypted.

04:09.650 --> 04:15.910
It's gonna be super easy to get around and clone these badges out of thin air and we're gonna show you how to do that.

04:15.910 --> 04:22.250
Now, if you don't have your trusty Proxgrind and you've left it at home for some reason, how dare you, right?

04:22.250 --> 04:25.070
You can always just use an app on the Flipper.

04:25.070 --> 04:31.590
So, if you go to the Flipper lab, you will actually be able to download an app called RFID detector app.

04:31.590 --> 04:32.570
Very simple.

04:32.570 --> 04:45.230
And it does the same thing that the Proxgrind does, that you just hold it up to it and it will tell you if it's a high frequency, sorry, 13.56, or if it's low frequency, 125 kilohertz, and then boom.

04:45.230 --> 04:47.550
You'll at least know where to start.

04:49.170 --> 04:56.430
So, before we get into the sort of remote side, we're gonna talk about the old school stuff that we used to do, right?

04:56.430 --> 04:59.230
During this whole time, we didn't even have Flippers, like Dan mentioned.

04:59.230 --> 05:05.150
We used to have a Proxmark, so we'd have to bring a laptop around, and that little device that you plug into the laptop.

05:05.150 --> 05:06.510
It wasn't very stealthy.

05:06.510 --> 05:08.790
It was very obvious you were doing something weird, right?

05:08.790 --> 05:16.890
And so, there are other ways that, like before we started doing this remote method, there are just traditional methods that we can do to clone our badges.

05:18.390 --> 05:31.890
Yes, so some pretty well documented cases or ways to clone a badge is with the, as you'll see, now we're on the traditional cloning methods, the brush pass and the clipboard cloner.

05:31.890 --> 05:40.190
So, these have been well documented cases from people who've come before us, from some people who are even talking this weekend at DEF CON 2, so check them out.

05:40.190 --> 05:48.710
But basically, you could put a rogue badge reader in a clipboard like we have here, or you could put it in a messenger bag and try to get up close to somebody.

05:48.770 --> 05:54.130
These have been great ways to get a badge clone, but they weren't always super reliable.

05:54.210 --> 06:03.110
And then, of course, a few years ago, we had that little thing called the coronavirus pandemic that threw a wrench into all of the traditional RFID cloning methods.

06:03.170 --> 06:10.050
And so, you couldn't be within six feet of somebody, and there just weren't many people in office locations to even get badge reads from.

06:10.050 --> 06:23.150
So, this forced us to rethink how we do badge cloning and physical assessments, and that led us to use things like the standalone wall implant method, which you can see on the slide there.

06:23.370 --> 06:41.330
Basically, what this is, is you just put the power source and ESP RFID tool into a rogue badge reader, and you stick it on the side of a building with some type of social engineering placard saying, hey, everybody, use this badge reader and not the real one.

06:41.330 --> 06:51.590
So, everyone comes up, they present their badge, not knowing the difference, and you get a read on that information because of some implanted hardware in the badge reader that we'll get into here in a second.

06:51.590 --> 06:54.810
But this is great because we maintain our anonymity.

06:54.810 --> 06:58.350
We can get there really early in the morning, even with not much foot traffic.

06:58.350 --> 07:06.410
We plant it on the side of the building, and then we sit in the car with a long range Wi-Fi antenna, and we can read all the data from that badge reader.

07:06.450 --> 07:16.530
So, even though we're five years past the pandemic, this still has been a really great method that's persisted because of different hybrid work environments or just buildings with low foot traffic.

07:19.780 --> 07:25.400
And then quickly about the ESP RFID tool, you'll see a slide there about the background information on that.

07:25.400 --> 07:26.560
So, that's what it looks like.

07:26.560 --> 07:35.620
You connect to it over a Wi-Fi interface, and then anytime someone presents badge credentials or presents their badge, you get that piece of information.

07:35.620 --> 07:51.360
Now, this is going to be a little more difficult with our environment, but keep in mind that binary code that you see there, that's what the ESP RFID tool does, and that's the important piece of information that we'll need, and we'll need to transform that to work with the flipper zero here in a second.

07:53.880 --> 07:56.680
And the wall reader is pretty easy to do on your own.

07:57.100 --> 08:03.140
It's not that expensive to find the parts, and there's no soldering, so this can be done pretty easily.

08:05.640 --> 08:06.280
All right.

08:06.280 --> 08:23.920
So, on the wall reader build slide, so you're basically these parts are all, again, all listed on the GitHub, so you don't have to memorize this or, you know, all the slides are here, but basically you're going to be using this little, the key thing is this little tiny tool called the ESP RFID tool.

08:23.920 --> 08:24.940
This tiny, right?

08:24.940 --> 08:33.920
And what it does, it basically dumps the data onto a text file for you, and it's got these little screw-in terminals, that's why it's solderless, right?

08:33.920 --> 08:39.300
So you can just take, use a screwdriver, take some wires, plug them in there, screw it down, you're done, right?

08:39.300 --> 08:43.700
And then on the next slide, you see that the connection guide, okay?

08:43.700 --> 08:52.500
So basically you're going to take the inside, this weekend terminal interface, this is common across all types of badge access, okay?

08:52.500 --> 09:07.140
So this is going to apply for no matter what brand you're using, we're using HID because that's mainly what we see in the United States, but again, this will work with anything, and all you're going to do is just take four simple wires, all right, you're going to take a white wire and a green wire,

09:07.140 --> 09:10.520
and that's going to give you your one and your zero, those are two data wires, okay?

09:10.520 --> 09:22.540
So that's where the binary data is going to get grabbed from, and then dumped onto this little tool, and then you're going to just take a little wire T connector, and you're going to connect it, and with the batteries, that's going to power up this little thing,

09:22.540 --> 09:27.700
because this has a Wi-Fi module on it that you need to access, and your actual badge reader itself.

09:28.080 --> 09:36.180
So again, it's really simple, super easy to do, and then when we get to the clipboard cloning method, I'll show you how the batteries are even simpler.

09:36.180 --> 09:41.300
So the compact standalone wall reader, if you take a look at that picture, that's exactly what it looks like.

09:41.300 --> 09:51.460
So with those two batteries, I did a little bit of prototyping, and it took me a little bit to figure out what would squeeze into this thing, but once you get it, everything is just inside of the unit now.

09:51.460 --> 09:58.320
And then you just take some 3M tape, you literally can slap it on concrete, you can put it on glass, steel, anything, right?

09:58.320 --> 10:06.220
So the client's not going to make it mad that you installed a rogue badge reader, you can just rip it off and take it home with you, and it's really, really simple.

10:06.440 --> 10:16.120
So the first time we did this, it was really funny, because we were super hyped, we were like, oh man, this is going to work, we prototyped it, we practiced, and we're like, okay, let's go stick this on a wall now, right?

10:16.120 --> 10:28.520
So we stuck it literally next to the actual badge reader, and there are some unfortunate consequences that it had, because apparently with low frequency, if you stick them too close to each other, it cancels it out.

10:28.520 --> 10:32.060
So you're basically dossing the badge reader.

10:32.060 --> 10:33.520
We did not know this, right?

10:33.520 --> 10:40.620
So we got a call from our client and said, hey, you took down our badge reader, nobody can get into the front door.

10:40.620 --> 10:43.660
We're like, okay, yeah, we'll go check on that.

10:43.660 --> 10:50.080
Meanwhile, we're in the car watching people, you know, and they're walking up to the door, we're like, oh, there we go, somebody's going to touch the badge reader.

10:50.080 --> 10:55.760
And then all of a sudden , they couldn't get in, the security guard was letting all these people in, what's going on?

10:55.860 --> 11:11.040
So that gave us a good opportunity to do this sort of idea for the next time, if you actually intentionally want to do that, you can do misdirection, so now you can lead people to a back entrance where there isn't a security guard, you can try to tag their badge there or,

11:11.040 --> 11:16.080
you know, something, you can catch them along the way if you're trying to do some badge cloning.

11:16.660 --> 11:22.960
So the cool thing about this is that you can basically do a really quick build.

11:23.060 --> 11:27.820
So if you don't want to use the wall reader, you can use this clipboard cloner, right?

11:27.820 --> 11:43.880
So you can literally take that off the wall and slap it inside of this clipboard, and this clipboard is listed on the link as well, but basically you can just charge this with a 9 volt battery, and it's really nice because you have your obviously super legit paperwork that you,

11:43.880 --> 11:57.860
you know, are walking around the building with, and you can just say, hey, we're doing a security audit, we just need to check your badge, and then they hand you their badge, and you literally hover it over the clipboard, hand it right back to them, within that split second,

11:57.860 --> 11:59.100
you've cloned the data.

11:59.260 --> 12:11.580
It's super quick, you don't even have to hold it that long, just like, okay, you flip it once or twice, get two reads on it, hand it back, you're like, okay, all right, thank you so much, really appreciate it, have a great day, and now you have this data that you can do.

12:11.800 --> 12:17.340
The clipboard cloner build slide that we're on here, again, it lists out everything you need to do.

12:17.340 --> 12:21.760
This one's even simpler, again, because you're using a 9 volt battery, so you only have to use one battery.

12:22.100 --> 12:34.940
We highly recommend these batteries have, like, a little charging port on the side, so if you have, like, USB-C or something, you don't need special equipment to charge it, if you get to the hotel, you know, you get there late, you need to charge the batteries real quick,

12:34.940 --> 12:37.860
you can just do that without having to go grab more batteries.

12:37.960 --> 12:51.420
And then the connection guide for the clipboard connection guides, literally the same thing, you're just using a 9 volt battery, very easy to do, that T-connector just clamps down, so you're not actually soldering any wires, you're just making the connection.

12:51.420 --> 13:01.500
So, yeah, this is the janky version, but you can see that that's literally just connecting the power between the ESP RFID tool and the reader itself.

13:01.500 --> 13:02.420
It's that simple.

13:04.740 --> 13:15.380
And then, yeah, so then we're, like, okay, what are we gonna do if we, you know, like, this is cool, these little guys are cool, but, like, why don't we crank it up a bit, right?

13:15.380 --> 13:17.600
Why don't we, like, go a little bit crazier?

13:17.720 --> 13:20.540
Can we get something that's, like, a long-range reader?

13:20.760 --> 13:27.740
And then after, like, thinking about it, we're, like, oh, okay, what are those things that are outside of parking garages all the time, right?

13:27.740 --> 13:29.280
This thing called the gooseneck.

13:29.340 --> 13:39.940
So the gooseneck is just a metal pedestal that sits there, and basically if you think about it, right, it's set up for parking garages so people can pull up and they can just wave their card.

13:39.940 --> 13:40.860
They don't have to get close.

13:40.860 --> 13:42.640
They don't have to tap their badge to anything.

13:42.640 --> 13:45.600
They just wave it, and then it lets them in the area.

13:45.600 --> 13:54.340
But with that, right, it's usually drilled into concrete, so you're not just gonna, like, pull up to the client's site and drill into concrete in the morning and get away with that, right?

13:54.340 --> 13:54.980
That's impossible.

13:54.980 --> 13:55.760
It's not gonna work.

13:55.840 --> 14:05.000
So I was, like, let's just keep it as simple as possible, and I just took a piece of plywood and some spray paint and some furniture feet, and I was, like, all right, that's it.

14:05.000 --> 14:06.340
This is the gooseneck reader.

14:06.340 --> 14:11.420
So if you see the slide with it next to the trash can, that's what it looks like.

14:11.420 --> 14:16.220
And right now it's in the physical security village, so as soon as you walk in the physical security village, you will see it.

14:16.220 --> 14:17.480
It is turned on.

14:17.940 --> 14:19.940
You've been warned, okay?

14:20.320 --> 14:26.100
We use it for our RFID wall of sheep, so if anybody got, like, badge clone, they're in trouble.

14:26.480 --> 14:30.460
So it sits right next to this trash can.

14:30.460 --> 14:31.540
It's really easy to do.

14:31.540 --> 14:36.080
And the way you can position it next to the door, as soon as somebody walks out that door, game over.

14:36.080 --> 14:37.740
Like, it's too late for them, right?

14:38.160 --> 14:39.540
It just sits there.

14:39.540 --> 14:43.280
It's just, like, you know, it has a 12-hour battery.

14:43.280 --> 14:44.480
You can read up to three feet away.

14:44.480 --> 14:45.440
It's pretty scary.

14:45.580 --> 14:49.020
And then it's the same thing, but it's just a larger version of that, right?

14:49.020 --> 14:53.220
And all these manufacturers have a long-range reader of that.

14:53.280 --> 14:57.740
Then I had a goose joke about, you know, the goose is crying.

14:57.740 --> 15:01.280
So it really doesn't have the same effect when we don't have slides on the screen.

15:04.080 --> 15:04.620
Yeah.

15:04.620 --> 15:09.080
And then the goose neck reader is great, because it's basically the height variance.

15:09.080 --> 15:15.880
So if somebody has their badge around their neck or if they have it on their hip, it really will read both of those.

15:15.880 --> 15:18.220
So it's sort of a perfect type for that.

15:18.260 --> 15:20.980
The build guide is there as well.

15:20.980 --> 15:22.200
Same thing.

15:22.420 --> 15:25.260
But I'm just naming, like, the different types of readers.

15:25.260 --> 15:30.500
So the one that's in the physical security village right now is the MaxiProps 5375.

15:30.740 --> 15:34.080
The high-frequency version of that is the R90.

15:34.560 --> 15:38.260
And then, yeah, the connection guide is the same.

15:38.340 --> 15:40.780
Literally just connect all those wires together.

15:40.780 --> 15:43.580
And then you can see the long-range reader wiring.

15:43.800 --> 15:47.520
Inside of it, it's that simple, just like we're showing you.

15:47.520 --> 15:49.680
It's just a couple wires spliced together.

15:49.680 --> 15:55.660
This time you're going to use a bigger battery, because you need to hold that battery charge for that large reader.

15:55.660 --> 15:57.320
So you just use a 12-volt battery.

15:57.320 --> 15:58.540
It'll last all day.

15:58.540 --> 16:00.180
You really only need it for, like, the morning.

16:00.180 --> 16:02.960
You know, like, just people walking into work.

16:03.680 --> 16:06.060
And then, yeah, the base is very simple.

16:06.140 --> 16:15.620
If you have... if you're fancy and you have, like, you know, a CNC machine or a laser cutter or anything like that, you can use the template that's on the GitHub.

16:15.620 --> 16:21.460
Or you can literally just cut out a 16x16 piece of plywood.

16:21.460 --> 16:22.520
Super simple.

16:22.800 --> 16:26.820
And then you can just trace the holes and then drill them out.

16:26.820 --> 16:28.680
Spray paint it in your backyard.

16:28.680 --> 16:31.160
It's a fun little, you know, day project.

16:31.180 --> 16:32.780
And then you're good to go.

16:32.780 --> 16:40.700
So when you sit there and you look at the installation, the last slide there, it's just showing it's sitting there with the battery installed.

16:40.700 --> 16:42.480
And it's sitting next to a door.

16:42.480 --> 16:44.500
It's sitting there on rocks.

16:44.520 --> 16:49.780
And because of the distance away from the edge, it counterbalances the weight.

16:49.780 --> 16:52.400
So you don't have to worry about tilting or falling over.

16:52.400 --> 16:54.660
So it really works out when you do that.

16:57.990 --> 16:58.590
Right.

16:58.590 --> 17:04.790
So now that you have your Gooseneck Reader implanted, you can do the same angles we did with the Wall Implant Reader.

17:04.790 --> 17:10.530
So again, we're just sitting in the parking lot watching the chaos ensue.

17:10.530 --> 17:15.170
And we're able to collect all those credentials without anybody knowing our identities.

17:15.170 --> 17:17.090
So we can go in later, collect it.

17:17.090 --> 17:25.430
In fact, one time we put the Wall Implant Reader on the side of a building and we went away for a little bit, back to the hotel to wait for us to collect credentials.

17:25.430 --> 17:43.790
And we come back, we did something else to get inside the building, and then we're sitting in the break room and we watch, or the lobby, and we watch as the local police comes in with the Wall Implant Reader in a little evidence bag because someone called the police and thought it was much more serious than just a badge reader on the side of a building.

17:44.310 --> 17:47.850
So that was a pretty fun experience.

17:47.850 --> 17:50.850
But we got our creds and we got in the building.

17:50.850 --> 17:59.770
So we've gone through all of those different angles and we did our homework there, explaining the background and the RFID.

17:59.770 --> 18:05.050
So now it's for the fun stuff and why all of you came to see this talk, the Flipper Zero.

18:05.050 --> 18:11.070
So we're going to bring it together as to why all that was important and how the Flipper Zero fits into that.

18:12.490 --> 18:22.530
So what you'll need for this is Flipper Zero, some blank low-frequency cards, and the Flipper app on the phone, because that's a real game changer.

18:22.530 --> 18:26.890
And then also a bin-to-hex calculator app on your phone.

18:28.290 --> 18:38.150
And going back to that ESP RFID interface, you take that binary and now we're going to manipulate that data a little bit to make it compatible with the Flipper.

18:38.150 --> 18:42.190
And I'll let Langston explain the card number and facility code here.

18:43.030 --> 18:43.470
Okay.

18:43.470 --> 18:49.370
So when you're talking about access controls for physical, there's two main things that you need, right?

18:49.410 --> 18:52.550
What's the magic behind these cards in the first place, right?

18:52.550 --> 18:57.610
So if you hold it up to a light, you'll see sometimes you'll see just the copper wire inside, right?

18:57.610 --> 19:00.370
That's dumping, this is binary data on it.

19:00.370 --> 19:03.570
And so the card basically holds two key numbers.

19:03.570 --> 19:06.790
There's the facility code and then there's the actual card number.

19:06.790 --> 19:14.230
So the facility code ranges from 0 to 255 and then the card number can range from 0 to 65,000 plus, right?

19:14.230 --> 19:18.530
So you're not really going to just start guessing what the card number is, right?

19:18.530 --> 19:25.630
Now, the interesting thing is that sometimes you can pick up a card, on the back of the card, the card number part is actually printed on the card, right?

19:25.630 --> 19:27.030
You will actually see that.

19:27.030 --> 19:35.710
So if you see some of these that come from the manufacturer, they will actually have the card number printed on the back, but you might not necessarily have the facility code in most cases, right?

19:35.710 --> 19:39.690
It's just kind of like writing your password on a sticky note, sticking it on your monitor.

19:39.890 --> 19:41.170
We've never seen that before.

19:41.170 --> 19:43.210
So that never happens in real life, right?

19:43.230 --> 19:50.310
But so basically in this sense, we're going to sort of show you what the binary data does and how you get to those two numbers in the first place.

19:50.310 --> 19:53.690
So go to the binary code breakdown slide, okay?

19:53.830 --> 19:59.790
And in there, if you check out this, there's a link there.

19:59.790 --> 20:01.970
Shout out to the physical security discord.

20:01.970 --> 20:03.250
Somebody dropped this link in there.

20:03.250 --> 20:05.450
It's super helpful to explain this.

20:05.450 --> 20:09.990
But you have essentially a 26-bit card, right?

20:09.990 --> 20:14.070
And on your flipper, you're actually going to see the H10301.

20:14.630 --> 20:18.190
Now, this is the standard unencrypted card, right?

20:18.190 --> 20:18.830
You're going to see that.

20:18.830 --> 20:20.390
Sometimes you might see a 37-bit.

20:20.390 --> 20:24.030
There's an example of how you break that down, but we're just going to go with the 26-bit.

20:24.070 --> 20:27.630
It's composed of an even parity bit and an odd parity bit.

20:27.630 --> 20:28.910
Those are the bookends.

20:28.910 --> 20:30.150
What we do is just take that.

20:30.150 --> 20:31.750
We kind of just toss it away, right?

20:31.750 --> 20:36.110
And then there's an 8-bit facility code, and then there's the 16-bit card number.

20:36.110 --> 20:45.050
Those are our key numbers that we need, and again, so if you look at this whole loot.txt, you see this 26-bit card, right?

20:45.050 --> 20:46.230
18-bit preamble.

20:46.230 --> 20:47.290
Don't worry about that.

20:47.290 --> 20:51.150
And then the hex that's listed there is actually for Proxmark 3.

20:51.150 --> 20:52.990
And again, we're not using Proxmark 3 anymore.

20:52.990 --> 20:53.930
We're using the flipper.

20:53.930 --> 20:58.450
The flipper accepts a different type of hex code, so that's what we're going to explain how to do.

20:58.450 --> 21:00.070
Now, look at the next slide.

21:00.070 --> 21:03.430
Binary conversion to hex for the flipper zero.

21:03.430 --> 21:05.690
Again, you get your 26-bit card.

21:05.690 --> 21:09.950
You're going to just copy that on your phone or on your laptop or whatever.

21:09.950 --> 21:13.830
You're going to paste it into this calculator.

21:13.870 --> 21:20.950
Remember to move those bookends, those trailing and leading parity bits, so that you're stuck with just your facility code and your card number.

21:21.030 --> 21:24.450
And then when you convert it, you're going to get this six-digit hex code.

21:24.450 --> 21:29.950
That's what the flipper uses in order to add a card into your system, okay?

21:29.950 --> 21:39.090
And so this is the manual way of doing it, and it's good to know how to do it, because again, you might come across a 37-bit that you might need to convert, but it's as simple as that.

21:39.090 --> 21:46.390
You're just copying and pasting things, and then you'll get a conversion there, and then you just add it to your flipper here.

21:48.050 --> 21:51.690
Right, so from here, you'll see on the sides, it's pretty simple.

21:51.870 --> 22:01.330
I'm sure a lot of people in here are familiar with the flipper's general interface, but you're going to take that 125 kilohertz, that's the low-frequency version of the flipper capability.

22:01.450 --> 22:02.850
We add it manually.

22:02.870 --> 22:11.290
We're going to choose HID H10301, and then we enter that hex data that we just got from the calculator.

22:11.730 --> 22:20.710
And if you will go, and of course you got to name it DEF CON 33, and then if you check the info on that entry, you'll see a little easter egg.

22:20.710 --> 22:25.630
So facility code 33 and card leap for DEF CON 33, of course.

22:25.750 --> 22:31.830
And now you can either write it to a card or use it just emulate with the flipper zero.

22:31.970 --> 22:38.910
I mean, bonus points for writing it to an extra card, especially a card that you've done your research on and know what the company's badge looks like.

22:38.910 --> 22:43.730
That's super stealthy and that has got us by so many security guards.

22:44.590 --> 22:46.390
And then now you're in.

22:46.850 --> 22:51.130
So not everyone can see it, but we had a lot of shout outs to Severance here.

22:51.470 --> 22:59.430
So it's a little bit of a buzzkill, but you can get all those waffle parties with using the flipper zero and the low frequency.

23:00.090 --> 23:07.230
Now also, we just kind of talked down on the low frequency and how easy it is to copy that.

23:07.230 --> 23:14.810
But there also are some cases where HID SE and COs readers can be cloned as well.

23:14.810 --> 23:25.830
And we mentioned earlier about how the multiclass readers, and I'll just say that keep your eyes open for as you go through society, look at all the badge readers near and far.

23:26.930 --> 23:37.210
I'll just and that are vulnerable to basically the downgrade attack, which is what we were alluding to earlier.

23:37.210 --> 23:43.150
So if there's a high frequency, multiclass is designed to take high frequency and low frequency.

23:43.150 --> 23:48.610
So that multiclass reader that Langston is holding up, that can take either a low frequency card or a high frequency.

23:48.610 --> 23:59.130
And it's designed to serve in an environment where they're transitioning cards from, you know, they're issuing new, what they think is higher security, high frequency cards.

23:59.130 --> 24:03.590
Yet there's still a vulnerability there where you can downgrade the information.

24:03.590 --> 24:08.850
Because essentially it's the same information that's being communicated to the card, just in a different way.

24:08.850 --> 24:17.370
So if we collect information from using this multiclass reader, you can still get that same data and write it to a low frequency card.

24:17.370 --> 24:19.930
And then that reader can take low frequency too.

24:19.930 --> 24:22.410
So okay, I see low frequency or high frequency.

24:22.410 --> 24:24.610
Doesn't matter how it got here to the reader.

24:24.610 --> 24:27.470
So it's still going to accept it and grant you access.

24:32.010 --> 24:33.050
And yeah.

24:33.050 --> 24:37.430
So, you know, use the Proxgrind detector tool to go around.

24:37.430 --> 24:44.430
If you see those two red lights or two lights blinking, then you're good to go and you're going to be able to get into even more buildings.

24:47.810 --> 24:55.970
And this same also the great thing about the basically everything we're talking about today is that it's so versatile and you can take it out of a clipboard cloner.

24:55.970 --> 24:59.230
You can slap it to a wall with the right casings, of course.

24:59.230 --> 25:03.910
But you can do this just as easily with a clipboard cloner that we did with the low frequency.

25:04.070 --> 25:08.270
But of course you need this special R40 multiclass reader instead.

25:10.330 --> 25:12.950
And also, yeah.

25:12.950 --> 25:15.490
So it applies to many different situations.

25:15.490 --> 25:22.150
But same process of getting that binary from ESP RFID tool.

25:22.150 --> 25:28.230
And then, of course, for the flipper, we're still doing it on the low frequency, 125 kilohertz.

25:28.230 --> 25:30.510
Now I'm on slide 74.

25:30.570 --> 25:32.850
And same general interface.

25:32.850 --> 25:34.710
Same HID 103.

25:34.710 --> 25:36.170
Right to the card.

25:36.170 --> 25:38.330
And it's going to be slightly different.

25:38.330 --> 25:39.570
Show up in the info.

25:39.570 --> 25:46.310
But it'll still work for you to either write to another low frequency or also emulate as well.

25:46.430 --> 25:55.870
So bottom line, if you see multiclass readers in an environment, encourage them to move on.

25:57.110 --> 25:57.830
Everywhere.

25:58.830 --> 26:00.030
Yeah.

26:00.030 --> 26:02.410
Hopefully everyone's catching our drift there.

26:03.670 --> 26:06.990
So there's ways to disable this.

26:07.570 --> 26:10.950
You have to ideally replace all the card readers.

26:10.950 --> 26:17.570
But you can disable the low frequency with a power cycle and a special configuration card from HID.

26:20.960 --> 26:21.900
So, yeah.

26:21.900 --> 26:32.620
So with the multiclass, again, so like the detect either use your proxy or literally walk up to the reader and it'll literally say HID multiclass SC on it and then you just know.

26:32.620 --> 26:32.780
Right?

26:32.780 --> 26:39.100
You just walk up to readers and read them and then you'll start to understand the more you do this that you're like, oh, okay.

26:39.100 --> 26:48.620
And this is actually worked out for us one time because the client had all their upgraded readers to the new SC, which I'm about to talk about in a minute here.

26:49.080 --> 26:50.540
And so it's really hard to do that.

26:50.540 --> 26:51.720
You can't do that downgrade attack.

26:51.720 --> 26:54.820
But they had one multiclass at one door.

26:54.940 --> 26:56.620
And we were like, oh, my gosh.

26:56.620 --> 26:57.760
This is awesome.

26:57.760 --> 27:01.120
So we were able to clone someone's badge, do that whole technique.

27:01.120 --> 27:02.800
Then we put it down to a card.

27:02.800 --> 27:06.200
We obviously tried the card just for fun at all the other readers.

27:06.200 --> 27:07.020
We knew it wouldn't work.

27:07.020 --> 27:11.460
And then when we walked up the multiclass, it just led us into that one door and then that was it.

27:11.460 --> 27:12.180
Game over.

27:12.180 --> 27:13.340
So, yeah.

27:13.340 --> 27:16.280
Very important to get your clients to make sure that they upgrade.

27:16.280 --> 27:23.120
So on the purple slide, on the number 2 HID SE SEOS legacy attack.

27:23.200 --> 27:27.660
So to talk about these sort of readers, right?

27:27.660 --> 27:31.820
So this is for iClass SE and SEOS only.

27:31.820 --> 27:37.520
So these are the updated versions that don't have these, you know, unencrypted cards.

27:37.520 --> 27:39.580
They do have encrypted cards now, right?

27:39.580 --> 27:44.720
And the downgrade won't work because it only reads the high frequency thing.

27:44.720 --> 27:46.760
So you can't take that low frequency card.

27:46.760 --> 27:48.360
It doesn't know how to read that signal.

27:48.360 --> 27:50.800
So you tap it to, it's not going to do anything.

27:51.180 --> 27:57.860
And the thing with SE cards, to this moment that we know, you can't copy them just one to one just like you can with low frequency, right?

27:57.860 --> 28:00.300
You're literally just copying badge data.

28:00.620 --> 28:01.740
So you can't do that.

28:01.740 --> 28:05.740
So with this one, there's a thing called a legacy attack, okay?

28:05.760 --> 28:10.900
And so what it is, is basically it's vulnerable to ICS cards.

28:10.900 --> 28:12.760
And this is just the type of card.

28:12.780 --> 28:16.060
And what this card is, it's like a legacy card.

28:16.060 --> 28:22.440
And basically what it's telling you is that, you know, it can sort of use an older protocol.

28:22.440 --> 28:25.040
But these cards are only one time use, right?

28:25.040 --> 28:29.900
These other cards that we're using, low frequency, you can rewrite them to infinity, right?

28:29.900 --> 28:33.620
But with these ICS cards, they're only one time use.

28:33.620 --> 28:35.020
They're like 20 bucks each.

28:35.020 --> 28:36.880
So make sure you do it right, okay?

28:36.880 --> 28:43.200
But basically all of these I class readers that are all over the place, this is the default configuration.

28:43.200 --> 28:51.480
So a lot of the people installing them do not understand that that has this default configuration that's vulnerable to this attack, right?

28:51.480 --> 28:52.540
They just sort of install it.

28:52.540 --> 28:55.180
They know how to get everything set up on the database.

28:56.020 --> 28:58.780
And, you know, you can basically do the same thing.

28:58.780 --> 29:05.160
So this actually entails an ICOPYX and this ICS decoder.

29:05.160 --> 29:06.600
It's pretty expensive.

29:06.600 --> 29:07.160
Not gonna lie.

29:07.160 --> 29:09.360
It's like, you know, $800, $900.

29:09.360 --> 29:16.400
But we had a client one time that actually asked us to test once they upgraded their badge systems, if they were good.

29:16.480 --> 29:19.140
And we were able to purchase that through that.

29:19.140 --> 29:25.120
So basically you need this ICOPYX sort of like badge reader.

29:25.200 --> 29:29.040
It's a special I class SE reader that connects to the ICOPYX.

29:29.080 --> 29:31.500
And you just present the card to it.

29:31.500 --> 29:32.300
We did the same thing.

29:32.300 --> 29:35.860
We took the clipboard cloner, put it inside, everything inside.

29:36.060 --> 29:39.500
Walked up to the front desk and said, hey, we're just doing our security audit.

29:39.500 --> 29:41.260
We just need to check your badge real quick.

29:41.260 --> 29:41.580
Yeah.

29:41.580 --> 29:42.940
The badge audit, yeah.

29:43.620 --> 29:46.060
The badge audit is not a real thing.

29:46.300 --> 29:49.160
So they handed the badge over.

29:49.160 --> 29:50.860
We just hovered it over the top.

29:50.860 --> 29:51.960
Handed it right back.

29:51.960 --> 29:53.240
Said thank you so much.

29:53.240 --> 29:54.480
Went out to the car.

29:54.600 --> 30:00.080
And so what happens is that once you read it, it goes... I think I'm on 88 now.

30:00.080 --> 30:00.660
Yeah.

30:00.860 --> 30:04.180
You basically just have to present it once.

30:04.180 --> 30:07.200
The screen's gonna hold the badge reader there.

30:07.200 --> 30:13.020
And then you just take your ICS card and you tap the ICS card to the badge reader inside the clipboard.

30:13.040 --> 30:14.940
And then it says write successful.

30:14.940 --> 30:17.800
So now you have this special legacy card.

30:17.980 --> 30:19.880
And then again, boom, you're in.

30:19.880 --> 30:21.880
Waffle parties for everybody.

30:21.880 --> 30:23.840
Make sure Milchek doesn't find out.

30:23.840 --> 30:33.760
Now, the legacy mitigation for this, okay , there is, again, your configuration cards are your friends when you're doing remediation for this stuff.

30:33.760 --> 30:43.000
So either have the person who installed it reach out to the manufacturer, get a configuration card, and then you can disable the legacy card authentication.

30:43.460 --> 30:46.640
Again, that's the default with this configuration card.

30:46.640 --> 30:49.080
And then that should stop that attack.

30:50.160 --> 30:51.080
Okay.

30:51.080 --> 31:01.540
So yeah, as we're getting to the end here, we're gonna talk about some other real quick, really cool things that we think you should research and discover yourself.

31:01.540 --> 31:04.660
So the other long-range RFID readers.

31:04.760 --> 31:17.980
So if you're dealing with MyFair stuff, there's this LibNFC Excel reader that Lab 401 makes that you can hook up to a phone that does long-range reads for different types of MyFair NFC cards.

31:18.300 --> 31:22.840
And then the one to the right is that Indala reader, the ASR620++.

31:22.980 --> 31:26.480
Again, it's the same exact reader that LongRanger did.

31:26.480 --> 31:28.760
It's on the gooseneck, but it's just from a different manufacturer.

31:28.760 --> 31:30.160
So everything applies the same.

31:30.160 --> 31:31.920
You'll do exactly the same thing.

31:31.920 --> 31:39.020
But you just have to do your research and make sure you know what type of badge infrastructure that your target is.

31:39.020 --> 31:40.440
So you can do the research.

31:40.440 --> 31:44.900
Usually we'll go on Google Street Maps and like, Street View, we can zoom in.

31:44.900 --> 31:51.820
And once you learn all the different manufacturers, you can just tell from far away what type of badge reader is in there.

31:51.860 --> 31:56.080
And then on the next one, there's a thing called MagSpoof, which is amazing.

31:56.080 --> 31:59.360
So shout out to Sammy for creating MagSpoof.

31:59.360 --> 32:01.420
If you don't know about that, research that.

32:01.420 --> 32:07.480
But basically, there's a little extender on the flipper that you can add.

32:07.540 --> 32:11.960
And it will read magnetic stripe data through magnets.

32:11.960 --> 32:12.920
It's really cool.

32:12.920 --> 32:17.320
So this unit will basically, it can read that card data off of it.

32:17.320 --> 32:20.820
And then you can put mag stripe data onto your flipper zero.

32:20.820 --> 32:22.000
So that's a cool add-on.

32:22.000 --> 32:22.440
Check that out.

32:22.440 --> 32:25.960
I think they actually might be a vendor here as well from Mexico City.

32:25.960 --> 32:29.380
And then the RFID thief, this thing is incredible.

32:29.380 --> 32:41.280
So everything we just taught you of how to do this manually and converting everything from bin to hex, this unit automatically does it for you through the ESP RFID tool.

32:41.280 --> 32:45.340
So do everything that we just taught you, but add this unit to your flipper.

32:45.340 --> 32:55.460
And what it does, it interfaces with the Wi-Fi on the ESP RFID reader, and it just automatically pulls in the cards for you into flipper format.

32:55.460 --> 32:58.040
So it creates your workflow super simple.

32:58.040 --> 33:02.020
This was just presented in, like, February of this year.

33:02.020 --> 33:04.540
And you're selling them for, like, 100 bucks each.

33:04.540 --> 33:09.920
So go online quickly after this talk and buy them before your friends, because I think they're sold out.

33:10.500 --> 33:12.260
But super cool.

33:12.460 --> 33:13.720
Automates your workflow.

33:13.720 --> 33:15.540
Makes it really, really awesome.

33:15.960 --> 33:16.460
And yeah.

33:16.460 --> 33:19.240
And then we're gonna just talk about some stories from the field here.

33:20.720 --> 33:21.200
Yeah.

33:21.200 --> 33:29.180
So the great thing about the flipper is that it's allowed us to do all this on the fly from the car, or even on client property.

33:29.320 --> 33:36.140
In the past, we had a laptop and a Proxmark, and we were juggling all these different things in multiple cards.

33:36.140 --> 33:38.360
Now we can do it all just from the flipper.

33:38.360 --> 33:47.840
And so this allows us to be really stealthy and really agile on the ball and getting into different rooms we didn't think we'd be able to get into.

33:47.840 --> 33:53.360
But whenever you use these different techniques, they just work.

33:53.460 --> 33:55.860
It's not that hard to put these things together.

33:55.860 --> 34:00.620
And you find yourself in company break rooms, conference rooms.

34:00.620 --> 34:05.280
You'll see on the slides there of us with different company logos obscured.

34:05.280 --> 34:20.600
We've gone the route of just making company branded polos and other merch to get us into buildings, because people love holding the door open when you're wearing a Nike dry fit corporate branded polo for some reason.

34:20.600 --> 34:29.140
And so you'll see in the slides Langston hanging out in the conference room, me hanging out in a IT location room.

34:29.140 --> 34:34.480
And of course, to maintain your cover, you really have to become the IT guy.

34:34.480 --> 34:39.000
And even if that includes helping to unjam printers on the spot.

34:39.000 --> 34:40.620
That is something we have done.

34:40.780 --> 34:42.660
We've looked up different things.

34:42.660 --> 34:44.800
We've done, you know, Wi-Fi speed tests.

34:44.800 --> 34:46.840
And of course, our favorite is the badge audit.

34:47.480 --> 34:55.020
But yeah, it's, you know, you gotta get back sometimes to the client and help with them on their printer jams.

34:56.520 --> 35:07.040
And then, and then yeah, so the slide of the second one has seen IRL of Dan in the front there.

35:07.040 --> 35:10.840
Again, this polos were just so clean, we got them embroidered.

35:10.840 --> 35:16.040
And we did a whole talk on ponying with Vistaprint at the social engineering village like two years ago.

35:16.040 --> 35:23.520
And we just talked about our workflow of how we just go on Vistaprint, download the logo, embroider it, and then we were walking up to the door.

35:23.520 --> 35:29.500
We had already badge cloned somebody in the parking lot, clipboard clone, got them tagged onto our own.

35:29.500 --> 35:35.120
And then we walked up to the door, and the person saw the polos and just opened the door for us and just let us right in.

35:35.120 --> 35:38.460
So we're like, we did all of that effort, all that work for nothing.

35:40.380 --> 35:46.020
And the second picture you see of Dan inside of the server room.

35:46.020 --> 35:48.600
So sometimes you take so much time, right?

35:48.600 --> 35:51.340
You're like, after hours, you got to go back in.

35:51.340 --> 35:53.660
Do they have a lockout policy after hours, right?

35:53.660 --> 35:58.940
Do you need to use a special tool like the under door tool to get inside of the server room sometimes, right?

35:58.940 --> 36:00.260
When nobody's around.

36:00.380 --> 36:04.420
And then all of a sudden, you just see a key that's just like sitting there, right?

36:04.420 --> 36:05.620
Like next to the server room.

36:05.620 --> 36:09.480
Once you get inside, you're like, oh, I don't have to break into the actual closet itself.

36:09.480 --> 36:11.560
It's just taped here on the side, which is ridiculous.

36:11.560 --> 36:14.240
So we have some crazy stories, fun stories.

36:14.920 --> 36:16.900
And yeah, so there's just a few of them.

36:17.040 --> 36:18.240
Check out the references.

36:18.240 --> 36:21.940
I highly recommend if you're into this stuff, check out all these references.

36:22.800 --> 36:24.780
They're insanely helpful.

36:24.980 --> 36:29.700
Brent and Tim are actually... we've been referencing them for years.

36:29.700 --> 36:30.700
They're amazing.

36:30.700 --> 36:33.160
Their talk is tomorrow, I believe.

36:33.280 --> 36:36.660
Make sure you check them out as well from Physical Security Village.

36:36.960 --> 36:38.360
And then, yeah, thank you so much.

36:38.360 --> 36:41.640
There's our social media there at the end.

36:41.640 --> 36:44.000
The QR code, obviously, you already have the link to the GitHub.

36:45.360 --> 36:49.640
That's free to go there, start the project, help us out, share with some friends as well.

36:50.200 --> 36:51.520
So we got a little bit of extra time.

36:51.520 --> 36:52.640
We can come hang out.

36:52.640 --> 36:54.680
And if you have any questions, just let us know.

36:55.040 --> 36:55.760
Enjoy your DEF CON.

36:55.760 --> 36:56.760
Thanks, everybody, for coming.

