KNOB, BIAS and BlueBorne: Attack Classes and Fixes
Bluetooth's published attacks fall into three classes, and each has a well-known representative. KNOB (2019) attacked a negotiation: the two devices agreed on a key length without protecting the agreement. BIAS (2020) attacked authentication: an attacker could pose as a device paired earlier without knowing its key. BlueBorne (2017) attacked implementations: memory bugs in Bluetooth stacks reachable over the air without pairing. All three were fixed by patches and specification changes; all three still live on in devices that never got updates. This lesson explains each as a mechanism, then shows how a defender finds affected devices and closes the gap.
KNOB: negotiating a 1-byte key
Mechanism. In Bluetooth Classic (BR/EDR), after pairing, the two controllers negotiate the entropy of the encryption key, from 1 to 16 bytes, through Link Manager Protocol messages that were neither encrypted nor integrity-protected. A man in the middle could rewrite the proposal so both sides agreed on 1 byte. The link was then "encrypted" with one of 256 keys, which can be found by trying them all against captured traffic, in real time. The same negotiation existed in BLE, where the specification already required at least 7 bytes. Daniele Antonioli, Nils Ole Tippenhauer and Kasper Rasmussen published it in 2019 as CVE-2019-9506.
The numbers show why the key length mattered so much (an order-of-magnitude rate of trials per second):
RATE = 1e9 # key trials per second: an order of magnitude for one machine
def human(s):
if s < 1e-3: return f"{s * 1e6:.1f} microseconds"
if s < 31_557_600: return f"{s:,.1f} seconds"
return f"{s / 31_557_600:.1e} years"
for n_bytes in (1, 2, 4, 7, 16):
keys = 2 ** (8 * n_bytes)
print(f"key entropy {n_bytes:2} byte(s): 2^{8 * n_bytes:<3} keys, expected search {human(keys / 2 / RATE)}")key entropy 1 byte(s): 2^8 keys, expected search 0.1 microseconds
key entropy 2 byte(s): 2^16 keys, expected search 32.8 microseconds
key entropy 4 byte(s): 2^32 keys, expected search 2.1 seconds
key entropy 7 byte(s): 2^56 keys, expected search 1.1e+00 years
key entropy 16 byte(s): 2^128 keys, expected search 5.4e+21 years
One byte or two are found instantly; 16 bytes never. The 7-byte minimum that the Bluetooth SIG then recommended for BR/EDR (matching LE's rule) is a compatibility compromise: it blocks the real-time attack but is far weaker than 16 bytes, so modern stacks should insist on 16.
Detection. The key-size negotiation happens inside the controllers and is visible only to specialised sniffers; in practice detection means auditing: which devices accept short keys (stack version, patch level, configuration)?
Fix. Patches released around the August 2019 disclosure make hosts reject key sizes below 7 bytes (Windows, Linux, Android and Apple platforms were updated). Device makers set the minimum in firmware, and Secure Connections Only mode with 16-byte keys removes the question.
BIAS: impersonating a bonded device
Mechanism. When two bonded BR/EDR devices reconnect, they prove knowledge of the stored link key. BIAS (CVE-2020-10135, same authors) found that legacy authentication was not mutual: the device that requests authentication never had to prove anything itself, and an attacker could take that role through a role switch. It could also downgrade a Secure Connections reconnection to the legacy procedure. Result: the attacker impersonated, say, a user's headset to the phone, without knowing the link key, and could combine it with KNOB to read the session.
Detection. Again mostly by audit (unpatched stacks, devices that allow legacy authentication); unexpected reconnections from "known" devices at odd times appear in some OS logs.
Fix. Specification updates requiring mutual authentication and forbidding the downgrade, implemented in OS and firmware patches; Secure Connections Only mode; removing old bondings that are no longer needed.
BlueBorne: stack bugs reachable over the air
Mechanism. In September 2017 Armis published eight vulnerabilities, collectively BlueBorne, in the Bluetooth stacks of Android, Linux, Windows and iOS: buffer overflows and information leaks in protocol layers such as L2CAP and SDP that process packets before any pairing, plus logic flaws that allowed man-in-the-middle positions. A device with Bluetooth on could be attacked by anyone in range, without user interaction; the Android, Linux and older iOS bugs allowed remote code execution. Examples: CVE-2017-1000251 (Linux kernel L2CAP), CVE-2017-0781 and CVE-2017-0782 (Android), CVE-2017-8628 (Windows), CVE-2017-14315 (older iOS).
BlueBorne is the template for later firmware findings such as SweynTooth (2020, BLE chip SDKs) and BrakTooth (2021, BR/EDR controller firmware): parser bugs in code that every packet passes through. The lessons on memory safety (Memory Safety) explain the bug class.
Detection. Version and patch audits; vendor advisories; for your own firmware, fuzzing the Bluetooth stack in a lab (Security Research covers fuzzing).
Fix. Patches (September–October 2017 for the major platforms); turning Bluetooth off where it isn't needed; for device makers, using maintained stacks and shipping updates.
Auditing a fleet
Every one of these issues reduces to two questions per device: how old is its Bluetooth stack, and how is it configured? The program audits the lab's synthetic inventory against the three issues plus exposure:
fleet = [ # Bluetooth audit of the lab's devices (synthetic inventory)
{"device": "laptop-12", "os": "Windows 11", "patched": "2026-10", "min_key": 16, "sc_only": False, "discoverable": False},
{"device": "phone-03", "os": "Android 16", "patched": "2026-11", "min_key": 7, "sc_only": False, "discoverable": False},
{"device": "hub-01", "os": "BlueZ 5.43", "patched": "2017-06", "min_key": 1, "sc_only": False, "discoverable": True},
{"device": "plug-07", "os": "vendor SDK", "patched": "2025-02", "min_key": 16, "sc_only": True, "discoverable": False},
{"device": "headset-2", "os": "vendor fw", "patched": "2019-03", "min_key": 1, "sc_only": False, "discoverable": True},
]
FIXES = [ # (issue, test, what closes it)
("BlueBorne (2017)", lambda d: d["patched"] < "2017-10", "patch: fixes from September/October 2017"),
("KNOB (2019)", lambda d: d["min_key"] < 7, "patch or setting: minimum key size of 7 bytes (16 better)"),
("BIAS (2020)", lambda d: d["patched"] < "2020-06" and not d["sc_only"], "patch; Secure Connections Only mode"),
("exposure", lambda d: d["discoverable"], "not discoverable outside pairing; Bluetooth off when unused"),
]
for d in fleet:
issues = [f"{name}: {fix}" for name, test, fix in FIXES if test(d)]
print(f"{d['device']:10} {d['os']:11} patched {d['patched']} " + ("OK" if not issues else "\n" + "\n".join(" - " + i for i in issues)))laptop-12 Windows 11 patched 2026-10 OK
phone-03 Android 16 patched 2026-11 OK
hub-01 BlueZ 5.43 patched 2017-06
- BlueBorne (2017): patch: fixes from September/October 2017
- KNOB (2019): patch or setting: minimum key size of 7 bytes (16 better)
- BIAS (2020): patch; Secure Connections Only mode
- exposure: not discoverable outside pairing; Bluetooth off when unused
plug-07 vendor SDK patched 2025-02 OK
headset-2 vendor fw patched 2019-03
- KNOB (2019): patch or setting: minimum key size of 7 bytes (16 better)
- BIAS (2020): patch; Secure Connections Only mode
- exposure: not discoverable outside pairing; Bluetooth off when unused
The smart-home hub runs a 2017 BlueZ with a 1-byte minimum key size and is discoverable: it fails every check. The headset is newer but still predates the KNOB and BIAS fixes. Devices like these can't always be patched; then the remaining fixes are configuration (not discoverable, Bluetooth off), isolation (the hub on the IoT network) and replacement.
How Bluetooth attacks are detected, in general
- Inventory and patch level of every Bluetooth-capable device, including headsets, keyboards, cars and IoT hubs, compared with advisories.
- Configuration review: discoverability, Secure Connections Only, minimum key size, stale bondings.
- Lab sniffing of your own devices (dedicated BLE/BR sniffers) to see what pairing and key sizes they actually negotiate.
- Endpoint management: MDM can report and restrict Bluetooth on managed phones and laptops (MDM).
How they are fixed
| Attack | Specification fix | Implementation fix | Configuration |
|---|---|---|---|
| KNOB | minimum key size (7 bytes recommended for BR/EDR) | hosts reject short keys | Secure Connections Only, 16-byte keys |
| BIAS | mutual authentication, no SC downgrade | patched stacks | Secure Connections Only; prune old bondings |
| BlueBorne and firmware bugs | none needed: implementation bugs | patches; memory-safe parsers; fuzzing | Bluetooth off or non-discoverable when unused |
Pitfalls
- Patching phones and laptops but forgetting headsets, keyboards, cars and IoT hubs.
- Treating "paired" as "trusted forever": BIAS showed bondings can be abused; remove what's no longer used.
- Relying on "Bluetooth is short-range": all three attacks work from the next room, further with antennas.
Practice
1. Why could KNOB not be prevented by a strong pairing method?
The key-size negotiation happened after pairing, in unprotected link-manager messages. Pairing produced a strong link key, but the session key derived from it was cut to the negotiated length.
2. Add {"device": "car-1", "os": "infotainment", "patched": "2018-05", "min_key": 7, "sc_only": False, "discoverable": False} to the fleet. Which issues does the audit report?
BIAS only (patched before June 2020 and not Secure Connections Only). Its key-size minimum of 7 passes the KNOB check, and the patch date is after BlueBorne's fixes.
3. A conference badge scanner runs an old BLE SDK that can't be updated. What do you do?
Find out whether its chip SDK is listed in advisories such as SweynTooth; limit its exposure (pairing disabled after setup, no sensitive data on it), keep it off networks with sensitive systems, and plan its replacement.
Test yourself
What did KNOB manipulate?
- The pairing method
- The unprotected negotiation of the encryption key's entropy, down to 1 byte
- The device name
- The advertising channel
What did BIAS allow?
- Reading Wi-Fi passwords
- Impersonating a previously bonded device without knowing the link key
- Jamming
- Changing the MAC address
Why was BlueBorne especially dangerous?
- It needed physical access
- Bugs in stack layers that process packets before pairing allowed attacks without user interaction
- It only affected headsets
- It needed the user's password
Which configuration helps against both KNOB and BIAS?
- Hiding the device name
- Secure Connections Only mode
- Lower transmit power
- A longer PIN