How EV Digital Keys Check Distance Against Relay Attacks
A phone's wireless signal can be forwarded from far away. Distance checks help an EV confirm that its digital key is actually near the car before unlocking.
The short answer: A distance check helps an EV verify that a digital key is physically nearby by measuring how quickly signals travel between the car and the phone. Detecting a valid wireless signal alone cannot establish that distance, because an attacker can relay the signal from elsewhere.
Distance checks help EV digital keys resist relay attacks by asking a more precise question than whether the car can hear a phone: can the car and phone exchange signals quickly enough to be physically close? A relay can carry a valid key's messages to a car even when the key is elsewhere. A check based on signal travel time makes that detour harder to hide.
The distinction matters because a digital key has two separate jobs. It must establish that the phone is authorized to act as a key, and it must establish that the phone is close enough for the requested action. A valid response can satisfy the first question without answering the second. That is why a car can receive a genuine key message and still need evidence of proximity before it unlocks.
Why hearing a phone does not establish distance
Wireless reception shows that a signal reached an antenna. It does not, by itself, show where the signal began. Signal strength might seem like a useful shortcut: a nearby transmitter often sounds stronger than a distant one. In practice, strength also changes with the phone's position, the direction of its antenna, the car's surroundings and obstacles between them. A phone in a pocket may be difficult to hear even when its owner stands beside the door.
The reverse problem is more serious for security. An attacker does not have to make a distant phone transmit more power if the attacker can bring a receiver close to it and forward its messages. Another device near the car can transmit those messages locally. From the car's point of view, there is wireless activity nearby. The nearby transmitter, however, is acting as an intermediary rather than proving that the authorized phone is at the car.
What happens in a relay attack
In a relay attack, an attacker extends the apparent reach of a key by passing messages between two places. One device communicates near the car, while another communicates near the authorized phone. The devices forward the exchange so that the car and phone can respond to each other despite being farther apart than the car's access system expects. The phone may send genuine answers; the attack depends on carrying those answers across the gap.
This explains why recognizing an authorized key is not a complete defense. An authentication exchange can confirm that the phone holds the right credentials and that a message has not simply been guessed. It does not automatically establish that the phone is standing beside the car. A relay attempts to preserve the legitimate exchange while changing the physical circumstances under which the car receives it.
What the car permits after that exchange is a separate design choice. Access to a door and permission to drive are distinct actions, and a digital key system may apply different checks to them. For either action, a car that relies on proximity needs a way to distinguish a nearby authorized phone from one reached through an intermediary.
How a distance check changes the question
A distance check measures a property that a relay has difficulty reproducing: the time needed for a signal to travel between the car and the phone. The car can send a challenge and examine the timing of the response. With a suitable protocol, the exchange places an upper bound on how far away the responder could be. A forwarded message must travel through the relay path and be handled by the intermediary devices, adding time to the exchange.
The relevant time is extremely short, so an ordinary measure of how long a phone takes to answer would be inadequate. A phone can spend time processing a request, and that delay says little about physical distance. A secure ranging protocol accounts for the expected exchange and measures timing in a way designed to separate signal travel from routine device behavior. The goal is evidence about proximity, not a general estimate of how responsive the phone feels.
Fresh challenges also matter. If the car asks a new question for the current exchange, an attacker cannot satisfy the check merely by replaying an answer recorded earlier. Authentication ties the exchange to an authorized key; timing tests whether the authorized response can arrive within the limit for a nearby key. Together, those checks address different weaknesses. Neither the content of a valid message nor its apparent signal strength can replace a credible distance measurement.
Where ultra-wideband fits
Ultra-wideband, often shortened to UWB, is one wireless technology used for precise ranging. Its signals support measurements of when a transmission arrives, allowing compatible devices to estimate their separation. In a digital key system, the car and phone can use that capability during a proximity check. Other wireless communication may still play a role in finding the phone or beginning the key exchange; finding it and verifying its distance are separate steps.
UWB does not turn a digital key into a simple tape measure. The security benefit depends on how the car and phone conduct the exchange, authenticate it and decide whether the result is close enough for an action. Calling a key wireless or saying that it uses UWB does not, on its own, describe every decision the car makes before unlocking. The important question is whether the system uses a secure distance check for the action at issue.
What can complicate a proximity measurement
Radio signals do not always follow a clear, unobstructed path. A body, a bag or part of the car can block a direct path, while nearby surfaces can reflect signals. Those effects can complicate a measurement or make an authorized phone harder to locate consistently. A well-designed system must handle ordinary ways people carry phones without treating an uncertain reading as proof that the phone is close.
Timing also has to be interpreted carefully. A relay normally adds a detour, but the amount of delay depends on the attack and the equipment involved. The car's security rests on the protocol and its acceptance rules, not on an assumption that every relay will be visibly slow. A distance check raises the difficulty of making a distant key appear nearby; it should not be understood as a promise that every possible attack will fail.
The car's behavior when ranging is unavailable matters too. A dead phone battery, incompatible device or failed wireless exchange may prevent a particular proximity check from completing. Whether another method of access exists depends on the vehicle and its key setup. An alternative way to unlock may be useful to an owner, but it has its own security properties. The protection gained from ranging applies to actions that actually require a successful range check.
What this means when using a digital key
For an owner, the key distinction is between convenience features that notice a phone and security checks that establish where it is. A car may detect an authorized phone as its owner approaches, but detection alone should not be mistaken for verified proximity. A distance check gives the car a stronger basis for deciding when to unlock because it tests whether the authorized phone can complete a timely exchange from nearby.
That also explains why keeping a phone's credentials secure and checking its distance solve different problems. Credentials help prevent someone without an authorized key from impersonating one. Distance checks address an attacker who tries to use a real key remotely through a relay. Digital key security depends on both questions being answered for the action the car is about to permit: is this the right key, and is that key actually here?
Frequently asked questions
Can a car tell a phone is nearby from signal strength?
Signal strength alone is unreliable because obstacles, phone position and an intermediary transmitter can change what the car receives. Hearing a strong signal does not prove the authorized phone is nearby.
Does a relay attack need to steal the digital key?
No. A relay attack forwards messages between the car and an authorized phone, attempting to make the phone appear nearby while it remains elsewhere.
How does a distance check help stop a relay?
A secure distance check examines the timing of an exchange with the authorized phone. Forwarding that exchange through intermediary devices adds a detour that can cause it to fail the proximity check.
Does UWB automatically make every digital key action relay resistant?
No. The benefit depends on whether the car uses a secure ranging exchange and requires a successful result for the specific action, such as unlocking.
Related stories
EV Digital Keys: NFC, Bluetooth and UWB Explained
NFC can unlock an EV at close range, Bluetooth handles nearby detection, and UWB can measure distance for hands-free access. Each has a distinct job.
EV Driver Profiles and Seat Memory for Shared Cars
Sharing an EV is easier when each driver has a profile, a linked key and verified seat and mirror settings. Learn what should stay shared.
Polestar 4 Update Adds V2L, but Excludes U.S. and Canada
Polestar 4 owners get new camping, parking and digital key features, but the update's 3.3-kW vehicle-to-load function excludes the U.S., Canada and South Korea.


