Research

How I hacked my smart bracelet

This story began a few months ago when I got a popular brand of fitness bracelet. As this is a wearable device I installed Android Wear app, an application developed especially for wearable devices. This application easily connects to the fitness band.

insecurable_wearables_1

However, there was something odd: the program could connect to a Nike+ Fuel Band SE, but my bracelet was another brand! It wasn’t long before I realized my colleague had a Nike wristband – and he didn’t even notice I had connected to his device.

After that I decided to do some research and find out how secure my wristband was.

Smart bracelets: communication with a smartphone

Today’s market offers a lot of wristbands from other manufacturers. KSN provides the following statistics about the installation of Android-based applications to work with popular fitness trackers on mobile devices (the statistical data was obtained from KSN users who freely agreed to the transfer of this data).

insecurable_wearables_en_2

The installation of Android-based applications designed to work with fitness trackers from different manufactures

Although this statistic demonstrates the popularity of Android applications (we cannot guarantee that the appropriate devices have users), to some extent it reflects the situation with the popularity of wearable devices.

To communicate with the smartphone most of these fitness bands use Bluetooth LE technology (also known as Bluetooth Smart). For us, this means that the devices connect in a different way from regular Bluetooth. There is no pairing password because most wristbands do not have a screen and/or a keyboard.

In some cases you can connect to a wearable device without the owner even knowing

Tweet

These wristbands use a GATT (Generic Attribute Profile) which means that every wearable device includes a set of services, each of which has a set of characteristics. Each characteristic contains a byte buffer and a list of descriptors, and each descriptor contains a value – a byte buffer.

In order to demonstrate this, I used some ready code from Android SDK, an example of an application that connects to Bluetooth LE devices. I did not have to write a single new line of code; I simply opened the existing project in Android Studio and pressed Start.

insecurable_wearables_3

The screenshot above shows the result of my attempt to connect my fitness bracelet with the help of this application. Here we see the services and their characteristics. However, it is not easy to obtain data for my bracelet from the characteristics – it requires authentication in addition to the connection. In the case of some other devices I could read the data from the characteristics and their descriptors. This was probably the user data.

Scanning

So, using the example of the application from Android SDK I could connect to some devices. After that I have developed my own application which automatically searched for the Bluetooth LE devices attempting to connect to them and get their list of services.

Using this application I performed several scans.

  • Over two hours on the Moscow undeground subway system I could have connected to 19 devices: 11 FitBit and 8 Jawbone.
  • Over an hour in a gym in Bellevue, WA, USA I was able to connect to 25 devices: 20 Fitbit, and one each from Nike, Jawbone, Microsoft, Polar and Quans.
  • Over two hours at SAS2015 in Cancun, Mexico, I was able to connect to 10 fitness trackers: 3 Jawbone and 7 FitBit.

From just six hours of scanning I was able to connect to 54 devices despite two serious restrictions:

  1. Although the spec suggests the maximum distance for connections is 50 meters, in reality it’s rarely possible to connect to a device more than 6m away.
  2. It seems that it is not possible to connect to a device that already has a connection to another phone. Thus if your wristband is connected to your phone, no one else can connect to it; it should not even be seen during scanning.

The second restriction should mean that when the wristband is connected to a smartphone, it cannot be attacked. This is not true though. And here is an example: while scanning with my app I was able to block the communication between my bracelet and its official application, even though they were connected.

insecurable_wearables_4

It could be that the devices I found had never connected to a phone before or that the wristband was not connected to a smartphone while I was scanning (perhaps the Bluetooth on the phone was disabled). However it could also be that a pre-connected device was still available for connection despite the supposed restriction. Whatever the reason, potential fraudsters have ample opportunity to connect to fitness trackers.

However, in most cases, authentication is required in addition to the connection in order to gain access to the user data. Let’s see how my bracelet’s authentication process works.

My bracelet’s authentication

To authenticate the bracelet on a smartphone the official application uses one of the four available services on the wristband. Each characteristic of each service is flagged with ‘CharacteristicNotification‘ – this is how the app informs the wristband that it wants notifications of any change in this characteristic. Then the application gets a list of descriptors for each characteristic and sets the ‘ENABLE_NOTIFICATION_VALUE’ flag to inform the wristband that it wants notifications of any change in each descriptor.

After that one of the characteristics changes its value – the byte buffer. The application reads this buffer from the wristband: the 200f1f header and the byte array – let’s call it authBytes.

The application creates a new array. Its first part is a constant array which is contained in the application and begins with 6dc351fd44; the second part of the new array is authBytes. The application receives the MD5 hash from the new array and sends it back to the device in the following structure:

  • Header (201210051f)
  • MD5
  • Verification byte

The application then sends to the device yet another array also found in this application.

After this wristband starts to vibrate and the user just needs to press the button to complete the authentication process.

With the official application the authentication process takes about 15 seconds. I have developed an application that requires only 4 seconds to make the wristband vibrate.

It is not difficult to make the user press a single button on the wristband. You just need to be persistent. You can keep trying authentication process over and over until the user finally presses the button or moves out of range.

From just six hours of scanning I was able to connect to 54 devices despite two serious restrictions

Tweet

After authentication is completed, the data on my bracelet can be accessed. Right now, wearable fitness devices do not contain much information. Typically, they have the number of steps, the phases of sleep, the pulse for the last hour or so. Approximately once an hour the app transfers this information from the wristband to the cloud.

After the authentication, it is easy to execute commands on the device. For example, to change the time you should send to the device the byte array beginning with f0020c and then the date in the form YYYY MM DD DW HH MM SS MSMSMSMS.

Things are even easier with the other fitness trackers: for some of them, part of the data is available immediately after the connection, while the application code for Nike is not even obfuscated and can be easy read (the results of one study can be found here).

Conclusion

The results of my research show that in some cases you can connect to a wearable device without the owner even knowing.

By hacking the bracelet I have the fraudster cannot get access to all user data as this is not stored on the wristband or in the phone – the official application regularly transfers information from the wristband to the cloud.

Fitness trackers are becoming more popular and offer a wider range of functions. Perhaps in the near future they will contain more sensors and hence much more user information, often medical data. However the creators of these devices seem to think very little about their safety.

Just imagine – if a wristband with the pulse sensor is hacked, store owners could look at your pulse rate while you are looking at the prices in the store. It might also become possible to find out how people react to advertising. Moreover, a hacked wearable with pulse sensor could be used as a lie detector.

The fraudster could take control of your wristband, make it vibrate constantly and demand money to make it stop

Tweet

Of course, there are more harmful actions that are more likely. For example, by using a Trojan-Ransom the fraudster could take control of your wristband, make it vibrate constantly and demand money to make it stop.

We reported our findings to my bracelet’s vendor. The company’s response defines the findings as a UX Bug and not a security issue. For ethical and security reasons we are not disclosing the name and the model of the bracelet this time. If you’re worried about the possible consequences of cybercriminals exploiting the security issues we discovered, don’t hesitate to contact the vendor of your fitness bracelet and ask if your product is affected by the method described in the article.

We also hope that this article will be helpful not only for users but also for vendors of the bracelets to make these devices safer from the IT Security perspective.

How I hacked my smart bracelet

Your email address will not be published. Required fields are marked *

 

    1. Roman Unuchek

      1. This article is not about Nike wristband
      2. I mentioned this study in my article. “while the application code for Nike is not even obfuscated and can be easy read (the results of one study can be found here).”
      3. This work describing not only device protocol problems but also and BLE problems
      4. This research was ready before , I’ve already presented it at SAS2015 conferense. The end of Call Of Paper for this conference was November 3rd, which means that I already hade an idea of this research and some findings.

      1. Simone Margaritelli

        Ok let me put it this way, it’s a weird coincidence, although the topics are not exactly the same, they’re still quite similar and in a small time frame.
        It wouldn’t be the first time that I see my work copied by other people, so each time even if there’s the slightest possibility I tend to over react.
        Anyway, I trust your good faith as a researcher, and I have to admit that I didn’t see the link in a first place, I had to read the post twice, my bad.

  1. Fred

    I wonder if you are able to modify the firmware/software on a smartband? I have a business model which requires the button press on a smart band do something different than change modes

  2. DrChip

    Yes you can modify the firmware and they have site that you can google to dfu mod the firmware and send the update PTA to the wrist band or watch!

  3. Philo Gray

    Roman Unuchek,

    Liked your artical but have a questions Pivotal Living bans. The are out of business and now you cannot take your data off because the let the cloud subscription laps. Any way for a common person to hack the $12 ban and 1) reset the the watch, and 2) extract data,

  4. Linardo Thorne

    if I have a smart watch and android or iPhone and I connect a smart watch to my phone, is there a hack, that I can use to collect the data from the watch without using the software from the smart watch? I want to get the data and send it to another server not the smart watch server?

  5. HerrBulles

    How can I reset user average data, after I received the used smart bracelet from my wife ? It seems the data are tored for ever in the cloud and I am lost trying to reset those statistics of my wife. Could you help me , please ?

  6. Anees Mehdi

    Nicely done. Can you please educate me about which Protocol do the smart bracelets use for sending data to smartphones?

    THanks

  7. DSR

    I am quite interested in doing similar to what HerrBulles is requesting but for using a NikeFuel band that has been reset to its factory default. Normally you would need to set up a new profile by accessing the Nike Plus website, but that website has been discontinued as of 30 April 2018.

  8. Shaun

    I just got Nike fuel band and want to just activate it being that Nike discontinued last month I’m wondering if there is anyway I can get a program that can do the same thing that Nike plus connect can do? Like customize your fuel band to left or right hand tell the time and ect… please help

  9. SalvyJS

    It’s quite upsetting to use it when most of your officemates are wearing the same brand, it vibrates even if the cellphone message is not yours.

  10. Jesus

    Hello, Great article, it clear some questions for me. I have a question, how you did it to obtain the auth key for your band? I’m trying to make a new app to my band model becouse the official app is very poor but android wear can´t obtain the band characteristics and the android example neither can.

    Thanks

  11. ejump0

    Interesting writeup, despite it being 3 years ago but this problem still exist till today
    I just got myself a cheap china writband as gift and when i was connecting it to phone Yoho app, i was surprised it was so simple to pair. Not even an unique ID required, thus i have a feeling everyone can easily connect to my wristband.
    Indeed having the watch have no user input (other than press a button) make it difficult to create a 2-way authentication

  12. Lubo

    Can someone advise if problem with this app “program is collecting logs is about to exit” was solved? This message keeps poping out every 5 sevonds when i turn bluetooth on!!

  13. Peter

    Hi, nice article. Is it possible to share this app to make my Jawbone UP 2 useful again? I just want to use it’s hardware to count steps etc. via Health or other apps

  14. John

    I would like to develop a replacement app for my smart watch. It currently use the “Da Fit” app in the play store. Does anyone know the protocol for this app or how I can reverse engineer it?

Reports

APT trends report Q3 2024

The report features the most significant developments relating to APT groups in Q3 2024, including hacktivist activity, new APT tools and campaigns.

Subscribe to our weekly e-mails

The hottest research right in your inbox