docs

Security and privacy

What BPF-LSM self-protection does and does not do, and exactly what data leaves your VM.

What self-protection does

Installing with --self-protect adds bpf to the kernel LSM list and runs nyrend with --enforce. After one reboot:

  • Process and sensor protection. BPF-LSM blocks other processes (root included) from signalling nyrend (such as kill -9), using ptrace on it, writing its memory, detaching its BPF links or modifying its BPF maps.
  • File and freeze protection (from 0.1.1). Without /run/nyren/disable-enforce, writing to nyren's own files (/etc/nyren/, /usr/local/bin/nyrend, /var/lib/nyren/, its units or /etc/default/grub.d/) freezes the writer, and an undone freeze is re-applied and reported.
  • Heartbeat monitoring. Heartbeats carry live protection state and LSM denials (tamper counts from 0.1.1). The control plane raises an anomaly if protection drops or a VM goes silent (stopping it from outside on Boat sandboxes today).

What self-protection does not do

  • It is opt-in and stays inactive until bpf is in /sys/kernel/security/lsm after a reboot.
  • It does not stop root from creating /run/nyren/disable-enforce for stops, upgrades or config edits (lifting enforcement within a second; from 0.1.1 this is reported as a tamper event).
  • It cannot prevent compromise via a modified kernel or boot configuration across a reboot, and no tool guarantees catching every attack.

What data leaves the VM

Raw kernel events and the local small model stay on the VM. Only four things leave:

  • Heartbeats: liveness, licence state, protection counters and signal rates.
  • Incidents: bounded process tree, command lines, trigger, touched files, network attempts and actions.
  • False-positive check: incident context, unit file and touched files sent to a larger LLM (fp_check = "off" disables this).
  • Fix agent queries: read-only queries about files, directories, the frozen process or that incident's trace, only while open.

Secrets files and customer data stores are denied by default, database files return metadata only, secrets in output are redacted, every query is logged and the incident store is deleted on close, after 2 hours or on daemon restart. Set [evidence] access = "off" in /etc/nyren/profile.toml to keep all file contents on the VM. nyren does not train models on your data without written permission (automatic retraining is opt-in, alpha). See nyren.ai/privacy.

On this page