News for hackers. Stuff that matters.
Re:Car key 'relay' attack caught on CCTV by gambiting on Monday November 27, 2017 @06:13AM (#15786484)
That's why at night I keep my keys in a metalic pouch that blocks all signals. I've tried and the car doesn't recognize the key even if I hold the pouch right next to the sensor, so it must be doing a good job. I'd highly recommend doing that if you have a keyless entry system installed in your car.

Edit: This specific one if anyone is interested in protecting themselves: https://www.amazon.co.uk/gp/product/B01HETGX00/ref=oh_aui_se...

Re:Car key 'relay' attack caught on CCTV by abcd_f on Monday November 27, 2017 @02:32AM (#15785503)
Which manufacturers are affected?

--

Edit - this seems to be exploiting the "convenience unlocking" feature, whereby you can unlock the car by having the key in a pocket and standing next to the door. Similarly the car will also allow starting the engine if the key is detected inside of the car, so this too can be done via a relay. But you'll need to have the key continuously present to drive, so I guess the whole scheme would involve a flatbed/tow truck around the corner.

--

Edit - I guess one can stretch the relay tether by planting the key-side relay on site, next to the garage door, and have it talk to the car-side counterpart via cell connection.

Also as far as countermeasures go - one would probably be to have the key shut down completely it detects no motion for N minutes. Or just have a physical Off switch on it.

Re:Car key 'relay' attack caught on CCTV by bestest on Monday November 27, 2017 @02:52AM (#15785566)
The relay attack is very old and is very commonly used to steal all kinds of cars, here in Europe it's mostly Toyota.

You do not need the key to be present in the car once it's started up. It's a feature of all key-less cars. For example, one would not want the car to suddenly stop if the key's battery dies on the go.

So, once you start the engine, it will run. It will complain and beep if the key is not present in the car, but it will run.

They suggest to use a steering lock to avoid this, which would indeed help, but it's quite cumbersome. A more convenient way is to store your key in a special keyless key protector "pouch" when you're not driving your car, which is basically a Faraday Cage, blocking it's signal.

Re:Car key 'relay' attack caught on CCTV by abcd_f on Monday November 27, 2017 @02:57AM (#15785589)
If the key battery dies, there is a spot on the dashboard that is NFC-equipped, so you just need to get the key next to it and it will ID regardless of the battery state.

> It will complain and beep if the key is not present in the car, but it will run.

Have you checked that? My assumption was that it will shut down the engine once the speed drops to zero.

Re:Car key 'relay' attack caught on CCTV by tjoff on Monday November 27, 2017 @03:03AM (#15785607)
So now when you are on the highway you need to suddenly search your bag for the key so you can insert it.

> Have you checked that? My assumption was that it will shut down the engine once the speed drops to zero.

Not in any implementation I've heard of (and it would be quite dangerous and irresponsible). Actually, one story I've heard from pretty much everyone I know owning a keyless car is that the driver drops of a passenger that unknowingly had they key all along (typically a spouse). The driver then drives along, fills up for gas or make some other stop and then can't start the car anymore because the key is with the long gone passenger.

Re:Car key 'relay' attack caught on CCTV by CPLX on Monday November 27, 2017 @03:02AM (#15785605)
Your assumption is incorrect. It will run until the car is turned off. If it behaved as you're assuming it would be wildly unsafe, imagine someone inadvertently dropping off a passenger who has the key with them in a purse or jacket pocket, then stopping briefly on a bridge without shoulders, or a railroad crossing.
Re:Car key 'relay' attack caught on CCTV by micaeked on Monday November 27, 2017 @03:06AM (#15785616)
An anecdote, but my car (2015 fit) does keep running when the key is removed. It'll complain, but keeps running until you turn it off.
Re:Car key 'relay' attack caught on CCTV by jore on Monday November 27, 2017 @03:43AM (#15785774)
this is standard requirement in case your key fob just breaks down while you are on the highway for example
Re:Car key 'relay' attack caught on CCTV by zaarn on Monday November 27, 2017 @08:16AM (#15787028)
>They suggest to use a steering lock to avoid this, which would indeed help, but it's quite cumbersome.

atleast in my non-keyless car the steering lock is quite easy; pull key, rotate steering wheel until lock, done.

Once you've done it a couple times it becomes second nature.

Re:Car key 'relay' attack caught on CCTV by Crosseye_Jack on Tuesday November 28, 2017 @03:04AM (#15795283)
I believe they are talking about aftermarket steering locks that fit onto the steering well such as https://i.imgur.com/C2rIjyq.jpg

They were fairly common in the U.K. Back when car security was even worse as it is right now.

The non keyless steering locks can usually be defeated with a few swift hammer blows to the lock cylinder to dislodge the locking pin from the steering column.

Now that’s not to say these after market locks are “secure” as they two have their weeknesses (cut the steering wheel and slide the lock off, use of cheap locks on the device, etc) but they give a visual deterrent to people just driving past and deciding to take your car.

Re:Car key 'relay' attack caught on CCTV by zaarn on Tuesday November 28, 2017 @03:29AM (#15795386)
>The non keyless steering locks can usually be defeated with a few swift hammer blows to the lock cylinder to dislodge the locking pin from the steering column.

My Opel had a definitely safer construction, IIRC the entire thing is welded together so you can't unlock the steering lock without taking apart the entire locking mechanism with a welder halfway into the motorblock.

Of course it's not 100% but it should defend reasonably against people trying to steal the car who don't own a blowtorch and 3 hours of unobserved welding at my car.

Re:Car key 'relay' attack caught on CCTV by mrb on Monday November 27, 2017 @03:59AM (#15785834)
«But you'll need to have the key continuously present to drive»

Not true. Virtually all "keyless ignition" cars let you continue to drive when the key is suddenly no longer detected as present in the car.

I verified this myself on my 2012 Audi S4, driving 1 km away from home without my key.

Think about it. It would be too dangerous if the car suddenly shut down the engine eg. when the key's battery dies or when some random persistent R/F communication failure occurs.

Re:Car key 'relay' attack caught on CCTV by gambiting on Monday November 27, 2017 @06:16AM (#15786503)
Yep. I've had a situation where I was driving on the motorway and suddenly my car decided that my key was no longer in the car(which obviously was still in my pocket) - and a warning was shown on the dash, but the car continued running. Imagine if it shut down while doing 70mph on the motorway!
Re:Car key 'relay' attack caught on CCTV by tjoff on Monday November 27, 2017 @02:38AM (#15785526)
Not sure if there exists any decent counter-measures.
Re:Car key 'relay' attack caught on CCTV by tomalpha on Monday November 27, 2017 @04:06AM (#15785854)
Not requiring an explicit (or at least conscious) action on the part of the user seems to be the flaw in the process.

The countermeasures would appear to be:

* blocking the signal using some kind of Faraday cage to store your keys

this relies on changing user behaviour, and not forgetting; kinda removes some of the “convenience” factor

have some kind of disable switch on the key fob, in which case there’s not a huge difference to a regular remote lock/unlock button

* expanding the range of frequencies the key fob uses to try and defeat the range extenders

this likely has regulatory issues, and is probably easy to just update the hardware to cope with (if it doesn’t already)

have the car do some kind of latency measurement on the challenge/response radio message exchange; given that light travels at 1ns per foot (ish!) the car will have to accurately and precisely measure only a few nanos difference, and not suddenly stop working because of nearby radio echoes in a concrete car park (or whatever)

how close to the car is “convenient” to have it unlock automatically? 2 feet (driver standing by car)? 20 feet (kids running ahead to get into car)?

* some kind of “parked up at home” mode so that the first unlock of the day requires a button push

loses some of the convenience again

got to remember to set it (some kind of car locking button again...)

* you could have a second type of “anti-key” that you always leave at home, and when in range of this key the car won’t unlock keylessley

easy target to block in the arms race or car theft

easy to misunderstand as a user

less convenience

Re:Car key 'relay' attack caught on CCTV by matt-attack on Monday November 27, 2017 @11:57AM (#15788772)
I had thought you offered a thorough exploration of the possible countermeasures, but you missed jgrahamc's suggestion below of adding an accelerometer to the fob. Only unlock when motion is detected. What are you thoughts? Seems that keys are incredible idle when sitting on the kitchen counter, and never perfectly idle when walking to approach your car.
Re:Car key 'relay' attack caught on CCTV by tomalpha on Monday November 27, 2017 @04:06PM (#15791395)
I think that’s a neat idea. In my defence, I might put that under the some-kind-of-switch-to-turn-it-off category but only in hindsight ;)

Like latency-measurement though I wonder how robust it would be to the vagaries of modern life both in terms of reliability - potential moving parts - and in the face of user expectations - “I keep having to jiggle my keys to open my door” or worse, the dreaded “it doesn’t work!”. Where doesn’t work == doesn’t work how I think it should.

Re:Car key 'relay' attack caught on CCTV by benpbenp on Monday November 27, 2017 @02:57AM (#15785586)
There are distance-bounding protocols[0], but I don't think anyone has implemented them in something as small as a car key yet.

[0] https://en.m.wikipedia.org/wiki/Distance-bounding_protocol

Re:Car key 'relay' attack caught on CCTV by londons_explore on Monday November 27, 2017 @03:11PM (#15790745)
NFc and wireless credit cards urgently need to implement something like this...

It's only a matter of time till NFC credit cards get read with a high power reader and proxied across a cell connection to steal money from someone hundreds of miles away from the thief.

Re:Car key 'relay' attack caught on CCTV by zaxomi on Monday November 27, 2017 @03:16AM (#15785654)
How about having a button on the keyfob, that unlocks and locks the car?

Then you don't need to worry about the relay-attack, don't need to worry that you car unlocks just because you walk past it, and don't need a steering lock...

Re:Car key 'relay' attack caught on CCTV by tjoff on Monday November 27, 2017 @03:20AM (#15785670)
At some point you have to ask yourself, why not just use a real key? The "inconvenience" of having to insert the key can't seriously outweigh the issue of forgetting your key in your car (because it was in the wrong bag), driving away from the key. Or the security issues. Or the added cost.

I just don't see the appeal even if it worked perfectly. I'd rather pay extra to have it removed.

Re:Car key 'relay' attack caught on CCTV by consp on Monday November 27, 2017 @03:31AM (#15785718)
Normal keys are notoriously unsafe and get worse over the years by continuous use (grinding of the locking pins). You can also cover the locking mechanism completely inside the door so no fishing for the lock handle can be done via the window or cracks in the handle.

The 'easy unlocking' feature is idiotically simple to fool as shown. Almost the same as in the late '90s when you could just cycle through the ~2-10k combinations on the fobs.

My advise would be: use the buttons on the key and disable the easy-unlock feature which can usually be done either in the car's settings or at the garage.

Re:Car key 'relay' attack caught on CCTV by dazc on Monday November 27, 2017 @03:37AM (#15785751)
' ...why not just use a real key? '

Because they break into the house to get the key. It's happened to a few people I know - one time they used a wire hook through a partly opened window.

Re:Car key 'relay' attack caught on CCTV by roel_v on Monday November 27, 2017 @03:27AM (#15785698)
Police on the tv here (nl) this morning suggested storing your keys wrapped in aluminum foil...
Re:Car key 'relay' attack caught on CCTV by janco on Monday November 27, 2017 @02:45AM (#15785548)
Latency measurement from car side?
Re:Car key 'relay' attack caught on CCTV by bartkappenburg on Monday November 27, 2017 @03:26AM (#15785693)
Wouldn't help: the latency to the relay box is at least as good as having the physical key nearby.
Re:Car key 'relay' attack caught on CCTV by icebraining on Monday November 27, 2017 @03:41AM (#15785764)
That can't be true, because the request/reply still has to travel all the way to the key and back.
Re:Car key 'relay' attack caught on CCTV by gambiting on Monday November 27, 2017 @06:14AM (#15786494)
If the receiver is accurate enough(we're talking nanosecond precision) then you can absolutely tell if the key is 1m or 10m away, so a relay wouldn't help at all.
Re:Car key 'relay' attack caught on CCTV by GoToRO on Monday November 27, 2017 @03:29AM (#15785712)
From the video it seems that the car was parked in front of the house and they just amplified the signal coming from the key inside the house. So not exactly a relay attack. The latency increase must be really low.
Re:Car key 'relay' attack caught on CCTV by dazc on Monday November 27, 2017 @03:35AM (#15785739)
Shouldn't there be some kind of simple disable switch?

You might still want keyless entry during the day for routine shopping trips and such but for parking the car overnight you can live without it; and probably sleep a lot better too.

Re:Car key 'relay' attack caught on CCTV by gambiting on Monday November 27, 2017 @06:24AM (#15786546)
You can - I happen to have a Mercedes, so I know as a fact that you can just double-click the lock button on the key to disable the contactless feature completely - the car can then be only unlocked with a physical button press on the fob.

I keep my key in a metalic pouch every night as a countermeasure, works just as well.

However, there's one concern with it - if a thief tries to steal your car using the relay attack and fails, will they break in and try to steal the physical key(which might lead to confrontation and people getting hurt). It's a risk either way.

Re:Car key 'relay' attack caught on CCTV by xbmcuser on Monday November 27, 2017 @03:58AM (#15785829)
A faraday cage key fob holder. Will remove the convenience of just keeping the fob in your pocket though.
Re:Car key 'relay' attack caught on CCTV by RantyDave on Monday November 27, 2017 @02:40AM (#15785531)
Other than the asymmetric encryption we've had since the 1970's?
Re:Car key 'relay' attack caught on CCTV by tjoff on Monday November 27, 2017 @02:45AM (#15785545)
Encryption isn't the issue, the whole concept is. All this is is a range extender.
Re:Car key 'relay' attack caught on CCTV by RantyDave on Tuesday November 28, 2017 @07:01PM (#15803248)
Oh, right. Damn. So it fakes the presence of the key by merely extending its range? This is not good.
Re:Car key 'relay' attack caught on CCTV by 013 on Monday November 27, 2017 @02:41AM (#15785535)
Store your car keys in a Faraday cage?
Re:Car key 'relay' attack caught on CCTV by bjelkeman-again on Monday November 27, 2017 @03:06AM (#15785615)
I do this (a key fob bag with foil). Some cars can disable the regular broadcast from the car too. Then you have to press the button on the key to open the doors.
Re:Car key 'relay' attack caught on CCTV by dan1234 on Monday November 27, 2017 @02:37AM (#15785522)
The car in the video is a Mercedes.
Re:Car key 'relay' attack caught on CCTV by wiz21c on Monday November 27, 2017 @03:45AM (#15785781)
Interestingly, for many people here, the solution to the problem is even more technology.

Is there a study demonstrating that more advanced keys actually reduce stealing ?

Re:Car key 'relay' attack caught on CCTV by jgrahamc on Monday November 27, 2017 @02:55AM (#15785580)
Add an accelerometer to the key and only transmit when moving.
Re:Car key 'relay' attack caught on CCTV by function_seven on Monday November 27, 2017 @03:05AM (#15785613)
I had a '94 Corvette that did this. Probably to save on battery life. There was a tiny ball that moved around in the key fob. The fob wouldn't transmit the "hey, I'm here" signal unless it was moving.

Not sure what the tech was. Not an accelerometer per se, but still motion detection that worked pretty well.

Re:Car key 'relay' attack caught on CCTV by GoToRO on Monday November 27, 2017 @03:45AM (#15785779)
Tiny ball of mercury that moved inside a glass bubble. The glass has tiny contacts on the inside and the mercury would short circuit at least two at a time. It would detect sudden moves. This is one type of tech that worked like that but maybe not exactlly like yours.
Re:Car key 'relay' attack caught on CCTV by function_seven on Monday November 27, 2017 @03:46AM (#15785787)
Probably similar to your description, but it was a solid ball that rattled. The enclosure was metal as well I think, though maybe some sort of laminated shell with alternating contacts?

I'm really trying to find a diagram of it, but my searches aren't yielding much.

Re:Car key 'relay' attack caught on CCTV by K0balt on Monday November 27, 2017 @08:28AM (#15787108)
Ball motion detectors (or shake/tilt switches) work as you describe. They typically have several metal rods on which the ball will rest on two at any given time. The impossible combinations (too far away to span with the ball) are often bridged together for simplicity. Detection is done by monitoring for changes in the connectivity between 3 or more contacts.
Re:Car key 'relay' attack caught on CCTV by abraae on Monday November 27, 2017 @03:23AM (#15785680)
Perhaps a strain gauge (https://en.wikipedia.org/wiki/Strain_gauge), a primitive sort of accelerometer that has been around for donkey's years.
Re:Car key 'relay' attack caught on CCTV by function_seven on Monday November 27, 2017 @03:40AM (#15785763)
One of those may have been involved somehow, but there was definitely a rattling ball in there you could hear if you shook it. I'm having trouble finding images of how it worked, but many car forums discuss the "small gold bearing in a cylinder" that's used in the fob.

Unfortunately, Google wants to show me links to buy stuff. It's getting impossible to find "standalone" web pages these days.

Re:Car key 'relay' attack caught on CCTV by consp on Monday November 27, 2017 @03:38AM (#15785752)
If it is a ball it probably is a ground plate on the bottom and top with sense connector plates on the edge of the box where the ball is in. The ball moves around and if it gets a connection (ground to sense) a counter gets increased and a time gets reset and since you are moving the thing usually moves around and make some connection when braking/accelerating/steering. You need bumpy roads though on longer trips on the highway. Dirt cheap, but unreliable. Straingauges (in my experience) generally need to be tuned for every gauge which makes them somewhat more expensive.
Re:Car key 'relay' attack caught on CCTV by function_seven on Monday November 27, 2017 @03:44AM (#15785777)
Oh, I think I misread my parent's comment. On my fob, it was purely to unlock the doors when you approached the car. It didn't involve itself with the ignition or running of the car. That was still an old-school key (but with the tiny improvement of a known resistor ohm-age in the key itself†)

† http://ricksfreeautorepairadvice.com/gm-anti-theft-systems-o...

Re:Car key 'relay' attack caught on CCTV by matt-attack on Monday November 27, 2017 @11:55AM (#15788752)
Wow, this is probably the best solution here. Should be cheap and perfectly effective.
Re:Car key 'relay' attack caught on CCTV by jo-m on Monday November 27, 2017 @03:33AM (#15785727)
There is a startup from ETH Zurich [1] which develops technology to make relay attacks impossible. In short, they are developing a method to make the key proove its within a certain distance of the car. Some of the tech behind it: https://arxiv.org/abs/1404.4435

[1] http://www.3db-technologies.com/de/Anwendungen.3.html

Re:Car key 'relay' attack caught on CCTV by ewjordan on Monday November 27, 2017 @03:37AM (#15785749)
Question: who buys these stolen cars, and would having a tracker on one solve the problem?

From experience I know that when it comes to computers, at least in San Francisco, even if you know the exact address where 20+ stolen computers are at, the police will not engage. Are most police similarly hesitant to track down stolen cars, or is that just a weird SFPD quirk about ignoring theft?

Re:Car key 'relay' attack caught on CCTV by gambiting on Monday November 27, 2017 @06:27AM (#15786557)
In the UK if you have a tracker fitted the police will absolutely go and check it out immediately after reporting, they are pretty efficient at it. What the thieves started doing though is they take the car to a car park several miles out and let it sit there for a week, without spoiling the thief's position - if the car is still there after a week it's good to take. A lot of tracker-fitted cars are recovered this way, they are usually found just sitting in parking lots, not in some dodgy garages.
Re:Car key 'relay' attack caught on CCTV by jore on Monday November 27, 2017 @09:55AM (#15787751)
What are these trackers? Can you give an example? Are they GPS transmitters?
Re:Car key 'relay' attack caught on CCTV by gambiting on Monday November 27, 2017 @10:01AM (#15787790)
Yes, so they are basically GPS receivers with a GSM module, constantly broadcasting the location to a central server. They usually have their own battery backup in case the main battery is removed, and have a VHS broadcaster so the vehicle can be found even underground or in a container. For example:

https://www.trackerfit.co.uk/tracker-locate.html

I have a service called "MercedesME" in my car and that provides real-time location of the vehicle at all times by using the built-in GSM modem in the car - but stupidly, in the UK it's not classified as a "tracker" for insurance purposes so having it does not get you an insurance discount.

Re:Car key 'relay' attack caught on CCTV by jore on Monday November 27, 2017 @03:41AM (#15785765)
in Europe they are often sold in parts like spare parts, it is then much easier than selling the complete car
Re:Car key 'relay' attack caught on CCTV by paulhilbert on Monday November 27, 2017 @03:44AM (#15785778)
At least for motorcycles I know you also make more money selling in parts. Of course this ignores the work spent disassembling...
Re:Car key 'relay' attack caught on CCTV by clort on Monday November 27, 2017 @05:14AM (#15786231)
Well the work might not be that much, eg

  http://prev.dailyherald.com/story/?id=377183
Three technicians with handtools vs a Honda Civic => six minutes
Re:Car key 'relay' attack caught on CCTV by chatmasta on Monday November 27, 2017 @06:38AM (#15786602)
Re:Car key 'relay' attack caught on CCTV by PeachPlum on Monday November 27, 2017 @03:47AM (#15785793)
Then you can track it all the way to the shipping container
Re:Car key 'relay' attack caught on CCTV by lexxed on Monday November 27, 2017 @03:28AM (#15785702)
What if i put my car keys in the microwave ?
Re:Car key 'relay' attack caught on CCTV by GoToRO on Monday November 27, 2017 @03:34AM (#15785735)
Too extreme. If I understand correctly how it works any metalic enclosure will work. Tinfoil!
Re:Car key 'relay' attack caught on CCTV by paulhilbert on Monday November 27, 2017 @03:52AM (#15785807)
Both of these seem way more complicated than using the buttons to open doors (i.e. disabling the easy unlock feature) - but I probably just missed the sarcasm again ;)
Re:Car key 'relay' attack caught on CCTV by antouank on Monday November 27, 2017 @03:34AM (#15785736)
Just yesterday a friend was showing me the video where his white Mercedes was stolen in London in the exact same way! I guess someone made good sales on those relay boxes...
Re:Car key 'relay' attack caught on CCTV by chatmasta on Monday November 27, 2017 @06:34AM (#15786589)
> West Midlands Police crime reduction team, said: "To protect against this type of theft, owners can use an additional tested and Thatcham-approved steering lock to cover the entire steering wheel

We've come full circle. Tech has advanced so much that you need a physical lock to backup your technical lock.

Reminds me of the rubber hose method. Trouble decrypting his 2048 bits of encryption? Just whack him with a rubber hose til he gives you the password. [xkcd ref]

Re:Car key 'relay' attack caught on CCTV by ninju on Monday November 27, 2017 @02:52PM (#15790581)
https://xkcd.com/538/

(it's a wrench rather than a rubber hose)