krackfrag

A dedicated skill for offensive KRACK/Frag attacks to help an AI agent efficiently perform related tasks.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "krackfrag" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bc835c01efc6b7f952d5dcd9182d7a4e97a5f491570fab80c3eeb64affcc4542. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/offensive-krack-fragattacks-pz5h before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A dedicated skill for offensive KRACK/Frag attacks to help an AI agent efficiently perform related tasks.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
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.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 攻击性KRACK/Frag攻击
slug: offensive-krack-fragattacks
version: 1.0.0
displayName: 攻击性KRACK/Frag攻击
description: >
  攻击性KRACK/Frag攻击专用技能,帮助AI Agent高效完成相关任务。
summary: "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, vi..."
license: MIT
category: 安全与渗透测试
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: https://github.com/1991513ccie-png
repository: https://github.com/1991513ccie-png

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

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value65/100

Areas to improve

  • 受众较窄 Reported severity: Minor

    功能面向专业安全研究人员,非通用高频需求场景。

    Recommendation: 可补充更多实际案例或集成自动化报告生成以提升普适性。

Highlights

  • 提供专业级无线安全渗透测试能力
  • 覆盖 KRACK 和 FragAttacks 两大攻击家族
  • 明确区分目标设备类型与补丁状态
Trigger Precision85/100

Highlights

  • 触发词精准:KRACK、FragAttacks、CVE编号明确
  • description完整且位于正确位置
  • 边界清晰,不易与其他安全工具混淆
Structure and Standards95/100

Highlights

  • 结构清晰:分章节覆盖原理、测试、检测、报告
  • 提供端到端命令示例
  • frontmatter完整,元数据齐全
Execution Reliability88/100

Areas to improve

  • 依赖工具安装说明缺失 Reported severity: Minor

    未说明如何安装 hostapd-mana、aireplay-ng 等依赖工具。

    Recommendation: 补充依赖安装指南或提供自动化安装脚本。

Highlights

  • 工具来源明确:引用 Vanhoef 官方仓库
  • 命令参数完整,可直接执行
  • 强调受控测试环境,降低误用风险
Evidence Verifiability (mean of the first four)83/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.