start	end	text
350	3390	The Ray Hunter Testbed.
3550	6650	Unfortunately, this is mostly working notes.
6730	10490	But we'll discuss it and work through it.
10490	13190	And if I can answer questions, that would be great.
13490	15270	I'm Ron Broberg.
15270	18830	I spent decades at Lockheed Martin.
19430	23370	You can tell that I had a bit of a culture clash over time.
23730	25730	But it wasn't this.
27990	31850	And I moved over to Darkweb Solutions almost four years ago now.
31850	33150	Love it.
33670	37770	And part of that whole transition began right here in this village.
37890	40410	Working at RFCTF.
40850	44610	Seeing that intersection between RF and cyber.
44610	48050	Which scared the hell out of every RF engineer I talked to at Lockheed.
48050	50050	Just empowered me to do more.
50370	53350	And these days I mostly work with drones.
57950	59270	Too far.
60650	61350	No, I guess not.
61350	61990	Okay.
64050	70010	So, to understand the Ray Hunter, you have to understand a little bit about the Stingray.
70050	72950	And I don't know that much about the Stingray.
73450	75770	If you can get your hands on one, great.
76230	79470	They're actually somewhat ubiquitous in law enforcement.
79470	82750	I know people who know people who can get them.
83750	85810	But that does not include me.
87290	91910	The basic concept is too difficult.
92450	96530	You have a cell phone, typically.
96530	99150	It's connected to a cell station.
99790	109310	And what happens is that a simulated cell station shows up in a van, in a car, possibly a helicopter.
109550	114120	That will then hijack that connection.
115240	117960	The hijack of the connection...
117960	120440	I might go...
120440	122840	Some of these got clipped on the export.
122920	134820	The hijack of that connection is typically not something that is broadcast, notified, alarmed in your cellular systems.
134820	141260	Google made kind of a big deal recently when they stood up and said, Hey, we're actually going to do that now.
141260	144940	So if we suspect a hijacked connection, we're going to alert you.
144940	151340	That's going to come out presumably in Android 10, I mean Pixel 10 in their latest Android release.
151400	155200	But we haven't actually seen it in the field yet.
157280	159220	And that's the patent for it.
159320	160700	Nothing very special.
160780	161540	It's a box.
161540	163020	In the box, it's got radio gear.
163020	167260	Radio gear allows it to simulate a cell station.
168760	173240	Simulated, in a sense, is mostly about pretending to be a different telecom.
173460	178560	You can go out and buy test equipment right now and essentially just four SDRs in a box.
178560	183220	That's not an atypical configuration for, say, a MariSoft.
183220	185120	Their Mini is essentially that.
185120	186260	These things are not...
187040	192800	They seem overly complex and technical when you first start hearing about them, and they're expensive.
193060	196480	But at the end of the day, their SDR is being driven.
196480	199940	By what's essentially a single board computer.
200380	202680	Dedicated purpose computer.
203480	215840	So the EFF came out with Ray Hunter in order to attempt to fill that need for alerting the hijacked connections.
217280	225400	The kind of places that might happen is if you're being targeted for surveillance.
225400	232200	Or if you're involved in crowds which are being generally surveilled.
232200	232920	Surveyed?
232920	233840	Surveilled.
234220	243200	Either place you may see these stingrays come out in order to try to gather data about your phones and your connections.
244160	252800	So Ray Hunter is an EFF open source project in order to try to sniff out those attempted hijacks.
253550	259560	If you want to read more about their announcement, there's their blog for that.
259660	270540	But the main drift here is they're trying to, as best as possible, make it a product that an end consumer can use.
270540	273260	I don't know if they've bridged that yet.
273280	275460	The Windows install is a little iffy.
275460	277620	The Linux install is a little iffy.
277620	280120	It can be a little difficult to use, frankly.
280120	287800	But once it's installed, then it operates pretty autonomously.
288400	292160	And we'll have a view of that here in a little bit.
295310	305290	I was just curious while I was setting up some of the stuff to grab screenshots about what our local cellular network looked like.
305290	312050	And so you can go out to cellmapper.net and it's got a bunch of information about the cellular towers around you.
312050	318070	And as you can see, just around this convention center, there's a ton of them.
318370	321890	And back in my hometown, there's three of them.
321890	332910	So it's very easy to determine the PLMNs, which are part of the cell tower identification, as well as which band it's on.
332910	341610	And that's important in order to be able to know which frequencies that the commercial provider is transmitting on.
342510	345490	That is in case you want to simulate those things.
345710	348670	And I want to be clear, do not do that.
349490	352630	Do not simulate a commercial band.
352630	356170	Do not impersonate it and do not broadcast on their frequency.
356670	357690	Enough said.
363420	368700	But what does the inside of that infrastructure look like?
368700	374060	So the answer is, it's pretty well decomposed.
374060	379380	These are well-defined components that talk to each other over well-defined protocols.
379440	386680	Ideally, this would allow you to be able to swap different pieces together.
386680	389280	They don't have to come from the same project.
389280	392160	In practicality, that's rare.
392160	408500	So you typically end up with at least one project for the EPC, which is the core, and one for the ENB, which is the radio interface, or the GNB for 4G and 5G respectively.
408980	417060	Now, this one's a little older, but this comes from the Yates BTS, which I use mostly for 2G networks.
418680	421100	But they also have more current offerings.
421100	422820	It's just that they're 2G's open source.
423080	437140	This one kind of pulls that down into blocks that are more about the components that you might actually be able to stand up and configure, instead of trying to mix and match the different internal pieces.
437460	445960	Open Air Interface is a 4G, 5G, LTE project that's been around for quite some time.
445960	450340	The documentation is rough.
450540	455460	A lot of it goes back to 2018, to 2019, to 2021.
455840	459340	A lot of their build notes talk about Ubuntu 18.
459820	469120	And while most of the stuff can now be built on Ubuntu 22, there are known issues trying to go beyond that.
470140	476200	That just goes back to my comment earlier that it's difficult to kind of mix and match these pieces.
476820	485100	But if you stick within one ecosystem and one project, you'll probably get through it.
486140	489160	If you've got the notes, which is what I'm trying to pull together.
489760	496080	Now, on the left-hand side that you have, the ENB, this is the radio interface.
496080	502100	And that side, if you will, is the internet interface.
502100	507560	That's the side that will be feeding any data on this side, which are the user endpoints.
507560	510560	Your cell phones are here leftmost, off the screen.
510560	517820	Cell phones connect to the radios on the cell tower, and they in turn pass traffic into the core network.
523000	525760	So we're all ready to build a core network.
525760	535560	Well, no, because we still have to figure out what hardware we want in order to know what drivers to build into the core network, into the EPC.
535560	542380	And we need to know which EPC we're going to be using in order to have a matching core network.
542380	551960	So in this case, I just wanted to kind of call out that you should not grab your standard Wi-Fi antenna and slap it in there.
551960	567800	LTE covers a wide, 4G and 5G, both, and they overlap, cover a huge frequency range from about 400 megahertz up to theoretically like 7 gigahertz on the 5G side.
567800	572720	But most things are at about 3 or 4 and lower.
572720	578040	But there are some bands that are pretty high, and you just have to look them up, the band plans.
581850	590110	One other thing I highly recommend is a magic box to see into the cellular transmissions.
590110	595110	While you're trying to set this up, everything is pretty opaque.
595110	608950	You don't really know what is being seen as a valid cell station and what is misconfigured noise as far as all the cellular endpoints are concerned.
608950	612990	And so I like picking up this guy and bring him up.
612990	621350	However, again, in the board, that larger chip, uBlock's chip, that chip will determine which bands you can actually see.
621350	622930	And you cannot see all of them.
622930	627030	So when you go to hardware, you generally get limited to certain bands.
627130	633690	And here you want to just pick the matching SARA or LARA chip to work with the bands you need.
636960	641660	And then you can do network sniffing, find out which cell stations are being picked up and validated.
641660	643360	You can actually connect to them.
644220	645040	Boom, boom.
645040	651240	And then on your simulated cell station, you're going to have some SDRs.
651240	656880	These are the radio transmitters, and they're really only two that I recommend at this point.
656980	665120	Unfortunately, this is a $2,500 radio, so it's kind of pushing outside the scope of enthusiasts.
665120	671960	But if you work for a company, this is, you can go better than this, but this is kind of the entry level USRB.
674940	675820	USRPB?
676340	678060	USR, I'm sorry, RP.
678320	680520	And then no on blade RF.
680520	683620	So I have an XA4.
683760	688480	The XA9 should be the minimum that you have for the blade RFs for 4G, 5G.
688480	689640	You don't have to.
689860	702460	You can go a little lower, but the capability on the Wi-Fi side makes it a more versatile radio, in my opinion, because you can put a whole Wi-Fi stack into the FPGA here.
702460	706520	So move it out of software per se and get it onto the radio.
709870	714030	Another radio that's probably up to snuff is the Ant SDR.
714030	716090	I just haven't had any experience with it.
721270	724690	So I wanted to go back to this block real quick.
726050	733650	So when we're talking about antennas and SDRs, we're basically putting all the hardware side of these two blocks in place.
733650	736490	And then, of course, we're going to need the software side.
743130	745530	There are multiple projects out there.
745530	746990	This is probably not exhaustive.
746990	748170	I doubt it is.
748170	752010	But the ones that I've interacted with are these.
752210	756810	SRS-RAN is probably the closest you can get to plug-and-play.
756810	767290	It builds easier than the others and requires few configurations for out-of-box capability.
767950	776510	On the other hand, if you want to start doing some odd things, then you're going to have to build the radio definition files pretty much from scratch.
776510	781410	What kind of odd things might you want to be doing while you're messing with 4G, 5G?
781410	782930	IoT.
783030	795870	So there are medical devices and drones, things I work with, are often using M1 bands or other IoT bands that are not easily configured.
795870	799090	You can build the radio definition files for them.
799090	805750	But OpenAIR Interface has more of that kind of documented and pre-configured.
805750	807290	OpenAIR Interface.
807290	812350	A little more flexible, I think, in the ability for an engineer to go in and modify.
812350	821550	There's lots of examples in their directory for targets, different types of cell stations, basically, on different bands with different radios.
821970	838670	But while OpenAIR Interface on the modem side, 4G and 5G ENB and GNB are fairly easy to configure.
838890	843430	The back end is quite difficult to configure.
849370	863250	So looking a little deeper at the SRS-RAN, the project split a couple of years ago into SRS-RAN, which is their 5G offering, and they forked out 4G.
864670	890070	So 4G can provide you that user endpoint, the ENB, which is that radio front end, the EPC, which is the core network, and you can get a little bit of waterfall and DMOD visuals off of the SRS GUI, which is nice to have, to see that, again, that you have a clean signal and that connections are being made.
890070	897830	So this is the closest you're going to get, as I said earlier, to kind of an out-of-the-box experience.
903130	910390	I have not tried this yet, but they do have a Raspberry Pi configuration.
910390	920550	You can actually run their SRS-RAN, both the EPC and the ENB, on a Pi, and then they show you some of the radios they suggest.
920550	926110	So up to a B210, but they also have a Lime SDR and a Lime Mini.
926350	931150	The caveat here is to make sure that you're powering external power.
931150	934450	It cannot pull power out of the Pi, which is not that strong.
934450	938910	But as far as processing goes, it's not even really pushing hard.
938910	943910	They suggested you might be able to do this with a 2G model, although we were using a 4G for this demo.
947700	959200	All right, let's pretend you were actually able to just pull it off the GitHub and build your drivers, which case are Blade RFs and UHD drivers.
959700	967060	And you've installed it into a service configuration, so it's living under Etsy SRS.
967720	970000	Now you have to do your configurations.
970000	973700	So part of that configuration is going to be the PLMN.
974000	977440	I showed you the cell map.
977440	980060	So each one of those cell towers is owned by a provider.
980060	983060	And each one of those providers is broadcasting an identification.
984200	992300	Somebody like Verizon could be broadcasting multiple identifications.
992520	996120	So these are not one-to-one mappings, but in this case, this is a Verizon guy.
996740	1001520	And then the bands here are the ones that come off the Orbit.
1001820	1009100	So the little modem that we were talking about earlier that is being used for the cell detection, here's the bands that are available.
1017250	1022050	So we've got an EPC and an ENB that are configured.
1022050	1024970	We have a radio and SDR connected to it.
1024970	1026730	We're ready to broadcast.
1026730	1029210	Then the question is to broadcast to what?
1030030	1032570	So this is the user endpoints.
1033250	1045790	And so essentially we're going to be doing the Orbit, but you can pull your phones out and do LTE scans or look for network searches, different ways of trying to see the configuration back there.
1046290	1058490	The virtual UEs, of course, can be useful for testing your ENB EPC connectivity and whether or not authentication correct and whether you've got your routing correct.
1058630	1064750	And just throwing up the fact that you're going to need some SIM cards in order to complete that connection.
1065690	1068970	So once again, we've got more hardware.
1068970	1072090	Got to pull a SIM card reader, writer.
1072810	1075870	Sysmo.com has some excellent cards.
1075870	1077650	No question, but they're in Germany.
1077650	1081410	Getting them over here is kind of lengthy and those cards are kind of expensive.
1081690	1088650	I found that with the Orbit you can use generic USIM cards from China and Amazon at bulk.
1088650	1094270	And so you can just pretty much pull down a generic Amazon USIM card.
1097100	1100320	Lots of configurations in GR-SIM.
1101000	1110080	But the basic catch there is this AD that's over on that kind...
1110080	1112320	Let's see if I can...
1113520	1118740	The graphic's not that great anyway, but there's an AD up there right now, which is 0000.
1118740	1120800	You need to set that to 9.
1121040	1122300	Ask me why.
1122300	1123280	No idea.
1123280	1132020	But the 9 allows for connectivity to these fake SIMs like SRS that you're setting up.
1136710	1138290	All right.
1138390	1140150	Almost there.
1140490	1141810	This is the device.
1141810	1143630	I should have probably had one up there earlier.
1143630	1150070	This is the handheld modem, about the size of your palm, that has got the detection software in it.
1150070	1152190	So what is the detection software?
1152190	1166730	When you attempt to connect to this simulated cell station that you've created, there's the radio layer, the RF layer, the physical layer stuff going on.
1166730	1183870	And then above that, you're building a connection anogolously to Ethernet that has a certain protocol in it that can be captured in something like a TCP dump and stored as a PCAP.
1183870	1188850	That's what's being analyzed by the Ray Hunter software.
1192810	1202910	And on your side, this is an SRS EPC that has a 4G connection coming in.
1203010	1207710	In this case, you can see the MZ311100.
1207850	1209870	That's PLMN.
1209870	1212910	It doesn't have to match, but I've got this matched.
1212910	1218530	So this attach request is also something that you can pull up in Wireshark and analyze.
1218530	1222850	And like I said, essentially is what is going on with the Ray Catcher.
1222850	1229530	The fact that the user is not found because I haven't configured it is actually an advantage here.
1229810	1234270	Because when I set this up, I did so as part of a network downgrade attack.
1234270	1245730	And in this case, you have a cell phone or the modem connecting to your cell center, cellular station, and it fails.
1246590	1248430	Now, why did it connect to yours?
1248430	1249690	Why didn't it connect to another one?
1249690	1251650	In this case, I'm spoofing it intentionally.
1252650	1255930	So this was... I'm not actually sure who the provider is.
1255930	1266870	But I provide the same PLMN in a band it recognizes that's faster than the commercial one that's down the street.
1267290	1269510	And it will switch based on speed.
1269510	1271730	I'm there faster, it's going to switch to me.
1271730	1282790	It attempts to connect to me, but 4G and 5G require the server to authenticate to the user endpoint, not just the user endpoint to authenticate to the server.
1282790	1283910	So it's going to fail.
1283910	1290490	And it will fail no matter what I put here because the certs for this aren't in the cellular modem.
1291490	1296470	But then it does something stupid if you allow 2G connections.
1297170	1300250	It finds that it's been denied here.
1300250	1302150	It says, hey, this looked really good.
1302150	1303350	This doesn't work.
1303350	1305170	Is there something else I can connect to?
1305170	1307790	Oh, look, here's a really fast 2G network.
1307790	1309230	I'll connect to that.
1309230	1315630	Now, that's not the case for the ORBIC modem and not the case for RayHunter.
1315630	1325650	RayHunter triggers right here because this MZ request in the attach is one of the things that they trigger on.
1325650	1330170	So just now you have the ability to test RayHunter at home.
1330170	1331950	Don't broadcast this.
1333310	1342630	And instead of just wandering around airports hoping that you're going to actually trigger a switch, now you do get false negatives.
1342630	1352770	The airport I bring up because if you're connected to Verizon in Colorado Springs and fly out to Vegas, well, that's a new cell station.
1352770	1357810	It doesn't know who you are, and it's going to ask for a new connection and new raw data.
1357810	1362810	That attach request is going to include MZ because it's never seen you before.
1362810	1368150	After that, it won't request it again, but for the first time, it will, and you will get a first-time flag.
1371740	1383740	But continuing my other cellular attack, for drones and medical equipment, they want IoT, and a lot of IoT still lives on 2G, if not in the U.S.
1383740	1387960	There is a lot of 2G IoT out there still, despite the claim that all 2G is down.
1387960	1388980	It's not true.
1391300	1397120	They will then fall over to 2G, and 2G does not require the server to authenticate.
1397120	1403400	And you can easily configure Yates VTS, which is what I'm doing here, to allow all devices to authenticate.
1403400	1405860	So now you've captured the traffic flowing through.
1405860	1415880	So this isn't really part of the Rayhunter component, but it is part of being able to grab cellular traffic.
1419470	1430650	And, end of story here, you went out, you found the software you needed for your EPC and your ENB.
1430650	1435010	You chose to stay in the same project, though that's not mandatory.
1435010	1439890	You selected an SDR, an antenna, to work with those.
1440230	1443570	You compiled everything in Ubuntu 22.
1444050	1448990	And you were able to stand up the EPC and the ENB on one box.
1448990	1452450	It doesn't require a particularly hefty one, you can do it on a Raspberry Pi.
1453130	1459890	With that, you're able to snatch network connections from legitimate connections.
1459890	1466450	And part of that handover for first-time attaches requires an EMSI.
1466510	1472730	And since the Stingray is essentially an EMSI catcher, the Rayhunter project flags on that.
1473110	1477590	And in this case, what would happen is that little green bar would go red.
1477610	1479930	And saying, look, something weird has happened.
1479930	1483170	And then you can connect to this device and download the PCAPs and look at them.
1483170	1489870	Again, not really a user component, but that's the technical edge into being able to test these Rayhunters.
1489870	1496190	Being able to stand up the cellular EPC, ENB core network.
1496450	1497370	Alright.
1498090	1508970	I did have that little side divot off into downgrade attacks, which aren't really part of that, but which can be used in cellular network testing.
1509470	1511230	Any questions?
1512610	1513750	Sir?
1523330	1526250	Honestly, I'm not quite sure what the faster is.
1526250	1540470	I always thought it was just stronger signal, but I was reading some GSM papers like 2018, 2019 that said that the connection is actually not the RSSI strength that's being measured, but the speed of the connection.
1540470	1541630	So it's literally that.
1541630	1544590	It's the TTL, if you will.
1544590	1550310	That time for whatever is pinging to return that they're going time-wise.
1550310	1555090	But I do not have the technical knowledge of why that is.
1555090	1556610	Just pulled it out of a paper.
1558070	1559030	Another question?
1560990	1561870	Alright.
1562970	1566350	I was really hoping to bring OpenAI interface in here.
1566350	1567830	It's a more powerful tool.
1567830	1572150	I found out just this intro set of slides was all that.
1572250	1575350	I'll be back next year with a 5G one-hour talk.
1575850	1577150	Thank you very much.
