Skip to content

Releases

v0.1.1-alpha

v0.1.1-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Nov 14:17
25e30ba

NorthNarrow v0.1.1-alpha

The second alpha of NorthNarrow, an open-source endpoint detection and response (EDR) agent for Linux. It contains everything merged since v0.1.0-alpha (23 November 2026). It is for testing on machines you can throw away, not yet for protecting real ones: a fresh install runs the observe-only alpha profile, with the self-protection enforced. Everything below is self-assessed in our own lab; nothing has been validated by a third party.

Security and robustness fixes

  • The SysRq trigger is refused outside a trusted-installer window (#639). A write of /proc/sysrq-trigger is refused to every caller outside the agent's family, root included, whatever request it carries, unless a signed trusted-installer window is open, and each refusal is signed (High). Inside a window the write goes through and is recorded. The keyboard SysRq mask (kernel.sysrq) can no longer be widened outside a window; a host whose mask is already wide shows the advisory sysrq_keyboard_signals in nn-admin status.
  • A stop the agent did not request restarts it and is recorded (#639). A stop signal that reaches the agent or the watchdog with no signed window in force, outside the host's shutdown, is signed as unrequested_stop (High, naming the signal and its sender), and the stopped role is started again. The watchdog exits with a new status, 21, for it. The supported ways to stop the agent (the trusted-installer window, the host's shutdown, an admin-signed shutdown) are unchanged.
  • The exec quarantine releases every process it held when the agent stops (#635). With the experimental exec quarantine on, a stop of the agent during a burst of new programs no longer leaves the processes it held stopped: each is resumed, or killed when its verdict already asks for it, and the release is signed.
  • A DNS answer read before its query now answers it (#636). A later connection of that process to an address no answer gave is recorded again (NN-L-NET-028), whatever order the agent read the two in.

Stage 1 of the roadmap: foundations

  • Verifier margin: on six kernels (5.14 el9 to 7.0) every program loads, the highest uses 53.3 % of the verifier's budget, and every stack chain is within 448 of 512 bytes; the mount guard dropped from 92 % to about half the budget on 5.15 and now refuses the move of a peer copy of a protected mount (#617, #637).
  • Toolchain: Rust edition 2024 and Rust 1.100, aya 0.16 in user space, aya-ebpf 0.3 with LLVM 22 for the kernel programs (up to 13 % fewer verifier instructions), chrono replaced by jiff with every timestamp byte for byte the same (#607, #609, #614, #618, #615).
  • Sensors: the exec and file-open sensors see every CPU on Linux 7.0, where syscall tracepoints fire on CPU 0 only; the DNS sensor is cheaper per event; a file read again after an exec gets its own record (#625, #629).
  • Supply chain: 0 open Dependabot alerts (the Marvin RSA advisory and an old rustls-webpki gone), OpenSSF Scorecard on every change, code ratchets that read the syntax tree instead of the text (#610, #612, #626, #627, #630, #616, #624, #628).
  • Distributions: AlmaLinux 9 (SELinux enforcing) joins the nightly lab run, and the .rpm is tested in the lab (#632).

Every change, by lot: CHANGELOG.md [0.1.1-alpha]. The stage's lab round: docs/validation/results/stage-s1-2026-11-26.md.

Upgrading from v0.1.0-alpha

Nothing to prepare beyond a key with the trusted-installer role. The packages are versioned 0.1.1~alpha-1, which dpkg and rpm sort after 0.1.0~alpha-1: the package manager takes it as an upgrade. Verify the release first (below).

sudo ./deploy/install.sh --upgrade --grant-key /path/to/admin.key                          # the tarball, from its extracted tree
sudo NN_GRANT_KEY=/path/to/admin.key apt-get install ./northnarrow_0.1.1-alpha-1_amd64.deb  # the .deb
sudo NN_GRANT_KEY=/path/to/admin.key dnf install ./northnarrow-0.1.1-alpha-1.x86_64.rpm     # the .rpm
  • The agent and the watchdog restart once, inside the upgrade's own window (no unrequested_stop follows); keys, agent_id and the chains are kept. northnarrow-agent --version then prints northnarrow-agent 0.1.1-alpha.
  • A host whose kernel.sysrq lets a keyboard signal processes shows the new advisory sysrq_keyboard_signals in nn-admin status; the distributions' default masks do not.
  • A script that writes /proc/sysrq-trigger on purpose must now run inside a trusted-installer window.

What to expect, in full: INSTALL_UPGRADE_UNINSTALL.md §2.2 and UPGRADE_NOTES_0.2.md. First install? Start with the alpha tester guide.

Assets and how to verify them

File What it is
northnarrow-0.1.1-alpha-x86_64-linux.tar.gz the release tree: binaries, the eBPF object, deploy/, configs/, the operator docs
northnarrow_0.1.1-alpha-1_amd64.deb, northnarrow-0.1.1-alpha-1.x86_64.rpm the same binaries as packages; the .rpm is signed
northnarrow-0.1.1-alpha-x86_64-linux.{agent,watchdog,scan}.sbom.cdx.json CycloneDX SBOMs
RPM-GPG-KEY-northnarrow.asc the release key (the .rpm's and SHA256SUMS.asc's)
SHA256SUMS, SHA256SUMS.asc the checksums, and their signature by the release key

The tarball, the packages and the SBOMs carry a SLSA build-provenance attestation of the release workflow at the v0.1.1-alpha tag. The tag is signed with the maintainer's SSH key listed in .github/allowed_signers.

With gh 2.49 or newer:

sha256sum -c SHA256SUMS
gh attestation verify northnarrow-0.1.1-alpha-x86_64-linux.tar.gz --repo northnarrow/northnarrow-new \
  --cert-identity-regex '^https://github\.com/northnarrow/northnarrow-new/\.github/workflows/release\.yml@refs/tags/v' \
  --deny-self-hosted-runners

Without gh (the signed tag and the signed checksums; take the key from the repository at the tag, never from this page):

git clone https://github.com/northnarrow/northnarrow-new && cd northnarrow-new
git -c gpg.ssh.allowedSignersFile=.github/allowed_signers verify-tag v0.1.1-alpha   # Good "git" signature
git show v0.1.1-alpha:deploy/release/RPM-GPG-KEY-northnarrow.asc > ../nn-release-key.asc
cd .. && gpg --show-keys nn-release-key.asc        # BBBB EB6F 5566 A1CE 99AE  8379 C66A E018 C172 7C8D
gpg --dearmor < nn-release-key.asc > nn-release-key.gpg
gpgv --keyring ./nn-release-key.gpg SHA256SUMS.asc SHA256SUMS   # Good signature
sha256sum -c --ignore-missing SHA256SUMS                       # the files you downloaded: OK

The .rpm: rpm --import RPM-GPG-KEY-northnarrow.asc (the key from the tag, as above), then rpm -K northnarrow-0.1.1-alpha-1.x86_64.rpm says digests signatures OK; or install with dnf --setopt=localpkg_gpgcheck=1. The full procedure: INSTALL_UPGRADE_UNINSTALL.md §5 and §6.1.

Found something? Use the issue forms (bug report, false positive, detection gap); a vulnerability goes through private reporting (SECURITY.md). From this release on, v0.1.0-alpha is no longer supported.

Full Changelog: v0.1.0-alpha...v0.1.1-alpha

Tried it? Tell us how it went, even just "it works" or "it won't start": discussion #645.

v0.1.0-alpha

v0.1.0-alpha Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Nov 18:08
94221da

What's Changed

  • chore(deps): bump actions/checkout from 4 to 7 by @dependabot[bot] in #146
  • chore(deps): bump actions/cache from 4 to 6 by @dependabot[bot] in #147
  • chore(deps): bump anyhow from 1.0.102 to 1.0.104 in /agent-ebpf by @dependabot[bot] in #149
  • chore(deps): bump serde from 1.0.228 to 1.0.229 in /agent-ebpf by @dependabot[bot] in #148
  • chore(deps): bump the rust-minor group across 1 directory with 12 updates by @dependabot[bot] in #150
  • chore(deps): bump base64 from 0.22.1 to 0.23.1 by @dependabot[bot] in #152
  • chore(deps): bump thiserror from 1.0.69 to 2.0.18 by @dependabot[bot] in #153
  • chore(deps): bump tokenizers from 0.21.4 to 0.22.2 by @dependabot[bot] in #154
  • test(watchdog): retry unprotect+SIGKILL in the 3-cycle respawn e2e (race with the reinsert) by @northnarrow in #171
  • chore(xtask): bump ureq from 2 to 3 (supersedes Dependabot #151) by @northnarrow in #173
  • docs(changelog): cut 0.0.1 (v0.0.1-tappa9.0) and open a new Unreleased section by @northnarrow in #172
  • ci(audit): grant checks/issues write to the cargo audit job by @northnarrow in #174
  • feat(deploy): install.sh --upgrade, uninstall.sh, lab upgrade/uninstall checks by @northnarrow in #175
  • ci(release): tag-triggered release tarball, SBOM, checksums and provenance attestation by @northnarrow in #176
  • lab: second guest Debian 12 (NN_LAB_DISTRO); kernel compatibility matrix by @northnarrow in #177
  • docs: roadmap brought to the executed Tappe (9 → 10.8), README rewritten, logo by @northnarrow in #178
  • feat(ebpf): runtime BTF offsets — multi-kernel level 1 (+ iov_iter variants, ITER_UBUF) by @northnarrow in #179
  • fix(net): synthesise the netflow row when a close overtakes its connect; Debian perf_event_paranoid caps by @northnarrow in #180
  • feat(btf): --btf-check offline verdict, optional offsets (degrade, not refuse), ubuntu2204 lab guest by @northnarrow in #181
  • test(fim): credential-read e2e asserts the NN-L-FIM-011 detection; lab runs the FIM suite; respawn-check on systemd 249 by @northnarrow in #182
  • ci: BTF matrix — computed kernel-compatibility matrix over BTFHub with a baseline by @northnarrow in #183
  • fix(sensors): tracepoint field offsets from tracefs (RHEL 9 header shift); rules ignore empty filename; lab: AlmaLinux 9 guest by @northnarrow in #184
  • lab: soak test — hours of synthetic load with resource samples and a trend report by @northnarrow in #185
  • docs(roadmap): Tappa 10.8 aggiornata, nuova Tappa 10.9 copertura evasioni, candidati Tappa 15 by @northnarrow in #186
  • feat(supply-chain): install.sh verifies the release and records an install manifest; the agent re-verifies its binaries at every boot by @northnarrow in #187
  • fix(net): DNS attribution cache pruned of stale pids and capped — memory leak found by the 24 h soak by @northnarrow in #188
  • fix(posture): mass-write WARN once per pid per window (review entry 37) by @northnarrow in #189
  • feat(ops): host hardening checks — nn-admin host-check, status summary, agent boot WARNs, install.sh table by @northnarrow in #190
  • feat(sensors): per-ring drop counters read by the agent, WARN on increase, exposed in nn-admin status by @northnarrow in #191
  • ci(btf-matrix): pin target-cpu=x86-64-v2 and rotate the cache key (rustc SIGILL from a target dir cached on another CPU) by @northnarrow in #195
  • feat(sensors): io_uring sensor — ring creation and per-pid opcode-class activity, rules NN-L-IOU-001/002 by @northnarrow in #193
  • feat(fuzz): cargo-fuzz targets over every attacker-shaped parser + CI smoke job by @northnarrow in #192
  • feat(anti-tamper): BPF self-defence — lsm/bpf_map guard on own maps, lsm/bpf observer, rules NN-L-BPF-001/002 by @northnarrow in #194
  • ci: prune the workspace crates' artifacts from every restored cargo cache (stale "Fresh" from another branch) by @northnarrow in #196
  • feat(anti-tamper): BPF self-defence, second half — link handles denied, pin root protected, trusted-installer window as the purge path (review entry 39) by @northnarrow in #197
  • feat(agent): telemetry probe — the agent proves its own sensor coverage every minute (Tappa 10.8) by @northnarrow in #198
  • feat(anti-tamper): structured adversarial check (nn-lab.sh tamper-check) and the five findings it produced (review 40–44) by @northnarrow in #200
  • docs: triage of the 11 October external research + roadmap items (no reordering of Tappe) by @northnarrow in #199
  • feat(anti-tamper): tamper-check second part (cgroup.kill, saturation, io_uring) + agent_stop/previous_run (review 46) by @northnarrow in #201
  • feat(config): operator overlays are loaded only when signed (config-manage, nn-admin config overlay, rollback guard) by @northnarrow in #202
  • fix(lab): soak generator never started without SOAK_*_PER_S; sampler no longer dumps the agent's maps every minute; RHEL-safe nn-admin path by @northnarrow in #203
  • feat(verification): Kani proofs for the TLS cursor and the DNS name walk; first proof found a wrapping bound check by @northnarrow in #204
  • fix(detection): sudo/su egress chain stops killing admin tooling; systemd's getty pre-exec child may write wtmp (reviews 38, 47) by @northnarrow in #205
  • feat(lab): overhead benchmark — agent off vs on over the hooked operations (Tappa 10.8) by @northnarrow in #206
  • fix(fim): the package manager survives the agent — dpkg/rpm/dnf writes are recorded, not killed (review 49) by @northnarrow in #207
  • fix(packaging): binaries and units independent of /usr/local/bin; a unit copy earlier in systemd's load path is reported (reviews 26, 51) by @northnarrow in #208
  • feat(packaging): .deb and .rpm packages — install, migration from install.sh, upgrade and removal through the trusted-installer window (Tappa 10.8) by @northnarrow in #209
  • fix(anti-tamper): no kernel BTF is a fail-closed deny-hook shortfall; a mount hiding /sys/kernel/btf is reported; external BTF assessed (review 53) by @northnarrow in #210
  • test(fuzz): COMBAT management carve-out and canary templates — the two file parsers left (Tappa 10.8) by @northnarrow in #211
  • test(anti-tamper): tamper-check under kernel lockdown — kexec and an unsigned module refused, the agent unchanged; host-check counts lockdown as module signing (Tappa 10.8) by @northnarrow in #212
  • feat(verification): Kani proof of the admin quorum rule — shared by both multi-signature paths, threshold 0 closed in release builds (Tappa 10.8) by @northnarrow in #213
  • test(lab): release-check — the CI-built release tarball installed and verified on every guest (Tappa 10.8 demo) by @northnarrow in #214
  • docs(design): Tappa 10.9 sensor attach points — file open, exec pre-check and DNS on kernel-owned data (RFC, owner decisions needed) by @northnarrow in #215
  • Tappa 10.9 step 0: sensor-feasibility probes (LSM file_open, bprm_check_security, DNS skb) — 18/18 on 6.8, 6.1, 5.15; review 55 found by @northnarrow in #216
  • Review 55 (High): inode keys on btrfs report the subvolume's device, as stat() does — FIM and file protection were blind on btrfs by @northnarrow in #217
  • Tappa 10.9 step 1 sizing: cost per open of the file_open observer — classification must be cached per directory; Q7 (overhead gate) by @northnarrow in https://github.com/nor...
Read more

v0.0.1 — Tappa 9.0 + hardening round

Pre-release

Choose a tag to compare

@northnarrow northnarrow released this 09 Oct 06:07
769c193

NorthNarrow v0.0.1 — Tappa 9.0 + hardening round (8–9 ottobre 2026)

Prima release taggata: tutto il lavoro fino alla Tappa 9.0 più il giro di hardening dell'8–9 ottobre (PR #145, #155–#170). Tutti i rilievi High/Medium dei registri docs/audit/NN_BUG_AUDIT_2026-06-09.md e docs/audit/NN_REVIEW_2026-10-08.md sono chiusi e verificati nel laboratorio QEMU (kernel 6.8, BPF-LSM): e2e agent 6/6, watchdog 4/4, detection 18/18, canary 5/5, net 5/5, RAG golden 93,3 %, respawn-check OK.

Changelog

Security / safety

  • RAG release gates (golden ≥ 90 %, latency, e2e format) fail fast when
    target/kb is missing instead of silently benchmarking the built-in
    seed; the lab ships the corpus and reports 28/30 = 93.3 % on the real
    ATT&CK + Sigma dumps (the earlier 36.7 % was the seed-only artefact).
  • nn-admin rotate-keys add --new-roles accepts every role keyword the
    agent understands (canary-manage, fim-manage, net-read,
    triage, …), not only the legacy five: least-privilege keys for
    canary/FIM operators can now be granted from the CLI instead of
    hand-editing admin.pub or granting all. The install-bootstrapped
    key's roles (unlock,audit-read only) are documented in
    docs/operator/COMBAT_RECOVERY.md §1.1.
  • An orphan TCP close (no pending flow) is logged at WARN with the
    5-tuple instead of silently dropped at debug.
  • The outbound UDP sensor now observes unconnected sendto() traffic
    (destination read from msghdr->msg_name), rate-limited kernel-side
    to one netflow row per (pid, destination) per second. Before, only
    connected UDP sockets produced a row: QUIC-like beacons and raw-UDP
    exfil through an unconnected socket were invisible.
  • Boot-time audit self-check: a signed agent_boot entry is appended at
    startup; an unwritable audit log is fatal in enforcement mode
    (NN_AUDIT_ALLOW_UNWRITABLE=1 to override, detect-only warns).
  • Posture corroboration ledger is scoped per login session (loginuid
    of the owning pid; host-level activity is its own scope): a weak
    ENGAGED-tier signal from one user/container no longer corroborates a
    blunt COMBAT-tier signal from an unrelated one into a host-wide COMBAT.
  • Audit Medium round: TCP netflow rows and flow_id carry the real
    source address/port (close-time), not 0.0.0.0:0; the COMBAT
    kill-tree spares host-critical descendants (sshd, watchdog) via the
    ladder guard; the detections/ chain logs are in PROTECTED_INODES;
    mass-write ignores a session's own /run/user/<uid>/ writes only;
    nn-admin detection-set-status reports a persistence failure (exit
    10) distinctly from "not found" (exit 9).
  • /etc/northnarrow directory inode is now in PROTECTED_INODES
    (mutation-denied): the config tree can no longer be renamed or removed
    from under the agent by a root process outside PROTECTED_PIDS.
  • Canary deploy enforces a path policy (no system trees, no /run, no
    NorthNarrow state/config, no .., no symlink escape, O_NOFOLLOW
    write): a leaked admin key can no longer write root-owned files at
    arbitrary paths through nn-admin canary deploy.
  • Anti-tamper task_kill hook is deny-by-default: every userspace signal
    towards a protected pid is refused (previously only SIGKILL/SIGTERM, so
    kill -INT/-HUP/-QUIT/-STOP from root stopped or froze the agent).
    Allowed: signal 0, self-signals, signals between protected pids
    (watchdog ↔ agent) and PID 1 with the armed nonce. The watchdog now
    registers its own pid in PROTECTED_PIDS at boot (design §7.1; before,
    it was protected only if its pidfile pre-dated the agent's start).
  • R004 (fileless exec) also matches /dev/fd/N (what glibc's fexecve
    really passes) and /memfd: pseudo-paths; previously a memfd exec on
    Ubuntu 24.04 was undetected.
  • File canaries deployed at arbitrary paths trip again on READ: the FIM
    drain's BUG-012 v2 gate now forwards Opened events for canary inodes
    (published by the K3 index rebuild) to the rule engine.
  • Watchdog respawn v2 (docs/design/WATCHDOG_RESPAWN_V2_DESIGN.md): a
    crashed agent is restarted with systemctl start under its own unit
    (full ExecStart argv, own cgroup/caps/ProtectHome) instead of as a
    fork-exec child of the watchdog's 64 MiB / 2-cap sandbox. BindsTo=
    removed from the watchdog unit; StartLimitIntervalSec=0 on the agent
    unit. New flags --respawn-backend {auto,systemd,exec} and
    --agent-unit. Closes watchdog-respawn-1 and combat-avail-1.
  • Audit Beta-blockers closed: abi-modpath-1 (module path sensor now
    keeps 16 components and flags truncation; R018 never auto-kills on an
    unverifiable prefix), posture-1 (two blunt COMBAT-tier signals in one
    round cap at ENGAGED), ebpf-lsm-1 (LSM deny-hook attach shortfall is
    fail-closed: the agent refuses to start unless
    NN_ANTI_TAMPER_ALLOW_DEGRADED=1). at-authz-2 was already closed by #142.
    Wire change: ModuleLoadRaw grows from 312 to 568 bytes (eBPF and
    userland from the same common crate — rebuild both).
  • CAP_KILL added to the agent's CapabilityBoundingSet; without it
    KillProcess could only signal root-owned targets. New boot preflight
    (response/caps_preflight.rs) refuses to start in enforcement mode when
    CAP_KILL is missing and logs any other missing capability.
  • kill_process_tree refuses PID 0/1 as a root before walking /proc
    (PID 0's children are init + kthreadd, i.e. the whole host) and never
    yields PID 1/2 as descendants.
  • Quarantine refuses to vault + unlink binaries under system prefixes
    (/usr/bin, /usr/lib, /etc, /boot, …) and NorthNarrow's own paths.
  • Posture: the corroboration ledger is cleared on every COMBAT release
    path (audit posture-2).
  • NN-L-NET-005 / NN-L-NET-013 stateful windows evict idle keys (audit
    catchall-1, unbounded memory growth on a long-lived agent).

Fixed

  • Agent unit: /etc/northnarrow added to ReadWritePaths — under
    ProtectSystem=strict the installed agent could not append its own
    signed audit log (EROFS) nor bootstrap agent_id/agent.sig.key.
  • Agent unit: RuntimeDirectoryPreserve=yes — a respawn-v2 restart no
    longer wipes /run/northnarrow (watchdog pidfile, shutdown marker,
    honeypot baits).
  • install.sh now ships combat-rules.v4/.v6 from configs/ (missing
    ruleset = no NetworkIsolator = admin socket silently absent = watchdog
    stuck-recovery restart loop) and lifts chattr +i on the state dir
    for upgrades. The agent logs an ERROR when the ruleset is missing.
  • CI: cargo fmt, cargo clippy -D warnings and the test job are green
    again; ade-build no longer runs out of disk on the hosted runner;
    ebpf-build pins bpf-linker 0.10.3 (0.11 needs a system LLVM 21+).
  • Test flake anti_tamper::network_isolate::release_is_idempotent
    (ETXTBSY race on the mock iptables-restore script).
  • Dependencies: rustls 0.23.45 (RUSTSEC-2026-0285), crossbeam-epoch
    0.9.21 (RUSTSEC-2026-0204).

Added

  • deploy/lab/nn-lab.sh: QEMU/KVM Ubuntu 24.04 lab guest (kernel 6.8,
    lsm=…,bpf) with sync/build/test-e2e/test-ignored/install/respawn-check
    sub-commands; runs from WSL2 with nested virtualization.
  • cargo audit CI job, Dependabot (cargo + GitHub Actions), SECURITY.md.