0Pricing
Cyber Security Academy · Lesson

Capturing and Replaying Signals

Intercepting and replaying RF transmissions.

Capturing and Replaying Signals is a free Cyber Security Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

The Replay Attack Concept

A replay attack is the simplest and most common RF weakness: capture a legitimate transmission, then retransmit it later to reproduce its effect. No decryption is required if the receiver accepts the same signal twice.

This works against any device whose command is a fixed, static transmission:

  • Cheap garage door openers.
  • Basic car key fobs without rolling codes.
  • Wireless doorbells, alarm sensors, and remote outlets.
  • Some industrial remote controls for cranes and gates.

If a captured signal still works minutes or days later, the system is vulnerable by design.

Finding the Target Frequency

Before capturing, identify where the device transmits. Most consumer remotes live in ISM bands: 315 MHz (North America), 433.92 MHz (Europe and much of the world), 868 MHz, and 915 MHz.

Tune an RTL-SDR across these bands, press the remote, and watch the waterfall for a burst of energy. The FCC ID printed on a device often reveals its exact operating frequency through public regulatory filings.

# Browse the 433 MHz band live and watch the waterfall
gqrx

# Or auto-identify known devices on the air
rtl_433 -f 433.92M -A

Capturing a Transmission

Once you know the frequency, record raw I/Q samples while the device transmits. Capture a clean, isolated burst so the signal is easy to analyze and replay.

A receive-only RTL-SDR is enough for capture; transmitting later requires a HackRF or similar. Always note the exact center frequency and sample rate used, because you must replay with matching parameters.

# Capture raw I/Q at 433.92 MHz, 2 Msps
rtl_sdr -f 433.92M -s 2048000 -n 4096000 remote.iq

# Capture with HackRF for later transmit on the same hardware
hackrf_transfer -r remote.iq -f 433920000 -s 2000000

Replaying with a Transmitter

To replay, send the captured I/Q file back out on the same frequency and sample rate using transmit-capable hardware like a HackRF.

Because the receiver matches against the raw waveform, an exact retransmission reproduces the original command. Always replay inside a shielded enclosure unless you have explicit authorization and legal clearance to transmit.

# Replay the captured file with HackRF
hackrf_transfer -t remote.iq -f 433920000 -s 2000000 -x 40

# -x sets TX gain; keep it minimal and use proper antennas

Decoding Instead of Blind Replay

Blind replay works, but decoding the signal teaches you more and enables smarter attacks. Tools like Universal Radio Hacker (URH) let you demodulate the burst, recover the bitstream, and identify structure.

  • Find the preamble and sync word.
  • Determine the symbol rate and encoding (often Manchester or PWM).
  • Locate the static command payload.

Once decoded, you can craft new transmissions, fuzz fields, or confirm whether any part of the message changes between presses.

Rolling Codes and Why Replay Fails

Modern key fobs defeat naive replay with rolling codes (hopping codes). Each press uses a new code derived from a shared secret and an incrementing counter.

  • The transmitter and receiver stay synchronized via the counter.
  • A captured code is invalidated once the receiver advances past it.
  • Replaying an old code is simply rejected.

Systems like KeeLoq popularized this approach. Rolling codes raise the bar significantly, but as the next scene shows, implementation flaws still create openings.

Defeating Rolling Codes: RollJam

Rolling codes can still fall to a capture-and-jam technique, famously demonstrated as RollJam:

  • The attacker jams the receiver while simultaneously capturing the victim's first fob press on a narrow band the jammer does not cover.
  • The fob did not work, so the user presses again. The attacker captures the second code and replays the first.
  • The attacker now holds one unused, still-valid future code.

Because the receiver never saw the first code, it remains valid. This exploits the protocol's tolerance window rather than breaking the cryptography.

Rolling Code Counter Resync Abuse

Some rolling-code receivers accept codes within a resync window to tolerate accidental button presses out of range. If this window is large or poorly bounded, an attacker who captures several consecutive codes may predict or force resynchronization.

Older KeeLoq implementations also suffered from manufacturer key recovery: extracting the master key from a single fob allowed cloning entire product lines. These are implementation flaws, not failures of the rolling-code idea itself.

Jamming and Denial of Service

Jamming floods a frequency with noise so legitimate receivers cannot hear valid transmissions. It is a building block of RollJam and a denial-of-service threat in its own right.

  • Wireless alarm sensors can be jammed so a door-open event never reaches the panel.
  • Keyless entry and remote controls can be silenced.

Jamming is illegal in nearly every jurisdiction, even for testing. Demonstrate it only in a shielded lab with explicit authorization. Its relevance here is understanding how attackers combine jamming with capture, and why systems must detect signal loss.

Tooling Summary

A practical capture-and-replay workflow uses a compact toolset:

  • RTL-SDR — survey and capture (receive only).
  • HackRF One — capture and transmit for replay testing.
  • URH — demodulate, decode, and craft signals.
  • rtl_433 — quickly identify known devices.
  • Flipper Zero — convenient field capture and replay of simple sub-GHz signals.

The Flipper is popular for demonstrating replay against static-code remotes, but it is blocked by properly implemented rolling codes, which is exactly the point you want clients to understand.

Defending Against Replay

Recommendations from a replay assessment include:

  • Replace static codes with authenticated rolling codes or challenge-response.
  • Use tight, bounded resync windows and unique per-device cryptographic keys, never a shared master key.
  • Add timestamps or nonces so each command is valid only once and only briefly.
  • Implement jamming detection: alarm panels should treat sudden loss of sensor signal as a tamper event.
  • Prefer bidirectional protocols where the receiver confirms each command.

The core principle: a command that can be recorded and replayed identically is broken. Every authorized action must be cryptographically unique.

Quick Check

Test your understanding of replay attacks against rolling codes.

Recap

You can now capture, analyze, and replay RF signals and reason about their defenses:

  • A replay attack retransmits a captured static command and works against fixed-code remotes.
  • Workflow: find the frequency in the ISM bands, capture I/Q with RTL-SDR, replay with HackRF, and decode with URH.
  • Rolling codes defeat naive replay, but RollJam (capture-and-jam) and weak resync windows or shared master keys reopen the door.
  • Jamming is illegal outside shielded, authorized labs and underpins denial-of-service and RollJam attacks.
  • Defense requires authenticated, single-use commands, bounded resync, per-device keys, and jamming detection.

This completes the RF and Wireless Hacking course: from SDR fundamentals through Bluetooth, contactless, and signal replay.

Frequently asked questions

Is the “Capturing and Replaying Signals” lesson free?

Yes — the full text of “Capturing and Replaying Signals” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Capturing and Replaying Signals”?

Intercepting and replaying RF transmissions. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Capturing and Replaying Signals” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. RF and SDR Fundamentals
  2. Bluetooth and BLE Attacks
  3. RFID and NFC Security
  4. Capturing and Replaying Signals
← Back to Cyber Security Academy