A recent article in The Hacker News describes how it is possible for malware to become persistent through exploiting vulnerabilities in the bootloader. While the linked article is quite technical it is useful to look into exactly why the bootloader is such a tempting target.

First, what is a bootloader? When you turn on your phone the first thing which starts is the Boot ROM code, which starts at a pre-defined location in the ROM (read-only-memory). This ROM is similar to the BIOS boot that is familiar to most PC users. The Boot ROM’s main function is to load the bootloader into memory, and to execute it. The bootloader is not part of the Android operating system, but it is used by manufacturers to put restrictions on what can run on the system, and to configure memory, network and various other chips required when the kernel starts. The bootloader also checks the signature of the kernel before starting it.

If you’re interested in updating your Android phone without using the manufacturer’s software to do it an “unlocked bootloader” is required, so that you can load the kernel and Android version of your choice on the phone. What the team of team of nine security researchers from the University of California Santa Barbara found was vulnerabilities in common bootloader versions, allowing the installation of a “persistent rootkit”. As the bootloader runs before the kernel it is a good target for an advanced attacker, as it would survive any update of the kernel and operating system itself.

The target of malware is of course not the bootloader itself, but what many people do on their phones today: They do banking, they transfer funds, they enter credit card numbers and PIN codes. Persistent malware which can survive even a factory reset of the phone would be the ultimate way to gain access to this information. In order to protect these most sensitive we at Protectoria have chosen to act as if any device is infected. We enable a secure execution environment inside your apps, protecting only the most sensitive parts of your applications, such as transaction security. The operating system can then be infected by malware without it becoming a problem. To learn more about the Protectoria Secure Mobile Platform (PSMP) please see our whitepapers at www.protectoria.com.