OC
OceanRemote
Low-code IoT platform

🔒 OceanRemote Security Architecture

Enterprise-grade security for your IoT infrastructure

Last updated: June 2026
🛡️

Defense in Depth

Multiple layers of security protect your devices, data, and infrastructure from unauthorized access.

🔐

Zero Trust Architecture

Every request is authenticated, authorized, and encrypted. No implicit trust between components.

Secure by Default

Security features are enabled out-of-the-box with no configuration required from users.

🖥️ Server Security

HTTPS + HSTS Encryption

All traffic encrypted with TLS 1.3 + Let's Encrypt SSL. HTTP automatically redirects to HTTPS. HSTS headers force browsers to use secure connections.

DDoS Protection

Cloudflare proxy + Nginx rate limiting (20 req/sec for API, 5/min for login, 2/min for registration). Max 10 concurrent connections per IP.

Admin Panel Protection

Secret 43-character admin path (not /admin). Rate limited to 10 attempts per 15 minutes. Honeypot traps bots scanning common paths.

Security Headers

X-Frame-Options: DENY, X-Content-Type-Options: nosniff, Referrer-Policy: same-origin, CSRF protection enabled on all forms.

PostgreSQL Database

Separate database user, connection pooling, and health checks. Passwords hashed with PBKDF2-SHA256 (260,000 iterations).

Daily Backups

Automated daily backups ensure your data is safe and recoverable.

👤 Registration & User Security

Cloudflare Turnstile CAPTCHA

Non-intrusive bot detection on registration form. Blocks automated account creation.

Email Confirmation Required

New accounts are inactive until user clicks confirmation link. Prevents bot account activation.

Rate Limiting (6 attempts / 10 minutes)

Prevents mass registration attacks. Each IP address has limited registration attempts.

Two-Factor Authentication (2FA)

Optional TOTP (Google Authenticator) support for enhanced account security.

Secure Session Management

HTTP-only, Secure cookies. Sessions auto-refresh every 60 minutes. CSRF protection on all forms.

Login Rate Limiting (5 attempts / minute)

Prevents password brute force attacks. Excess attempts blocked with HTTP 429.

📟 Device Security (ESP32/ESP8266)

MQTT over TLS (Port 8883)

All device-to-cloud communication encrypted. Certificate validation enabled.

One-Time Registration Tokens

24-hour expiry. Deleted after first use. Prevents device cloning.

Permanent Device Tokens

Stored in NVS/Preferences (hashed). Used for all subsequent authentication.

MAC-Based Session Validation

Each session bound to device MAC address. Session ID + MAC required for authentication.

ECDSA-Signed OTA Updates

Firmware updates cryptographically signed. Devices verify signature before installing.

Watchdog Timer

Hardware watchdog prevents device freezes. Auto-resets on malfunction.

AP Mode with Password

WiFi configuration requires password. User sets custom AP credentials during firmware generation.

Rate Limiting (60 requests/min per token)

Prevents API abuse from compromised devices.

🔌 API Security

Authentication Required

All API endpoints require valid user authentication. Unauthenticated requests return 401.

User Isolation

Users can only access their own devices. No cross-user data leakage.

JSON-Only Responses

HTML browsable API disabled in production. Reduces attack surface.

Rate Limiting (20 requests/second)

Prevents API abuse and DDoS attacks.

📊 Monitoring & Auditing

Security Audit Log

All security events logged: registrations, logins, token generation, device transfers, deletions.

Suspicious IP Alerting

Email notifications for registrations from known bot/datacenter IP ranges.

Admin Login Logging

All admin access attempts logged with IP address and timestamp.

Honeypot Trap

Fake admin paths (/admin, /wp-admin, etc.) log and block automated scanners.