Skip to content

v0.8.0: hold what can't be read; agents can't switch it off

Choose a tag to compare

@batrapulkit batrapulkit released this 09 Oct 14:59
· 327 commits to main since this release

Hold what can't be read. Agents can't switch it off.

This release changes what gets held, so it gets its own minor version.

What a shell reading can't follow now waits for a person

  • A program written inline (python -c, node -e, perl -e, ...), or one whose name is only known when it runs.
  • A script the agent created in this conversation and then runs. Editing an existing script and running it still runs on its own.
  • Programs that aren't common developer tools are recorded, not held (command_checks.unknown: warn). Set it to review to hold them too.

An agent can't turn Squidbrake off

  • These now wait for a person when an agent runs them: squidbrake connect --remove, service stop, resume, uninstalling it, killing its process, taking it out of login items, and editing the managed policy files squidbrake lockdown writes.
  • A person can still remove it from their own laptop. For a company, lockdown makes it IT policy; only a machine admin can undo that.

Emergency stop

  • The agent is told it's a stop, since when and by whom, and how to end it: in the dashboard, or with squidbrake resume.
  • A stop can end by itself: 15 minutes, 1 hour or 4 hours.
  • If a stop has been on for 30 minutes and agents keep trying, it asks once: "Still stopped: did you mean to leave this on?"
  • Blocks from a stop are counted as "paused", apart from what rules stopped.

Setup and pilots

  • Installs report which agents have the hook. setup says when no agent is connected yet.
  • The CLI says once a day when a newer version exists. This is a single request to pypi.org; turn it off with SQUIDBRAKE_NO_UPDATE_CHECK=1 or DO_NOT_TRACK=1.
  • The rule approve-guard-rail-changes is now approve-agent-setup-changes.

Benchmark (bench/chains, 59 sessions): with chains, harmful sessions stopped went from 30/35 to 34/35. False positives went from 2/41 to 3/41. The new one, a helper script the agent wrote and then ran, is kept in on purpose.

Docs: the README and FAQ now say exactly what leaves your machine (usage counts, only after a yes; Enter means yes) and what an agent can and can't get around.

Upgrade: run the install line again, or pipx upgrade squidbrake

Install this version (0.8.0)

Windows (PowerShell):

$env:SQUIDBRAKE_VERSION="0.8.0"; irm https://pilots.squidbrake.com/install.ps1 | iex

macOS / Linux:

curl -fsSL https://pilots.squidbrake.com/install.sh | SQUIDBRAKE_VERSION=0.8.0 sh

With pip: pip install squidbrake==0.8.0. Docker: docker pull ghcr.io/batrapulkit/squidbrake:0.8.0

Running the line again without SQUIDBRAKE_VERSION goes back to the newest. Every version:
https://github.com/batrapulkit/squidbrake/releases