start	end	text
0	2520	All right, so thank you for joining today.
2860	13450	And I would like to thank also the Carhack Village for giving me the opportunity to give this talk, which is going to be about the kind of attacks that you can do on high pressure monitoring systems.
14560	19100	My name is Aguliza Arriba, and I'd like to introduce myself a bit before we dive deep.
19600	33980	I'm a researcher in Switzerland doing some work in the intersection between cyber security and artificial intelligence now, so like machine learning, deep learning, and this kind of models apply to cyber security.
34560	42460	I do a lot of work as well in spectrum sensing networks, and I did in the past, a long time ago, some work in autonomous vehicles.
42460	49420	But this work I'm presenting today, it's about the intersection between spectrum sensing networks and cyber security.
51160	57720	And before we dive deep, I'd like to also sort of summarize what we're going to talk about.
59300	70120	The main part of this talk is the high pressure monitoring systems, which are systems that are designed to increase vehicle safety because they are in charge of measuring what's the pressure of the wheels of a car.
70160	78480	And being the wheel, the component that it's in contact with the road of the car, it's one of the most safety critical components, right?
78880	83560	So knowing what's the pressure of each of the wheels of a car, it's really safety critical.
84180	86360	They have been mandatory in the U.S.
86360	90720	and Europe for more than a decade, I think since 27 in the U.S.
90720	92260	and since 2010 in Europe.
92260	94680	So for a long time, these systems have been in place.
95820	101200	And at the same time, cars have complex software stacks and cyber attacks are very common.
101200	104480	That's why the car hacking village is part of DEF CON as well, right?
104480	106660	So cyber attacks are very common in cars.
107080	122280	For example, Europe now, since July 2022, requires that cars, all manufactured cars, provide a cybersecurity certificate that can defend the cars or the car owners from attacks that can reveal their identity, their location and so on and so on, right?
122500	124420	And TPMS is not included in this.
126320	133780	When we talk about TPMS, we have to make a distinction because there's a few families and we are only going to talk about one in particular.
133840	144740	The first one is indirect TPMS, which uses the sensors that already exist on the wheels and based on the rotation of the wheel and many other geometry parameters of the car, they can estimate the pressure.
145060	155500	Because pressure is a proxy of other parameters of the car, this is less accurate and it's favored by Volkswagen Group, I'd say their GM and plenty of other, right?
156700	164220	Then we have direct TPMS, which is these are sensors that are directly inserted into the wheel and they measure pressure and temperature of the wheel directly, right?
164220	168480	So these ones are usually more accurate because they're measuring the pressure of the wheel directly.
169260	176200	These are favored by Toyota, by Ford and original equipment manufacturers are usually using these sensors.
176640	188160	And then we have another family that is more popular within Tesla and some specific manufacturers like Pirelli, which are Bluetooth based, but yeah, Bluetooth also comes with some problems as well.
188580	191520	In particular, in this talk, we're talking about direct TPMS.
191520	195440	So from now on, when I mean TPMS, I'm meaning direct TPMS, right?
195440	198020	So these are the sensors that are inserted in the wheel.
198020	205520	So you can, if you guys have a Toyota, Ford, Renault, Honda, perhaps you guys can check today on your cars and see whether you can see it or not.
205520	209140	But usually it's on the inflation ring where you can find the TPMS sensor.
210220	214740	And I'd like to offer a very brief direct TPMS primer before again, we jump in.
215020	218500	So the inside of a TPMS sensor, it's a battery powered device.
219560	225120	Usually they transmit the information wirelessly to the ECU and the protocols are usually proprietary.
225120	227160	There's no open source protocol or anything.
227160	233220	So each manufacturer has its own way of sending the information.
233260	242720	The problem is that even though they're proprietary, they don't have any sort of encryption or authentication or anything, which means that they're very easily reversible.
242720	245620	And now there's a myriad of libraries, there's a million of attempts.
245620	251820	And one of the most prominent ones is RTL433, which basically does most of the work for us, right?
252620	255700	The modulations that they use are really nothing extraordinary.
255700	258700	So simple amplitude or frequency shift keying.
258860	261620	In Europe, we use 433 megahertz.
261620	264140	In the US, probably it's 915.
264140	266360	If someone can correct me, please feel free.
267140	269980	But yeah, it's usually ISM band transmissions.
270620	273320	Inside a TPMS sensor, we have different components.
274060	282160	What we have is, of course, the MCU that takes care of the motion sensor, the pressure sensor, and the temperature sensor.
282160	287520	So usually, or in theory, TPMS sensors should only transmit information when the car is moving.
288000	292460	And then when the car is moving, they transmit every 60 seconds, right?
292460	294040	So it depends on the manufacturer.
294640	296820	When they're parked, they should not transmit.
297480	303800	And one component that is usually overlooked on TPMS sensors, of course, you have the RF chain that transmits parts.
303800	306500	So when they send the information wirelessly to the ECU.
306620	312540	But there's a receive component that waits for a single signal at 125 kilohertz.
312540	318940	And this signal usually activates the whole transmit pipeline so that it sends immediately pressure information, right?
319600	329540	And for example, nowadays, with this kind of devices, well, they contain here a transmitter at 125 kilohertz that can activate any sensor that you want, so long as you are close enough to the wheel of the car, right?
331840	342900	And then a typical TPMS frame contains temperature information, pressure information, but also a sensor ID, which is 32 bits.
343060	347000	And so that means there's like around 4 billion unique IDs, right?
347420	354500	Perhaps the... or why this is dangerous is because all this information is sent in clear with no encryption or anything, right?
354500	358560	So the only safety measure here is that the modulations are proprietary.
358640	362660	As I've said before, this is really not an obstacle to anyone, right?
362660	364120	With enough knowledge.
364700	373240	That's why even 15 years ago, there were some papers in 2018, there was a talk here at DEFCON about TPMS, right?
373240	380020	So there were already people thinking that it's possible to create... to do both sides of the attack.
380020	383400	So one is the passive monitoring and the other is the active attacking, right?
383400	393420	So what happened in the last 15 years, since 2010, for example, until today, with regards to direct TPMS hardware is that nothing changed.
393560	397900	It's just that SDR receivers and hardware in general got much better, right?
397900	403680	So now it's even more feasible to set up attacks in any form or any way, right?
404020	409400	So this talk is dividing the two types of attacks that you can do on TPMS system.
409400	413260	One is the passive monitoring, which we'll now describe, and then the active attacking.
414280	418640	So for the passive monitoring, we started this a few years ago, of course.
418820	421620	We got the permission to show all the data that we will show.
421620	425380	It's from participants that participated in our studies, so we have permission, right?
425660	427980	But there was an IT director who had a Toyota.
428960	434200	And doing unrelated measurements, what we could see is that we could track his TPMS tires.
434800	437200	Ergo, we could track his car over the time, right?
437360	442940	And after some time, we could start learning his absences, when he was out, when he was coming, etc, etc, right?
442940	451420	So we asked ourselves, is it actually feasible to track cars or to track the TPMS and consequentially track cars?
451680	453380	And what patterns can we learn, right?
453940	461300	So here we have a bit like the distribution of how many TPMS messages we could see per week and also by the hour of the day, right?
461300	464300	So we can start noticing some patterns, right?
464300	466440	So for example, this was very old measurements, right?
466440	469280	So this was one of the COVID lockdowns we had back in Spain.
470440	472860	We can also see when he was on holidays.
473060	476080	Of course, we can easily determine what's the working hours of this person, right?
476080	480220	So there's a lot of things that we can learn almost without noticing or without even trying, right?
480860	490620	So what we did is we took 12 participants, or we did a small study, and then we tried to set up a car tracking infrastructure for these particular users.
490820	498000	But there's nothing really blocking anyone from building a big setup to track any cars that use direct TPMS, right?
498420	501400	So what do you need to build such an infrastructure?
501400	503140	So what you need is hardware, of course.
503240	509920	That is around $100, which contains an RTL-SDR and a 433 megahertz antenna.
510120	514600	In US, perhaps a different frequency antenna, but the same principle applies.
515300	519320	Single board computing like a Raspberry Pi, internet connectivity, and power, right?
519320	524660	So in Spain, you can get this for $100 perhaps in the US a bit more, but it's around the price tag, right?
525320	530480	The software on the device only needs to be the RTL-433.
530480	534900	What we have is also some custom models to avoid any processing of unwanted data.
535860	537360	And then the infrastructure is very simple.
537360	546840	So there's plenty of open source components that are really readily available so that you can send this information to a database and basically start collecting data, right, of TPMS sensors.
547100	554660	So yeah, in a few weeks' time, you can capture millions of unique IDs from nearby roads.
554660	557560	We'll show later how far even, right?
557880	559500	But the infrastructure looks very simple, right?
559500	572860	So you have cars transmitting direct TPMS messages, which are intended or which are directed to the ECU, but because there's no control on this, anyone listening can also receive these messages, right?
573080	581420	So then the decoded messages via any software that exists already can be parsed by InfluxDB or any time series database that exists.
581420	584220	You can have your pretty Grafana dashboards.
584960	589240	You can download this data and apply your pretty nice analysis algorithms.
589240	591220	You can do plenty of nasty stuff, right?
591960	593140	That's on risks.
593800	597460	One thing that we noticed, of course, is that each car has four wheels, right?
597460	603860	So a question that arises is how correlated are the measurements or the transmissions of its TPMS sensor with each other, right?
603860	609360	So the four TPMS sensors of a car, let's talk about cars, do they transmit at similar times?
609360	610900	Is it difficult to correlate?
611760	620040	Of course, because if you only use one ID to track a car, you're missing a lot of information compared to when you track all cars at the same time, right?
620040	622760	So you're gaining quite a big advantage.
625480	633720	There's several methods that are in the literature that we can use and apply to this particular problem, which are, of course, cross-correlation of the time series, the Jacquard index.
633720	636520	So I won't get too much into the details, of course.
636920	641080	We designed something based on the Jacquard index with a bit of a robust matching.
642060	648820	And what we noticed is that in the end, we can capture, as you see, we see groups of four.
648920	653240	So this time, this represents the IDs detected with the number of times, right?
653240	661320	So most of the time IDs appear in these blocks of four, which means that TPMS sensors tend to fire at similar times, right?
661320	666380	So it's very easy to detect which sensors belong to the same car compared to other cars.
666740	681680	There's also other tricks because manufacturers usually design for a particular car, when they program the bits or the ID of the TPMS sensor, they usually use most or the IDs are equal to the first 26 bits out of 32.
681680	683700	So only the last ones are different, right?
683700	687600	So it's also a good way to notice whether they belong to the same car or not.
688980	698520	But then we can then, after we do the setup, after we analyze how the different TPMS sensors of the same car correlate, we can start analyzing long-term patterns, right?
698520	708780	So what we saw here, so the black lines or the black dots mean at a particular day, at a particular hour, whether we saw a particular TPMS car or a particular car, right?
708780	711280	So we are taking into account now the four TPMS IDs.
711740	714480	So this is for a part-time student that was working with us.
715160	723360	So what we see is that this person was usually coming from 8 to 1 p.m., right, to work, but we can start seeing some anomalous behaviors, right?
723360	728720	So in this case, for example, we saw this guy coming even on a holiday quite late at night.
728720	736060	And actually that was not that he passed by where we were, but he was on a road nearby and he was on a university course and we just happened to capture him, right?
737720	741680	We can actually manage as well to detect other anomalous behavior.
741680	751840	So this person came on a holiday, but he had quite a tight deadline working on, so yeah, this kind of stuff that we can easily learn without the knowledge of the car user or the car owner, right?
751840	754220	So this is not something that you can control.
754360	758000	This is information that is sent by the wheels and that you have no control.
759160	767780	We also were very nice, so because we were getting the pressure sensors, we warned that the pressure of his front wheels was a bit low, so we were nice enough.
768160	773900	This is a bit of a silly example, but there's a lot of information for which you have no control of, right?
773900	775440	So that's the worrying part.
776480	782620	There's plenty of other long-term patterns that we can learn, so on the left hand side we have like a full-time worker.
783060	792800	This car in particular is sort of adheres to the standard design principle of a TPMS sensor, meaning that we can only get this car when it was coming or going, so meaning when the car was moving.
793700	802640	If we look at the... of course we can still see some anomalous things, like for example in the middle of the day he went for lunch outside the building, so we can also detect that.
802900	809560	We can detect a bit of a... so he came and left quite early, so this kind of anomalies we can also detect.
810760	822360	In this case, for example, on the right hand side, so we're going to take full weeks where he was not coming, but also here also the most interesting part is also that the car, even when it's parked, is also transmitting, right?
822360	832760	So not all sensors work the same, so even when the car is parked, and even when it's not necessary to know the pressure, we can still get a lot of information.
833420	840180	And the last one, not because there's no interesting pattern, but because the way the data is being sent.
840320	846700	This is the case for Toyotas, and this is for the Toyotas that we've seen in Europe that use a particular vendor, which is PMV.
847020	858100	And what we see is that this transmits information or the pressure information with the ID every 15 minutes, no matter whether the car is parked or moving or doing anything, right?
858180	866600	So what we found is probably Toyota is the chattiest brand of them all, or at least the manufacturer for Toyota is the chattiest brand of them all.
867080	869180	And they also transmit with high transmit power, right?
869180	878120	So we could detect, particularly we could detect Toyotas up to 200 meters or so, so that's quite far compared to other brands, which is a bit less.
879160	887100	Now the question is, okay, so we're focusing mostly on parked cars or nearby cars, but what are the limits to this tracking infrastructure?
887100	890520	So what happens when there's more cars, when they're moving fast, or when they're far, right?
891520	903140	So we did an estimate, of course, we cannot test with that many cars, but we estimate that one single sensor can track in 30-second windows up to 200 cars with quite good reliability.
905520	921080	One of the scary parts of tracking TPMS compared to using cameras or using other devices is that tracking TPMS, you don't need direct line of sight, so you don't need to be directly pointing at the road, so you can be hidden somewhere and basically capturing.
921080	933100	So what we saw is that even in no line of sight, so when we have walls and when we have no direct line of sight of the road or anything, we can still capture TPMS messages up to 60 meters with very simple hardware again, right?
933100	934640	So this is the scary part.
935040	941440	And up to 50 kilometers per hour, which is 30 miles per hour, I think, you can still capture messages quite easily.
941440	953600	So here what we had is a car doing laps around our neighborhood, and except for lap number four, which where the sensor that we were using collapsed a bit, all of our laps we could capture at least one TPMS ID, right, of the car.
953600	957520	So it's really up to urban speeds, it's quite doable.
957520	964080	I would say that for highway speeds, perhaps this is not feasible.
965520	966700	So now when we move...
969280	974700	So we move on from the passive monitoring to the active attacks, right?
974700	975520	So because this channel...
976800	978720	Is this something causing this?
979820	980960	It's the room, okay.
982140	985320	Okay, sorry, that's a bit distracting.
985780	989520	But yeah, so the thing is that the TPMS channel is not authenticated or encrypted or anything, right?
989520	993200	So we can monitor, but we can also spoof, right?
993200	995320	And be a bit even nastier than before, right?
996680	1002400	So what we did, for example, is... well, so we had a car that we could use that obviously uses the TPMS.
1003160	1007660	The modulation of the Renault, again, it's not public anywhere, yet it's widely known.
1008720	1018460	What we built is a signal spoofer, and then we extended it for a few more cars, and we're working on extending it and doing more tests, of course, so that to see how the car responds to different messages, right?
1018460	1028520	So some of the characteristics that Renault uses, so it's true that it's easy, but each brand has its own quirks, but it's really a matter of documenting and storing everything, right?
1028600	1032260	The frequency in Europe is 433 megahertz.
1032300	1036140	The modulation is 2FSK plus pulse-width modulation.
1036180	1038080	Then it uses Manchester coding.
1038080	1042240	The bit duration, so each bit lasts around 52 microseconds.
1042300	1056080	And the main things you can obtain from this are some flags for the message, the ID that uses three bytes, the pressure and the temperature, and lastly some battery voltage and some unknown parameters that related to how the tire is deflating, etc., right?
1056500	1061920	Here, the tool set is slightly more complex than for passive monitoring, but not much.
1061920	1065040	So what you need now is an SDR with transmission capabilities.
1065560	1075600	So usually we use the user P-mini, which is a bit pricier, but nowadays for $300 or even less, I think the Flipper Zero has transmit capabilities and it's cheaper than this.
1075840	1080800	So yeah, pretty much, as I said before, in the last 15 years, TPMS technology didn't change.
1080800	1083820	It's just that the SDRs became cheaper and more powerful, right?
1083820	1085560	Which is kind of scary.
1086020	1093660	But yeah, we can take the receive pipeline or the decoding pipeline, and then we can basically reverse it, and then we get our spoofer there, right?
1093660	1108700	So, for the case of Renault, when you decode, so you have the TPMS sensor that is transmitting the signal, we need an SDR with receive capabilities, we demodulate the 2FSK, we demodulate the pulse wave modulation, we do a bit inversion, Manchester decoding,
1108700	1110000	and suddenly we have our message, right?
1110000	1111620	So, we're done.
1111640	1112920	What do you need to transmit?
1113220	1115000	The same, just reverse.
1115000	1119040	There's literally nothing extra, nothing fancy, nothing special, right?
1119040	1125940	And then you can transmit this signal to the ECU, and because there's authentication or encryption, the ECU thinks it's just its own TPMS sensor, right?
1127280	1133480	Just to show how these things look like, I'd like to, so for example, right, so we started with the 2FSK.
1133500	1139260	So what we have on the top and the bottom is the two frequencies, so each frequency, when it jumps, it's a 1 or it's a 0, right?
1139260	1149480	So we have here, we have a jump, it stays for the bit duration, so 52 microseconds, and then when it's a 0, it jumps to the other frequency, and when it's 1, it stays, right?
1150320	1161680	What we get now, it's on time, we get this sort of, these time-based lines, and basically we can divide in between the times where it's at frequency 1 and the times where it's at frequency 2, right?
1161680	1166240	And then we can calculate what's the width spent at each of these frequencies.
1166240	1178360	So in this case, we start with a 1, so we stay at a tuple of 1 at frequency 1, and 1 width at frequency 2, then 1 moment at frequency 1, and then 2 moments at frequency 2, etc, etc.
1179960	1189020	Then we can go from the pulses that we have, we generate this tuple, and we generate a sequence of bits, so the frequency 1 represents a 1, the frequency 2 represents a 0, simple as that.
1189020	1191900	We invert the sequence, this is how Reynolds does it.
1191900	1195660	Many other manufacturers don't invert, so it's really manufacturer-dependent.
1195860	1198880	With Manchester Decoding, they want to be robust enough, I guess.
1199620	1208400	We find a preamble, so yeah, it's good that many manufacturers include preambles so that we can detect this here, or we can sort of discard false positives.
1208660	1213980	In the case for Reynolds, it's this starting value, and we get the final message.
1213980	1217320	And the final message is, again, very easy to obtain the information from.
1217320	1224720	So we start with the flux, we start with the pressure, the temperature, the IDs, of course, and the other parameters.
1224740	1230140	And we get a nice CRCA just to check whether we decoded it properly or not, which is very nice.
1230760	1235780	And again, to transmit, we just reverse the flow, there's nothing else, there's really no magic to this.
1236680	1244140	So then what we can do is we build a spoofer with these principles, and we started spoofing stuff and see, detecting.
1244140	1253500	So one of the biggest issues what we found is, of course, you can provoke this, this is in German, because we're in Switzerland, but it's basically faulty tire.
1254000	1258740	This is also a really annoying noise, so it can be very scary.
1259940	1268880	Of course, the tool that I presented here can also get spoofed, so it's easy that this tool exists, because so long as you can spoof this tool, you can spoof the car that you're trying to spoof, right?
1268880	1272520	So there's a lot of infrastructure that you can use to really refine your spoofers.
1272540	1278140	So to wrap up, what can we conclude, right?
1278140	1284700	So DTPMS are actually quite vulnerable to all sorts of attacks, whether they are passive, whether they're active, whether you can mix them, right?
1284700	1299880	So if you track a car over time, and you can select specific locations where you want to inject a faulty message or a faulty pressure message to the car and then provoke that this person stops or anything, if you're a logistics company or you're tracking somewhere,
1299880	1300360	right?
1300640	1307120	So it's just because the channel is not encrypted or authenticated, you can be as nasty as you want.
1307880	1313640	Given the status that... so SDRs are becoming cheaper, are becoming better, and the technology is not getting much better, right?
1314660	1320860	Also, what we noticed, and again, we want to remark is that passive monitoring is affecting some brands way more than others.
1321100	1330520	So for example, what we saw is that Toyota, it's particularly bad in this case, because they're transmitting every 15 minutes, no matter where the car is moving or not.
1330520	1337880	Other brands like Renault or Hyundai, I really respect more the car design principles of this.
1337880	1340640	So yeah, you're safe, right?
1340640	1343980	And the question is, is there a solution to this?
1344200	1349760	And the bad answer is that if you had a car with DTPMS, probably not right now.
1350000	1355920	Because the way the system is designed, the ECU expects the messages in clear text, right?
1355920	1360680	So if you have a DTPMS car, there's nothing you can do.
1361180	1367340	Before, if you're thinking of buying and you're worried about this, then you might check whether your car is using DTPMS or not.
1368640	1374440	Actually, yeah, so again, one thing that you can do is not everyone needs the accuracy of DTPMS.
1374440	1379660	So for I have indirect DPMS, and for me, it's good enough, and I have tire deflation, etc.
1380100	1383860	But again, it's not feasible for many cars that are running right now.
1384380	1390520	There exist plenty of papers that have shown that it's possible to add encryption or to add different designs.
1390740	1393220	But yeah, they mostly stay on the research.
1393220	1399980	So there's really nothing, no one, I've never seen a car that has implemented any security measure for DTPMS, right?
1400920	1403780	And because, yeah, open source, again, it's very important for us.
1403780	1407000	So we provide two repositories to replicate this research.
1407000	1422560	So once the one on the right on the left is the DPMS analysis, so how to the tools that we use to analyze a passive monitoring systems, and the DPMS tools, which are the sort of how to spoof and do all kinds of nasty stuff.
1423480	1425860	And this should be all.
1426960	1427900	I'm going to stop.
1427920	1428860	Thank you.
1435830	1436990	Oh, yeah, sorry.
1456970	1468670	Yeah, that's perfectly fine.
1468670	1469990	Yeah, yeah, absolutely.
1477850	1482250	I think my experience or my impression is it doesn't care.
1482250	1483750	It's just a first comfort serve.
1483750	1488730	So if you're transmitting more often, then it will take more attention to what you're doing.
1488730	1493730	Because what I did for the deflation part, I was moving the car, but it was basically transmitting every second.
1493730	1496770	So you're basically overloading the ECU with low pressure messages.
1496770	1500530	So the every minute every exactly right.
1500530	1502210	So I think it's first comfort serve.
1508210	1511450	I'd say it's the highest we tested.
1511490	1519110	So we're sure that up to 50 kph or kilometers per hour, we can decode DPMS easily, perhaps even more.
1519250	1522210	Like it depends how much time you travel right at 60 kph.
1522210	1527890	So if you have good antennas and good hardware, you can increase the distance at which you detect the DPMS message.
1528210	1539830	I think most because usually if you park, for example, your car in a cold location, you might trigger the system.
1539830	1544110	So you need this temperature measurement to say it's because the temperature is low.
1544110	1544590	So I would say...
