DEV Community

Safia Abdalla
Safia Abdalla

Posted on

What I learned when I tried to hack my smart vibrator

I’ve owned a smart vibrator for a little over a year now. For those of you who might not be familiar, smart vibrators are vibrators that can be controlled by an app via a Bluetooth connection. Often times, the app is connected to the Internet so a remote user can control the vibrator via the app. In that case, the remote user sends a message to the app and the app relays that message to the vibrator via Bluetooth.

I don’t do a lot of interesting projects with hardware or Internet connected devices, so I figured it would be fun to hack into my vibrator to learn a bit more about IoT devices. In this specific case, by "hack" I mean "reverse engineer the communication protocols that the vibrator and app used to communicate with each other.“ The particular vibrator I’ll be reverse engineering is the Vibease. Note to those of you who might be in an office, public library, or next to a nosy person on the train: that link will take you to an e-commerce page that sells sex toys. Hopefully, I saved you some unwanted awkwardness!

I started by doing a bit of research into Internet of Things devices that use Bluetooth in general. I figured, or I should say hoped, that there would be some sort of standardization or protocols around how Internet of Things devices utilize Bluetooth.

The first thing I figured out was the distinction between Bluetooth and Bluetooth Low Energy. Bluetooth Low Energy (sometimes referred to as Bluetooth 4.0) is a version of Bluetooth that uses less energy that prior versions. This is particularly advantageous for Internet of Things devices because it means they can run off battery for long periods of time. I can confirm this. I was pretty surprised by the number of uses that I could get out of my vibrator after a single full charge. This "low energy" distinction is a result of BLE modules remaining in "sleep mode" when not in use and thus using less energy. You can read a bit more about the differences at this link.

I decided to look around and see if there were any other articles written about reverse engineering Internet of Things devices and chanced upon this post. In the post, the author reverse engineers a smart light bulb. At this point, I don’t have the knowledge to brag, but I get the sense that what I’m trying to do might be a bit more difficult. For one, while an app that controls the color of light bulb only need to modify the color presented by the LED, a vibrator consists of several motors that sometimes need to be activated in tandem. Despite this, the post gave me some pretty good insights into BLE devices in general.

In particular, the article outlined how a peripheral device (like a vibrator) uses BLE to connect to services that represent different aspects of the device (like the battery or the motors of a vibrator) to read and write certain characteristics (like the battery level of the device or the rotations per minute on a motor). The article mentioned using an app called NRF Connect to interface with the Bluetooth device. I headed over to the App Store on my iPhone, downloaded the app, turned on my vibrator, and connected to it using the app.

Once I connected to the vibrator, the app detected three different services. The first was the Battery Service and the second was the Device Information service. It was pretty obvious to deduce what each of these services were for from their names. I figured that they were both read-only services that allowed the app (and snoopy critters like me) to read information about the battery level and details about the vibrator. The third service was labeled as "Unknown" by the NRF Connect tool. I figured this is the service that is responsible for reading and writing the state of the motors on the vibrator.

A screen capture of the services detected by the NRF Connect app on the Vibease vibrator.

I decided to navigate over the "Battery Service" to see what information I could find there. As I suspected, the "Battery Service" contains a single "Battery Level" characteristic that is "Read Notify" and contains a value of ‘0x64’. This is a hex (base 16) number that translates to 100 in decimal. It’s fully charged and ready to go!

A screencapture of the Battery Level characteristic on a Vibease.

I navigated to the "Device Information" service and noticed that it had several "Read" characteristics that pertained to the Serial Number, Model Number, and other details of the device. Here’s a screenshot of what that screen looked like with certain details obfuscated.

A screencapture of the Device Information service on a Vibease.

All this was fairly easy, but I still needed to figure out how the app interfaced with the motors. I navigated to the ominously named "Unknown Service" to see if I could figure anything out.

A screencapture of the motor services on a Vibease.

Interesting! This service contains a mix of "Read Notify" and "Write Without Response" characteristics. There are two "Read Notify" characteristics and two "Write Without Response" characteristics. I presume that each of those characteristics lines up with a motor on the vibrator. That is to say, the vibrator has two motors, each of which you can read data from and write data too. This was in line with the physical characteristics of the vibrator. It has a motor on each end, and they both operate independently of one another.

I noticed something a little strange with the two "Read Notify" characteristics that were associated with the motors. One characteristic read a value of '0x0000’ (The screen-capture above shows a value of '0x0100’ because I took it a while after I gathered the initial reading. I’m not sure why the value changed in the hour between me seeing it for the first time and me remembering to take the screenshot. More mysteries. Wow, this parenthetical is getting a little long…) which corresponded to a motor that was off (or, so I guess) and the other read a value of 'N/A’. At that point in time, the vibrator was on but not vibrating, so I found it strange that one motor would send a zero value and the other would send a null value. I decided to do a quick Google to see if this was a common issue with characteristic on BLE devices but couldn’t come up with anything useful.

Side note: Effective Googling is very difficult when you are learning something new, so I might not be formulating my queries in a way that brings up good responses. If you know something about BLE and why this might be happening, do let me know!

Anyways, I noticed that the NRF Connect app provided an option to write to characteristics that were writable. At this point, I did what any good engineer would do, I tested out random values. I tried sending '0x64’ which corresponded with the decimal value 100 to see if the characteristic was setting the power level on the motor. No dice!

A screencapture of writing 0x64 to a motor on a Vibease.

I noticed that the zero value being read by one of the characteristics was a hex number with 4 places, so I tried sending '0xffff’ but that didn’t work either. Bother!

A screencapture of sending 0xffff to a Vibease.

So at this point, I figured I would try something else. Instead of guessing values, I would open up the Vibease app on my phone, set the vibration on the app, and see what values the "Read Notify" characteristic emitted. The tricky thing was that I couldn’t use the NRF Connect and the Vibease app on my phone at the same time, so I had to figure out some way to connect to the vibrator from my laptop. I found an app called LightBlue on the Mac App Store and figured I could try to use that to read the values on each of the characteristics while I was controlled the vibrator from the app. For some strange reason, I couldn’t connect to the vibrator from my laptop while I was connected to it via the app on my phone. This actually isn’t strange, it makes total sense. If I were building a smart vibrator, I wouldn’t want multiple devices connected to it at the same time.

I decided to see if there were any Bluetooth sniffers for iOS. I wanted something that could run in the background and log all the messages sent over BLE from my phone. Knowing Apple’s focus on security, I figured that an app like this might not be available on an un-jailbroken iPhone but I tried my luck on it anyways. Some Googling led me to this StackOverflow post that provided some details about running Bluetooth in "Diagnostics Mode" on iOS. I wasn’t sure what kind of information I would be able to get out of the logs provided by Apple but I figured it was worth a shot. I ended up following the official instructions for Bluetooth logging on iOS linked to in the StackOverflow post to generate my log.

Side-note: What is it with Apple and all the outrageous key/button combinations they make you press to access diagnostic features on their products? I mean, I understand why they make it difficult for users to get to those features but geez I’m going to get arthritis by the end of all this!

The result of this diagnostic logging was a .tar.gz file located at the directory specified in the instructions referenced above. I unzipped the directory and discovered that it consisted of several diagnostics files.

Too many files to look through.

Oh boy, what did I get myself into now? At this point, I decided to utilize one of the most time-tested and expert-recommended problem solving techniques. It is called "click a bunch, read a bunch" and consists of opening and reading lots of files until you find one that makes sense.

I found a few files that seemed to be related to Bluetooth logging but opening them in Wireshark rendered some truly nonsensical data.

A Bluetooth log opened in Wireshark

I also found some files that referenced the Vibease app that I was using to control my vibrator. They ended up just being crash report files. It turns out that whenever I would try to connect to the vibrator from another device while the app was connected to it, the Vibease app would crash. Fun!

At this point, I’ve tried enough options to go back to the drawing board one more time. From doing some research, I discovered that sniffing BLE signals and getting a log that is fairly easy to parse in Wireshark was pretty trivial in Android. It felt like the Apple ecosystem was really limiting me here, then again I am new to this and might just be unaware of the right tools to use. I did some more Googling to see if there were any other Bluetooth sniffers available for iOS or Mac but didn’t run into anything. Most solutions recommended purchasing a device like the Ubertooth One, which is designed to help with Bluetooth experimentation. But this device has quite a hefty price tag. It retails for anywhere from 120 USD to 200 USD, a little out of my college student budget. I couldn’t find a way to sniff BLE signals on iOS from the phone the way it was done in Android.

I figure I would pause this little experiment here and post this blog post as is. If you consider yourself an expert in the Internet of Things and have some advice on how I should move forward, do let me know.

Although I didn’t reach my ultimate goal of reverse engineering the communication protocols used between my vibrator and its app, I learned quite a bit in this little adventure.

  • There is a lot going on under the hood when we use devices with BLE connectivity. It reminds me a little bit of those pictures showing what the world would look like if we could see WiFi signals. There is so much information constantly being transmitted that we are figuratively and literally blind too.
  • Running diagnostics on iOS apps yields a plethora of information. This is the first time I’ve profiled and logged my iPhone and it was interesting to see all the information available. I might end up doing something similar to diagnose issues with apps that I use that crash frequently. I might draft a blog post for it on here if I have the time.
  • Reverse engineering is fun (and sometimes frustrating).

Until next time!

Top comments (16)

Collapse
 
flozzy_a6e041eb1161a75552 profile image
Flozzy

RECOVER YOUR LOST/STOLEN BITCOIN WITH THE HELP OF HACKERONE975
Hackerone975 @ gm ail. c om, a wonderful team, they helped me recover my lost money from scammers, I had just lost my husband at the time I was scam med $80,000 ,I felt like it was over for me, I was depressed and almost committed suicide but thanks to Hackerone975 @ gm ail. c om for coming to my rescue, deep thanks to Hackerone975 @ gm ail. c om for the good work, you guys are the best

Collapse
 
susan_djokovic_f3b44fc8a0 profile image
Susan Djokovic

Few days ago I came online in search of a hacker that I could hire to do a spy job for me, it was very important so I needed a strong hacker for my job. I came across several reviews but I figured hackerone975 @ gmail com was well praised for doing similar jobs that I needed. I decided to give this hacker on google mail the job, he gave me 4 hours to wait for results and then he came in. I was more surprised when I was informed I could see everything like a website. I'm Grateful , everyone please reach out to him hackerone975 @ gmail com ; he is top notch

Collapse
 
susan_djokovic_f3b44fc8a0 profile image
Susan Djokovic

Cheating is the new trend of nowadays people find it difficult to be faithful to their spouse’s prolly due to lack of self respect or contentment but the good news here is you can keep tab on your cheating spouse to know if truly they worth giving your love and treasure before you lose them all. No other person than Hackerone975 Contact via hackerone975 @gmail com” is the real deal that can help you spy on your spouse’s phone to retrieve vivid cheat proof to clarify your claim and doubts. Write Hackerone975 now and be glad you did hackerone975 @gmail com

Collapse
 
tim_baileys_d915a3eb3607f profile image
Tim Baileys

I was looking for the best and fast app to trace, track and monitor my spouse activities on her phone after I discovered she’s been acting strange lately and taking late night calls. Then I came on the internet to hire a genuine techie to remotely monitor her phone I got introduced to RECOVERYBUREAUC @ GMAIL, C0M and I thank my stars he was indeed competent and legit. He got me access to my spouse phone like I got her phone in my palm and it was all done discretely. Then I figured out she has been cheating all along the relationship. He is the only genuine and the best tech guru to hire for all tech services from full mobile phone cloning to retrieval of lost/stolen digital assets

contact details: RECOVERYBUREAUC(at)GMAIL, C0M
WhatsApp: +1 835 227 9489

Amazing!!!

Collapse
 
zion_romero_626fd32371b71 profile image
Zion Romero

I had a suspicion on my wife few days back but couldn’t catch her redhanded in her sneaky way so I searched on the internet for a professional tech personnel who can assist me to remotely access her phone to gain vivid cheat proof and evidence. Then I found RECOVERYBUREAUC at  G M A IL, C0M who rescued me and gave me access to her texts, call logs and audio-visual files. He’s the real deal 

WhatsApp: +1 835 227 9489

Collapse
 
zion_romero_626fd32371b71 profile image
Zion Romero

Catch your cheating partner redhanded in their sneaky ways when you hire RECOVERYBUREAUC @ GMAIL, c0m. This was the expert that saved me from my cheating wife couple of weeks ago when I had a suspicion on her but couldn’t figure out exactly her ways. I was fortunate to hire this genuine tech pro to remotely access my wife’s cellphone and gave me access to her phone files ranging from iMessage, text messages, call history, Snapchat, gallery, videos etc. All these contents were both hidden, current and deleted files. This was how I got to know about her love affair with a colleague at her work place. I was shocked about all the details I retrieved but I’m glad that I’m freed from the shackles of a cheater. I’m currently in our divorce proceedings and this files are really helping me out in the court cases. Many thanks to RECOVERYBUREAUC @ GMAIL, c0m for rendering this intellectual phone monitoring service.

Email: RECOVERYBUREAUC @ GMAIL, C0M

WhatsApp: +1 835 227 9489

Collapse
 
gianna_jones_9eaaf8c6bf42 profile image
Gianna Jones

Are you suspecting your partner of cheating or having an extramarital affair? I’ll advice you to get proof first before confronting him/her. As that could result in unnecessary confusion in your relationship or marriage. it’s always advisable to consult a professional hacker to help you get concrete evidence by discreetly getting access to their phone or computer. he has forked for me a couple of times and he never disappoints. he provides accurate results and can be trusted for 100% privacy and untraceable.
Contact him via REMOTESPYWISE @ GM AIL C O M.

Collapse
 
peter_gonzalez_dcefaa898b profile image
Peter Gonzalez

CONTACT ETHICALHACKERS009@GMAIL COM OR WHATSAPP +14106350697 for all your hacking or pi job, they are competent and very reliable at what they do, they helped me get out of a very dear court case after providing evidence to prove that my spouse was cheating on me,they got my credit score up and erased all my bad credit history. they are the best at what they do i can assure you a swift and competent job with them, hire them for any hacking or pi job at all contact them and thank me later

Collapse
 
daria_fyodor_0e4d5cb7fd65 profile image
Daria Fyodor

If you're looking for a top-quality phone monitoring solution, REMOTESPYWISE @ GM AI L C O M is the answer. Their innovative application and link works quickly and easily, so you can get started right away. Installation is simple and takes just a few minutes, so you'll be up and running in no time. And their friendly support chat is always available to answer any questions you may have. They are the best when it comes to any kind of cellphone monitoring services

Collapse
 
elena_woods_253d36ab12736 profile image
Elena Woods

I don’t really spend quality time with my husband because of work and all but I try my best as always, I needed to know what my husband has been up to so before I traveled for a confrence meeting in another state I decided to contact a hacker in other to see everything my husband does on his phone, that is to say I got my husband phone hacked and i got to monitor what ever he does on his phone, after going through my husband phone remotely with the help of them. I found out that my husband was never faithful to me even before we got married I got too see a-lot I never knew about my husband. I cant thank you enough (cyberdemoncracker @ gmail. com ) indeed your services are the best thank you so much I appreciate you always. Just incase you suspect your partner of cheating you can contact them to clear your doubts just as I did.

Some comments may only be visible to logged-in visitors. Sign in to view all comments.