跳到正文
Skillpedia
安全10k · #11984

offensive-krack-fragattacks

它能做什么

这个技能说明两类著名的 Wi-Fi 弱点,即 KRACK 和 FragAttacks,以及如何检查设备是否受影响。适合处理较旧或嵌入式设备的安全测试人员。

适用场景

  • ✓你需要检查较旧的 Wi-Fi 设备或物联网设备是否受 KRACK 或 FragAttacks 影响的时候。
  • ✓你想知道哪些现代操作系统已修补这些问题的时候。
  • ✓获批的安全评估包括嵌入式或工业 Wi-Fi 客户端的时候。

技能链接

https://github.com/SnailSploit/Claude-Red/blob/main/Skills/wireless/offensive-krack-fragattacks/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/SnailSploit/Claude-Red/blob/main/Skills/wireless/offensive-krack-fragattacks/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请告诉我,我们仓库里的旧 Wi-Fi 传感器是否仍然易受 KRACK 或 FragAttacks 攻击。”

每周 5 个新技能,1 分钟读完。

工作原理

这个技能用通俗的语言解释每种弱点的作用,哪些设备最可能仍受影响,以及这些攻击对最新系统的局限。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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.

# 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.

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
# 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?

KRACK 是 Wi-Fi 握手过程中的一个缺陷,可能让攻击者重用加密密钥。未更新的设备可能仍然暴露。

什么是 FragAttacks?

FragAttacks 是 Wi-Fi 处理分片数据方式中的一组缺陷。大多数设备已在 2021 年和 2022 年修补,但较旧的设备可能没有。

详情

作者的原始描述

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.

repo: SnailSploit/Claude-Red

热度

GitHub 星标
10k
排名
#11984
许可证
MIT
更新时间
2026/10/12

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能