Resources

Security & privacy

Written for
Security and compliance reviewers, and fleet managers answering questions from drivers.

MantAI follows one simple rule: watch the vehicle, never the people inside it. Privacy here comes from the hardware and the architecture itself, not from a setting you can flip. Security is engineered the same way: threat-modelled first, defended in depth across layers, tested on every commit, and documented honestly, including the risks we knowingly accept.

What the unit never does#

  • No cabin recording. The unit mounts outside the cabin, and its microphone points at the machine: the engine, brakes, drivetrain, and road contact. It never picks up conversations or anything else going on inside the vehicle.
  • No cameras. There’s no image sensor on the unit at all.
  • No vehicle-system intrusion. The unit doesn’t plug into the OBD port, the CAN bus, or the vehicle’s power. It can’t read personal data from the car, and it can’t interfere with it.

Threat model#

We model the platform with STRIDE (spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege) applied to every element of its data-flow diagram: the sensor unit, the superseded Gen-1 phone companion app, the fleet manager’s browser, the public website forms, the Cloudflare Worker, the live ride rooms, the SQL and object stores, and the third parties we call (Google for sign-in, Resend for e-mail, OpenAI for acoustic analysis and chat). Each threat is rated by likelihood and impact, mapped to a MITRE ATT&CK or ATLAS technique, and tied to the control that closes it. The full model, with its residual-risk register, lives in the engineering repository under docs/security/threat-model.md and is revisited whenever a trust boundary changes.

Trust boundaryHighest-rated threatsPrimary mitigations
Internet ↔ Cloudflare edgeToken theft or replay, phishing, injection, access to another fleet's data, mail-bombing, DDoS256-bit single-use tokens hashed at rest · deny-by-default authorization on every object · parameterized SQL and schema validation · layered rate limits · anycast DDoS mitigation
Browser ↔ its storageCross-site scripting stealing the session, clickjacking, cross-origin readsStrict Content-Security-Policy with no inline scripts · React escaping, AI output rendered as text · frame-ancestors 'none' · CORS allow-list of our own origins
Worker ↔ third partiesSecret leakage, cost abuse, prompt injectionSecrets held only in Cloudflare and scanned for in git · per-user and global AI metering · the model has no tools and no write path
The vehicle (physical)Device theft, rogue device, sniffing of the superseded Gen-1 Bluetooth linkSealed enclosure outside the cabin · per-device keys in the modem's secure storage · sequence numbers reject replays · tamper and detach alerts · Gen-1 relegated to tooling

Implemented security measures#

Transport

TLS 1.2+ at the edge and TLS/DTLS from the device. Every plain-HTTP request is redirected and pinned with HSTS so browsers never try HTTP again.

Browser hardening

A Content-Security-Policy, anti-sniffing and anti-framing headers, referrer and permissions policies on every response. Cross-origin API access is limited to the dashboard and this website.

Authentication

Passwordless by design: single-use sign-in links that expire in 10 minutes, or Google sign-in through the OAuth 2.0 authorization-code flow with CSRF protection. Sessions are opaque 30-day tokens stored only as SHA-256 digests and revoked server-side on sign-out.

Authorization

Every request is denied unless a valid session is present, and every ride, clip, vehicle, driver and organization is checked against the caller. Roles are owner, admin, driver and viewer; invitations are bound to the invited e-mail address.

Input and data handling

Schema validation on every request, parameterized SQL everywhere, audio stored in a private bucket and streamed only after the same access check as its metadata, 30-day audio retention, and error messages that never expose internals.

Abuse and cost control

Rate limits with Retry-After on sign-in, the public forms on this site, invitations, feedback and the AI chat, keyed per IP, per recipient, per user and globally.

AI safety

The models only answer over the data you already see; they have no tools and cannot change anything. Their output is rendered as plain text, links are allow-listed, and acoustic findings are parsed into a fixed schema with an explicit confidence and disclaimer.

Secure development lifecycle

Static analysis (CodeQL), dependency and secret scanning on every change, a security regression suite that runs in the real Workers runtime, a weekly OWASP ZAP scan of production, versioned database migrations, point-in-time database backups, and a rehearsed incident-response runbook with GDPR notification timelines.

Data protection#

In transit
Every device uplink and every dashboard or API request is TLS-encrypted; plain HTTP is redirected and HSTS is enforced.
At rest
Structured data and audio are stored encrypted in the cloud, credentials are stored as digests, and access is scoped to each organization.
Authentication
Customers sign in without a password, through a magic link or Google. MantAI team accounts may use a password that is stored only as a salted PBKDF2 hash, throttled per account and restricted to the mantai.io domain. Sessions are opaque bearer tokens that last 30 days and can be revoked at any time; organization roles (owner / admin / driver / viewer) decide who can take management actions.
Audio retention
Raw clips are deleted automatically 30 days after they upload. The structured findings we pull from them stay with the ride.
Monitoring
Security-relevant events (sign-ins, invitations, denied requests, rate-limit hits) are logged with the source address and retained for investigation; the logs never contain tokens or message contents.
Ownership
Your fleet's data belongs to you. You can export all of it through the API whenever you want.

Residual risks we accept, and why#

  • Session token in browser storage. The same token serves the phone app and live WebSocket streams, so it lives in browser storage rather than a cookie. The strict Content-Security-Policy is the compensating control; the decision is reopened if the dashboard ever embeds third-party scripts.
  • No second factor on the e-mail link. Possession of the inbox is the factor; Google sign-in inherits Google’s MFA. A step-up for owner and admin actions is the next identity milestone.
  • Gen-1 Bluetooth path. The superseded MVP sensor and app carry no customer production data and are kept as installer and simulator tooling.

Integrity of the record#

The unit runs on its own power and archives everything to its own SD card alongside the cloud, so it works like the vehicle’s black box. Events, routes, and sound findings all survive a dropped connection, the ignition turning off, and even damage to the vehicle’s own systems. And if someone detaches or tampers with the unit, the unit notices and raises an alert.

Reporting a vulnerability

Found something? Write to info@mantai.io with the subject SECURITY. We acknowledge within two working days and aim to fix critical findings within 72 hours. Please test only against your own account and vehicles.
The legal notices for this website are a separate matter from how the platform behaves. See the Privacy Policy and Terms of Service.