Skip to the games

Back to the games

Trust

Security

A plain description of what DriveMind does to protect your account, your session and the link between your phone and your computer, and where the limits are.

Last updated:

At a glance

  • Single sign-on

    Sign-in goes through Si-des Auth with OpenID Connect. DriveMind never sees your password.
  • Encrypted session

    Your session is an encrypted, httpOnly cookie that scripts on the page can't read. It expires after 8 hours.
  • Fail-closed levels

    Any level not explicitly listed as free requires sign-in, including levels added in future.
  • One-time pairing

    A short code that works once, for one phone, and expires in 10 minutes. Each side then uses its own secret token.
  • Encrypted phone link

    Controls and game sound travel peer to peer over WebRTC, which is always encrypted (DTLS).
  • Admin checked on the server

    Only the administrator can change which games and missions are visible; the server re-checks every change.

Sign-in and sessions

DriveMind signs players in with Si-des Auth, the Sides single sign-on service, using the OAuth 2.0 authorisation code flow with OpenID Connect. The whole exchange happens on DriveMind’s server.

  • PKCE, state and nonce. Every sign-in uses a PKCE (S256) challenge, a state value and an OIDC nonce, which protect against stolen codes, login CSRF and replay.
  • Verified tokens. Both the access token and the ID token are verified against Si-des Auth’s published keys (signature, issuer, audience and expiry). If the two tokens disagree about who you are, the sign-in is refused.
  • Session cookie. The session is encrypted and authenticated (JWE, A256GCM) with a server-side secret, and set as an httpOnly, SameSite=Lax cookie. Over HTTPS it is Secure and uses the __Host- prefix, which binds it to this exact site. It lasts 8 hours.
  • Separate flow cookies. Each sign-in attempt has its own encrypted, single-use cookie that expires after 10 minutes, so two tabs can sign in at once and a flow cookie can never be used as a session.
  • Safe redirects. After sign-in you are only ever returned to a DriveMind page.
  • Sign-out is a same-origin request that clears the cookie and also ends your Si-des session.

Member policy

Which levels need an account is decided in a single policy file. It fails closed: a level is free only if it is explicitly listed as free, so a new mission is members-only until someone decides otherwise. Every way of starting a level (menus, restarts, keyboard shortcuts, voice commands and deep links) goes through the same check.

An honest limit

The games run in your browser, so the gate controls what the game will start; it cannot stop a determined player from modifying their own copy of the code. Anything that must be tamper-proof, such as a public leaderboard, would need to be checked on the server.

Phone pairing

The phone needs no account. The one-time pairing code is the authorisation, and everything after it is tied to secret tokens.

Phone pairing protections
ProtectionHow it works
One-time code6 characters from an unambiguous 31-character alphabet, generated from a cryptographic random source. A code is accepted for one phone only.
ExpiryAn unused code expires after 10 minutes. A paired session ends after 30 minutes without traffic, or when you press Disconnect or New code, or reload the game.
Secret tokensAfter pairing, the computer and the phone each hold their own random secret. Every request carries it in a request header, never in the URL, and the server checks it on every call.
Rate limitsFailed join attempts are limited per client and across everyone (10 per client and 60 in total per minute), and session creation is limited per client, so codes can't be guessed.
Same-site checksThe pairing API refuses cross-site requests: it checks the browser's Sec-Fetch-Site and Origin headers against the site's own host.
Encrypted direct linkControls and game sound go peer to peer over WebRTC, which encrypts all traffic with DTLS.
Relay fallbackIf no direct path exists, messages go through DriveMind's server over HTTPS. The relay carries controls only (no sound) and checks the sender's token on every message.
Small, validated messagesEvery message is size-limited and validated against the game's expected format before it is passed on.
Private network detailsThe computer's local network addresses are offered only to a browser on that computer or its own network, never to public visitors.
Who can pairCreating a code follows the game's visibility: a game the admin has hidden can only be paired by the admin.

Pairing state lives in the server’s memory or, on serverless hosts, in a Redis store, with keys that expire by themselves. The phone page is served with a Permissions-Policy that allows motion sensors, wake lock and full screen for itself only, and Referrer-Policy: no-referrer.

Secrets and the browser

  • All configuration, including the session secret, the sign-in client credentials, the Redis token and any API keys, lives in the server environment. None of it is sent to the browser.
  • The optional AI first officer is called from the server, so its key never reaches the page.
  • The only exception is by design: if a TURN relay server is configured for WebRTC, its credentials are handed to the paired browsers, because they need them to connect.

Admin controls

One administrator account, identified by its verified email address on the Si-des session, can hide games and missions. Hidden content disappears for players everywhere on the site and its pages answer that the game is not available.

  • Changes are saved through an API that re-reads the encrypted session cookie on the server and refuses anyone else.
  • Writes are rejected from other sites and validated before they are saved.
  • The admin check in the page only decides what to show; the decision that matters is made on the server.

What this does not cover

  • DriveMind has not had an independent security audit and holds no security certification. This page describes how the code is designed and tested.
  • The sign-in and pairing code has automated tests, including attempts at replay, login CSRF, open redirects, forged claims, bad signatures and expired tokens.
  • Your account itself (password, recovery, multi-factor options) is managed by Si-des Auth, not by DriveMind.

Report a vulnerability

If you think you have found a security problem, please email hndayish777@gmail.com with “security” in the subject. Include what you found, the steps to reproduce it and what an attacker could do with it.

  • Please give us reasonable time to fix the issue before telling anyone else.
  • Only test against your own account and sessions; don’t access other people’s data or disrupt the service.
  • Never include real passwords or secrets in your report.

See also the architecture and privacy policy.