rolling code

term

securitycryptographyhacking

Kept in this browser · My desk

A remote-control and key-fob scheme in which each button press sends a different code, typically an encrypted counter, so that a recorded transmission cannot simply be replayed; also called a hopping code.

In Microchip's KeeLoq HCS301 encoder, each press produces a 66-bit code word: a 32-bit hopping code holding a 16-bit counter and the buttons, encrypted with a 64-bit key, plus a 28-bit serial number and status bits in clear. Because people press buttons out of range, the receiver accepts a window: up to 16 codes ahead at once, up to 32K codes ahead after a second sequential press, and nothing already used. The underlying United States patent 5,517,187 names Frederick Bruwer, Willem Smit and Gideon Kuhn as inventors and Nanoteq of South Africa as original assignee, with a 1990 priority date.

How it fell. Cryptanalysis broke KeeLoq in 2007 and, practically, at Eurocrypt 2008, where one key-derivation scheme was shown to leak the master secret from a single key; differential power analysis at CRYPTO 2008 cloned remotes from ten power traces and extracted manufacturer keys. Samy Kamkar's RollJam (DEF CON 23, 2015) jammed and captured two presses, replayed the first and kept the second. Rolling-PWN (CVE-2021-46145) and RollBack (2022) abused counter resynchronization so that old codes worked again. Defences. Codes that expire, authenticated actions, per-device keys and two-way challenge and response; Microchip's Ultimate KeeLoq is a timer-based design with AES-128.

Also known as: rolling codes, hopping code, hopping codes, code hopping, keeloq, rolljam, código rolante, código saltitante, codigo rolante

← Back to R Back to the glossary