Esp Canary Save

Simple ESP8266 / ESP32 Canary that simulates predefined application server and notifies you using E-mail, Telegram, etc if it was accessed.

Project README

ESP Build Codacy Badge

esp-canary

LOGO

What

This is simple ESP-8266 or ESP-32-based canary application that:

  • connects to a local Wifi:
  • acts as a Tomcat server
  • listens to a different Ping type requests on local network
  • notifies you if it is being accessed or scanned via Telegram

Before #27 it had also MQTT / E-mail capabilities, but I found that unused on one side and uses to much memory & there were no sense of having canary that would store access attempts for later investigation. It has to be instant - so you can react as soon as something happens.

Why

My home network had grown exponentially with each added device: laptops, phones, nas, RPi's, smart-home devices. Even with correctly configured firewall - each of them poses a security threat.

I was looking for some simple bash script / application that would notify me when network is breached since first thing after getting in would be scanning the network.

The question was not if but when this would happen.

Prerequisite:

  • Any of ESP8266 or ESP32 based boards.
  • Visual Studio Code + Platformio plugin in order to build and upload project

How to use:

  • Clone project
  • Update src/user_config.h contents with your settings
  • Upload file system image using platformio - PlatformIO: Upload file system image or pio run -t uploadfs
  • Upload sketch using PlatformIO: upload

Configuration: Home-Assistant configuration

Scanner tools status:

NMap:

  • Reacts to a NMap -A scan.
  • Does not react to a ping scan (nmap -sn), regular scan (nmap) or quick scan (nmap -T4 -F)
  • Reacts to quick scan plus (-sV -T4 -O -F --version-light ) or higher (intense or slow)

Advanced IP Scanner (2.4):

  • Reacts to a standard scan

Network Analyzer 7.7 (iOS):

  • Does not react to port scan.

TODOs:

See TODO List

Credits:

Open Source Agenda is not affiliated with "Esp Canary" Project. README Source: shafr/esp-canary
Stars
40
Open Issues
7
Last Commit
2 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating