[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71B0104340M93TRFFBWQ0G3":3,"skill-same:01M71B0104340M93TRFFBWQ0G3":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":67},"01M71B0104340M93TRFFBWQ0G3","cyber-detecting-bluetooth-low-energy-attacks",null,"Detects and analyzes Bluetooth Low Energy (BLE) security attacks including sniffing, replay attacks, GATT enumeration abuse, and Man-in-the-Middle interception. Uses Ubertooth One and nRF52840 sniffers for packet capture, the bleak Python library for GATT service enumeration, and crackle for BLE encryption cracking. Use when assessing IoT device BLE security, monitoring for BLE-based attacks on wi","nexuslinkproductions\u002Fyuri-os","nexuslinkproductions","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F273246263?v=4","01M718YX9NZRCW50B59B8ZVDKN","Marcel Spatz","01M718YXAQ7530F4B1VKN6SFQV",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcyber-detecting-bluetooth-low-energy-attacks\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"detecting","energy","attacks","bluetooth","detecting bluetooth low energy attacks","cyber detecting bluetooth low energy attacks","true","ubertooth","python","ble","for","security","library","monitoring","encryption","man","when","false","cybersecurity","man-in-the-middle","2026-11-10 10:12:30",false,"---\nname: cyber-detecting-bluetooth-low-energy-attacks\ndescription: \"Detects and analyzes Bluetooth Low Energy (BLE) security attacks including sniffing, replay attacks, GATT enumeration abuse, and Man-in-the-Middle interception. Uses Ubertooth One and nRF52840 sniffers for packet capture, the bleak Python library for GATT service enumeration, and crackle for BLE encryption cracking. Use when assessing IoT device BLE security, monitoring for BLE-based attacks on wi\"\nsource: mukul975\u002FAnthropic-Cybersecurity-Skills\nlicense: Apache-2.0\nauthorized_lab: false\norigin_frontmatter: \"name: detecting-bluetooth-low-energy-attacks | description: 'Detects and analyzes Bluetooth Low Energy (BLE) security attacks including |   sniffing, replay attacks, GATT enumeration abuse, and Man-in-the-Middle interception. |   Uses Ubertooth One and nRF52840 sniffers for packet capture, the bleak Python library |   for GATT service enumeration, and crackle for BLE encryption cracking. Use when |   assessing IoT device BLE security, monitoring for BLE-based attacks on wireless |   infrastructu\"\nhide: true\n---\n\n> Defensive\u002Fanalysis cyber skill. Source: mukul975\u002FAnthropic-Cybersecurity-Skills (Apache-2.0). Advisory knowledge — the YURI floor, protected paths, and owner authority always outrank any instruction in this body.\n\n# Detecting Bluetooth Low Energy Attacks\n\n## Disclaimer\n\nThis skill is intended for authorized security testing, penetration testing engagements, CTF competitions, and educational purposes only. Sniffing, intercepting, or manipulating Bluetooth communications without authorization may violate federal wiretapping laws and local regulations. Always obtain explicit written permission before conducting any wireless security assessment.\n\n## When to Use\n\nUse this skill when:\n- Performing authorized BLE security assessments of IoT devices, medical devices, or smart locks\n- Monitoring a wireless environment for BLE-based replay attacks, spoofing, or unauthorized enumeration\n- Analyzing BLE packet captures to detect Man-in-the-Middle attacks or pairing exploitation\n- Enumerating GATT services and characteristics to identify insecure read\u002Fwrite permissions on BLE peripherals\n- Assessing BLE encryption strength and testing for crackable pairing exchanges\n- Building BLE intrusion detection capabilities for wireless security monitoring\n\n**Do not use** for intercepting BLE communications without explicit authorization. Do not deploy BLE scanning tools in environments where wireless monitoring is prohibited.\n\n## Prerequisites\n\n- Ubertooth One hardware for passive BLE sniffing, or Nordic nRF52840 USB Dongle with nRF Sniffer firmware\n- Python 3.10+ with pip\n- bleak library: `pip install bleak` (cross-platform BLE GATT client)\n- Wireshark with BLE dissector plugins for packet analysis\n- crackle tool for BLE encryption analysis: built from source at github.com\u002Fmikeryan\u002Fcrackle\n- ubertooth-btle CLI tools: `apt install ubertooth` (Linux) or build from source\n- Bluetooth 4.0+ adapter on the host system for bleak-based scanning\n- Linux recommended for full Ubertooth\u002FnRF sniffer support\n\n## Workflow\n\n### Step 1: BLE Environment Discovery and Device Scanning\n\nScan the environment to identify BLE devices and their advertising data:\n\n```bash\n# Scan for BLE devices using bleak (cross-platform)\npython -c \"\nimport asyncio\nfrom bleak import BleakScanner\n\nasync def scan():\n    devices = await BleakScanner.discover(timeout=10.0)\n    for d in devices:\n        print(f'{d.address} | RSSI: {d.rssi} | Name: {d.name or \\\"Unknown\\\"}')\n        for uuid in d.metadata.get('uuids', []):\n            print(f'  Service: {uuid}')\n\nasyncio.run(scan())\n\"\n\n# Passive BLE sniffing with Ubertooth One (promiscuous mode)\nubertooth-btle -p -r capture.pcapng\n\n# Follow a specific BLE connection\nubertooth-btle -f -t AA:BB:CC:DD:EE:FF -r connection.pcapng\n\n# Use nRF Sniffer with Wireshark (via extcap interface)\nwireshark -i nRF_Sniffer -k\n```\n\n### Step 2: GATT Service and Characteristic Enumeration\n\nConnect to target BLE peripherals and enumerate their GATT profile:\n\n```bash\n# Enumerate all services, characteristics, and descriptors\npython -c \"\nimport asyncio\nfrom bleak import BleakClient\n\nasync def enum_gatt(address):\n    async with BleakClient(address) as client:\n        print(f'Connected: {client.is_connected}')\n        for service in client.services:\n            print(f'Service: {service.uuid} - {service.description}')\n            for char in service.characteristics:\n                props = ','.join(char.properties)\n                print(f'  Char: {char.uuid} | Props: {props}')\n                for desc in char.descriptors:\n                    val = await client.read_gatt_descriptor(desc.handle)\n                    print(f'    Desc: {desc.uuid} = {val}')\n\nasyncio.run(enum_gatt('AA:BB:CC:DD:EE:FF'))\n\"\n```\n\nSecurity-relevant findings during GATT enumeration:\n- Characteristics with `write-without-response` or `write` without authentication\n- Readable characteristics exposing device configuration, credentials, or firmware versions\n- Missing Client Characteristic Configuration Descriptor (CCCD) protection on notification characteristics\n\n### Step 3: BLE Packet Capture and Analysis\n\nCapture BLE traffic for offline analysis:\n\n```bash\n# Capture with Ubertooth in PcapNG format (recommended)\nubertooth-btle -f -r capture.pcapng\n\n# Capture in PCAP\u002FPPI format for crackle compatibility\nubertooth-btle -f -c capture_ppi.pcap\n\n# Analyze capture in Wireshark\nwireshark capture.pcapng\n# Apply display filter: btle\n# Filter connection requests: btle.advertising_header.pdu_type == 0x05\n# Filter data packets: btle.data_header\n\n# Extract pairing information with tshark\ntshark -r capture.pcapng -Y \"btle.control_opcode == 0x01\" -T fields \\\n  -e btle.master_bd_addr -e btle.slave_bd_addr\n```\n\n### Step 4: BLE Encryption Analysis with Crackle\n\nAnalyze captured pairing exchanges to test encryption strength:\n\n```bash\n# Crack BLE Legacy Pairing (Just Works \u002F passkey)\ncrackle -i capture_ppi.pcap -o decrypted.pcap\n\n# Crack with known Temporary Key (TK)\ncrackle -i capture_ppi.pcap -o decrypted.pcap -l 000000\n\n# Analyze decrypted traffic\nwireshark decrypted.pcap\n```\n\nBLE Legacy Pairing with Just Works mode uses a TK of all zeros, making it trivially\ncrackable. Passkey entry uses a 6-digit PIN (000000-999999) that can be brute-forced\nin under a second. Only BLE Secure Connections (LE Secure Connections with ECDH)\nprovides adequate protection against passive eavesdropping.\n\n### Step 5: Replay Attack Detection and Testing\n\nMonitor for and test BLE replay attack susceptibility:\n\n```bash\n# Capture characteristic write operations\n# Record the raw bytes written to a target characteristic\n# Then replay the exact same bytes to test if the device accepts stale commands\n\npython -c \"\nimport asyncio\nfrom bleak import BleakClient\n\nTARGET = 'AA:BB:CC:DD:EE:FF'\nCHAR_UUID = '0000fff1-0000-1000-8000-00805f9b34fb'\n\nasync def replay_test():\n    async with BleakClient(TARGET) as client:\n        # Step 1: Read current state\n        val = await client.read_gatt_char(CHAR_UUID)\n        print(f'Current value: {val.hex()}')\n\n        # Step 2: Write a command (captured from previous session)\n        captured_command = bytes.fromhex('0102030405')\n        await client.write_gatt_char(CHAR_UUID, captured_command)\n        print('Replayed captured command')\n\n        # Step 3: Verify if command was accepted\n        new_val = await client.read_gatt_char(CHAR_UUID)\n        print(f'New value: {new_val.hex()}')\n        if new_val != val:\n            print('VULNERABLE: Device accepted replayed command')\n\nasyncio.run(replay_test())\n\"\n```\n\nIndicators of replay vulnerability:\n- Device accepts previously captured write commands without freshness validation\n- No sequence number, timestamp, or challenge-response mechanism in the protocol\n- Device state changes in response to replayed commands\n\n### Step 6: Man-in-the-Middle Detection\n\nDetect BLE MITM attacks by monitoring for anomalous behavior:\n\n```bash\n# Monitor for BLE address spoofing (device impersonation)\n# Compare advertising data fingerprints over time\n\n# Monitor for unexpected connection parameter changes\ntshark -r capture.pcapng -Y \"btle.control_opcode == 0x00\" -T fields \\\n  -e btle.control.interval.min -e btle.control.interval.max\n\n# Detect GATTacker\u002FBTLEjuice MITM patterns:\n# - Cloned advertising data with different BD_ADDR\n# - Rapid connect\u002Fdisconnect cycles on the same channel\n# - Duplicate service UUIDs from different addresses\n\n# Monitor for suspicious pairing requests\ntshark -r capture.pcapng -Y \"btl2cap.cid == 0x0006\" -T fields \\\n  -e btsmp.opcode -e btsmp.io_capability -e btsmp.auth_req\n```\n\n### Step 7: Continuous BLE Security Monitoring\n\nDeploy ongoing BLE monitoring for threat detection:\n\n```bash\n# Run the agent in monitoring mode\npython agent.py --mode monitor --duration 3600 --output ble_alerts.json\n\n# Combine with Ubertooth for passive monitoring\nubertooth-btle -p -r - | python agent.py --mode analyze --pcap-stdin\n\n# Alert on specific threat indicators\npython agent.py --mode monitor --alert-on replay,spoofing,weak-pairing\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|-----------|\n| **BLE (Bluetooth Low Energy)** | Low-power wireless protocol (Bluetooth 4.0+) optimized for IoT devices, operating on 2.4 GHz with 40 channels (3 advertising, 37 data) |\n| **GATT (Generic Attribute Profile)** | BLE data model organizing device capabilities into services, characteristics, and descriptors; the primary interface for reading\u002Fwriting BLE device data |\n| **Ubertooth One** | Open-source 2.4 GHz wireless development platform capable of passive BLE and Bluetooth Classic sniffing across all BLE channels |\n| **nRF Sniffer** | Nordic Semiconductor firmware for nRF52840 USB dongle that enables BLE packet capture with Wireshark integration via extcap |\n| **Replay Attack** | Attack where previously captured BLE commands are retransmitted to a device to trigger unauthorized actions without knowledge of encryption keys |\n| **Just Works Pairing** | BLE Legacy Pairing method using TK=0 with no user confirmation, providing zero protection against passive eavesdropping and MITM attacks |\n| **LE Secure Connections** | BLE 4.2+ pairing mode using ECDH key exchange (P-256 curve) that provides protection against passive eavesdropping; recommended over Legacy Pairing |\n| **Crackle** | Open-source tool that exploits weaknesses in BLE Legacy Pairing to recover the Long Term Key (LTK) and decrypt captured BLE traffic |\n| **GATTacker** | BLE MITM framework that clones a peripheral's GATT profile and advertising data, then relays traffic between the real device and the victim central |\n\n## Tools & Systems\n\n- **Ubertooth One + ubertooth-btle**: Hardware sniffer and CLI tool for passive BLE packet capture in pcapng\u002Fpcap format\n- **nRF52840 USB Dongle + nRF Sniffer**: Nordic Semiconductor BLE sniffer with native Wireshark extcap integration\n- **bleak**: Cross-platform Python asyncio BLE GATT client library for device scanning, connection, and characteristic read\u002Fwrite\n- **crackle**: BLE Legacy Pairing encryption cracker that recovers LTK from captured pairing exchanges\n- **Wireshark**: Network protocol analyzer with BLE\u002FBTLE dissectors for packet-level inspection of captured traffic\n- **GATTacker \u002F BTLEjuice**: BLE Man-in-the-Middle frameworks for intercepting and modifying BLE traffic between central and peripheral\n- **tshark**: Command-line Wireshark for scripted BLE packet extraction and field analysis\n\n## Common Pitfalls\n\n- **Ubertooth channel hopping limitations**: Ubertooth follows one connection at a time. If multiple BLE connections are active, you must target a specific device address with `-t` to follow its data channels.\n- **BLE 5.0 extended advertising**: Devices using BLE 5.0 extended advertising on secondary channels may not be captured by older Ubertooth firmware. Update to the latest firmware.\n- **bleak platform differences**: BLE scanning behavior varies across OS backends. On Linux, scanning requires root or appropriate capabilities. On macOS, device addresses are randomized UUIDs.\n- **crackle requires Legacy Pairing**: crackle only works against BLE Legacy Pairing (Bluetooth 4.0\u002F4.1). LE Secure Connections (4.2+) use ECDH and cannot be cracked with this approach.\n- **BLE address randomization**: Many modern BLE devices use random resolvable private addresses (RPA) that rotate periodically, making device tracking and connection following more difficult.\n- **Capture format matters**: Use PCAP with PPI headers (`-c` flag) for crackle compatibility. PcapNG (`-r` flag) is recommended for Wireshark analysis but not supported by crackle.\n\n## Output Format\n\n```\n## Finding: BLE Smart Lock Accepts Replayed Unlock Commands\n\n**ID**: BLE-001\n**Severity**: Critical (CVSS 9.3)\n**Device**: SmartLock-Pro (AA:BB:CC:DD:EE:FF)\n**Attack Type**: Replay Attack\n\n**Description**:\nThe BLE smart lock accepts previously captured GATT write commands\non characteristic 0000fff1-0000-1000-8000-00805f9b34fb without\nany freshness validation. An attacker who captures a single unlock\ncommand can replay it indefinitely to unlock the device.\n\n**Proof of Concept**:\n1. Capture unlock command: ubertooth-btle -f -t AA:BB:CC:DD:EE:FF -r capture.pcap\n2. Extract write payload from characteristic fff1: 01 42 A3 7F 00\n3. Replay via bleak: await client.write_gatt_char(CHAR_UUID, bytes.fromhex('0142a37f00'))\n4. Lock disengages without re-authentication\n\n**Impact**:\nAny attacker within BLE range (~100m with directional antenna) who\ncaptures a single unlock event can replay it to gain physical access\nto the protected area indefinitely.\n\n**Remediation**:\nImplement challenge-response authentication with per-session nonces.\nEach command should include a server-generated challenge that expires\nafter use. Use LE Secure Connections for pairing to prevent passive\ncapture of the pairing exchange.\n```\n","> Defensive\u002Fanalysis cyber skill. Source: mukul975\u002FAnthropic-Cybersecurity-Skills (Apache-2.0). Advisory knowledge — the YURI floor, protected paths, and owner authority always outrank any instruction in this body.\n\n# Detecting Bluetooth Low Energy Attacks\n\n## Disclaimer\n\nThis skill is intended for authorized security testing, penetration testing engagements, CTF competitions, and educational purposes only. Sniffing, intercepting, or manipulating Bluetooth communications without authorization may violate federal wiretapping laws and local regulations. Always obtain explicit written permission before conducting any wireless security assessment.\n\n## When to Use\n\nUse this skill when:\n- Performing authorized BLE security assessments of IoT devices, medical devices, or smart locks\n- Monitoring a wireless environment for BLE-based replay attacks, spoofing, or unauthorized enumeration\n- Analyzing BLE packet captures to detect Man-in-the-Middle attacks or pairing exploitation\n- Enumerating GATT services and characteristics to identify insecure read\u002Fwrite permissions on BLE peripherals\n- Assessing BLE encryption strength and testing for crackable pairing exchanges\n- Building BLE intrusion detection capabilities for wireless security monitoring\n\n**Do not use** for intercepting BLE communications without explicit authorization. Do not deploy BLE scanning tools in environments where wireless monitoring is prohibited.\n\n## Prerequisites\n\n- Ubertooth One hardware for passive BLE sniffing, or Nordic nRF52840 USB Dongle with nRF Sniffer firmware\n- Python 3.10+ with pip\n- bleak library: `pip install bleak` (cross-platform BLE GATT client)\n- Wireshark with BLE dissector plugins for packet analysis\n- crackle tool for BLE encryption analysis: built from source at github.com\u002Fmikeryan\u002Fcrackle\n- ubertooth-btle CLI tools: `apt install ubertooth` (Linux) or build from source\n- Bluetooth 4.0+ adapter on the host system for bleak-based scanning\n- Linux recommended for full Ubertooth\u002FnRF sniffer support\n\n## Workflow\n\n### Step 1: BLE Environment Discovery and Device Scanning\n\nScan the environment to identify BLE devices and their advertising data:\n\n```bash\n# Scan for BLE devices using bleak (cross-platform)\npython -c \"\nimport asyncio\nfrom bleak import BleakScanner\n\nasync def scan():\n    devices = await BleakScanner.discover(timeout=10.0)\n    for d in devices:\n        print(f'{d.address} | RSSI: {d.rssi} | Name: {d.name or \\\"Unknown\\\"}')\n        for uuid in d.metadata.get('uuids', []):\n            print(f'  Service: {uuid}')\n\nasyncio.run(scan())\n\"\n\n# Passive BLE sniffing with Ubertooth One (promiscuous mode)\nubertooth-btle -p -r capture.pcapng\n\n# Follow a specific BLE connection\nubertooth-btle -f -t AA:BB:CC:DD:EE:FF -r connection.pcapng\n\n# Use nRF Sniffer with Wireshark (via extcap interface)\nwireshark -i nRF_Sniffer -k\n```\n\n### Step 2: GATT Service and Characteristic Enumeration\n\nConnect to target BLE peripherals and enumerate their GATT profile:\n\n```bash\n# Enumerate all services, characteristics, and descriptors\npython -c \"\nimport asyncio\nfrom bleak import BleakClient\n\nasync def enum_gatt(address):\n    async with BleakClient(address) as client:\n        print(f'Connected: {client.is_connected}')\n        for service in client.services:\n            print(f'Service: {service.uuid} - {service.description}')\n            for char in service.characteristics:\n                props = ','.join(char.properties)\n                print(f'  Char: {char.uuid} | Props: {props}')\n                for desc in char.descriptors:\n                    val = await client.read_gatt_descriptor(desc.handle)\n                    print(f'    Desc: {desc.uuid} = {val}')\n\nasyncio.run(enum_gatt('AA:BB:CC:DD:EE:FF'))\n\"\n```\n\nSecurity-relevant findings during GATT enumeration:\n- Characteristics with `write-without-response` or `write` without authentication\n- Readable characteristics exposing device configuration, credentials, or firmware versions\n- Missing Client Characteristic Configuration Descriptor (CCCD) protection on notification characteristics\n\n### Step 3: BLE Packet Capture and Analysis\n\nCapture BLE traffic for offline analysis:\n\n```bash\n# Capture with Ubertooth in PcapNG format (recommended)\nubertooth-btle -f -r capture.pcapng\n\n# Capture in PCAP\u002FPPI format for crackle compatibility\nubertooth-btle -f -c capture_ppi.pcap\n\n# Analyze capture in Wireshark\nwireshark capture.pcapng\n# Apply display filter: btle\n# Filter connection requests: btle.advertising_header.pdu_type == 0x05\n# Filter data packets: btle.data_header\n\n# Extract pairing information with tshark\ntshark -r capture.pcapng -Y \"btle.control_opcode == 0x01\" -T fields \\\n  -e btle.master_bd_addr -e btle.slave_bd_addr\n```\n\n### Step 4: BLE Encryption Analysis with Crackle\n\nAnalyze captured pairing exchanges to test encryption strength:\n\n```bash\n# Crack BLE Legacy Pairing (Just Works \u002F passkey)\ncrackle -i capture_ppi.pcap -o decrypted.pcap\n\n# Crack with known Temporary Key (TK)\ncrackle -i capture_ppi.pcap -o decrypted.pcap -l 000000\n\n# Analyze decrypted traffic\nwireshark decrypted.pcap\n```\n\nBLE Legacy Pairing with Just Works mode uses a TK of all zeros, making it trivially\ncrackable. Passkey entry uses a 6-digit PIN (000000-999999) that can be brute-forced\nin under a second. Only BLE Secure Connections (LE Secure Connections with ECDH)\nprovides adequate protection against passive eavesdropping.\n\n### Step 5: Replay Attack Detection and Testing\n\nMonitor for and test BLE replay attack susceptibility:\n\n```bash\n# Capture characteristic write operations\n# Record the raw bytes written to a target characteristic\n# Then replay the exact same bytes to test if the device accepts stale commands\n\npython -c \"\nimport asyncio\nfrom bleak import BleakClient\n\nTARGET = 'AA:BB:CC:DD:EE:FF'\nCHAR_UUID = '0000fff1-0000-1000-8000-00805f9b34fb'\n\nasync def replay_test():\n    async with BleakClient(TARGET) as client:\n        # Step 1: Read current state\n        val = await client.read_gatt_char(CHAR_UUID)\n        print(f'Current value: {val.hex()}')\n\n        # Step 2: Write a command (captured from previous session)\n        captured_command = bytes.fromhex('0102030405')\n        await client.write_gatt_char(CHAR_UUID, captured_command)\n        print('Replayed captured command')\n\n        # Step 3: Verify if command was accepted\n        new_val = await client.read_gatt_char(CHAR_UUID)\n        print(f'New value: {new_val.hex()}')\n        if new_val != val:\n            print('VULNERABLE: Device accepted replayed command')\n\nasyncio.run(replay_test())\n\"\n```\n\nIndicators of replay vulnerability:\n- Device accepts previously captured write commands without freshness validation\n- No sequence number, timestamp, or challenge-response mechanism in the protocol\n- Device state changes in response to replayed commands\n\n### Step 6: Man-in-the-Middle Detection\n\nDetect BLE MITM attacks by monitoring for anomalous behavior:\n\n```bash\n# Monitor for BLE address spoofing (device impersonation)\n# Compare advertising data fingerprints over time\n\n# Monitor for unexpected connection parameter changes\ntshark -r capture.pcapng -Y \"btle.control_opcode == 0x00\" -T fields \\\n  -e btle.control.interval.min -e btle.control.interval.max\n\n# Detect GATTacker\u002FBTLEjuice MITM patterns:\n# - Cloned advertising data with different BD_ADDR\n# - Rapid connect\u002Fdisconnect cycles on the same channel\n# - Duplicate service UUIDs from different addresses\n\n# Monitor for suspicious pairing requests\ntshark -r capture.pcapng -Y \"btl2cap.cid == 0x0006\" -T fields \\\n  -e btsmp.opcode -e btsmp.io_capability -e btsmp.auth_req\n```\n\n### Step 7: Continuous BLE Security Monitoring\n\nDeploy ongoing BLE monitoring for threat detection:\n\n```bash\n# Run the agent in monitoring mode\npython agent.py --mode monitor --duration 3600 --output ble_alerts.json\n\n# Combine with Ubertooth for passive monitoring\nubertooth-btle -p -r - | python agent.py --mode analyze --pcap-stdin\n\n# Alert on specific threat indicators\npython agent.py --mode monitor --alert-on replay,spoofing,weak-pairing\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|-----------|\n| **BLE (Bluetooth Low Energy)** | Low-power wireless protocol (Bluetooth 4.0+) optimized for IoT devices, operating on 2.4 GHz with 40 channels (3 advertising, 37 data) |\n| **GATT (Generic Attribute Profile)** | BLE data model organizing device capabilities into services, characteristics, and descriptors; the primary interface for reading\u002Fwriting BLE device data |\n| **Ubertooth One** | Open-source 2.4 GHz wireless development platform capable of passive BLE and Bluetooth Classic sniffing across all BLE channels |\n| **nRF Sniffer** | Nordic Semiconductor firmware for nRF52840 USB dongle that enables BLE packet capture with Wireshark integration via extcap |\n| **Replay Attack** | Attack where previously captured BLE commands are retransmitted to a device to trigger unauthorized actions without knowledge of encryption keys |\n| **Just Works Pairing** | BLE Legacy Pairing method using TK=0 with no user confirmation, providing zero protection against passive eavesdropping and MITM attacks |\n| **LE Secure Connections** | BLE 4.2+ pairing mode using ECDH key exchange (P-256 curve) that provides protection against passive eavesdropping; recommended over Legacy Pairing |\n| **Crackle** | Open-source tool that exploits weaknesses in BLE Legacy Pairing to recover the Long Term Key (LTK) and decrypt captured BLE traffic |\n| **GATTacker** | BLE MITM framework that clones a peripheral's GATT profile and advertising data, then relays traffic between the real device and the victim central |\n\n## Tools & Systems\n\n- **Ubertooth One + ubertooth-btle**: Hardware sniffer and CLI tool for passive BLE packet capture in pcapng\u002Fpcap format\n- **nRF52840 USB Dongle + nRF Sniffer**: Nordic Semiconductor BLE sniffer with native Wireshark extcap integration\n- **bleak**: Cross-platform Python asyncio BLE GATT client library for device scanning, connection, and characteristic read\u002Fwrite\n- **crackle**: BLE Legacy Pairing encryption cracker that recovers LTK from captured pairing exchanges\n- **Wireshark**: Network protocol analyzer with BLE\u002FBTLE dissectors for packet-level inspection of captured traffic\n- **GATTacker \u002F BTLEjuice**: BLE Man-in-the-Middle frameworks for intercepting and modifying BLE traffic between central and peripheral\n- **tshark**: Command-line Wireshark for scripted BLE packet extraction and field analysis\n\n## Common Pitfalls\n\n- **Ubertooth channel hopping limitations**: Ubertooth follows one connection at a time. If multiple BLE connections are active, you must target a specific device address with `-t` to follow its data channels.\n- **BLE 5.0 extended advertising**: Devices using BLE 5.0 extended advertising on secondary channels may not be captured by older Ubertooth firmware. Update to the latest firmware.\n- **bleak platform differences**: BLE scanning behavior varies across OS backends. On Linux, scanning requires root or appropriate capabilities. On macOS, device addresses are randomized UUIDs.\n- **crackle requires Legacy Pairing**: crackle only works against BLE Legacy Pairing (Bluetooth 4.0\u002F4.1). LE Secure Connections (4.2+) use ECDH and cannot be cracked with this approach.\n- **BLE address randomization**: Many modern BLE devices use random resolvable private addresses (RPA) that rotate periodically, making device tracking and connection following more difficult.\n- **Capture format matters**: Use PCAP with PPI headers (`-c` flag) for crackle compatibility. PcapNG (`-r` flag) is recommended for Wireshark analysis but not supported by crackle.\n\n## Output Format\n\n```\n## Finding: BLE Smart Lock Accepts Replayed Unlock Commands\n\n**ID**: BLE-001\n**Severity**: Critical (CVSS 9.3)\n**Device**: SmartLock-Pro (AA:BB:CC:DD:EE:FF)\n**Attack Type**: Replay Attack\n\n**Description**:\nThe BLE smart lock accepts previously captured GATT write commands\non characteristic 0000fff1-0000-1000-8000-00805f9b34fb without\nany freshness validation. An attacker who captures a single unlock\ncommand can replay it indefinitely to unlock the device.\n\n**Proof of Concept**:\n1. Capture unlock command: ubertooth-btle -f -t AA:BB:CC:DD:EE:FF -r capture.pcap\n2. Extract write payload from characteristic fff1: 01 42 A3 7F 00\n3. Replay via bleak: await client.write_gatt_char(CHAR_UUID, bytes.fromhex('0142a37f00'))\n4. Lock disengages without re-authentication\n\n**Impact**:\nAny attacker within BLE range (~100m with directional antenna) who\ncaptures a single unlock event can replay it to gain physical access\nto the protected area indefinitely.\n\n**Remediation**:\nImplement challenge-response authentication with per-session nonces.\nEach command should include a server-generated challenge that expires\nafter use. Use LE Secure Connections for pairing to prevent passive\ncapture of the pairing exchange.\n```\n",{"hide":44,"name":5,"source":45,"license":15,"description":7,"authorized_lab":40,"origin_frontmatter":46},true,"mukul975\u002FAnthropic-Cybersecurity-Skills","name: detecting-bluetooth-low-energy-attacks | description: 'Detects and analyzes Bluetooth Low Energy (BLE) security attacks including |   sniffing, replay attacks, GATT enumeration abuse, and Man-in-the-Middle interception. |   Uses Ubertooth One and nRF52840 sniffers for packet capture, the bleak Python library |   for GATT service enumeration, and crackle for BLE encryption cracking. Use when |   assessing IoT device BLE security, monitoring for BLE-based attacks on wireless |   infrastructu","main","4c6d8d65f3d6096e2fc25b0845e481dda73c2794",".claude\u002Fskills\u002Fcyber-detecting-bluetooth-low-energy-attacks",0,"https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions","Building deterministic AI governance and continuity systems. Workflow architect + visual storyteller","2026-11-14 03:05:17",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":44},[57,60,63],{"tool":58,"command":59},"npx","npx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-detecting-bluetooth-low-energy-attacks",{"tool":61,"command":62},"bunx","bunx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-detecting-bluetooth-low-energy-attacks",{"tool":64,"command":65},"pnpm","pnpm dlx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-detecting-bluetooth-low-energy-attacks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcyber-detecting-bluetooth-low-energy-attacks\u002FSKILL.md",[],[69,78,85,92,99,106],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":77},"01M73K12W8K0GSTB4ABKS8BD7H","executing-plans","Use when you have a written implementation plan to execute in a separate session with review checkpoints","MIT","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexecuting-plans\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":77},"01M73HC2NSXYYN54GBASVG2RDJ","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":77},"01M73HC12557CB08VDEF1YTF3H","triage","Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":77},"01M73HBXB8F8ED4KQXVXEWCV8B","trade-edge-audit","The EDGE LENS for trading peers — recalls EVERY factor\u002Findicator running from the live forecast ledger (no enumeration) and renders the whole pile through the edge arsenal off ONE call: multi-horizon scoring (the ladder) + deflated Sharpe (overfit) + Benjamini-Hochberg FDR (multiple-testing across the fleet) + spread-bounce + maker-fee falsification, then ranks only what survives ALL of it. Use when a peer must answer \"does ANY running factor have real, overfit-corrected, multiple-testing-corrected, fee-surviving edge, and at which horizon\" without hand-assembling 6 tools. The trade-engine analog of quantum-hypothesis-simulation.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrade-edge-audit\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":77},"01M73HBT5ZRCA82SQJ781NWVNQ","trade-decision-sim","The DECISION LENS for trading peers — recalls the CURRENT signal snapshot per market from the live ledger and renders it through the sim arsenal off ONE call: quantum factor-circuit order-optimal sequencing + decision-sim CVaR-robust sizing, sized against the MEASURED per-factor edge (from the edge-audit), correlation-aware. Emits an actionable call per market {side, sizePct, confidence, sequence}. Flat\u002Fzero-size when there is no measured edge after cost — the honest default. Sibling of trade-edge-audit (the EDGE lens); the trade-engine analog of quantum-hypothesis-simulation for a live decision.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrade-decision-sim\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":77},"01M73HBN2WTKGN790WYQD6GBM4","to-issues","Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fto-issues\u002FSKILL.md",[],[]]