How it works
From a kernel event to a tested fix.
Breaches frozen in ~300 ms. A tested fix in under a minute.
The incident loop
- Kernel. An eBPF sensor on the VM sees an exec, a file open or an outbound connect and hands it to the daemon,
nyrend. - Rules. A rule that matches freezes at once, with no model in the way. The rules are your own
[[rules]]in the host profile plus built-in base cases. - Small model. Everything else that looks suspicious becomes a candidate window from one process tree. A small model on the VM's CPU scores it; above the threshold the daemon freezes the process or its systemd unit.
- Freeze. Only the attacked service and whatever the attacker started from it are frozen. Nothing else stops.
- Control plane. The daemon sends the incident with a bounded trace. The control plane triages it and sends unfreeze, kill or stop back.
- Agents. A root-cause agent searches known vulnerabilities for the one that fits. A fix agent writes the patch, tests it against your project's own tests in a clean copy, and opens a pull request. You review and merge, or let it go through on its own.
In the breach on nyren.ai: sensed in 55 µs, frozen in 294 ms, cause found at 7.3 s, pull request at 23.9 s, tests passing at 26.3 s, recovered at ~47 s.
False alarms
When the model on the VM freezes something, the daemon asks a larger model for a second opinion at once, through the control plane, with the incident's context. If that check clears it, the process is unfrozen and carries on where it stopped: nothing is killed or restarted. If the check is not sure, the investigating agent can still clear it later. nyren remembers the verdict, so the same harmless action is not frozen again.
Median freeze to unfreeze on a benign rerun: 1.38 s.
A rule
From packaging/profiles/boat.toml: freeze anything run from a world-writable temp directory.
[[rules]]
name = "no_exec_from_tmp"
event = "exec"
path_prefix = ["/tmp/", "/var/tmp/", "/dev/shm/"]
kind = "suspicious_exec"
action = "freeze"Safeguards
Self-protection is opt-in at install (--self-protect). BPF-LSM then refuses a root kill -9 of the daemon and tampering with its sensors and files. It takes one restart. To stop or upgrade the daemon, first:
sudo touch /run/nyren/disable-enforceThe switch is reported: while the daemon enforces, its appearance is a tamper event.
Privacy
The raw kernel event stream never leaves the VM. Only incidents, the heartbeat and, while an incident is open, answers to the fix agent's read-only questions about it do. Secrets files are never read, secrets in what is read are redacted, and every answer is logged. [evidence] access = "off" in the host profile keeps all of it on the VM.