View on GitHub

GameArena: Security Case Study

How I secured a live esports platform: threat model, OWASP mapping, database access control and 416 automated attack tests.

What GameArena taught me about cybersecurity

GameArena started as a tournament website. It became my cybersecurity lab, because every feature created a new way to be attacked: chat → scams and floods, tournaments → cheating, uploads → disguised files, notifications → SSRF, admin → account takeover.

The rules I set before any code was written

  1. Row Level Security on every table, with policies in versioned migrations.
  2. Validate every input on the server with a schema; never trust the browser.
  3. Never put secrets in code; server-only keys never become public variables.
  4. Never trust payment confirmation from the client: verify the provider’s callback hash and poll the provider before anything counts as paid. Test mode only until licensed.
  5. File uploads: images only (magic bytes, not extensions), size limits, random names, private storage, signed links.
  6. Players’ phone numbers are private: only confirmed teammates see them, enforced in the database.
  7. Log decisions that settle disputes (who, what, when).
  8. Every new control gets a line in the security log, and every database rule gets attack tests.

Skills demonstrated

Area Evidence in this repo
Threat modelling (STRIDE) threat-model.md
Access control design (RLS, least privilege, column grants) migrations/, controls.md
Authentication and MFA mfa tests, admin aal2 design
Secure file handling media tests, magic-bytes.ts
SSRF prevention push tests, ssrf-allowlist.ts
Applied cryptography (HMAC, SHA-256, ES256/JWT, constant-time compare) snippets/
Web security headers and CSP security-headers.ts
Security testing and automation (DevSecOps) 548 attack tests, CI workflow
Incident response and honest reporting incidents-and-lessons.md
Privacy by design Empty push payloads, offline help bot, hashed IPs
Standards owasp-mapping.md, PCI DSS scope reduction

How this maps to roles and certifications

Interview stories (STAR)

Next steps in my learning