Lock down the machine
Under Settings → Host the console shows what the node sees of its own machine and lets you close it down. The node looks every 30 minutes.
- SSH: whether the SSH service is running and which users have authorized keys, with each key's SHA256 fingerprint (never the key itself).
- Docker: its version against the one the signed release was tested with. When it is older, a notice appears at the top of the console. On the appliance the node updates Docker by itself: it downloads the exact packages from Docker's signed repository, checks each one against the checksum in the signed release, installs them and keeps them held (the containers restart once). On a machine you installed yourself, Docker is yours: the node only warns.
- Host audit (auditd): if the machine has auditd, the node loads its own rules
(Docker socket and configuration, the node folder, sudoers, the SSH configuration
and keys, users and groups) and sends what they record to the console's audit log
and on to your SIEM, with the class
integridad.anfitrion. Changes to SSH keys, to the SSH service and to the firewall go the same way. Changes the node makes to its own folder are not recorded; changes by someone signed in to the machine are.
Strict host firewall
A firewall on the machine itself (nftables) that denies everything by default. Only these get in:
- the console port, for the addresses in its access list (Settings → Console access);
- the ports of the node's services and of its decoys;
- SSH to the machine, only from the ranges you give (none: SSH closed);
- replies, and what a network needs to work (ICMP errors, DHCP).
A decoy can never reach the machine itself, and ports that other containers publish on the same machine are closed. Optionally, restrict outbound traffic: then the machine only reaches Central, the image registry, Microsoft sign-in (if you use it), the appliance package repositories and the destinations you add (your SIEM, your mail server…), plus DNS and NTP. Behind a proxy, only the proxy.
It is on by default on the appliance and with the banking profile, and off
otherwise. Applying it is safe: if, after a change, the node cannot reach its console
(or, with outbound restricted, Central or the proxy) within 90 seconds, the machine
goes back to the previous rules on its own. The emergency file that opens the console
(sudo touch /opt/sugardaddy/abrir-consola, option 9 on the appliance screen) also
lifts the strict firewall for its 24 hours.
It is not applied while UFW or firewalld are active: two firewalls that deny by default would each block what the other allows. Either turn them off and use this one, or keep yours and leave this setting off (the console says which one it found). On the appliance the last confirmed rules are loaded at boot, before Docker starts.
Remote sensors
Each sensor installed on another machine does the same on its own machine, with the
same setting: its updater applies the strict firewall (with no console port: only its
decoys and SSH from your ranges get in), loads the audit rules and reports SSH access
and its Docker version. You see each one under Settings → Host → Remote sensors.
With outbound restricted, a remote sensor only reaches its console, its proxy and the
destinations you add; the image registry too, if you add it or it goes through the
proxy. Its emergency file is sudo touch /opt/sugardaddy-sensor/abrir-consola on that
machine.
With outbound restricted, the destinations of your active outputs (your SIEM, your mail server, your webhooks, Teams, Slack…) are added on their own: you do not have to type them again. Syslog over UDP does not get through: use TCP or TLS.