Docs menu ▾
Enforcer · Set up a node / updated 2026-11-11

Set up a node

By the end, a test VM appears on https://genossec.com/dashboard/, blocks a new file in /etc/sudoers.d and opens a ticket. The reference lists everything Genos puts on a host. About 15 minutes, most of it the scan.

PoC build guide: supported hosts

The enforcer is a set of BPF-LSM programs. The kernel fields they read move between kernels (inode.i_ino is at byte 80 on 6.8, 64 on 7.3), so the daemon reads the offsets from the running kernel's BTF at start. It then runs a self-test, 53 tries of every change it blocks in scratch folders it protects, and refuses to start unless each is refused and reported and what should work does. On a kernel where the hooks wouldn't work the scan ends with "demo enforcer failed to start; the host is not protected", never a host that looks protected and isn't.

Needs Verified
OS Ubuntu 26.10 for the published bundle (built there; it links glibc 2.44) 26.10. 24.04 was verified from source on 31 October and isn't tested since
Kernel BTF (/sys/kernel/btf/vmlinux) and BPF LSM, which the installer turns on 7.3.0-9-generic, 7.3.0-10-generic

Check the host before installing:

. /etc/os-release; echo "$VERSION_ID"   # 26.10 for the published bundle
ls /sys/kernel/btf/vmlinux              # present

BPF LSM is off by default on Ubuntu: the installer turns it on, which takes one reboot.

What you need

  • A dashboard login (who can sign in).
  • A disposable host as above, snapshotted first. Keep the prototype off any machine you can't rebuild.
  • Outbound HTTPS to genossec.com. The daemon dials out for everything; no open port, NAT is fine.

Steps

Step Where What
1 Dashboard Get a node key
2 Host Run the install command, paste the key
3 Host Reboot if it asks, then scan
4 Both Check it: block a file, then review its ticket

1. Get a node key

Dashboard → Install → Generate a node key. Shown once, works once, expires in 24 hours. Leave the page open: its third step follows the install as it happens (host registered, baseline recorded, connected, enforcing).

2. Run the install command on the host

curl -fsSL https://genossec.com/install/node.sh | sudo bash

Or download it, read it, then run it:

curl -fsSL https://genossec.com/install/node.sh -o genos-node.sh
less genos-node.sh
sudo bash genos-node.sh

It asks you to accept the risks and disclaimer (n leaves the host untouched; unattended installs set GENOS_ACCEPT_RISK=yes), then for the node key (not echoed; Enter skips it for sudo genos-enroll later). Scripted: GENOS_NODE_KEY=genos_enr_…. The command holds no secret; the key reaches the server once, in the enrollment request over pinned HTTPS.

The installer:

  1. gives the host its own signing key and writes /etc/genos/agent.toml (where to report, the server's pinned key, the node key) and the approver's public key;
  2. downloads the node bundle over HTTPS, checks it against the SHA-256 the installer carries, and installs genos-daemon, its service, the scanner and genos-scan;
  3. turns on BPF LSM if it's off (then asks you to reboot);
  4. offers to run the baseline scan.

3. Scan

If the installer asked you to reboot, reboot and run:

sudo genos-scan

Otherwise answer Y when offered. The scan takes a few minutes: it records the baseline, uploads it and starts the enforcer, which enrolls. To check:

sudo journalctl -u genos-daemon -n 20 --no-pager
# look for "self-test passed", "reporter initialized" and "stream connected"

The host appears on Overview; its Baseline tab shows the scan.

Building from source instead (no bundle published, or an older glibc): follow Prerequisites, run cargo xtask build and sudo env PATH="$PATH" cargo run -p xtask -- install, then sudo GENOS_SERVER=https://genossec.com GENOS_DEMO_ENFORCER=1 bash genos_scanner_enforcer/dist/scanner.sh.

4. Check it

A new file is blocked. On the VM:

echo 'attacker ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/zz-test
# tee: /etc/sudoers.d/zz-test: Operation not permitted

It becomes a ticket. The node's Blocks tab lists the file, and a ticket opens on Tickets.

Approving adds it to the baseline. Within seconds the ticket shows In baseline (v2) and the journal BASELINE v2: added /etc/sudoers.d/zz-test. The same command works; any other name is still refused. Remove the test file.

The full demo is Running the demo; demo_poc.sh in the enforcer README scripts it.

Known gaps

Gap Until it's fixed
A stopped daemon shows only as Seen … ago on the dashboard, not as an alert. Blocking carries on (the hooks stay pinned), and its blocks wait in the kernel's buffer (64 KiB, about 180 blocks) until it starts again Turn on health checks for the node, or check systemctl status genos-daemon
On an enforcing host the Genos program is locked, so it can't be upgraded or removed in place sudo systemctl disable genos-daemon, reboot, then install the new version (or remove it)
A reinstalled host's second baseline is refused (409) On the fleet host: flask --app "fleetmon:create_app()" remove-baseline <host>, then scan
The daemon doesn't retry failed sends Blocks made while offline still happen, but never reach the dashboard
The install key stays in agent.toml Delete that line after the first start. The server refuses reuse anyway

Reference: files and settings

Everything Genos puts on a host, and every setting there. Running the scanner by hand and the catalog are on the scanner's page.

Files on a host

Path What Made by
/etc/genos/agent.ed25519 The host's private signing key. Never leaves the host Install command
/etc/genos/agent.toml Where to report, and the server's pin Install command
/etc/genos/approver-ed25519.pub The approver's public key. Approvals must be signed by it Install command
/var/lib/genos-inventory/baseline.json The scan's hashes. While it exists, the scanner won't run Scanner
/var/lib/genos-inventory/enforcement.json The enforcement plan: the places the kernel protects on this host, and the names in them Scanner
/var/lib/genos-inventory/agent_state.json The host's agent_id and last sequence number Daemon
/var/lib/genos-inventory/baseline-additions.json The approved names in force (version, ticket, folder, name, signature), and every revoked one removed since Daemon
/var/lib/genos-inventory/raised-tickets.json Tickets this host raised. Updates are accepted only for these Daemon
/usr/local/sbin/genos-daemon, genos-daemon.service The enforcer and its systemd unit cargo xtask install

After install, only signed decisions change a host: an addition for a ticket it raised, a removal of such a name, a rule mode. A host with /etc/genos/quarantine-allowed (a demo feature, absent by default) also takes a signed quarantine order.

Agent config

/etc/genos/agent.toml, mode 0600. The install command writes it for you:

server_url = "https://genossec.com"
server_spki_pin_sha256 = "7Ewfp4DcyhOyfn2DiwB0WJMTOvzW7K3ljtW+ytlwf2U="
enrollment_token = "genos_enr_..."
Key Needed Meaning
server_url Yes HTTPS origin only: no path
server_spki_pin_sha256 Yes Fingerprint of the server's public key. The daemon refuses any other certificate
enrollment_token First start The install key. Delete it after the first start
event_batch_max No, default 256 Most blocks per message

To check the server's current pin from any machine:

echo | openssl s_client -connect genossec.com:443 -servername genossec.com 2>/dev/null \
  | openssl x509 -pubkey -noout | openssl pkey -pubin -outform der \
  | openssl dgst -sha256 -binary | base64

The pin survives certificate renewals (why).

If the signing key is lost or replaced, the host can't sign as itself any more. Delete agent_state.json and enroll again with a new install key.

Daemon

sudo systemctl status genos-daemon
sudo journalctl -u genos-daemon -f
Log line Means
protecting /etc/cron.d (Tree, inode …) A folder's baseline is loaded; watching for … not there yet for a folder the plan expects later
attached inode_create (and twenty-four more) A hook is on. hooks were already pinned and enforcing; kept them after a restart
exec control on writable places: watch, kernel state (modules, remounts): block, kernel settings: watch, new listening ports: watch, root to a login user's socket: watch Each host-wide rule's mode at start; RULE MODE v1: exec is now block when the fleet changes one
reporter initialized Enrolled, and reporting blocks to the server
reporting not active: … It blocks, but won't report. The reason follows
baseline version 2 (1 approved additions) The scan plus approved additions, loaded at start
baseline additions disabled: … No approver key: it blocks and reports, but never changes its baseline
stream connected The node stream is open: approvals and health checks can reach it
stream to the server closed: …; enforcement is unaffected, reconnecting The stream dropped. Blocking carries on; it reconnects with backoff
enforcing; waiting for blocks Ready
DENY create /etc/sudoers.d/zz-test … euid=0 auid=1000 login=alice pid=4242 comm=tee parents=sudo<bash<sshd A file was blocked, and who tried it
WATCH exec /tmp/payload …, WATCH listen listen/4444 … A rule set to watch let this through and reports what it would have blocked
PACKAGE apt-get install … finished: 12 added, 0 changed, 0 removed An approved package transaction closed and the baseline moved to the next version
BASELINE v2: port 4444 may be listened on (ticket TKT-…, approved) An approved listen ticket allowed that port
send_events failed: … A block didn't reach the server. It's not retried
BASELINE v2: added /etc/cron.d/nightly (ticket TKT-…, approved) An approved name joined the baseline
ticket TKT-… for … dismissed; it stays blocked An admin dismissed the ticket
rejected update from …: TKT-… An update failed its signature or ticket check. Nothing was added

The daemon refuses to start if a protected folder was replaced since the scan.

Stopping it does not stop the blocking. The pinned hooks keep enforcing until a reboot, and the service starts early in that boot. Reporting stops: the node shows Seen … ago (orange after 15 minutes), its blocks wait in the kernel's buffer (about 180), its Enforcing label goes stale. A node that answers health checks is reporting and enforcing.

View this page on GitHub ↗