Skip to main content

Add a remote sensor on a new machine

A remote sensor is a second machine that runs honeypots for your console: on another VLAN, at another site or in the cloud. This procedure takes a Linux machine that has nothing installed, makes it a sensor of your console and deploys a set of honeypots on it, one per address if it has several. Nothing has to be edited by hand on the machine.

What you need​

  • A 64-bit Intel/AMD (x86_64) Linux machine running Ubuntu or Debian, with sudo access. Docker is installed for you if it is missing.
  • Outbound access from that machine to your console on port 443.
  • If the machine is exposed to the internet and you want each honeypot to look like a different server, give it several addresses: each honeypot can then answer on its own one.
  • Your user in the console needs permission to change settings.

You do not give the console any password for that machine: it never logs in to it. You paste one line on the machine yourself.

Enroll the machine in the console​

  1. In the console, open Sensors → Install a remote sensor.
  2. Fill in the form:
    • Identifier: a short name such as branch-madrid or sensor-2. It is stored in lowercase with hyphens.
    • Name: how it appears in the console.
    • Where it is: Internal for a machine inside your network, External for one exposed to the internet, Isolated for a segment with no route to the rest. External honeypots do not take names from your internal domain.
    • IP address of the sensor machine: the address the console will see that machine connect from. If access to the console is limited to a list of addresses, it is added to that list.
    • Address of this console as seen from that machine: sensors call the console by its name. If the new machine cannot resolve that name (a cloud machine, a site without your DNS), enter the IP address at which it reaches the console. The console proposes the address you are using. Leave it empty if the machine resolves the name.
  3. Click Enroll and generate the line, then Copy the line. The line works once, for 24 hours, and is only shown now.

Run the line on the machine​

  1. Open a terminal on the sensor machine (by SSH or on its console). Check the prompt: the line has to run there, not on your own computer.

  2. Paste the line once and press Enter. It does not ask for a password if your user can use sudo without one; otherwise it asks for that machine's.

  3. It downloads the Sugardaddy installer and checks its SHA-256 against the one written in the line, which is the one published in Install your Cloud node, under Publication keys. Only that installer runs as root. It checks the signature of the release the console serves and of the sensor installer with the publication keys it carries, then downloads this sensor's data and installs Docker if needed. If a signature or a fingerprint does not match, it stops before using up the line. It ends with:

    Sensor <identifier> is running. It shows as online in Sensors in the console within a minute.

If it says the console could not prepare the installation, wait a minute and paste the same line again: the line is only spent when the installation starts.

Client certificate​

Each remote sensor gets its own client certificate when it is installed and presents it, together with its token, every time it connects to the console (mutual TLS). The certificate lasts 90 days and the sensor renews it by itself 30 days before it expires. Removing the sensor revokes it.

Sensors installed before this version connect with their token only until they update, and then request a certificate by themselves. While any sensor connects without one, Sensors shows a warning. Settings → Sensor certificates lists each sensor's certificate and, under Policy, lets you require a certificate from every remote sensor once all of them show In use.

Check that it is online​

In Sensors, the new sensor shows its version, its public address and online. If the machine has several addresses, they are folded under +N internal addresses.

Deploy the honeypots​

The quickest way is a template: a group of honeypots you deploy in one step.

  1. Open Honeypots → Templates. Use one of the catalog, or click New template to make your own:
    • Give it a name and add honeypots from the catalog. Each one gets a machine name you can change.
    • Under Ports and options, each honeypot shows the ports it will use. Change them here if you want, for example a web login on 443.
    • Click Save template.
  2. In the template, under Deploy all on, choose the new sensor. Every honeypot is set to it; you can still change one in its row.
  3. Leave One address per machine ticked if the sensor has several addresses: each honeypot is published on a different one, so every address shows a different machine. It is ticked for you when the sensor has more than one.
  4. Click Deploy the selected honeypots. Each one is listed as sent to the sensor.

To repeat on another machine what a sensor already has, open the sensor and use Save as template.

Open the ports​

The honeypots listen on the machine, but its firewall, and your cloud's if it has one, has to let the traffic in.

  1. In Sensors, open the sensor and go to the Firewall tab. It lists each address, port and honeypot.
  2. If the machine is behind an Azure network security group and the Azure connector is set up (the response IP block in Azure), the console opens them for you: enter the security group, click Preview to see what would change, then Open these ports in Azure. It only touches rules whose name starts with trampa-.
  3. Otherwise, open them by hand: each port only for its address, so each address shows only its own machine.

Repeat this step whenever you add, remove or move a honeypot on that sensor.

Check it from outside​

  • From a machine outside, each public address should answer only on the ports of its honeypot.
  • In Honeypots, each one changes from Active, not verified to Verified when its first event arrives. On the internet that usually takes minutes; a honeypot nobody has touched yet can be checked with Test.
  • In Events, type an address in the search box to see only what came from it.

Remove a sensor​

  1. In Honeypots, filter by the sensor, tick the honeypots and click Remove selected.
  2. In Sensors, click Remove on the sensor. If it recorded events, its history is kept and it stays in the list as Removed; it can no longer connect, and its client certificate is revoked.
  3. To bring it back, on the same or on a new machine, enroll it again with the same identifier: it gets a new line and keeps its history.

If something goes wrong​

What you seeWhat to do
The browser warns about the certificate when you open the console by its IP addressInstall the console's root certificate and open the console by its name. See Settings → Certificate.
The line asks for a password you do not knowCheck the prompt: you are probably on your own computer, not on the sensor machine. Press Ctrl+C.
A sensor with that identifier already existsRemove the old one in Sensors first, or choose another identifier.
The sensor does not appear onlineThe machine has to reach the console on port 443. If access to the console is limited, its address must be in the list (Settings → Access). If the console's own machine is in Azure behind a network security group, enter that group on the console's own sensor page (Firewall tab): port 443 then follows the access list by itself.
A honeypot stays Active, not verifiedCheck that its port is open in the firewall for its address, then use Test.