Twitter icon
Facebook icon
LinkedIn icon
Google icon
Reddit icon
StumbleUpon icon
Del.icio.us icon

Speaker Snitch

Added to IoTplaybook or last updated on: 03/11/2021
Speaker Snitch

Story

Speaker Snitch

How can you really know when your smart speaker is listening and sending data to the cloud? There have been documented cases in which up to a minute of speech has been transferred to the cloud without a wake-word having been spoken.

Speaker Snitch can give an absolute answer to this question by sniffing local network traffic and flashing a light sitting next to the speaker any time there is traffic between the speaker and the vendor's cloud service.

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
 
× 1

Newark

Adafruit

The Pi Hut

SparkFun

Arduino Nano 33 IoT
Arduino Nano 33 IoT
 
× 1

Arduino

Flora RGB Neopixel LEDs- Pack of 4
Adafruit Flora RGB Neopixel LEDs- Pack of 4
 
× 1

Adafruit

CPC

How It Works

A Raspberry Pi computer promiscuously sniffs packets on the local network. A Python script parses these packets, looking for any communication between the smart speaker and the vendor's cloud service. When detected, an API endpoint on an Arduino Nano 33 IoT microcontroller development board is accessed. This causes an LED attached to the Arduino to flash, thus alerting you to a speaker sending data to the vendor.

A single Raspberry Pi can trigger alerts on a number of Speaker Snitch devices all throughout your home.

Use

Packet parsing and control of the Speaker Snitch devices is handled by a simple Python script. From the Raspberry Pi, the script is launched with:

sudo tcpdump -U -i wlan0 host [SPEAKER IP ADDRESS] | stdbuf -o0 python3 -u snitch.py

For example:

sudo tcpdump -U -i wlan0 host 192.168.1.196 | stdbuf -o0 python3 -u snitch.py

The Arduino devices are controlled by this sketch.

Media

YouTube:

Speaker Snitch, top:

Speaker Snitch, angle:

Raspberry Pi 3 B+:

Bill of Materials

  • 1 x Raspberry Pi 3 B+ (or similar)
  • 1 x Arduino Nano 33 IoT
  • 1 x NeoPixel RGB LED
  • 1 x Battery pack (for Arduino)
  • Miscellaneous wires

About the Author

Nick A. Bild, MS

Credits

Nick Bild

Nick Bild

R&D, creativity, and building the next big thing you never knew you wanted are my specialties.

 

Hackster.io

This content is provided by our content partner Hackster.io, an Avnet developer community for learning, programming, and building hardware. Visit them online for more great content like this.

This article was originally published at Hackster.io. It was added to IoTplaybook or last modified on 03/11/2021.