Keyless Entry Attacks
Keyless entry systems use RF communication that can be intercepted, replayed, or relayed. Common frequencies are 315 MHz (US) and 433 MHz (EU).
Authorised Vehicles Only
Attack Types
Relay Attack
- Extend key fob range
- Two devices: one near key, one near car
- Works on passive entry systems
- Partly defeated: sleeping keys, UWB ranging
Replay/RollJam
- Capture and replay signals
- RollJam blocks + captures
- Works on rolling code systems
- Requires jamming capability
The relay defence worth naming is UWB distance bounding (IEEE 802.15.4z): the car and fob timestamp an ultra-wideband pulse exchange, and the measured time of flight limits the accepted distance to a metre or two, so a relay that adds even a few nanoseconds of latency fails the check. It is a partial defence, not a fix, and it only covers the vehicles that fit the anchor and only the decision that consults it. Keys that stop transmitting when stationary raise the cost of the passive version, because the relay has to capture while the key is moving — but a competent relay still works against a key that is awake, so neither measure retires the class. RollJam is a different problem: it needs the jamming half of the attack, which is why it is both the most reliable classic technique and the most clearly unlawful to run outside a lab.
Rolling Codes and Counter Desynchronisation
Capture Is A Bench Activity
A fixed-code remote repeats one word on every press, so a captured frame replays indefinitely. A fob is not fixed-code: a rolling code derives a fresh value from a shared key and counter, and a challenge-response remote answers a nonce the car supplies.
A counter-based receiver cannot demand counter plus one — presses happen out of range and frames are lost — so it accepts a window ahead of the last value it saw and rejects values already spent. Press it out of range often enough and the counter walks past that window: it transmits, the car ignores it, and the remote is dead with a good battery. Recovery is an OEM procedure: a defined press sequence, or the fob held against the start button.
Replaying the unlock frame therefore fails: the counter it carries has been spent. RollJam is not an exception to that. It holds a not-yet-used code back and spends it later, which is why it needs the jamming half, and why the statutes are aimed at it.
BLE and UWB Phone-as-Key
The defence named above binds because of the architecture, not the band. A phone key authorises on presence rather than a press, and the CCC Digital Key specification — Release 4, published as V4.1.0 alongside V3.1.4 — keeps the stack Release 3 introduced: NFC for tap, BLE for wake-up and ranging, UWB for the passive-entry measurement. BLE carries the conversation; it does not measure distance.
RSSI is a power measurement. A relay that re-transmits at higher power presents as closer than it is — the amplify-and-forward class demonstrated against production passive-entry cars from 2011 — and no RSSI filtering fixes it. UWB answers with timing: short pulses, distance from time of flight, and in IEEE 802.15.4z a scrambled timestamp sequence so the pulse train cannot be predicted and answered early.
The mitigation therefore appears only where the passive-entry decision is gated on a UWB distance bound. Ask which radio actually authorises entry; "supports digital key" without a UWB anchor is a convenience feature carrying the fob's threat model.
A Proximity Path Is Still A Real Vehicle
The partiality is specific. A UWB measurement is consumed decision by decision — driver door, the other doors, the boot or tailgate, start — and each is gated on it or is not: a car can bound the driver door and still authorise a start on presence alone. The bound is also only as good as its anchors — where they sit and how many there are decide what the number asserts, and two of them measure distance to a pair of points, not presence in a seat. List the decisions that authorise something, then check which read the distance. A measurement consulted by nothing is a bill of materials entry, not a control.
The fob keeps a path that uses no radio link. With a flat battery, owner's manuals document holding it against the start button or in a marked holder in the console, then pressing start, the door having been opened with the mechanical blade where the remote cannot. The reader drives a low-frequency field that powers the transponder, so the fob's battery is not in the path. A designed bypass a reviewer should know exists: at the door it moves the threat model from radio to physical.
Credential Tests Need The Owner's Written Authorisation
Sharing and Revoking a Digital Key
A digital key that cannot be withdrawn is a key handed out permanently, and how sharing is brokered decides whether withdrawal works. Where the vehicle's backend mints the credential for the recipient's device, the issuer keeps the record and can invalidate it. Where the recipient instead receives a copy of the same credential, revoking one copy says nothing about the other. CCC expresses a shared key as policy — validity window, permitted features, locks reached — not as a second master key.
Those limits have to travel inside the credential, because the car may be offline when it is used, and the car is what enforces them: a valet key's time box is checked against the vehicle clock, not the phone's. Revocation follows the same path. The issuer marks the credential invalid and the vehicle learns that at its next authentication or connectivity window, so a revoked key keeps opening the car until then — that interval is what a stolen phone buys. What was stolen is a credential and its identifier, not the vehicle's secret, which is why wiping the phone is not revocation.
Follow that interval into what the car stores. A vehicle keeps either an allow-list — the credential identifiers and public keys it will accept — or a deny-list of the ones it refuses, and the choice decides what revocation can mean. An allow-list refuses anything it was not provisioned with; a deny-list accepts by default, so a denial that never arrives never takes effect. The secure element holds a public key or identifier per credential, not the vehicle's secret. A car that never reconnects can enforce expiry against its own clock and a revocation it has already learned; it cannot enforce one it has never been told about, and short validity windows are what bound that.
NFC Tap and PIN-to-Drive
Tap is the other path: an NFC reader in the door handle or console, working at a few centimetres. That changes the relay picture rather than removing it. Passive-entry relay works because the car authorises on a distance it measures; a tap reader authorises on deliberate presentation, so the amplifier-on-a-pole version does not apply — an attacker needs the phone at the door while the owner cooperates. Where UWB is absent, OEMs fit a keypad instead: a PIN entered in the cabin or the app to authorise a start. It is a fallback, not a control — four to six digits is a low-entropy secret shared with whoever watched it typed, reused across valet handovers and rental accounts, and held only by the retry lockout.
Immobiliser Versus Lock
A lock release and a start authorisation are different systems that share a key. Locking is a body function: the body control module drives door modules over comfort CAN or LIN, and its evidence is an actuator moving. Start is an immobiliser function — a challenge-response with the key's transponder or the phone's secure element, gating ignition and fuel — whose evidence is a crank that does not catch and a security telltale.
Keeping them apart explains a result that otherwise reads as half a test. Entry without start is the ordinary case where the immobiliser is intact, which is why an unlock primitive is not automatically a drive-away. The review questions are whether both decisions consume the same proximity result, and whether the immobiliser challenge is bound to the components that answer it.
Signal Analysis with SDR
rtl_433 decodes
fixed-code devices: TPMS sensors, weather stations, doorbells, and gate remotes that transmit the same code every
press. Modern car fobs use rolling codes and a challenge-response exchange, so
rtl_433 will not
decode a fob — it is useful for the fixed-code sensor traffic around the car, and for confirming which frequency
and modulation is in use. Fobs need raw IQ capture and manual demodulation.
# Required: RTL-SDR (receive only), HackRF or Flipper Zero (capture and replay)
# Survey the band and decode fixed-code devices (TPMS, sensors, remotes)
rtl_433 -f 433920000 -s 1000000
# Raw capture of a fob press for manual analysis
# gqrx or rtl_sdr, tuned to 315 MHz (US) or 433.92 MHz (EU)
rtl_sdr -f 433920000 -s 2048000 capture.iq
# URH (Universal Radio Hacker) - inspect the raw capture
urh capture.iq
# In URH: identify modulation (ASK/OOK is common), determine the baud rate,
# decode the bits, then decide fixed code vs rolling code by pressing twice
# and comparing payloadsThe Digital Key Is An Identity
A phone key is not a key stored on a phone. It is a credential in a wallet, minted by an account, delivered through a platform, and withdrawable only by the party that minted it — which makes sharing and revocation an authorisation problem with an audit trail rather than a copying problem. That is the useful reframing: the answerable questions are who may mint a credential for this vehicle, what the mint is recorded against, and whether that record outlives the handset. A wallet acting for the user is a party to the decision too. Signing the account out may leave the credential valid on the device, and wiping the device leaves the issuer holding an identifier it still has to revoke. The offline interval described under sharing and revoking a digital key is the same interval seen from the account side: revocation is only as good as the vehicle's next chance to hear about it.
The ranging that makes passive entry work also produces data that outlives the door opening. BLE wake-up and the UWB measurement tell the vehicle which credential is near, at what distance, and when — a sequence of presence observations tied to one person's device. That is a location record about a person, not a radio measurement, and it is generated by a function the driver cannot switch off without giving up the feature. Whether the vehicle keeps it, for how long, and whether it ever leaves the vehicle are design questions; the conservative assumption for a review is that a unit capable of logging a ranging decision logs it, and that the log is reachable from the same diagnostic and telematics paths as everything else on the car.
A fob that does not sleep answers whenever it is interrogated, at whatever rate the vehicle polls, so from the car's point of view it is a constant transmitter with no notion of consent; the sleeping-key designs above exist precisely to break that. A phone-as-key replaces it with a BLE identity that is persistent unless the address rotates, and the rotation policy belongs to the phone platform rather than the vehicle — so the car may hold a stable handle on a device whose advertised address changes, for as long as the bond lasts. For someone trying not to be tracked by their own car the consequences are small but real: the vehicle knows when the credential was in range even when it did not unlock, and a fob in a bag is something the car, and anything else that can hear it, can count. The wider mechanics — probe requests, address randomisation, and how fixed infrastructure anchors a moving device — are on device tracking.
Receive-Only Fob Analysis
Capture, never transmit. An RTL-SDR and a fob for a vehicle you own are enough, and both exercises stop at decoding: no relay, no jamming, no re-transmission, since each of those is an offence on a licensed band and, on a car you do not own, unauthorised access. Done when two IQ captures of consecutive presses, hashed and kept, demodulate to frames that differ in one identifiable field, and you can state the band, the modulation and the bit rate you measured rather than assumed.
Evidence Collection
An RF finding is reproducible only if the receiver and the file travel with it. Record:
Band, channel and modulation: The centre frequency (315 MHz or 433.92 MHz is the common pair), the band surveyed, and the modulation identified, ASK/OOK being the usual one. Without them a capture cannot be repeated or compared with the next one.
Receiver and sample rate:
The radio (RTL-SDR, HackRF), the sample rate and the gain. rtl_sdr -f 433920000 -s 2048000 with identical parameters on both occasions is what makes two captures comparable.
Raw IQ hash:
SHA-256 of the .cu8 or .iq file, kept beside it. The radio file is the evidence; a screenshot of demodulated bits is a rendering of it.
The decoded frame: Bit length, preamble, the counter or rolling field where it is identifiable, and the payload from at least two presses. The difference between those two is the argument that the code rolls.
Distance and orientation: Where the fob and the receiver sat, at what distance, and whether the fob was moving. A capture that only works at ten centimetres is not the remote attack a report describes.
What the vehicle did: The actuator or telltale that changed, and whether the immobiliser was exercised separately. Entry without start is the ordinary case, not half a result.
False Positive Identification
- A capture of an adjacent network: 433.92 MHz carries TPMS, weather stations, doorbells and gate remotes. A frame that decodes is not automatically the vehicle you are testing: match it across presses and against the fob you own.
- Two presses that look identical: The rolling field can sit outside the bytes you decoded, or the press may not have transmitted at all. Press again, capture the whole burst, and diff the full frame rather than the payload you assumed.
- A relay claim from signal strength: Power is not distance. An amplified retransmission presents as closer, and no RSSI reading can establish or exclude a relay in either direction.
- A lock that moved for another reason: The body controller acts on its own timers: walk-away locking, a comfort close, a delayed relock. Trigger and control runs from the same position, minutes apart.
- A receiver artefact: A decoder can re-emit the same burst at a different gain. Confirm that the two frames differ in the capture file, not only in the decoder display.
- Fixed-code hardware inside the fob threat model: TPMS sensors and gate remotes transmit the same code every time by design. Their decodability says nothing about the fob, which is the only device in scope.
Capture Checklist
Before capturing
- ☐ Confirm the band from the fob or the vehicle documentation, then survey before capturing:
rtl_433 -f 433920000 -s 1000000. - ☐ Fix the fob and receiver positions at a measured distance, and write both down with the capture.
- ☐ Set the sample rate and gain once, and use the same values for every capture in the set.
- ☐ Hash the raw IQ file before opening a decoder, so the analysis can be repeated from identical bytes.
Reading the result
- ☐ Decode in URH by hand: identify modulation, bit rate and frame boundary rather than trusting an automatic decode.
- ☐ Press twice and diff the frames. The rolling field is what separates a counter from a fixed code.
- ☐ State what the vehicle did separately from what the decoder showed.
- ☐ Keep transmission, replay, relay and jamming out of the exercise: they are licensed-band transmissions and, on a car you do not own, unauthorised access.
Remediation: Bounding The Measurement
What limits this class is where the decision is bound, not which radio carries it.
Bind every decision
- • Gate driver door, other doors, boot and start on a time-of-flight measurement, not just the first decision that consults it.
- • Fit enough anchors that the number asserts presence in a seat rather than distance to two points.
- • Do not treat signal strength as a distance, and do not present a UWB fitment as covering decisions that ignore it.
Bind the credential
- • Mint a credential per recipient so revoking one holder does not depend on the others.
- • Carry the validity window and permitted features inside the credential, enforced against the vehicle clock rather than the phone.
- • Hold an allow-list in the secure element rather than a deny-list, and keep validity windows short enough to bound the offline revocation interval.
Bind the fallbacks
- • Rate-limit and lock out the PIN path, and do not reuse a PIN across valet or rental handovers.
- • Treat the flat-fob low-frequency reader, and the mechanical blade, as attack surface rather than service features.