Sikau

Learn Security

Think like an attacker, build like a defender: web attacks and practical crypto.

Learn the attacks behind real breaches and the defences that stop them — escaping against XSS, parameters against SQL injection, CSRF tokens and constant-time comparison, object-level authorization and rate limits — then practical cryptography with WebCrypto: SHA-256, salted PBKDF2 password storage and HMAC-signed tokens, ending with a secure login service.

Advanced · 12 lessons · about 8 hours · free

Start Security free: run real code in your browserright here

Continue with Google

What you will learn

Unit 1: Web attacks and defences

XSS, SQL injection, CSRF, authorization and rate limits.

  1. Day 1Cross-site scriptingNever let text become code: escape output, tag templates, safe URLs.35 min
  2. Day 2SQL injectionWhy string-built queries are dangerous, and how parameters fix it.35 min
  3. Day 3Sessions and CSRFCookies, origins and CSRF tokens — and comparing secrets in constant time.40 min
  4. Day 4Project: Authorization and rate limitsWho may do what (and stopping IDOR), plus a token-bucket limiter.40 min

Unit 2: Cryptography for developers

Hashes, password storage, signed tokens — and a secure login.

  1. Day 5Hash functionsSHA-256: fixed-size fingerprints, one-way, and wildly different for tiny changes.35 min
  2. Day 6Storing passwordsSalted, slow PBKDF2 hashes and checking them in constant time.40 min
  3. Day 7Signed tokensHMAC-signed JWTs: tamper-evident, expiring session tokens.40 min
  4. Day 8Capstone: A secure login serviceRegistration, hashed passwords, lockouts, uniform errors and signed sessions.55 min

Unit 3: Security in practice

Encryption, sessions, threat modelling and a header audit.

  1. Day 9Encrypting dataAES-GCM with a fresh nonce: secrecy plus tamper detection.40 min
  2. Day 10Sessions and cookiesRandom session ids, expiry, rotation after login, and safe cookie flags.40 min
  3. Day 11Threat modellingAsk what can go wrong with STRIDE, then rank threats by likelihood and impact.40 min
  4. Day 12Project: Security header auditCheck a response for missing security headers and unsafe cookies.45 min

Before you start

These courses make Security easier:

See all courses

Built with ❤️ by dibe.sh