rotateit

Security promises

Each line is literally true of the code that ships today.

14 promises · 12 sections · 30 tests. Every promise is docs/THREAT-MODEL.md §6, word for word; “Browser-only providers: we never see the key” describes docs/SPEC-release-1.md §5, §6, and “When it speaks” describes docs/SPEC-release-1.md §2. “Passing” means what every release needs: publish.yml runs the whole test suite before anything is published.

Key values stay on your machine

RotateIt never prints or sends a secret value, and stores one only when you ask: rotateit vault moves a .env file's values into your macOS Keychain (off macOS vault refuses until Linux keyring support exists), and vault and redact keep an encrypted copy of each file they change, and vault rm of each value it removes, so you can undo.

Our tests feed it 500 fake secrets and fail if eight characters of any one appear in any output, process argument or request, or in any file but the vault's own.

Fails when: passing

  • Any of 500 random secret-shaped values goes undetected or leaks anywhere.packages/cli/test/no-value-leak.test.ts
  • A secret value, the fingerprint salt, the backup key or a provider token appears in any spawned process’s arguments.packages/cli/test/argv-no-secret.test.ts

Browser-only providers: we never see the key

Anthropic, Stripe and GitHub keys have no API that makes a new one, so rotate hands you that step. It opens the exact page, you create the key and copy it once, and RotateIt reads it from your clipboard once, checks only its shape, and passes it straight to the rotation process. Anthropic keys get an expiry when you create them; a CI job can use federation instead of a key.

The value is never shown, logged, written to the journal or kept past the push. RotateIt clears your clipboard and zero-fills its own copy before anything is pushed. Then it pushes the key to every place, reads each one back, and calls the rotation done only when the old key is confirmed dead; when that cannot be confirmed, the summary says not verified and how to resume. If you copy nothing within 2 minutes, nothing is created by us and nothing is revoked.

What this cannot stop: any program running as you can read the clipboard while the key is on it; that window ends when RotateIt clears it. The handoff is part of rotate, which is in test, run only against recorded provider responses. Every test runs against a stand-in clipboard; no test, worker or CI job touches the real one.

put uses the same handoff for a key you already have: your agent asks, you copy it and approve with one y, and it lands only in the places you approved, each read back.

put --from generate:<spec> goes one step further: it generates secrets without ever seeing them. The sandboxed rotator makes the bytes and places them; you approve with one y, and you see only the length, the fingerprint and a key pair's public half.

agent  Generate SESSION_SECRET (hex, 32 bytes) and place it in .env and
       railway:production. Approve with `rotateit ok` in your own terminal;
       nobody sees the value.
you    y
agent  Generated SESSION_SECRET (32-byte hex), placed in .env and
       railway:production, verified, rotates in 180 days.

Bash into a button: the agent’s request, your one y, the agent’s next line. From the MCP provision tool, rotateit ok and inventory_summary, with the places faked.

Fails when: passing

  • A test file loads the real clipboard or runs a real clipboard tool.packages/pro/test/clipboard.test.ts · clipboard-fake-only
  • Eight characters of any of 500 keys passed through the clipboard show up in output, the journal, the egress log or the clipboard afterwards.packages/pro/test/clipboard.test.ts · clipboard-no-value-anywhere
  • A key is pushed anywhere while the clipboard still holds it.packages/pro/test/clipboard.test.ts · clipboard-cleared-before-push
  • A clipboard buffer or the reply line is left unzeroed once written.packages/pro/test/clipboard.test.ts · clipboard-buffer-zeroed
  • Anything but your own approval starts a put, it reads anything but the clipboard, or the agent's request outlives the placed key.packages/cli/test/approve/provision-roundtrip.test.ts · provision-roundtrip
  • A generated secret's bytes are drawn in the CLI instead of the sandboxed rotator, or the CLI hands the rotator a value for it.packages/pro/test/generate-child.test.ts · generate-in-child-only
  • Eight characters of any of 500 generated secrets show up in output, the journal, the inventory, a spawned process or your agent's answer.packages/pro/test/generate.test.ts · generate-no-value-anywhere

What it downloads, and what it sends

The only code or instructions RotateIt downloads is the incident feed, and it is signed: the CLI rejects a feed whose signature doesn't match the key built into the version you installed, or one older than a feed it already accepted. A validly signed feed past its 14-day validity is still used, labelled stale with its date, only by a copy that accepted it while it was valid; any other copy refuses it and says the feed is out of date.

scan also talks to other services, and nothing it receives is executed: it sends your package names and versions to OSV (api.osv.dev), asks GitHub with your own gh login for the names of your Actions secrets, asks Vercel, Fly or Railway with your own login for your variables if you pass --providers, and sends a 5-character prefix of a hash of each key to HasMySecretLeaked if you pass --hmsl.

rotateit verify downloads a release's npm tarball and its signature only to check them; it never unpacks or runs them.

The hourly check makes one request, to fetch that feed. Nothing about your machine is in it. The only other request is the Pro licence renewing itself: in a licence file's last 14 days, at most once a day, it sends that file and a keyed hash of this machine's id, used only to count the licence's machines, and nothing else. A valid licence file never needs our server.

title  Railway was breached
text   5 of your keys are affected, in 8 places → rotateit why railway-2026-10

What the hourly check shows when the feed names a provider you use: watch on the sample project, with the notifier swapped for a recorder.

Fails when: passing

  • A validity over 14 days, or a feed from the future, gets used.packages/cli/test/feed-signature.test.ts
  • An expired feed is used unlabelled, or a tampered, revoked or replayed one is used because it expired.packages/cli/test/feed-stale.test.ts
  • Escapes, bidi overrides or newlines in feed text survive the parser.packages/cli/test/untrusted.test.ts
  • A path, env name, project name or fingerprint leaks into the feed request.packages/cli/test/watch/run.test.ts
  • A licence renewal asked before a file's last 14 days, more than once a day, or on a machine with no yearly file.packages/cli/test/pro/autorenew.test.ts · renew-due-only

When it speaks

RotateIt has no dashboard, digest, menu bar or badge. It sends one notification for one of nine causes, once per cause, and each names one action, a command:

  • A breach touches keys you hold: rotateit why <id>, or with Pro rotateit rotate --incident <id>, or after the trial once rotateit scan.
  • A runtime you use has a critical hole: rotateit why <id>.
  • A key passes its rotation policy, once per key per period: with Pro rotateit rotate --key <NAME>, otherwise rotateit why --age.
  • A key RotateIt created with an expiry is 7 days or less from it: rotateit rotate --key <NAME>.
  • Your key list is more than 7 days old: rotateit scan.
  • The incident feed has not been refreshed for 21 days, once per feed: rotateit watch status.
  • The watch trial's last day, its end, or a Pro licence ending, each once: rotateit watch status.
  • RotateIt itself needs updating, or its installed copy changed: the npm command or rotateit watch on, never a link.
  • A key your agent asked for and you approved was not placed, or a place did not read back: rotateit put --resume <run>.

Nothing else notifies: not watch on, not an upgrade offer, not a count of old keys, never the same cause twice, and never in CI, a pipe or --json.

Fails when: passing

  • A notification for anything but the nine causes, or one sent from anywhere but the hourly check and an approved put.packages/cli/test/watch/posture.test.ts · notify-event-allowlist

Sandboxed while it reads your keys

On macOS, the part that reads your keys runs in a sandbox with no network, no file writes, and no program it can start except node itself. (Rotation, which must talk to providers, has its own line, 11.)

The guard hook opens no network connection: it loads only Node's file and OS modules, and a test fails if that changes. Its file's hash is pinned in the CLI release that installs it, like every Pro file. The Claude Code plugin that rotateit agent install writes runs that same hook file, and names it only once guard on has installed it; the plugin's own files are pinned by hash in the CLI release too, rotateit agent status puts back any that changed, and the plugin makes no request. Guard reduces, doesn't prevent: a determined agent can still find a way; rotateit vault + rotateit run is the strong fix.

Fails when: passing

  • Scan reads values in a process that has the network on macOS.packages/cli/test/reader/sandbox.test.ts
  • The guard hook loads a network module or reads the inventory.packages/pro/test/guard/guard.test.ts

Keys out of your agent’s transcript

rotateit run starts only a command line you allowed for that project, exactly as you allowed it, in that project's folder, and refuses it if its program file has changed since or the allowlist was edited without the key RotateIt keeps for it (in your login Keychain; off macOS run refuses until Linux keyring support exists).

Allowing one needs a terminal and refuses when a terminal-faking tool, or an AI agent RotateIt recognises, started it. It recognises a named list of agents, by the programs that started the command and by variables they set; an agent not on that list, or one that detaches from the program that started it, is not recognised, and a program that fakes a terminal some other way can still answer. Allowing npm test trusts whatever the project's scripts say. No Touch ID approval ships yet: RotateIt reads its Keychain items through macOS's security tool, so the permission dialog names security, not RotateIt, and cannot tell RotateIt's read from another program's, and choosing "Always Allow" there removes that item's protection.

It puts the values in that command's environment only, with a short list of your other variables and none that make a program load extra code, never in a process argument or a file. It replaces them in its output where they appear verbatim, base64, hex or URL-encoded; that is best-effort, not a guarantee. It keeps them out of your agent's transcript, and no MCP tool's answer holds one; it cannot stop a command you allowed from sending them on, or from writing one to a file in the project or a temporary folder that your agent can then read.

Fails when: passing

  • An unlisted command, other flags, a tampered run.json or a folder outside the project gets past the CLI’s checks.packages/cli/test/pro/gate.test.ts
  • Values are resolved outside the offline profile, or the allowed program is started by anything but the CLI.packages/cli/test/pro/run-resolve-offline.test.ts

Signed releases, no dependencies

Every release is built by GitHub Actions from one tagged commit. The first release is published to npm by the owner, by hand, because npm lets a trusted publisher be added only to a package that already exists; every later release is published by that trusted publisher (GitHub Actions), without a long-lived token. Each release's tarball is signed with our release key, and rotateit verify checks it against the public key built into the CLI.

There is no auto-update, and the CLI never downloads code on its own: the Pro files arrive only when you run rotateit pro install, each build carries a manifest signed by a key built into the CLI, and a new Pro build needs a new CLI release that names its hashes.

Zero runtime dependencies. There is no package inside RotateIt for an attacker to poison. The Pro files are plain JavaScript run by the same node, not a second runtime.

$ rotateit verify --tarball rotateit-0.1.0.tgz --sig rotateit-0.1.0.tgz.sig
rotateit-0.1.0.tgz: signature OK (release-A)
sha256 ccba8e…62bc6
$ rotateit verify --tarball flipped-byte.tgz --sig rotateit-0.1.0.tgz.sig
rotateit-0.1.0.tgz: NOT verified: the tarball's sha256 is not the one signed
sha256 869f17…732a0

rotateit verify on a stand-in tarball signed in the test suite with a throwaway key, then on a copy with one byte flipped. Hashes shortened here.

Fails when: passing

  • A tarball with one flipped byte still verifies.packages/cli/test/release-signing.test.ts
  • A workflow uses NPM_TOKEN or NODE_AUTH_TOKEN, or publishes without the protected release environment.packages/cli/test/release-pipeline.test.ts

No telemetry by default

Telemetry is off unless you say yes. If you do, each interactive scan sends exactly this, documented to the key and enforced by a test: the CLI version, the OS, Node's major version, four counts (keys to rotate, patch, update, clean), the ids of the incidents that matched, which of its sources ran (env, files, lockfiles, php, gh, vercel, fly, railway, hmsl) and how long it took; never a key name, a value or a path; never from CI; rotateit telemetry off stops it.

$ rotateit telemetry status
Telemetry off. Nothing is sent.

A fresh install.

Fails when: passing

  • A fresh install sends anything, an opted-in CI job or pipe sends counts, or a key beyond the documented ones appears.packages/cli/test/telemetry-shape.test.ts

Where RotateIt stops

What we can't promise: malware already running as you can read what you can read. RotateIt leaves fewer secrets lying around; it does not make a compromised machine safe.

Pro: what you can check

Hash-pinned files

Pro is paid and proprietary (closed by licence), so you cannot review its source. Here is what you can check instead. The CLI refuses to run a Pro file whose SHA-256 is not listed in the CLI release you installed, or whose signed manifest does not match the key built into it; the list of every Pro build ever shipped is public, so the files you got are the files everyone got.

Sandbox

On macOS it runs each Pro command under a sandbox the CLI defines for that command: no reads of your home folder except the files that command works on, the Pro file and the node that runs it; no file writes except the files that command changes; no program it can start except that node and the few that command needs (security for your Keychain, a shell for guard's self-test; the MCP server starts none).

Egress

Its network: none for plan, guide, vault, redact, guard, policy, the MCP server and the part of run that looks up your keys; for rotate, only a local proxy the CLI runs, which lets it reach only the provider hosts named in your plan, from a host list built into the CLI, and lists every host it talked to in the run summary.

rotateit put, which places a key you copied or a secret it generates inside that sandbox, follows the same rule with the places you typed instead of a plan: only their hosts, through that proxy, and no network at all when the only place is a .env file. run hands the keys it looked up back to the CLI over a pipe, and the CLI starts the one command you allowed, outside that sandbox, with the keys in its environment only, inside Nimbus, a sandbox of its own that only carries what you approved: it can reach this machine (loopback), and other hosts only through a second local proxy, which lets through only the provider hosts of the keys in its environment (a value that is itself a key; a host name or URL in your .env adds nothing) and the hosts you allowed for the project yourself with rotateit run --allow-host, closes a connection whose TLS handshake asks for a different name than the host it asked the proxy for, and tells you each host it refused; if you allow a port yourself with rotateit run --allow-port, it can also connect directly to that port on any host, unlisted, because the macOS sandbox cannot name a remote host. Nimbus also keeps the command from asking another program to act for it: it can reach only five system services (user and group lookup, logging, notification names and its temporary folder), so it cannot open a URL or an app, send an AppleEvent, use the clipboard, have WebKit fetch a page for it, change another program's settings or attach a debugger to another program. The command runs in a session of its own, without your terminal as its controlling terminal, and cannot open a terminal device, so it gets what you type only on its standard input and cannot put input into your terminal; Ctrl-C still stops it. It cannot read the credential stores in your home folder (~/.ssh, ~/.aws, ~/.gnupg, ~/.config/gcloud, ~/.azure, ~/.kube, ~/.docker/config.json, ~/.netrc, ~/.npmrc, ~/.pypirc, ~/.rotateit, agent settings such as ~/.claude, the Keychain files, and the Chrome, Firefox, Safari, Edge, Brave and Arc profiles); it can read your other files. It can write files only in the project folder, the temporary folders and a folder in your home folder you allowed yourself with rotateit run --allow-write for a tool's cache (never the home folder itself, nor a folder holding login items, keys, shell or agent settings, or one that syncs to the cloud), so it cannot add a login item or a shell profile; in the project's git folder it can write only what git add and git commit write (objects, refs, logs, the index and HEAD); git's settings, hooks, attributes, alternates, the common-dir pointer and every other control file outside those stay read-only. What Nimbus cannot stop: the rest of the project stays writable, because that is what a build does, so a file the command changes there (a script, package.json, node_modules/.bin, .gitattributes, .gitmodules, an editor's task file, a nested repository) is run or obeyed when you later use it outside Nimbus, and needs the review you would give any other change; the index and refs stay writable because git add and git commit need them, so the command can change what is staged and where a branch points, which git obeys at your next commit, checkout or push; files it writes in the project or the temporary folders are a channel too: the command holds the values and can write one there for your agent to read; a host you allowed, a provider host of your keys, a port you pinned, or a service on this machine that passes on what it receives, can carry what the command sends it, keys included; and a cache folder you allow is read by your next build outside Nimbus, so what the command leaves there can change that build.

MCP server

The MCP server, rotateit mcp, never hands your agent a value: its get_secret tool always answers with an error, and its run tool hands the command back to the CLI, which puts it after --, applies the same checks as rotateit run and sets the grace period to 0 before anything runs; its provision tool only records a request for a key by name, which you approve with rotateit ok in your own terminal after copying the key (with nothing to copy when Pro generates it), and no tool takes, returns or approves a secret value (a generated key pair's public half, marked public, is the one key text it returns); without a valid Pro licence, every MCP tool answers only with the buy message. The Claude Code plugin starts this same MCP server by the absolute path of the program you installed, and adds no network of its own. Where that sandbox is missing, rotate, run, vault and redact refuse to start, and the other Pro commands, and scan's key reader, refuse unless you type --allow-unsandboxed yourself; an agent cannot use it.

Readable by buyers

The files are plain, unminified JavaScript, readable by buyers, and we publish the hash of their source with each release so an independent reviewer can prove the audited source is the shipped file.

What this cannot stop

What that cannot do: a hostile rotator could still send a key to one of the allowed provider hosts, and the command run starts is limited only as far as Nimbus goes, above. That is why rotate ships only after an independent review, named on the release.

Fails when: passing

  • One changed byte in a Pro file, or a signed build whose hash this release does not pin, is accepted.packages/cli/test/rotate/rotator-dist.test.ts
  • A Pro command gets the network, or can start more than node and its own short list.packages/cli/test/pro/modes-profile.test.ts
  • The rotator’s egress is set from anything but the run’s records, within the built-in host list.packages/cli/test/rotate/host.test.ts
  • A put reaches a host no typed place owns, or a put to a .env file alone gets any network.packages/cli/test/put.test.ts · put-egress-from-destinations
  • get_secret answers with anything but the error.packages/pro/test/mcp/tools.test.ts

The CLI decides what Pro may do

RotateIt is one closed package; the incident dataset is published on the site under CC-BY.

Everything that decides whether Pro runs and inside what limits is in the CLI and runs before any Pro code starts: the licence check, the hash list, the sandbox for each Pro command, the egress proxy and its host list, and the checks run makes before Pro starts. Pro runs only inside limits the CLI sets.

scan is free and needs no licence, and the counts it prints beside the Pro offer are the report's own counts; a test fails if they differ. watch is free for 7 days; after that it still tells you, once per incident, when a breach touches your keys. If our server cannot be reached, a paid Pro licence keeps working for up to 97 days past its file's date; one whose subscription ended gets 7 days. A rotation already started can always be resumed or rolled back.

Fails when: passing

  • A licence’s expiry can be edited, or Pro commands run past it.packages/cli/test/licence-expiry-matrix.test.ts
  • The scan’s offer and the watch notification count one inventory differently.packages/cli/test/funnel-open.test.ts

What this website collects

This website sets no cookies. It counts page views with Vercel Web Analytics, which uses no cookies and collects no personal data: the page's path without its query string, the referrer, rough location, browser, operating system and device type, with visitors told apart by a hash of the request that Vercel discards after 24 hours. /guide and /thanks don't load it. It also keeps two plain totals, views of /buy and waitlist sign-ups, with nothing attached to them.

Fails when: passing

  • A page view keeps its query string, a third-party script loads, or /guide or /thanks loads the page-view script.apps/site/test/waitlist.test.ts · page-views-carry-nothing

How these are checked

Each section above names the tests that fail if its promise stops being true. Every release runs the whole suite first, so a broken promise stops the release. “Where RotateIt stops” has no test: it says what we can’t promise. packages/cli/test/promises.test.ts also fails if a promise names a command the CLI does not have.

These promises come from our threat model, which is not public yet. Ask for a copy at support@rotateit.dev.

Reporting a vulnerability

Email support@rotateit.dev with “Security” in the subject. Please keep the details private until a fix ships.

What to include

  • What you found, and where: the CLI version, the page or the URL.
  • Steps to reproduce it, or a proof of concept.
  • What an attacker could do with it.
  • Whether we may thank you by name.
  • Never a real key, yours or anyone else’s.

What we do

We aim to reply within 5 working days to say we have it, then tell you what we will fix and when. We tell you when the fix ships.

Scope

  • The rotateit CLI and its signed releases.
  • RotateIt Pro: the hash-pinned Pro files, rotateit run and rotateit mcp.
  • rotateit.dev and its functions under /api.
  • The signed incident feed and its signature checks.

Out of scope: the providers’ own services (tell them), denial of service and load tests, social engineering, and attacks that need malware already running as you.

Safe harbour

If you research in good faith, we won’t take legal action against you or ask anyone else to. Good faith means you test only your own accounts and keys, don’t open or keep anyone else’s data, don’t slow the site for others, and give us time to fix it before you publish.

Rewards

We thank reporters publicly with their permission. No paid bounty yet.

Machine-readable: /.well-known/security.txt (RFC 9116).

Also read