Schema PH · Learn
How we keep software safe, fast and lawful
Short lessons on the rules we build by. Each one covers what the rule is, the real incident
that made it a rule, how to apply it, and what it costs.
Start with lesson 1
Security
Keeping a signed-in user, their session and their data out of the wrong hands.
-
01
HTTPS and HSTS
Why having HTTPS is not enough, how one header stops a whole class of attacks, and why that header is hard to take back.
-
02
CSRF — cross-site request forgery
How another website can act as your signed-in user, why cookies make it possible, and the three modern defences.
-
03
Sessions and cookies
What a session cookie must carry, the flags that protect it, and the trade-off between signed cookies and server-side sessions.
-
04
Access control and tenant isolation
The most common serious web flaw is not clever hacking but a server that forgets to ask "is this yours?". How to make that question impossible to skip.
-
05
Injection and escaping
SQL injection and cross-site scripting are the same mistake in two places, data being read as code, and they have the same cure.
-
06
Third-party scripts and dependencies
Every script you load from someone else runs with your page's full power. Real breaches that came in through a chat widget, a CDN and an npm package.
-
07
Size and rate limits
A server with no limits can be knocked over by one request. How caps on body size, request rate and tracked state keep one visitor from taking everyone down.
Infrastructure
Caches, deploys, health checks, backups and secrets: the parts that run the code.
-
08
Edge caching
A CDN can serve your pages from a city near the visitor in milliseconds, or serve one person's account page to thousands of strangers. The headers decide which.
-
09
Deploys and versioning
Most outages start with a change. How to ship so that old and new code never mix, and why a bad release should reach a few machines before it reaches all of them.
-
10
Health checks and monitoring
A green status page and a broken app can happen at the same time. What a health check can see, what it cannot, and how to count the failures real users hit.
-
11
Backups and secrets
A backup you have never restored is a hope, and a password in a git repository is public. One company that nearly lost everything, one that did, and one that hid a breach for a year.
-
12
Redis, and when you need it
Redis is a fast shared memory for many servers. What it is good at, the incidents that came from using it carelessly, and why a single server usually does not need it at all.
Attack archive
Real breaches from recent years: what the attacker did, and the gap that let them in.
-
20
Why breaches happen — the six patterns
The start of the attack archive. Almost every recent breach reuses one of six gaps, and knowing the six is worth more than knowing any single attack.
-
21
Poisoned packages — the npm worms
How one phished maintainer turned into hundreds of infected packages, why npm install runs code before you look at it, and the settings that buy you a week of safety.
-
22
When the framework is the hole — React2Shell and the Next.js bypass
Two recent flaws in the most popular web stack, one that skipped every login check and one that ran attackers' code, and why checking access in one place only is fragile.
-
23
Stolen logins and infostealers
Why most break-ins are now just log-ins, where the passwords come from, and why a second factor on every account is the single cheapest defence there is.
-
24
Phishing that beats MFA
How modern phishing steals the session instead of the password, why codes from an app no longer stop it, and why passkeys do.
-
25
Help desks and admin consoles
How a phone call to IT became the most expensive attack in British history, how one admin login wiped a medical company's devices worldwide, and why powerful actions need two people.
-
26
Stolen tokens and connected apps
Why a stolen session cookie or OAuth token skips the password and the second factor, how one chatbot integration opened 700 companies' Salesforce data, and how to make tokens worth less.
-
27
Edge devices and mass exploitation
Why firewalls, VPNs and file-transfer servers are now the most attacked machines on the internet, why patching them is not the end, and how to shrink what faces the world.
-
28
Open buckets and default passwords
The breaches that needed no hacking at all — an app that left its users' ID photos public, a hiring bot with the password 123456, and the Philippine voter leak — and why "private by default" matters.
-
29
AI agents and prompt injection
How text hidden in an email or a GitHub issue can take over an AI assistant, how AI agents in a test escaped and broke into Hugging Face in 2026, and what that means for ordinary web bugs.
-
30
Floods and botnets — DDoS
How hijacked TVs and routers now send 31 terabits a second, how one quirk in HTTP/2 let a small botnet do the work of a huge one, and why the defence lives in front of your server.
No lesson matches that yet.