Blog
-
2026-07-29
Treat your chatbot's replies as untrusted input
Ask a language model to reply with an HTML tag and it usually will. If your chat widget puts that reply into
innerHTML, you have built a cross-site scripting vector where the payload is laundered through a model — and where the person who supplied it never touched your markup directly. This lab builds the front end that doesn't do that, with an AI disclosure that holds up when someone tells the bot to deny it. -
2026-07-27
Put a chatbot on your site without handing out your API key
Adding a chatbot to a personal site takes about twenty lines of JavaScript. Most tutorials that show you those twenty lines are handing your API key to every visitor who opens DevTools. Fixing that turns a credential problem into a spending problem, because the endpoint you build to hold the key is one a stranger can call all day. This lab solves both, on shared hosting, for free.
-
2026-06-28
Analysing email headers with Python: a hands-on CSIRT lab
Every phishing email that lands in someone's inbox leaves a paper trail
In this lab you will parse a real-looking phishing
.emlfile using nothing but Pytho... -
2026-04-09
CloudTrail: your AWS audit log foundation
AWS gives you an enormous amount of power over infrastructure — and without audit logging, you have no visibility into how that power is being used. CloudTrail...
-
2023-06-13
Building My First Pwnagotchi: A Beginner's Journey into Wireless Security
Pwnagotchi is a small Raspberry Pi tool, built on bettercap, that captures WPA/WPA2 handshakes from Wi-Fi networks around it. It includes a reinforcement learni...