Security

What RabbitLock protects, what it does not, and what is up to you.

We design for one adversary first: a coding agent that has been prompt-injected and can run any command as you. Every claim below is backed by an automated test or stated as a limit.

Protected

9

threats in the table below

Your part

3

threats in the table below

Not covered

2

threats in the table below

ThreatStatusHow
The agent prints, logs or pastes the token into its contextProtectedIt only ever has a per-session placeholder.
A prompt injection makes the agent send the token to an attackerProtectedReal values are only swapped in for that secret's allowed hosts. Everywhere else gets the placeholder or a 403.
The token is sent over unencrypted HTTPProtectedRabbitLock refuses to inject over cleartext.
A spoofed Host header redirects an allowed secretProtectedPolicy and delivery use the host the agent actually connected to.
A sensitive key is used without anyone knowingProtectedRequire approval per secret; every use is receipted.
Another program running as you copies ~/.rabbitlockYour partWith a passphrase on your identity (rabbitlock key protect), the copy can't decrypt your secrets or the CA key. Without one, file permissions don't stop programs running as you.
The encrypted secrets file is tampered withProtectedIntegrity is checked on every read; the run stops.
The agent reads your key file from diskProtectedThe agent runs in an OS sandbox (or Claude Code's own) that denies it. If no sandbox can be applied, RabbitLock warns at startup.
The agent edits the policy to allow its own host next time, or forges receiptsProtectedThe policy, the encrypted secrets and the receipts are read-only to the sandboxed agent.
The machine has no usable sandbox (Windows, or Linux without bubblewrap)Your partInstall bubblewrap on Linux. Without a sandbox the agent can read the key file; run with --sandbox on to refuse instead.
Tokens are broader than the job needsYour partUse narrowly scoped tokens; RabbitLock controls where a token goes, not what it can do there.
The agent misuses a token on an allowed hostNot coveredNot prevented. An allowed GitHub token can still do anything it permits on GitHub.
An allowed API echoes the token back in its responseNot coveredNot prevented yet; response scrubbing is on the roadmap.
The token is placed in a request bodyProtectedJSON, form and text bodies up to 1 MiB get the same host checks and substitution. Other bodies pass through carrying only the placeholder.

Keys on your machine

What lives in ~/.rabbitlock

  • identity: your private key seed (owner-only permissions). It decrypts your secrets. rabbitlock key protect encrypts it with a passphrase.
  • ca/: the local certificate authority RabbitLock uses to inspect requests to your policy's hosts. Its private key is stored encrypted under your identity.
  • projects/: your encrypted secrets and receipts (owner-only).

Both are as sensitive as the secrets themselves. rabbitlock run denies the agent access to them through an OS sandbox by default; keep it that way unless you have your own isolation.

What leaves your machine

Nothing, except your agent's own requests

RabbitLock needs no account and runs no hosted service. The CLI sends no telemetry. Its only outbound traffic is the agent's requests, forwarded to where they were going. Team sharing works through encrypted files in your own repository.

Report a vulnerability

Email security@rabbitlock.com. We would rather hear about a limit we missed than have it missing from this page.

Full threat model in the docs