Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Bluetooth Security.pdf
Скачиваний:
104
Добавлен:
17.08.2013
Размер:
1.57 Mб
Скачать

Providing Anonymity

129

 

 

8.4 Inquiry and paging

With respect to inquiry, there is no difference between anonymous and nonanonymous devices. A device can be either in discoverable or nondiscoverable mode. Devices in discoverable mode return their active device address (see Section 8.2) in the inquiry response message. This implies that anonymous devices return a random address, while nonanonymous devices return the fixed device address.

With respect to paging, a Bluetooth device can be either in nonconnectable mode or in connectable mode. We have slightly changed the latter mode of operation for anonymous units and split it into three new modes:

1.Connectable mode;

2.Private connectable mode;

3.General connectable mode.

We discuss the rationale behind these three modes in more detail below. Devices in nonconnectable mode never perform any page scans. Hence, it is not possible to initiate any connections with a nonconnectable device.

The page procedure consists of a number of steps. The procedure starts with the device trying to find the address of the device it wants to connect to. A device in anonymous mode can be paged based on two possible addresses, the active device address and the fixed device address. Since an anonymous device in discoverable mode returns the active address in the inquiry response message, the paging device can use the inquiry procedure to find the active address of discoverable devices nearby. If the devices have performed a private pairing (see Section 8.6), the paging device knows the fixed address of the other device. In this case, paging using the fixed device address of the other device is possible. The address of the paged device is used to determine the page hopping sequence. A device can choose whether it shall be reachable on the active address, the fixed address, or both the fixed and active addresses. This corresponds to the different connectable modes that we have defined for the anonymity mode.

8.4.1Connectable mode

When a standard Bluetooth device is in connectable mode, it periodically enters the page scan state. The device makes page scans using the ordinary fixed device address. Anonymous devices operating in connectable mode use the same principles but make page scans on the active device address, BD_ADDR. The device can use different types of page scanning schemes. The connection setup time

130

Bluetooth Security

depends on the scanning interval and is a trade-off between power consumption, available bandwidth, and setup delay. Scan interval, scan window, and interlaced scan can be used to achieve the desired trade-off (see [2] for details). Three different page scan modes are defined in the Bluetooth specification, and they are called R0, R1, and R2, respectively. In R0, continuous scanning is used, while R1 uses a scan interval of at the most 1.28 sec and R2 a maximum of 2.56 sec. A device in connectable mode can use any of the available scan modes.

The connectable mode was introduced to allow any device to connect to an anonymous device. Typically, the active address is obtained through the inquiry procedure. Once the active address is known and the anonymous device is in connectable mode, it will be possible to connect to the device using a page on the active address.

8.4.2Private connectable mode

The private connectable mode needs to be introduced to allow a device to directly page another device. By direct we mean that the device does not need to first go through the inquiry procedure. The inquiry procedure can take a rather long time. Furthermore, a device would like to connect to another device without being forced to answer responses from unknown devices. Hence, when a Bluetooth device is in private connectable mode, it makes page scans using the Bluetooth fixed device address, BD_ADDR_fixed. Any of the three different page scanning modes, R0, R1, or R2 (see Section 8.4.1), can be used.

The private connectable mode allows direct establishment of connections between trusted devices. Ideally a device only shares the value of the fixed address with trusted devices. This means that this connection mode should only be used by a device when it expects connection requests from trusted devices. Thus, even if the fixed address is not a secret parameter in a strict sense, a device that cares about location privacy should be careful about spreading the fixed address. If the fixed address is compromised, there is a small risk that the device could be tracked using the paging attack described in Chapter 7. This threat can be avoided by never entering the nonanonymous or private connectable mode. On the other hand, that makes it impossible to set up direct connections between trusted devices.

Hence, to reduce this threat, a device shall always expect an alias authentication request (see Section 8.5) from the master after a response to a paging on the fixed address. If no alias is received or the setup fails before the connection state has been reached, we recommend a connection failure counter to be incremented. If the failure counter exceeds a threshold value, the host controller can then send a warning to the host. It is then up to the host to take proper action and perhaps warn the user that someone might try to track the movement using the paging attack.