Skip to content

About

An app to warn and locate you of devices nearby

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

SnitchZero

A pocket detector for the M5Stack CardputerZero. It listens to Bluetooth around you and warns about:

What it looks for
Card skimmers Serial Bluetooth modules used in pump skimmers (HC-05/06, RNBT-xxxx, module maker prefixes, "Uncategorized" device class, strong signal)
Trackers AirTag / Find My devices away from their owner, Samsung SmartTag, Tile, Chipolo, Google Find Hub tags, and whether one is following you over time and places
Smart glasses Meta (Ray-Ban / Oakley Meta), Luxottica and Snap Spectacles manufacturer IDs
ALPR cameras Flock / Penguin / Pigvision Bluetooth names and maker prefixes (see limits below)

When something shows up, Hunt mode helps you find it with a radar, distance bands and a Geiger-style beep.

Home Hunt, locked

Standard vs Lite: picked automatically

At startup SnitchZero checks the hardware and picks the best mode:

Detected Hunt mode
IMU found (standard model) Sweep radar: hold the device on your chest and turn in a circle. The gyro tracks your heading, the radar plots signal strength per direction, and an arrow points at the strongest one.
No IMU (Lite) Hot/cold: distance ring, warmer/colder trend and beeps.

Settings › Hunt mode lets you force either one. Settings › Hardware shows what was detected (model, IMU, fuel gauge, camera, Bluetooth).

The CardputerZero has no magnetometer, so the radar's "up" is where the device is pointing, not north. Heading comes from the gyro, projected onto the gravity direction, so it works however you hold the device.

Install from the CardputerZero AppStore

Search for SnitchZero or type share code SNTZ in the AppStore. To publish or update it yourself, see PUBLISHING.md.

Install from source on the CardputerZero

git clone https://github.com/ChiefFowks/snitch-zero.git SnitchZero && cd SnitchZero
chmod +x install.sh run.sh
./install.sh             # or ./install.sh --service to start at boot
# log out and back in, then:
./run.sh

Try it on any computer

pip install pygame
python3 -m snitchzero --demo            # simulated skimmer, glasses and a SmartTag that's "following" you
python3 -m snitchzero --demo --hunt-mode hotcold   # see the Lite experience
python3 -m snitchzero --screenshot out/ # render every screen to PNG (needs Pillow, not pygame)

Keys

Key Action
F X Z C (or arrow keys) Up, down, left, right
Enter Open / select (opens the detection when an alert banner is showing)
Esc, ` or Backspace Back (on the home screen: exit to the launcher)
H Hunt the selected detection
T Tips for that category
I Ignore this device (it's yours)
S Settings (home) / restart sweep (hunt)
M Mute beeps while hunting
L Detection log
Ctrl+Q Quit

How it works

scanner.py   bleak/BlueZ, LE + Classic (Transport=auto), eco duty cycle on low battery
detectors.py scores each advert; every alert lists its evidence
places.py    Wi-Fi fingerprint = "have I moved?" (no GPS needed)
hunt.py      Kalman-smoothed RSSI, 24 heading bins, bearing + trend
hardware.py  IMU (IIO sysfs or MPU6886 I2C), BQ27220 fuel gauge, camera, Bluetooth
ui/          pygame on the device, Pillow for screenshots/tests
signatures.json  detection rules, edit or update without touching code

Following logic: a tracker counts as following you if it has been seen for 20+ minutes across 2+ different places (Wi-Fi fingerprints), or for 45+ minutes when location isn't available. AirTags near their owner are ignored, since only "separated" Find My broadcasts are flagged.

Privacy: everything stays on the device. The log is at ~/.local/share/snitchzero/detections.jsonl.

Hardware notes and things to check on a real unit

The code was written before testing on a physical CardputerZero, so check these first:

  • IMU driver. Sweep mode reads the IMU through the kernel's IIO interface (/sys/bus/iio/devices), with a direct-I2C fallback for MPU6886-family chips. If Settings › Hardware shows IMU: none on a standard model, the IMU's kernel driver or device-tree overlay isn't enabled. Enable it, and SnitchZero will switch to sweep automatically.
  • Fuel gauge. The app uses /sys/class/power_supply/* if the bq27xxx driver is loaded, or reads the BQ27220 at I2C 0x55 directly otherwise.
  • Display. On the device SnitchZero runs fullscreen at 320×170 through SDL. If the LCD is a framebuffer, not DRM, set SDL_VIDEODRIVER=fbcon (or the driver M5Stack's image uses) in snitchzero.service.
  • Classic Bluetooth. Skimmer modules are mostly Bluetooth Classic. SnitchZero asks BlueZ for both transports. If HC-05 test modules don't appear, check bluetoothctl scan on sees them.

Limits (be honest with users)

  • No alert doesn't mean safe. Many skimmers have no Bluetooth, and trackers can be modified.
  • Glasses detection is "possible", not certain. Meta Quest headsets share Meta's IDs.
  • ALPR: Flock reportedly turned off the Wi-Fi AP on its cameras (late 2025), and their BLE beacons stopped being reliable (2026). Expect few hits. Bundling DeFlock map data with an optional GPS is the planned upgrade.
  • Distance is a rough band from signal strength, not a measurement. Walls, bodies and pockets change it.
  • Never connect to a suspected skimmer. Report it.

Updating detection rules

Rules live in snitchzero/signatures.json. A copy at ~/.local/share/snitchzero/signatures.json overrides the bundled file, so you can ship rule updates without a new release.

Tests

python3 -m pytest tests

About

An app to warn and locate you of devices nearby

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages