What is a rule bundle?
A bundle is a set of rules in one file with a detached signature. The engine verifies the signature against keys it trusts before using a bundle, every time, and bundles cannot run code: conditions are sandboxed CEL with no I/O and a time budget.
Which rules the engine uses, first match wins:
--rulesorTOMOSU_RULES_DIR;- the bundle installed in the data folder (
rules import,rules watch, or the upload form); - the signed snapshot embedded in the binary, which works offline with no setup.
$ tomosu rules status
active: none (the embedded snapshot is used)
How are bundles updated?
A newer bundle is verified and swapped in without a restart. An older bundle never replaces a newer one, except by an explicit rollback:
tomosu rules import rules-community-2026.12.json # verify and install a bundle (its .sig beside it)
tomosu rules status # the active bundle and recent attempts
tomosu rules rollback # make the previous bundle active again
Every finding records the rules version it came from, so results from CI and from production can be compared.
How does an air-gapped engine get updates?
Bundles cross the gap as files, in two steps that can both run unattended:
1. Download on a machine that can reach the registry:
tomosu rules pull --channel community --out /srv/tomosu/outbox --trust /etc/tomosu/trusted-keys.json
It writes the bundle, its signature and a transfer manifest (sizes and SHA-256 of each file, written last), downloads nothing until a new release exists, and exits 0 when it wrote a new bundle and 10 when nothing was new. --json prints a result for logs.
2. Load on the engine, automatically or by hand:
tomosu rules watch --data-dir /var/lib/tomosu --interval 1m # watch an inbox
tomosu rules watch --once --data-dir /var/lib/tomosu # one pass, from cron
tomosu rules import /media/usb/outbox/ # every set in a folder, by hand
A partial, tampered, duplicate or older set is moved aside with the reason, and the running rules do not change. tomosu ui also offers an Upload a bundle form, protected by the start-up key. All paths share one implementation, so a bundle accepted by one is accepted by the others.
Do Pro rules work offline too?
Yes. Pro rules are encrypted to the install and keep working without a network until the bundle expires. See Pro rules.