good morning everyone we deeply appreciate you collecting our session amidst the array of impressive presentations happening concurrently in other tracks and today we'll delve into the pivotal role that SDR plays in the realm of military drones let's now turn to my colleague David who will lead us further in this topic so we are gabriela garcia and david melendez in that case gabriela aka gaps is the first time in DEF CON for her and she's a security developer and a hacker and a hacking community co-organizer she is also coding and cyber security instructor and mentor and She is helping me to present this presentation because my English is from Zaragoza, Spain. She is attending several conferences like CodeMotion, GSD in Canarias, it's a good place to go to the beach. And in my case, it's not my first time at DEF CON, but it's like this with the shoot the noob. I'm still processing the Jack Daniels, maybe. So it's not my first time in DEF CON, also in several places, like the most famous conference in Spain, as RouterCon. And I am a book author about drones. Hacking with Drones is a very original name. And just to show how old I am, I am very fan of Cappus Party. So Caps, let's go. Okay. The context. As some of you may have accidentally heard, we are in a war time. There is currently an alarming high number of conflicts occurring around the globe and military equipment manufacturers emphasize in one primary objective, which is to minimize casualties. This is what drones take on particular significance as an instrument of warfare. Next. Okay. Drone. Sorry. Drone. Yeah. Let's go. Yeah. Drones have evolved into essential instruments of warfare due to various factors. They enable precision strikes in combat. They eliminate the need for onboard personnel, and they are perfectly suited for symmetrical warfare and are crucial in executing tactics and strategies for real-time covert operations. Drone. Drone. Drone. Drone. These automated weapons offer numerous advantages. They ensure greater accuracy in attacks, resulting in reduced collateral damage in fewer civilian casualties. They minimize human risk as they are remotely operated. And their operational duration is extended, since they're not concern for fatigue. Additionally, their versatility is show- Showcased by the continued ease. capability to be equipped by a rank of weaponry from missiles to bombs. In symmetrical warfare, drones offer cost-effectiveness when compared to traditional manned aircraft, and this is evident through cost reductions in drone production methods such as cargo drones, wooden drones, 3D printing, and the use of affordable chipsets. In strategic terms, drones offer tools for real-time covert operations and tactics, and additionally they enhance surveillance capabilities, alien data collection, and intelligence purposes. Drones also serve as a powerful asset for SIGINT. Given the importance of drones, drones can be used as a powerful asset for SIGINT, given the importance of drones, drones can be used as a powerful asset for SIGINT, given their ability to gather information, intercept and analyze enemy communications and electronic signals, and their ability to gather information, intercept and analyze enemy communications They can access challenging regions, operate continuously for extended periods, and transmit data in real time for prompt threat response. Furthermore, they can execute covert missions for high altitudes or using discrete flight patterns. Some prevalent anti-drones measures include utilizing thermals and scopes, and a few standard cameras for shape recognition, detecting heat emissions for engines and electronics, analyzing distinct drone noise characteristics, employing radio frequency and waveform detection, and identify unique radio signatures. To counteract detection measures, operators employ several strategies like using frequency hopping, engaging jammers that operate on unconventional frequencies, implement robust communication protocols, and so much more, but it's important to highlight that regardless of the advancement, no drone can effectively withstand a direct physical attack like a gunshot or a stun. Okay, guys, thank you. So, I want to talk about this type of drone, drones as war elements. So, we're going to start, well, excuse me. The use of drones for seeing signals, they are used to collect information, extend reach to hard access areas, prolong the operations, retrieve transmissions as Gab said, and cover operations for high attitudes and discreet flight patterns. So, the typical anti-drones measures they are distributed to thermal and standard cameras for safe detection. So you detect the drones as, the shape of the drone. It's like a drone, it must be a drone. Detecting the heat of the electronics, especially the motors. So you see four spots, four heat spots in the sky, maybe it's not a pigeon, so it's a drone. So using artificial intelligence or natural intelligence, maybe. So you can detect those drones simply by seeing them or by sight or by cameras. Another technique is characterization of drone noise. If it sounds like brrr, it's a drone. But it's, you know. Also, the most typical way to detect the heat of the electronics is by radio frequency and waveform detection. So we have here the most important way to detect a drone and the most cheap also. Just because most drones works with Wi-Fi devices, Wi-Fi communications. And if we have a Wi-Fi detector, it's not very expensive. So we have to detect the drones by Wi-Fi characterization. So most of the drones nowadays has the capability to transmit through Wi-Fi or 2.4 gigahertz and 5. So it's very easy to detect a drone with this method. And the last one is radio signal. Using SDR devices with the typical waterfall that went up and down. So it's very easy to detect a drone with this method. And the most typical way to detect a drone is by radio frequency and waveform detection. So we have to identify the different kinds of media spaces that we are going to see. So in last DEF CON, I talked about this topic. The topic is the same as the last one. So the counter measures are very, very, is the same. Is the frequency hoping? And the unexpected frequencies. So as I typically police devices state state force devices tries to jam the signal of the drones with the with jammers using the same fixed frequencies they are the the typical wi-fi jammer and the five giga gigahertz jammer and they are very constrained to tough frequencies and the last one is the most funny is the just shoot the drone right this is the best one but it's the more expensive one and it's not very it's not very subtle well i want to explain the evolution of the atropos if you play a starcraft 2 as i am you will know you will not know that's at the banshee atropos is banshee in spain in spanish so i like i am original right i know yeah the atropos is a very very old drone that i made like a decade ago more than a decade i was young i must i was in my 20s just not to notice that i i'm not still in my 20s so well it's a it's a homemade router it's a homemade quadcopter with a wi-fi router it's a it was made when the raspberry pi didn't exist luckily and when the arduino was starting so i use a microcontroller from microchip the peak the big one for generate the public udm signal to the motors and the the stabilization unit is from a y9 chuck and motion plus from nintendo so they are glued inside the drone without the case obviously yeah so i use i use the the web page of the router as a as a telemetry console so for control and telemetry of the drone i've used that method so the first approach to control the drone was indeed wi-fi so the first the first attack i i suffered in a conference was at the authentication attack long time ago and so we are here for for from that uh as as years past i was equipped the the drone with several tools like a wps attack will you bully inside the with all with extra onboard hardware and so on so the first approach with this drone is to avoid authentication attacks with using beacon frames that was the first approximation so just a lateral just just just another functionality was to uh inspect all the frames all the beacon frames of the environment so just for second and to jump to for distraction so i've always generated a lot of frames of fake drones just to hide the the right one so the evolution of the atropos was the the stage 2, so I decided to make another drone called Interceptor that was presented here at DEFCON, and maybe I was tired to travel with a big drone, I love the iPods, so I decided to make a tiny drone like this, just with the same system, with the same system to transmit the commands. So, the last approximation that I made with this drone was to use FM radio to send the commands to the drone, just to hide, as a magic trick, the commands to the drone. So, I made a new method to hide the communications from to the jammers. It was not enough for me, and for us. So, that was the first approximation, eh I had a USB trainer, it's not a drone command, it's too expensive. So, I decided to put USE V router to that trainer and to connect to, ehhh, through the drone. about the Wi-Fi, standard Wi-Fi. That was the first approximation. The second one was to send forged beacon frames from one router to another. So, and the authentication attack was not possible here. So, that was the second approach, but I'm still vulnerable to jamming Wi-Fi attacks. Well, the third approximation was with the interceptor. That is a, it has a two-way communication. I have, I am able to send the comments and receive telemetry from the drone using the same system. That was the last one. Two are, redundant system with FM every частay load. This is used to, for example, with the Raspberry Pi, you know, maybe you know that is a Gold that did use, a one to generate a FM radio, so you are able to create your, your own radio station with its own name. So, in this scenario, where, like, this is really possible, In the name of the radar station, it travels the USB commands to the drone. So you can see the talk, or the several experiments with the interceptor. That was the AirBDS FM, and I used the AirBDS part. So the right one. The audio, the mono audio and the stereo audio just was for fun. So we reached the stage three. To the whirlwind. So the last approach was to control the drone through the arbitrary frequency generation. So how can we do that? We generate a custom frequency. So the drone receives that frequency throughout SDR software-defined radio. And the last one, I'm able to change the frequency dynamically from the transmitter to the receiver. So. This is the current approach. I use a V-Core 2. It's a teeny board of OpenWRT. So that's the data. So, I use the USB with the same metal, so I generate through I2S bus and to ASK modulation, I'm going to explain that. So with SDR dongle on board the drone, I can receive that command in an arbitrary frequency. So, no police guns works with this. So what this is practice spectrum. Practice spectrum is a modulation. Uh. That I'm able to change the frequency very fast to disturb any metal to receive a jammer. So the jammer doesn't know what's the next frequency that I'm going to use. So the jammer is useless in this case. Okay. May I use the chip explanation? Excuse me? Oh. Spread spectrum is a modulation technique that broadens the signal across a frequency band much wider than the original information requires. By employing spread spectrum, resistance to noise and interference is enhanced. This is because the signal is spread over a broader spectrum. This is because the signal is spread over a broader spectrum. And can more effectively manage noise concentrated at a particular frequency. Um, there's two key terms inside the spread spectrum. First, the FHSS, which stands for frequency hoping spread spectrum. And second, DSSS, an acronym from direct sequence spread spectrum. We credit the remarkable innovation of the spread spectrum to Hedy Lamarr, not just a Hollywood actress, but also a brilliant inventor, in collaboration with George Amstel, the pioneer of the spread spectrum system. Contrary to popular belief, while Lamarr didn't invent Wi-Fi, their work laid the groundwork for today's Wi-Fi, CDMA, and Bluetooth technology. Go ahead. So, uh, the frequency hoping spread spectrum. So, uh, the frequency hoping spread spectrum. Uh, the frequency hoping spread spectrum is, is the technique, uh, that we use here. So, uh, we generate the, the signal by toggling, uh, a general purpose input-output pin of the vCore. That is, uh, that this is on board of the I2S, uh, bus. So if we, if we toggle the pin very fast, we can generate, uh, a radio signal if, if we solder. Uh, wire in that pin, uh, we have an antenna. So you, you have, uh, a more, uh, a raw modulation of that, of that signal. So if you change the frequency of that toggling, you, uh, can transmit in a lot of, in, in an arbitrary frequency to, uh, to control the drone. So this technique use the frequency hoping spread spectrum. So I transmit a message with, uh, with a given signal, with a given frequency, and the next, uh, message is transmitted with another frequency. That is arbitrary. It's, uh, pre-established, uh, between the transmitter and the receiver. So this is, uh, this is, uh, a combination of techniques, uh, starting from, uh, have you heard about Tempest? So is, this is the same technique. But changing the frequency constantly. So will it, will it be possible with, uh, uh, 15 bucks, uh, board instead of a Raspberry Pi? Like the MT7628, uh, chipset? Maybe. Hold my beer. So what is the I2C bus? The I2C bus is, it's not the I, the I2, the I2S bus. Excuse me. It's not the I2C bus. Uh, the I2S bus is used to transmit and receive, uh, digital audio. But we are not using, uh, this bus, uh, for that here. So we have two wires. Uh, one wire is a clock pine, is a clock pin, and, uh, we, we have, uh, uh, uh, uh, data transmission and a data receiving. We, we, we're not, we're not to use the, the receiving data. So we only, we only use the clock pin for the moment. So what is the clock pin? The, the only one that is toggling constantly. So this is the, this is the method. Well, if, if we see the, the data sheet of the Mediatek, uh, MT7628. We see, uh, where, where, uh, what address, uh, we found, uh, the device, the I2S device. So we can write directly, uh, to the, the registers to, uh, turn on and off the clock, uh, the clock pin. So this is the clock plan of the, of the SOC, and we have, uh, a primary clock that, and we can, uh. We, we can, uh, lower the frequency of that pin by, uh, configuring the clock dividers. So by configuring the clock dividers, uh, we, uh, we are able to change the frequency constantly and seamlessly. So, uh, we have to config, uh, we have to set up our I2S, uh, device like we are, uh, with a new driver. So, uh, with this project, it's a new driver, uh, to, uh, to the I2S, uh, device for this chipset that, uh, enables the I2C, uh, bus, but, uh, what I'm doing here is, uh, to enable and disable the clock constantly to generate, uh, high-level and low-level, uh, modulation. And, uh, when I, when I want to change the clock, uh, I, uh, I, uh, I, uh, I, uh, I, uh, change the weight. so I, I changes the last one, theCome, Config. So, uh, uh, we gonna choose a very wide set of frequencies. frequencies. So, if I turn on the clock, I, I am transmitting in a frequency, right? Uh, configured by the, uh, clock dividers. So, if I turn on, I am transmitting in that frequency, and if I turn off, I'm not transmitting. So, the most simple, uh, uh, modulation is to amplitude shift gauging. It's the same like, uh, garage doors, uh, remotes, and so on. But, here, I'm, uh, creating the modulation, uh, just turning on and down the clock of the bus. So, if I, if I want to transmit one, zero, one, one, zero, I want to turn on and off the clock. And I even see, and I, I, I even see frequency. So, if I, if I want to transmit one, zero, one, zero, I want to transmit frequency. So, how to receive that? In the, in the drone, uh, side, we can, uh, use our S, SDR USB to, uh, receive that, uh, uh, modulation. So, if I, if we tune the, the SDR in that frequency, we received all, uh, each packet, uh, like, we, we see each packet like a high blue bar. So, that's, uh, one command of the drone, of the transmitter, transmitting to the drone. So, this is the rock command, uh, seen by, uh, amplitude, uh, as the, the receiver receives that packet. So, we have a preamble here, just to, to, to tell the, the receiver, uh, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, that, this is a valid packet. So, the receiver has tea, uh, starts recording all the IQ values from SDR. And, uh, it, uh, decodes, uh, if, if it's in the high level or low level two decode, the binary, the binary transmission. So, how the works. And, it's an extra poured a board of the drone that accepts bitstream from the device from the file system so it modulates 2sk and the ads and crc8 by two timers i have two timers here one timer is triggered every packet and one and the other one is triggered in every symbol so we have one timer one timer up down up down up down up down on each symbol and i have a timer up down up down on each packet so i can transmit the symbols in a very specific time and every symbol in a very specific time so the receiver is another vcore attached to an sdr dongle that this receives in that frequency the all the all the data from the sdr and how i did it by from constant well this is made entirely in c no python here sorry so to receive the data i i change the frequency constantly to receive the commands so i have to use the live isdr library that is the same that use rtls tcp and so on so i have to to make my own program i have to i have to program my own driver to transmit and i have to to do my own program to to last collect the data and get that information so let's see in this in this approximation i have a list of frequencies right so the transmitter transmit one packet in in one frequency and change the to the next frequency so the receiver has to synchronize have to find the first packet in in in a given frequency so if if both sides made samerence whenever theины villas i know plus and minus five by three on there the other answer uh is zero people this transmакти at least one packet in one frequent and change it into the another frequency so the receiver has to synchronize the receiver has to find the first packet in in in in a given frequency so if the receiver has to synchronize the first packet in in given frequency so if both sides 동 coll recommendation of important pl atr avec dcsالcher smacoo i have four systems you have to consider is. have the list of the frequencies the receiver knows where is in the what step in the in the list of the frequencies is currently so the receiver is able to continue to change the frequency taking account at least so for this setup i decide to to make our own transmitter this is a pcb board with a custom controller so with with the typical joysticks of the drone so using the v core we attach a linear amplifier to make some much more noise that is that makes the v core itself so this is this is the transmitter so this part is the antenna attached to the i2s gpo that is a peak so hope how we generate well as you see i can transmit in a in a very wide range of frequencies i make this demo in my house in spain because as you see i'm transmitting with the frequency military air so if i go to prison i like to go to the spanish prison just to let my mom to bring me cigarettes so if you if you see that uh this is the difference between the b core with with without the amplifier at with the amplifier so there is big difference right it's it's up and down is one packet right and as you see i i zoom out as you see i'm transmitting but let's let's see again well you see two signals here because the spread spectrum is transmitting in that frequency and this changing to the to the to a neighbor frequency frequency. This is a demo just to demonstrate that the transmitter jumps from one frequency to another. Well, I am able to jump in a very wide area, in a very wide range of frequencies that are very far from each other. So, from a jammer, this is a nightmare. Indeed, we can skip the frequency hopping technique and simply transmitting with a fixed frequency, but unexpected by the jammers. So, it's much more difficult. Reliable and the transmitter doesn't have to jump from one frequency to another, but because it takes time for the chip. The SDR dongle is very cheap, 20 bucks, and it takes time to change the tuning frequency from one frequency to another. So, we can use simply this frequency and almost no jammer will take it. I want to share about this, because what about I am transmitting in military frequency and the jammer tries to jam my own drone, jamming indeed military frequencies, right? This is the web page of the drone. So, I still using a Wi-Fi transmission as a primary method. So, I use this modulation as a fallback. So, the receiver decides which command use. If the receiver receives a Wi-Fi command, it use them. But if the Wi-Fi doesn't work, the receiver uses the alternative method. So, the last one is to demonstrate that the drone flies indeed. Please don't kill anyone, please don't kill anyone. . So, maybe... I... I'm not allowed to fly the drone here, sadly. I don't know what... But the drone killed very few people. Like, only three people. As you see, it's an outside drone. It's not an inside drone. But let's make a little noise, right? Just to... Just to make noise. . . . . . . . . . . . . . . . . . . . It's too far. It's too far. It's too far. Well, it's jumping, but if you slow motion the video, you can see flying, but seriously, guys, I know what I'm doing, not flying it, right? So we are fine with the time? Okay, so thank you for coming here, and if you have any questions, we will be glad to answer it. Thank you very much.