AiiB

technology / security

Security design

Starting from keeping data on the device, AiiB protects on-device traffic and secrets. For data handling as a whole, see Environment and security.

trust boundary

Trust boundary

on device
Documents, database, API keys, local models
off device
API traffic to the AI provider you choose, and the sync folder you choose
our servers
Document data is not sent

loopback

Loopback defenses

The sidecar listens on loopback, and every request is checked at the entrance on the assumption that another site open in a browser could reach it.

Host
Anything other than loopback is rejected (DNS rebinding defense)
Origin
Browser requests from anywhere but the app are rejected
mcp auth
A wrong token gets 401. Connections with no token are read-only

secrets

Secrets

API key
macOS: Keychain / Windows: Credential Manager
key exposure
API keys are not given to the interface; the Rust relay attaches them when sending
MCP token
Stored in a file readable only by the user. Not served over HTTP

application

Application defenses

  • Content Security Policy

    Limits what the interface can load and connect to.

  • Sandbox

    The Mac App Store edition runs in the sandbox and accesses only folders the user chooses.