Repository navigation
Arx v0.0.7 — what services start, and nothing left behind
·
182 commits
to f1-core-mvp
since this release
A compromised program shows itself by what it starts.
Process watching, in real time
- Every program a service starts is seen the moment it starts, through the kernel's process connector.
- sshd running anything before authenticating that isn't its own or declared in its configuration (the
xz backdoor's pattern) is frozen within milliseconds, isolated without network, and raises a
critical alert. Commands declared anywhere in sshd_config, includingMatchblocks and includes
(LDAP, sssd), are recognized, also when they are scripts; if the configuration can't be read with
certainty, it only alerts: a legitimate login is never frozen. Whatever that program already started
is frozen too, and the whole group is held in a frozen cgroup: an accomplice's SIGCONT can't wake it.
Tested with a real library injected into sshd: frozen 1 ms (OpenSSH 9.6) and 22 ms (OpenSSH 10)
after starting, before its command could run. Works with sshd per connection (sshd@instances,
as on Debian 13). - The keys command's user (
AuthorizedKeysCommandUser) only covers what that command runs: the
programs its script names, its scripts run by their own interpreter (never a bare shell orsh -c),
or what it ran while observed. A backdoor that switches to that user to start something else raises
a critical alert with the program's hash and arguments; it is not frozen, so no login is ever blocked. - A declared command started with code-loading variables (
BASH_ENV,LD_PRELOAD, exported shell
functions, aPATHoutside the system's) raises a critical alert. Scripts with an argument in their
shebang (#!/bin/sh -e) are recognized. arx accepton an sshd alert now sticks with sshd per connection (Debian 13): the accepted command is
no longer frozen at the next login.- A web server or database starting a shell or a downloader as its service user (a webshell) gets that
process frozen; the server keeps running. - A watched service starting a program it never started gets that process isolated without network in
a scope of its own; the service keeps running. Arx acts on that process, never on every process of
the same program.
OpenSSH updates
- An untrusted OpenSSH update leaves sshd without outbound network except DNS and its Kerberos, LDAP or
RADIUS servers, per-connection instances included. Open sessions and new logins keep working, also
after sshd restarts.
Safer by default
- Stopping Arx, or changing its unit or files, is reported through your alert channels. A stale
"planned stop" mark can no longer swallow a real stop. - Arx is capped in CPU and memory, runs at low priority, and is the first the kernel kills if memory
runs out: it never takes the host down. Large packages are compared streaming. apt purge arxgives the network back to everything Arx confined and leaves nothing of its own.- Secrets (API keys, license, bot token) never reach a log, the journal or an error message.
- New: docs/runbook.md, what to do with each alert.
Release integrity
- Signed build provenance for every file:
gh attestation verify arx_all.deb -R mperez90/Arx. - CI actions pinned by commit.
Consensus groundwork (closed until the service exists): each voter's network is part of the voter
list signed offline, so hosts no longer take the server's word for it.
Verified on Ubuntu 24.04 (OpenSSH 9.6) and Debian 13 (OpenSSH 10.0, with sshd-auth).
Known limitations
- A backdoor that neither starts a program nor talks somewhere new (a pure authentication bypass) is
still the hard case. - Without the kernel's process connector (some containers), process watching only sees what lasts
until the next sweep. - Process watching learns what each service starts during its observation; a service that legitimately
starts something new afterwards needsarx accept. - A program the keys command's script names directly (
awk,curl) is trusted under that user with
any arguments. - Critical services other than sshd (dbus, systemd's own) and updater, clock or container services get
an alert for an untrusted update, not confinement.