docs

Configuration

Configure decision modes, rule packs, host profiles and daemon settings for nyrend.

nyrend reads its daemon settings from /etc/nyren/nyrend.env, its licence key from /etc/nyren/licence.env and its host profile from /etc/nyren/profile.toml.

While self-protection (--enforce) is active, run sudo touch /run/nyren/disable-enforce before editing files under /etc/nyren/, then restart nyrend and remove the file.

Decision modes

Set the mode with NYREN_DECISION_MODE at install, decision_mode in /etc/nyren/profile.toml or --decision-mode in NYREND_ARGS (flag wins):

ModeBehaviour
rules-then-model (default)Rules, enabled packs and host guards freeze at once; the local model decides the rest
rules-onlyNo model loaded; only rules, enabled packs and host guards freeze
advisoryModel scores and reports without freezing; only rules and host guards freeze
model-onlyEvery candidate, including profile rules and packs, goes to the model
--dry-run (flag in NYREND_ARGS)Reports decisions without freezing anything

Built-in host guards (/etc/ld.so.preload writes, reverse-shell patterns and daemon tampering) freeze in every mode except --dry-run.

Rule packs

Enable opt-in packs in /etc/nyren/profile.toml (rule_packs = ["base", ...]; an unknown name fails to load):

  • base (always on): prefilter, host guards and your [[rules]].
  • persistence: payload-staging cron/systemd/init writes, out-of-session user units or /etc/profile.d hooks, unexpected authorized_keys writes.
  • credential-access: unexpected reads of /etc/shadow or SSH private keys.
  • download-exec: hidden binaries under /tmp, /var/tmp or /dev/shm; piped download-to-shell; executing a downloaded file.
  • web-shell: host discovery from a shell under a network service.

Shipped profiles are strict (default), boat and rules-only-wide (rules-only with all packs enabled).

Profile and daemon settings

Key settings in /etc/nyren/profile.toml:

decision_mode = "rules-then-model"
rule_packs = ["base"]
expect_core = true
expect_egress = ["10.0.0.5:5432"]
expect_persistence = ["/etc/cron.d/app-jobs"]
fp_check = "on" # or "off", or a [fp_check] table

[evidence]
access = "incident" # or "off"
allow = ["/srv/app", "/etc"]

You can also define [[expect]] entries for expected services, [[rules]] for custom freeze rules (validate = false skips the false-positive check), core_units and incident_hook (for proxy templates in packaging/proxy).

In /etc/nyren/nyrend.env: NYREN_CONTROL_PLANE, NYREN_MODEL (any GGUF; default Granite 4.0 350M at --threshold 0.9, fallback LFM2.5-350M at --threshold 0.33), NYREN_PROFILE and NYREND_ARGS (--enforce, --decision-mode, --threshold, --dry-run, --hold [secs], --record <file.jsonl>).

On this page