Security

Learn about Wexio's security architecture, encryption, authentication, data protection and abuse protection that keep your data safe.

This page gives an overview of how Wexio protects your data: encryption, access control, abuse protection and data retention.

Encryption

Multi-Layered Encryption

All sensitive data in Wexio is encrypted using AES-256-GCM, the industry-standard encryption algorithm. The platform uses a per-organisation, per-context key derivation system to ensure maximum security isolation.

Key derivation follows RFC 5869 (HKDF) with SHA-512, meaning each organisation gets unique encryption keys derived from a master secret. This ensures that even if one key were compromised, other organisations and contexts remain protected.

Encryption Contexts

Different types of sensitive data are encrypted with separate, context-specific keys. See Integrations for connecting channels and AI Settings for AI provider configuration.

ContextWhat's Encrypted
AI IntegrationsOpenAI, Anthropic API keys
TelegramBot tokens
ViberBot tokens
WebhooksWebhook secrets and signatures
System AISystem-level AI configuration
AuthenticationAuthentication tokens

Each encryption operation includes Additional Authenticated Data (AAD) binding the ciphertext to its organisation and context, preventing context confusion attacks where encrypted data could be moved between organisations.

Data in Transit

All data transmitted between your browser and Wexio servers is protected by:

  • TLS 1.2 and 1.3. Older versions are refused.
  • HSTS. api.wexio.io sends Strict-Transport-Security: max-age=31536000; includeSubDomains. app.wexio.io sends max-age=63072000.

WebSocket connections (used for real-time chat updates) are also encrypted via WSS (WebSocket Secure).

Infrastructure

The API servers run in AWS eu-west-1 (Ireland).

Network Security

CORS Policy

Wexio enforces a strict Cross-Origin Resource Sharing (CORS) policy. Only requests from trusted *.wexio.io origins and authorised local development servers are accepted - all other origins are rejected.

Security Headers

The web app and the API set these security headers:

HeaderPurpose
X-Frame-Options: DENYSet by the web app (app.wexio.io). Prevents clickjacking attacks
X-Frame-Options: SAMEORIGINSet by the API (api.wexio.io). Allows framing only from the same origin
X-Content-Type-Options: nosniffPrevents MIME-type confusion attacks
Cross-Origin-Resource-Policy: cross-originAllows cross-origin API calls

WebSocket connections use WSS (encrypted WebSocket) with the same JWT authentication as HTTP requests, preventing unauthenticated real-time connections.

Data Isolation & Multi-Tenancy

All organisations share a common platform by default, with strict logical isolation at the database level. For customers with advanced compliance requirements, Pro and Enterprise plans offer the option to provision a completely dedicated MongoDB database and Redis instance for full physical data separation.

  • Tenant-scoped queries. A middleware layer automatically injects the authenticated organisation ID into every database operation, preventing cross-tenant data leakage even in the event of application-level bugs.
  • Dedicated database option. Organisations on Pro and Enterprise plans can migrate to a physically isolated MongoDB instance and/or Redis, with full data migration or fresh-start modes.
  • Environment separation. Production, staging, and development environments are completely isolated. Testing never uses production data.
  • Organisation deletion cascade. When an organisation is removed, all associated data (messages, media, integrations, flows, contacts) is permanently deleted across all storage layers.

Authentication & Authorization

Authentication Methods

Wexio supports several sign-in methods. Passwords are stored only as salted argon2id hashes. Other methods use OAuth 2.0 providers, passkeys, or enterprise SSO. See Sign In for how each method works and Account Security to set them up.

MethodDescription
Email and passwordSign up, verify your email with a 6-digit code, and sign in. A forgotten password is reset with an emailed code. See Sign Up and Forgot Password
OAuth 2.0Continue with Google, Microsoft, GitHub or Facebook
Two-Factor Authentication (2FA)TOTP-based 30-second codes with 10 one-time recovery codes. Five wrong codes in a row lock sign-in for 15 minutes. A code cannot be used twice. See Two-Factor Authentication
Passkeys / WebAuthnHardware security key and biometric authentication via the WebAuthn standard, providing phishing-resistant credentials. See Passkeys
Enterprise SSO (SAML 2.0)Centralised access management through your own identity provider

Sessions

Every sign-in creates a database-backed session that lasts 30 days. Each session is tracked with its device and can be revoked on its own, or all at once with Sign out other devices. An account keeps at most 10 sessions. The sign-up, sign-in and password-reset forms are protected by an invisible Google reCAPTCHA check and by per-IP and per-email rate limits. See Account Security.

Role-Based Access Control (RBAC)

Every user in an organisation is assigned one of four roles: Owner, Admin, Editor (Can edit in the app) or Agent (Can view in the app). See Team Settings for what each role can do and how to manage roles.

Organisation Isolation

Every database query is automatically scoped to your organisation - users can never access data from other organisations, ensuring complete data isolation. Every GraphQL resolver is protected by layered guards: JWT authentication, organisation access, chat-level access, role verification, and plan usage limits.

Enterprise SSO (SAML 2.0)

Enterprise organisations can authenticate users through their own Identity Provider using SAML 2.0. See Security Settings for SSO setup.

FeatureDescription
Supported IdPsOkta, Azure AD (Entra ID), OneLogin, Google Workspace, Auth0, PingFederate
Domain mappingAutomatic IdP detection based on the user's email domain
SSO enforcementPeople on your verified email domains must sign in through the configured IdP. Passwords, social sign-in and passkeys are refused for them
Auto-provisioningNew users automatically created on first SSO login with a configurable default role
Account linkingExisting Wexio accounts of organisation members can be linked to the organisation's SSO provider

Input Validation & Injection Prevention

GraphQL Security

All API inputs are validated through multiple layers:

  • Schema-level validation. Type checking enforced by the GraphQL schema
  • DTO validation. All input fields validated with strict rules (length limits, format checks, type constraints)
  • Query depth limiting. Maximum 12 levels of nesting to prevent recursive query abuse
  • Introspection disabled in production. API schema not exposed to potential attackers

Injection Prevention

  • NoSQL injection. All user-provided search patterns are escaped before use; no dangerous operators are exposed
  • XSS protection. HTML content is filtered through strict allowlists, permitting only safe formatting tags
  • Input length limits. All text inputs have maximum length constraints

Webhook Verification

All incoming webhooks from third-party providers are cryptographically verified. See Integrations for channel setup.

ProviderVerification Method
StripeSignature verification with webhook secret
WhatsAppX-Hub-Signature-256 header, HMAC-SHA256 with the Meta app secret
InstagramX-Hub-Signature-256 header, HMAC-SHA256 with the Meta app secret
Viberx-viber-content-signature header, HMAC-SHA256 of the raw body keyed with the bot auth token, compared in constant time
TelegramNot applicable. Wexio fetches updates from Telegram by long polling, so there is no inbound webhook

Rate Limiting & Spam Protection

Wexio uses layered rate limiting and spam protection to protect the platform and your end users from abuse. See Spam Protection Settings for configuration.

Request Limits

LimitScopeValue
Request bodyPer request10 MB JSON
File uploadPer request10 MB per file, 10 files

Inbound Spam Protection

When end users send excessive messages to your bots, Wexio automatically:

  1. Throttles. Silently skips processing for rapid-fire messages while still saving them to chat history.
  2. Warns. Sends a system message asking the user to slow down. This happens at the 2nd violation.
  3. Blocks. Blocks the user at the 3rd violation, based on your block mode.

A violation is more than 10 messages in 5 seconds, or more than 30 messages in 60 seconds.

Messages from blocked users are still saved to the database for audit purposes - only automated processing (flows, AI) is skipped. Operators can always view the messages.

Message Deduplication

Wexio uses a unique "latest wins" deduplication system. When a user rapidly sends multiple identical messages (e.g., spamming /start), only the last message is processed - preventing duplicate flow executions and bot responses.

Outbound Spam Protection

The platform protects your end users from accidental message flooding caused by misconfigured flows or infinite loops. These limits are fixed in code.

Per-Chat Protection

  • Step limit. A flow run stops after 100 steps, and a note appears in the chat.
  • Rate limiting. If 30 messages are sent to one chat within 10 seconds, outbound is paused for that chat.

Organisation-Level Escalation

The organisation's outbound messaging is blocked when either of these happens:

  • 3 chats are paused within 60 seconds.
  • One chat is resumed manually 3 times within 10 minutes.

While the block is active:

  • All active flows are cancelled
  • Inbound messages continue to arrive normally (no data loss)
  • Operators can still view chats and read messages
  • All online org members receive a real-time WebSocket notification
  • Outbound resumes automatically when the block expires, unless the block is permanent

Block durations escalate with each repeat: 10 minutes, 30 minutes, 24 hours, then permanent until someone unblocks the organisation manually. All block events are saved for audit.

Spam Protection Settings

These settings apply to inbound blocks only:

SettingOptionsDefault
Block modeThrottle only / Temporary block / Permanent blockTemporary block
Block duration1–1440 minutes5 minutes

The block duration does not change the outbound escalation above. Rate limit thresholds and outbound limits are fixed and not configurable.

Flow Limits

LimitValue
Steps in one flow run100
Wait cardUp to 30 minutes
Wait TimeoutUp to 30 days
AI Agent cardUp to 50 turns per run

API Rate Limits

Org API keys are limited with token buckets. The values below may change.

BucketScopeLimit
ReadPer key, per target organisation10 per second, burst 30
WritePer key, per target organisation60 per minute
Expensive (search and filtered lists)Per key, per target organisation2 per second, burst 10
WritesPer organisation, across all keys300 per minute
Failed authenticationPer IP and per key20 per minute

When a request is rate limited, the API returns 429 Too Many Requests with a Retry-After header. The API sends no X-RateLimit headers.

File Upload Security

All file uploads go through multiple security checks:

ProtectionDescription
Size limits10 MB per file, 10 files per request
Filename sanitizationFilenames are sanitized with UUID prefixes and special character replacement
Type validationFile types are validated against an allowlist
Magic bytes validationActual file content is verified to match the claimed MIME type - prevents disguised executables
Storage isolationFiles are stored in organisation-scoped folders
Signed URLsDownloads use presigned URLs with automatic expiry

Data Retention & GDPR Compliance

Automatic Data Retention

Wexio implements configurable data retention policies that automatically clean up old messages based on your plan and settings. A daily cleanup job runs at 3:00 AM to delete messages older than the configured period. See Database Settings for retention configuration.

Retention Limits by Plan

Retention limits depend on your plan tier:

PlanDefault RetentionMaximum RetentionConfigurable
Free7 days7 daysNo
Standard30 days30 daysYes (7 or 30 days)
Pro90 days90 daysYes (7, 30, or 90 days)
Enterprise180 daysUnlimitedYes

Retention Settings

Organisations on eligible plans can configure:

  • Message retention period. How long messages are kept before automatic deletion
  • Media retention. Whether to follow message retention or set a separate period
  • Delete media with messages. Automatically remove associated media files when messages are deleted
  • Preserve starred chats. Keep messages in starred chats regardless of retention policy

Data Deletion

  • Retention cleanup. Messages older than your retention period are deleted automatically.
  • Organisation deletion. When an organisation is removed, all associated data is permanently deleted.

See Message Settings for how deletion works in the app.

Security Layers Overview

Wexio's security is built in five layers, each providing defence in depth:

LayerComponents
1. NetworkTLS 1.2 and 1.3, CORS policy, rate limiting, security headers
2. AuthenticationJWT tokens, refresh token rotation, OAuth2, 2FA, passkeys, SSO/SAML, session management
3. AuthorizationRole-based access (RBAC), organisation isolation, plan-based feature gating, resource-level permissions
4. Data EncryptionPer-org HKDF-derived keys, AES-256-GCM for sensitive fields, context separation, TLS in transit
5. Data LifecycleAutomatic retention cleanup, organisation deletion cascade, audit logging

Security Contact

To report a vulnerability, raise a security concern, or request security documentation, contact security@wexio.io.

Was this page helpful?

On this page