Put a fake server on your own LAN. Anything that touches it is telling on itself.

There is a box on my network that does nothing. It has a hostname that sounds like a backup NAS, six open ports that look like a tired Ubuntu server, and no legitimate reason for any device in the house to ever speak to it.

So when something does, my phone buzzes.

That's the entire trick, and it's older than most of the security industry. Real services have real traffic, which means real noise to dig through. A decoy has no traffic at all. Its baseline is zero, and zero is the easiest number in the world to alert on.

Why a Decoy Beats Another Dashboard

Mandiant's M-Trends 2026 put the global median dwell time at 14 days: two weeks between an intruder getting in and anyone noticing. Organizations that caught it themselves did so in about 9 days. The ones who heard about it from someone else waited a median of 25. And in the intrusions where initial access got handed off to a second crew, the median handoff took 22 seconds.

Those are corporate numbers with corporate budgets. Your house has a router, a dozen smart plugs from brands that stopped shipping firmware in 2023, a kid's gaming laptop, and you. Nobody is reading your logs. Nobody is going to call you in 25 days.

Whatever lands on a home network first does what intruders always do: it looks around. It sweeps the subnet, knocks on SSH, tries the file shares. A decoy turns that first look into a push notification. You stop needing to win the detection game in general. You only need to be the thing they touch.

The Bait Box

Any always-on Linux machine works. An old laptop with the lid closed is fine. I like a Raspberry Pi 4 Model B [AFFILIATE: Raspberry Pi 4 Model B] on Ethernet because it draws a few watts and disappears behind the router.

Two setup details make the trap believable:

  1. A reserved IP in your router's DHCP settings, so the address never moves and your alerts stay readable.
  2. A boring, tempting hostname. Something like ds220-backup reads as a Synology box full of family photos and tax PDFs. That's what someone poking around a home network wants.

If you run a real SSH server on this machine, move it off port 22 first, because the trap needs that port. In /etc/ssh/sshd_config set Port 2222, restart sshd, and confirm you can still log in on 2222 before you go further. Locking yourself out of your own honeypot is a rite of passage you can skip.

Option One: OpenCanary in Ten Minutes

Thinkst, the company behind the commercial Canary appliances, publishes an open-source version called OpenCanary. It needs Python 3.10 or newer. On Ubuntu or Raspberry Pi OS:

$ sudo apt-get install python3-dev python3-pip python3-virtualenv python3-venv python3-scapy libssl-dev libpcap-dev $ virtualenv env/ $ . env/bin/activate $ pip install opencanary $ sudo env/bin/opencanaryd --copyconfig 

That last command writes a JSON config to /etc/opencanaryd/opencanary.conf. Open it, set "device.node_id" to something unique, and flip the services you want from false to true: "ssh.enabled", "telnet.enabled", "http.enabled", plus "portscan.enabled" if you want scan detection (Linux only, since it manipulates iptables). The sample config already logs to /var/tmp/opencanary.log as one JSON object per line.

Start it and let it drop root once the ports are bound:

$ . env/bin/activate $ opencanaryd --start --uid=nobody --gid=nogroup 

OpenCanary is the right call if you want breadth: it speaks enough of many protocols to keep a curious visitor engaged, and it can push alerts through its own logging handlers. The cost is a stack of dependencies you didn't write, sitting on a box you're trusting to tell you the truth.

Option Two: A Tripwire You Can Read in One Sitting

I wanted something I could audit end to end, so I wrote a small one. Standard library only. It opens six ports, plays a convincing banner on the ones where a banner is expected, records who connected and the first thing they said, and sends a push through ntfy. It refuses to keep passwords: on the fake web login it stores the request line and whether credentials were attempted, never the credentials themselves.

#!/usr/bin/env python3 """tripwire: fake services on a box nothing should ever touch.""" import asyncio import json import os import time import urllib.request from datetime import datetime, timezone PORTS = { 21: b"220 (vsFTPd 3.0.5)\r\n", 22: b"SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.5\r\n", 23: b"\r\nDS220 login: ", 80: None, # wait for the request, answer with a login prompt 445: None, # say nothing, just listen 3389: None, } LOG = os.environ.get("TRIPWIRE_LOG", "/var/lib/tripwire/hits.jsonl") NTFY = os.environ.get("TRIPWIRE_NTFY") # https://ntfy.sh/<long random topic> IGNORE = set(filter(None, os.environ.get("TRIPWIRE_IGNORE", "").split(","))) QUIET_SECONDS = 300 # one push per source per five minutes last_alert = {} HTTP_401 = (b"HTTP/1.1 401 Unauthorized\r\n" b'WWW-Authenticate: Basic realm="DS220"\r\n' b"Content-Length: 0\r\nConnection: close\r\n\r\n") def alert(src, port, body): now = time.time() if not NTFY or now - last_alert.get(src, 0) < QUIET_SECONDS: return last_alert[src] = now req = urllib.request.Request(NTFY, data=body.encode(), headers={ "Title": f"tripwire: {src} touched port {port}", "Priority": "high", "Tags": "rotating_light", }) try: urllib.request.urlopen(req, timeout=5) except OSError as exc: print("ntfy failed:", exc, flush=True) async def handle(reader, writer, port): src = (writer.get_extra_info("peername") or ("?",))[0] try: if PORTS[port]: writer.write(PORTS[port]) await writer.drain() data = await asyncio.wait_for(reader.read(512), timeout=5) except (asyncio.TimeoutError, ConnectionError): data = b"" if port == 80 and data: writer.write(HTTP_401) await writer.drain() writer.close() # keep the request line, never the Authorization header first = data.split(b"\r\n", 1)[0] if port == 80 else data[:120] hit = { "ts": datetime.now(timezone.utc).isoformat(timespec="seconds"), "src": src, "port": port, "first_bytes": first.decode("latin-1"), "tried_auth": b"Authorization:" in data, "ignored": src in IGNORE, } line = json.dumps(hit) with open(LOG, "a") as fh: fh.write(line + "\n") print(line, flush=True) if not hit["ignored"]: await asyncio.to_thread(alert, src, port, line) async def main(): servers = [] for port in PORTS: servers.append(await asyncio.start_server( lambda r, w, p=port: handle(r, w, p), host="0.0.0.0", port=port)) print("tripwire armed on", ", ".join(map(str, PORTS)), flush=True) await asyncio.gather(*(s.serve_forever() for s in servers)) if __name__ == "__main__": asyncio.run(main()) 

The SSH port is the quiet star. A real client announces itself before anything else happens, so first_bytes comes back as something like SSH-2.0-OpenSSH_9.7 or SSH-2.0-libssh2_1.11.0 or a Go library string. That single line tells you whether a person typed ssh or a tool came knocking.

Push alerts go through ntfy, which accepts a plain HTTP POST with Title, Priority and Tags headers. Topics on the public ntfy.sh server work like passwords: anyone who guesses the name can read it. Generate a long one:

$ openssl rand -hex 12 

Then subscribe to https://ntfy.sh/ plus that string in the ntfy phone app. If you'd rather keep alerts off someone else's server, ntfy self-hosts in one binary.

Running It Like a Real Service

The tripwire needs ports under 1024, and it should never run as root. systemd handles both: DynamicUser invents a throwaway user, and AmbientCapabilities hands that user exactly one power, binding low ports.

# /etc/systemd/system/tripwire.service [Unit] Description=tripwire decoy listeners After=network-online.target Wants=network-online.target [Service] ExecStart=/usr/bin/python3 /opt/tripwire/tripwire.py Environment=TRIPWIRE_NTFY=https://ntfy.sh/9f3c1a7be2d84c06a1b5e7f2 Environment=TRIPWIRE_IGNORE=192.168.1.1 DynamicUser=yes StateDirectory=tripwire AmbientCapabilities=CAP_NET_BIND_SERVICE CapabilityBoundingSet=CAP_NET_BIND_SERVICE NoNewPrivileges=yes ProtectSystem=strict ProtectHome=yes PrivateTmp=yes Restart=on-failure [Install] WantedBy=multi-user.target 

Replace the topic with the one you generated. StateDirectory=tripwire gives the dynamic user a writable /var/lib/tripwire, which is where the log lands. Arm it and watch:

$ sudo install -D -m 0755 tripwire.py /opt/tripwire/tripwire.py $ sudo systemctl daemon-reload $ sudo systemctl enable --now tripwire $ journalctl -u tripwire -f 

Now trip it yourself, from another machine on the LAN, because you should never trust an alarm you haven't set off:

$ nc -v 192.168.1.50 22 SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.5 $ curl -i -u admin:admin http://192.168.1.50/ HTTP/1.1 401 Unauthorized WWW-Authenticate: Basic realm="DS220" 

The log line for that curl shows the request line and "tried_auth": true, with no trace of admin:admin. Your phone should buzz once, then stay quiet for five minutes for that source no matter how hard you hammer it.

The First Week Is Mostly Your Own Junk

Here's where people quit, and where the decoy earns its keep. Arm it and within a day something will hit it, and that something will probably be yours. Windows machines browse for file shares. Network apps like Fing sweep the subnet by design. Home Assistant integrations probe for devices. Some smart TVs knock on everything.

Treat the first week as a census. Count who's touching the box:

$ jq -r '.src' /var/lib/tripwire/hits.jsonl | sort | uniq -c | sort -rn 

For each address, find the device in your router's client list and decide whether its behavior makes sense. The ones that do go into TRIPWIRE_IGNORE, comma-separated, so they still get logged but stop paging you. The ones you can't explain are the whole reason you built this.

When an alert does point at one of your own machines, say the gaming laptop suddenly sweeping port 445 at 3 AM, the decoy has done its job and the real question moves to that endpoint. What ran, under which parent, using which built-in Windows tool. That's the territory of Living Off the LOLBins ($50), a defensive endpoint guide that maps common signed-tool abuse patterns to the telemetry they should leave behind and shows how to build safe lab scenarios to validate your detections without writing malware. It's the right next read once your tripwire names a machine and you need to know what to look for on it.

Rules of the Trap

Keep this on networks you own or are explicitly allowed to run it on. A decoy in your house is your business. A decoy on your office, dorm or landlord's network is a policy conversation first.

Don't forward these ports to the internet. The public internet scans everything constantly, so an exposed decoy turns into a firehose of meaningless alerts, and you'll mute it within a day. A LAN tripwire stays valuable precisely because its baseline is zero.

Never hack back. The log tells you an address and a fingerprint. What you do next is unplug, investigate your own device, change your own passwords, and call your ISP if it's outside traffic. Touching someone else's machine in return is the line where you stop being the victim.

If you want to go past "something touched it" and actually study what a visitor does after the first knock, which commands get tried, in what order, how they map to known attacker techniques, that belongs in an isolated lab, not on your family network. The Controlled-Lab Honeypot Kit ($65) is built for that step: a decoy controller for a non-production service with no real credentials, visible interaction telemetry, TTP mapping, and a reviewable containment workflow so the experiment never leaks into anything real.

Arm the box tonight, then set it off yourself from the couch. The first real alert is the one you'll be glad you rehearsed.