Deception
Deploy a sensor
A sensor is two small, locked-down containers that together pretend to be a device on your network. It only ever connects out to Kandaro; nothing on the internet needs to reach it.
What a sensor is
A sensor runs a decoy: a fake NAS, printer, file server, database or AI tool server. Nobody in your organisation has a reason to use it, so anything that touches it is worth reading. The sensor reports every touch to Kandaro, which explains it in plain English and groups it into incidents.
It runs as two containers from one image. One holds the decoys that attackers see. The other holds the sensor’s keys and is the only part that talks to Kandaro: the Linux server script calls it kandaro-sensor-link, and with Docker or Docker Compose its name ends in agent (for example kandaro-agent). It has nothing to do with the Kandaro agent you install on machines for EDR. The two talk over a socket on a shared volume, so a break-in on a decoy can’t reach the keys. Both run as normal users, with a read-only file system and almost all Linux privileges removed. The sensor never updates its own code.
Our release pipeline signs each sensor release and adds a software bill of materials (SBOM), so you can check exactly what you run. The first signed release isn’t out yet; until then, the Linux server script pins the image by its digest, so it keeps running exactly the image it pulled.
What it needs
Network
- Outbound HTTPS (port 443) to
sensors.kandaro.com. That is the only connection the sensor makes to us: one connection that stays open, so changes arrive at once. If a proxy blocks it, the sensor falls back to plain HTTPS requests on its own. No inbound ports from the internet, ever. - Its own address on your LAN (recommended). A decoy works best when it looks like a separate device, with its own IP and MAC address, rather than a few extra ports on an existing server. Docker can do this with a so-called macvlan network; the Linux script, Compose, Ansible and Helm packages set it up for you (the plain Docker package uses host networking). One side effect: with macvlan, the host the sensor runs on can’t reach the decoy directly, so test it from another machine.
- Host networking is the simpler alternative: the decoy shares the host’s address. Use it when your network doesn’t allow extra MAC addresses, and pick a host that has no other services on the decoy’s ports. Only root can open low ports on the host’s network, so in this mode the decoys start as root only long enough to open their ports, then permanently switch to a normal user before they answer anyone. The part that holds the sensor’s keys never runs as root.
Hardware
- A small Linux VM (1 vCPU, 512 MB to 1 GB of memory, a few GB of disk) is plenty.
- A Raspberry Pi 4 or 5 with the 64-bit OS works too. Images are built for amd64 and arm64.
- Put it inside the network you want to watch, not on the internet or in a DMZ (the zone for your internet-facing servers).
Lock it down
The sensor is built to be safe on its own. These steps add your own layer on top:
- Allow only Kandaro. In your firewall, let the sensor reach
sensors.kandaro.comover HTTPS and nothing else. It needs no other outbound connection. - Give it its own address (macvlan) on a shared host. Keep host networking for a dedicated box or VM.
- Keep the signature check on. The Linux script checks that Kandaro signed the image before it installs anything, and stops if it can’t confirm it. It uses cosign, the open-source tool that checks a container image’s signature, if it’s installed, and otherwise runs cosign’s official image once in Docker. Only
--skip-signature-checkturns the check off (older commands with--require-signaturestill work). In Ansible the check is on by default (kandaro_sensor_require_signature) and needs cosign on the host. The image is private: you pull and check it with the access Kandaro gives your organisation, so log in with that first. - Keep bait on one decoy if you prefer:
KANDARO_LURE_CHAINS=offstops this sensor’s bait from pointing at your other decoys.
Install methods
Install a sensor the way your team already runs infrastructure. Each method comes with that sensor’s single-use install token and your account’s settings already filled in. You get them in Deception → Sensors under Add sensor, once you’ve started a free trial. For a Linux server, Docker and Kubernetes it is one block you paste whole into a terminal on the host: it checks everything it downloads before it runs it, and signs in to Kandaro’s images with a code that works for this sensor’s first download only. The other methods are packages you download.
| Method | Best when |
|---|---|
| Docker | you have any Linux host with Docker and want a decoy running in a few minutes |
| Docker Compose | you want the decoy on its own LAN address next to your other services |
| Linux server script | you want a reviewed script that sets the decoy up as a service on a VM or server |
| Kubernetes (Helm) | your team runs workloads on Kubernetes |
| Ansible | you manage servers with playbooks |
| Terraform and cloud-init | you create VMs as code, or paste user data into Proxmox, VMware, Hyper-V or a cloud VM |
| Raspberry Pi | you want a small, dedicated decoy box on a shelf |
The install token works once and expires after 24 hours. To get a new one, open the sensor and choose Show install command, or Move or re-install once it has enrolled.
Enrolment, keys and offline behaviour
- On first start, the sensor swaps its install token for its own keys and keeps them in its data volume. Only an admin can create a token, so the token is the approval: the sensor starts at once, and the Console marks it as new for its first week. To move or re-install a sensor, create a new token.
- Your admins can ask a sensor to do one of three fixed things: restart its decoys, run a health check, or send its waiting events now. It accepts nothing else. Each request is signed, expires after 15 minutes and is recorded in your audit log.
- If Kandaro can’t be reached, the sensor keeps up to 50 MB of events on disk and delivers them in order once the connection is back. If an outage lasts longer than that, the oldest events are dropped first.
- The data volume holds the fake passwords and keys attackers try. Protect it like any other sensitive file, and if a real secret of yours ever shows up there, change it straight away.
Placement tips
- Pick a profile that fits the segment: a printer in the office network, a NAS or a database server in the server network.
- Make it discoverable. Give it an attractive DNS name (
backup,finance-share,vcenter) or leave a “forgotten” reference in documentation. Bait and fake domain accounts help attackers find it. - Don’t expose it to the internet. You would get thousands of events from internet scanners. Inside your network, every hit matters.
- Use several sensors with different profiles in different network segments (VLANs). To catch network poisoning, one has to sit among your workstations.
Tell Kandaro about your own tools
Your vulnerability scanners, monitoring and backup systems will touch decoys too. Add their addresses in Settings → Organisation → Known-good sources. Their events are still recorded, but they never become an incident, so nothing reaches your channels and no case opens. When an event looks like a scanner, the Console offers to add it for you.
Two things always raise an incident, even from a known-good address: planted bait being used, and an answer to a decoy’s name-poisoning check. From a trusted address, either one means that device itself is compromised.
Each sensor’s settings also have an Ignore these addresses list. It drops their traffic completely, with no record at all, so keep it short and prefer known-good sources. For exceptions to detection rules on your logs, see Detection rules.
Troubleshooting
- The sensor never shows as online. Check that the host can make outbound HTTPS connections and resolve DNS, that both containers are running, and that the install token hasn’t expired. The log of the container that holds the keys says why it couldn’t enrol:
journalctl -u kandaro-sensor-linkwith the Linux server script,docker logs kandaro-agentwith Docker. - You can’t reach the decoy from the host it runs on. That is expected with a macvlan network; test from another machine.
- Events stop. The Console shows when a sensor last checked in. A sensor that can’t reach Kandaro keeps recording and catches up when the connection returns.
Known limitations
- Stealth (SYN) scans don’t complete a connection, so they aren’t seen. Connect scans, service detection and real connection attempts are.
- Deep operating-system fingerprinting shows the host’s Linux network stack, even for Windows profiles. An experienced attacker running OS detection could notice.
Next steps
- Choose what each sensor pretends to be: the profiles reference.
- Lead intruders to your decoys with bait and breadcrumbs.
- Send incidents where your team works: Send and read your data.