Section 7.40

Jamming versus protocol DoS

Full name: Jamming versus protocol denial of service.

Definition

Jamming is the deliberate transmission of radio energy that stops a receiver from decoding the signals meant for it. A protocol denial-of-service §1.28 (DoS) attack sends messages that a protocol accepts, or starts to process, to use up a resource of the target, such as connection slots, memory, processor time or battery energy. The difference that matters is the point of attack. Jamming acts on the physical channel and needs no valid packet. Protocol DoS needs a working channel and attacks the work that the protocol lets a sender cause.

The idea

Two attackers want to stop a BLE §7.1 (Bluetooth Low Energy) device from receiving an update. The first places a transmitter nearby that fills the 2.4 gigahertz radio band, where BLE operates, with noise. The device’s radio cannot decode any packet, the connection ends when its supervision timeout §7.8 expires, and the update never arrives. The device’s software rejected nothing, because nothing arrived to reject. The second attacker uses an ordinary phone. The radio channel works perfectly. The phone connects and holds the device’s only connection slot, or sends a stream of well-formed requests, each of which costs the device processing time before it can be rejected. Both attackers deny service, but their attacks act at different places, and the defenses differ.

A shop is a fair picture. Jamming is someone shouting over every telephone call, so that neither side hears the other. Protocol DoS is someone placing thousands of fake orders, each of which a clerk must read before throwing it away. The shop’s rules about which orders to accept can reduce the clerks’ work on fake orders; they cannot make the telephone line quiet. The picture fails in one respect: a radio jammer can be selective, transmitting only when it detects the start of a packet it wants to destroy, which makes it cheap to run and hard to notice.

How it works

Jamming. Jamming is deliberate radio frequency (RF) interference: unwanted radio energy at the receiver. A receiver decodes a packet only if the wanted signal is strong enough compared with everything else it receives during that packet, and the jammer adds energy until that comparison fails. A damaged packet fails its CRC §4.32 (cyclic redundancy check), an error-detecting code, or is not even detected, and it is dropped; no software above the radio sees it. Jammers differ in what they cover.

BLE has some built-in tolerance. During a connection, both devices hop among 37 data channels, spaced 2 megahertz apart, following a pattern that skips channels marked as bad. The Link Layer §7.6, the part of the chip that controls packets, resends any packet that is not acknowledged. Hopping and resending work against interference on a few channels, such as a nearby Wi-Fi network. They do not work against a jammer that covers the whole band, from 2400 to 2483.5 megahertz. Defenses against jamming are physical: distance, shielding, directional antennas, a different radio band, or a wired link. Software can only notice the symptoms, such as repeated lost connections, and keep the device in a safe state.

Protocol DoS. The attacker sends packets that the radio decodes correctly. Each one makes the device spend something before the device can decide to reject it: a connection slot, buffer memory, processor time to parse the packet or to check a cryptographic code, a flash write, or energy to stay awake. Analyzing a protocol DoS attack takes three steps.

  1. List the scarce resources and, for each one, the cost that one message imposes.

  2. Find the earliest point at which the device can reject a message, and the cost already spent by then.

  3. Bound what is spent before authentication §1.6: put cheap checks before expensive work, use rate limiting §9.38 on unauthenticated requests, and cap the connections, buffers and queue entries that unauthenticated peers may hold.

Application policy helps against protocol DoS, because it decides which work the device does on the messages that reach the application. It cannot reduce the work done below it, in the radio and the protocol software, before a message reaches the application.

Worked example

Protocol DoS. Parsing and rejecting one request costs a device 2 ms of processor time, so the cost is c=0.002c = 0.002 s per request. At 100 requests per second the processor spends 100×0.002=0.2100 \times 0.002 = 0.2 s of every second on them, 20% of one core. At 1000 requests per second the demand is 1000×0.002=21000 \times 0.002 = 2 s of work per second, twice what one core can do. Requests then wait in a queue that grows by 2−1=12 - 1 = 1 s of work every second until the device starts dropping them, and legitimate requests are delayed or dropped with them. A rate limit of 50 unauthenticated requests per second caps the parsing demand at 50×0.002=0.150 \times 0.002 = 0.1 s per second, 10% of the core, whatever rate the attacker sends; the limiter itself and the layers below it still handle every packet. Whether a BLE link can carry 1000 requests per second depends on its connection settings; the arithmetic concerns the processor only.

Jamming. The same device’s connection has a supervision timeout of 4 s, the time without a valid packet after which the connection is declared lost. A jammer that destroys every packet for 4 s ends the connection. During those 4 s the application received no message, so no application check had anything to act on, and the rate limit above changes nothing.

Stated precisely

Protocol DoS as work demand. Let λ\lambda be the number of requests per second that the device admits, and cc the processor time, in seconds, that each one costs. The demand is ρ=λc\rho = \lambda c, in seconds of processor time per second: the request units cancel. One core supplies at most 1 s of processor time per second. If ρ>1\rho > 1, work arrives faster than it can be done, and the backlog grows by ρ−1\rho - 1 seconds of work every second until requests are dropped. If ρ<1\rho < 1, the work fits on average, but it still adds queueing delay §14.38 to other work, more as ρ\rho approaches 1. This is a model of processor demand only; it says nothing about memory, slots or the radio.

Jamming as interference. Let SS be the power of the wanted signal at the receiver, II the power of interference, which includes the jammer, and NN the power of the receiver’s own noise, all in watts. A packet is decoded with high probability only while the signal-to-interference-plus-noise ratio S/(I+N)S / (I + N) stays above a threshold γ\gamma set by the radio’s modulation and coding. The jammer raises II. Checks on received messages cannot change SS, II or NN. Only measures that act on the radio path change them: a stronger transmitter or a shorter distance raises SS, and shielding or a directional antenna lowers II.

An availability §1.10 claim therefore needs two separate statements in the threat model §1.2, the written account of what an attacker can do: what is assumed about the radio environment, for example that no transmitter jams the band, and which protocol attacks are covered, with what bounds.

Limits and common mistakes

Leaving jamming out of a threat model does not leave out protocol DoS. An attacker who cannot jam can still exhaust slots, memory and processor time with valid packets.

Valid framing is not cheap. A well-formed, even authentic, message still costs the work of receiving and checking it, and a flood of such messages is a protocol DoS attack.

A connection’s hopping pattern is not secret. The values that set the pattern are sent unencrypted in the connection request, so an attacker that received the request can predict the channels the connection will use.

Attacks can be combined. A jammer can break a connection so that the attacker’s own device takes the freed slot when the target advertises again, which is connection-slot exhaustion §7.35 started by jamming. A jammer can also destroy packets selectively to force retransmissions §7.36 that drain a battery.

From the symptoms alone, software cannot tell jamming from ordinary interference, such as a busy Wi-Fi network or a microwave oven: both cause lost packets and dropped connections. Telling them apart needs measurements of the radio environment.

Operating a jammer is illegal in many countries. That restrains honest users, not attackers, so a threat model cannot rely on it.

Questions answered

Can application policy prevent RF interference?

No, application policy cannot prevent radio frequency (RF) interference. Application policy acts only on messages that the radio has already decoded, and jamming acts before decoding: it raises the interference at the receiver until packets fail their error check and are dropped without reaching any software. What prevents or tolerates RF interference is physical: distance, transmit power, shielding, directional antennas, another radio band or a wired link. A threat model that does not include these measures must state that it assumes no jamming.

Application policy can still do three useful things. It can notice the symptoms, such as repeated lost connections, and report them. It can keep the device in a safe state, for example running its current software, until a transfer completes. And it can bound protocol denial-of-service attacks, which use valid messages, by rejecting unauthorized work early and limiting what unauthenticated peers may consume. These bounds cover only the work that reaches the application; they do not make a jammed channel usable.

Related entries: Connection-slot exhaustion (§7.35), Rate limiting (§9.38), Denial of service (DoS) (§1.28), Supervision timeout (§7.8), Cross-layer security (§7.38). Further reading: [93].