skip to content

Why is TKIP's 64-bit Michael MIC weak by design, and how does the two-failures-in-a-minute countermeasure bound that weakness?

level: middleimportance: must knowfreq 38%

answer

  1. integrity check sized for old chips
  2. weak by design, not by accident
  3. two failures inside sixty seconds
  4. protects integrity, costs availability

basics

~20 s

Michael is a cheap keyed check sized for WEP-era hardware, so it is weak. TKIP bounds it: after two MIC failures within a minute, the access point deauthenticates its TKIP clients and stops TKIP traffic for one minute.

solid answer

~40 s

Michael produces an 8-octet MIC over the data, the source and destination addresses and the priority, with a separate 64-bit key for each direction. It was chosen for what old hardware could compute, so it is weak: NIST says it is much weaker than what is usually required. TKIP therefore treats every MIC failure as a probable active attack. The countermeasure rule is that a second failure within one minute makes the access point deauthenticate its TKIP clients, stop TKIP traffic for one minute and rekey, so a forger cannot try many forged frames in a short period. The price is availability: a fault can trigger the same outage.

go deeper

for a junior

Recall that Michael is TKIP's weak integrity check and that two failures in a minute make the access point pause TKIP for a minute.

for a middle

Explain why Michael is weak by design, what it covers and how the countermeasure bounds forgery, including the group rekey and new PTK.

for a senior

Separate the standard's rule from hostapd's behaviour, and weigh the integrity gained against an outage that a fault or a hostile device can trigger.

for a principal

Use it as a case of a control that converts a security weakness into an availability risk, and ask who owns that risk on a network that cannot go quiet.

## What Michael is Michael is the message integrity code of TKIP. It replaces the CRC-32 that WEP used as an integrity check, which is linear and therefore forgeable. A few facts, with their sources: - The MIC is 8 octets (`MICHAEL_MIC_LEN` in the Linux headers) and is computed over the data, the source and destination addresses and the priority, so rewriting the addresses in the header invalidates it. - The MIC keys are 64 bits each, one for the access point to client direction and one for the other; both are carved from the pairwise transient key. - NIST's guide to 802.11i says the design is "much weaker than what is usually required" because its objective was reasonable integrity on pre-RSNA hardware with no upgrade, and gives its expected forgery work as about 2^28 messages. - Both Beck and Tews and Vanhoef and Piessens state a structural property: given a message and its MIC, the MIC key can be derived efficiently, because Michael was not built as a one-way function. ## Why it needed a safety net A normal MAC resists forgery without help. Michael does not, so TKIP's designers assumed that any Michael failure is a probable active attack and added countermeasures: log it, limit how often a forger can try, replace the keys, and block the 802.1X controlled port where used. ## Why not simply a stronger MIC A stronger check would have defeated the purpose. NIST's guide describes Michael's objective as reasonable integrity assurance on pre-RSNA devices without requiring hardware upgrades, so it had to fit the spare processing capacity of the old chip. The designers accepted a weak MIC and bought the missing strength with a rate limit and a rekey. That is a trade between deployability and margin, and it is why the retrofit was an interim solution and not a design to keep. ## The countermeasure rule 1. A receiver that finds a bad MIC drops the frame; a client reports the failure to the access point in an EAPOL-Key error request. 2. A second failure within 60 seconds of the previous one starts the countermeasure. 3. The access point deauthenticates its TKIP clients and does not receive or transmit TKIP-encrypted data frames for one minute. 4. After the minute, clients can reassociate and negotiate a new PTK. ```pseudocode # hostapd's rule (src/ap/tkip_countermeasures.c), simplified on Michael MIC failure (seen locally for an associated station, or client-reported): log "Michael MIC failure detected in received frame" if now - previous_failure > 60 s: failures = 1 else: failures = failures + 1 if failures > 1: start_countermeasures() previous_failure = now start_countermeasures(): log "TKIP countermeasures initiated" rekey the group key for each station: deauthenticate with reason code 14 reject authentication for 60 s, then log "TKIP countermeasures ended" ``` ## Standard against implementation The behaviours differ slightly in scope, so keep the sources apart: | Source | What it says | |---|---| | Vanhoef and Piessens (2013), restating the standard | AP deauthenticates all TKIP clients and handles no TKIP data for one minute | | NIST SP 800-97 | A receiver with two failures in 60 seconds disables reception for 60 seconds; temporal keys are replaced | | hostapd 2.12 source | Deauthenticates every station in its list with reason 14, rekeys the group key, rejects authentication for 60 seconds | ## What it costs the operator The rule protects integrity at the expense of availability. NIST's guide notes that an attacker can cause a denial of service by generating MIC errors, and the rule cannot tell that from a faulty device: any two MIC failures in a minute halt TKIP traffic on that access point. Treat repeated countermeasure events as both a security event and an outage cause. The durable fix is not to tune the rule but to stop using TKIP, which is a retirement decision, not a tuning one.

  • Does a single Michael MIC failure trigger the one-minute outage?
    No. A first failure is logged and counted; the countermeasure starts only on a second failure within 60 seconds of the previous one. In hostapd a failure arriving after the window has expired simply counts as the first again.
  • Why does the countermeasure also rekey, not just pause traffic?
    A failed MIC is a probable active attack, so TKIP replaces the keys involved. In hostapd the start of countermeasures rekeys the group key, and the clients that reassociate after the minute negotiate a new PTK. NIST's guide also says the temporal keys are erased and re-initialised.

A cheap padlock fitted with a simple alarm: after two wrong attempts inside a minute, the door locks down for sixty seconds. The lockout keeps anyone from trying many combinations, but it also means a stuck key, or someone who wants to disturb you, can lock everybody out.

  • Calls Michael a strong cryptographic MAC that needs no safety net.
  • Says one MIC failure is enough to start the one-minute lockout.
  • Claims the countermeasure only logs and never interrupts traffic.
  • Thinks the countermeasure is a free protection with no availability cost.
  • Confuses Michael's MIC with the MIC in the four-way handshake's EAPOL-Key messages.