Skip to content

Releases

SJB-OS 0.9.16-r01

Choose a tag to compare

@stevejboyle stevejboyle released this 28 Nov 00:20
v0.9.16-r01
cb9fd34

An experimental demonstration of AI-generated software for isolated lab use. Not a commercial, supported, or production-ready security product. Do not rely on it to protect production systems. Working code does not establish security effectiveness, resilience, or operational readiness.

SJB-OS is an experiment in how far one person can get building systems software by directing AI instead of writing code; see the README for the goal and the evidence.

Download

  • sjb-os-0.9.16-r01.ova: a new appliance (vSphere 8.0 U1 or later).
  • sjb-os-0.9.16-r01.upgrade: upgrades appliances on 0.8.0 or later in place (Web UI → System → Administration → Upgrade). About 167 MB.
  • *.sha256: check each download against its checksum.
  • sjb-os-0.9.16-r01.sources.txt, sjb-os-0.9.16-r01.ova-sources.txt: the exact third-party code the bundle and the image ship, and where its source is; sjb-os-0.9.16-r01-sources.tar.gz: the source of the code built by this repository (nDPI, the Go modules, SJB-OS itself). Debian packages: see THIRD_PARTY_NOTICES.md (manifest, fetch-sources.py, and a written offer).

What changed

Every traffic, threat and decryption log entry now shows the country and the autonomous system (AS number and organisation) of its source and destination.

  • In the logs.
    • New columns src_country, dst_country (shown by default), src_asn and dst_asn (opt-in; shown as AS15169 Google LLC), in the CLI (show log ... columns ...) and the web UI's column picker.
    • Private and reserved addresses show blank.
    • Country and AS are looked up when an entry is read or forwarded, with the database in use at that moment, so an old entry viewed after a monthly refresh shows the newer month's answer.
  • Searchable. New query fields: src_country, dst_country, country (either side); src_asn, dst_asn, asn (numbers); src_org, dst_org, org (text, contains). For example show log traffic where src_country = CN and asn = 64501. Bare-word search matches them too. In the web UI, clicking a country or AS cell adds it as a filter.
  • Forwarding.
    • JSON gains src_country, src_asn, src_as_org, dst_country, dst_asn and dst_as_org, left out when empty.
    • CEF gains the vendor extension keys sjbSrcCountry, sjbSrcAsn, sjbSrcAsOrg, sjbDstCountry, sjbDstAsn and sjbDstAsOrg, left out when empty. cs1–cs5 are unchanged.
  • The AS database.
    • It is DB-IP's free IP to ASN Lite database (CC BY 4.0, the same attribution as the country data), converted to merged IPv4 ranges plus a table of AS names. This release carries November 2026: 409,312 IPv4 rows for 79,954 ASes, about 4.7 MB on disk. It ships beside the country database in the OVA and in every bundle.
    • request geoip update and the daily check fetch both databases; each is checked and reported on its own. fwctl geoip import FILE tells the two CSV types apart by their columns.
    • Lookups never wait on the daemon's lock, so reading logs isn't slowed by a long commit.
  • Behaviour change: the daily check. It now runs whenever system geoip-auto-update is on (the default), not only while rules use countries, because the logs always use the data. Appliances with no country rules will now contact download.db-ip.com once a day over the outside link. set system geoip-auto-update off stops it.
  • CLI: show geoip shows both databases; show geoip lookup IP adds the AS.
  • Web UI: the IPS page's panel is now "Geo-IP and AS data", with the AS database and the AS in the lookup. Also fixed: choosing the threat log's Exception column in the web UI showed nothing; it now shows the exception's name, and clicking it filters.
  • Monitoring: new Prometheus metric sjbos_asn_age_seconds; GET /v1/geoip gains an asn section. No new SJB-OS-MIB objects, for the same reason as 0.9.15-r01 (the MIB moves to SJB Consulting's own enterprise number later).

OS updates in this bundle

The same Debian updates as 0.9.14-r01 (31 packages, kernel 6.12.118). Appliances already on 0.9.14-r01 or later have them all, so the upgrade installs no OS packages and needs no reboot.

Verification

  • Unit tests with the race detector (make test), all passing. New tests cover:
    • parsing DB-IP's ASN CSV (gzipped or not, IPv6 rows skipped, bad or incomplete files refused), merging ranges, saving and loading, and lookups;
    • the store (the newer month wins per database) and the download of both databases, with the previous month only on a 404;
    • the log readers filling country and AS, the new columns, query fields and aliases;
    • JSON and CEF output with and without the data;
    • the daemon: lookups that don't block while the daemon's lock is held, private addresses shown blank, imports telling the CSV types apart, the daily check running with no country rules;
    • the Prometheus metric.
  • Lab gates (network namespaces in a privileged container), run on the release commit: phase 1, sessions, NAT, trunk, TLS decryption, users and geo all pass, and the log-forwarding gate passes with new checks: test country and AS imports, then country and AS in forwarded JSON and CEF and in log queries.
  • Boot test, the 0.9.15-r01 image upgraded to this bundle (QEMU with VMware's device models): all 230 checks passed. Besides every existing check, it checked:
    • the shipped November country and AS databases are in use; show geoip lookup 8.8.8.8 gives US and AS15169 Google LLC; request geoip update reached DB-IP and found both up to date;
    • with test imports, the threat log (where country = CN and country = US), the traffic log (where src_country = CN and asn = 64501) and the decryption log (where dst_country = GB) found their entries with countries and ASes;
    • forwarded JSON and CEF carried the destination's country and AS;
    • sjbos_asn_age_seconds in the Prometheus scrape;
    • rollback to 0.9.15-r01 and a second upgrade.
  • Boot test, fresh OVA: all 223 checks passed, the new checks included.
  • Web UI: the new columns, click-to-filter, and the Geo-IP and AS panel, checked in a browser in light and dark mode against a development ngfwd.
  • The build used November files downloaded earlier the same day. DB-IP's server timed out during the release build, so it was rebuilt from local copies of the same November files (the country data is byte-identical to 0.9.15-r01's).
  • Not run:
    • a test on real hardware;
    • the 24-hour soak.

Credits

Steve Boyle used Claude Code to generate the project-specific implementation, tests, and documentation under his direction. SJB-OS builds on Linux netfilter (nftables, conntrack), nDPI, Suricata with the Emerging Threats Open signatures, FRRouting, ISC Kea, net-snmp, OpenSSH and Debian; their licenses are in THIRD_PARTY_NOTICES.md. Country and AS data: IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0.

SJB-OS 0.9.15-r01

Choose a tag to compare

@stevejboyle stevejboyle released this 27 Nov 22:03
v0.9.15-r01
77887cb

An experimental demonstration of AI-generated software for isolated lab use. Not a commercial, supported, or production-ready security product. Do not rely on it to protect production systems. Working code does not establish security effectiveness, resilience, or operational readiness.

SJB-OS is an experiment in how far one person can get building systems software by directing AI instead of writing code; see the README for the goal and the evidence.

Download

  • sjb-os-0.9.15-r01.ova: a new appliance (vSphere 8.0 U1 or later).
  • sjb-os-0.9.15-r01.upgrade: upgrades appliances on 0.8.0 or later in place (Web UI → System → Administration → Upgrade). About 155 MB.
  • *.sha256: check each download against its checksum.
  • sjb-os-0.9.15-r01.sources.txt, sjb-os-0.9.15-r01.ova-sources.txt: the exact third-party code the bundle and the image ship, and where its source is; sjb-os-0.9.15-r01-sources.tar.gz: the source of the code built by this repository (nDPI, the Go modules, SJB-OS itself). Debian packages: see THIRD_PARTY_NOTICES.md (manifest, fetch-sources.py, and a written offer).

What changed

Security rules can now match traffic by country, and either side of a rule can be negated.

  • Countries in rules.
    • Rules name countries directly as country:XX (ISO 3166-1 codes), in source and destination, mixed freely with addresses, groups and tag groups. Static address groups can hold countries too.
    • Examples: set rule no-cn-ru from outside source [ country:CN country:RU ] action deny, or allow inbound to a server only from the US.
    • Unknown codes are refused at commit. NAT, decryption rules and IPS exceptions don't take countries.
    • IPv4 only, like the rest of SJB-OS.
  • Negation. New source-negate and destination-negate (yes or no) match everything except the listed addresses, groups and countries, for example "deny everything from outside that isn't from the US or Canada". Negating any is refused.
  • The country database.
    • It is DB-IP's free IP to Country Lite database (CC BY 4.0, "IP Geolocation by DB-IP", https://db-ip.com), converted to merged IPv4 ranges per country.
    • A copy ships in the OVA and in every bundle: this release carries November 2026 (362,998 IPv4 rows, 246 countries).
    • While rules use countries and system geoip-auto-update is on (the default), the appliance checks DB-IP daily for a newer month over the outside link. A failed check keeps the current data and is reported.
    • request geoip update checks now. fwctl geoip import FILE (root) loads a DB-IP CSV by hand, for appliances with no internet access.
    • Only the countries the rules use are loaded into nftables, one interval set each, in the same atomic transaction as the ruleset.
    • A new month re-applies the running revision with the new ranges. It is not a policy change: no new revision, no connection flush, no gap in enforcement.
    • With no database, or a country with no ranges, its set is empty: allow rules for it match nothing (fail closed), and the commit warns.
  • CLI: show geoip (database month, age, last check, the countries in use with range counts, DB-IP's attribution), show geoip lookup IP, request geoip update; Tab completes country codes with their names once two characters are typed.
  • Web UI: the rule and group editors offer a searchable country picker (by code or name) and a Negate checkbox for each side; the policy table shows "not" before a negated side; the IPS page has a Geo-IP panel with the database, the countries in use, a lookup, Check for an update, and the attribution.
  • Monitoring: new Prometheus metrics sjbos_geoip_age_seconds, sjbos_geoip_last_update_success and sjbos_geoip_countries_in_use. No new SJB-OS-MIB objects: the MIB moves to SJB Consulting's own enterprise number (requested from IANA) in a later release.

OS updates in this bundle

The same Debian updates as 0.9.14-r01 (31 packages, kernel 6.12.118); Debian has published nothing newer for trixie since. Appliances already on 0.9.14-r01 have them all, so the upgrade installs no OS packages and needs no reboot.

Verification

  • Unit tests with the race detector (make test), all passing. New tests cover:
    • parsing DB-IP's CSV (gzipped or not, IPv6 rows skipped), merging ranges (including the top of the address space), rejecting bad or incomplete files, and lookups;
    • the store (shipped and local copies, the newer month wins) and the download: the current month, the previous one only when the current isn't published (404), a server error that must not fall back, a bad file keeping the old data, and the size cap;
    • config validation of countries and negation, and where countries are refused;
    • the compiler: one interval set per country, ranges added in chunks, negated sides, countries mixed with addresses and groups, an empty country, and shadowing with negation;
    • the daemon: an import re-applies with no new revision and an unchanged policy string, lookups, the start-up order, a bad import, an update with no network;
    • configure-mode completion, the web UI handlers, and the Prometheus metrics.
  • nftables: a script with the full November sets for US, GB, DE, CN and RU (3.5 MB) loads in 0.2 s; real nft accepts the negated set rules.
  • Lab gates (network namespaces in a privileged container), run on the feature commit before the last two fixes, which changed only the download fallback and the build's retries: phase 1, sessions, NAT, trunk, log forwarding, TLS decryption and users all pass, and the new geo gate passes: no database warns, an import makes no revision, set contents, lookups, deny CN, a negated US-only rule, and six database refreshes during 80 requests with none failed and none leaked.
  • Boot test, the 0.9.14-r01 image upgraded to this bundle (QEMU with VMware's device models): all 224 checks passed. Besides every existing check, it checked:
    • the shipped November database is in use with DB-IP's attribution, and request geoip update reached DB-IP and found it up to date;
    • an imported test database put the test client in CN and the server in US; a deny-CN rule blocked the client (set geo_cn held its network), and a negated US-only rule blocked it too;
    • a database refresh made no revision and the rule still held, and the Prometheus geo metrics showed 1 country in use and the last update OK;
    • rollback to 0.9.14-r01 and a second upgrade.
  • Boot test, fresh OVA: all 217 checks passed, the geo checks included.
  • Web UI: the rule editor (countries and Negate) and the Geo-IP panel, checked in a browser in light and dark mode against a development ngfwd.
  • An earlier build of this release was not published. Its boot tests found three faults in the test script (fixed) and one in the build: a passing network error on November's download made it fall back to October's database. That fallback now happens only when DB-IP hasn't published the month yet. The release was rebuilt and both boot tests rerun.
  • Not run:
    • a test on real hardware;
    • the 24-hour soak.

Credits

Steve Boyle used Claude Code to generate the project-specific implementation, tests, and documentation under his direction. SJB-OS builds on Linux netfilter (nftables, conntrack), nDPI, Suricata with the Emerging Threats Open signatures, FRRouting, ISC Kea, net-snmp, OpenSSH and Debian; their licenses are in THIRD_PARTY_NOTICES.md. Country data: IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0.

SJB-OS 0.9.14-r01: Debian security updates and the kernel through signed bundles

Choose a tag to compare

@stevejboyle stevejboyle released this 27 Nov 07:04
v0.9.14-r01
e8495a9

An experimental demonstration of AI-generated software for isolated lab use. Not a commercial, supported, or production-ready security product. Do not rely on it to protect production systems. Working code does not establish security effectiveness, resilience, or operational readiness.

SJB-OS is an experiment in how far one person can get building systems software by directing AI instead of writing code; see the README for the goal and the evidence.

Download

  • sjb-os-0.9.14-r01.ova: a new appliance (vSphere 8.0 U1 or later). It ships with Debian's current updates and kernel 6.12.118.
  • sjb-os-0.9.14-r01.upgrade: upgrades appliances on 0.8.0 or later in place (Web UI → System → Administration → Upgrade). It is now about 152 MB, because it carries Debian's updates.
  • *.sha256: check each download against its checksum.
  • sjb-os-0.9.14-r01.sources.txt, sjb-os-0.9.14-r01.ova-sources.txt: the exact third-party code the bundle and the image ship, and where its source is; sjb-os-0.9.14-r01-sources.tar.gz: the source of the code built by this repository (nDPI, the Go modules, SJB-OS itself). Debian packages: see THIRD_PARTY_NOTICES.md (manifest, fetch-sources.py, and a written offer).

What changed

Debian security updates and the kernel now reach appliances through the same signed upgrade bundles as SJB-OS itself. Until now an upgrade replaced only SJB-OS's own files and the packages it adds, and the rest of the OS waited for apt upgrade as root.

  • Bundles carry Debian's updates.
    • Every package the appliance runs that Debian has a newer version of is included: security fixes, point-release updates, and the kernel.
    • They are resolved at build time from trixie, trixie-updates and trixie-security, and listed in /usr/share/sjb-os/packages/os-updates.txt.
    • They arrive inside the signed bundle, so the appliance needs no internet access.
    • They install in the background after the upgrade, only where the bundled version is newer, never as a downgrade.
    • The install checks disk space first. A failed install is recorded and retried at the next start.
  • Reboots are yours to start.
    • A new kernel runs only after a reboot, and SJB-OS never reboots on its own.
    • When one is needed, it shows in show version, fwctl upgrade status, System → Administration, sjbos_reboot_required (Prometheus) and sjbRebootRequired (SNMP).
    • New: request system reboot in the CLI and a Reboot now button in the web UI, for users who may change upgrades.
    • The previous kernel stays as a fallback; older ones are removed once the newest runs.
    • A reboot is recommended (not required) after updates to libc6, systemd or OpenSSL.
  • Rollback puts the packages back.
    • Before replacing a package, the install saves the installed version, rebuilt from dpkg's own records with changed config files included.
    • fwctl upgrade rollback reinstalls those saved versions, then removes what the upgrade added, the new kernel included. If that kernel is the one running, it is still removed, and a reboot is required.
    • A failed upgrade restores the saved packages too.
    • Upgrades made before 0.9.14 saved nothing, so rolling them back leaves the packages as they are.
  • Monitoring:
    • new Prometheus metrics sjbos_reboot_required, sjbos_os_packages_state and sjbos_os_packages_pending;
    • new SJB-OS-MIB objects sjbRebootRequired, sjbOsPackagesState and sjbOsPackagesPending;
    • existing names and objects are unchanged.

OS updates in this bundle

These are measured against the oldest supported base image, 0.9.9-r03; newer appliances install only what they lack. "Security" means the package came from Debian's security archive. Point-release updates can carry security fixes too.

  • libc6 2.41-12+deb13u4 → 2.41-12+deb13u5
  • base-files 13.8+deb13u7 → 13.8+deb13u8
  • libc-bin 2.41-12+deb13u4 → 2.41-12+deb13u5
  • linux-image-6.12.118+deb13-amd64 absent → 6.12.118-1 (security)
  • openssl-provider-legacy 3.5.7-1deb13u3 → 3.5.9-1deb13u1
  • libzstd1 1.5.7+dfsg-1 → 1.5.7+dfsg-1+deb13u1 (security)
  • libssl3t64 3.5.7-1deb13u3 → 3.5.9-1deb13u1
  • sudo 1.9.16p2-3+deb13u2 → 1.9.16p2-3+deb13u5
  • login.defs 1:4.17.4-2 → 1:4.17.4-2+deb13u1 (security)
  • passwd 1:4.17.4-2 → 1:4.17.4-2+deb13u1 (security)
  • libc-l10n 2.41-12+deb13u4 → 2.41-12+deb13u5
  • locales 2.41-12+deb13u4 → 2.41-12+deb13u5
  • grub-efi-amd64-unsigned 2.12-9+deb13u2 → 2.12-9+deb13u4
  • grub-efi-amd64-bin 2.12-9+deb13u2 → 2.12-9+deb13u4
  • libefivar1t64 38-3.1+b1 → 38-3.1+deb13u1
  • libefiboot1t64 38-3.1+b1 → 38-3.1+deb13u1
  • grub2-common 2.12-9+deb13u2 → 2.12-9+deb13u4
  • grub-pc-bin 2.12-9+deb13u2 → 2.12-9+deb13u4
  • grub-common 2.12-9+deb13u2 → 2.12-9+deb13u4
  • grub-efi-amd64-signed 1+2.12+9+deb13u2 → 1+2.12+9+deb13u4
  • libfreetype6 2.13.3+dfsg-1+deb13u1 → 2.13.3+dfsg-1+deb13u2
  • libk5crypto3 1.21.3-5+deb13u1 → 1.21.3-5+deb13u2 (security)
  • libgssapi-krb5-2 1.21.3-5+deb13u1 → 1.21.3-5+deb13u2 (security)
  • libkrb5support0 1.21.3-5+deb13u1 → 1.21.3-5+deb13u2 (security)
  • libkrb5-3 1.21.3-5+deb13u1 → 1.21.3-5+deb13u2 (security)
  • mariadb-common 1:11.8.6-0+deb13u1 → 1:11.8.9+ds-0+deb13u1
  • libmariadb3 1:11.8.6-0+deb13u1 → 1:11.8.9+ds-0+deb13u1
  • libnghttp2-14 1.64.0-1.1+deb13u1 → 1.64.0-1.1+deb13u2
  • linux-image-amd64 6.12.116-1 → 6.12.118-1 (security)
  • openssl 3.5.7-1deb13u3 → 3.5.9-1deb13u1
  • zstd 1.5.7+dfsg-1 → 1.5.7+dfsg-1+deb13u1 (security)

Verification

  • Unit tests with the race detector (make test), all passing. New tests cover:
    • Debian version ordering and choosing which packages to install;
    • saving replaced versions once per upgrade, never overwriting them;
    • a failed install, and too little disk space;
    • the reboot-required and reboot-recommended logic, and removing old kernels;
    • the rollback restore: downgrade, removing added packages, a refused removal, the running kernel, and nothing saved;
    • the rollback hook's order and failure, and a failed upgrade restoring packages;
    • reboot permissions, and the OS state in Prometheus and SNMP.
  • The repacked packages, checked against real dpkg (Debian 13 container):
    • the file lists of repacked libc6, libc-bin, sudo, zstd, libzstd1 and base-files match dpkg's;
    • libc6, libc-bin, base-files, login.defs and passwd were upgraded, then put back to their earlier versions from the repacked copies, with dpkg --audit clean and the binaries working.
  • Boot test, the 0.9.12-r01 image upgraded to this bundle (QEMU with VMware's device models; kernel 6.12.117 to 6.12.118): 219 passed, 1 failed. In order, it checked:
    • the upgrade installed every listed update and saved 24 replaced packages;
    • show version flagged the reboot, and request system reboot brought the appliance up on 6.12.118;
    • the rollback to 0.9.12-r01 put libc6 back to 2.41-12+deb13u4 and removed the running 6.12.118 kernel, then it rebooted onto 6.12.117;
    • a second upgrade and reboot brought it back onto 6.12.118;
    • the web UI's reboot worked, and every existing check passed on the new kernel.
  • Boot test, fresh OVA: 208 passed, 1 failed. It had one kernel, nothing pending and no reboot flag.
  • The one failure in each boot test was a fault in the test, not the appliance. The check matched the kernel name as a regular expression, and the + in 6.12.118+deb13 broke it. The metrics it printed were correct (reboot required 0, the right package state, 0 pending). The check was fixed after these runs and verified against both runs' output; the boot tests were not rerun.
  • Lab gates (after release, on main at e7a3d25, the same code with only docs and the boot-test script changed): phase 1, sessions, NAT, trunk, log forwarding, TLS decryption and users all pass.
  • Not run:
    • a test on real hardware;
    • the 24-hour soak.

Credits

Steve Boyle used Claude Code to generate the project-specific implementation, tests, and documentation under his direction. SJB-OS builds on Linux netfilter (nftables, conntrack), nDPI, Suricata with the Emerging Threats Open signatures, FRRouting, ISC Kea, net-snmp, OpenSSH and Debian; their licenses are in THIRD_PARTY_NOTICES.md.

SJB-OS 0.9.13-r03: monitoring and SNMP hardening

Choose a tag to compare

@stevejboyle stevejboyle released this 26 Nov 06:59
v0.9.13-r03
b1db72d

An experimental demonstration of AI-generated software for isolated lab use. Not a commercial, supported, or production-ready security product. Do not rely on it to protect production systems. Working code does not establish security effectiveness, resilience, or operational readiness.

SJB-OS is an experiment in how far one person can get building systems software by directing AI instead of writing code; see the README for the goal and the evidence.

Download

  • sjb-os-0.9.13-r03.upgrade: upgrades appliances on 0.8.0 or later in place (Web UI → System → Administration → Upgrade). For new installs, deploy the 0.9.13-r01 OVA, then upgrade with this bundle.
  • *.sha256: check each download against its checksum.
  • sjb-os-0.9.13-r03.sources.txt: the exact third-party code the bundle ships, and where its source is; sjb-os-0.9.13-r03-sources.tar.gz: the source of the code built by this repository (nDPI, the Go modules, SJB-OS itself). Debian packages: see THIRD_PARTY_NOTICES.md (manifest, fetch-sources.py, and a written offer).

What changed

A hardening release for the monitoring and SNMP added in 0.9.13-r01, from ChatGPT's architectural and source code review of commit 60037fe. No new features; configs, metric names and MIB objects stay as they were (the changes are additions).

  • Monitoring numbers say how fresh they are.
    • Each part of the metrics has a state and a read time, in sjbos_collection_state and sjbos_collection_timestamp_seconds (SNMP: the new sjbCollectionTable). The parts are config, IPS, decryption, NAT, rules, App Identification and system, and the states are current, stale (last known values), never read, and failed.
    • During a long commit, the parts behind the daemon's lock are reported stale with their values, no longer as freshly read.
    • Values never read are left out, not shown as zeros.
    • A service whose state couldn't be read freshly is neither "up" nor faulty, and SNMP raises no alarm from stale data.
  • Monitoring load is bounded.
    • Prometheus scrapes and the SNMP agent share one collection, refreshed at most every 5 seconds. However many clients poll, there is one collection at a time, and a client waits at most 4 seconds.
    • Every command monitoring runs (nft, systemctl) has a time limit, so a hung one can't pile up work.
  • Counters fail honestly. A counter nft couldn't read is reported as a failure, never as zero. A chain that doesn't exist (nothing of that kind configured) is not a failure, and a counter that reads zero is a real zero.
  • SNMP credentials change safely.
    • Adding, changing, deleting and restoring credentials are serialised with commits and candidate edits. A commit can no longer pick up a credential that is being deleted, or one that is changing kind.
    • Deletes and kind changes are refused while the running or candidate config names the credential.
    • A backup's credentials are merged and checked before anything is written.
    • The credentials file is validated as a whole whenever it is read or written: unique names, the reserved internal name, the secrets and the internal passphrase. A damaged file is reported in show snmp, never written over. Errors never quote a secret.
  • snmpd is checked, and recovered.
    • A restart request is no longer taken as proof snmpd runs. show snmp and the Monitoring page say starting, running, failed (with the next retry), gave up, or error.
    • If snmpd doesn't come up, or stops later, it is started again with growing waits (10 seconds, doubling up to 5 minutes), at most 6 times. Then it waits for the next commit or a change.
    • Stopping it no longer blocks a commit, and adding or changing a credential reports snmpd's warnings.
    • The security policy is never rolled back because of snmpd.
  • Isolation, now tested. The SNMP setup was reviewed and found isolated as designed. Debian's own snmpd config, used briefly while the package installs during an upgrade, listens on loopback only. The boot test now checks it from the dataplane side, as listed under Verification.
  • Every systemctl status check (status pages included) now has a 5-second limit.

Verification

  • Unit tests with the race detector (make test), all passing. A test for each finding:
    • H-01: a credential delete racing a commit, a kind change racing a commit, kind changes and deletes while referenced, a restore racing deletes and kind changes, and a failed write leaving the store unchanged.
    • H-02: the first collection while a commit holds the lock, values kept but marked stale during a long commit, and recovery.
    • H-03: a start accepted but failing, retries bounded at 6, an unexpected exit, a rotation followed by a failed restart, a package installed later, and SNMP turned off during recovery.
    • M-01: 100 concurrent scrapes running no extra collection, and a hung nft holding up nothing beyond one read.
    • M-02: missing chains, execution failures, malformed output, timeouts, real zeros, and recovery.
    • M-03: duplicate and reserved names, a bad internal passphrase, malformed files and backups, legacy backups, and no secrets in errors.
    • API keys: scopes enforced alike on the tag API, the XML endpoint and /metrics, and revocation immediate everywhere.
  • Lab gates: phase 1 (including /metrics with real nftables counters), sessions, NAT, trunk, log forwarding, TLS decryption and users all pass.
  • Boot test (the 0.9.13-r01 image upgraded to this bundle in QEMU with VMware's device models): all 208 checks passed, none failed. That includes the new checks: UDP 161 unreachable from a routed dataplane zone (to its own and to the management address) and from a VLAN in another VRF, even with those sources listed as managers, and still after a zone and interface change; v2c refused from an unlisted management address; v3 refused at lower security levels and with a wrong privacy passphrase; collection health exported over both protocols; and after a reboot, the ruleset up before snmpd, which runs in the management VRF and answers. The fresh-OVA boot test of the same code (built from an earlier commit that differs only in that test's ordering) passed every check except one test-ordering fault, since fixed.
  • Soak test (short run, after release): 20 minutes asked, 22 minutes run (17 rounds) under QEMU emulation, with harness fixes 2d79ca2, e5f362c and 0b764fc (the release itself is unchanged). 0 unexpected results: allowed traffic, IPS blocking, the denied port, the hairpin port forward and a long-lived session held every round; 3 valid commits accepted (2.1–5.4 s) and 3 invalid ones refused; snmpd killed twice and back each time; the credential add/change/delete cycle passed; no restarts of ngfwd, Suricata or appidd. Every scrape had all 7 sections current (399–556 ms); SNMP polls took 34–121 ms; transfers held 97–131 Mb/s, about the same with 20 parallel scrapes (119–127 Mb/s). ngfwd memory rose from 25 MB to about 38–42 MB by round 8 and then stayed level; threads stayed at 10. A 20-minute run can't rule out a slow leak. Ping latency wasn't recorded (a harness gap).
  • Not run:
    • the 24-hour soak (the harness, deploy/appliance/soak-test.sh … 24h, is ready);
    • a test on real hardware;
    • a real Prometheus server (scrapes used curl).

Credits

Steve Boyle used Claude Code to generate the project-specific implementation, tests, and documentation under his direction. He also used ChatGPT to review the code and help optimize and finalize the solution, including identifying correctness gaps and defining release-readiness fixes. SJB-OS builds on Linux netfilter (nftables, conntrack), nDPI, Suricata with the Emerging Threats Open signatures, FRRouting, ISC Kea, net-snmp, OpenSSH and Debian; their licenses are in THIRD_PARTY_NOTICES.md.

SJB-OS 0.9.13-r02: System save keeps the other settings

Choose a tag to compare

@stevejboyle stevejboyle released this 26 Nov 01:18
v0.9.13-r02
bd67f05

An experimental demonstration of AI-generated software for isolated lab use. Not a commercial, supported, or production-ready security product. Do not rely on it to protect production systems. Working code does not establish security effectiveness, resilience, or operational readiness.

SJB-OS is an experiment in how far one person can get building systems software by directing AI instead of writing code; see the README for the goal and the evidence.

Download

  • sjb-os-0.9.13-r02.upgrade: upgrades appliances on 0.8.0 or later in place (Web UI → System → Administration → Upgrade). For new installs, deploy the 0.9.13-r01 OVA, then upgrade with this bundle.
  • *.sha256: check each download against its checksum.
  • sjb-os-0.9.13-r02.sources.txt: the exact third-party code the bundle ships, and where its source is; sjb-os-0.9.13-r02-sources.tar.gz: the source of the code built by this repository (nDPI, the Go modules, SJB-OS itself). Debian packages: see THIRD_PARTY_NOTICES.md (manifest, fetch-sources.py, and a written offer).

What changed

Saving System settings in the web UI no longer resets other settings. On the Interfaces page, Save under System (hostname, management interface) replaced the config's whole system section with just those two fields. Saving dropped the App Identification, IPS, disabled-signature and decryption settings from the candidate, and the next commit put them back to their defaults. For example, an IPS that was turned off came back on. The save now changes only the hostname and the management interface.

If you saved System settings on that page since these settings were added, check show running (or the IPS and Decryption pages) for system settings you expect.

Everything 0.9.13-r01 brought (Prometheus metrics, the SNMP agent) is unchanged.

Verification

  • Checked in the web UI: with IPS off and decryption set to observe in the candidate, saving a new hostname on the Interfaces page kept both, and changed the hostname.
  • The web UI's Go tests and go vet pass.
  • Not run: the boot test (a revision build); there is no JavaScript test harness, so the page itself is covered only by the manual check above. No test on real hardware.

Credits

Steve Boyle used Claude Code to generate the project-specific implementation, tests, and documentation under his direction. He also used ChatGPT to review the code and help optimize and finalize the solution, including identifying correctness gaps and defining release-readiness fixes. SJB-OS builds on Linux netfilter (nftables, conntrack), nDPI, Suricata with the Emerging Threats Open signatures, FRRouting, ISC Kea, net-snmp, OpenSSH and Debian; their licenses are in THIRD_PARTY_NOTICES.md.

SJB-OS 0.9.13-r01: monitoring with Prometheus and SNMP

Choose a tag to compare

@stevejboyle stevejboyle released this 25 Nov 22:30
v0.9.13-r01
48e7115

An experimental demonstration of AI-generated software for isolated lab use. Not a commercial, supported, or production-ready security product. Do not rely on it to protect production systems. Working code does not establish security effectiveness, resilience, or operational readiness.

SJB-OS is an experiment in how far one person can get building systems software by directing AI instead of writing code; see the README for the goal and the evidence.

Download

  • sjb-os-0.9.13-r01.ova: for new installs, deploy it on VMware (ESXi, Workstation, Fusion). It is this release as a fresh image, so no upgrade is needed after deploying.
  • sjb-os-0.9.13-r01.upgrade: upgrades appliances on 0.8.0 or later in place (Web UI → System → Administration → Upgrade). It now carries net-snmp's snmpd and its libraries (Perl's among them), so it is about 24 MB.
  • *.sha256: check each download against its checksum.
  • sjb-os-0.9.13-r01.sources.txt and sjb-os-0.9.13-r01.ova-sources.txt: the exact third-party code the bundle and the OVA ship, and where its source is; sjb-os-0.9.13-r01-sources.tar.gz: the source of the code built by this repository (nDPI, the Go modules, SJB-OS itself). Debian packages: see THIRD_PARTY_NOTICES.md (manifest, fetch-sources.py, and a written offer).

What changed

Monitoring: Prometheus metrics and an SNMP agent. External monitoring can now poll the appliance, from the management network only.

Prometheus. https://<management address>:8443/metrics (the tag API's port and certificate) serves sjbos_* metrics:

  • Network: interfaces (bytes, packets, errors, drops, up/down), sessions, packets and bytes per security rule (and the default deny), and NAT translations with hairpin counts.
  • Security engines: the IPS (state, signatures and their age, matches by severity and action, exceptions), App Identification (top applications), decryption, log forwarding per server, and tags.
  • Services: up or down, and whether the config needs them.
  • System: health (CPU, load, memory, disk, uptime) and the config (running revision, uncommitted changes, last commit OK).

Scrapes need an API key with the new metrics:read scope. Superusers now add and delete API keys themselves, with no root shell and no restart: request api-key add NAME scopes metrics:read (or tags:read, tags:write) and request api-key delete NAME, or the new System → Monitoring page. Keys work, and stop working, at once. show metrics [TEXT] prints what a scrape gets.

SNMP. A read-only agent (net-snmp's snmpd, in the management VRF):

  • Versions: v3 users (SHA-256 or SHA-512, with AES or AES-256), and v2c communities accepted only from the listed managers.
  • MIBs: the standard MIBs (IF-MIB, HOST-RESOURCES-MIB, UCD-SNMP-MIB), plus SJB-OS-MIB (/usr/share/sjb-os/mibs/SJB-OS-MIB.txt). SJB-OS-MIB covers the version, config, sessions, the IPS, decryption and App Identification, with tables of services, rules, NAT entries, log servers and IPS matches by severity.
  • Traps to snmp_trap_receivers (v2c traps, v3 traps or v3 informs):
    • link up and down, within a minute;
    • sjbServiceDown, naming the service;
    • sjbIpsEngineDown;
    • sjbCommitFailed, with the reason.
  • Secrets stay out of the config. v3 users and v2c communities are credentials that superusers manage (request snmp credential add|change|delete ..., or the Monitoring page). They live in a root-only file and travel only in encrypted backups. The config names which ones may poll, and which one each trap receiver uses; a commit naming a credential that doesn't exist is refused. request snmp credential change rotates a credential's secrets: the new ones work at once and the old ones stop.
  • Configure mode: set snmp enabled on, set snmp v3-users nms, set snmp-trap-receiver NAME address IP credential nms inform on. show snmp gives the state.
  • Off by default. While SNMP is off, snmpd stays stopped with no config. Rolling back to an earlier version stops it and removes its config.
  • Experimental OID: SJB-OS-MIB sits under net-snmp's experimental arc (1.3.6.1.4.1.8072.9999.9999.7) until SJB Consulting has an enterprise number, so expect it to move once.

Also fixed: the tag API's XML user-ID endpoint used the API keys loaded when ngfwd started. A key changed by a backup restore didn't apply there until a restart. It now uses the live list, as the JSON API always did.

Existing configs load unchanged: SNMP is off unless snmp.enabled is on.

Verification

  • Boot test (a version bump), in QEMU with VMware's device models:
    • Upgrade: the 0.9.12-r01 image upgraded in place to this bundle (rollback and re-upgrade included). 202 checks passed and none failed.
    • Fresh OVA: the new OVA, built from the same commit, booted fresh. 199 checks passed and none failed.
    • New checks:
      • snmpd arrives with the bundle and stays stopped until enabled.
      • /metrics answers with a metrics:read key made in the CLI, gives 401 without a key and 403 with a tag key, and reflects the IPS blocks and rule hits of earlier checks.
      • SNMP v3 polls from the mgmt side, IF-MIB and SJB-OS-MIB alike; v2c only with the right community from the listed manager.
      • A trap receiver on the test host gets a coldStart inform, a linkDown, sjbServiceDown and sjbIpsEngineDown (with Suricata stopped while rules need it), and sjbCommitFailed after an unconfirmed commit rolled back.
      • Rotating a v3 passphrase works at once, and the old passphrase stops working.
      • A rollback below 0.9.13 stops snmpd and removes its config; SNMP off removes everything.
  • Checked against Debian 13's net-snmp 5.9.4 in a container before building on it: v3 algorithms, the v2c source check, the pass_persist helper, triggers firing traps and informs, and passphrase changes. That found two things the design now handles: net-snmp's stored users clash with changed passphrases (they are cleared at each start), and its internal queries can't encrypt (an internal user with a random passphrase, authenticated only).
  • Unit tests with the race detector (make test):
    • the metrics collector, and its Prometheus output against a strict format check;
    • snmpd.conf golden files, credentials and the pass_persist protocol (walks, stale and missing snapshots);
    • commits refused for missing credentials, rotation, and backups carrying the credentials;
    • API key add and delete taking effect at once on /metrics and the XML endpoint;
    • monitoring not stalling while a commit holds the daemon lock;
    • configure mode.
  • Gate 1: scrapes /metrics with real nftables counters (rule hits, interfaces); a deleted key is refused at once. Also passed: make validate and the client test harnesses' own tests.
  • Web UI: the Monitoring page (API keys, SNMP settings, credentials, commit) checked in a browser at desktop and phone width, with no console errors.
  • Not run: a test on real hardware, or against a real Prometheus server (scrapes used curl).

Credits

Steve Boyle used Claude Code to generate the project-specific implementation, tests, and documentation under his direction. He also used ChatGPT to review the code and help optimize and finalize the solution, including identifying correctness gaps and defining release-readiness fixes. SJB-OS builds on Linux netfilter (nftables, conntrack), nDPI, Suricata with the Emerging Threats Open signatures, FRRouting, ISC Kea, net-snmp, OpenSSH and Debian; their licenses are in THIRD_PARTY_NOTICES.md.

SJB-OS 0.9.12-r02: IPS exception code lifecycle fix

Choose a tag to compare

@stevejboyle stevejboyle released this 23 Nov 14:33
v0.9.12-r02
d0cedbb

An experimental demonstration of AI-generated software for isolated lab use. Not a commercial, supported, or production-ready security product. Do not rely on it to protect production systems. Working code does not establish security effectiveness, resilience, or operational readiness.

SJB-OS is an experiment in how far one person can get building systems software by directing AI instead of writing code; see the README for the goal and the evidence.

Download

  • sjb-os-0.9.12-r02.upgrade: upgrades appliances on 0.8.0 or later in place (Web UI → System → Administration → Upgrade). For new installs, deploy the 0.9.12-r01 OVA, then upgrade with this bundle.
  • *.sha256: check each download against its checksum.
  • sjb-os-0.9.12-r02.sources.txt: the exact third-party code the bundle ships, and where its source is; sjb-os-0.9.12-r02-sources.tar.gz: the source of the code built by this repository (nDPI, the Go modules, SJB-OS itself). Debian packages: see THIRD_PARTY_NOTICES.md (manifest, fetch-sources.py, and a written offer).

What changed

IPS exception codes are never reused while Suricata may still use them. In 0.9.12-r01 a code freed by removing an exception could be given to a different signature at once, so for a short time the rules Suricata was still running could let the wrong signature through. Found in ChatGPT's code review.

  • Every rules file ngfwd writes is recorded with its codes. A code isn't given to a different signature while any recorded file still gives it to another, however quickly commits follow each other.
  • Older records are released only after Suricata confirms it has loaded a newer file: ngfwd now asks it to reload over its command socket and waits for the answer, instead of signalling it. A failed reload keeps the codes held until a later one succeeds.
  • When no safe code is free, the exception stays inactive and its signature keeps blocking. The commit warns, and show ips and the IPS page mark it "inactive". Commit again once show ips reports the new rules loaded.
  • The records survive restarts and rollbacks. After upgrading from 0.9.12-r01 with Suricata running, codes the running config doesn't use stay held until the first confirmed reload.
  • The daily signature download now only fetches. The rules file is then built and recorded with the rest, which closes a second, smaller window found while fixing this.

Exception scoping, existing configs and everything else in 0.9.12-r01 are unchanged. The project is now at github.com/stevejboyle/sjb-os (renamed; old links redirect).

Verification

  • Unit tests with the race detector (make test): the code allocator (ChatGPT's reproduction of removing one exception and adding another, all 35 codes replaced at once, a code never shared between signatures) and the daemon against a simulated Suricata whose reload can be held or made to fail: rapid commits during a slow reload, a failed reload then a retry, all codes exhausted then active after the reload, an ngfwd restart, a rollback, and an upgrade without a record. With the reservations disabled, all six daemon tests fail.
  • The reload behaviour these rely on was first checked against Debian's Suricata 7.0.10: reload-rules returns only once the reload is done, commands run one at a time, and a file replaced during an earlier reload is picked up by the next request.
  • Also passed: make validate, the client test harnesses' own tests, the phase 1 and sessions gates; golden files unchanged.
  • Not run: the boot test (a revision build), and no live-traffic test of the fix. The gates don't run Suricata, so the tests show what ngfwd writes and when, not packets blocked or passed by a real Suricata. No test on real hardware.

Credits

Steve Boyle used Claude Code to generate the project-specific implementation, tests, and documentation under his direction. He also used ChatGPT to review the code and help optimize and finalize the solution, including identifying correctness gaps and defining release-readiness fixes. SJB-OS builds on Linux netfilter (nftables, conntrack), nDPI, Suricata with the Emerging Threats Open signatures, FRRouting, ISC Kea, OpenSSH and Debian; their licenses are in THIRD_PARTY_NOTICES.md.

SJB-OS 0.9.12-r01: management certificate, hairpin NAT, IPS exceptions

Choose a tag to compare

@stevejboyle stevejboyle released this 23 Nov 01:08
v0.9.12-r01
43be929

An experimental demonstration of AI-generated software for isolated lab use. Not a commercial, supported, or production-ready security product. Do not rely on it to protect production systems. Working code does not establish security effectiveness, resilience, or operational readiness.

SJB-OS is an experiment in how far one person can get building systems software by directing AI instead of writing code; see the README for the goal and the evidence.

Download

  • sjb-os-0.9.12-r01.ova: for new installs, deploy it on VMware (ESXi, Workstation, Fusion). It is this release as a fresh image, so no upgrade is needed after deploying.
  • sjb-os-0.9.12-r01.upgrade: upgrades appliances on 0.8.0 or later in place (Web UI → System → Administration → Upgrade).
  • *.sha256: check each download against its checksum.
  • sjb-os-0.9.12-r01.sources.txt and sjb-os-0.9.12-r01.ova-sources.txt: the exact third-party code the bundle and the OVA ship, and where its source is; sjb-os-0.9.12-r01-sources.tar.gz: the source of the code built by this repository (nDPI, the Go modules, SJB-OS itself). Debian packages: see THIRD_PARTY_NOTICES.md (manifest, fetch-sources.py, and a written offer).

What changed

Your own management certificate. The web UI and the tag API can present a certificate your clients trust, for example one from a lab CA, instead of first boot's self-signed one.

  • Web UI: System → Certificate (paste, or load the files); CLI: request management-certificate import. Give the certificate, then the intermediates that issued it, then its unencrypted key.
  • The import checks what the decryption CA import checks (certificate order, the key matching, an unencrypted ECDSA or RSA ≥ 2048 key, the dates) and that it is a server certificate (not a CA; server authentication allowed). It warns when the certificate names neither the hostname nor the management address, when no chain was given, or when it expires within 30 days.
  • New connections get it at once, with no restart; open ones (the page you imported from included) keep the old one until they reconnect, so an import never locks you out. request management-certificate self-signed (or Back to self-signed) makes a new self-signed certificate that names the hostname and management address.
  • show management-certificate [pem] and the page show the subject, issuer, names, validity, chain and SHA-256 fingerprint. The files stay in /etc/ngfw: never in the config, a backup or a bundle.
  • A new permission area, certificates (superuser and admin change it, read-only views it).

Hairpin NAT. Inside clients can reach a published server (port forward or static NAT) by its public address.

  • On for every entry unless it says hairpin: "off" (set nat NAME hairpin off, or the Hairpin box on the NAT page). Existing entries get it after the upgrade.
  • The security rules still decide: a hairpinned connection is judged from the client's zone to the server's zone, by the server's inside address and port, so inside clients need an allow rule for the server, as for any inside-to-DMZ traffic.
  • The server sees the client's real address, except for clients on the server's own network, which are masqueraded so the replies come back through the firewall.
  • It works from the other zoned interfaces of the published interface's VRF. A port forward on the interface's own address follows it when it comes from DHCP or the deployment settings (updated within about 10 seconds). Hairpinned HTTPS is decrypted when a decryption rule matches, and show nat counts hairpinned connections.

IPS exceptions. One signature can stop blocking for part of the inspected traffic instead of being disabled everywhere.

  • ips_exceptions: a signature ID and any of rules, source (the connection's client) and destination (the server's inside address); all given must match. action: alert (the default) still logs each match, marked with the exception's name in the threat log's new Exception column; ignore doesn't log it.
  • Configure mode: set ips-exception NAME sid SID [rule ...] [source ...] [destination ...] [action alert|ignore]; the IPS page has an Exceptions table. show ips lists them with the packets each let through. Part of the ips permission area.
  • The firewall decides, not Suricata: a signature with exceptions marks its matches with a code that the ruleset checks against the connection. If another signature matches the same packet, the profile decides as before, so an exception never hides a different match. After an exception is added, the signature keeps blocking until Suricata has loaded the rebuilt signatures (a minute or so). Up to 35 signatures can have exceptions.

Existing configs load unchanged. As with any upgrade, the ruleset is reloaded and existing connections are re-evaluated against it.

Verification

  • Boot test (a version bump): the 0.9.9-r03 image upgraded in place to this bundle in QEMU with VMware's device models (rollback and re-upgrade included): 187 checks passed (14 of them new). New checks import a certificate from a throwaway lab CA in the CLI: both listeners present it at once, a client trusting only the lab root verifies it, the web UI session survives, a CA certificate is refused, and the web UI goes back to self-signed. Others check the hairpin lines and the live outside address set on the appliance, and an IPS exception with real Suricata: the critical test signature passes for one client under one rule and stays blocked for the others, and the threat log names the exception.
  • Unit tests with the race detector (make test): the certificate checks (a lab chain, wrong key, encrypted key, small RSA, client-only and CA certificates, expiry, name warnings), hot swap, config validation, compiler golden files (nft -c on every one), the exception code scheme (two codes never make a third; codes stay stable as exceptions come and go, and survive a restart), the rules file marks, the threat log's exception matching, configure mode, and the interface address set following a DHCP change.
  • NAT gate (in CI, 9 new checks): a second inside zone reaches the port forward (on the outside address, via the live set) and the static address by the public addresses, the server sees the real client address, the server's own network is masqueraded, no rule means no hairpin, and hairpin: off publishes on the outside only. Decryption gate: a hairpinned HTTPS connection is decrypted.
  • Checked on a Mac against a running ngfwd: after an import over the management socket, new connections to the web UI and the tag API verify against the lab root with the chain, while a connection opened before it keeps its handshake and still gets answers.
  • Also passed: the phase 1, sessions, trunk, log forwarding, TLS decryption (observing too) and users gates; make validate; the client test harnesses' own tests.
  • Web UI: the Certificate page (back to self-signed, a refused import) and the IPS page's exceptions (add one into the candidate) checked in a browser.
  • OVA boot test (added 2026-11-22): the new 0.9.12-r01 OVA, built from the same commit as the bundle, booted fresh in QEMU: 184 checks passed, upgrade away and rollback to 0.9.12-r01 included.
  • Not run: a test on real hardware.

Credits

Steve Boyle used Claude Code to generate the project-specific implementation, tests, and documentation under his direction. He also used ChatGPT to review the code and help optimize and finalize the solution, including identifying correctness gaps and defining release-readiness fixes. SJB-OS builds on Linux netfilter (nftables, conntrack), nDPI, Suricata with the Emerging Threats Open signatures, FRRouting, ISC Kea, OpenSSH and Debian; their licenses are in THIRD_PARTY_NOTICES.md.

SJB-OS 0.9.11-r01: log forwarding and backups

Choose a tag to compare

@stevejboyle stevejboyle released this 22 Nov 04:34
v0.9.11-r01
c92f9fd

An experimental demonstration of AI-generated software for isolated lab use. Not a commercial, supported, or production-ready security product. Do not rely on it to protect production systems. Working code does not establish security effectiveness, resilience, or operational readiness.

SJB-OS is an experiment in how far one person can get building systems software by directing AI instead of writing code; see the README for the goal and the evidence.

Download

  • sjb-os-0.9.11-r01.upgrade: upgrades appliances on 0.8.0 or later in place (Web UI → System → Administration → Upgrade). For new installs, deploy the 0.9.9-r03 OVA, then upgrade with this bundle.
  • *.sha256: check each download against its checksum.
  • sjb-os-0.9.11-r01.sources.txt: the exact third-party code the bundle ships, and where its source is; sjb-os-0.9.11-r01-sources.tar.gz: the source of the code built by this repository (nDPI, the Go modules, SJB-OS itself). Debian packages: see THIRD_PARTY_NOTICES.md (manifest, fetch-sources.py, and a written offer).

What changed

Log forwarding to a SIEM. The traffic, threat, decryption and system logs can now go to up to eight syslog servers as they are written.

  • RFC 5424 messages (APP-NAME sjb-os, MSGID TRAFFIC, THREAT, DECRYPT or SYSTEM) over TLS (the default, port 6514), TCP (octet-counted) or UDP, with a JSON body (the default: the entry as the Logs page shows it) or CEF.
  • Per server: which logs to send, the facility, and whether the server sits on the management network (the default) or behind inside or outside. A TLS server's certificate is checked against a CA you give (pasted PEM) or the system's trusted roots, and against its name.
  • Configure mode: set log-server NAME address IP [transport tls|tcp|udp] [port N] [format json|cef] [type traffic|threat|decryption|system] [vrf mgmt|default] [server-name NAME] [ca "PEM"]. show log-forwarding shows each server's state, messages sent, queued and dropped, and its last error; request log-forwarding test NAME sends a test message. Web UI: System → Log forwarding, with the live status and a Send test button.
  • Forwarding starts from the moment a server is committed. ngfwd keeps its place in the journal, so after a restart, upgrade or reboot it sends what was written in between, and nothing twice. Each server queues up to 10,000 messages while it is unreachable; beyond that the oldest are dropped and counted.
  • A new permission area, logging, covers the log servers (superuser and admin change it, read-only views it; add it to custom roles that should manage it).

Config backup and restore.

  • A backup is one text file holding the running config, and, for superusers, the users (role, state, SSH keys and both password hashes), custom roles and tag API keys. A backup with accounts is always encrypted (AES-256-GCM, key from your passphrase); a config-only backup may be. It is plain text, so the CLI can print it and take it back by paste.
  • Restoring never writes the config straight onto the firewall: the backup's config becomes the candidate, with the same validation and per-area permission checks as any edit, and you commit it as usual. The web UI offers a commit with a 10-minute confirm timer, so a backup from another firewall rolls back on its own if you lose access.
  • Restoring users, roles and API keys (superusers only) adds or updates; it never deletes, and leaves admin and the user restoring as they are. The same passwords keep working on SSH, the console and the web UI, and restored API keys work at once.
  • CLI: request backup export [accounts], request backup restore [config] [accounts]. Web UI: System → Backup.

Existing configs load unchanged. As with any upgrade, the ruleset is reloaded and existing connections are re-evaluated against it.

Verification

  • Boot test (a version bump): the 0.9.9-r03 image upgraded in place to this bundle in QEMU with VMware's device models (rollback and re-upgrade included): 173 checks passed (15 of them new). New checks send logs from the appliance over the management network to a syslog sink on the test host: TLS with a CA pasted in configure mode, TCP with CEF, and UDP; per-server log types; show log-forwarding and the web UI's status; a test message; and resuming from the saved journal position after an ngfwd restart. Others export an encrypted backup with accounts in the CLI, restore it (the config into the candidate, then a confirmed commit), and export one from the web UI.
  • Unit tests with the race detector (make test): config validation, configure mode (including a CA pasted on one line), message formats pinned by golden files (RFC 5424 JSON and CEF for every log type), delivery over UDP, TCP and TLS (a wrong CA refused), queue overflow, reconnects, the journal cursor, the backup format (round trips, wrong passphrase, tampering, newer formats refused), account snapshots and restores, and the permission checks on export and restore.
  • The new log forwarding gate (in CI): UDP, TCP and TLS sinks behind the lab firewall, JSON and CEF, type filtering, a server in a missing VRF reporting its error, records written while ngfwd was down arriving after it restarts (and nothing twice), forwarding surviving a policy commit's conntrack flush, a certificate for the wrong name refused, and a CLI backup round trip.
  • Found and fixed along the way: a TLS connection opened before ngfwd's start-up conntrack flush stalled mid-handshake, so the forwarder now starts after the flush (the gate caught it).
  • Also passed: the phase 1, sessions, NAT, trunk, TLS decryption (decrypting and observing) and users gates; nft -c on every golden ruleset; make validate; the client test harnesses' own tests.
  • Web UI: the Log forwarding page (add a server, commit, send a test message to a local listener) and the Backup page (inspect, restore into the candidate, commit with confirm) checked in a browser.
  • Not run: a test on real hardware.

Credits

Steve Boyle used Claude Code to generate the project-specific implementation, tests, and documentation under his direction. He also used ChatGPT to review the code and help optimize and finalize the solution, including identifying correctness gaps and defining release-readiness fixes. SJB-OS builds on Linux netfilter (nftables, conntrack), nDPI, Suricata with the Emerging Threats Open signatures, FRRouting, ISC Kea, OpenSSH and Debian; their licenses are in THIRD_PARTY_NOTICES.md.

SJB-OS 0.9.10-r02: trunk interfaces

Choose a tag to compare

@stevejboyle stevejboyle released this 20 Nov 04:12
v0.9.10-r02
8bdbc0e

An experimental demonstration of AI-generated software for isolated lab use. Not a commercial, supported, or production-ready security product. Do not rely on it to protect production systems. Working code does not establish security effectiveness, resilience, or operational readiness.

SJB-OS is an experiment in how far one person can get building systems software by directing AI instead of writing code; see the README for the goal and the evidence.

Download

  • sjb-os-0.9.10-r02.upgrade: upgrades appliances on 0.8.0 or later in place (Web UI → System → Administration → Upgrade). For new installs, deploy the 0.9.9-r03 OVA, then upgrade with this bundle.
  • *.sha256: check each download against its checksum.
  • sjb-os-0.9.10-r02.sources.txt: the exact third-party code the bundle ships, and where its source is; sjb-os-0.9.10-r02-sources.tar.gz: the source of the code built by this repository (nDPI, the Go modules, SJB-OS itself). Debian packages: see THIRD_PARTY_NOTICES.md (manifest, fetch-sources.py, and a written offer).

What changed

Trunk interfaces. When inside or outside only carries VLANs, it no longer needs a zone of its own. Give it no zone and no address (delete interface inside zone, or - name: inside alone in YAML) and it becomes a trunk:

  • SJB-OS drops everything untagged on it, to the firewall and through it, whatever the rules say (even a rule from any zone to any zone). Its VLAN subinterfaces work as before.
  • The deployment's address (inside_ip, or DHCP on outside) is taken off it. Put it back in a zone and the deployment's settings return.
  • It must carry at least one VLAN subinterface, and can't have an address, be in a VRF or publish a NAT entry; the commit says so.
  • The Interfaces page and show interfaces show it as a trunk.

Everything 0.9.10-r01 brought (port forwarding and 1:1 static NAT) is unchanged. Existing configs load unchanged: an interface without a zone was refused before, so no config becomes a trunk by accident.

Verification

  • Unit tests with the race detector (make test): the trunk rules in validation, the compiler's drops (golden files for every example unchanged, each checked with nft -c), the override that removes the deployment's address, configure mode.
  • The new trunk gate (11 checks, in CI): with the interface in a zone, untagged traffic works; as a trunk, tagged traffic (VLAN 150) reaches the firewall and the internet while untagged traffic reaches neither, even with an allow-everything rule, and the drop counter shows it; in a zone again, untagged works again.
  • The phase 1, sessions, NAT and TLS decryption gates passed.
  • Not run: the boot test (a revision build), so taking the deployment's address off a trunk on a real appliance (a systemd-networkd file) is covered by unit tests only; no test on real hardware.

Credits

Steve Boyle used Claude Code to generate the project-specific implementation, tests, and documentation under his direction. He also used ChatGPT to review the code and help optimize and finalize the solution, including identifying correctness gaps and defining release-readiness fixes. SJB-OS builds on Linux netfilter (nftables, conntrack), nDPI, Suricata with the Emerging Threats Open signatures, FRRouting, ISC Kea, OpenSSH and Debian; their licenses are in THIRD_PARTY_NOTICES.md.