[00:00.610 --> 00:04.100] Hello, everyone. Thank you so much for coming to my talk today. [00:04.100 --> 00:08.960] Today I'll be speaking a little bit about ADS-B security and a personal project I've [00:08.960 --> 00:14.130] worked on on the intersection of aid aviation and signals intelligence called Flycatcher. [00:15.700 --> 00:21.740] So a quick overview of the device I created. It's called Flycatcher and it's made for [00:21.740 --> 00:28.040] effective ADS-B monitoring and detecting foreign instances of aircraft spoofing. [00:28.780 --> 00:35.120] It's low cost and reliable. It's created using the Raspberry Pi and it's compatible with [00:35.120 --> 00:41.820] multiple software-defined radio signal sources. And I created my own convolutional neural network [00:41.820 --> 00:48.960] that parses ADS-B inputs in order to detect for reliable and unreliable aircraft signals. [00:49.620 --> 00:54.600] A little bit about my background. I'm still upstarting in my cybersecurity field, but [00:55.160 --> 01:00.340] I've been a software developer for about a decade and I've been focusing on aerospace [01:00.340 --> 01:06.120] security for the past few years with an emphasis on aviation due to my piloting experience. [01:07.500 --> 01:12.720] And a little bit of recap on what ADS-B is. It stands for Automatic Dependent Surveillance [01:12.720 --> 01:17.760] Broadcast and it's a mandated technology for performing surveillance and signals intelligence [01:17.760 --> 01:24.060] on airplanes. And if we break the acronym down, it's automatic, meaning it doesn't require any [01:24.060 --> 01:28.740] manual input from the pilot itself. It's dependent, meaning that it requires GPS [01:28.740 --> 01:33.620] signals from satellites in order to transmit the aircraft's information and positioning. [01:34.400 --> 01:40.720] It's meant for surveillance, so it contains complete comprehensive information about the [01:40.720 --> 01:46.520] data of the aircraft transmitted itself, such as its airspeed, positioning, altitude, and so forth. [01:46.520 --> 01:52.420] And lastly, it continuously beacons out and broadcasts data, allowing for ground-based ATC [01:52.420 --> 01:59.740] or other pilots to receive that information in order to triangulate where the aircraft is [01:59.740 --> 02:08.620] positioned in the sky. So here's an imagery conceptual overview of how ADS-B works. [02:08.620 --> 02:14.380] All ADS-B signals are derived from the Global Navigational Satellite System, [02:14.380 --> 02:18.940] which provides positioning aircraft, positioning information to the aircraft itself, [02:18.940 --> 02:25.500] which is then beaconed out via the ADS-B out hardware components internally on the airplane. [02:25.500 --> 02:30.200] And once that information is beaconed out via packets on the 1090 megahertz protocol, [02:30.200 --> 02:35.440] it can be received by other airplanes alongside ground-based receivers and antennas alongside [02:35.440 --> 02:40.240] air traffic control in order for those receivers to figure out where the airplane is positioned. [02:43.140 --> 02:49.160] So this technology works using three core components that allow for ADS-B to be broadcasted [02:49.160 --> 02:53.780] on airplanes. There's the GPS receiver that receives the positioning information from the [02:53.780 --> 03:00.280] satellites themselves. And then the ADS-B packets are transmitted via the transponder on the plane, [03:00.280 --> 03:05.500] which is required on all planes. And it typically uses the MOD-S protocol in order to send [03:05.500 --> 03:11.920] comprehensive data about the plane itself. And internally on the plane, it has an ADS-B in, [03:11.920 --> 03:18.140] allowing for continuous monitoring by the pilots themselves of other air traffic in the vicinity. [03:21.200 --> 03:27.300] Although ADS-B is relied on by a wide range of airplanes and pilots worldwide, [03:27.300 --> 03:32.540] it has some core vulnerabilities. It is unauthenticated and unencrypted. [03:32.540 --> 03:36.800] Unauthenticated meaning that there is no verification of the transmission. So any [03:36.800 --> 03:42.900] ground-based hacker can transmit ADS-B packets and it'll automatically be received as a packet. [03:42.900 --> 03:50.240] There's no amount of verification alongside its unencrypted nature, making it transparent to anyone [03:51.030 --> 03:58.500] who tunes into that frequency. This reveals a lot of attack vectors, especially [03:58.500 --> 04:06.240] on the communications end. The four core ones are jamming, spoofing, replay attacks, [04:06.240 --> 04:11.260] and message injection. Jamming is when a ground-based transmitter can flood the ADS-B [04:11.260 --> 04:17.660] frequency with a bunch of garbled data. There's also spoofing, where it's more of a selective [04:17.660 --> 04:23.620] based jamming attack, where you can custom fabricate data packets and then transmit it. [04:23.620 --> 04:29.640] This can effectively create something called a ghost plane, where a ghost airplane would show up [04:29.640 --> 04:34.960] and pop up on the ADS-B feed that isn't really a plane itself. There's replay attacks, where you [04:34.960 --> 04:41.200] capture ADS-B packets from at an earlier time and then replay it. So you're effectively creating a [04:41.200 --> 04:46.700] duplicate airplane that is then transmitted and then received. And then there's also message [04:46.700 --> 04:51.960] injection, where you play around with the ADS-B packets individually themselves in order to mess [04:51.960 --> 04:58.400] with specific telemetry, like the altitude, airspace, airspeed, positioning, and so forth. [04:58.740 --> 05:05.640] The one I chose to focus on for this project is spoofing, because I enjoyed its customized nature. [05:05.720 --> 05:11.440] A lot of spoofing can be detected using artificial intelligence, and I wanted to [05:11.440 --> 05:16.080] pursue that kind of modality for detecting spoofed airplanes for this project. [05:17.880 --> 05:23.740] So how spoofing on ADS-B works is that a ground-based hacker can transmit [05:23.740 --> 05:29.920] ghost aircraft into the sky by creating custom-fabricated packets that mimic the ADS-B [05:29.920 --> 05:36.460] protocol. And these spoofed airplanes can be tracked by other airplanes in the sky alongside [05:36.460 --> 05:44.380] ground-based receivers. So I went through a four-step build process as I was constructing [05:44.380 --> 05:52.500] this device. Firstly, I set up a ADS-B reception ground station using four components that I'll [05:52.500 --> 05:57.540] be outlining later. I went about constructing a device so it was portable and I could stow it on [05:57.540 --> 06:05.380] the back of an airplane. Then I went about training a deep neural network in order to detect for [06:05.380 --> 06:12.780] instances of aircraft spoofing. And then lastly, I stowed the device itself on the back of a sport [06:12.780 --> 06:18.340] cruiser and flew it around the South Bay in order to get access to data in order to train the [06:18.340 --> 06:26.140] artificial intelligence machine learning model that I created. So one thing I wanted to mention [06:26.140 --> 06:31.720] is there's a wide range of credible data sources in order to get access to ADS-B data that you can [06:31.720 --> 06:38.020] actually access right now. There's ADS-B Exchange, FlightAware, ADS-B Hub. For this project, I wanted [06:38.020 --> 06:45.080] to go about manually getting these transmitted signals. So I set up my own ADS-B reception [06:45.080 --> 06:52.440] ground station. This consisted of a FlightAware Pro Stick Plus SDR as my software-defined radio [06:52.440 --> 06:59.740] option in order to get specialized ADS-B signals, which relies on the RTL2832U chipset, [06:59.740 --> 07:05.660] which is really configurable with a lot of dumb 1090 decoders. I used a 1090 megahertz rubber [07:05.660 --> 07:11.920] ducky antenna for a cheap and reliable setup, the Raspberry Pi in order to analyze the ADS-B [07:11.920 --> 07:18.660] packets alongside the FlightAware GUI display in order to have a visual output of the ADS-B [07:18.660 --> 07:27.280] display data I was getting. So once you're able to receive the ADS-B signals that are propagated on [07:27.280 --> 07:33.420] the 1090 megahertz frequency, you need to go about decoding these signals. And the signals I chose [07:33.420 --> 07:39.320] to decode were the ones transmitted on the mode S. There's different modes of ADS-B. There's A, [07:39.320 --> 07:44.940] C, and S. S is the most comprehensive of all the modes and contains advanced mode with [07:44.940 --> 07:51.580] comprehensive data about the aircraft itself. And on the bottom is a mesh structure breakdown [07:51.580 --> 07:59.220] of ADS-B packets. You can see it starts with the first few bits outlining the downlink format. [07:59.220 --> 08:04.040] There's the transponder capability, the ICAO designation, which all aircraft has its own [08:04.040 --> 08:11.360] ICAO identifier to identify it alongside its message taking up the 33 to 88 bit sequence [08:11.360 --> 08:21.450] alongside with a parity ID appended to the end of it. So the way I integrated 1090 was I embedded [08:21.450 --> 08:28.130] it directly on the Raspberry Pi itself. And as soon as the 1090 megahertz ADS-B antenna was able [08:28.130 --> 08:34.390] to retrieve the signals, it fed it through the DUM1090 decoder software protocol, which you can [08:34.390 --> 08:39.970] download and install directly onto the Pi. And then it creates a JSON output, which you can parse [08:39.970 --> 08:48.410] and visualize on a wide range of GUI sources. I also wanted to add some sort of plotting and [08:48.410 --> 08:54.270] visualization for both my ground station and the device itself. So once the JSON output was [08:54.270 --> 09:00.670] tabulated by the DUM1090 decoder, I fed it into the FlightAware visualization dashboard [09:00.670 --> 09:09.840] in order to see the live ADS-B broadcasts. Once I was able to get a sufficient ground station running [09:10.860 --> 09:17.360] and it was able to pick up some sort of signals, I wanted to convert it into a device so I could [09:17.360 --> 09:22.280] make it portable and have it bestowed on the back of an airplane in order to get access to [09:22.280 --> 09:28.540] more comprehensive data in a wide range of locations. Here's a build outline of materials [09:28.540 --> 09:36.560] that I used. I used the Raspberry Pi 3B, a custom case enclosure alongside a TFT display case [09:37.120 --> 09:41.880] on top alongside my 1090 megahertz rubber ducky antenna. [09:43.620 --> 09:51.600] The final build looks something like that. It was good because it had a battery case attached to the [09:51.600 --> 09:56.920] bottom of it, making it so I could use it wherever I wanted to. It was highly portable, [09:56.920 --> 10:00.520] it didn't take up that much space, and it was a durable design. [10:02.640 --> 10:09.080] So once the device was constructed, I went about architecting the algorithm that was [10:09.080 --> 10:15.240] supposed to be classifying for spoofed airplanes. And there's a wide range of indicators of spoofed [10:15.240 --> 10:21.300] aircraft. And here's a graph of the altitude and speed graph of a typical and genuine [10:21.880 --> 10:29.020] aircraft. You can see that it outlines the main phases of flight itself. So you can see in the [10:29.020 --> 10:35.620] beginning, it will have like a ascension as the airspeed goes up and the altitude goes up as the [10:35.620 --> 10:42.640] airplane is taking off. You can see the cruising indication near the middle of the flight. And [10:42.640 --> 10:48.000] finally, you see a decrease of all the values as the airplane is landing. [10:48.760 --> 10:56.560] You can check for spoofed airplanes by checking for inconsistencies of telemetry values, [10:56.560 --> 11:02.200] such as positioning. If it has weird GPS coordinates that don't outline its phase of [11:02.200 --> 11:08.840] flight or its location or just abruptly pops up in different locations, that's an indication. [11:08.840 --> 11:13.340] There's also altitude, if there's a lot of variance in the altitude being displayed on [11:13.340 --> 11:19.280] some of the ADS-B plotline charts. Also, identification. Spoofed airplanes are not [11:19.280 --> 11:26.340] really identified. So within the ADS-B message structure itself, you'll see a null or you won't [11:26.340 --> 11:37.760] see a lot of values for any of the identification fields in the data packet. So once I was able to [11:37.760 --> 11:43.400] get the feature vectors derived from the ADS-B inputs, I went about creating a dense neural [11:43.400 --> 11:50.860] network in order to classify for these spoofed signals. A dense neural network overlays a neural [11:50.860 --> 11:56.560] network itself, which is an artificial intelligence model that's derived from the human brain. It [11:56.560 --> 12:01.980] consists of multiple interconnected layers. In a dense one, you'll see all the layers connected [12:01.980 --> 12:08.360] together. And as each neuron process the input from the feature vectors, it applies some weight [12:08.360 --> 12:13.980] and bias to it, and then it passes the result through an activation function in order to make [12:13.980 --> 12:20.380] an accurate guess of whether an airplane is spoofed and running it through a binary classifier. [12:22.800 --> 12:30.580] So I went about creating the DNN by custom coding a Python script that utilized the [12:30.580 --> 12:37.920] library in order to accurately detect for the spoofed airplane. And I used the ReLU activation [12:37.920 --> 12:44.560] functions at each of the three layers consisting of the DNN, and those were three densely connected [12:44.560 --> 12:51.580] interconnected nodes, and the final layer contained a sigmoid function in order to make a binary [12:51.580 --> 12:57.740] classification. Zero indicating that the airplane was not spoofed, and one being that the airplane [12:57.740 --> 13:08.750] was spoofed. As for the training data I used for the model, I used historical ADS-B records from a [13:08.750 --> 13:17.190] wide range of ADS-B data sources. ADS-B Exchange had ADS-B datasets going back to the 2000s that [13:17.190 --> 13:24.530] I was able to leverage, FlightAware being another great source, and OpenSky. And I was able to [13:24.530 --> 13:30.810] download archives of their ADS-B data from CSB records they had in the past, and I was able to [13:31.330 --> 13:37.570] get data from my own ground station alongside the device itself. What I did was I would take all [13:37.570 --> 13:42.890] those signals, and once it passed through the DUM1090 decoder, I saved all the data into a CSB [13:42.890 --> 13:52.570] record for it to be put into the model. As for testing the device itself, I really wanted to get [13:53.050 --> 13:57.530] a wide range of data from a lot of locations, and although it could have traveled to different [13:57.530 --> 14:06.050] locations via car or anything in order to get the data, I wanted to go full-on with this project, [14:06.050 --> 14:11.310] so I put the device on the back of a sport cruiser, which is a single-engine airplane, [14:11.310 --> 14:17.410] and I flew it around a lot of different areas within the South Bay area in Los Angeles. [14:17.830 --> 14:21.670] And you can see that's a picture of me loading it on the on the sport cruiser, [14:21.670 --> 14:24.610] and me flying the plane to all those different locations. [14:26.130 --> 14:31.750] And as for the data collection process, the device just sat on the back of the airplane, [14:31.750 --> 14:37.910] and it was continuously monitoring the ADS-B signals around me using a 1090 megahertz antenna, [14:37.910 --> 14:43.110] and it was just keeping a file in the Raspberry Pi itself, which contained [14:43.850 --> 14:47.150] ADS-B records of all the airplanes nearby. [14:47.710 --> 14:48.430] Wow. [14:49.770 --> 14:57.550] As for the scan locations in this project, I went pretty much all the South Bay Los Angeles area, [14:57.550 --> 15:04.010] Santa Monica, Torrance, Malibu, Palisades, Burbank, and downtown Los Angeles. I made sure to go [15:04.010 --> 15:12.250] through pretty popular airspaces. LAX was really popular. Burbank was also popular. And I also went [15:12.250 --> 15:21.010] to local airports like Santa Monica airports, Van Nuys, in order to get a wide range of data, [15:21.010 --> 15:25.890] because especially at commercial airports, you'll get like 747s, but you won't get [15:25.890 --> 15:33.150] single-engine airplanes. While if I went to a more local airport, I would get a bigger range [15:33.150 --> 15:38.250] or a bigger breadth of data, because that's where you get like multi-engines, helicopters, [15:39.030 --> 15:44.490] single-engine airplanes. So I wanted to have data that reflected both general aviation and [15:44.490 --> 15:54.790] commercial aviation as well. Once I was able to collect and tabulate this data in a CSV format, [15:54.790 --> 16:00.850] I fed it into the deep neural network model I created using TensorFlow. And then in order to [16:00.850 --> 16:06.170] get a visual plot of the classification, once the spoofed aircraft was classified, [16:06.170 --> 16:12.770] I used a library called Folium in order to make a visual plot of the spoofed airplanes. [16:16.620 --> 16:23.160] Build improvements going forward. One is using more proper signals intelligence techniques. [16:23.160 --> 16:30.200] This was a pretty straightforward scan of it. So it wasn't really analyzing the signals [16:30.200 --> 16:35.000] themselves. It was analyzing the data contained within the signals. But another approach of [16:35.000 --> 16:40.900] detecting for ADS-B spoofing is looking for the first phase of the retrieval process where you [16:40.900 --> 16:46.000] analyze the signals themselves. And one modality of doing this is a technique called RSSI [16:46.000 --> 16:53.610] fingerprinting. RSSI indicating the signal strength of the aircraft. ADS-B out transmission. [16:54.300 --> 17:01.720] So as each airplane transmits the ADS-B message using its ADS-B out, it will have its own unique [17:01.720 --> 17:08.400] RSSI identifier. And this could be a more proper technique of analyzing each of the [17:08.400 --> 17:16.300] individual RF characteristics of the signals themselves. And you can localize the signals [17:16.300 --> 17:21.400] where they come out of in order to identify the airplanes. And typically when you're doing [17:21.400 --> 17:27.120] RSSI fingerprinting for a spoofed plane, you get more deviations and deflections of the RSSI [17:27.120 --> 17:32.980] signal, while for a valid plane, you'll have more of a consistent output. So that would be a [17:32.980 --> 17:39.440] signals intelligence way of improving this build. And secondly, is to use more refined algorithms. [17:39.440 --> 17:44.540] I use the DNN for this approach, but there's a lot of exploration with other models that could [17:44.540 --> 17:51.040] be done. So using other deep learning models like recurrent neural networks, or long short [17:51.040 --> 17:55.760] term memory networks could be sufficient, alongside adding reinforcement techniques [17:55.760 --> 18:00.260] in order to improve the accuracy of the current convolutional network. [18:00.660 --> 18:05.940] The tests I ran with this convolutional network reflected accuracy rates of 90%, [18:06.840 --> 18:09.880] but that could be improved using these approach. [18:11.840 --> 18:18.300] Additional enhancements would be the training data itself. One huge constraint with this project [18:18.300 --> 18:23.320] was the training data, because a lot of the training data for the spoofed data set, so there [18:23.320 --> 18:27.980] was a valid data set and there was a spoofed data set. The valid data set was very easy to get [18:27.980 --> 18:35.840] because there's huge tabulated records of ADSB messages that are from a wide range of sources. [18:35.840 --> 18:40.680] But when you're dealing with spoofed sources, I can only get it from very specialized people [18:40.680 --> 18:45.120] within the aviation signals intelligence techniques. And you're also dealing with a [18:45.480 --> 18:49.440] legality issue in that regard, because it's really hard to get access to spoofed data, [18:49.440 --> 18:57.040] you can train a model on. So, I would say for half the spoofed signals, half of them had to be [18:57.040 --> 19:02.920] generated myself. So, I had to go into the perspective of a person who would be spoofing [19:02.920 --> 19:09.080] these signals in order to manually generate ADSB messages that would be spoofed in nature in order [19:09.080 --> 19:14.720] to train this model. However, having more realistic data in order to train this data set would make [19:15.500 --> 19:26.020] this neural network model more accurate. And one way for increasing the accuracy rate [19:26.560 --> 19:31.080] of another way of doing it would also be using a technique called data augmentation, [19:31.080 --> 19:36.700] which would further refine the approach of manually generating these spoofed signal messages [19:36.700 --> 19:42.620] that I could directly feed into the neural network itself, allowing me to have a more comprehensive [19:43.600 --> 19:52.340] data array of spoofed signals that I could train this model on. Thank you. That's about it. If you [19:52.340 --> 19:57.880] have any questions, feel free to come up or ask them right now. That's my contact information, [19:57.880 --> 19:59.620] but thank you so much for coming today.