Security model
| Threat | Control in this repository | Remaining risk |
|---|---|---|
| Hostile archives | stream-limited gzip, no absolute paths, traversal, links, special files; file-type allowlist; per-file, total and ratio limits; files written by hand | bugs in Python's tar reader |
| Hostile code | Firecracker microVM per case-trial; without it, fail closed. The trusted demo mode runs only allowlisted repository samples and is labeled as not an isolation boundary | hypervisor or kernel exploits (production) |
| Programs reading the answer | the case is the program's only input; references and world specs stay on the validator | side channels on the host (production) |
| Leaking private cases | public endpoints serve published rounds and disclosed cases only; private bundles live under var/private; no source maps in production builds | staff or validator leaks |
| Cross-tenant access | every customer query filters by tenant; other tenants' jobs return 404 | misconfigured roles |
| CSRF | SameSite cookies plus a required client header on cookie-authenticated state changes | — |
| Session theft | HttpOnly cookies; tokens stored as SHA-256 only; 12-hour expiry | XSS in future code |
| Replay | submission signatures bind the round; attestation nonces are unique; equivocation is recorded | — |
| Two controllers | job leases with fencing tokens checked under a per-job advisory lock at every decision | — |
| Chain misuse | no write methods; startup refuses MENDORA_MAINNET_WRITES_ENABLED | — |
Demo accounts share one password and exist only in the local demo (/api/auth/demo-accounts returns 404 elsewhere).
Report security issues privately to the repository owner.