Cybersecurity lessons: from foundations to securing AI
The cybersecurity lessons are six series of undergraduate-level modules, A to F, from a beginner who can use a terminal to specialist subjects, each module written separately in English, French, Spanish, Japanese and German. They have a card of their own on the Lessons page, beside the AI lessons, and a page of their own at /resources/security. Every lesson can be read whole with no account.
The six series
Series A, foundations, is for a beginner who can use a terminal: security fundamentals (threats, risk, layered defence, hardening a Linux server and reading its logs for an attack), applied cryptography, network security, privacy and data protection, and web and application security (SQL injection, cross-site scripting, broken access control and their fixes), then threat modelling (data flow diagrams with trust boundaries, STRIDE per element, attack trees, ranking threats, abuse cases written as tests and a threat model kept as code), and identity and access (session cookies, the OAuth 2.0 code flow with PKCE, OpenID Connect ID tokens, JWTs checked properly, SAML single sign-on and access reviews), email and DNS security (SPF, DKIM and DMARC, reading phishing headers, DNSSEC, DNS tunnelling and subdomain takeover), and passwords, MFA and passkeys (cracking your own hashes with John the Ripper, a password policy by current guidance, stopping credential stuffing, one-time codes and passkeys).
Series B, defend and respond, comes after Series A: security operations (what to log, triaging alerts, incident response), detection engineering with Suricata, Sigma and Zeek, digital forensics (collecting evidence, checking it with hashes, rebuilding a timeline and writing a report), endpoint hardening on a Linux server (benchmarks, auditd, AppArmor, narrow sudo, sandboxed services, AIDE and Ansible), vulnerability management with Trivy (CVSS, EPSS and the KEV catalogue, SBOMs, patch deadlines and reporting risk), threat intelligence (indicators and the pyramid of pain, ATT&CK mapping, the diamond model, STIX and TLP, and turning a report into tested detections), threat hunting (hypotheses, baselines, stacking rare events, beacons that add jitter, process trees and turning a hunt into a detection), and memory and disk forensics with The Sleuth Kit and Volatility 3 (verified disk images, partitions, carving deleted files, timelines, and hidden processes and connections in memory), and malware analysis done safely on a harmless sample built in the lab (safe handling, static triage and packing, ELF and PE headers, YARA rules, a sandboxed run with a sinkhole, persistence and the report).
Series C, application security, is for a developer: secure software development, from safe design and input checks to password hashing, dependencies and code review, then advanced web attacks and their fixes (CSRF, SSRF, path traversal and uploads, XXE, deserialisation and template injection), and API security (the OWASP API Top 10, BOLA, mass assignment, rate limits, GraphQL and forged JWTs), and DevSecOps pipelines (Semgrep, secret and dependency scanning, a DAST baseline, IaC scanning and a security gate that blocks a merge), and software supply chain security (SBOMs, signed releases, SLSA provenance, dependency confusion, typosquatting and lock files with hashes).
Series D, offensive security done ethically, comes after Series A to C: reverse engineering, reading a program without its source with strings, objdump, radare2, gdb, ltrace and strace, then penetration testing methodology (written scope and the law, reconnaissance, enumeration with Nmap, validating each finding with the least intrusive check, the report and the retest, with one host always out of scope), then Linux privilege escalation: going from a low-privilege account to root on your own machine through setuid binaries, sudo rules, capabilities, writable cron and systemd services, with the fix and how to detect each, then memory safety and mitigations: where a process keeps its memory, finding memory bugs in your own C with compiler warnings and AddressSanitizer, what stack canaries, NX, ASLR with PIE and RELRO each do, auditing a binary's hardening with readelf, replacing unsafe calls such as strcpy, sprintf and gets with bounded ones, and why memory-safe languages remove the whole class, then fuzzing: finding bugs in your own C code with AFL++ and libFuzzer harnesses, sanitizers, coverage and crash triage, and keeping them fixed with a short fuzz job in CI, then Active Directory security: auditing and hardening your own Samba domain controller, reading Kerberos tickets, turning NTLM off, stopping kerberoasting, removing unconstrained delegation and tiering admin accounts, with the log events that detect each, then attacks on cryptography: why correct primitives used the wrong way fail, shown on toys of your own (ECB, a padding oracle, a reused nonce, length extension, a timing leak, weak randomness) and fixed with AES-GCM, unique nonces, HMAC, compare_digest and the secrets module, with a review rule that catches each.
Series E, cloud and infrastructure, comes after Series A and B: sandboxing untrusted and AI-written code, workload identity with SPIFFE and SPIRE, short-lived certificates and ACME automation, industrial control system security in a simulated plant, and cloud security: the shared responsibility split, least privilege for a role, public bucket policies fixed with block public access and a TLS rule, the metadata service and SSRF, audit logs and alert rules, and a posture check over the account, in a practice cloud of the student's own, and container and Kubernetes security: a small image built and checked, safe pod defaults, a wide RoleBinding narrowed, Pod Security Admission at restricted, default-deny network policies proved by traffic, and misuse found in the API server's audit log, in a k3s cluster of the student's own, and zero trust: a flat network behind a VPN shown to fail, an identity-aware proxy checking a signed identity on every request, device posture in the access decision, nftables rules around each service proved by traffic, mutual TLS from a small private CA and a staged migration with its alerts, in the student's own WireGuard lab.
Series F, specialist and leadership, comes after the rest: post-quantum cryptography, zero-knowledge proofs, securing LLM applications, securing agents, and adversary emulation and purple teaming (an emulation plan from a threat report, small atomic tests, the purple team loop of run, observe, tune and retest, coverage measured from test results, command and control seen in a proxy log, and a gap report), and security governance (ISO 27001 and a Statement of Applicability, NIST CSF 2.0 profiles and gaps, the UK's Cyber Essentials, a risk register with an appetite, an audit sample against a policy, and metrics reported to leaders, all as Python data about a made-up firm), and ransomware resilience (the stages of an attack from public reports with a harmless drill on sample files, 3-2-1 backups with tar, a locked vault that refuses deletes, restore tests against RPO and RTO, segmentation by group, and a response playbook from a made-up file server log). The two AI security modules are in the AI lessons too, and their own pages sit under the AI lessons.
More modules are being added to each series, and a module joins its series only once it is written in all five languages.
The rule every lesson keeps
Every attack in these lessons is made against the student’s own copy of the lab and nothing else. A technique may be tried on a real system only with the written permission of whoever owns it: in the UK, getting into a computer without permission is a crime under the Computer Misuse Act 1990, and most countries have a law like it. The lessons are written to defend, so where one shows an attack it also shows the fix. The rule is the first thing on the cybersecurity page, in every language.
The cybersecurity glossary
The cybersecurity glossary, linked from the cybersecurity lessons page, gives short, plain definitions of forty-five security terms, from the CIA triad, hashing and MFA to SQL injection, SSRF, SBOMs, zero trust and ransomware. Each term has a page of its own in every language, with a one-sentence definition first, a short explanation, related terms and links to the lessons that teach it. Only terms a cybersecurity lesson teaches are in it, and it is free to read with no account.
How a lesson works
Each module is worked in a lab: a container lab or a Linux virtual machine of the student’s own, opened in the browser. The public pages show the commands and never run them; Start lab opens the lab and runs them there. Assignments are Python programs with hidden tests over fixed data, and the teacher guide and the tests are never public.
Using them in a college
Find the cybersecurity modules in the Library, or in the Undergraduate computing modules folder in your language. A college copies a whole module into one of its modules with Copy all its lessons, then sets the lessons and assignments as it would any others. Open the teacher guide first: it has the weekly plan.
What it costs, and how to try it
A school or college has its first 365 days free, for up to 50 students and with no card, and everything on this page is part of it. After that the price is per student a year, with staff free and labs, virtual machines and AI included on a fair-use basis. The pricing page has the figure in your currency and a calculator.
Questions people ask
- Do I need an account to read them?
- No. Every lesson can be read whole with no account. Start lab runs its commands in a lab, and a free account keeps your lessons and progress.
- Is it legal to practise the attacks?
- Yes, in the lab: every attack is against the student’s own copy, which exists for that. The same technique on a system somebody does not own, without written permission, is a crime in the UK and in most other countries.
- Do they use up credit?
- A lab uses some of the account’s credit while it runs, and a free account has enough each month to follow most lessons.
- Have people checked them?
- The modules were written with AI and are held to automated checks, but a lecturer has not yet read every one. Read a lesson before you set it, as you would any lesson you did not write.