start	end	text
0	1860	So, Twitter.
2220	3840	No IQ 15.
4000	19360	My first real introduction to Wi-Fi was here in a similar CTF, I don't know, three, four, five years ago with DC-719 as we tried to slam through the CTF.
19360	21700	And it's really where I got my introduction.
21700	25420	And after I left Lockheed, I've been hacking drones.
25460	34520	So it's a kind of intersection of embedded IoT stuff, cyber stuff, and now RS stuff.
34820	41540	And while I've been doing that, the guy who's been paying me is from the government.
41680	48240	So part of Darkwith Solutions, and we were doing, I don't know, two dozen different drones.
48240	53620	So the drone I'm going to be discussing here, you'll be able to figure it out.
53620	56180	I'll talk about it later, but I'm not going to throw his name on the front of the talk.
56220	62620	They were a little perturbed that they were going to be introduced to the cyber community at Black Hat.
62620	82940	So they wanted to make sure that I was clear with you that the kind of access that I had to the radio was largely due to negligence, they didn't use that word, on the part of the system integrator who's not using all the features that they had on a much older radio than the current versions they're running.
82940	88380	So with that disclaimer, you can't go out and hack their current radios with just this.
88440	90400	But we'll go.
91280	93360	So drones.
93360	95360	This is what you think of when you've got a drone.
95760	100800	If you'll notice there's a radio on that thing in the front, there's another radio on the back, that's the GPS.
102200	105840	There is a flight controller on top.
105880	109700	There are multiple sensors that can feed into this, including CAN based sensors.
109700	115560	Once you get outside of the retail, up to the COTS level where they're flying video and special payloads.
115560	119380	So we're talking about thousand to fifty thousand dollar range drones.
119380	124140	They often have more advanced buses than you would find on the cheaper ones.
124560	127580	But is this really the drone?
128300	130680	Well, it's a drone, it's a UAV.
130680	133140	It's the vehicle, it's the platform in the air.
133160	135600	But it's really part of a much larger system.
136320	139700	Including cloud-based supply chain, software security stuff.
140260	148500	The drone itself is going to have, by law, a ground control unit that a human being sitting in front of that can take control of the drone.
148760	152020	Typically these drones are only allowed to fly line of sight.
152480	157980	And the communication between those can be an RF, they can be on Wi-Fi, they can be on both.
158160	159580	Drones carry payloads.
159580	162920	Payloads are usually on Wi-Fi or they're sharing the mesh radio.
164120	169980	And of course you can do a little bit of fuckery with the sensors there, the GPS and the ADS-B.
170260	175860	We're concentrating on the RF comms between the ground and the drone.
177100	182300	So according to documentation, it's a Wi-Fi system.
183260	189440	And you access web pages that allow you to define the Wi-Fi.
189440	194400	Then your ground system should be talking to your drone.
194400	196040	And indeed they were.
196400	200960	But when I stood up Wi-Fi components to listen, I heard nothing.
201260	203460	Could not find a stupid signal.
203460	207940	And it turns out that I was not the first one at DarkWave to look at some of this stuff.
207940	212680	We had looked at a similar radio set for a different problem set earlier in the year.
213000	217360	So these are getting to be popular with the government for various purposes.
217860	222060	So once I couldn't find it, then I had to read the fucking manual.
222540	224300	These are dual smart radios.
224300	232580	This one was an embedded version, RM2450, which is on the, for you I guess that would be on your left wing.
232840	245940	And it's got special connectors for that, that are feedback up to the drone and are controlled over the, actually the Ethernet connection.
246240	253120	So why would Doodle want to make a signal disappear?
253120	254620	Well it wasn't security.
254620	256940	They're doing it for performance purposes.
256940	260140	And the performance they're looking for is not bandwidth per se.
260140	262060	They're looking for range.
262240	273420	So with the smaller channel width on their Wi-Fi, they're able to achieve longer ranges, lower data rates.
273500	278900	But in most of their use cases, it's the range they're stretching for.
279240	283200	And so you'll see some of the samples there they have on one of their data sheets.
283200	285560	40, 20, 10, 5, and 3.
285600	287380	We didn't have to deal with 3.
287400	290600	We had 5, 10, and 15 megahertz.
290600	293300	By default, it was delivered to us at 15.
293720	307700	You can't see those with 99% of the Wi-Fi chips out there because although the Linux kernel allows it, they have logic for it, the chips don't have the interface that will allow you to access those capabilities.
308020	310280	Atheros does, but we'll get to that in a second.
311800	322720	So some actually had, because I'm a little slow sometimes, had a colleague point out to me this stupid menu feature right here and said, you know, have you played with this?
322720	325800	And that's where we started getting, finally getting a little handle on it.
325800	329820	Because when we change it up to 20 megahertz, of course, boom, instant SSID.
329820	330660	We see it.
330660	331560	We connect to it.
331560	333220	It's just normal 802.11.
333980	338540	And it's just those lower ones that we had to kind of figure out how to get access to.
340240	353860	So doing other forms of hackery, this one was mostly involving u-boot, modifying the boot up parameters and getting shell on the box, which allowed us in turn to secure shell into the radio.
354060	362140	We were able to fingerprint the actual chips that they were using, the QCA9533 and the AR9531 there.
362140	365040	And those looked vaguely familiar to me.
365740	370560	And that's because OpenWrt supports those.
370880	379160	And while I didn't realize it at the time, I had a whole Wi-Fi kit full of them.
380160	384180	That is the GL-iNet-RM300M-Lite.
384180	390820	And what that is, is a tiny little travel router that cost, well, at the time 20 bucks, today 35 bucks.
390980	396820	And I used them to build a Wi-Fi range so I could practice Wi-Fi attacks.
396820	400540	So I could bring them here and actually execute on the CTF well.
400540	403580	That part of the plan didn't work, but I was able to repurpose these for this.
404220	406800	The board there is not actually quite the same board.
406840	408180	That's not the Lite.
408260	412440	And it has two Ethernet connections as opposed to the Lite, which only has one.
412440	423260	Not a big problem here, but you do have to be aware of that when you try to connect and boot up because there's a little bit of extra work to get it on the right, on the LAN interface instead of the WAN.
425660	429080	So once we did that, we had the same chipset.
429080	431200	We were running OpenWrt.
431420	436180	How do you actually go find those narrow channel bandwidths, at least the 5 and the 10?
436660	439020	And the answer is, there's a couple different ways.
439020	441340	I mean, it supports it, but not through the web GUI.
441340	447360	While I showed you a web interface that did, that was especially modified by Doodle to support their customers.
447360	463920	So to get it on the access, there's a whole UCI configuration command set, REPL basic, well not a REPL, but that allows you to pretty much modify anything you need in the radio set.
463920	471440	So you're able to do the channel bandwidth right there, wireless.radio 0, channel bandwidth 5 or 10, and apply it that way.
471440	479600	Or you can go to etsy.config.wireless if you're better at VI than you are at UCI, and modify things there and reboot them, restart them.
480120	488060	So once we did that, we were able to then see the hotspot of interest.
488200	501900	And so we were able to scan to them, and we were able to then actually connect into the mesh network, so that we then can continue further attacks.
501900	511060	Secure shell, or sniffing the communications traffic, or if we wanted to, we could run jam attacks.
511060	521560	Of course we don't actually need that, just do it from raw frequency, but jam attacks against the mavelink comms that are running over that, so at a higher network layer.
523420	524440	So that was great.
524440	532920	That got me to 5 megahertz and 10 megahertz, supported by a Linux kernel, out of the box, with the right chip set.
533380	538840	OpenWRT had the right hardware, the GLI net travel router had the right hardware.
539520	541360	OpenWRT had the right software.
541540	542880	I'm in, I'm connected.
542880	548600	But what about that freaking 15 megahertz, which I will remind you was the default it was delivered to us at.
548600	557060	So pretty proud that we were able to understand this, because I don't come from a strong radio background, but I wanted to get to the 15.
557700	567340	Side note, had I waited a year, or had my integrator, drone integrator, updated their firmware, I wouldn't have been following it this far, because 10 is the new default.
567960	580120	So I'm in the atheros driver source code, and I at least got to the point where I was able to convert the 5 megahertz to 10 megahertz.
580120	594760	And that was an important touchstone for me, because it allowed me to know that I was on the right, had my hands on the right controls, the right knobs, in order to modify the megahertz within the driver.
594960	603520	And the attempt here was to place a 15 megahertz option and build that into the kernel.
604900	608660	But it just got too hard.
608660	609640	I'm not saying you can't do it.
609640	612800	Matter of fact, I'm 100% confident you can at this point.
612800	621900	But given the limited time and resources, I wanted to go explore other modes, though this is still there to be done.
622380	624300	So other modes.
625000	643460	Microtech is another router OS that advertised that they had, sexy voice, the ability to go down to 500 megahertz at 500 megahertz step size.
643600	649960	So it would get that 3, it would get that 10, it would get that 15, it would get the 20, it would get all of those.
649960	651900	And that was great.
651900	656960	So it wasn't all that hard to scramble up, though this is all obsolete hardware now.
657040	662940	So the router board, I don't know, cost I think 40 bucks on eBay, and the chip costs like 10.
663520	666440	For some reason they got a bunch of those over in Czechoslovakia.
667000	682640	And again, you can't really go in the GUI directly to do this because you're off the normal paths, but you can define your own frequency set and channel width and that will then pop into the GUI allowing you to select it.
682640	688080	And if you do that, you're actually able to connect to the radio.
688080	693100	So here's example, here's at 5, 10, and 15.
693100	698560	I'm able to, although only at this point, connect to the SSIDs.
698860	707080	And I'm only able to establish an actual working connection if it's unencrypted.
707100	709620	It was failing on the encryption.
709680	714760	I was looking at packets for that, but once again we're running into a resource issue.
714920	722460	How much time was going to take for me to figure out the encryption problems I was having on a radio I didn't have source code for.
722460	734740	I did reach out to MicroTik for some support, but they started throwing are you in the right country code kind of issues at me, which wasn't the issue and I doubted I was talking to the right techs.
735900	744100	So, have a radio, can't find shit at first, that's my own problem, my ignorance.
744400	756880	Figuring out the 5 and 10, available in the Atheros chipset, figuring out OpenWRT supports that I had routers that could do that, OpenWRT and stood those up and was able to connect clean, except for 15.
758060	766680	Looked at Linux kernel, suspect that that will work, but it was too hard of a nut for me to crack within the time I had, so I shifted over to MicroTik.
767140	772120	Slightly better solution, but again tripped up on the crypto.
772660	779260	So, we're coming to my last gasp, which actually worked better than I expected, but still not a full success.
779540	788740	This is kind of a flattened version of these graphs, but they were intended to make sure that 15 wasn't something special.
788740	800860	I didn't really think it would be, but I also heard you can't do 15 megahertz, so I just wanted to take a quick peek to make sure I understood the channel width and bandwidth for those guys.
801540	816840	And once I did that, I spun up the GREIE80211 and I was able to connect to it using the sample rate matching the channel width.
816840	820320	So, 15 megahertz, not a problem for them.
822980	836400	And just proof of that, I was able to catch that SSID and you can see it there at six megabits, a very slow, the bottom, the slowest rate available is the rate that this thing defaults to.
837280	846060	So, once again I connect to it, but can I actually access the mesh radio network with it?
847080	849240	Potentially, I might.
849280	851020	But again, I have a crypto problem.
851700	857220	I haven't had time yet to go back to the author who is available on Discord, so I'll be hitting him up.
857420	864100	But currently, this is only really effective with open networks, at least in my setup.
865140	877440	So, getting to that last part where I'm the mesh network is TBD, but this GREIE80211 open source project does support that concept.
877600	883080	So, I made progress, but didn't get quite to the goalpost.
883240	891620	This is kind of a repeat of that earlier checkmark where OpenWrt works great on 5 and 10, doesn't give me 15.
891620	895220	Microtix gave me 15, but in a very limited sense.
896120	901160	The Linux kernel modules, I know you can get to there, but I didn't.
901280	914380	And then the GRE is slightly not as good as Microtix, because while it also requires unencrypted, I haven't actually established entry into the mesh network itself, the Ethernet connection.
915200	920620	So, that was fun hack around.
920620	923060	I really enjoyed doing that.
923420	929140	It pushed my typical network enterprise cyber background a lot.
930040	933680	And I had a colleague who was telling me, why are you even bothering with this?
933680	935360	Just buy another doodle radio.
935360	936420	Problem solved.
936420	947220	Not understanding the flexibility, once you're able to do this, how you're freed up from the hardware and now you can pursue them in other avenues.
947220	950720	Once you master this, maybe they push it somewhere else.
950720	952820	But what was the point?
952820	954100	Where's the hack?
954380	958920	Well, the hack here was nothing to do with the radio per se.
959320	970180	Almost all the hacks that come in drones that I'm looking at, $1,000 to $50,000 range, are just crappy security configuration.
970180	984020	Default passwords, no passwords, encryption options not enabled, things that look like they're 128 or 256 bit encryption, until you're realizing they don't take all the bits you need to feed them in the web interface.
984020	986960	So, they have a much smaller entropy space.
987980	995900	So, in this case, this was literally out of their manual.
995900	1005260	So, once I'm able to prove I can connect to these networks, I was able to then establish that they were vulnerable to different kinds of attacks.
1005460	1014120	The odd thing here, the SSID for this drone was wireless hotspot.
1014120	1018920	The manual says it's due to labs Wi-Fi.
1020100	1028460	So, either the manual is wrong, or the integrator, the system designer for this, went in and changed the SSID and never changed the password.
1028460	1030100	So, don't know which it was.
1031400	1035420	What kind of attacks can you do once you have access to a drone over the air?
1035500	1037200	Well, you can sniff the traffic.
1037260	1041780	So, that includes command and control channels, and that includes payload data.
1041780	1048020	So, you may be seeing what they're saying, which might be an important thing if you're trying to avoid getting attacked by missiles.
1049780	1051560	You can spoof.
1052020	1059880	One of the engagements that we had this year was actually not the security assessments with the drones, but security of a counter drone system.
1059960	1065600	And we were able to go in and lay down false tracks on their system through their radio network.
1065600	1072120	So, spoofing data, hiding where things are, and then the denial of service, of course.
1072120	1075780	While frequency jamming is available, that's always very noisy.
1075780	1088780	But if you can actually jam the protocol they're using, but for overflows or other mistakes in the protocol implementation, then you've got a much more subtle attack than just loudly announcing yourself.
1089900	1096860	So, once again, Doodle would like you to know this is not their current model.
1096860	1104680	This is not their current encryption standard, and we should not be able to do that with their current radios.
1105360	1115700	In addition to all the problems I've already had, they have a frequency shifting capability of taking the whole 802.11 Center Freak and moving it up or down the spectrum.
1115700	1127020	So, you can stick it down at 1800 megahertz, for instance, or you can push it up to whatever non-standard military frequency range you might want.
1127360	1145940	They state they have better encryption, and they have vaguely mentioned, without going into details, they have some different waveform components, different modulations that they put in place that should make it impossible for me just to drop an 802.11 decoder on it.
1146540	1150420	So, that's pretty much the end of the talk.
1150960	1156040	I've been hacking drones, applying things I learned here at the CTF.
1156800	1161920	One of the important components of that drone is the radio communication.
1162580	1170680	A lot of the security assessments are just focusing on that physical, but of course the comms is really the more important component because that's over-air the attacks.
1170740	1179320	So, once you can achieve that, then you have the ability to affect mission capabilities at a distance, and that's really the goal, to prevent that.
1179680	1183520	And our job as security assessors is to expose the vulnerability.
1184060	1186020	So, any questions?
1193600	1195820	I did interface with GNU Radio.
1195820	1204600	So, the GR IEE 811-2 project allowed me to connect to the SSID.
1205220	1212040	The next step after that is you have to build a transceiver that allows you to build an Ethernet tunnel.
1212500	1224780	And I started that work and I've had some access, but again, I'm doing it on an open version of the wireless network, not one that has encryption enabled.
1227940	1229520	I was a little shocked.
1229520	1231300	I was seriously shocked.
1231300	1238620	I mean, the nameplate SDR this project uses is the Edis B210.
1238620	1242960	But I pulled up the HackRF1 and I was in.
1242960	1246120	I'm now working on the transceiver with the two of them.
1246420	1256460	If you've been following drones and RF, you will probably aware of the Doodle radio decoder, excuse me, the DGI radio decoders.
1256460	1263300	So, DGA, DGI squawks information about the drone, drone ID.
1263500	1266480	And they've built some decoders now for that.
1266560	1269380	And the backend of those things are using MATLAB modules.
1269380	1273560	So, when I went through this thing and I found there were no MATLAB modules, I was a little surprised.
1273560	1278980	But that lack there might be an issue for like the encryption components.
1279320	1289960	So, there may be, if I get familiar enough with it, there may be some work there about bringing in some backend optionally that might be able to handle encryption.
1294760	1295800	All right.
1295800	1299380	Well, I appreciate your attention and thank you very much.
