Unlocking Vehicles by Brute Forcing Rolling Code Systems
Where
Car Hacking Village
DEF CON 34
Duration
27 min
Shows how a popular aftermarket rolling code key fob system can be reverse engineered, rolled back and brute forced to clone a vehicle key.
Summary
The talk examines an aftermarket rolling code key fob system used by many vehicles to prevent cloning. The researcher sorts key fob schemes into fixed, learning and rolling designs, then records a fob and decodes its amplitude-keyed radio signal. The frame turns out to hold several counters and a short random value sent in plain text rather than encrypted. Mapping how each counter advances gives the full frame layout.
Next, the talk moves from passive capture to active testing. The random field is only six bits, so guessing it is quick once the layout is known. A rollback weakness in the resynchronization logic lets an attacker move the receiver's counter window back to older values. Combined with brute forcing, demonstrations unlock a car in under a minute, and one sniffed code plus the rollback is enough to clone a fob. Observed responses from the receiver microcontroller are used to reconstruct its validation logic.
Three or four CVEs were assigned in 2026 after coordinated disclosure. The speaker reports similar algorithms in other aftermarket fobs and traces how parts pass through distributors in Latin America whose staff often cannot name the manufacturer. The takeaway for practitioners is that a rolling counter alone is not sufficient: counter window size, resync rules and random-value entropy must be tested directly.
Materials
Related talks
Main Stage·43 min
Zhenghan Wang · Yang Liu
Shows how TTLock's offline time checks in white-label smart locks can be bypassed, letting expired electronic keys open doors again.
Car Hacking Village·25 min
Robbie Galfrin
Dissects a commercially sold keyless-entry relay tool, showing how it stretches key fob radio signals across distance to unlock and start a car.
Main Stage·40 min
Alejandro Hernando · Borja Martin
Shows how a USB device, or one forged over RDP, can make Windows Plug and Play run vendor installer code as SYSTEM, using chained low-severity flaws.


