00 Executive summary
A surprisingly well-hardened hobby game: zero-dependency server, a strict CSP, hashed secrets, an idempotent coin ledger and SSRF-safe push. The weak point is account auth. A 4-digit PIN with a lockout that never decays means anyone can lock any account forever, and PIN spraying is cheap. Next come no general rate limiting on /api, secrets in URLs, hot-copied SQLite backups, and no tests at all.
01 Security
Threat model: an anonymous internet player, a hostile guest in your room, and someone who knows a username (they are public and searchable).
02 What's already solid
03 Operations & reliability
04 Performance
05 Missing features & improvements
06 Action plan
Generated by a read-only audit. No sakla code, data or config was modified. No secrets are included in this page.