# AutoKeep — Privacy Policy & Chrome Web Store Disclosures

**Last updated:** 2026-11-23

## 1. Zero-Knowledge Data Collection Policy

AutoKeep collects **no personal data on our servers**. We operate no backend servers, no analytics SDKs, no telemetry, no tracking pixels, and no user accounts. All data remains strictly on your device unless you explicitly configure an optional encrypted cloud backup target (GitHub Private Gist or your own WebDAV server).

## 2. Local Encryption & Storage Architecture

- **Zero-Knowledge AES-256-GCM**: Every clipboard snippet, text template, screenshot capture, cookie snapshot, and category name is encrypted locally **before** it is written to IndexedDB using **AES-256-GCM** with unique 96-bit initialization vectors (IVs) and per-record Additional Authenticated Data (AAD).
- **PBKDF2-SHA256 Key Derivation**: Your vault key is wrapped using a Key Encryption Key (KEK) derived from your master password, 12-word BIP-39 Recovery Kit, numeric PIN, or WebAuthn Passkey via **PBKDF2-SHA256 (600,000 iterations)** with independent 128-bit cryptographic salts.
- **Ephemeral Session Key**: The unwrapped vault key lives exclusively in volatile browser memory (`chrome.storage.session`) while the vault is unlocked and is purged immediately upon manual lock, idle auto-lock timeout, or browser exit.
- **Sensitive Data & Password Field Protection**: Copy events inside `<input type="password">` fields and Incognito windows are strictly ignored. Optional Sensitive Data Shield automatically masks or skips 6-digit OTPs, API keys/tokens, and Luhn-validated credit card numbers.

## 3. Optional Zero-Knowledge Cloud Sync

- Sync is **disabled by default**.
- If you explicitly enable Cloud Sync in Settings, AutoKeep uploads only the **AES-256-GCM encrypted backup bundle** (`autokeep-vault.json`) directly from your browser to:
  - **GitHub Private Gist** (`https://api.github.com/gists`) using your own Personal Access Token, or
  - **WebDAV** (e.g., Nextcloud, ownCloud, NAS) at the URL you specify.
- Sync credentials (GitHub token, WebDAV password, or optional cloud sync password) are encrypted at rest with your vault key in `chrome.storage.local` and are unreadable while the vault is locked.
- Neither GitHub, your WebDAV provider, nor the AutoKeep developers can decrypt your vault contents.

## 4. Chrome Web Store Permission Justifications

| Permission | Single-Purpose Justification |
| :--- | :--- |
| `storage` | Stores the active session key in volatile `chrome.storage.session` while unlocked and stores AES-256-GCM encrypted sync credentials in `chrome.storage.local`. |
| `alarms` | Runs periodic background checks for idle auto-lock (`autokeep-idle`), scheduled clipboard clearing (`autokeep-clipboard-clear`), history retention cleanup (`autokeep-retention`), and optional periodic encrypted sync (`autokeep-sync`). |
| `clipboardRead` | Reads the current clipboard text only when the user invokes the `save_clipboard` keyboard shortcut command (`AutoKeep: Save Clipboard`). |
| `clipboardWrite` | Copies selected vault snippets, expanded templates, or captured screenshots to the system clipboard, and clears the clipboard after the user-configured auto-clear timeout. |
| `contextMenus` | Adds the `AutoKeep` right-click context menu items (Save selection, Pin to category, Paste from vault, Capture screenshot / selection). |
| `offscreen` | Creates a short-lived offscreen document (`src/offscreen.html`) required by Manifest V3 Service Workers to perform clipboard read/write/clear operations and PNG image cropping. |
| `downloads` | Saves user-initiated vault backups (`.json`, `.md`, `.csv`, Espanso `.yml`, BIP-39 Recovery Kits) and screen captures (`Screenshots/AutoKeep_*.png`) to the user's local disk. |
| `activeTab` | Captures the visible tab area when the user triggers a screenshot (`chrome.tabs.captureVisibleTab`) and identifies the active tab URL/domain for user-initiated actions. |
| `cookies` | Powers the built-in **Cookie Vault & Verifier**, allowing developers and power users to inspect cookies for the active site, encrypt cookie snapshots into their local AES-256-GCM vault, verify cookie flags (`Secure`, `HttpOnly`, `SameSite`), and restore saved cookie snapshots back to the browser on demand. Cookies are never read or transmitted automatically in the background. |
| `host_permissions` (`<all_urls>`) | Allows the in-page Floating Quick Bar (`src/quick.html`), text shortcut expansion (`src/actions.js`), optional copy auto-capture (`src/capture.js`), area screen capture, and user-configured WebDAV/Gist encrypted sync to function across the websites the user visits. |

## 5. Data Deletion

- Clicking **"Delete all data"** in Settings (`src/options.html`) immediately wipes all local IndexedDB stores (`vault`, `entries`, `categories`, `settings`), clears `chrome.storage.local`, and purges `chrome.storage.session`.
- Uninstalling the extension permanently removes all local data from the browser.
