Download Vulnerabilities and Attacks in Wireless Sensor Networks

Transcript
the sensor node. Even if there is no JTAG connector provided on the circuit board,
attackers can still get access to the JTAG ports by directly connecting to the
right pins on the microcontroller which can be looked up in the datasheet. Typical
data rates for JTAG access are 1–2 kB/s, so reading or writing 64 kB of data takes
between 30 and 70 s. However, there are specialized programming devices on the
market which can attain much higher data rates. One such device claims to be
able to program 60 kB of memory in a mere 3.4 s.
3.2.2. Attacks via the Bootstrap Loader
On the Telos nodes, the canonical way of programming the microcontroller is
by talking to the Texas Instruments specific bootstrap loader (BSL) through the
USB interface. The bootstrap loader [40] is a piece of software contained in the
ROM of the MSP430 series of microcontrollers that enables reading and writing
the microcontroller’s memory independently of both the JTAG access and the
program currently stored on the microcontroller.
The BSL requires the user to transmit a password before carrying out any
interesting operation. Without this password, the allowed operations are essentially “transmit password” and “mass erase”, i.e. erasing all memory on the microcontroller.
The BSL password has a size of 16 · 16 bit and consists of the flash memory
content at addresses 0xFFE0 to 0xFFFF. This means in particular that, immediately after a mass erase operation, the password consists of 32 bytes containing
the value 0xFF. The memory area used for the password is the same that is used
for the interrupt vector table, i.e. the BSL password is actually identical to the
interrupt vector table. The interrupt vector table, however, is usually determined
by the compiler and not by the user, although Texas Instruments documents
describe the password as user-settable.
Finding out the password may be quite time-consuming for an attacker. However, such an investment of time may be justified if a network of nodes all having
an identical password is to be attacked. Therefore, an evaluation of the possibility
to guess the password follows.
Brute Force. As the password is composed of interrupt vectors, certain restrictions apply to the values of the individual bytes. This section examines the expected size of the key space and estimates the expected duration of a brute force
attack on the password.
Initially, the key space has a size of 16 · 16 bit = 256 bit. Assuming a typical
compiler (mspgcc 3.2 [33] was tested), the following restrictions apply:
• All code addresses must be aligned on a 16 bit word boundary, so the least
significant bit of every interrupt vector is 0. This leaves us with a key space
of 16 · 15 bit = 240 bit.
• The reset vector, which is one of the interrupt vectors, is fixed and points to
the start of the flash memory, reducing the key space to 15·15 bit = 225 bit.
• Interrupt vectors which are not used by the program are initialized to the
same fixed address, containing simply the instruction reti (return from
interrupt). As a worst case assumption, even the most basic program will