Saltar al contenido
Skillpedia
Seguridad10 mil · #11984

offensive-krack-fragattacks

Qué hace

Esta skill explica dos conocidas familias de debilidades del Wi-Fi, KRACK y FragAttacks, y cómo comprobar si un dispositivo se ve afectado. Es para probadores de seguridad que trabajan con dispositivos antiguos o embebidos.

Cuándo usarla

  • ✓Cuando necesitas comprobar si un dispositivo Wi-Fi antiguo o un aparato IoT se ve afectado por KRACK o FragAttacks.
  • ✓Cuando quieres saber qué sistemas operativos modernos ya tienen parches contra estos problemas.
  • ✓Cuando una revisión de seguridad aprobada incluye clientes Wi-Fi embebidos o industriales.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/SnailSploit/Claude-Red/blob/main/Skills/wireless/offensive-krack-fragattacks/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Puedes decirme si los sensores Wi-Fi antiguos de nuestro almacén siguen siendo vulnerables a KRACK o FragAttacks?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La skill explica en términos sencillos qué hace cada debilidad, qué dispositivos es más probable que sigan afectados y los límites de estos ataques en sistemas actualizados.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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

Preguntas frecuentes

¿Siguen siendo comunes estos ataques?

La skill indica que la mayoría de los sistemas operativos principales recibieron parches en los años posteriores a la divulgación de estos fallos. El riesgo principal está en dispositivos IoT y embebidos antiguos.

¿Qué es KRACK?

KRACK es un fallo en el handshake del Wi-Fi que puede permitir a un atacante reutilizar claves de cifrado. Los dispositivos que no se actualizaron pueden seguir expuestos.

¿Qué es FragAttacks?

FragAttacks es un conjunto de fallos en la forma en que el Wi-Fi gestiona los datos fragmentados. La mayoría de los dispositivos recibieron parches en 2021 y 2022, pero los más antiguos podrían no haberlos recibido.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
10 mil
Posición en el ranking
#11984
Licencia
MIT
Actualizada
12/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas