Key fobs, RFID and NFC
Simulated Every waterfall, spectrum and scope on this page is a simulated training display generated in your browser from synthetic signals. Nothing here is received off air.
Car keys, garage remotes, door-entry cards and contactless payments are short-range radio systems. They are everywhere, easy to see on a spectrum analyser, and the subject of well-known attacks. This page explains the principles and the defences, so you can judge the security of systems you use or are responsible for.
Remote controls on 433 and 868 MHz
Most UK car and garage remotes transmit a short burst on 433.92 MHz (some on 868 MHz). The modulation is usually on-off keying (OOK) or simple FSK, at a few kilobits per second. On a waterfall a button press is a short, bright dash.
- Fixed code: the remote sends the same code every time. Anyone who records it can replay it. Cheap gate openers, doorbells and wireless sockets often still work this way.
- Rolling (hopping) code: each press sends a different code, produced by encrypting a counter with a key shared by the remote and the receiver (KeeLoq is a well-known example). The receiver accepts only codes ahead of the last one it saw, within a window, so a recorded code that has already been used is rejected.
- Weaknesses of rolling codes: a code that was recorded but never reached the receiver is still valid. The "RollJam" demonstration (2015) jammed the receiver while recording a press, then replayed it later. Some older schemes also had weak keys or were broken by cryptanalysis.
| # | Sent | Code on air | Receiver |
|---|
A teaching model: the "rolling code" here is a counter scrambled with a secret key, accepted if it is up to 16 presses ahead of the last one seen. Real systems differ in detail.
Keyless entry and relay attacks
Passive keyless entry (PKES) cars unlock when the key is near. The car sends a low-frequency challenge (about 125 kHz, range 1–2 metres) and the key answers on UHF. The protocol checks that the key knows the secret, but traditionally not how far away it is.
- Relay attack: two devices extend the link: one near the key (for example by a front door) and one by the car. The car hears a correct answer and unlocks. Researchers demonstrated this against many models in 2011, and it is widely used in car theft.
- Defences: keys that sleep when not moving (motion sensors), ultra-wideband (UWB) distance measurement that times the signal, a signal-blocking pouch, and turning keyless entry off.
RFID and NFC
| Band | Frequency | Typical range | Uses | Security |
|---|---|---|---|---|
| LF | 125–134 kHz | A few cm | Older door-entry fobs (for example EM4100, HID Prox), animal tags, car immobilisers | Many access fobs just send a fixed ID number and are trivially copied |
| HF / NFC | 13.56 MHz | Up to about 10 cm | Contactless bank cards, transport cards, modern door access (MIFARE DESFire), passports, phones | Ranges from broken (MIFARE Classic's Crypto-1 cipher, broken in 2008) to strong (AES-based cards, EMV payments) |
| UHF (RAIN RFID) | 865–868 MHz in Europe | Several metres | Stock control, retail tags, toll and vehicle tags | Mostly plain identifiers; designed for logistics, not security |
- How they are powered: passive tags have no battery. The reader's field powers them (inductive coupling at LF and HF; backscatter at UHF), and they answer by changing their load. This is the same principle as the illumination attacks page.
- Reading range is set by power and antenna size. Larger readers can read cards further than a door reader can, which is why card shields exist; but cryptographically protected cards still cannot simply be copied.
- Choosing a system: for access control, prefer cards with modern cryptography and mutual authentication, and avoid systems that only check a fixed ID.
Copying someone else's access card, replaying their remote, or relaying their car key without permission is an offence (for example under the Computer Misuse Act 1990, the Fraud Act 2006 and theft legislation), and jamming is an offence under the Wireless Telegraphy Act 2006. Test only equipment you own or are authorised to assess. See UK law & ethics.
Live receiver
Remotes, keyless entry and RFID as a receiver sees them. All signals are simulated.
Sources
- A. Francillon, B. Danev, S. Čapkun, "Relay Attacks on Passive Keyless Entry and Start Systems in Modern Cars" [IACR EPRINT], NDSS 2011.
- F. D. Garcia et al., "Dismantling MIFARE Classic", ESORICS 2008; background in Wikipedia, MIFARE [WIKIPEDIA].
- S. Kamkar, "Drive It Like You Hacked It" (RollJam), DEF CON 23, 2015.
- Wikipedia, Rolling code [WIKIPEDIA] and KeeLoq [WIKIPEDIA].
References, standards and the open-source software used to generate and verify the signals on this page are listed on Sources & credits.
Cite this resource
Harvard (UK) and BibTeX citations for this page are generated here when JavaScript is enabled.