Thank you. Thank you all for showing up. My name is Paza Meiri, and I'll speak about Trolling the Weather. First, allow me to introduce myself. I'm a system engineer. I get a master degree in Electro-Optical Engineering. I worked 14 years in the aerospace industry as a system engineer team leader. I have six years of experience with communication systems design. I launched two weather balloons with elementary school pupils, which will become relevant in a few slides. I'm a former DEFCON speaker, DEFCON 29, and I gave a talk at B-Sides TLV this year. It's been a very good year. Why Trolling the Weather? Where it all started? Well, it all started when I read an article about a country that's been trying to launch a satellite in space and is suffering from a problem. It's a problem that's been going on for a long time. It's been suffering from a string of failures. And it kind of amused me because I thought about all the engineers and all the generals, which are sure that someone is probably sabotaging their work, because if you remember the quote from the old James Bond book, once is happenstance, twice is coincidence, but three times is enemy action. And it kind of amused me for a couple of years. And I was like, oh, I'm going to be a James Bond character driving around in their country, sabotaging their work repeatedly. And he's doing it all alone. And he's a superhero, whatever James Bond resembles to you. And after being in my James Bond mood for a couple of hours, I started wondering, can I stop a satellite launch? And can I cause it to fail after lift-off? And can I do it on my own? And it quite amazed me when after a couple of hours, I realized that the answer is yes. And it's not that hard because all I need to do is just control the weather. And this is a very hard claim because nobody can control the weather. The weather is the weather. And we are who we are. And we cannot do anything to influence the weather, hardly can do anything to influence the weather. But we have a very good relationship with the weather. We are sampling the weather in numerous ways. We are gathering the data. We are analyzing the data. And we are building models of the weather. And we call it weather forecasts. And we are using the information to decide, should we operate this airfield? Should we launch this satellite? So if you have the ability to influence the data stream, which goes into the databases, you have a powerful tool to influence decisions. You have to understand why there is a strong relationship between air vehicles and the weather, because there is no all-weather air vehicle. All air vehicles are limited by a certain weather envelope that guided their design. Nothing can fly at any terms and at any time. And you've probably all seen that one time or the other, the headlines launch delayed due to weather conditions. And in the most simple way you can see it by thinking about, for example, lightning. It can cause electrical damage to an aircraft. It can cause structural damage to an aircraft. And the same with hail. Rain can freeze over control surfaces or the wings and cause the aircraft to stall and fall from the sky. And my work is built on an interesting fact that there are high winds, high turbulences in the air that you cannot see in any regular means. For example, it is not tied to a rainy day or thunderstorms. You can have a perfect sky, everything looks great, but you have a very dangerous turbulence out there and it can cause damage to aircraft that will try to pass through it. And the way to measure these high winds is with a weather balloon. So here you can see a weather balloon in the picture. On the upper side you can see the balloon itself. It's partially filled with helium and the higher it gets, the more it is getting filled with helium because the external pressure drops. On the lower side, the small box that you see is the instrumentation that does all the measurements, gather the information, process part of the information and transmit it to the ground. And in the middle you can see a parachute. And in the middle you can see a parachute. And in the middle you can see a parachute because when the balloon pops around 100,000 feet up in the air, everything starts to fall down and you don't want to get hit on your head with a radio sound, which is the name of the instrumentation. And therefore they are attaching a small parachute that will slow it down so when you get hit on your head, it won't kill you. I quoted here from an article that was written by Ian Dudley from the Vandenberg Space Telescope. And he said that the balloon is not a parachute, it is a parachute. I quoted here from an article that was written by Ian Dudley from the Vandenberg Space Telescope. And he wrote a very good article describing the relationship between the activity at Vandenberg and the weather balloon and the weather balloon's operations. And it was very good for me as an attacker to understand how it works and to design my attack. Here you can see a launching station. There are about a thousand like this scattered all over the world. And if you think about it, 1,000 are scattered all over the world. And if you think about it, 1,000 are scattered all over the world. And if you think about it, 1,000 are scattered all over the world. And if you think about it, we can count them in a single order. This is 1,000 people. It is not that big number if you want to really influence. Then you can gather 1,000 people and do a lot of damage to the world. They each site is launching usually two balloons per day. Some of them are launching more. And as you can see, they're checking the radius on in the hangar, inflating the balloon inside the hangar, tying them both up together, doing final test, go out of the hangar, release the balloon and the balloons fly in extra power. off and the reception station is usually located there and starts receiving the data from the weather balloon. Here's some quotes from senior metrologist at Vandenberg. He's saying that the data goes directly into the databases and the national weather models which is great for me as an attacker if I know that it will go directly into the computers then big success if I can insert my data there. Another important thing to remember is that depending on the launch they are launching, depending on the satellite launch, they are launching releasing between 5 and 15 balloons to get a much more accurate and updated data of the high winds and he's saying that the upper balloon support is critical to Vandenberg's activity because you've all seen the movies eventually before a launch there are about 30 people sitting next to each other and every everyone has to say that the launch is a go for their system and the weather is one of the considerations and there's a weather officer there and he needs to raise his thumb and he's doing it according to the information that he's getting. So if you can insert data or falsify data within the system that will show him that the weather is great but the weather is not great then he will approve the launch and the launch might fail. Or if you can manipulate the data and cause him to believe that the weather is not okay even though it is okay then he will not approve the launch and the launch will be delayed millions of millions of dollars going to waste. And to make it more interesting you're probably thinking okay Vandenberg is a very, we hope, a very secured base and let's see you trying to attack it and not getting caught but NASA is giving more information and NASA is demanding that for manned launch, manned missions, you have not only to have good weather above the launch site but also in the downrange and it means a lot of stations around the downrange needs to raise their thumb and say listen the weather here is great, do the launch. So if you don't, if you are intimidated by attacking a Space Force base, then you might not be intimidated by attacking such a civil hangar with a simple reception station that nobody guards. Okay so I have malicious intentions and I want to inject data into the system so and I want to do it on the Radisson so I need to pick the Radisson that I'm going to emulate or attack. And here you can see a list of the most common Radissons and you can see that the Vaisela RS-41 holds 30% of the market. So I said to myself okay this is my target. The RS-41 transmission frame is the basics of the RS transmission frame are presented here. There are two several sub models of the RS-41. One the most commons are the RS-41 SG and the SGP. The basic frames has 320 bytes divided into blocks. I'll go over the blocks in the next slide. And they use data whitening to get the data noisier when it is being transmitted to the ground so the reception equipment will have an easier time to decipher the, to decode the data. And the NDNS, little NDNS, bitwise, bytewise, and two layers of detection for the error correction. Each block is protected with CR16 and the entire frame is protected with Reed-Solomon algorithm. Here you can see the bytes of the frame, inside the frame. The first byte is header bytes and then come the forward error correction bytes. And then one byte for frame type and then come the blocks. The first block is 79. It is the status block. It holds a lot of general information. And then the second block is 79. It is the status block. It holds a lot of general information such as serial numbers, bore temperature control data, and so on, and also subframes which I will mention in the next slide. The next block is 7A which holds the measurements that the radius is taking from the air. And then there are three GPS blocks. The first block is GPS information. It holds time and the number of space vehicles and the quality of reception of each space vehicle. Block 7D holds the raw data, the relative velocity and distance of the radiosomes from the space vehicles, GPS space vehicles. And the third block is the positioning. You have the position and velocity and the number of satellites that are being used for the position calculations and the accuracy of both velocity and position and so on. The most interesting block is the last block, 76. It's an empty block. All of the bytes are zero, except for the two CRC16. Why they have it, I don't know. As I mentioned, the status block holds also subframes. There are 51 subframes, 16 bytes each, and there's a lot of more general information, serial numbers, board type, calibration data, and so on. Here are the RS-41 RF properties. It transmits between 400 and 406 megahertz. The output power is 18 dBm. And the modulation is GFSK. And it's very easy to receive the transmissions. All you need to have is an RTL-SDR, an antenna, and you can pick up signals from very far, far away. And it's nice. You can take a really small device. There are thousands of people all around the world who built such stations in their home, and they are looking at the decoded data, and also transmitting the data to databases, public databases, where they are gathering the data and give the public access to that data. And it's a great community. They are tracking the radio sounds and what, mostly what they're doing, is, uh, tracking the radiosonde as it falls down, and go with their car and pick it up and get a free STM32 evaluation board falling out of the sky. So I have malicious intentions. I have my target. So the first thing that I can do is jamming attack. When you want to do a jamming attack, you take a powerful transmitter, and you transmit jamming signals. My weapon of choice was the Haltic Automation LoRaNode 151. I just searched for the transmitter, and then the name Haltic popped up and said, oh my God, this is a sign. I have to use this board. And so I used it. And it has a very good LoRa chip. It has a very good microcontroller. It transmits 20 dBm, which is great for my work. It carries its own battery, a lithium battery. It costs $20 on eBay, and it weighs 25 grams, which is also great, and I will talk about it in the next slide. Okay, so let's see how it looks like. Oops, this will work, yeah. On the right side, you can see the RS-41 emulation equipment. It is transmitting log files. This is the reception equipment on the left, the RTL-SDR and the computer. And in the middle, you can see the little board, which will be used for jamming. Now I start the Radiosonde emulation. It goes to an old log file that I have. It gets a message and transmits it and gets another message and transmits it in a cyclic manner. Here you can see the transmission on the RF level. And here you can see the decoding software. This is what the operator sees. In the middle, you can see the Radiosonde position. Here you can see the position and velocity. On the left, you can see some general information, like the Radiosonde ID. Here you can see the GPS time and the state of the space vehicle's reception. And this is the status of the subframe's reception. These are the measurements that the Radiosonde is taking. And this is the GPS navigation data. And the decoding software is getting the information over the computer audio from the RTL-SDR, so you can record the raw data, as you can see here. And if we'll zoom in, we'll see these are the preamble bits followed by the data bits inside the message. Okay, so now that we have a working RF path, let's add some jamming. Here you can see the RF level, the old transmission, the Radiosonde transmission versus the, and the jammer. And when you record it and look at the audio, it's a mess. You can see here the jamming signal. It's a very simple signal transmitted half of the time. And here you can see it being mixed with the Radiosonde and it's unrecoverable. And of course, we have no decoding. Remember that it weighs 25 grams, so you can tie it to a birthday balloon and get it up in the air to follow the Radiosonde, and they will both fly together and be so happy. And the poor people on the ground will be so sad because you are not only attacking the local reception station, but now you are attacking all of the reception stations across the way. The US National Weather Service is supporting 102 sites, each launching two balloons at precise time, twice a day. And what will happen if 50 people will decide to jam the signals? And it will be very bad because professionals say that it will really lead to errors in the weather models and forecasts. Okay, so this was one example of how you can harm or troll the weather. Speaking about the message decoding, and I mentioned earlier that there are 1,000 people around the world, thousands of people around the world supporting the Radiosonde tracking community, and they developed a lot of tools, and they studied a lot, many models. Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the... Most of the models that you've seen in the list are already, can be decoded by their software, and they lot... wrote a lot of tools to receive decode process, and when I wrote my work it was based on their work, and I'm standing here on the shoulders of giants, and these are the giants. What I've developed is a simulation framework. On the right side, you can see the transmission part, On the left side, you can see the reception part. In the middle of the transmission part, you can see a Python-coded simulation strip. This is the heart of the RS-41 emulation. It can update the GPS satellite's data from a file that it downloads from the internet. It can use RS-41 log files, and it can manipulate the data using the simulation framework I wrote that gives the script writer a lot of operations to manipulate the data, to create frames, create blocks, and so on. The script can either send the data directly to the decoding software if it is installed on the same computer. Or it can transmit the data with the radio transmitter to an RTL-SDR receiver, and from there to the decoding software. The framework has four libraries. One is for block level operations. One is for subframe operations. One is for manipulative functions. For example, if I want to falsify something, I can do that. If I want to falsify the position and velocity, then I can enter the position and velocity into a function that will create the three GPS blocks. And if I will transmit the three GPS blocks, the receiver will believe that the data is updated and is active right now. And the fourth library is general simulation functions such as manipulating, reading log files, using log files, and so on. When generating messages with the GPS, the data is updated. The framework, you can either synthesize complete frames and subframes, but it's very hard because it requires of you to have a behavior model for each measurement. You have to remember that most of the measurements are tied together. So it's very hard to build your own weather emulator inside your computer, but it's possible. The framework will not stop you from doing it. A more simple way is to take a data set. Take a log file from an old flight. It could be a year old, two years old, or last week, and retransmit the data, but manipulate the data. For example, replacing all of the serial numbers to a new serial number, or updating the GPS data that it will not be a year old, but it looks like that it's a present live GPS reception right now. And it's a much more easier path, and this is the one I used. Thank you. So, now that I have malicious intentions, and I have the means, I can do some spoofing. To do some spoofing, all you need is a powerful transmitter, and the technique is this one. You receive all of the subframes from the radio sun that is flying right now in the air, and then you prepare for spoofing. You set up your transmitter and everything, and then you jam the receiver, and this is done because... It's not a good thing. It is very hard to adapt all of the data at the same rates, at the same offsets, from one frame to the other, from the radio sun frame I just got to the frames that I already have from the log file. So to mitigate it, I'm jamming the receiver for a few seconds, raising the data uncertainty, and then I'm starting to spoof the data. And the operator will see that it lost the link for a few seconds, and then the link returns. And he has good data. Everything is great. And I transmit all of the spoofed data, and then I'm doing the same thing again. I'm jamming the signal, raising the data uncertainty. And you have to remember that this is much more difficult, because while I'm spoofing the messages with recorded messages, the radio sun is doing something, and I usually cannot anticipate what exactly it is doing. So again, I need to mitigate between my data, falsified data, and the radio sun data. So I'm going to do that. And the jamming does that very well. And then I stop. And that's it. My data inserted into the databases. It works because of the signal-to-noise ratio. You make the receiver believe that the strong, healthy signal that it is picking is the main signal while you are transmitting it with the spoofing transmitter. And you want the receiver to... Okay. ...experience the low signal from the radio sun as noise that is interfering with the main signal. And to do so, you have some signal-to-noise thumb rules numbers here. For example, if they are both transmitting at the same power, you get jamming and not spoofing. But if you get 25 dB margin between the two or more, then the receiver will accept the signal as a good, valid signal. And we'll... We'll be fooled by the spoofing transmitter. To get this margin, you need to be familiar with the free space loss... Free space path loss versus distance. When the radio sun leaves the station and drifts away, the power at the receiver drops very quickly. And if you are close to the receiver and the radio sun is far enough from the receiver, then you'll get the margin that you need regarding the signal-to-noise ratio. Okay. If you cannot get very close to the... Or close enough to the reception station, then you can do several things to get the power up at the reception station. One is to use directional antenna and concentrate all of the power on the reception antenna. Another way is to use a power amplifier, which is simple, but it works. And if there's something between you and the station, then you can elevate the transmitter, as I showed earlier. with a battery. A balloon, a kite, a drone, or whatever you have. Okay. So let's see how spoofing is being done. This is the RS-41 log file transmitter. This is a spoofing transmitter. And again, the reception equipment. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Now, you can see the jamming, jamming, jamming, and now spoof data, and this data is based on an old log file, and I offset all of the required parameters, so it will look very smooth. Now you get jamming, jamming, jamming again, and the spoofing stops, and you can see here a small jump in position, and this is what I talk about, about raising the data uncertainty level. The operator looks at it, says, okay, I lost a few packets. It seems to be fine. This simulation, I added two things, one, I changed the temperature and the pressure while spoofing, and the second thing that the entire simulation and decoding is run on the same computer. I'm using the audio link as transmission media. You can see here that the temperature and the pressure are changing a bit. It's hard to see, but in a minute, you'll see the effect. And this is what the weather officer will get. He will get the graph of pressure versus temperature, and I created the circle inside the graph. And now he is looking at the circle, and his superior is asking, can we launch? And he don't know what to do. I wanted to give you a sense of how difficult it is to write such a script, so here are the main bullets to build such a script. This script, for example, takes data, all data from the computer. That was recorded on one site. And it will change all of the serial numbers and IDs in the transmission. And it will also offset the position of the radio sound. And it will make it look as if there is an active radio sound flying right now somewhere, even though it's not. And to build such a script, you need to define the new serial numbers, IDs, and so on, define the position offset. Read. Update it. Get the GPS satellite's data from the internet, because you want to emulate a flight that is flying right now. Read the log file. Read the data that you want to use for retransmission. Set up the RF transmitter and or the audio stream, and initiate the transmission thread that will transmit the data upon an event. And then the script will go through, it will initiate a transmission loop. And in the transmission loop, it loads a message from a log file. It recovers the data with the forwarded correction. It will update the IDs, serial numbers, and so on. And then it will calculate and update new CRC for the status block, because that's where this data is stored. After that, it will extract the GPS position block data. It will offset the balloon position. And it will recalculate the three GPS data. It will use the GPS blocks to make it look as if the flight is occurring right now. Then it will prepare the data for transmission. It will wait for a time event. And it will trigger the transmission thread. And the data will be transmitted. This is how it looks like. On the upper side, you can see the original flight done somewhere in the U.S. And on the lower side, you can see the spoofed flight. Emulating flight. The flight of a radiosonde above the Pentagon. I wonder how they look at it. Okay. Mentioning the Pentagon. The RS-41 has also a military model, which is called SGM. It is intended for military use. The word intended is right there. I will speak about it in a minute. It has two features. One is radio silence. It will remain silent until a certain time or a certain height. And the other feature is data encryption. And regarding the radio silence, it's because the manufacturer is claiming that if you use radio silence, you won't the enemy will have a hard time to understand where the balloon was launched from. It's not really military in the sense that most of the properties were not changed. They're still using the same civil frequency band. And they are still using the same properties, modulation, bit rate, and so on. And they're still using the same framing message, framing method, so each person who is receiving other RS-41 models. I don't know. Sorry. Will be able to receive the SGM and understand there's an SGM flying right now over my house. And this is not really military because usually the military is good in hiding things, not declaring up in the air, I'm here, I'm here, I'm operating. And this is very strange. And only the data, the measurement block, and the GPS blocks are encrypted. And as I said, you're still very aware that the military is operating here. I'm sorry. Another thing which is not so military is that the encryption is not always activated. When we are monitoring these flights of the SGM around the world, you can see that in many cases it is not active. I don't know why. It's very strange because the military usually believe in doing the same thing over and over and over. So the soldier would be prepared for war. And what's funny is that when it is not encrypted, it's the same frame as the RS-41SG, but it identifies. It identifies itself as the SGM, so you still know that the army is operating here right now. I don't know why. The claim that the radio sound transmission will not reveal the balloon launch location is very funny because, for me at least, because when I launched the two weather balloons with the elementary school pupils, we downloaded software from the internet that can analyze the position of the radian sound. And according to wind models, the radian sound will not reveal the balloon launch location. The wind models predict where it will fall to the ground. And it gave us very good results in both cases. And it's funny because you can do it the other way around. If you have the wind models and you know the position right now, so you can make a very good assessment where it was launched from and send your troops there. One last thing is that I mentioned it earlier, that at Vandenberg, they are launching the balloons before they are launching a satellite. And it means that if you are monitoring the air force base next to your house and you see that they are launching twice a day, as they should, and suddenly they are launching a string of radio sounds, then you know that they are up to something, even if the data is encrypted. You still know that the army is about to probably launch. Okay. Okay. Okay. So when you are looking at coping with spoofing, which is important, I don't think encryption is the way because key management is a headache. Most of the launching organizations are not military at all, and they are not prepared to start management keys and hiding information from each other and synchronizing reception sites and so on. And using encryption requires significant upgrades, and it most likely won't be welcomed by most of the customers, and it's bad for the radio sound community because they want to get the data. And the data is not secret. The radio sound launch is publicly funded, so why can't the public get their antennas out of the windows and receive the data? It's not secret. Okay. Okay. Okay. So the first one is to authenticate the messages. There are so many methods to authenticate messages. You can take the existing messages and add authentication tags. For example, in the case of the RS-41, perhaps find a good use for the empty block and add an authentication block instead of the empty block. And customers who are not interested in using authentication will not use the authentication, and the community can keep up doing what they're doing. and it is most important to understand that the authentication can be done offline you don't have to do it online and it's a potential business model and the manufacturer of the radio sound I offer a service if you are suspecting that the last flight was perhaps spoofed then send me the log file I will check it up and I will tell you if it was proof or not and I will charge so it's business model when I developed the framework and it was a lot of work I at first started to use it in investigating and understanding the decoding software different decoding software and different models different operating systems and so on and when I finished it I realized that it's a very good tool to examine these software develop these software test these softwares and so I decided to upload all of my code to this link it will be uploaded after the talk and that's it thank you very much there are some references here and if you have any questions I'll be here for the next couple of minutes thank you you