โ† Back to HomeSecurity

Built Security-First
From the Ground Up.

Trading credentials and API tokens must never be exposed in the frontend. N1God AI enforces this principle at every layer of the architecture.

TLS 1.3HSTS ActiveZero Frontend SecretsFull Audit TrailRBAC Enforced
๐Ÿ”
Encrypted Credentials

Trading account credentials and API keys are stored exclusively on the server. They are never transmitted to the browser or logged in any accessible location.

  • โœ“Server-side credential storage
  • โœ“No credentials in browser storage
  • โœ“Encrypted at rest
  • โœ“Access via service accounts only
๐Ÿ›ก๏ธ
Backend-Only Secrets

All sensitive tokens โ€” MT5 bridge, Telegram bot, broker API โ€” are loaded from environment variables on the server process only.

  • โœ“Environment variable injection
  • โœ“Secrets never exposed to frontend
  • โœ“Separate .env per environment
  • โœ“No secrets in version control
๐Ÿ‘ค
Role-Based Access Control

Three access tiers: Admin (full system control), Operator (execution and monitoring), and Investor (read-only account view).

  • โœ“Admin, Operator, Investor roles
  • โœ“Per-route access enforcement
  • โœ“Token-based session management
  • โœ“Session expiry and revocation
๐Ÿ“
Full Audit Trail

Every trade, login attempt, configuration change, and risk gate decision is recorded with a timestamp and source.

  • โœ“Trade lifecycle logging
  • โœ“Authentication event logging
  • โœ“Risk decision records
  • โœ“Immutable timestamped entries
๐Ÿ”’
HTTPS Everywhere

TLS 1.3 enforced across all endpoints. HTTP is permanently redirected with a 308 code. HSTS with includeSubDomains is active.

  • โœ“TLS 1.3 only
  • โœ“308 permanent HTTP redirect
  • โœ“HSTS with includeSubDomains
  • โœ“max-age=31536000 (1 year)
๐Ÿ–ฅ๏ธ
VPS Infrastructure Security

The production VPS runs with key-only SSH authentication, a firewall that restricts all non-essential ports, and continuous service health monitoring.

  • โœ“SSH key-only authentication
  • โœ“Firewall: 22, 80, 443 only
  • โœ“Root login restricted
  • โœ“Continuous health checks
Compliance

OWASP Top 10 Coverage

N1God AI is designed to address all ten categories in the OWASP Top 10 security risk list. Each known class of vulnerability is explicitly mitigated in the architecture.

Broken Access ControlRole-based access enforced on every route
Cryptographic FailuresTLS 1.3, encrypted credentials at rest
Injection AttacksInput validation, parameterized queries, no raw SQL
Insecure DesignSecurity-first architecture from day one
Security MisconfigurationHardened Nginx, minimal attack surface
Vulnerable ComponentsDependency audits on every deployment
Authentication FailuresToken-based auth with expiry and revocation
Data Integrity FailuresAudit logs and signed deployment artifacts
Security Logging GapsFull event logging across all services
SSRFInternal network access restricted to required services only