Skip to content

Rust tool to detect cell site simulators on an orbic mobile hotspot

License

Notifications You must be signed in to change notification settings

EFForg/rayhunter

Repository files navigation

Rayhunter Logo - An Orca taking a bite out of a cellular signal bar

Rayhunter

Tests

Rayhunter is an IMSI Catcher Catcher for the Orbic mobile hotspot.

THIS CODE IS PROOF OF CONCEPT AND SHOULD NOT BE RELIED UPON IN HIGH RISK SITUATIONS

The Hardware

Rayhunter has been built and tested for the Orbic RC400L mobile hotspot. It may work on other orbics and other linux/qualcom devices, but this is the only one we have tested on. Buy the orbic using bezos bucks Or on Ebay

Setup

NOTE: We don't currently support automated installs on windows, you will have to follow the manual install instructions below

  1. Download the latest Rayhunter release bundle and extract it. If you are installing from the cloned github repository please see the development instructions below, running install-linux.sh from the git tree will not work.
  2. Turn on the Orbic device and plug it into your computer using a USB-C Cable.
  3. Run the install script inside the bundle corresponding to your platform (install-linux.sh, install-mac.sh). The Linux installer has only been tested on the latest version of Ubuntu. If it fails you will need to follow the install steps outlined in Development below.
  4. Once finished, Rayhunter should be running! You can verify this by visiting the web UI as described below.

Usage

Once installed, Rayhunter will run automatically whenever your Orbic device is running. It serves a web UI that provides some basic controls, such as being able to start/stop recordings, download captures, and view heuristic analyses of captures. You can access this UI in one of two ways:

  1. Over wifi: Connect your phone/laptop to the Orbic's wifi network and visit http://192.168.1.1:8080 (click past your browser warning you about the connection not being secure, Rayhunter doesn't have HTTPS yet!)
    • Note that you'll need the Orbic's wifi password for this, which can be retrieved by pressing the "MENU" button on the device and opening the 2.4 GHz menu.
  2. Over usb: Connect the Orbic device to your laptop via usb. Run adb forward tcp:8080 tcp:8080, then visit http://localhost:8080. For this you will need to install the Android Debug Bridge (ADB) on your computer, you can copy the version that was downloaded inside the releases/platform-tools/` folder to somewhere else in your path or you can install it manually. You can find instructions for doing so on your platform here, (don't worry about instructions for installing it on a phone/device yet).

Frequently Asked Questions

Do I need an active SIM card to use Rayhunter?

It Depends. Operation of Rayhunter does require the insertion of a SIM card into the device, but whether that SIM card has to be currently active for our tests to work is still under investigation. If you want to use the device as a hotspot in addition to a research device an active plan would of course be necessary, however we have not done enough testing yet to know whether an active subscription is required for detection. If you want to test the device with an inactive SIM card, we would certainly be interested in seeing any data you collect, and especially any runs that trigger an alert!

Help, Rayhunter's line is red! What should I do?

Unfortunately, the circumstances that might lead to a positive CSS signal are quite varied, so we don't have a universal recommendation for how to deal with the a positive signal. You might also want to turn off your phone until you are out of the area (or put it on airplane mode,) and tell your friends to do the same!

Please feel free to contact an EFF technologist with more information & a copy of the QMDL in question at [email protected]. Please note that this file may contain sensetive information such as your IMSI and the unique IDs of cell towers you were near which could be used to ascertain your location at the time.

Does Rayhunter work outside of the US?

Probably. Some Rayhunter users have reported successfully using it in other countries with unlocked devices and SIM cards from local telcos. We can't guarantee whether or not it will work for you though.

Should I get a locked or unlocked orbic device? What is the difference?

If you want to use a non verizon SIM card you will probably need an unlocked device. But it's not clear how locked the locked devices are nor how to unlock them, we welcome any experimentation and information regarding the use of unlocked devices.

Does Rayhunter work on any other devices besides the Orbic RC400L?

Maybe. We have not tested Rayhunter on any other hardware but we would love to expand the supported platforms. We will consider giving official support to any hardware platform that can be bought for around $20-30USD. The Rayhunter daemon should theoretically work on any linux/android device that has a qualcomm chip with a /dev/diag interface and root access, though our installer script has only been tested with an Orbic. If you get it working on another device, please let us know!

Development

  • Install ADB on your computer using the instructions above, and make sure it's in your terminal's PATH
    • You can verify if ADB is in your PATH by running which adb in a terminal. If it prints the filepath to where ADB is installed, you're set! Otherwise, try following one of these guides:

If you're on x86 linux

Install rust the usual way and then install cross compiling dependences:

sudo apt install curl build-essential libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf
rustup target add x86_64-unknown-linux-gnu
rustup target add armv7-unknown-linux-gnueabihf

Now you can root your device and install Rayhunter by running ./tools/install-dev.sh

If you're on windows or can't run the install scripts

  • Root your device on windows using the instructions here: https://xdaforums.com/t/resetting-verizon-orbic-speed-rc400l-firmware-flash-kajeet.4334899/#post-87855183

  • Build for arm using cargo build

  • Run tests using cargo test_pc

  • Push the scripts in scripts/ to /etc/init.d on device and make a directory called /data/rayhunter using adb shell (and sshell for your root shell if you followed the steps above)

  • you also need to copy config.toml.example to /data/rayhunter/config.toml

  • Then run ./make.sh this will build the binary and push it over adb. Restart your device or run /etc/init.d/rayhunter_daemon start on the device and you are good to go.

  • Write your code and write tests

  • Build for arm using cargo build

  • Run tests using cargo test_pc

  • push to the device with ./make.sh

Documentation

  • Build docs locallly using RUSTDOCFLAGS="--cfg docsrs" cargo doc --no-deps --all-features --open

LEGAL DISCLAIMER: Use this program at your own risk. We beilieve running this program does not currently violate any laws or regulations in the United States. However, we are not responsible for civil or criminal liability resulting from the use of this software. If you are located outside of the US please consult with an attorney in your country to help you assess the legal risks of running this program.

Good Hunting!

About

Rust tool to detect cell site simulators on an orbic mobile hotspot

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages