by tlb · 7y ago · 0 comments
For scooter rental, it'll be way smoother than opening an app and scanning a QR code. You can just step on the scooter and go.
(My wife hates the QR-code scooter app experience so much that I generally unlock both scooters under my own ID when we're going around together. Fun fact: there are geocoded low-speed zones in Paris, where it limits the scooter to 10 kph in some crowded pedestrian areas. Fine. But when you unlock two scooters with the same phone, it uses the GPS location of the phone to decide when to limit or un-limit the speed. And a lost Bluetooth connection can leave it stuck at low speed. But I digress.)
UWB will also improve the ergonomics of contactless payment. With the current system, you have to hold your phone really close to the reader for a few seconds. UWB could allow an instant gesture.
EDIT: removed fatuous intro
The radio technology involved should have almost nothing to do with the ability to perform a relay attack. There are two straightforward mitigations:
1. Timing. The two parties confirm that a message can round trip in a specified, very short time T. This proves that the distance between the parties is T/2c or less.
To be useful, T should be, say, 20ns or less, which requires a bit of clever crypto to make the actual exchange fast enough.
2. The transmitter attempts to localize itself, using GPS or other technologies, and refuses to authenticate unless it’s near the receiver.
There is reason to believe that UWB will help with localization. I see no reason it would be any better than any other technology for time-of-flight measurements unless sub-nanosecond resolution is needed.
I don't think you even need crypto on the actual exchange.
The car and the key fob could negotiate a pair of random values, R1 and R2, using an encrypted protocol so that eavesdroppers cannot figure out R1 and R2. This negotiation does not have to be particularly fast, so no need for anything clever. This is also where you would do authentication to prove to the car that it is talking to an authorized key fob.
For the actual distance measurement, the car sends a message containing R1 and the key fob responds with a message containing R2. Each R1/R2 pair would only be good for one try, so it doesn't matter if an eavesdropper sees the distance measurement attempt.
An attacker can relay all but the last n of R1 and guess the last n bits. With probability 2^-n, the guess is correct, and the attacker learns R2 n*10 ns early. If the attacker can attempt the attack a few times, then getting a 60ns advantage is entirely reasonable and is enough to break some use cases.
So some more cleverness really is needed.
So C starts sending R1, M starts receiving R1, and after relaying 6 bits of R1 M guesses the last 2. Let's say M gets lucky and guesses correctly. So now M has the 6 bits of R1 it received from C, plus the 2 it correctly guessed, and so it has R1, 20 ns earlier than it should.
But to get F to send R2, M still had to send those 2 guessed bits on to F. That's 20 ns, assuming a fixed bit rate on the physical layer, which is how I assume these kind of systems would be designed. That should prevent M from learning R2 early.
The hardware I was envisioning for this would have a shift register on F that gets loaded with R1 xor R2. As the range finding bitstream comes in, it would shift out the bits from that shift register, xor them with the incoming bits, and transmit the result.
Similar on C. Load a shift register with R2. As echo bits come in, shift bits out of the shift register, xor with the incoming bit, and shift the result into another shift register (or get fancy and do this all with one circular shift register). At the end of the echo message, if the output shift register is all zero, it got the right R2.
Note that with this implementation there is no aborting on F if it receives the wrong R1. The wrong R1 simply makes it send back the wrong R2.
(Note: this design assumes that C and F both can simultaneously transmit and receive).
It fits easily in the bandwidth of UWB. AirPods are ideal candidates for better locating ability. I can’t say for certain but a rough googling suggests that the radio accounts for the bulk of the energy used in an AirPod, and UWB appears to have better efficiency per bit.
So what's missing in your scooter use case is a loyalty mechanism rather than a lack of payment technology.
QR codes are highly backwards compatible
Doesn’t preclude a NFC improvement, but my experience with Scan QR to Unlock has been very good, point the phone at the bike, bike unlocks, not much to improve
This is a security feature, intentionally.....
Isn't this used for Animoji as well?
Now that I think about it: Animoji may have been a justification for the sensor array as in "look, multiple purposes".
I'm pretty sure that's what they're doing with the macOS Apple Watch unlock.
Angle of Arrival/Angle of Departure mitigates this. Attempting to relay will screw up the phase relationships.
UWB is basically Time of Flight.
You do? Mine is almost scarily eager to pay the bill.