I Built a CTF Into My Résumé

There are six flags hidden on this site. Here's why, what each one teaches, and how the answers are checked without the server ever storing them.

I Built a CTF Into My Resume: a glowing treasure chest with a Valknut flag in a mead hall

Most personal sites ask you to read about someone. This one also asks you to poke at it. Hidden around the longhouse are six flags, each shaped like CV{words_joined_by_underscores}, and a seventh for anyone who gets lost. Find all six and a hall opens that isn’t linked from anywhere.

It started as a joke. It turned into the best way I’ve found to show how I think about security, instead of just telling you.

Why put a capture-the-flag on a résumé site?

Because the first thing a good security person does with any website is look past the page. A CTFCTF Capture the flag: a security challenge where you find hidden 'flags' by thinking like an attacker, legally and on purpose. rewards exactly that curiosity, and it does it on my own turf, where poking around is invited rather than suspicious. If you’re hiring, it’s a better conversation starter than a bullet list. If you’re learning, it’s a safe place to practise habits you’ll use for the rest of your career.

What the flags teach (without spoilers)

Every flag sits somewhere a defender should already be checking on their own systems:

  • What the page hides. Browsers show you the rendered result. The source often says more than the author meant it to.
  • What the site tells machines. Websites publish instructions for crawlers and researchers. Those files describe the site’s shape, and sometimes what it would rather you didn’t look at.
  • What the server says off the page. Every response carries metadata. Most people never read it; attackers always do.
  • What old habits remember. Some secrets are cultural, not technical. You’ll know it when you remember it.
  • What’s written in plain sight. Not everything hidden is hidden technically. Sometimes it’s just in an alphabet nobody bothers to read.

None of it needs a scanner, a password list or any tool beyond your browser. The rules are on the Hunt page and they matter: nothing outside this site, nothing automated, nothing that would get you in trouble anywhere else. If you stumble on something that looks like a real weakness rather than a flag, the right move is the one in security.txt.

If you haven’t met security.txtsecurity.txt A small file at /.well-known/security.txt that tells researchers how to report a vulnerability to the site's owner. before: it’s a small text file, standardized as RFC 9116, that lives at /.well-known/security.txt and tells researchers how to report a vulnerability, with at least a contact and an expiry date. It takes five minutes to publish, and it’s the difference between someone reporting a problem to you and giving up because they couldn’t find who to tell. Every site should have one.

Checking answers without keeping any

The fun engineering problem was verification. I didn’t want a form that posts guesses to my server, and I didn’t want the answers sitting in the page for anyone who opens the developer tools.

So the page holds only fingerprints. When you submit a flag, your browser runs it through SHA-256SHA-256 A cryptographic hash function. It turns any input into a fixed 64-character fingerprint, and the fingerprint can't be turned back into the input., the same one-way hash used everywhere from software downloads to password storage, and compares the result to six stored fingerprints. A match lights a rune. A fingerprint can’t be reversed into the flag, so reading the page source tells you how the check works but not what the answers are.

The hall works the same way. Its address is derived from a hash of all six flags together, so the only way to compute the link is to have found every one. Progress is saved in your own browser and nowhere else. Nothing you type is sent anywhere.

It isn’t bank-grade, and it doesn’t need to be. Someone determined could brute-forcebrute force Guessing every possible password or key until one works. Rate limits, long secrets and MFA are the usual defences. short flags offline. But it’s honest about its threat modelthreat model A clear-eyed answer to: what are we protecting, from whom, and what's good enough? It stops you over-securing the trivial and under-securing what matters., which is half of what security design is.

Build your own (no spoilers)

The core of the checker fits in a few lines of browser JavaScript, with no libraries. This is the general pattern, not my actual code or fingerprints:

async function sha256(text) {
  const bytes = new TextEncoder().encode(text);
  const hash = await crypto.subtle.digest('SHA-256', bytes);
  return [...new Uint8Array(hash)]
    .map(b => b.toString(16).padStart(2, '0')).join('');
}

// Store only fingerprints, generated offline from your real flags.
const fingerprints = new Set(['<sha-256 of flag 1>', '<sha-256 of flag 2>']);

async function checkFlag(guess) {
  return fingerprints.has(await sha256(guess.trim()));
}

Two practical notes if you build one. crypto.subtle only works on pages served over HTTPSHTTPS HTTP over TLS: web traffic that's encrypted and tied to a certificate, so you know you're talking to the real site., so test it on your real site or on localhost. And make your flags long enough that guessing them isn’t practical: a short flag can be found by hashing every likely answer offline, no matter how good the hash is.

The part I didn’t expect

Building the hunt made the site better. Hiding a flag in the response headers meant getting the headers right. Putting one in security.txt meant publishing a proper security.txt. Every flag is a small, deliberate example of something real sites leak by accident, and planting them on purpose forced me to check that I wasn’t leaking anything else.

Curious? The Hunt is waiting. Your visitor character sheet is at the bottom of that page, and yes, finding flags earns you XP.

ᛟ ᛟ ᛟ