# Security model

> How Specimo isolates agent-generated prototypes, controls access and protects your data.

A short technical summary. The plain-language version is on the [Security page](/security).

## Agent-generated code is isolated

- Prototypes render only on a separate domain, never on the app's. With per-project origins each project has its own subdomain.
- Every prototype runs in an opaque, sandboxed origin (iframe `sandbox` without `allow-same-origin`, plus the CSP `sandbox` directive on the document itself): no cookies, storage, pop-ups or navigation.
- No network egress: `connect-src`, `form-action`, frames and workers are all `'none'`, and a Permissions-Policy denies camera, microphone, location, payments, USB, clipboard and more.
- Preview URLs are HMAC-signed, project-bound and expire after an hour.
- Uploads that are executables or don't match their type are refused; suspicious content is flagged. Share-link viewers can report abuse.

## Access control

- Organizations have owners, admins, members and guests; projects have owners, editors, viewers (and custom roles on Business). Every request checks the effective role; missing access returns 404, insufficient role 403.
- Agent tokens are bound to one project, hashed at rest and re-checked against their owner's current role on every request. Agents can't approve designs.
- Security-relevant actions are recorded in an append-only, hash-chained audit log.

## Your data

- TLS everywhere with HSTS; strict security headers on the app.
- Rate limits on sign-in, sharing, the API and MCP.
- Export your data and delete your account at any time.

## Reporting a vulnerability

Email the address on the [Security page](/security#disclosure) or in [/.well-known/security.txt](/.well-known/security.txt). We reply within two working days.
