Bluetooth Rfid Nfc 标志

Bluetooth Rfid Nfc

社区
brucesongs
bluetooth-rfid-nfc

Near-field wireless penetration testing skills covering Bluetooth Classic device enumeration and exploitation, BLE GATT service attacks against IoT devices, RFID card cloning (MIFARE Classic/DESFire), NFC tag manipulation, and contactless payment probing.

Add to TypingMind

概览

发布者brucesongs
代码仓库kali-claw
技能名称bluetooth-rfid-nfc
星标数
70
复刻数
18
附带文件
12
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 12 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 brucesongs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Bluetooth Rfid Nfc AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/brucesongs/kali-claw/tree/main/skills/bluetooth-rfid-nfc
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brucesongs/kali-claw.git /tmp/kali-claw
mkdir -p .claude/skills
cp -r /tmp/kali-claw/skills/bluetooth-rfid-nfc .claude/skills/bluetooth-rfid-nfc
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Bluetooth Rfid Nfc,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Bluetooth Rfid Nfc。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Bluetooth Rfid Nfc 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Bluetooth, RFID & NFC Security

Supplementary Files:

  • payloads.md — Attack commands and payloads categorized by Bluetooth Reconnaissance, Bluetooth Exploitation, BLE GATT Attacks, RFID/NFC Card Operations, and NFC Tag Operations
  • test-cases.md — Structured test case list (8 scenarios covering Bluetooth, BLE, RFID, NFC attacks with severity levels)

Summary

Bluetooth Rfid Nfc skill domain covering wireless operations.

Tools: spooftooph, redfang, bluelog, btscanner, bluehydra, crackle, ubertooth-tools, gatttool (+5 more)

Domain: wireless

MITRE ATT&CK: TA0046-Initial Access

Description

Near-field wireless penetration testing skills covering Bluetooth Classic device enumeration and exploitation, BLE GATT service attacks against IoT devices, RFID card cloning (MIFARE Classic/DESFire), NFC tag manipulation, and contactless payment probing. Built on the BlueZ stack, Ubertooth hardware sniffing, and Proxmark3 RFID toolkit.

Core Principle: Bluetooth Legacy Pairing uses a static link key derivable from the PIN and unit key; BLE Legacy Pairing (Just Works) provides no man-in-the-middle protection; MIFARE Classic uses the proprietary CRYPTO1 cipher with known vulnerabilities enabling key recovery in minutes.

Use Cases

  1. Bluetooth IoT Device Audit - Assess smart locks, medical devices, fitness trackers, and industrial BLE sensors for unauthorized access and data leakage
  2. RFID Access Control Testing - Evaluate physical security of building access cards (MIFARE, HID iCLASS) for cloning and replay attacks
  3. NFC Payment Security Assessment - Test contactless payment terminal and card implementations for relay attacks and transaction manipulation
  4. Red Team Wireless Entry Point - Exploit Bluetooth or BLE vulnerabilities as an initial access vector into target environments (smart device pivot)
  5. Wireless Device Fingerprinting - Enumerate and catalog all Bluetooth/BLE devices in a facility for asset inventory and rogue device detection
  6. Badge Cloning for Physical Penetration - Clone RFID/NFC badges to bypass building access controls during physical security assessments

Core Tools

ToolPurposeCommand Example
spooftoophBluetooth device identity spoofing (name, class, MAC)spooftooph -i hci0 -a XX:XX:XX:XX:XX:XX -n "TargetPhone"
redfangDiscover non-discoverable Bluetooth devices via brute forceredfang -r 00:00:00:00:00:00 -s XX:XX:XX:XX:XX:XX
bluelogBluetooth device scanner with automated loggingbluelog -i hci0 -o /tmp/bt_scan.log
btscannerInteractive Bluetooth device information gatheringbtscanner -i hci0
bluehydraContinuous Bluetooth/BLE device monitoring and trackingsudo bluehydra -i hci0 -d /tmp/bluehydra
crackleBLE Legacy Pairing encryption cracking (LK decryption)crackle -i ble_capture.pcap -o decrypted.pcap
ubertooth-toolsBluetooth BR/EDR and BLE promiscuous sniffingubertooth-btle -f -c /tmp/ble_sniff.pcap
gatttoolBLE GATT service enumeration and characteristic R/Wgatttool -b XX:XX:XX:XX:XX:XX --characteristics
proxmark3RFID/NFC universal transceiver (read/clone/emulate)proxmark3-client -c "hf search"
mfocMIFARE Classic offline key recovery (nested attack)mfoc -P 500 -O card_dump.mfd
mfcukMIFARE Classic offline key recovery (darkside attack)mfcuk -C -R 0:A -s 250 -S 5 -v 3
libnfcNFC device enumeration and tag operationsnfc-list && nfc-mfclassic r a card.mfd /dev/ttyUSB0
blescanBLE device scanning using BlueZ (Python-based)blescan -i hci0 -t 30 -o ble_results.json

Methodology

Attack Chain

1. Device Discovery      -> Active/passive scanning (bluelog, blescan, redfang)
2. Target Selection       -> Evaluate device type, signal strength, services advertised
3. Protocol Fingerprint   -> Identify Bluetooth version, pairing method, service profiles
4. Service Enumeration    -> GATT service/characteristic mapping (gatttool, ubertooth-tools)
5. Exploitation
   +-- BT Classic         -> Identity spoofing (spooftooph), PIN brute force, pairing hijack
   +-- BLE                -> GATT R/W attacks, encryption cracking (crackle), MITM
   +-- RFID/NFC           -> Key recovery (mfoc/mfcuk), card cloning (proxmark3), emulation
6. Post-Exploitation      -> Persistent access via cloned badge or spoofed device identity

Key Decision Points:

  • Bluetooth Classic non-discoverable -> Use redfang for brute-force discovery
  • BLE device with GATT services -> Enumerate with gatttool, test for unauthenticated read/write
  • BLE Legacy Pairing captured -> Crack with crackle for link key recovery
  • MIFARE Classic card -> Use mfoc (nested) first; if single known key needed, use mfcuk (darkside)
  • Unknown card type -> Use proxmark3 hf search to auto-detect card technology

Attack Phases

PhaseBluetoothBLERFID/NFC
Reconredfang, bluelog, btscanner, bluehydrablescan, ubertooth-btleproxmark3 hf search, nfc-list
Enumsdptool, btscannergatttool, blescanproxmark3 hf mf info, mfoc
Attackspooftooph, PIN brutecrackle, gatttool R/Wmfoc, mfcuk, proxmark3 clone
PersistSpoofed identityExtracted encryption keyCloned/emulated card

Defense Perspective

Attack VectorDefense Measure
Bluetooth Device DiscoveryDisable discoverable mode, use LE Secure Connections (BLE 4.2+)
BLE Legacy Pairing CrackingUse LE Secure Connections with authenticated pairing (OOB or numeric comparison)
BLE GATT Unauthorized AccessImplement proper authentication on sensitive characteristics, use bonded connections
RFID Card Cloning (MIFARE Classic)Upgrade to MIFARE DESFire (AES-128), use diversified keys
NFC Relay AttacksImplement distance bounding protocols, transaction timeouts
Bluetooth SpoofingEnable Secure Simple Pairing with MITM protection, disable legacy pairing
Proxmark3 EmulationDeploy card-specific challenge-response sequences, use dynamic card numbers

Security Configuration Priority: MIFARE DESFire EV2/EV3 > MIFARE Classic (fully randomized keys) > BLE Secure Connections > BLE Legacy Pairing > Bluetooth Classic SSP without MITM protection

Practical Steps

Detailed payloads in payloads.md, complete test checklist in test-cases.md.

Quick Reference

  1. Bluetooth Scan -- bluelog -i hci0 -o scan.log or btscanner -i hci0
  2. BLE Discovery -- blescan -i hci0 -t 30 or sudo hcitool lescan
  3. GATT Enum -- gatttool -b XX:XX:XX:XX:XX:XX -I then connect and primary
  4. BLE Crack -- crackle -i capture.pcap -o decrypted.pcap
  5. MIFARE Key Recovery -- mfoc -P 500 -O dump.mfd or mfcuk -C -R 0:A -v 3
  6. Card Clone -- proxmark3-client -c "hf mf clone --uid TARGET_UID"

Common Pitfalls

  • Missing Ubertooth hardware for BLE sniffing: Software-only BLE sniffing (hcitool lescan) only captures advertisement packets, not connection data. Full BLE traffic capture requires Ubertooth One or similar dedicated sniffer hardware for promiscuous mode. Plan hardware procurement before BLE assessments.
  • Assuming BLE pairing equals encryption: BLE Legacy Pairing (Just Works) generates a link key using a temporary key that is transmitted in the clear. Capturing the pairing exchange with Ubertooth allows offline decryption with crackle in seconds. Always verify which pairing method the target uses.
  • Ignoring MIFARE Classic key diversification: Well-configured systems use diversified keys (unique per card) rather than a single global key. mfoc requires at least one known key to start the nested attack. If all sector keys are diversified, mfoc will fail and mfcuk (darkside) may be the only option, which is much slower.
  • Bluetooth range underestimation: Class 1 Bluetooth devices (100m range) can be targeted from significant distances, especially with directional antennas. Class 2 (10m) and Class 3 (1m) devices require close proximity, which may not be practical during covert assessments.
  • RFID frequency mismatch: Not all RFID readers support all frequencies. Low-frequency (125 kHz) and high-frequency (13.56 MHz) cards require different hardware. Verify target card frequency before selecting tools -- proxmark3 supports both, but standalone tools like mfoc only work with 13.56 MHz MIFARE cards.

Automation and Scripting

Automate Bluetooth assessments with bluehydra for continuous device monitoring and tracking, piping device discoveries into spooftooph for automated identity cloning. Use Python with pygatt or bluepy libraries to script BLE GATT enumeration and characteristic fuzzing across multiple devices simultaneously. For RFID, wrap proxmark3-client commands in shell scripts to batch-read and clone cards, or use the proxmark3 Lua scripting engine for custom attack sequences. Schedule bluehydra scans during business hours to build a complete device map of the target environment.

Reporting and Documentation

Bluetooth/RFID reports should include a complete device inventory with MAC address, device name, device class, signal strength, discovered services, and identified vulnerabilities. For BLE assessments, document the full GATT service map with all handles, UUIDs, and their read/write permissions. RFID reports must specify card type, UID, key recovery method, time required, and whether cloning was successful. Include specific remediation recommendations: disable legacy pairing, upgrade card technology, implement distance bounding. Attach raw capture files (pcap for Bluetooth, mfd/bin for RFID) as evidence.

Legal and Ethical Considerations

Bluetooth and RFID testing often involves devices you do not own -- smart locks, payment terminals, access control systems, and personal devices. Only scan and test devices within your authorized scope. Passive Bluetooth scanning in public spaces may be legal in some jurisdictions but actively probing or attempting to connect to devices without authorization is typically illegal. RFID card cloning for access control systems requires explicit written authorization from the system owner. Never attempt to clone payment cards or government-issued IDs, as this violates federal law in most jurisdictions regardless of authorization scope.

Integration with Other Tools

Bluetooth/BLE findings often connect to IoT device exploitation -- after identifying a vulnerable BLE device, use the extracted credentials or keys to access associated cloud services or mobile application APIs. RFID/NFC access card cloning leads directly into physical penetration testing: a cloned badge provides building access for planting rogue devices (network-pentest) or social engineering operations. Bluetooth device spoofing can be combined with wifi-pentest for multi-vector wireless assessments targeting both WiFi and Bluetooth entry points simultaneously.

Case Studies and Examples

  • BLE smart lock bypass: During a smart home assessment, gatttool enumeration revealed an unprotected write characteristic on the lock service handle. Writing a single byte (0x01) to handle 0x0025 unlocked the door without authentication. The vendor had not implemented any authorization check on the GATT write operation.
  • MIFARE Classic corporate badge clone: A Fortune 500 company used MIFARE Classic cards for building access. mfoc recovered all sector keys in 3 minutes using the well-known default key (0xA0A1A2A3A4A5) on sector 0. The card was fully dumped and cloned onto a blank MIFARE Classic card using proxmark3, granting unrestricted building access.
  • BLE fitness tracker data leakage: An unauthenticated gatttool connection to a fitness tracker exposed heart rate, step count, GPS coordinates, and user profile data through readable GATT characteristics. No encryption or authentication was required to access any data on the device.

Detection Methods

Bluetooth intrusion detection monitors for: rapid inquiry scans from a single source (scanning for non-discoverable devices), unexpected pairing attempts (especially with legacy pairing), characteristic read/write operations on protected services, and cloned device MAC addresses appearing simultaneously in different locations. RFID/NFC detection systems monitor for: proxmark3 or similar SDR-based reader emulation signals, repeated authentication failures indicating key recovery attempts, and cloned card UIDs authenticating from geographically impossible locations. Deploy BLE monitoring solutions like blue_hydra or internal BLE beacons to detect rogue devices.

Advanced Techniques

Advanced Bluetooth testing includes: Ubertooth promiscuous sniffing of encrypted BLE connections when the pairing exchange was captured, BtleJuice or GATTacker MITM proxy attacks requiring dual BLE adapters, and proxmark3 relay attacks against NFC payment systems using two devices separated by distance. For RFID, explore MIFARE DESFire side-channel attacks, SAM (Security Access Module) key extraction, and ISO 15693 long-range reading. For BLE, investigate KNOB (Key Negotiation of Bluetooth) attack to force entropy reduction on the encryption key, and BLESA (BLE Spoofing Attack) to inject fabricated data into reconnected BLE sessions.

Tool Comparison Matrix

ToolBest ForCoverageSkill Level
spooftoophBT Classic identity spoofingNarrow (Classic only)Intermediate
redfangNon-discoverable BT discoveryNarrow (Classic only)Beginner
bluehydraContinuous BT/BLE monitoringBroad (Classic + BLE)Intermediate
crackleBLE encryption crackingNarrow (Legacy Pairing)Intermediate
ubertooth-toolsFull BT/BLE traffic captureVery broad (BR/EDR + BLE)Advanced
gatttoolBLE GATT service explorationNarrow (BLE only)Beginner
proxmark3RFID/NFC universal operationsVery broad (all RFID/NFC)Advanced
mfocMIFARE Classic key recoveryNarrow (MIFARE Classic)Intermediate
mfcukMIFARE Classic darkside attackNarrow (MIFARE Classic)Intermediate
libnfcNFC device operationsBroad (13.56 MHz NFC)Intermediate

Defense Evasion Techniques

Bluetooth Stealth

  • MAC address randomization: Modern mobile devices randomize MAC; attacker mimics this pattern.
  • Reduce TX power: Lower transmission power to reduce detection range.
  • Frequency hopping sync: Mimic legitimate BLE advertising pattern; avoid continuous transmission.
  • Use legitimate Bluetooth names: Mimic common device names (AirPods, Galaxy Buds).
  • Active scanning avoidance: Use passive scanning where possible; no probe requests emitted.

RFID / NFC Stealth

  • Ultra-low-power operation: Read at close range only; avoid long-range detection.
  • Frequency hopping: Switch between 125kHz / 13.56MHz / 900MHz to evade specific detectors.
  • Use legitimate reader signatures: Mimic commercial reader (Proxmark, Flipper) patterns.
  • Directional antennas: Limit RF footprint to target only.

Relay Attack Stealth

  • Signal strength matching: Use signal attenuators to mimic legitimate device proximity.
  • Time-of-flight manipulation: Pre-compute relay latency; compensate to avoid ToF detection.
  • Use multiple relay hops: Distribute relay across multiple devices; reduces per-hop pattern.

Rolling Code Exploitation Stealth

  • Single capture: Capture rolling code once; replay at predictable time (e.g., owner's typical arrival).
  • Force next code: Jam + capture next code; user re-presses fob; second capture is "free".
  • Use SDR off-hours: SDR scans during low-activity windows; reduces detection.

Wireless Covert Channels

  • Bluetooth audio exfil: Encode exfil data in audio packets; appears as media stream.
  • BLE beacon abuse: Use BLE advertising packets for low-bandwidth exfil.
  • NFC tag hijacking: Write exfil data to legitimate NFC tags (transit cards, etc.).

Performance and Remediation

Bluetooth attack performance depends on signal strength, interference, and hardware capability. Class 1 devices at close range with minimal 2.4 GHz interference produce the most reliable results. BLE pairing capture requires catching the exact moment of pairing -- position Ubertooth close to the target device and trigger a re-pair. MIFARE Classic key recovery with mfoc typically completes in 2-15 minutes with a good antenna, while mfcuk darkside attack can take 30+ minutes. Proxmark3 with the RDV4 antenna provides the best RFID read range and clone reliability.

Prioritize remediation by impact: immediately upgrade all MIFARE Classic access cards to MIFARE DESFire EV2+, disable Bluetooth legacy pairing on all devices, enforce BLE Secure Connections with authenticated pairing for IoT devices, implement distance bounding for NFC payment systems, and deploy continuous Bluetooth monitoring (bluehydra) to detect rogue devices.

Hacker Laws

LawBluetooth/RFID Scenario Application
Minimize Attack SurfaceDisable Bluetooth discoverable mode when not in use, require authentication on all GATT characteristics
First PrinciplesUnderstand CRYPTO1 cipher weaknesses (LFSR state recovery) and BLE Legacy Pairing temporary key derivation to design targeted attacks
Obscurity Is Not SecurityNon-discoverable Bluetooth devices are still detectable via redfang; unknown RFID card types can be identified by proxmark3 auto-detection
Trust but VerifyVerify BLE pairing actually uses Secure Connections (check auth requirements in GATT); test that MIFARE keys are diversified rather than using defaults

Learning Resources

External Recommendations

  • Books: "Inside Bluetooth Low Energy" (Naik), "The Hacker's Guide to NFC Contactless Attacks" (Garcia et al.)
  • Online Courses: Udemy Bluetooth Hacking, Pentester Academy Wireless & IoT Security
  • Lab Environments: Proxmark3 Easy (budget RFID lab), Ubertooth One (BLE sniffing), ESP32-BLE-CTF (BLE capture-the-flag)
  • Tool Documentation: proxmark.com, greatscottgadgets.com/ubertooth, bluez.org

Legal Disclaimer: Only conduct testing on devices and systems you own or have explicit authorization to test. Unauthorized Bluetooth scanning, RFID card cloning, and NFC manipulation are illegal in most jurisdictions. RFID payment card cloning is a federal offense regardless of authorization scope.


This skill's supplementary files: payloads.md, test-cases.md, guides/bluetooth-device-recon.md, guides/ble-gatt-attack.md, guides/rfid-nfc-clone.md Related skills: skills/wifi-pentest/SKILL.md, skills/hardware-security/SKILL.md, skills/post-exploitation/SKILL.md External resources: bluez.org, proxmark.com, greatscottgadgets.com/ubertooth

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Bluetooth Rfid Nfc AI 技能有什么作用?

Near-field wireless penetration testing skills covering Bluetooth Classic device enumeration and exploitation, BLE GATT service attacks against IoT devices, RFID card cloning (MIFARE Classic/DESFire), NFC tag manipulation, and contactless payment probing.

为什么在 TypingMind 中使用 Bluetooth Rfid Nfc?

因为您只需安装一次,就能搭配任何模型使用。Bluetooth Rfid Nfc 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Bluetooth Rfid Nfc?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/brucesongs/kali-claw/tree/main/skills/bluetooth-rfid-nfc。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Bluetooth Rfid Nfc?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Bluetooth Rfid Nfc 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Bluetooth Rfid Nfc 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Bluetooth Rfid Nfc AI 技能免费吗?

是的。brucesongs 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇