Skip to content

Security: kaleidoswap/kaleido-sdk

SECURITY.md

Security Policy

Reporting a Vulnerability

We take the security of the Kaleidoswap SDK seriously. If you have discovered a security vulnerability, please report it to us responsibly.

How to Report

Please DO NOT open a public issue for security vulnerabilities. Instead, please report security issues by emailing:

security@kaleidoswap.com

What to Include

When reporting a vulnerability, please include:

  • A description of the vulnerability
  • Steps to reproduce the issue
  • Potential impact of the vulnerability
  • Any suggested fixes (if applicable)
  • Your contact information for follow-up questions

Response Timeline

  • Initial Response: We aim to respond to security reports within 48 hours
  • Status Updates: We will provide status updates every 7 days until the issue is resolved
  • Fix Timeline: We will work to fix confirmed vulnerabilities as quickly as possible, typically within 30 days

Disclosure Policy

  • Please give us reasonable time to investigate and fix the issue before making it public
  • We will credit researchers who report vulnerabilities responsibly (unless you prefer to remain anonymous)
  • Once a fix is released, we will publish a security advisory with details about the vulnerability and the fix

Supported Versions

We currently provide security updates for the following versions:

Version Supported
0.2.x
0.1.x

Security Best Practices

When using the Kaleidoswap SDK, please follow these security best practices:

API Keys and Secrets

  • Never commit API keys, private keys, or secrets to version control
  • Use environment variables or secure secret management solutions
  • Rotate API keys regularly
  • Use different API keys for development, staging, and production environments

Network Security

  • Always use HTTPS for API connections in production
  • Validate SSL certificates
  • Use WebSocket Secure (WSS) for WebSocket connections
  • Implement proper timeout and retry mechanisms

Input Validation

  • Always validate and sanitize user inputs
  • Verify asset IDs and amounts before executing swaps
  • Implement proper error handling for all API calls
  • Use the SDK's built-in validation methods

Rate Limiting

  • Respect API rate limits
  • Implement exponential backoff for retries
  • Cache responses when appropriate to reduce API calls
  • Monitor your API usage

Dependencies

  • Keep the SDK and its dependencies up to date
  • Regularly check for security advisories
  • Use npm audit (TypeScript) or safety check (Python) to scan for vulnerabilities
  • Enable dependabot or similar tools for automated dependency updates

Logging

  • Never log sensitive information (API keys, private keys, payment data)
  • Sanitize logs before sending to external services
  • Implement proper log rotation and retention policies

Production Deployment

  • Use the latest stable version of the SDK
  • Enable security headers and CORS properly
  • Implement rate limiting on your application layer
  • Use a Web Application Firewall (WAF) for additional protection
  • Monitor for suspicious activities and failed authentication attempts

Known Security Considerations

WebSocket Connections

  • WebSocket connections should always use WSS (WebSocket Secure) in production
  • Implement proper authentication and authorization for WebSocket connections
  • Monitor WebSocket connections for abnormal behavior

Atomic Swaps

  • Always verify swap parameters before execution
  • Implement proper timeout mechanisms for swap operations
  • Monitor swap status and handle failures appropriately
  • Keep backup of swap strings and payment hashes for recovery

RGB Assets

  • Verify RGB asset IDs before transactions
  • Implement proper asset validation
  • Use checksums and signatures when available

Compliance

The Kaleidoswap SDK is designed to be compliant with:

  • SOC 2 Type II standards

Security Updates

Security updates and advisories will be published:

  1. In the CHANGELOG.md file
  2. As GitHub Security Advisories
  3. Via email to registered users (if you've opted in)

Contact

For security-related questions or concerns, please contact:


Last updated: 2024-11-20

There aren't any published security advisories