🔒 Security Documentation

How SwiftSwap protects your assets and data

Non-Custodial Architecture

SwiftSwap is a non-custodial exchange. We never hold your funds. The swap process works as follows:

  1. You provide your destination wallet address
  2. We provide a deposit address (generated by our exchange partners)
  3. You send funds to the deposit address
  4. Funds are automatically swapped and sent to your address
  5. We never control your private keys

This means even if SwiftSwap servers are compromised, your funds in transit are protected by our exchange partners' security.

Technical Security Measures

🔐

TLS 1.3 Encryption

All connections use TLS 1.2+ with modern cipher suites. HSTS preload enforced.

🛡️

DDoS Protection

Multi-layer rate limiting: nginx (20 req/s) + Express (50 req/5min). Automatic IP blacklisting.

🔑

JWT Authentication

Stateless JWT tokens with short expiry. Secret rotation support. Admin tokens use separate secret.

📋

Security Headers

CSP, HSTS, X-Frame-Options, X-Content-Type, Referrer-Policy, Permissions-Policy all enforced.

🚫

Injection Protection

SQL injection patterns blocked. XSS filtering. Input sanitization on all API inputs.

🔏

CSRF Protection

CSRF tokens on state-changing operations. SameSite cookie policy enforced.

🔒

2FA Support

TOTP-based two-factor authentication (Google Authenticator compatible). Recovery codes provided.

📊

Audit Logging

All security events logged with IP, timestamp, and event type. Real-time alerts for critical events.

Data Protection

Data TypeEncryptionStorage
Passwordsbcrypt (rounds: 12)Database (hash only)
API Keysbcrypt hashDatabase (prefix + hash)
Session TokensJWT signedClient-side only
Wallet AddressesTLS in transitDatabase (encrypted at rest)
2FA SecretsAES-256Database (encrypted)

Infrastructure Security

UFW firewall with minimal exposed ports (22, 80, 443)

CIS Ubuntu Level 1 hardening applied

File integrity monitoring on critical system files

Automatic security patches via unattended-upgrades

Daily database backups with encryption

24/7 uptime monitoring with Telegram alerts

Responsible Disclosure

Found a security issue? We have a Bug Bounty program with rewards up to $15,000.

Contact: security@swiftswap.net | security.txt

View Bug Bounty Program →