docs

False positives

How nyren clears false alarms automatically, which actions stay frozen on purpose and how to unfreeze a workload by hand.

Right after a model freeze (or a host-owner [[rules]] freeze), nyrend asks a larger model for a second opinion with the incident context. If the activity is benign at high confidence (default 0.9 for model freezes, 0.95 for host rules), the process is unfrozen in place without restarting it. From 0.1.1, nyren remembers the verdict, so the same harmless action is not frozen over and over. Measured freeze-to-unfreeze latency is a median 1.38 s on benign reruns (144 ms in Boat reproduction).

What stays frozen on purpose

Automatic unfreezing is gated in code on both the control plane and the daemon. Because an attacker can shape command lines and files on a compromised VM, nyren never lets a model unfreeze high-risk persistence, privilege-escalation or tamper activity.

Built-in host guards are never automatically checked or unfrozen: /etc/ld.so.preload writes, reverse-shell patterns, netcat connections and daemon tampering.

Hard indicators also keep a workload frozen for human review. The daemon checks the whole incident for:

  • Unexpected egress: an outbound connection outside expect_egress.
  • Persistence: a write to a place that survives a restart or login, outside expect_persistence: systemd units, cron, /etc/rc.local, /etc/init.d/, shell profiles, /etc/sudoers, /etc/passwd, /etc/shadow, /etc/ssh/, PAM, udev and module config, or .ssh/ and shell start-up files in a home directory.
  • Tamper: a write to nyren's own files, a ptrace on nyrend, or a kernel module load.

A target that is frozen again within 10 minutes of being unfrozen is not checked again.

Unfreeze by hand

Once you confirm a frozen workload is safe:

  • Restart a frozen systemd unit: sudo systemctl restart <unit> creates a new cgroup instance, so nyrend drops the old freeze.
  • Unfreeze in place: nyrend re-applies an undone freeze unless /run/nyren/disable-enforce is present. Set the switch, unfreeze the cgroup (or run sudo kill -CONT <pid> for a standalone process), then remove the switch:
sudo mkdir -p /run/nyren && sudo touch /run/nyren/disable-enforce
echo 0 | sudo tee /sys/fs/cgroup/system.slice/<unit>/cgroup.freeze
sudo rm -f /run/nyren/disable-enforce

To keep expected admin or service activity from freezing again, list it under [[expect]], expect_egress or expect_persistence in /etc/nyren/profile.toml (see Configuration).

On this page