Database-backed accounts
Users, sessions, progress, quiz attempts, lab results, dictionary terms, tutor transcripts and certificates live in PostgreSQL via Drizzle ORM.
Trust & transparency
This project is a same-origin learning platform built with Next.js, PostgreSQL and Drizzle ORM. The original brief described a FastAPI/SQLAlchemy deployment with Redis; this implementation delivers the same security properties using the runtime available here. The differences are listed openly rather than hidden.
Users, sessions, progress, quiz attempts, lab results, dictionary terms, tutor transcripts and certificates live in PostgreSQL via Drizzle ORM.
Passwords are hashed with Argon2id (m=19456 KiB, t=2, p=1) using a unique 16-byte salt and verified with a constant-time comparison.
A 256-bit random token is set in an HttpOnly cookie. The database stores only its SHA-256 hash, plus expiry and last-seen metadata, so a database leak cannot be replayed.
A non-HttpOnly CSRF cookie is seeded by middleware; every state-changing request must echo it in the x-csrf-token header and come from the same Origin/Host.
Registration, login, progress, tutor and lab endpoints are limited using PostgreSQL-backed counters, shared across instances instead of per-process memory.
Content-Security-Policy, X-Frame-Options DENY, nosniff, strict referrer policy, Permissions-Policy, COOP and no-store on API responses.
Gemini is called from a server route only. The API key is read from the environment, never returned to the client, and requests have timeouts, safety settings and graceful fallback.
Progress, quiz results, lab results and certificates are queried with the session user id. There is no client-supplied user identifier to tamper with.
Server-side validation of every write, allow-listed status values, length limits, HTML-escaped React rendering and parameterised SQL through the ORM.
Client IPs are hashed before use, tutor input is redacted for obvious secrets, and health checks return status only.
Do not expose the development configuration directly to the internet.
Verified manually on this build unless stated otherwise. Repeat these checks in your own environment.
100 lessons across 10 modules: cybersecurity foundations, networking essentials, protocols and traffic analysis, Linux fundamentals, Linux administration and hardening, Python for security, defensive Python projects, web technologies, web security, and professional security operations. Every lesson includes objectives, key terms, a worked example, a safe activity and a knowledge check.
The cybersecurity skills in this curriculum are powerful. Use them only on systems you own, or where you have explicit written permission and a defined scope. Unauthorised access is a criminal offence in many jurisdictions and causes real harm. The platform's labs are simulated so that you can build judgement without touching someone else's infrastructure.
Have a qualified adult or site administrator review privacy, child-safety, legal and hosting requirements before opening registration to the public.