Skip to main content
Glama
README.md
# Creakboard

Version 0.6.8, beta. Linux, and Windows (read-only beta). Made by Every Synthetic, Mena, Arkansas.

## What it is

Creakboard answers one question: **what changed on this machine since I last looked, especially the things AI coding agents
and their tools leave behind?**

You take a *baseline* (a snapshot of the machine as it is now, which you should look at before you trust it). Later you run a
*report*. Creakboard compares the machine to your baseline and prints a one-page list of what is new, changed or gone, a 0-100
score per item from a fixed rule table, and a list of the places it could not look. It runs on your machine, as your user, with
no root and no daemon. Standard library only (no dependencies).

It looks at three groups of things (full list under "What it reads"; the third is described under "Posture"):

- the machine: systemd units, cron and autostart entries, SSH `authorized_keys` and sshd settings, accounts, listening ports;
- agent footprints: MCP server configs (Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI, Grok, agy, Windsurf, Continue, VS Code, LM Studio),
  agent permission and hook settings, skills/plugins/commands/rules folders, git hooks and git config, shell startup files,
  globally installed npm packages (install scripts) and pip `--user` packages, and secret-looking values in those configs
  (reported as a name and a short fingerprint, never the value). Conversation and chat stores are never read;
- posture: this machine's own network links and radios (wired/routing, Wi-Fi as NetworkManager reports it, Bluetooth adapter and
  paired devices), compared with the baseline, with one verdict per part: `unchanged`, `changed` or `not_visible`.

## What it does NOT claim

- It never says a machine is clean or safe. "No changes observed" means only that nothing Creakboard can see differs from your
  baseline. If the machine was already compromised when you took the baseline, the baseline contains the compromise.
- It is not a malware scanner, not an antivirus and not an intrusion-prevention tool. It does not block, fix or remove anything.
- Its scores come from hand-written rule weights. They have not been calibrated against real incidents. Expect noise and misses.
- It cannot protect itself from someone who already has your user account: that person can edit the baseline, the state folder
  or the program. Nothing is signed.
- It has not been tested on macOS or WSL2. Collectors for those do not exist yet. Windows collectors in this tree are a read-only beta; the first real-machine run (0.5.4 report, a tester's Windows PC, 2026-10-28) worked, and the full Windows checklist is still open.

## Install

Requires Linux and Python 3.11+ (3.11 is the minimum because the Codex config is TOML and `tomllib` arrived in 3.11).
Tested on Arch with Python 3.14, Ubuntu 24.04 with Python 3.12, Debian 12 with Python 3.11 and Fedora 42 with Python 3.13.

One line, as your normal user (no sudo):

    curl -fsSL https://everysynthetic.org/creakboard/install.sh | sh

What that script does, all of it: checks for Linux and Python, downloads one file (the Creakboard wheel) from
everysynthetic.org, checks its sha256 against the value written into the script, unpacks it to
`~/.local/share/creakboard/app/<version>/` and writes the launcher `~/.local/bin/creakboard`. No pip, no virtualenv, no other
packages (Creakboard uses only Python's standard library). It does not take a baseline, start a timer or change a setting.
Run it again to update. Read it first if you like: `curl -fsSL https://everysynthetic.org/creakboard/install.sh | less`.
`SHA256SUMS` next to it lists the wheel and the script.

Uninstall: `rm -rf ~/.local/share/creakboard/app ~/.local/bin/creakboard` (and `~/.local/share/creakboard`,
`~/.config/creakboard` for its records).

If `~/.local/bin` is not in your PATH, add it (for example in `~/.bashrc` or `~/.profile`):

    export PATH="$HOME/.local/bin:$PATH"

From a source checkout instead: `pipx install .` or `pip install .` (the package is pure Python). To build the files the
site serves: `packaging/build_release.sh` (offline; writes `dist/site/creakboard/`).

Check it:

    creakboard --version

## Quickstart (2 minutes)

    creakboard --agents baseline    # FIRST: record what this machine looks like now. Read what it recorded before you trust it.
    creakboard report               # scan and print the one-page report (add --json for tools)
    creakboard doctor               # read-only self-check of Creakboard's own setup

`--agents` goes *before* the command. A plain `creakboard baseline` records only the machine part, not the agent footprints;
`creakboard report` then lists the agent sources as "not baselined" and compares nothing for them. `creakboard doctor` warns you
about this. Posture (wired, Wi-Fi, Bluetooth) is recorded by either form of `baseline`; `--no-posture` turns it off.

- `creakboard report`: scan and print the report. Sends nothing. Saves when Creakboard first saw each SSH key (`ssh_first_seen.json` in the state folder). It does not change your baseline, except once after you update Creakboard (see "After you update Creakboard").
- `creakboard run`: the same as `report`, then remembers the last report in the state folder and, only if you configured ntfy,
  pushes NEW alerts. This is the command the timer runs.
- `creakboard doctor`: checks Python version, baseline, state folder permissions, the optional known-good and notify files, and
  whether the timer units are installed. Writes nothing.
- `creakboard agents`: one card per AI tool found on this computer (what it can do, full-trust modes, footprints since the
  baseline). Read-only; same cards as the page's AI agents section. Add `--json` for tools.
  Each card also says **where that tool sends your requests** (the maker's own server, this computer, or someone else's, with a loud
  SENDS TO ANOTHER SERVER when a base-URL setting points elsewhere), lists **instruction files that came with projects you downloaded**
  (CLAUDE.md, AGENTS.md and similar: file names only, never the text), and shouts ATTACK TOOL FOUND if it sees the folder, command or skill
  of a known automatic attack tool. The attack-tool check goes by what that tool leaves behind, so it finds an honest install, not a disguised one.
- `creakboard fix`: a separate command. It lists a remedy and applies one only after you confirm it. `baseline`, `scan`, `report` and `run` do not call it. See "Fixes for the October 2026 advisories".
- `creakboard scan --json [--evidence] [--ids]`: the lower-level scan used by the others.

A typical alert looks like this (from a throwaway test home):

    CREAKBOARD REPORT: 1 change(s) from baseline, 1 at or above 70 (score 0-100; 70 and up is an alert, 35 and up is worth a look)

    [CRITICAL 100] New mcp server: new  (id e3f7e2abc68930ec, mcp_server, new)
      file: /home/alice/.cursor/mcp.json
      scored: base +35, mcp_curl_pipe_sh +40, mcp_shell +30

    Could not see: 4 source(s)

### Exit codes

| Code | Meaning |
|---|---|
| 0 | The scan finished and found no alert at or above the threshold. This is NOT a verdict that anything is clean. `scan` (the low-level command) also exits 0 when it found changes. |
| 1 | `creakboard doctor` found a failure (for example the baseline is missing). |
| 2 | Usage error: unknown command or bad option. Also: `--root DIR` (not `/`) without `--state DIR` on `baseline` or `run`, and on `fix`, which would write over your real state. Nothing is written. `watch` is refused the same way, because it would compare that tree with your real baseline. |
| 3 | No usable baseline (nothing was compared: NOT clean). Take a baseline first. `report`, `run` and `scan` print a loud NO BASELINE line instead of a report. |
| 4 | `report` or `run` found at least one alert at or above the threshold (default 70, or `--threshold N`). This is a result, not an error: the hourly timer treats it as success (`SuccessExitStatus=3 4`) and the alert reaches you through notify. |

Scripts: test for 4 before treating a non-zero code as a failure; `creakboard report || [ $? -eq 4 ]`.

### Where it keeps things

- State: `~/.local/share/creakboard/` (override with `--state DIR`), directory mode 700: `baseline.json` (mode 600),
  `last_report.json` and `notified.json` (written by `run` only), `ssh_first_seen.json` (when `run`, `baseline`, or
  `report` / Check now first sees an SSH key). `baseline.json` is written by `baseline` (and Accept), and once after an update
  by `run`, `report` or Check now (see "After you update Creakboard").
- Optional files you write yourself: `~/.config/creakboard/known_good.json` and `~/.config/creakboard/notify.json`
  (override with `--known-good FILE` / `--notify-config FILE`; when `--state DIR` is given they default to
  `DIR/known_good.json` and `DIR/notify.json` instead).
- `--root DIR` makes the collectors read a directory tree instead of `/` (this is how the tests use fake machines; it also
  lets you inspect a mounted disk image). **It does not move the state folder or the two config files above.** Running
  `creakboard --root /some/tree baseline` on its own would write that baseline over your real one in `~/.local/share/creakboard`.
  So `baseline` and `run` now refuse (exit 2, nothing written) when `--root` is not `/` and `--state` is not given; `report`,
  `scan` and `doctor` still work and write nothing. When `--state DIR` is given, `known_good.json` and `notify.json` are read
  from that folder too (unless you pass `--known-good` / `--notify-config`), so an experiment never touches your real
  config either. For an experiment, pass `--state DIR`
  (`creakboard --root /tmp/fakeroot --state /tmp/fakestate --agents baseline`).

### After you update Creakboard

A newer Creakboard may read more than the one that took your baseline (another file, a link it used to skip), or read the same
file in another way. Without care, everything it newly reads would look new on the first report after the update, and some of
it could be pushed to your phone, although nothing on your machine changed. So:

- `baseline.json` records the Creakboard version that wrote it (`creakboard_version`). Baselines from 0.6.7 and older have none.
- On the first report, run or Check now against a baseline from an older version (or with no version), Creakboard also reads
  the machine once more the way the old version did (a copy of the old reading code is kept in `legacy.py`).
  - If the old way of reading sees something differently from your baseline, that thing really changed on your machine. It is
    reported and alerted exactly as the old version would have done (same name, same key, changed content), and pushed if it
    scores 70 or more.
  - Everything else that differs is only how the new version reads. It is never an alert and never pushed. It is listed once
    under its own heading, "Newly visible after updating Creakboard (not changes on your machine)", with a count.
- That scan then adds the newly visible things to your baseline and stamps the new version, so they never show again. The rest
  of your baseline, including any real change it found, is left as it was, and the file keeps its date. This one write happens
  only where `report` may save `ssh_first_seen.json` (a real `/`, or `--state DIR`); `scan` and the AI connector never write it.
- The limit: something bad that only the new version can see (for example a key added to `~/.ssh/authorized_keys2`, which 0.6.7
  did not read) is listed under that heading with its score on this one scan, but not pushed. Read that list once.
- For maintainers: `legacy.READ_THIS_WAY_SINCE` is the first version that reads the way this one does. When a release changes
  what the machine readers produce, set it to that release and put the previous release's readers in `legacy.py`.

### Accepting a finding you have reviewed

Write `~/.config/creakboard/known_good.json` (regular file, owned by you, mode 600 or 644, parent folder not writable by others):

    {
      "version": 1,
      "accepted": [
        {
          "id": "<16-hex finding id from the report>",
          "note": "reviewed and accepted",
          "by": "username",
          "date": "2026-10-11"
        }
      ]
    }

`version` must be 1 and `accepted` a list; each entry needs a valid 16-hex `id` (`note`, `by` and `date` are optional but
worth filling in; an entry without a valid `id` is skipped). Maximum 1 MB and 5000 entries. If the file is writable by group
or others, is not owned by you, or does not parse as above, `creakboard doctor` reports `WARN known_good: ignored` and the whole
file is not used. Accepting hides a finding from the report; it does not change what the machine contains.

### Glossary

- baseline: a snapshot of the machine state, recorded in `~/.local/share/creakboard/baseline.json`, that later scans are compared to.
- agent footprint: files left by AI coding agents and tools (MCP servers, rules, skills, commands, git hooks, shell rc files).
- ntfy: a lightweight HTTP push-notification service (ntfy.sh or self-hosted) for receiving alerts.

## Creakboard UI

`creakboard ui` serves one page on your own computer that shows the same report as `creakboard report` in plain English, and has two
buttons. Creakboard is the product's name; the command and the package are still called `creakboard` until they are renamed.

    creakboard ui                             # prints a link such as http://127.0.0.1:41873/?t=... and opens it in your browser
    creakboard --state DIR --no-posture ui --no-browser --port 8765

It takes the same options as the other commands (`--state`, `--root`, `--config`, `--no-posture`, `--known-good`, `--threshold`)
and uses the same state folder, so a baseline taken on the command line is the baseline the page compares with. It calls the
scan code inside its own process; it starts no other program and uses only the Python standard library. The page is one HTML
document with its own styles and script: it loads nothing from any other address and shows nothing you did not collect yourself.

- **It only listens on this computer.** The address is always `127.0.0.1` (`--bind` accepts nothing else and exits with code 2),
  on a free port unless you give `--port`. Nobody on your network can reach it.
- **The token.** A random token is made each time it starts and is part of the printed link. The first visit with that link sets
  a cookie (HttpOnly, SameSite=Strict) and moves you to a link without the token. Every request needs the cookie or the token,
  otherwise it gets 403. Requests whose `Host` is not `127.0.0.1:PORT` or `localhost:PORT` are refused (this blocks a web page on
  the internet from steering your browser to it), and every button press must also carry the token in a header and come from the
  page itself. Anyone who has the link can use the page while the program runs, so do not paste it anywhere. Stop it with Ctrl+C.
- **What it shows.** A status line (when it last checked, and "No changes since your baseline", or "N alerts, M other changes", or
  that there is no baseline yet), an AI agents section (one card per local AI tool: what it can do, full-trust modes in caps, a
  short timeline of footprints since the baseline), the findings grouped High, Medium, Low and Info, each with what it means and
  what to do, the network and radios section (wired and routing, Wi-Fi, Bluetooth: unchanged, changed or not visible), and the
  PHP and Ollama advisories. It never says a computer is fine; "no changes" only means nothing it can see differs from your
  baseline. The same agents cards are also `creakboard agents` on the command line.
- **Check now** runs one scan, in the background (only one at a time), and updates the page. It does not change your baseline, except once after you update Creakboard (see "After you update Creakboard"). It does save the first time Creakboard saw each SSH key (`ssh_first_seen.json` in the state folder).
- **Accept the current state as the new baseline** asks you to confirm, because it makes today's state the new normal: any change
  it contains will no longer be reported. It then writes a new `baseline.json` in the state folder (the same as `creakboard --agents
  baseline`) and runs a check. With no baseline yet, the button is "Take a baseline now".
- **Fixes.** The page asks `sentinel_watch.fix.available_fixes(report)` for a list of available fixes and shows a Fixes area only
  when that function exists and returns a non-empty list. The page itself cannot run a fix.
- **AI connector.** Off until you turn it on (the AI connector box on this page, or `creakboard ai on`). See "Connecting an AI" below.

## Connecting an AI

An MCP client you trust (a program on this computer, or one that talks to a company model) can call Creakboard as a tool. It is
off until you turn it on. The connector is read-only: the AI can run a check and read results; it cannot accept a baseline,
dismiss a finding, or apply a fix.

Working with an AI in Creakboard. You can connect an AI model to Creakboard, one running on your own computer or one
from a company like Anthropic, OpenAI or Google, so the two of you can look at your computer together. We don't make
that model, and we can't see or control what it tells you, so here is how the work is shared. The AI can run checks
and read the results. Through Creakboard it cannot accept a new baseline, close a finding or apply a fix; those stay
with you, in Creakboard's own window. That limit only covers Creakboard: if your AI has other tools that can change
your computer, Creakboard can't stop those. Nothing is hidden on either side. Creakboard keeps a record on your
computer of each time the AI uses it, and the AI connector box shows you that record. The AI can see the same record
and the same findings you do. Text on a computer can be written to mislead an AI, and any mind, human or AI, can be
confidently wrong. So a finding stays open until you've looked at it yourself, whoever says it's fine: your AI, a
message on the screen, or us. If your AI says it fixed or closed something, check the Creakboard window; changes only
happen there. Your AI's summary is a second pair of eyes, not a replacement for yours. If you use a company's AI, what
Creakboard reports about your computer, including file and program names and your user name, goes to that company
under their terms, not ours. Connecting an AI is your choice. It is off until you turn it on, and you can turn it off
any time.

What is sent where: Creakboard talks only to the MCP client on this computer, over stdin/stdout. It does not phone home.
If that client is a company AI, **the report about your computer, including file and program names and your user name, is
sent to that company under their terms, not ours.** A model running only on your computer keeps the report on your
computer. Creakboard cannot see which you chose. The page's AI connector box lists recent tool calls (same data as
`creakboard ai status`).

Turn it on, then point the client at Creakboard:

    creakboard ai on          # prints the disclaimer; writes {"ai_connector": true} in config.json
    creakboard ai status      # on/off, last tool calls, hash-chain check of the call log
    creakboard ai off

Example client config (Claude Desktop, Cursor, and other MCP hosts use this shape):

```json
{
  "mcpServers": {
    "creakboard": {
      "command": "creakboard",
      "args": ["mcp"]
    }
  }
}
```

On Windows the command is the `creakboard.cmd` the installer put on your Start menu / in `%LOCALAPPDATA%\Creakboard`, for
example `C:\\Users\\You\\AppData\\Local\\Creakboard\\creakboard.cmd`, with the same args `["mcp"]`. The connector still
refuses to start until `creakboard ai on` (or the page switch) has been used on that same state folder.

`creakboard mcp` speaks MCP 2025-06-18 over stdio (JSON-RPC 2.0, standard library only). Tools: `creakboard_check`,
`creakboard_status`, `creakboard_explain`, `creakboard_fix_proposals`. Every call is appended to a hash-chained log in the
state folder (`ai_calls.jsonl`).

## What it reads

Everything is read-only. Paths are relative to `/` (or `--root`), and per-user paths are looked up for every home directory
listed in `/etc/passwd` (including non-standard ones such as `/opt/...`). A folder it may not read, or a symlinked home, is
reported as "could not see", never as empty.

Machine:

- systemd units: `/etc/systemd/system`, `/usr/lib/systemd/system`, user units in `/etc/systemd/user`, `/usr/lib/systemd/user`,
  `~/.config/systemd/user`, `~/.local/share/systemd/user`: `.service` and `.timer` units, plus `.socket` and `.path` units
  outside the package folders under `/usr/lib`, their drop-in folders (`*.service.d` and so on), and the Exec lines (`ExecStart`, `ExecStartPre`, `ExecStartPost`, `ExecCondition`,
  `ExecStop`, `ExecStopPre`, `ExecStopPost`; `ExecReload` and `Environment` are not read)
- scheduled work: `/etc/crontab`, `/etc/cron.d`, `/etc/cron.{hourly,daily,weekly,monthly}`, `/var/spool/cron`, `/var/spool/at`, `/var/spool/cron/atjobs`,
  `/etc/xdg/autostart`, `~/.config/autostart`. A unit, cron or autostart entry that is a link is listed with where the link
  points (systemd and cron use it); the file it points at is not opened. A unit link that only gives a unit another name
  or switches it off (it points into `/usr/lib/systemd` or `/lib/systemd`, at `/dev/null`, or at a unit file Creakboard
  reads itself) is kept as a fact but is never a finding on its own; a link that points anywhere else is. The links in
  `*.wants` and `*.requires` folders are not facts: they only mark the unit they point at as enabled
- SSH: each user's `~/.ssh/authorized_keys` and `~/.ssh/authorized_keys2` (sshd reads both by default; key fingerprints
  and options, not private keys; a custom `AuthorizedKeysFile` is not followed), `/etc/ssh/sshd_config` and
  `sshd_config.d` (a short list of security-relevant settings, read in the order sshd reads them; settings after a
  `Match` line are left out, because they apply only to some logins). A finding says whether the key matches a `*.pub` on this
  machine (`made_here`), a fingerprint on your local list, or neither. First step for keys that belong to you on other
  machines: `creakboard keys add` for each one (`creakboard keys list`; list file `~/.config/creakboard/my_keys.txt`).
  A match explains the key; it does not hide forced-command or other options. Private key files are never opened.
- accounts: `/etc/passwd`, `/etc/group` (UID 0 and accounts with a login shell; the wheel, sudo, adm and docker groups, and
  any other group with the same group number). A name or key that is on two lines is reported, not merged into one. A
  second line that says exactly what the first says (the same key with the same options, or the same passwd or group line
  word for word) is harmless and scores 10; a second line that differs keeps its full score
- listening ports: `/proc/net/tcp`, `tcp6`, `udp`, `udp6`, and `/proc/<pid>/fd` and `comm` to name the owning process (only for
  processes your user can see; others show as "not visible")

Agent footprints (under each home, and under git repositories found up to four folders deep in the home):

- MCP configs: `~/.claude.json`, `~/.claude/settings*.json`, `~/.config/Claude/claude_desktop_config.json`, `~/.codex/config.toml`,
  `~/.cursor/mcp.json`, `~/.gemini/settings.json`, `~/.codeium/windsurf/mcp_config.json`, `~/.continue/config.json`,
  `~/.config/Code/User/mcp.json`, and per repository `.mcp.json`, `.vscode/mcp.json`, `.cursor/mcp.json`. For each server:
  command, arguments (secret-looking values redacted), environment variable NAMES only, and a risk note (shell wrappers,
  curl-pipe-shell, unpinned packages, remote URLs).
- agent permission and hook settings in the Claude Code, Codex and Gemini settings files
- skills, plugins, agents, commands, prompts, rules and extensions folders under `~/.claude`, `~/.codex`, `~/.cursor`,
  `~/.gemini`, `~/.agents` (counts, names and content hashes)
- git: hooks in `.git/hooks` of found repositories (including worktrees), `core.hooksPath`, `[include]`/`[includeIf]` in the
  global git config
- shell startup files: `.bashrc`, `.bash_profile`, `.zshrc`, `.zshenv`, `.zprofile`, `.profile`, fish `config.fish` and
  `conf.d/*.fish` (every active line, secrets redacted)
- global npm packages (`~/.npm-global/lib/node_modules`, `~/.local/lib/node_modules`, `/usr/lib/node_modules`,
  `/usr/local/lib/node_modules`: install scripts and bins) and pip `--user` packages
- secret-looking values in those config files: reported as file, key path and an 8-hex fingerprint of the value

The baseline file stores these facts (so it contains command lines, shell lines and file paths, with secrets redacted, and the
MAC addresses, BSSIDs and Bluetooth addresses that posture compares, but it is still sensitive: it is mode 600 inside a mode 700 folder). Evidence for a finding adds file owner, mode and modification time.
On a real `/` on Arch Linux it also asks `pacman -Qo` which package owns a file; on other distributions that answer is "could not
see".

## Posture: wired, Wi-Fi and Bluetooth

Posture answers: **did this machine's own network links and radios change since my baseline?** It covers the wired side
(routing, DNS, tunnels, firewall service), Wi-Fi and Bluetooth. It only reads the state of THIS machine and compares it with the
baseline. It is on by default for `baseline`, `scan`, `report` and `run`, and you can turn it off (see below).

Each of the three parts gets exactly one verdict:

- `unchanged`: everything Creakboard could compare is the same as in the baseline. This is not a statement about the network or the
  devices; it says only that the readable state matches your baseline.
- `changed`: something differs; the report lists what changed. Changes that match a scoring rule below become findings with a score;
  every other difference is listed too, as `unscored_change` (info, 10), so a change is never dropped.
- `not_visible`: Creakboard could not look (command missing, timeout, daemon not answering) or could not compare (nothing recorded in
  the baseline, the baseline could not see it either, a list hit its cap). The reason is printed. A check that cannot be read is
  never reported as fine. If a part has both a change and a check it could not see, it says `changed` and still lists the check
  it could not see.

The words solid, safe, secure and clean are never used as a verdict.

### Exactly what is read

All commands are started as an argument list (no shell), without sudo, with a scrubbed environment, a 4 second timeout, no stdin
and capped output. Nothing is sent anywhere: these tools only ask the local kernel or a local daemon (NetworkManager, systemd-resolved,
bluetoothd) over netlink or D-Bus. The program never contacts other hosts, never captures traffic, never scans for networks or
devices (no Wi-Fi scan or rescan, no Bluetooth discovery), never pairs, connects, trusts or removes a device, and never changes a
setting. The full list of commands is `ONESHOT_ARGV` in `src/sentinel_watch/posture.py`; a test fails if anything else is ever run.

| Part | What is read | How |
|---|---|---|
| wired | default gateway IP, interface, and the gateway's MAC from the neighbour table | `ip -j route show default`, `ip -j neigh show` (read only; no ping, no ARP request is sent by Creakboard) |
| wired | the interface's operstate and speed | `/sys/class/net/<if>/operstate` and `speed` |
| wired | DNS resolvers (configured servers only, not fallbacks) | `resolvectl status`; if that fails, `/etc/resolv.conf` (a symlink is followed only when it points at a well-known resolver file) |
| wired | tunnel/VPN interfaces (`tailscale*`, `wg*`, `tun*`, `tap*`) and whether they are up | names in `/sys/class/net`, then `operstate` and `flags` (tun/wg report `unknown` while up, so the UP flag decides) |
| wired | whether a firewall service is active | `systemctl is-active firewalld`, `ufw`, `nftables`. Rules are not read or dumped |
| Wi-Fi | whether a Wi-Fi device exists and is connected | `nmcli -t -f DEVICE,TYPE,STATE device status` |
| Wi-Fi | active SSID, BSSID, security type, channel and band, signal | `nmcli -t ... device wifi list --rescan no` (NetworkManager's cached list; `--rescan no` is always passed, so no scan is triggered) |
| Wi-Fi | saved Wi-Fi profile names, whether a profile has no security, whether autoconnect is on | `nmcli -t -f NAME,UUID,TYPE,AUTOCONNECT connection show` and, per Wi-Fi profile, `nmcli -t -f 802-11-wireless-security.key-mgmt,... connection show uuid <uuid>` (secrets are never requested) |
| Bluetooth | adapter Powered / Discoverable / Pairable flags | `bluetoothctl show` |
| Bluetooth | paired and trusted devices (address and name) | `bluetoothctl devices Paired` and `devices Trusted` (on BlueZ older than 5.65: `paired-devices` only, and trusted is `not_visible`) |

If a command is missing or fails, that check is `not_visible` with a reason (`command_missing`, `timeout`, `command_failed`,
`nm_not_running`, `unparsable_output`, ...). If `bluetoothctl show` fails or times out, the other Bluetooth commands are not tried.
Lists are capped (8 routes, 16 resolvers, 32 tunnels, 64 profiles, 64 Bluetooth devices per list) and reaching a cap is reported as
`item_cap`. Everything that comes from a command is cleaned like all other text from the machine.

Posture reads the live machine. With `--root` set to anything but `/` it is skipped (the report says `skipped`), so a fake tree is
never answered from this machine's network.

### Addresses stay in the baseline

MAC addresses, BSSIDs and Bluetooth addresses are written to `baseline.json` (mode 600, in your state folder) because they are what
a later scan compares against. They are not printed: findings, the report, `last_report.json` and any push notification show an
8-hex fingerprint (`id 1a2b3c4d`) that tells two addresses apart without revealing one. SSIDs, saved profile names and Bluetooth
device names are shown, because you need them to understand a change. IP addresses of the gateway and DNS resolvers are shown.

### Scoring (one table)

The table is `POSTURE_RULES` in `src/sentinel_watch/scoring.py`; edit a level there and nothing else. A posture finding scores exactly
the points of its level (no base score, no new/changed/gone adjustment). 70 and up is an alert (exit code 4).
Every rule compares with the baseline: a condition that was already true when you took the baseline is not reported again.

| Rule | Part | Level | Points | Fires when |
|---|---|---|---|---|
| `gateway_mac_changed` | wired | high | 75 | the MAC of the default gateway changed while its IP and its interface stayed the same |
| `dns_changed` | wired | medium | 50 | the set of DNS resolvers changed (order is not compared) |
| `wifi_bssid_changed` | Wi-Fi | low | 25 | same SSID, different access point (BSSID) |
| `wifi_security_weaker` | Wi-Fi | high | 75 | same SSID, weaker security type than in the baseline; replaces `wifi_bssid_changed` |
| `wifi_open_connected` | Wi-Fi | medium | 50 | connected to a Wi-Fi network with no security, and the baseline was not on that open network |
| `open_profile_autoconnect` | Wi-Fi | low | 25 | a saved Wi-Fi profile with no security and autoconnect on, new or newly so |
| `bt_discoverable` | Bluetooth | medium | 50 | the adapter became discoverable |
| `bt_new_paired_device` | Bluetooth | medium | 50 | a device is paired that was not in the baseline |
| `bt_new_trusted_device` | Bluetooth | medium | 50 | a device is trusted that was not in the baseline |
| `firewall_inactive` | wired | medium | 50 | firewalld, ufw or nftables was active and is now inactive (or failed, or deactivating) |
| `tunnel_down` | wired | low | 25 | a tunnel/VPN interface that was up is now down, or gone |
| `unscored_change` | any | info | 10 | any other difference (not one of the nine requested rules) |

Levels: high 75, medium 50, low 25, info 10 (`POSTURE_LEVELS`). Security types are ranked none < WEP/OWE < WPA1 < WPA2 < WPA3, and
the weakest protocol a network offers decides, so "WPA2 WPA3" counts as WPA2. A security text Creakboard cannot rank is never called
weaker; the change is listed as `unscored_change`. Volatile values (signal, link speed, neighbour state, channel and band) are
recorded but are not changes by themselves. The gateway MAC is compared only for the same gateway IP on the same interface: the same
router address reached over a different interface is reported as a moved default route, not as a changed MAC.

### Turning posture off

- `creakboard --no-posture baseline` (or `report`, `run`, `scan`; the flag works before or after the command): posture is not read and
  not compared. A baseline taken this way has no posture section; `report` then says `not_baselined` once posture is on again.
- or write `~/.config/creakboard/config.json` yourself (mode 600, owned by you; with `--state DIR` it is `DIR/config.json`, or give
  `--config FILE`): `{"posture": false}`. A config file that is untrusted (not yours, group/other accessible, a symlink), unparsable or
  has a non-boolean value is ignored and the report says so; posture then stays on, because reading is the default.

The report always says what it did: `POSTURE ...: off`, `skipped`, `not_baselined` or `no_baseline` instead of staying silent.

### Posture limitations

- IPv4 default routes only. IPv6 default routes (and so a rogue router advertisement) are not read.
- The gateway's MAC comes from the kernel's neighbour table. If the gateway has no entry (nothing talked to it recently, or the entry
  failed), that check is `not_visible`; Creakboard never sends a probe to fill the table.
- A laptop that moves between networks that reuse the same gateway IP (192.168.1.1 is common) with different routers will report
  `gateway_mac_changed`. The rule cannot tell a new router from a spoofed one; take a baseline on the network you want to watch.
- The Wi-Fi details are what NetworkManager's cache says; Wi-Fi managed by something else (iwd or wpa_supplicant alone) is
  `not_visible` (`wifi_unmanaged`). The security type is what the access point advertises, not necessarily what was negotiated.
- Bluetooth needs bluetoothd answering. Paired and trusted lists are what BlueZ reports to your user.
- No history beyond the single baseline. Not tested on distributions other than Arch Linux.

## Checks for the October 2026 PHP and Ollama advisories

These checks look at this machine only. They do not run an exploit, do not send a request (not even to localhost), and do not change a setting. The table is `advisories.json` (data, checked 2026-10-21). It is not downloaded, and a future signed pack can replace that file without replacing the program.

What is checked:

- Installed PHP, Ollama and Node.js versions. The package manager is asked first (`pacman -Q`, `dpkg-query -W`, `rpm -q`). If it has no version, PHP is asked with `<php-binary> -n -v` so `php.ini` is not loaded and a planted `auto_prepend_file` is not run. The `ollama` program is never run: `ollama -v` talks to the local server, so the version is read from the binary file without running it. Three layouts are known (build flags that name `version.Version=`, the older `version\0release\0`, and the newer version-then-fixed-bytes layout), checked against Ollama 0.24.0, 0.32.14, 0.32.15, 0.34.2 and 0.40.7. Two different versions in one file, or none, is `not_visible`, never a guess. Node is never run: `node -v` is not on the allow list. After the package record, the version is read from the file (`node.js/vX.Y.Z` and the official `download/release/vX.Y.Z/` URL, checked against Node 26.12.1). Copies under `~/.nvm/versions`, `~/.volta`, fnm, `~/.local/share/pnpm` and `/usr/local/bin` are included. A home that is a symlink, a home that is not a directory, an unlistable `/home`, a passwd that is not a regular file, and accounts past the passwd or `/home` cap are `not_visible` for PHP, Ollama, Node and LiteLLM (one shared helper), never a green skip. Each scan shares one 1 GiB / 30 s read budget across Node and Ollama; remaining copies are `not_visible`. A filesystem that rejects `SEEK_DATA` is read sequentially. Node 20 and older, and odd current lines below 26, are end of life. A distro Node package is called vulnerable only when its changelog does not name CVE-2026-111497; a missing changelog is `not_visible`.
- Whether Ollama is listening on a non-loopback address. The port is 11434, or the port in `OLLAMA_HOST` when a readable systemd unit sets it. `127.0.0.1` and `::1` are not exposed. `0.0.0.0` and `::` are. A process name of `not_visible` does not hide a non-loopback listener.
- Whether a PHP web handler is active: a `php-fpm` or `php-cgi` process is listening (loopback included, because the advisory is about serving web requests), or Apache (`httpd`, `apache`, `apache2`) is listening and a readable config has an uncommented `LoadModule` line for PHP. Port 9000 by itself is not PHP.
- Footprints compared with your baseline. New or changed files in the Ollama library directories. Files in the models directory outside `blobs/` and `manifests/`. `.php`, `.phtml` and `.phar` files under the web roots (`/var/www`, `/srv/http`, `/srv/www`, `/usr/share/nginx/html`, unless the table says otherwise). `php.ini` and `conf.d`, including `auto_prepend_file`, `auto_append_file` and `session.upload_progress.enabled`. A footprint title says "changed since your baseline".
- `session.upload_progress.enabled = Off` is a partial mitigation for CVE-2026-109619, not a full fix. When every file that was read leaves the directive unset, the line says absent: the PHP default is On.

Distribution packages: Debian, Ubuntu, Red Hat and AlmaLinux fixed PHP2Shell in some releases without changing the
number `php -v` prints (Ubuntu 24.04's fixed package is still PHP 8.3.6). So for a dpkg package whose upstream number is
below the fix, or end of life, Creakboard reads that package's own changelog (`/usr/share/doc/<package>/changelog.Debian.gz`,
following Debian's shared-docs link by name, and the `phpX.Y-common` changelog): both CVE ids listed is "patched by your
distribution", ids missing are named on the vulnerable line, and no readable changelog is `not_visible`
(`distro_changelog_missing`), never a guess. RPM builds below the fix are `not_visible` (`distro_build_unchecked`), because Red Hat, Alma and Rocky backport fixes into old version numbers and the RPM changelog is not read yet. Fedora (a release tag like `1.fc42`) ships upstream PHP releases, so a Fedora build is compared directly. Pacman (Arch) builds are compared directly. The package names asked are `php`, `php-fpm`,
`php-cgi` and, for each branch 7.4 to 8.5, `phpX.Y-cli`, `phpX.Y-fpm`, `phpX.Y-cgi` and `libapache2-mod-phpX.Y`; dpkg is asked
for the install status with the version, so a removed package that kept its config files is not installed. A metapackage
such as Debian's `php` (`2:8.3+93`) names no version and is skipped.

PHP settings are read where Arch and others keep them and, for each `/etc/php/<X.Y>/` branch folder (Debian, Ubuntu), in
`fpm`, `apache2`, `cgi` and `cli` (`php.ini` and `conf.d`) and the FPM pool folder `fpm/pool.d`.

Fixed versions in the table: PHP fixed in 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older is "end of life: check your vendor's backport", not vulnerable-for-certain, because a distribution may have backported a fix. Ollama fixed in 0.35.0 for CVE-2026-103663 (affected from 0.34.2 up to, not including, 0.35.0). Ollama fixed in 0.34.2 for CVE-2026-108836 (stated up to 0.34.1; below 0.34.0 the range is unclear and the line says reported). Ollama fixed in 0.17.1 for CVE-2026-7482 (Bleeding Llama). Node.js fixed in 22.23.4, 24.22.1 and 26.12.1 (https://nodejs.org/en/blog/vulnerability/october-2026-security-releases). The high CVEs are CVE-2026-105482, CVE-2026-105483 (24.x and 26.x), CVE-2026-106069 and CVE-2026-111497. Node 20 reached end of life on 30 April 2026.

A vulnerable or reported version is still reported when the install has not changed since the baseline. "Not affected by these advisories" is a section line, not a finding. Not installed is `not_visible`, not fine. Two installed versions of one product are reported as the worse one; there is no `version_conflict` line.

What is not checked:

- Creakboard cannot see an attack in progress.
- Creakboard cannot prove a machine was not compromised.
- This is not a replacement for patching.
- There is no process snapshot. A shell, curl, wget, nc, python or perl whose parent is php-fpm, Apache or php-cgi is not a separate check.
- php-fpm that listens only on a unix socket is not in `/proc/net/tcp`. If nothing else shows a PHP handler, exposure stays `not_visible` rather than "not exposed".
- These checks do not run `systemctl is-active`. A FrankenPHP or LiteSpeed process is not matched by the listener names above; the FrankenPHP binary is still version-checked when it is installed.
- Web roots that are not in the table are not walked. Library files over 1 MiB are recorded (path, size, mtime) but not hashed.

Also caught by collectors that already run, when the path is one they read: a new systemd unit (system and user, including drop-ins), a new cron, at or autostart entry, a new SSH `authorized_keys` line, a new listener, and a new account or a change to the wheel, sudo, adm or docker groups.

Scores (the finding's whole score; new, changed and gone add nothing on top):

| rule | level | score | when |
| --- | --- | --- | --- |
| `advisory_vulnerable_exposed` | high | 75 | version called vulnerable, and exposed |
| `advisory_vulnerable_unexposed` | medium | 50 | version called vulnerable; exposure was checked and it is not exposed |
| `advisory_vulnerable_exposure_not_visible` | high | 75 | version called vulnerable, and exposure could not be checked |
| `advisory_reported_exposed` | high | 75 | reported-affected version, and exposed |
| `advisory_reported_unexposed` | medium | 50 | reported-affected version; exposure was checked and it is not exposed |
| `advisory_reported_exposure_not_visible` | high | 75 | reported-affected version, and exposure could not be checked |
| `advisory_end_of_life` | medium | 50 | end of life: check your vendor's backport |
| `advisory_ollama_lib` | high | 75 | a file in an Ollama library directory is new or changed since the baseline |
| `advisory_ollama_model_layout` | high | 75 | a models-directory file outside blobs/ and manifests/ |
| `advisory_php_web_changed` | medium | 50 | a web-root .php, .phtml or .phar changed since the baseline |
| `advisory_php_web_new` | medium | 50 | a new web-root .php, .phtml or .phar |
| `advisory_php_web_upload` | high | 75 | a new .php, .phtml or .phar in an upload, cache or tmp-looking directory |
| `advisory_php_ini_changed` | medium | 50 | php.ini or a conf.d file is new or changed since the baseline |
| `advisory_php_auto_prepend` | high | 75 | auto_prepend_file or auto_append_file newly set |
| `advisory_footprint_gone` | info | 10 | an advisory footprint file is gone since the baseline |
| `advisory_litellm_release` | high | 75 | a LiteLLM release named in GHSA-92x9-889m-jgmw is installed |
| `advisory_litellm_cook` | high | 75 | cook.pth is in a Python site-packages folder |
| `advisory_litellm_sitecustomize` | high | 75 | sitecustomize.py is next to a named LiteLLM release |
| `advisory_litellm_image` | high | 75 | a container image matches the LiteLLM incident digest from 21 Oct 2026 |
| `advisory_litellm_proxy` | high | 75 | a LiteLLM version named in GHSA-7hp6-4w63-5g45 is installed |
| `advisory_node_vulnerable` | high | 75 | a Node.js version below the 21 Oct 2026 security release |

LiteLLM is three exact releases, not a version range: 1.82.7, 1.82.8, and 1.107.0, named by GitHub advisory GHSA-92x9-889m-jgmw. The table row is `litellm` in `advisories.json`. The pin `litellm==1.106.2` and the image digest come from the 21 Oct vendor post (https://docs.litellm.ai/blog/security-incident-oct-21-2026). The advisory does not name a patched version. Creakboard looks for the folders `litellm-1.82.7.dist-info`, `litellm-1.82.8.dist-info`, and `litellm-1.107.0.dist-info` in site-packages it can read without root: `~/.local/lib/python3.*/site-packages`, `~/.venv` and `~/venv`, one level of `~/.virtualenvs`, `/usr/lib/python3*/site-packages`, `/usr/local/lib/python3*/site-packages`, and Debian `dist-packages`. Another `litellm-*.dist-info` is "present and not this incident", not a high finding, unless GHSA-7hp6-4w63-5g45 names that version (`>=1.91.0 <1.100.4`, `>=1.101.0 <1.101.3`, `>=1.102.0 <1.102.2`, `>=1.103.0 <1.103.1`, `>=1.104.0rc1 <1.104.0rc2`; patched 1.100.4, 1.101.3, 1.102.2, 1.103.1, 1.104.0rc2). 1.87.0–1.90.x is not in that box (the GHSA text limits those to `EXPERIMENTAL_UI_LOGIN=true`). `cook.pth` in any of those folders is a high finding on its own. `sitecustomize.py` counts only in a folder that also has one of those three dist-info folders or `cook.pth`. A `.pth` file runs when Python starts, including when litellm is not imported. Project folders, conda, pyenv, pipx and uv are not walked.

Container images are read only when the file is already readable: the overlay2 content blob `var/lib/docker/image/overlay2/imagedb/content/sha256/<digest>`, the same path under a home's rootless `~/.local/share/docker`, and podman `images.json`. The digest is the full `sha256:1bbcb1443bc962e45f5aad53fe3d2c30600e0379715fb6c664cdd3ac126c339e`, and it is the 21 Oct image only. It is not a digest for 1.82.7 or 1.82.8. Docker is not run and the daemon is not contacted. An unreadable folder is `not_visible`. Finding one footprint confirms that named release or that image. Not finding one says what was read.

The report never calls the machine safe, clean, protected, or not compromised. A check that cannot be read is `not_visible`.

## What it never does

- `baseline`, `scan`, `report` and `run` never change the machine: no remediation, no deleting, no quarantining, no disabling. They report. The hourly timer runs `creakboard run` and stays a read-only scan. `creakboard fix` is the separate command that can quarantine a file or write a drop-in, and only after you confirm that one fix.
- It never executes anything it reads (no config, hook or script is run), never follows a symlink, and caps the size and count of
  everything it reads. All text from the machine is treated as hostile and sanitised before it is printed.
- It never prints a secret value. Environment variables appear as names; secret-looking config values appear as a path and a
  short fingerprint; command lines are redacted.
- `baseline`, `scan`, `report`, `run` and `doctor` never need root, and it warns (`doctor`) if you run it as root. `creakboard fix` says when a remedy needs root and does not call sudo.
- It writes only into its own state folder (see above). The one exception is `creakboard tripwire plant`, which writes the bait files you asked for (see "Tripwires") and never overwrites a file that is already there.
- It listens on a network port only when you start `creakboard ui`, and then only on `127.0.0.1` (see "Creakboard UI").
- It does no network access unless you turn it on. The ntfy push needs a config you write yourself. The only new network access is the opt-in loopback call that asks a local model to explain a finding.
  Since 0.5.0 there is one more, also only when you agree: the daily update check (see "Update checks").
  (The subprocesses it starts are `pacman -Qo` on a real `/`, and, for posture, the read-only `ip`, `resolvectl`,
  `systemctl is-active`, `nmcli` and `bluetoothctl` commands listed under "Posture": argument list, no shell, scrubbed environment,
  timeout. Those only ask the local kernel or local daemons; nothing is sent to another host. The neighbour list uses that same
  `ip -j neigh show` and does not probe any device.)
  For the October 2026 PHP, Ollama and Node.js checks it may also run `pacman -Q`, `dpkg-query -W` and `rpm -q`, and, only when the package
  manager has no version, `<php-binary> -n -v`. It never runs `ollama` or `node`. The LiteLLM check runs no command: not pip, not docker, and not litellm.
- It never installs or runs anything it downloads. Rules are in the code. The October 2026 PHP and Ollama table is data in
  `advisories.json`; with update checks on, `creakboard run` fetches one signed file a day from everysynthetic.org (the newest
  version number and, when newer, that table); with a paid key stored, twice a day from the licence server instead (see "Free
  and paid feeds"). A newer release is announced, never installed by itself. With update checks off, nothing is downloaded at all.

## Update checks

New holes get published after you install. So that your copy hears about them, Creakboard can check one small file a day.

- **Only when you agree.** The installer asks once ("Check everysynthetic.org once a day ...? [Y/n]"; yes is the default, and
  with no terminal to ask it stays off). Change it any time: `creakboard updates on`, `creakboard updates off`,
  `creakboard updates status`. It is the `update_check` key in `config.json` (owner-only, like the other settings).
- **What goes out.** During `creakboard run` (the hourly timer), at most once a day: two HTTPS GETs,
  `https://everysynthetic.org/creakboard/feed/feed.json` and `feed.json.sig`, with the User-Agent `creakboard` and nothing else.
  No id, no version, no machine data. Our web host sees your IP address, as with any download. `creakboard update-check` checks
  right now, even when daily checks are off, because you asked.
- **What is trusted.** Only a feed whose Ed25519 signature checks out against the key built into Creakboard. The private key
  stays on the maintainer's machine and never on the web server, so a hacked site cannot sign a feed. Redirects are refused, the
  file is capped at 256 KiB, and a feed older than one already accepted is refused (no rollback). The signature is checked in
  Creakboard's own standard-library code (RFC 8032), and again every time the stored feed is read.
- **What it changes.** The feed's advisory table replaces the built-in one only when its `serial` is newer; it is data (versions,
  CVE ids, paths), never code. A newer Creakboard release shows in the report (`UPDATES:`), on the local page, and as one push to
  your own ntfy topic if you configured one. Updating is running the install line again; nothing installs itself.
- **What it cannot do.** A brand-new kind of check needs new code, so it arrives as a new release (announced, not installed).
  If you turn update checks off, your copy only knows what it shipped with.

Maintainers: `packaging/make_feed.py` builds and signs `dist/site/creakboard/feed/` (run by `packaging/build_release.sh` when the
signing key is present). Bump `serial` in `advisories.json` when you publish new threat data.

### Free and paid feeds

Creakboard itself is free and open source, and stays that way. What a subscription buys is sooner data from Every Synthetic,
not a different program.

- **Free feed.** Holes that are being actively exploited right now come the same day, for everyone. Everything else comes 30
  days after the paid feed, and never older than the table in the newest release. This is the file described above.
- **Paid feed.** Every advisory the day it is checked, fetched twice a day. $5 a month or $50 a year per machine; shops pay $15
  a month for up to 10 machines plus 7-day repair seats for customer machines on the bench. Both feeds are signed by the same
  offline key and checked by the same code, so a paid key never changes what is trusted.
- **Adding a key.** `creakboard licence add CB1-...` (the key from your email), `creakboard licence status`, and
  `creakboard licence remove`. The key is kept in `licence.json` in the state folder, mode 600. Adding a key never turns update
  checks on by itself.
- **Repair seats (Shop plan).** On a machine holding the shop key, `creakboard licence seat --label "Mrs. Lee laptop"` asks
  the licence server for a 7-day seat and prints it whole (it starts `CBS-`). On the customer's machine, `creakboard licence
  add CBS-...` then `creakboard update-check`. The seat lapses on its own, never counts against the shop's 10 machines, and
  cannot mint more seats. This is the only request Creakboard ever sends with a body (a POST of the label), and only to
  `.../api/v1/shop-seat`.
- **What goes out with a key.** During an update check you already allowed, two HTTPS GETs to
  `https://everysynthetic.org/creakboard/api/v1/feed.json` and `.sig`, carrying the key and a random install id (made once on
  this machine, not a hardware fingerprint) so machines can be counted against the plan. The key is sent to that address only,
  never to the free feed or anywhere else. `creakboard licence status` makes one more request there, when you run it.
- **When the paid feed says no** (subscription ended, every machine in use, the server unreachable, or a feed that fails its
  signature), Creakboard says why in `UPDATES:` and uses the free feed instead. Nothing stops working.

Maintainers: with `--release-table FILE`, `make_feed.py` writes both feeds with one serial. The free one goes to the site
folder, the paid one to `dist/paid_feed/`, which must never be inside the site folder (it refuses). The free table comes from
`packaging/feedsplit.py`: mark an advisory, branch or section `"exploited": true` and its whole section goes to the free feed
the same day. Each paid table is archived under `~/.config/creakboard-signing/snapshots/`.

## Fixes for the October 2026 advisories

`creakboard fix` confirms one remedy at a time. `baseline`, `scan`, `report` and `run` stay read-only, and the hourly timer does not call `creakboard fix`.

It lists each remedy it knows: the command, the file and the line, what it backs up, and `creakboard fix --undo <fix-id>`. Nothing is applied until you answer `y` or `yes` to that one fix (`[y/N]`; anything else, including an empty answer, leaves it). `--yes` is refused unless it is paired with `--only <fix-id>`, so a bulk apply is a usage error. `--undo` is not combined with `--yes` or `--only`.

A remedy that needs root says so and is not applied when you are not root. Creakboard does not call sudo. Before it changes anything it writes a backup and an undo record under the state directory (`undo/`, mode 700, file mode 600). `fix.log` (mode 600) records the time, the fix id and what changed: the command or the path, not the file contents. Quarantined files go to `quarantine/` (directory mode 700, file mode 600) with the sha256, the original path and the original mode.

After an apply it runs the same check again and prints exactly one of `changed: still vulnerable` or `changed: check now passes`. A check it still cannot read is `changed: still vulnerable` with reason `not_visible`. It never calls the machine safe, clean, protected, or not compromised.

It never downloads a URL and it never runs `ollama`. A version update is only the package manager that already owns the package: `pacman -S --noconfirm`, `apt-get install -y --only-upgrade`, or `dnf upgrade -y`, then a restart of that service when its unit file exists. Undo asks that manager for the full version it reported, including any epoch and distro revision. Creakboard does not download a URL itself. A copy that was not installed by pacman, apt or dnf is not changed: the command prints the steps (official script, tarball, or, for Docker, replace the image and recreate the container).

End-of-life PHP is not upgraded. The line is "end of life: check your vendor's backport". Creakboard will not upgrade an end-of-life branch.

The upload-progress drop-in is a partial mitigation for CVE-2026-109619, not a full fix. Creakboard writes that drop-in (`/etc/php/conf.d`) only for Arch's PHP package, which reads that folder. On the Debian/Ubuntu layout (`/etc/php/<X.Y>/`), a PHP no package manager owns (for example the official Docker image, which reads `/usr/local/etc/php/conf.d`) or anything else, the remedy says how to find the folder PHP reads (`php --ini`) and leaves it to you: a drop-in PHP ignores would let the re-check report a pass that isn't true. Commenting `auto_prepend_file` or `auto_append_file` backs up the whole file first. A new web-root `.php`, `.phtml` or `.phar` can be quarantined; a site update can also add files, so look before confirming. A changed file, a symlink, and a file over 32 MiB are left in place.

`cook.pth` in a searched site-packages folder can be quarantined with a backup and an undo, including when it was already there at baseline time. The remedy prints the vendor pin `litellm==1.106.2` and says to rotate credentials. Creakboard does not run pip and does not remove the package. `sitecustomize.py` is not moved. A file that is not named `cook.pth`, or that is outside the site-packages folders just searched, is not moved.

`--root` other than `/` without `--state` is refused for `fix`, the same as for `baseline` or `run`. Exit 0 means the command listed remedies or did not apply. Exit 1 means `--yes` was refused because the remedy needs root. Exit 2 is a usage error. Exit 4 means an applied re-check is still vulnerable.

## Connections and neighbouring devices

Creakboard looks at this computer's own records. It never captures or reads network traffic contents, never probes or scans other devices, and never connects to anything except what the user configures.

Connections come from the kernel socket tables (`/proc/net/tcp`, `tcp6`, `udp`, `udp6`): established TCP sockets and connected UDP sockets, attributed to a program only when that process's `/proc/<pid>/fd` directory is readable. A non-root run cannot see other users' processes. Those are `not_visible` with a count. The count is never reported as none. For each program the record is the executable path and name, the remote ports, a count of distinct remote addresses, a capped address sample, whether the executable is in a temporary, download, hidden or world-writable directory, and whether it is still on disk.

Neighbour devices come from `ip -j neigh show` only. It is not a full inventory of the network: it only knows devices this computer has recently talked to or heard from. The report shows an 8-hex fingerprint of the MAC, the same way posture does. Vendor names are left out. The IEEE OUI database's licence does not clearly allow bundling it with this program.

`creakboard watch --minutes N` (default 10, maximum 120) reads those socket tables every 5 seconds, then applies the rules below once. It is read-only. Ctrl-C stops early and still prints what was sampled (`partial: stopped early`). It does not write the baseline or the last report.

Plain-English explanations are off unless you pass `--explain` on `report`, `run` or `watch` and config.json (the file that follows `--state`) contains `{"explain": {"url": "http://127.0.0.1:11434", "model": "gemma3:1b"}}`. The URL must be loopback (`127.0.0.0/8`, `::1` or the name `localhost`). Anything else is refused and nothing is contacted. No model is downloaded. The line is display-only: it does not change a score, a level, an exit code, or which findings are shown. At most 10 findings at medium or above are sent. A reply that says safe, secure, clean, protected or not compromised, or that tells you to ignore it, is dropped. An empty reply, a timeout (20 seconds) or a failed call leaves that finding unexplained, and the report says `no explanation` once. If the model is not installed locally the report says `model missing` once.

| rule | level | points | what it means |
| --- | --- | --- | --- |
| `connection_new_program` | medium | 50 | a program that did not make outbound connections in the baseline now does |
| `connection_new_port` | low | 25 | a known program is using a remote port it did not use in the baseline |
| `connection_risky_exe` | high | 75 | an outbound connection from a temporary, download, hidden or world-writable directory, or from a deleted executable |
| `connection_relay_port` | medium | 50 | a remote-shell or anonymity-relay port, and the program is not the known client for that port (the port list is `relay_ports.json`) |
| `neighbor_new_mac` | low | 25 | a device MAC was not in the baseline |
| `neighbor_churn` | info | 10 | enough new MACs that the table is churning, reported once instead of one finding per MAC |
| `neighbor_ip_mac_changed` | medium | 50 | the same IP now answers with a different MAC; a gateway change stays with the posture rule and is not counted again |

The relay ports and the programs that are the ordinary client for each one live in `relay_ports.json`. Port 22 is SSH (`ssh`, `autossh`). Port 23 is Telnet. Port 2222 is an alternate SSH port. Port 3389 is RDP. Port 5900 is VNC. Ports 9001 and 9030 are Tor relay and directory ports. Port 9050 is the Tor SOCKS proxy. Port 9150 is the Tor Browser SOCKS proxy (`tor` and `firefox`). Ports 80 and 443 are not in that list.

## Hourly timer on Linux (systemd user units)

Needs `systemd --user`. Manual scans do not need systemd at all. The unit templates are in `packaging/` (in the source tree and
the sdist) and are reproduced here. The service has a placeholder `@CREAKBOARD_BIN@` that you must replace with the absolute path
of your `creakboard` command.

`~/.config/systemd/user/creakboard.service`:

    [Unit]
    Description=Creakboard: read-only scan of this machine against its baseline

    [Service]
    Type=oneshot
    # TEMPLATE: replace @CREAKBOARD_BIN@ with the absolute path of your creakboard command (`command -v creakboard`; pipx and `pip install --user`
    # put it at ~/.local/bin/creakboard). See the README, section 'Hourly timer'.
    # 'run' = scan + one-page report + push of NEW alerts if ~/.config/creakboard/notify.json exists. Exit 3 means no usable baseline (NOT clean); exit 4 means it found at least one alert (it was
    # pushed through notify if you configured one), which is a result, not a failure of the service.
    ExecStart=@CREAKBOARD_BIN@ run
    SuccessExitStatus=3 4
    Nice=10
    # The collectors are read-only; the program writes only into its own state folder, and sends a push only if you configured one. These limits are the part of the sandbox
    # that still lets it SEE the machine. Do NOT add ProtectSystem, ProtectHome, PrivateTmp, PrivateDevices, ProtectKernel* or
    # ProtectControlGroups here: in a USER service any of them puts it in a private user namespace, which cannot read other
    # processes' /proc/PID/fd, so every listener loses its owner and looks "changed" (found by running it for real, 2026-10-10).
    # A root-installed system unit can have both; that variant is not shipped yet. tests/check_unit_visibility.py proves the count.
    NoNewPrivileges=yes
    RestrictSUIDSGID=yes
    # AF_NETLINK is for the posture checks: `ip route` and `ip neigh` ask the kernel over netlink (read only; no packet is sent).
    RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
    LockPersonality=yes
    MemoryDenyWriteExecute=yes

`~/.config/systemd/user/creakboard.timer`:

    [Unit]
    Description=Run Creakboard hourly

    [Timer]
    OnCalendar=hourly
    RandomizedDelaySec=300
    Persistent=true

    [Install]
    WantedBy=timers.target

The short way: `creakboard service install` writes both units with your command's path filled in, then runs
`systemctl --user daemon-reload` and `enable --now creakboard.timer`. Add `--tripwires` for the tripwire watcher (it starts only
once something is planted). Each file it writes starts with a marker line. `creakboard service remove` stops and deletes only
those files, never a unit you wrote yourself, and keeps your baseline, reports and logbook. `creakboard service status` shows
whether they are enabled and running. The installer never does this for you.

Install from a source checkout by hand:

    mkdir -p ~/.local/bin ~/.config/systemd/user
    sed "s|@CREAKBOARD_BIN@|$(command -v creakboard)|" packaging/creakboard.service > ~/.config/systemd/user/creakboard.service
    cp packaging/creakboard.timer ~/.config/systemd/user/

Or paste the two blocks above into those two files and then run:

    sed -i "s|@CREAKBOARD_BIN@|$(command -v creakboard)|" ~/.config/systemd/user/creakboard.service

Then, after you have taken a baseline:

    systemctl --user daemon-reload
    systemctl --user enable --now creakboard.timer
    systemctl --user list-timers creakboard.timer
    journalctl --user -u creakboard.service -n 50     # the last report

The service file deliberately has no filesystem sandbox options (`ProtectSystem`, `PrivateTmp` and so on). In a user service they
put it in a private namespace that cannot read other processes' `/proc/PID/fd`, so every listener looks "changed". The unit keeps
the limits that do not blind the scan. A user timer only runs while your user manager runs; to keep it running when you are
logged out, `loginctl enable-linger $USER` (your decision).

## Tripwires (opt-in)

The idea is Cliff Stoll's, from *The Cuckoo's Egg*: leave something only an intruder would touch, write down every touch, and hand the record to people who can act on it. Creakboard never strikes back, blocks or deletes anything here.

    creakboard tripwire plant          # writes three fake files: ~/.ssh/id_ed25519_backup, ~/.aws/credentials.bak, ~/Documents/passwords_old.txt
    creakboard service install --tripwires   # the hourly check and the watcher, as user units (see "Hourly timer")
    creakboard tripwire status         # the baits, and how many touches
    creakboard logbook verify          # checks the logbook's hash chain
    creakboard logbook export          # a zip of the evidence plus a page on what to do and who to call
    creakboard tripwire ok 7           # hit #7 was your own backup or search (a new line; nothing is edited)

The bait files are fake: the key is not a key, the AWS keys are not valid, and the passwords are random. Each carries a random token, so a bait that turns up somewhere else can be recognised as yours. On a touch, the watcher:
- records the processes holding the file open, if any;
- takes a read-only snapshot of running processes and connections;
- appends one line to `logbook.jsonl` that carries the hash of the line before it;
- sends a push (if you set up ntfy) with the logbook number and hash, so your phone holds a copy an intruder cannot reach.

Every hourly report and the local page also check the tripwires, read-only (stat only, no bait is opened). A touch nobody has
marked OK, a bait that is missing or changed, or a broken logbook chain goes at the TOP of the report as `TRIPWIRES:`, turns
the page's status card red, and makes `report`/`run` exit 4 (alert). A watcher that has stopped or gone silent for over two
hours, or a gap in its heartbeats, is listed there too. When all is quiet the report says so in one line.

Honest limits:
- Without root, inotify cannot say which process opened the file. A reader that is still holding the file is named; a bare `cat` that is gone within milliseconds is not.
- File indexers (KDE Baloo, GNOME Tracker), backups (rsync, restic, Timeshift) and antivirus can touch a bait. That is a hit too; mark it with `tripwire ok`.
- The chain shows a line that was cut or edited by accident or by hand. It is not locked with a secret, so someone with your account who rewrites every line after the change can make it check out again, and a cut of the newest lines does not show either. The pushes on your phone are the check for both.
- Someone with your account can stop the watcher. `logbook verify` reports a gap in the hourly heartbeats ("machine off, or someone stopped it").
- The watcher opens no network port. The only network use is the ntfy push you configured.

## Notifications (ntfy) are opt-in

Nothing is sent unless you write `~/.config/creakboard/notify.json`, mode 600, yourself. Creakboard never creates it.

    {"url": "https://ntfy.sh/<your-private-topic>", "token_file": "/path/to/token"}

`token_file` is optional. `notify.json` must be mode 600 and owned by you; if `token_file` is given,
the token file itself must also be mode 600 (its contents are sent as a bearer token and never printed). The URL must be https, except plain http to localhost or
a private-network address (a self-hosted ntfy on your LAN). The push carries counts, a severity word and finding ids only: never
titles, paths or evidence, because the ntfy server may not be yours. Each finding id is pushed once; `notified.json` in the state
folder remembers which. Only `creakboard run` pushes; `report` never does. Anyone who learns your topic name can read the pushes, so
treat the topic like a password.

## Limitations (honest list)

- The Linux collectors were built and tested on Arch Linux. Other distributions: the package-owner lookup degrades to "could not see". Install, baseline, report, fix and doctor were also run on Ubuntu 24.04, Debian 12 and Fedora 42 (2026-10-22, clean containers).
  WSL2 and macOS are untested (the macOS Claude Desktop path is in the config list, but no macOS collectors exist).
  Windows is a read-only beta in this tree (see "Windows (read-only beta)" below); one real-machine run so far (2026-10-28). State defaults to `%LOCALAPPDATA%\Creakboard` and config to `%APPDATA%\Creakboard`. `creakboard fix` refuses. Mode bits are not checked, and Creakboard does not read ACLs. Junctions and other reparse points are refused.
- The author ran it on Python 3.14 only. 3.11 is the claimed minimum from a static check of the syntax and standard library
  use; it has not been run on 3.11, 3.12 or 3.13.
- Only what the collectors list is checked. Package managers other than the npm and pip locations above (nvm, fnm, volta, pipx
  environments, cargo, Go and so on), files that rc files `source`, and anything outside the home directories and system
  paths above are not covered. A repository deeper than four folders under a home, or beyond the caps (200 repositories,
  500 items per category), is not seen; reaching a cap is reported, not hidden.
- Scores are fixed, hand-written weights, not calibrated against real incidents. A new but harmless MCP server will score
  high; a clever persistence trick in a place not listed will not score at all.
- The baseline is only as trustworthy as the machine on the day you took it, and the state is not signed or tamper-evident.
- Without root, other users' processes and protected folders are "could not see". The report counts them; it does not guess.
- Races: files can change between Creakboard checking and reading them. The checks on the state and config files are not atomic.
- No rule updates, no history beyond the single baseline plus the last report, no multi-machine view. It is a one-machine tool.
- The scan of a very large home directory can take a while; it was tuned on one developer machine, not on a range of machines.
- Alpha software, no warranty. Please report false alarms and misses.

## Windows (read-only beta)

This tree includes a Windows collector (`winwatch`). One real-machine run so far (0.5.4 report, 2026-10-28); the full checklist is still open.

**Installing on Windows (0.6.4): no console.** `CreakboardSetup.exe` opens a setup window that explains the free and paid plans, finds Python 3.11+ or installs Python 3.12 for this user only (winget, else python.org's installer, run only when Windows reports a valid Python Software Foundation signature), and adds Start-menu shortcuts (Creakboard, Uninstall Creakboard) and, if ticked, a desktop icon. The Creakboard shortcut runs `pythonw.exe` (no console) with `creakboard ui --exit-when-idle 10`: the page opens in the browser and the program stops by itself 10 minutes after the page is closed. Subscribing and adding a key happen on the page (Your plan). `creakboard.cmd` is still there for the command line. Tripwires and `creakboard service` are Linux only. **Creakboard does not change the registry, services, scheduled tasks, files, or Wi-Fi.** `creakboard fix` refuses. Commands are fixed argument lists with no shell.

### What is read

- Services (`Win32_Service`): name, start mode, path, account (the path is redacted)
- Scheduled tasks (`Get-ScheduledTask`)
- Startup persistence, read-only, and only these registry keys (any other key is refused):
  - HKCU and HKLM `Software\Microsoft\Windows\CurrentVersion\Run` and `RunOnce`
  - HKLM `Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run` and `RunOnce`
  - HKCU and HKLM `Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run`
  - HKLM `Software\Microsoft\Windows NT\CurrentVersion\Winlogon` values `Shell` and `Userinit` only
- Startup-folder file names (machine `ProgramData\...\Startup` and per-user `AppData\Roaming\...\Startup`). Shortcut targets are not opened
- TCP listeners and established connections, with the owning process path when it can be seen
- Local users and the Administrators group
- SSH `authorized_keys` fingerprints under `Users\` (Public and Default skipped; a junction home is not walked)
- Wi-Fi profile names from `netsh wlan show profiles` (any language). Keys are not read
- Neighbors from `arp -a`
- Ollama: product version at the usual exe paths, `OLLAMA_HOST`, and whether port 11434 is on a non-loopback address

PowerShell, netsh and arp are launched from `%SystemRoot%\System32\...`. A `SystemRoot` that is not an absolute drive path (relative, UNC, empty, or containing a quote) falls back to `C:\Windows`.

### What is not read

- UDP sockets
- `.lnk` shortcut targets
- Windows sshd settings and `administrators_authorized_keys`
- ACLs (doctor says mode bits are not checked and ACLs are not read)
- PHP and Ollama Linux advisory paths (the Windows Ollama fact is `ollama_win`)
- Whether a connection's exe is still on disk
- Windows-specific scoring rules (new facts use the generic diff)

### Ordinary versus elevated

CIM service and task queries, `netsh wlan show profiles`, and `arp -a` work as an ordinary user. HKLM Run, Winlogon, and some service paths may come back `not_visible` without elevation. Run from an elevated prompt to read those. The report, explain text, and doctor list each Windows `not_visible` reason in plain words with one next step. Junctions and other reparse points are `not_visible` (`reparse`) and are not followed.

## Development

    python3 -m venv .venv && .venv/bin/pip install build
    python3 -I -m unittest discover -s tests -p "test_*.py"     # 1318 tests

Mutation guards: each guard in the code (a size cap, a redaction, a symlink refusal, an exit code) is broken on a temporary copy
and the tests must then fail. A guard that does not make a test fail prints NOT DEMONSTRATED and the script exits non-zero.

    python3 -I tests/mutation_creakboard.py      # also runnable as: python3 tests/mutation_creakboard.py
    python3 -I tests/mutation_stageb.py
    python3 -I tests/mutation_stagec.py      # the longest
    python3 -I tests/mutation_staged.py
    python3 -I tests/mutation_stagen.py      # posture (network)
    python3 -I tests/mutation_advisories.py  # October 2026 PHP and Ollama advisories
    python3 -I tests/mutation_litellm.py     # three exact LiteLLM releases, cook.pth, image digest
    python3 -I tests/mutation_fixes.py       # creakboard fix remedies and refusals
    python3 -I tests/mutation_job4.py        # connections, neighbours, watch and explanations
    python3 -I tests/mutation_ui.py          # Creakboard UI (token, cookie, Host, Origin, bind address, one check at a time, wording)
    python3 -I tests/mutation_mcp.py         # AI connector: off until on, look-never-hide, evidence wrapping, secrets, call log
    python3 -I tests/mutation_feed.py        # update feed: signature check, setting, once a day, rollback, table, push
    python3 -I tests/mutation_tripwire.py          # tripwires: bait files, watcher, logbook chain, export
    python3 -I tests/mutation_tripwire_report.py   # tripwires in the report, the page and the exit code
    python3 -I tests/mutation_service.py     # creakboard service: path check, never touches your own units
    python3 -I tests/mutation_paid.py        # paid tier: key file, where the key may go, fallback to free, the 30-day free table
    python3 -I tests/mutation_seat_page.py   # repair seats (the only POST) and the site page's Stripe buy links
    python3 -I tests/mutation_winwatch.py    # Windows read-only beta: fixed commands, reparse points, fix refusal

Unsigned Windows installer (MinGW-w64, System32 powershell.exe, not signed):

    python3 -I packaging/windows/build.py    # writes packaging/windows/dist/CreakboardSetup.exe

`tests/check_unit_visibility.py` is a manual check (needs a working `systemd-run --user`); it is not part of the unit tests.

## Licence

Apache License 2.0 (`LICENSE`), copyright 2026 EverySynthetic LLC; see `NOTICE.txt`. The app is free to use,
change and share under that licence. Every Synthetic's signed update feed and support are services offered on their own terms.