Ask any gadget lover which is their favorite smartphone OS and you will likely get one of two answers: Android or iOS. There maybe be some who mention Blackberry, Firefox OS, Tizen or Sailfish, but if you asked about their secondary OS, the one running in their baseband modems, you will likely get a blank look.
Today’s modern smartphones support a multitude of cellular protocols including GSM, 3G, 4G and 4G LTE. These protocols are complicated and require a significant amount of CPU power to interpret, process and generate the packets which are transmitted to your network provider. This processing is handled by a baseband modem which is a separate chip included in smartphones that communicates with the main processor and sometimes with the phones main memory.
What isn’t often known is that these baseband modems have their own CPUs (often an ARM) and run their own operating system. These small operating systems, which run in these very specific low resource environments, are called Real Time Operating Systems (RTOS) and they are often just a few hundred kilobytes in size and have very small memory requirements. This means that companies like Qualcomm and Infineon, who are the leading baseband modem makers, can create a single chip which includes a low power ARM CPU, some memory and some digital signal processors (DSPs). The CPU in the chip needs to boot up and load the RTOS as well as load the software needed to process the various cellular standards.
Here is how ARM explain it in a document about their Cortex-R processors: ”At the heart of every device there is also a baseband processor that is the digital system for transmitting and receiving data over the radio. In turn a baseband processor is divided in two parts – a modem to modulate and demodulate the radio signal and a protocol stack processor which manages the communication between base station and mobile terminal by establishing connections, managing radio resources, handling errors and packetizing incoming and outgoing data.” By a protocol stack processor ARM mean a general, low-power ARM processor.
Google has a Binaries for Nexus Devices downloads page which hosts binary hardware support files for its Nexus phones. Among these drivers are various binary files to support the GSM components of Nexus phones and tablets that support 3G or 4G. These files are 100 percent proprietary and little is known about them. What this means is that in every Android smartphone is running an open source operating system on top, but deep down in its internals is a proprietary CPU and OS that is a complete mystery to everyone except the baseband modem maker.
Typically a Real-Time Operating System (RTOS) such as Nucleus or ThreadX will provide the control plane code environment.
The problem is that like all software there are bugs in the operating systems used by the baseband modem makers. If there are bugs then there are security vulnerabilities. If there are security vulnerabilities then there is a doorway for hackers to get in.
A few years ago security researcher Ralf-Philipp Weinmann presented some finding at a security conference that demonstrated how to use a baseband hack that takes advantage of bugs in the firmware in mobile phone chip-sets by Qualcomm and Infineon Technologies. Weinmann demonstrated a hack for both an iPhone and an Android device by setting up a rogue base transceiver station which he used to send malicious code to the devices and exploited vulnerabilities found in the baseband processors.
Since then little has changed in terms of the openness of these baseband modems. However one thing is sure they are becoming increasingly more complex and in software engineering terms complexity means more bugs and more bugs means more vulnerabilities.
With the recent NSA / Snowden revelations I shouldn’t be surprised if somewhere in the future we find out that governments have been exploiting vulnerabilities in baseband processors to listen to phone conversations and track the whereabouts of persons of interest!
Interesting read! In relation to software security, I believe open source is better than proprietary, as crazy as it sounds. It is also better for the advancement of the platform if there where communities working on them. I wonder why they are so hush hush about it though…
certainly, open source is better for the user’s security and privacy — enough eyes on it to see the backdoors. Sadly, as this article points out, there will always be a proprietary part of a device the gov can get a foothold into.
Intellectual property, as soon as you open source it, someone else can start making money off your hard work
>I shouldn’t be surprised if somewhere in the future we find out that
governments have been exploiting vulnerabilities in baseband
They’ve been doing this for over 10 years now: http://news.cnet.com/2100-1029-6140191.html
This is why Richard Stallman refuses to use a modern cell-phone: http://www.networkworld.com/news/2011/031411-richard-stallman.html
Live your life as if Big Brother is listening and watching all the time. Because he often is, from almost any Internet activity to phone call to just walking/driving down the street, under the gaze of omni-present CCTV cameras, license plater readers, various RFID and transponder and other scanners, and likely things we don’t even know of yet.
Before Snowden, people making these allegations were conspiracy nuts. Don’t forget your tin-foil.