| Version | Status | Notes |
|---|---|---|
2.0.x |
Supported | Production institutional release (main branch & fasttrade-smoky.vercel.app) |
< 2.0 |
Unsupported | Superseded by v2.0 multi-agent & ConTree sandbox architecture |
FastTrade enforces defense-in-depth security across authentication, code execution, data persistence, and transport:
- Credential Storage (
services/auth_service.py): Passwords are hashed viaPBKDF2-HMAC-SHA256(100,000iterations) with 16-byte CSPRNG salts and verified via constant-timesecrets.compare_digest. - Session Integrity (
services/auth_service.py): Stateless bearer tokens are cryptographically signed withHMAC-SHA256(FASTTRADE_SECRET_KEY) and enforce strict expiration claims. - Sandboxed Strategy Execution (
services/nebius_sandbox_service.py): Synthesized Python execution policies and custom research snippets pass Pythonaststatic safety checks and execute inside isolated remote Nebius ConTree Linux Micro-VMs (python:3.12-slim) rather than on the host API process. - Pickle-Free ML Inference (
models/): Production microstructure classifiers and GRU forecasters load pure-NumPy.npzweight tensors, avoiding unsafepickledeserialization. - OWASP HTTP Headers & XSS Protection (
api/main.py,services/email_service.py): Every HTTP response carriesX-Content-Type-Options: nosniff,X-Frame-Options: DENY,Referrer-Policy, andPermissions-Policy; all outbound HTML committee memos applyhtml.escape(..., quote=True). - Secret Hygiene:
.envfiles, API tokens (NEBIUS_API_KEY,LANGSMITH_API_KEY,TAVILY_API_KEY,RESEND_API_KEY), and local.dbfiles are strictly excluded via.gitignoreand.vercelignore.
See docs/TECHNICAL_ARCHITECTURE_AND_SECURITY_AUDIT.md for the complete security audit matrix.
Please do not open a public GitHub issue for security vulnerabilities. Report suspected security issues privately to:
- Lead Architect: Ritesh Kochar (
ensure01@gmail.com)
Include reproduction steps, affected endpoints/modules, and potential impact. You will receive an acknowledgment within 48 hours.