Security

The agent threat model

Updated October 25, 2026

The main risk with AI agents is not a malicious model; it is a helpful agent holding a secret in a place where it can leak. BotPassword removes the secret from the agent entirely, keeps approval outside the chat, and limits every grant by project, action and time.

Threats and how the design responds

Threat Example Design response
Secret in the transcript The agent prints a key while debugging, or you paste it into the chat No intent returns a value; a disclosing command’s output is redacted for known values and simple encodings, and a known value on a sealed path is a refusal that revokes the grant
Secret in files .env in the project, a token in a CLI config file run_with injects at run time; cli_login points git, Docker, the AWS CLI and kubectl at a credential helper so the token is not written to the tool’s config (the tool still holds it while it runs)
Prompt injection A README or web page tells the agent to send your key somewhere By default the agent is not handed the key. http_request checks destinations against the hosts each credential may be sent to
Over-broad access One token that can do everything, forever Grants name the client, project, credentials, intents and expiry; rotate (partly built) and change_password (planned, not built yet) are separate opt-ins
Self-approval The agent grants itself more access The agent endpoint has no code path to grant creation; approvals happen only in BotPassword’s own app
Stale access after offboarding A former employee’s agent still deploys Company credentials need a lease of at most 60 seconds, re-checked against membership on renewal
Impersonation Another process pretends to be Claude Code Each installation is enrolled with its own key; the daemon checks code signature, path and working directory. This is attribution, not isolation
Lost rotation A crash mid-rotation leaves no working key Rotation persists before every external call, stores the new key before anything can lose it, and verifies before promoting

What remains your responsibility

  • Grant narrowly. An agent can misuse anything it is allowed to do. Prefer project-scoped, short grants.
  • Watch the child process. run_with gives the secret to the process it runs. Run only commands you would run yourself.
  • Keep your device clean. Malware running as you can do what you can do.

Give agents access. Keep the keys.

BotPassword is in early access. Request an invite and we'll email you when your spot opens.