start	end	text
0	7900	Hello everybody. So welcome to our presentation on radio frequency attacks on the aviation's last
7900	14120	line of defense against media collisions. It will be a talk on the attacks on the
14120	22020	traffic collision avoiding system in aviation, the so-called TCAS. So my name is Vincent Lenders.
22020	28560	I'm a cyber security researcher for more than 20 years focusing on the security of wireless
28560	34220	networks and I'm also the director of the cyber defense campus in Switzerland. I'll be giving
34220	39640	this talk together with Giacomo. I'm Giacomo. I'm a third year PhD student from Italy, the
39640	45920	University of Genoa and I work also on radio security, opionics and maritime systems as well.
48320	53260	So the air traffic control is a key infrastructure
53980	62700	for safe air travel today. With more than 30 million flights per year worldwide,
62700	69320	the air traffic management is now a very complex thing. So air traffic control helps
69320	74880	organizing and optimizing the air traffic flow. It provides situational awareness to
74880	82540	ground controllers and also support to pilots. And a very important feature of the air traffic
82540	89760	control is to prevent mid-air collisions. So if we look at air traffic control, there are mainly
89760	97860	there are different procedures and technologies for this and there are mainly three technologies
97860	103440	that I would like to introduce and are important for air traffic control. They are all three
103440	111500	based on MoDES. MoDES is a data frame format similar to the internet as IP that allows for
111500	118360	wireless communication between aircraft and ground station. So the first technology is secondary
118360	124480	surveillance radar called SSR. The second one is ADS-B and then the third one that will be the
124480	130460	main focus of this presentation is the traffic collisions avoiding system. So let me start
130460	137260	with secondary surveillance radar. This is the oldest technology. It's based on ground stations
137260	147420	on radar. So the radars they interrogate aircraft using this MoDES format protocol on an uplink,
147420	154720	on the 1030 megahertz uplink, and then the aircraft they respond on a downlink on 1090
154720	163160	megahertz, the MoDES downlink. So these messages are very small in contrast to IP packets which
163160	171000	can be like 1500 bytes. This message is very small 56 or 112 bits. But they can entail a lot
171000	176880	of information such as the velocity, altitude and the heading and so on of the aircraft.
176960	183020	So this is how this is working. This is a kind of an old technology. It's also mandatory and used
183020	190400	in all in all airspaces around the world. Now we have the automatic dependent surveillance
190400	197880	broadcast. It's more recent. It has been mandated by the last years in various airspaces and this
197880	204900	is also based on MoDES. But instead of having the radars interrogating the aircraft, we have the
204900	211960	aircraft determining their own position using GNSS, using for example GPS. And when they know
211960	218240	their own location, they broadcast this information over MoDES to surrounding aircraft and also to
218240	226400	ground stations. So this is more precise than secondary radar. Much more precise. GPS gives
226400	231900	you a few meters accuracy compared to a few hundred meters for secondary radar. So it's
231900	236260	it's welcome to also decrease the separation between the aircraft because of the higher
236260	243580	precision. Now we come to the focus of this talk which is the traffic alert and collision avoiding
243580	252620	system. It's a protocol between the aircraft. So basically it's a distance ranging protocol
252620	262720	based on request replies. Also on the 1,030 megahertz uplink and on the 1,090 megahertz downlink
263370	269040	there are the responses. So there are a few interrogations and replies that happen
269040	275820	to basically determine how if a collision is going on and how to avoid this collision. This is a very
275820	284160	important system because it's the last line of defense against media collisions. If the other
284160	290840	systems have failed like secondary radar or ADSP and it was not possible to keep the separation,
290840	298580	this one kicks in and will make sure that there are no collisions. So why is this important?
298580	304160	Well it's kind of obvious. It's all about human life. If there is a aircraft collision
305000	311040	this will lead to a catastrophic event. We had in the 70s for example
311720	320800	crashes going on also in the 80s with many deaths. And this is why in 1987 there was then this
320800	326760	introduction of the TCAS system and it's now mandatory in many airspaces. It depends on the
326760	333100	size of the aircraft and also the number of passengers you have. But then if you are an
333100	338500	aircraft that has a certain size and a certain number of passengers, you will be required to
338500	345840	have a TCAS system in the aircraft to avoid collisions. Now TCAS has three main core
345840	352500	functions. One is surveillance, the other one is traffic advisory and in the most recent version
352500	357620	of the traffic collision avoiding system you have also resolution advisories. I will go into
357620	363320	the detail of these three functions. So here on the picture on the right we have a typical
363320	370500	TCAS display showing the surrounding aircraft. So this is the surveillance information that you
370500	377100	have. The aircraft periodically announce themselves and you will see this on this display. Now when
377100	383980	an aircraft is found there will be interrogations to get the range for example, to get the altitude
383980	388720	and the capabilities of the surrounding aircraft. This is all information that will then appear on
388720	396560	this display. And if the system realized there may be a collision going on that might happen,
396560	404060	then there will be some traffic advisory, some TA that is sent to the cockpit as an alarm,
404060	411120	alarming the pilot that there may be a collision. And if this persists after some point then there
411120	420040	will be a resolution advisory and this is basically to indicate and give a command to the pilot to
420040	426740	basically do something. And in TCAS 2 there are two options basically to resolve the conflict.
427160	432400	TCAS 2 foresees that one aircraft should climb and the other one should descend and this should
432400	441940	then prevent the collision. So this is the key function of TCAS 2. Now let's talk about the
442480	449940	security of TCAS and obviously we're not the first to think about this problem but the situation is
449940	457040	somehow worrying and yet to our perspective also a little bit unconvincing so far. So there has
457040	463940	been some warnings, there has been some risk assessments, many of them people, publications
464860	470820	analyzing the risks, the cyber security risks and the risks of attacks against TCAS here. I'm
470820	478220	mentioning a couple of those papers, one we have written ourselves in the past. So these are
478220	483780	warning signs. There are also people and including ourselves that have done some simulations to
483780	491720	better understand how pilots would react to TCAS attacks and also what are the conditions under
491720	497760	which TCAS attacks may work and what are the limitations of these attacks. For example,
497760	503840	we did some work also inviting pilots in a simulator and exposed them to attacks and
503840	510680	showed how they reacted to those attacks. And then we had also some work to better understand
510680	517040	in simulations the theoretical limitations of these attacks and what are the conditions
517040	524620	that are favorable to an attacker. But these are all simulations. Then more recently there
524620	532560	has been an attempt to analyze experimentally the impact of attacks on TCAS and these are
532560	538180	these two papers from research. One is a PhD student working on it, building a test bed
538180	547880	and with a TCAS equipment to analyze how the systems would react. But our motivation for this
547880	553860	work that we'll be presenting is that despite this prior art, there are still no convincing
553860	560940	experimental and scientific evidence that these TCAS attacks may work. Actually they may trigger,
560940	567600	for example, resolution advisories using commercial and certified hardware. So there
567600	575100	was also so far no established methodology how to test attacks and to see how systems will react
575100	580500	in a scientific way. And if these attacks are feasible, we would like to also better understand
580500	586080	what are the capabilities needed for an actor. So we would like to understand what are the
586080	592520	requirements to actually need it to be able to launch those attacks. So this was the basic
592520	604760	motivation of our work that now Giacomo will be presenting next. So I needed to descend because
604760	612520	you know, I needed to climb under Vincent. So yeah. Okay, so now the fun stuff begins. So I'll
612520	618880	start by addressing your point. So it's a protocol from 1987. So it's collaborative,
618880	623820	it's in clear, there is no encryption, no PKI, no whatever. So it's insecure. We already know that.
623820	629520	Let's skip over that. So the first attack that you're going to see, it's inducing a TA. It's a
629520	635100	very simple thing. You just need to implement the 1.8 thousand pages of standards required to do so.
635100	640320	And you can find that all of these standards in these three key bullet points, which means in
640320	644560	order to get a TA, you need to be an aircraft. So you need to broadcast your presence, you need to
644560	648300	reply to interrogation properly to say that you are at the correct altitude and in the correct
648300	653560	position. And which is our third point, being in the correct position. So correct range, correct
653560	661100	altitude with a consistent identity. The second attack that you will see is about triggering a
661100	666840	resolution advisory. So a resolution advisory happens after a traffic advisory. So you first
666840	672220	need the first one and then you start a negotiation. So you tell the other aircraft, I perceive you as
672220	677700	dangerous, please do something. And how you can choose? Well, there is one conflict resolution
677700	683520	algorithm that is used, which is the aircraft with the lowest address always wins. So you as an
683520	688280	attacker can find out the address of the other aircraft and always pick whenever the other
688280	694980	aircraft is going to climb or descend. Then the first attack is instead not involving an aircraft,
694980	701840	but instead a ground station. So how TICAS works is basically it picks up a size that it will
701840	706880	protect. So how much time in the future it will look, depending on the altitude, on the currently
706880	712580	selected altitude. This is called sensitivity and it goes in levels. So the higher you are, the bigger
712580	718380	this area is. Well, if you land in Las Vegas, where you have two runways close together, you might
719000	724920	actually end up in a situation when you point towards another aircraft. So what they did was
724920	731320	they allowed ground station to tell the aircraft to reduce their sensitivity. Well, guess what?
731320	737380	You can send this command to any aircraft in the air to disable their TICAS with no authentication.
737380	742520	So this is fun. You can disable the anti-collision of whatever you want. Fun in my understanding of
742520	750360	the word, by the way. So why did everyone fail? So an interrogation cycle, so one interaction of
750360	754920	the protocols goes like so. You send something and then the other aircraft replies. So this is
754920	762360	very standard, but the range that is estimated. So the relative position is done by taking this
762360	769500	time of flight. So the time it took to respond and subtracting 128 microseconds, that's 10 to
769500	776340	the power of minus six. It's a comically short time. Your scheduler of your operating system is
776340	782120	running 1000 times slower than this. So this has acted for a long time as a security feature
782120	789040	because, let's say, low skilled attackers could not manage to have this kind of latency to perform
789040	793820	all of the steps of the protocol. Actually, I'm lying to you, but I'm telling you so it doesn't
793820	798980	count. It actually is not 128. It's a little bit less because it's not with respect to the start
798980	803800	of the packet. It's a little bit later on. So you need to receive, understand what has been said,
803800	809400	send the correct thing out at the current time and reply. Not only that, this happens over two
809400	814560	different frequency channels. So you need to handle coherency and you need to be always in the
814560	819600	same spot because if you need to do six interactions in a row to get acquired, you always need to
819600	825880	reply consistently and at the same time. So it's a difficult thing. So the first problem that we
825880	831060	had is that a ticket system is not exactly a Docker container. You can just put an environment
831060	836080	variable telling him where the database is and it runs. So we had to build a test bed beforehand.
836080	841900	So this one is our architecture. So the first ingredient is of course, a tickets unit,
841900	847320	which is what you're testing. And you also need to connect it to a control panel and a traffic
847320	853520	display unit, which what we've sent was showing to you some antennas and not only that, an headset
853520	861040	because the traffic alerts are going to come out of it. Then you put an attacker into there. So
861040	866420	two antennas, an SDR, a computer driving it. And because we are scientists, you also need to put
866420	872060	something to measure what is going on. So we have a camera that takes a look at the traffic display.
872060	876800	You have an avionic bus simulator that makes the tickets believe that it's flying because otherwise
876800	881980	it will not transmit. And then since tampering with the anti-collision system of aircraft,
881980	887080	it's, let's say, unpolite. You need to put everything inside of a cage so that you don't
887080	891620	get into jail while doing so. Well, I was out because they are from the minister of defense,
891620	896860	but they wouldn't risk anything. So this is, as you can see, our testbed. I'm not very good
896860	902520	at cable management, as you can see, but it was this clusterfuck of cables, basically.
902820	907720	This is what you can get out of this. And also our data gathering process was this very
907720	912300	sophisticated setup with a webcam placed on a monitor that acted as a stand.
913780	919380	So we got this. So as you can see, this is OpenCV. So this can be turned as a dual-use
919380	924380	talk about machine learning and pattern recognition very easily. So we were recognizing
924380	930060	where the aircraft was tracked and what distance was commanded and everything else. So technicalities.
930100	935900	And speaking about technicalities, so it's trivial to send some radio protocol, at least people have
935900	942740	said to us many times. So let's talk about what you need to do, actually. So you have two TCAS
942740	948020	that interact. So they send something on one frequency at two megabits per second, and they
948020	954420	respond on another frequency at one megabit per second. So when we started this, basically three
954420	960520	of these interactions were not available in real time. So two megabits is a lot for a software
960520	966340	defined radio implementation. And there were no implementations doing any of these protocols. So
966340	973160	the first thing we needed to do was, well, first we tested that our testbed worked, because if you
973160	977880	need to attack something, you need to understand if you mounted it correctly, yeah, it works.
978180	983360	Then we started by building a decoder that, with respect for instance, if you're down 1090 or
983360	991480	whatever, it could run very, very fast. Then we brought a transmit chain and we got it certified
991480	997160	by a RAM tester so that we got our stamp. And now you might be wondering, so you have a RAM tester,
997240	1003460	a device that does everything, and you're building that yourself. Well, yes, you need $400,000
1003460	1009680	to buy one. And also the more difficult part of the protocol are just not implemented into there
1009680	1013820	because you don't need it. So you can just send dead beef to an aircraft, but you will not attack
1013820	1020300	it. I guarantee to you. There was also this other thing. So can't you just act time and reply random
1020300	1027360	shit all over the airspace? Well, you can't because aircraft transmit things at random in order to not
1027360	1032740	pollute the airspace. And also you need to have silence around our response to get the other
1032740	1038800	receiver to pick it up. So you cannot just float the air. So we explored two ideas. The first one
1038800	1043360	was doing this in hardware. It's a lot less expensive otherwise, but you need smart people to
1043360	1048960	do it, and I'm not. So we started with software-defined radio because you can just buy something,
1048960	1055940	you can put some random PhD guy, and it's going also to get cheaper over time. And so the idea
1055940	1063320	was, can we do this with less than $10,000? Of course, you need a place to do this and do all of
1063320	1070380	the weird stuff like tracking, putting down, I don't know, a Swiss jet or something. So the first
1070380	1077360	thing we tried was trying with Linux Realtime. And we got 190 microseconds just to reply to a single
1077360	1083600	pulse. So not enough. So we needed to do a bunch of stuff. So you take a workstation, you remove
1083600	1088960	power saving because who cares about it? You remove hyper-threading, you disable many of the
1088960	1094300	cores, you remove the GPU, sorry for all of the machine learners in the audience. And then since
1094300	1098900	we are at a security conference, you disable all of the security protections because those are slow,
1098900	1105920	all of the mitigations and whatever, we don't care. Then you build basically your own Linux,
1105920	1111220	you pin the OS on one core, you pin the application on some other cores, and you remove all of the
1111220	1116360	power saving features, so you run busy polling. And then you compile everything as if it was your
1116360	1122280	Gen 2 custom Linux distribution, so extreme flags, optimized for architecture, profile guided,
1122280	1128720	all that jazz. And then since you are a software engineer, you overcomplicate things. So where do
1128720	1133100	you start to overcomplicate things? So you start from the reception because you need to find out
1133100	1139880	if the victim aircraft has interrogated you. The way is you need to build some kind of intelligent
1139880	1145040	preamble detector, so going back and forth through your transforms, and then you bring up and you
1145040	1150320	understand why you studied mathematics, so you bring up all of this random shit about symmetries
1150320	1157440	in the furrier domain and back and forth transforms. Then you actually do not need to receive all of
1157440	1162780	the bits that are being sent to you. At one point you just decode enough bits and you understand
1162780	1167080	what is being asked you, so you build a finite state machine and you start replying earlier,
1167080	1173140	so you reduce latency. I need those nanoseconds. And then of course everything stays into a cache
1173140	1178340	because you don't have the time to modulate anything, so you just need a lookup table and
1178340	1183320	save everything into RAM. Then you need to get good at programming. You need to read all of that
1183320	1189900	Intel manual of 1.3 thousand pages, also that one, full of VMUL PD or other single instruction,
1189900	1195240	multiple data instruction. You remove any mutex because those take 100 nanoseconds to run and
1195240	1201180	it's unacceptable. You remove all memory allocations and you rewrite the allocator of your program in
1201900	1207960	because why not? And then you add some threads into the mix to overcomplicate things even more.
1207960	1214280	So now after two months you ended up with 40 microseconds more than you started with. Wow.
1214840	1222880	So what kind of results you can get from that? You can trigger RTA. Oh wow, it works. So as you
1222880	1227320	can see you can put an aircraft directly on the nose at the same altitude, so this will be pretty
1227320	1233400	spooky if I were a pilot. And you can also get an array, so you can distinguish it because it's
1233400	1239060	red instead of yellow. I'd like to point out that even though it's written no GPS position, this is
1239060	1245720	in no way related to GPS spoofing attacks or whatever. Also TCAS doesn't need GPS.
1246560	1252380	And then for the TCAS deactivation, what you will see on the aircraft is that it starts in
1252380	1260000	resolution advisory mode, then something happens and it turns back to traffic advisory only mode.
1260000	1267480	And this happens, you cannot reset it back to where it started unless you unplug and
1267480	1272940	replug the TCAS unit, which is very uncomfortable to do. You can't get into an avionics bay while
1272940	1278760	you're flying. And we wanted to verify it, so how can you do that? You fake being a tower and you
1279160	1283160	please tell me the sensitivity level you're operating at and it's going to tell you that
1283160	1291600	it decreased, so it works. Then we tried to induce a collision avoidance maneuver for 30 minutes and
1291600	1296780	it worked. Then the TCAS unit shut off because it didn't expect flying information with someone
1296780	1302900	directly in the front of your nose for 30 minutes, so it's reliable. And the thing that we got is
1302900	1307260	that the amount of money that you require is actually quite close to our target. You also
1307260	1312740	need one Italian PhD student that eats canned vegetables for a while, but you can manage.
1313660	1319400	It's important. Vegetables are important. So about the sensitivity level attack, I can just
1319400	1324840	tell you that it works. I don't have any graph to show you, it's just going to be a line to works.
1325420	1331640	And instead, our system managed to reply within 0.2 microseconds, which for something built in
1331640	1338580	software is smart. And also the jitter, so the delay in between two different interrogations
1338580	1344020	stayed within this limit set by the standard. Of course, it's a lot worse than real hardware,
1344020	1350860	but it's very good. And so this is the most important slide, which is the success rate.
1350860	1357900	So the level of success at one point goes to around 98%. So you know that we're not bullshitting you.
1357900	1363620	If you see our NERF talk where they get 100%, they're lying. So you know that we aren't. And so
1363620	1369100	we get this advantage of around 30 plus microseconds. And why would you care to reply
1369700	1375100	before the 128 microseconds? Well, if you are an attacker and you are on the ground and you want
1375100	1380960	to place an aircraft at distance zero, so directly on the nose of another aircraft, you need to reply
1381140	1387360	a little bit earlier and let the speed of light do its work. So why do you want to do that? Because
1387360	1393540	some distances automatically trigger a TA or an array. And with the canned vegetables from before,
1393540	1399300	you can manage to do this right now with hardware that you can buy at a distance of 4.2 kilometers.
1399300	1405360	So if you are within that distance, you can do that. If you buy your own quantum computer, the
1405360	1412740	magical unicorn world thingy that does it in zero nanoseconds, you can put this up to this
1412740	1418520	theoretical limit. And so we wanted also to find out if you can do that to an airliner, because
1418520	1425780	that's what everyone wants to perform, chaos. And so you can do that for an airline and flying at
1425780	1433520	950 kilometers per hour with a probability of 80%, which is worrying. So let's talk about
1433520	1440420	limitations. Let's be straightforward. So you just need to be heard power-wise, but you need to buy
1440580	1446660	a power amplifier, which we didn't have, but it's RF, so I guess it works. And also you need a way
1446660	1450820	to find out if you want to appear in a very precise position, the attitude of the victim you're
1450820	1457320	attacking. But as you may know, you can listen for ADS-B and understand this position. Done. I conclude.
1457320	1463540	So we now know what kind of hardware we need. We know what kind of things you need to buy. We built
1463700	1470540	a testbed for this, and we succeeded basically because we recognized that general SDRs framework
1470540	1475980	are not enough latency-wise to perform this kind of stuff. Also, like, Dump1090 is focused on
1475980	1482200	decoding very, very well everything that is coming up, but not very, very fast. And also we focused
1482200	1488620	on trivial technicalities, like building our own memory allocator and whatnot. So actually the
1488620	1495040	TARA is very difficult to pull off. Instead, the RADOS is extremely dangerous. And also we
1495040	1500340	have a problem because workstation will get faster over time, so this capability will increase.
1501560	1510400	So it's a systemic problem about a very delicate topic. So we had to disclose this
1510400	1518540	in a very complex environment. We have disclosed it basically to manufacturers and a bunch of
1518540	1524620	authorities, both national and international, that have acknowledged. So manufacturers basically
1524620	1528460	said, yeah, it's a problem in the standard. Yeah, we're going to do something about it.
1528500	1537440	And as it stands at the moment, there is no way to fix any of these attacks. But
1538760	1545860	after some kind of work, now we know that something has to be done and something will
1545860	1551240	happen because they are already working on new iterations of collision avoidance standards.
1551240	1557440	Also, it's a field where it's very important, the safety of everything. So it's going to happen
1557440	1563720	somehow. So if you want to know more, we have a scientific paper coming up using security. So
1563720	1569040	join us and fill in. If you can't wait, you can just ask me and I will hand over to you a PDF.
1569040	1576620	If you are not smart on a USB key, otherwise via email. So that was it. Hope you liked it.
