Wapliss

Security & Privacy

A verifiable technical summary of how Wapliss authenticates AI assistants, protects WhatsApp credentials, and stores account data.

This page describes only mechanisms verified directly in the Wapliss server codebase. Wapliss is not a Meta product and does not use the official WhatsApp Business API.

1. OAuth 2.1 with PKCE (S256)

MCP-compatible AI assistants connect through the OAuth 2.1 Authorization Code flow with mandatory PKCE:

  • PKCE S256 verification: Every authorization code exchange verifies that the code_verifier matches the code_challenge using SHA-256 and Base64URL encoding.
  • Short-lived, single-use codes: Authorization codes expire after 10 minutes, are stored as SHA-256 hashes in Firestore, and are consumed inside an atomic Firestore transaction to prevent replay.
  • Strict redirect_uri validation: Dynamic Client Registration (RFC 7591) accepts only HTTPS URLs, local loopback addresses (localhost / 127.0.0.1 / ::1), or Cursor’s explicit native callback URI.
  • Defined scopes: The authorization server exposes only the wapliss:mcp, whatsapp:read, and whatsapp:write scopes.

2. Refresh token rotation & reuse detection

OAuth tokens have bounded lifetimes and built-in replay protection:

  • Token lifetimes: Access tokens expire after 1 hour (3,600 seconds) and refresh tokens expire after 30 days.
  • Rotation with family revocation: When a client refreshes its session, the previous refresh token is revoked and a new token pair is issued in the same family. If a previously revoked refresh token is presented again, Wapliss detects reuse and revokes all tokens in that family.
  • Google Connected Apps (Gemini) exception: Clients registered with Google’s official redirect URIs (oauth-redirect*.googleusercontent.com) use a non-rotating refresh token with a sliding 30-day expiration per Google’s Persistent Linking requirement.

3. Confirmation before sending messages

The MCP server explicitly distinguishes read-only tools from message-sending actions:

  • MCP destructiveHint annotations: All 9 sending and forwarding tools (send_text_message, send_image, send_document, send_audio, send_video, send_location, send_contact, send_poll, and forward_messages) declare destructiveHint: true and readOnlyHint: false so assistants ask for confirmation before sending.
  • Read-only tools: All 7 read/status tools (get_account_status, get_chats, get_chat_history, get_message, get_last_incoming_messages, get_last_outgoing_messages, and get_group) declare readOnlyHint: true and destructiveHint: false.
  • Anti-spam server instructions: The MCP server instructions tell assistants to confirm ambiguous recipients or message content with the user and never send bulk or unsolicited messages.

4. Revocable access from your dashboard

You can revoke assistant or API access at any time:

  • OAuth grant revocation: From the Wapliss dashboard you can revoke any active assistant grant (revoking every token in that grant family), or via the RFC 7009 /oauth/revoke endpoint.
  • Personal API key revocation: Personal API keys (wp_live_ prefix), used by non-OAuth clients, are shown only once at creation and can be deleted immediately from Settings → API Keys.
  • Unlinking from WhatsApp: You can also disconnect the companion device directly inside WhatsApp → Linked devices on your phone.

5. What is encrypted or hashed, and how

  • WhatsApp session credentials at rest: When ENCRYPTION_KEY is configured, WhatsApp session files persisted to Firestore are encrypted with AES-256-GCM using a random 12-byte IV and GCM authentication tag (iv:authTag:encryptedData), with a 32-byte key derived via SHA-256.
  • OAuth tokens, auth codes, web sessions & API keys: Never stored in plaintext in the database — only their SHA-256 hashes are stored.
  • Account passwords: Hashed with bcrypt (bcryptjs).
  • Web session cookies: Issued with HttpOnly and Secure over HTTPS, plus origin validation on cookie-authenticated POST, PUT, and DELETE requests.

6. What data is stored and where

  • Google Cloud Firestore: Stores user accounts (email, name, bcrypt password hash or Google Sign-In profile), hashed web sessions, hashed OAuth codes and tokens, hashed API keys, WhatsApp instance metadata, chunked WhatsApp session credentials, and message audit/queue records (with textPreview truncated to 100 characters).
  • Private SQLite database & Google Cloud Storage backup: Synced WhatsApp chats, messages, contacts, LID mappings, sync state, and group metadata are stored in a private SQLite database (data/wa.db) on Wapliss’s Google Cloud server (us-west1), with compressed snapshots backed up to a private Google Cloud Storage bucket (replaced backups kept up to 7 days).
  • Voice notes and photos: Transcribed or described in text using Gemini on Google Cloud Vertex AI so assistants can read them. The resulting text is stored alongside the message and removed when you delete your history or account.
  • Payments via Stripe: Stripe processes all billing. Wapliss never stores credit or debit card numbers — only Stripe customer (cus_...) and subscription (sub_...) IDs.
  • Data deletion: Deleting an instance or closing your account purges the SQLite history (messages, chats, contacts, and groups) and removes the associated credentials and account records.

Related legal documents

Have a security question? Contact us at commerce@netdigitaltech.com.