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 boundary | Highest-rated threats | Primary mitigations |
|---|---|---|
| Internet ↔ Cloudflare edge | Token theft or replay, phishing, injection, access to another fleet's data, mail-bombing, DDoS | 256-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 storage | Cross-site scripting stealing the session, clickjacking, cross-origin reads | Strict 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 parties | Secret leakage, cost abuse, prompt injection | Secrets 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 link | Sealed 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
Browser hardening
Authentication
Authorization
Input and data handling
Abuse and cost control
AI safety
Secure development lifecycle
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