Skip to content

TylerTucker/BluesClues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blue's Clues: Practical Discovery of Non-Discoverable Bluetooth Devices

This repository accompanies the paper presented at the 2023 IEEE Symposium on Security and Privacy

Approach

We have combined an edited version of the Bluetooth packet sniffer code presented in the work Even Black Cats Cannot Stay Hidden in the Dark (S&P '20) with the open-source Bluetooth module Ubertooth One to fully de-anonymize nearby Bluetooth Classic devices.

The sniffer program will recover the LAP of local devices while also narrowing down the possibilities of the UAP to a minimum of two. It will send these possibilities to the Ubertooth One, which will attempt to establish a connection to the victim device and log any information it receives from that device (e.g., MAC address, device name, Bluetooth version, capabilities, chip manufacturer, host manufacturer).

Hardware Requirements

USRP B210 Software-Defined Radio (SDR)
Ubertooth One Bluetooth Transceiver

Installation

We provide install and uninstall scripts for convenience. This scripts assumes that you do not have UHD 3.15 LTS, ubertooth, libbtbb, or btsniffer previously installed on your machine. To use those, run:

chmod +x install.sh
sudo ./install.sh

or

chmod +x uninstall.sh
sudo ./uninstall.sh

To perform a manual installation, follow the steps below.

Install Dependencies

sudo apt-get install bluez libbluetooth-dev python-setuptools python3-setuptools python3-zmq gcc-arm-none-eabi libnewlib-arm-none-eabi
python3 -m pip install pandas
cd libbtbb
mkdir build
cd build
cmake ..
make && sudo make install && sudo ldconfig
cd ../../uhd/host
mkdir build
cd build
cmake ..
make && sudo make install && sudo ldconfig
cd ../../..

Install Ubertooth

We adapted the installation instructions found here with the most recent GitHub repository.

cd ubertooth/src/host
mkdir build
cd build
cmake ..
make && sudo make install && sudo ldconfig
cd ../../firmware/btbr
make
cd ../../../..

Update udev permissions

To interact with the Ubertooth One, we have to update Linux udev permissions. This assumes that your account is in the plugdev group.

sudo touch /etc/udev/rules.d/99-ubertooth.rules
sudo chown $(whoami) /etc/udev/rules.d/99-ubertooth.rules
echo 'ACTION=="add" BUS=="usb" SYSFS{idVendor}=="1d50" SYSFS{idProduct}=="6002" GROUP:="plugdev" MODE:="0660"' > /etc/udev/rules.d/99-ubertooth.rules
sudo udevadm control --reload-rules

Install btsniffer

We use the single-board version of btsniffer, which is designed to run on a single USRP B210.

cd btsniffer/single-board
mkdir build
cd build
cmake ..
make
cd ../../..

Run

Before running Blue's Clues, we need to program the Ubertooth with the proper firmware.

Program Ubertooth:

ubertooth-dfu -d btbr.dfu -r

We need to run two programs simultaneously to achieve full de-anonymization. In one terminal, we run the btsniffer code. In a second, we run the Ubertooth code.

Run btsniffer:

cd btsniffer/single-board
mkdir build
cd build
./btsniffer

Run ubertooth:

cd ubertooth/src/host/python/ubtbr
./ubertooth-btbr-thread

The ubertooth program will log successfully-detected devices in an SQLite file called blues.sqlite

About

Discover Non-Discoverable Bluetooth Classic devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published