Install · Use · Limits · Signatures · Agent skills · Contribute
bugsweep checks the radio around you for things that can track, film or record you: location trackers, smart glasses, AI recorder pendants, cameras and body cameras. It runs on an ordinary laptop, with no extra hardware, and keeps everything on your machine.
| It finds | How | |
|---|---|---|
| 📡 | Trackers: AirTag, Find My tags, Samsung SmartTag, Tile, Chipolo, Pebblebee, Google Find Hub and DULT tags | Bluetooth LE frames, with the "away from its owner" state |
| 🕶️ | Smart glasses: Ray-Ban and Oakley Meta, Even Realities, Brilliant Labs, Rokid, Mentra and more | Company IDs, services and names |
| 🎙️ | AI recorders: Plaud, Limitless, Bee, Friend, Omi and more | Company IDs, services and names |
| 📹 | Cameras and body cams: IP cameras, NVRs, GoPro, DJI, Insta360, Axon, WatchGuard | Bluetooth, ONVIF, RTSP, camera ports and adapter makers |
| 🚶 | Followers: a device that turns up at two or more of your places | A local log of sightings |
bugsweep does four jobs with one signature database:
- Room sweep. It scans Bluetooth LE and classifies each device. A finder screen shows the signal of one device so you can walk towards it.
- Recorder alert. Smart glasses, voice recorders and trackers that are away from their owner show at the top of the list.
- Follower check. A local log records where each device was seen. A device that turns up at two or more places is flagged.
- Network camera sweep. It looks for IP cameras and video recorders on the local network (ONVIF discovery, RTSP, vendor ports, and the maker of each network adapter).
Linux and macOS (x86_64 and Apple silicon / arm64):
curl -fsSL https://raw.githubusercontent.com/danjdewhurst/bugsweep/main/install.sh | bashThe script picks the right build for your system, checks its SHA-256 sum and
installs bugsweep to ~/.local/bin. The Linux builds need glibc 2.35 or
later (Ubuntu 22.04, Debian 12, Fedora 36 or newer). Options:
# a specific version, into another directory
curl -fsSL https://raw.githubusercontent.com/danjdewhurst/bugsweep/main/install.sh | bash -s -- --version v0.1.0 --dir ~/bin
# for all users (needs sudo)
curl -fsSL https://raw.githubusercontent.com/danjdewhurst/bugsweep/main/install.sh | sudo bash -s -- --dir /usr/local/binWindows: download bugsweep-x86_64-pc-windows-msvc.zip from the
latest release.
From source (Rust 1.89 or later; on Linux, first install libdbus-1-dev
and pkg-config):
cargo install --locked --git https://github.com/danjdewhurst/bugsweepEach release archive has a .sha256 file and a
build provenance attestation.
Check one with gh attestation verify <archive> --repo danjdewhurst/bugsweep.
This is a radio check, not proof that a room is clean. bugsweep cannot see:
- a recorder or camera that only saves to a memory card,
- a wired camera, or a camera on a different network,
- a GSM/LTE bug,
- a device whose Bluetooth is off,
- smart glasses that are already connected to their phone. Meta glasses advertise only at power-on, pairing or reconnect,
- the difference between a cloud camera and a smart-home hub. A camera that only uploads to the cloud opens no ports, and on the network it looks the same as a heating bridge or a charger hub. Only the volume of its upload traffic can separate them, and bugsweep does not measure traffic.
Many signatures are heuristics. The details pane shows the confidence, the kind of evidence and the source of each finding. A finding means "look at this", not "this is a bug".
Do not run heavy port scans (for example a scan of all 65,535 ports) against
the devices of other people. Small IoT devices can stop for many minutes
after such a scan. bugsweep lan tries only a few camera ports on each host.
Important
If you think that someone tracks you, your safety comes first. Contact local police or a domestic-abuse support service. Record what you find before you remove or disable a tracker.
bugsweep # terminal interface
bugsweep gui # desktop window
bugsweep scan # scan for 15 s and print a table
bugsweep scan --json --seconds 30
bugsweep scan --flagged # only devices that need attention
bugsweep lan # network camera sweep
bugsweep lan --all # also list hosts without camera evidence
bugsweep followers # devices seen at two or more places
bugsweep known list # devices that you marked as yours
bugsweep known add ID... # mark devices as yours (the `id` of scan --json, or a key from followers)
bugsweep known remove ID... # remove the mark
bugsweep signatures # list the signature databaseGlobal options: --place NAME, --signatures FILE, --db FILE, --no-log.
The device lists leave out an entry that has no data at all: no signal value, name, transmit power, company ID, service or service data. Such an entry is noise, for example a device that the system remembers from before.
Keys in the terminal interface:
| Key | Action |
|---|---|
↑ ↓ / j k |
select a device |
f or Enter |
finder for the selected device |
m |
mark the device as known (yours), or remove the mark (scripts: bugsweep known) |
a |
show all devices, or only flagged devices (Bluetooth view); show all hosts (network view) |
Tab, 1 2 3 |
change the view |
l |
start the network sweep (network view only) |
q |
quit |
The desktop window (bugsweep gui) has the same three views as the terminal
interface. Click a device to see its details. The buttons in the details pane
open the finder and mark a device as yours.
The network sweep sends connection attempts to each address of the local network. Run it only on a network where you are allowed to do that.
The sweep reports a host as a camera when it answers ONVIF discovery, answers
RTSP, has a camera-specific port open, or has a network adapter from a camera
maker. The last test also finds cloud cameras, which have no open ports. It
cannot find a camera that uses a general-purpose Wi-Fi chip and opens no
ports; lan --all lists every host with its vendor so you can check by hand.
Some hosts get a note that asks for a manual check: a host with a Wi-Fi chip
that many low-cost cameras use (for example Espressif), and a Raspberry Pi
(a small Linux computer that can run a camera). Without --all, lan gives
the number of these hosts and their vendors. In --json, these hosts have
"needs_check": true.
The sweep also asks each host for its name and its services. It sends a
reverse DNS query to the default gateway, and unicast mDNS queries to the
host on UDP port 5353. The results are in name (for example
heat-hub-1234.local) and services (DNS-SD service types, for example
_hap._tcp or _meshcop._udp). The device chooses this text, so a camera
can give a false name. A name or a service never changes a verdict or a
note. Use it only to find the device for a physical check.
- The text keeps only ASCII letters, digits,
-,_and.. - The query to the gateway does not ask for recursion. Most routers then answer only from their own data (for example their DHCP leases).
- The gateway gets questions only for the hosts on its own network.
- On Windows, bugsweep cannot find the gateway yet, so only mDNS names show.
- The name queries add at most about 2.5 s to the sweep.
A laptop has no GPS. By default the place is a key made from the MAC address
of the default gateway, so each network is one place. Give a name with
--place hotel-rome when you want a readable one, or when there is no network.
The log is a SQLite file in the user data directory
(~/Library/Application Support/bugsweep/bugsweep.db on macOS). It never
leaves the machine. Sightings older than 90 days are deleted. Mark your own
devices with m (or bugsweep known add), or they show as followers.
bugsweep known add takes the id from scan --json, a key from the
keys list of scan --json, or a key that followers prints (id:…,
name:…, findmy:… and so on). A device can have more than one key.
- When bugsweep next sees a device with a known key, it marks all keys of that device.
followersshows one key for each device. After you mark it,followerscan show another key of the same device. Check it, and mark it too if the device is yours.- A mark on a
name:,data:orsvc:key also hides each other device that sends the same name or data. A planted tracker can copy a name. Prefer theid:key and the tracker keys (findmy:,fmdn:,smarttag:). - To remove the mark from a device, remove each of its keys that
known listshows. If you do not, bugsweep marks the device again the next time that it sees it.
Most devices change their Bluetooth address every few minutes, and the platform ID changes with it. bugsweep therefore keeps more than one identity key for each device and reports which kind of key matched:
| Match | Key | Strength |
|---|---|---|
| same ID | the platform ID | Exact, but it changes with the address. |
| same tracker key | the public key or ID in a Find My, Find Hub or SmartTag frame | Exact. Stays for about 24 hours while the tracker is away from its owner. |
| same name | the advertised name | Two devices of the same model can have the same name. |
| same data | a payload that did not change for 60 seconds | Weakest. Two devices of the same model can send the same data. Shown at level "low". |
Limits: a tracker changes its key about once a day, by design, so no tool can link it from one day to the next. A device that sends no name and changes its payload cannot be followed across an address change.
The database is data/signatures.toml. The format is described at the top of
that file. Each signature has a severity, a confidence, a source and a kind of
evidence:
| Evidence | Meaning |
|---|---|
spec |
official specification, or the vendor's own source code or firmware |
research |
paper or published capture from a real device |
code |
source code of another client or detector |
registry |
the ID is registered to the vendor, but its use in advertisements is not proven |
guess |
name pattern or assumption |
A specific signature can list less specific ones in overrides. When both
match, only the specific one is reported. Additions are welcome, most of all
rules that were confirmed against a real device.
Test a signature file without a rebuild:
cargo run -- --signatures my-signatures.toml scanVendor names come from the public Bluetooth SIG assigned numbers and the IEEE
registry of MAC address prefixes. Refresh them with scripts/update-vendors.sh.
bugsweep ships agent skills so a coding agent (Claude Code, Codex, Cursor, OpenCode and others) knows how to run the CLI and read its output:
| Skill | What the agent learns |
|---|---|
bugsweep |
install bugsweep, run a sweep with --json, read the results, and report them with their limits |
bugsweep-signatures |
write, test and contribute a signature from a Bluetooth capture |
Install them with skills.sh (needs Node.js):
npx skills add danjdewhurst/bugsweep # both skills, this project
npx skills add danjdewhurst/bugsweep --skill bugsweep -g # one skill, all projects
npx skills add danjdewhurst/bugsweep -a claude-code # one agent onlyThen ask your agent, for example: "Sweep this room for trackers and hidden cameras."
- macOS: the terminal app needs the Bluetooth permission (System Settings
→ Privacy & Security → Bluetooth). This also applies to
bugsweep gui, because the window gets the permission of the terminal that starts it. macOS hides MAC addresses, so rules withaddress_prefixdo not work there. - Linux: needs BlueZ. Gives MAC addresses.
bugsweep guineeds a desktop with X11 or Wayland and OpenGL. - Windows: should work through WinRT. Not tested yet.
cargo fmt --all # format
cargo clippy --all-targets -- -D warnings # lint
cargo test # unit and CLI tests (no Bluetooth needed)
cargo coverage # tests with line coverage, must be 100% (needs cargo-llvm-cov)
bash tests/install.sh # test install.sh against a fake releaseOn Linux, the build needs libdbus-1-dev and pkg-config. CI runs clippy and
the tests on Linux, macOS and Windows, the install-script test on Linux and
macOS, and also checks the format, 100% line coverage, the minimum Rust version, ShellCheck, and
cargo-deny licences and advisories.
Versions follow Semantic Versioning. Commit messages on
main follow Conventional Commits
(feat:, fix:, docs: …). release-please
turns them into a release PR that bumps the version and updates
CHANGELOG.md. Merging that PR tags the release, and the
release workflow builds and uploads the binaries.
| File | Job |
|---|---|
src/cli.rs |
command line, and the Hardware trait that tests replace |
src/hardware.rs |
the real Bluetooth adapter, network sweep, terminal and window (no coverage) |
src/ble.rs |
Bluetooth LE scan loop |
src/signatures.rs |
signature database and matcher |
src/session.rs |
live device list, levels, link to the log |
src/identity.rs |
identity keys that survive an address change |
src/store.rs |
SQLite log, known devices, followers |
src/place.rs |
place key from the default gateway |
src/lan.rs |
network camera sweep |
src/dns.rs |
DNS and mDNS queries for host names and services |
src/tui.rs |
terminal interface (ratatui) |
src/gui.rs |
desktop window (egui) |
src/vendors.rs |
company, service-UUID and MAC-prefix owner names |
The signatures build on public work by many people, most of all
AirGuard (SEEMOO, TU Darmstadt), the
Apple Find My and Google Find Hub specifications, the IETF
DULT drafts,
Omi,
all-cameras-are-beacons
and flock-you. The source
field of each signature names its origin. Vendor names come from the Bluetooth
SIG assigned numbers and the IEEE MA-L registry.
MIT © Dan Dewhurst