I wrote a small Ruby script to detect new mac addresses (roughly equivalent to detecting a new device) on your wireless network. It allows you, via gmail, to receive an alert when a new device is detected on the network, which could mean you have a compromised network.

Here’s the gist: https://gist.github.com/beta0x64/afbc46ba7b173f4411ca