Skip to Content
RabbitLock Docs

Security

The threat model. What is protected, what is up to you, and what is not covered.

RabbitLock is designed against one adversary first: a coding agent that has been prompt-injected and can run any command as you. Secondary threats are passive leaks: transcripts, logs, shell history, crash reports and model-provider retention.

Threat model

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 go only to that secret's allowed hosts; elsewhere the request gets the placeholder or a 403
The token is sent over unencrypted HTTPProtectedNever injected over cleartext
A spoofed Host header redirects an allowed secretProtectedPolicy and delivery use the CONNECT target
The token is placed in a request bodyProtectedJSON, form and text bodies up to 1 MiB get the same host checks; others carry only the placeholder
The agent reads your key file or the CA keyProtectedAgent sandbox; not with --sandbox off or where no sandbox is available (RabbitLock warns)
The agent edits the policy or forges receiptsProtectedRead-only inside the sandbox
The agent reads the broker's environment (RABBITLOCK_SEED_HEX, RABBITLOCK_PASSPHRASE)ProtectedThe sandbox hides other processes when key material comes from the environment
Another program running as you copies ~/.rabbitlock (identity or CA key)Protected, if you opt inrabbitlock key protect encrypts the identity with a passphrase, and the CA key is encrypted under the identity. Without a passphrase, file permissions don't stop programs running as you
A sensitive key is used without anyone knowingProtectedapproval per secret; every use is receipted
The encrypted secrets file is tampered withProtectedIntegrity is checked on every read; the run stops
The machine has no usable sandboxYour partInstall bubblewrap on Linux; use --sandbox on to refuse
Tokens are broader than the job needsYour partUse narrowly scoped tokens
The agent misuses a token on an allowed hostNot coveredRabbitLock controls where a token goes, not what it does there
An allowed API echoes the token in its responseNot covered yetResponse scrubbing is planned

Every Protected row is covered by automated tests in packages/cli/test. They run on macOS and Linux in CI.

Keys on your machine

FileSensitivity
~/.rabbitlock/identityDecrypts your secrets. Owner-only; denied to the agent; optionally passphrase-encrypted (rabbitlock key protect).
~/.rabbitlock/projects/*/secrets.sops.json, receiptsEncrypted secrets, and records of use without values. Owner-only.
~/.rabbitlock/ca/rabbitlock-ca.keyCan impersonate websites to programs that trust the CA. Encrypted with a key derived from your identity, so it has the same protection as your identity; owner-only; denied to the agent.
~/.rabbitlock/ca/rabbitlock-ca.pem, bundle.pemPublic; tools read them to verify TLS.

What leaves your machine

The CLI sends no telemetry and nothing to RabbitLock. Its only outbound traffic is your agent's own requests, forwarded to their destinations.

Reporting a vulnerability

Email security@rabbitlock.com. Please don't open a public issue for security problems. We aim to acknowledge reports within 3 business days.

On this page