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.
| Context | What's Encrypted |
|---|---|
| AI Integrations | OpenAI, Anthropic API keys |
| Telegram | Bot tokens |
| Viber | Bot tokens |
| Webhooks | Webhook secrets and signatures |
| System AI | System-level AI configuration |
| Authentication | Authentication 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.iosendsStrict-Transport-Security: max-age=31536000; includeSubDomains.app.wexio.iosendsmax-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:
| Header | Purpose |
|---|---|
X-Frame-Options: DENY | Set by the web app (app.wexio.io). Prevents clickjacking attacks |
X-Frame-Options: SAMEORIGIN | Set by the API (api.wexio.io). Allows framing only from the same origin |
X-Content-Type-Options: nosniff | Prevents MIME-type confusion attacks |
Cross-Origin-Resource-Policy: cross-origin | Allows 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.
| Method | Description |
|---|---|
| Email and password | Sign 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.0 | Continue 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 / WebAuthn | Hardware 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.
| Feature | Description |
|---|---|
| Supported IdPs | Okta, Azure AD (Entra ID), OneLogin, Google Workspace, Auth0, PingFederate |
| Domain mapping | Automatic IdP detection based on the user's email domain |
| SSO enforcement | People on your verified email domains must sign in through the configured IdP. Passwords, social sign-in and passkeys are refused for them |
| Auto-provisioning | New users automatically created on first SSO login with a configurable default role |
| Account linking | Existing 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.
| Provider | Verification Method |
|---|---|
| Stripe | Signature verification with webhook secret |
X-Hub-Signature-256 header, HMAC-SHA256 with the Meta app secret | |
X-Hub-Signature-256 header, HMAC-SHA256 with the Meta app secret | |
| Viber | x-viber-content-signature header, HMAC-SHA256 of the raw body keyed with the bot auth token, compared in constant time |
| Telegram | Not 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
| Limit | Scope | Value |
|---|---|---|
| Request body | Per request | 10 MB JSON |
| File upload | Per request | 10 MB per file, 10 files |
Inbound Spam Protection
When end users send excessive messages to your bots, Wexio automatically:
- Throttles. Silently skips processing for rapid-fire messages while still saving them to chat history.
- Warns. Sends a system message asking the user to slow down. This happens at the 2nd violation.
- 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:
| Setting | Options | Default |
|---|---|---|
| Block mode | Throttle only / Temporary block / Permanent block | Temporary block |
| Block duration | 1–1440 minutes | 5 minutes |
The block duration does not change the outbound escalation above. Rate limit thresholds and outbound limits are fixed and not configurable.
Flow Limits
| Limit | Value |
|---|---|
| Steps in one flow run | 100 |
| Wait card | Up to 30 minutes |
| Wait Timeout | Up to 30 days |
| AI Agent card | Up to 50 turns per run |
API Rate Limits
Org API keys are limited with token buckets. The values below may change.
| Bucket | Scope | Limit |
|---|---|---|
| Read | Per key, per target organisation | 10 per second, burst 30 |
| Write | Per key, per target organisation | 60 per minute |
| Expensive (search and filtered lists) | Per key, per target organisation | 2 per second, burst 10 |
| Writes | Per organisation, across all keys | 300 per minute |
| Failed authentication | Per IP and per key | 20 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:
| Protection | Description |
|---|---|
| Size limits | 10 MB per file, 10 files per request |
| Filename sanitization | Filenames are sanitized with UUID prefixes and special character replacement |
| Type validation | File types are validated against an allowlist |
| Magic bytes validation | Actual file content is verified to match the claimed MIME type - prevents disguised executables |
| Storage isolation | Files are stored in organisation-scoped folders |
| Signed URLs | Downloads 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:
| Plan | Default Retention | Maximum Retention | Configurable |
|---|---|---|---|
| Free | 7 days | 7 days | No |
| Standard | 30 days | 30 days | Yes (7 or 30 days) |
| Pro | 90 days | 90 days | Yes (7, 30, or 90 days) |
| Enterprise | 180 days | Unlimited | Yes |
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:
| Layer | Components |
|---|---|
| 1. Network | TLS 1.2 and 1.3, CORS policy, rate limiting, security headers |
| 2. Authentication | JWT tokens, refresh token rotation, OAuth2, 2FA, passkeys, SSO/SAML, session management |
| 3. Authorization | Role-based access (RBAC), organisation isolation, plan-based feature gating, resource-level permissions |
| 4. Data Encryption | Per-org HKDF-derived keys, AES-256-GCM for sensitive fields, context separation, TLS in transit |
| 5. Data Lifecycle | Automatic 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.
Related
- Account Security: set up 2FA, passkeys and SSO
- Team Settings: manage roles
- Spam Protection Settings: configure inbound protection
- Database Settings: set message retention
- Billing: plans and their limits