← Teacher guides

Teacher guide: Capture the flag

Years 8–10. Two skills a defender needs, then a capture the flag that uses everything: encoding is not encryption (binary, hex and base64 are public rules anyone can undo), and what your own web page gives away (comments, hidden fields, scripts and photo details reach every visitor). Then the old club archive: five flags found with decoding, page source, the command line, a tiny processor and a key word, and the leaks fixed before it closes. Defensive and fictional throughout.

Open the student course · How the ideas build

Each lesson works two ways. Students can work through the online tutorial at their own pace (it checks their answers and saves their progress in their browser), or you can teach it to the whole class from the slides, then send students into the tutorial for the Modify and Make steps.

Every lesson guide has plain-language notes, the answers to every check, a solution for every task, and slides and a worksheet for Waypoints Prepare. These guide pages are not linked from student pages, but they are not secret either: keep printed Teacher editions for answers you do not want students to find.

Whole-course cheat sheet: Open to print (every command, grouped by unit: a handout for the final challenge)

What gives secrets away

Encoding is not encryption; what your page gives away.

What gives secrets away, in 5 minutes (read before teaching this unit)

The idea in plain words

Encoding writes data in another form by a public rule: binary, hex and base64 look scrambled, but anyone can turn them back, so they hide nothing. Encryption needs a secret key as well; without the key, the data can't be read. (Hashing, in Security and privacy, is one-way: for checking passwords, not for reading them back.)

A web page is sent whole to every visitor's browser. Comments, hidden fields, scripts and a photo's details (often the place it was taken) aren't shown on the page, but anyone can read them with View source or by saving the file. And a check that runs in the browser can be skipped by its visitor, so real checks happen on the server.

The mission

Students check the Coding Club's own pages and messages before anyone else does, then fix what they find. Everything is made up; addresses use the example domains.

Rules of the game

Only test what you own or have been given permission to test, as here. Every finding is fixed and reported.

Links

Networks (who can see your data), How a web page is made (source and structure), Cyber safety and privacy (the Australian Privacy Principles), Security and privacy (hashes and keys).

The words

encoding, encryption, key, base64, hex, page source, hidden field, metadata, server.

Cheat sheet: Open to print (A4, with board pictures) · Open in Print · Markdown

Capture the flag: the old archive

Five flags from across How computers work, then close the archive safely.

Cheat sheet: Open to print (A4, with board pictures) · Open in Print · Markdown

Project briefs

Printable task sheets for assessment or extension: students make something, hand it in and explain their choices. The success criteria are the curriculum nodes' own. Open the briefs page

Fix a leaky page (after archive)

A club's sign-up page works, but it gives things away to anyone who looks at it. Your job is to find what it gives away, fix each leak, and explain what your fixes do and do not protect.

Use the sign-up page your teacher gives you, or build a small one of your own that has at least two leaks (for example a comment with a password in it, a hidden field with members' details, or a "secret" that is only encoded). View its source, list what you find, then fix the page.

Hand in:

  • The page before and after, with the leaks marked.
  • A list of each leak: what it gave away, how you found it, and how you fixed it.
  • A small demonstration of the difference between encoding and encryption: a message encoded by a public rule, then scrambled with a key, and what someone without the key can and cannot read. Show that the key-scrambled message can be turned back.
  • For each fix, one sentence on what it protects against and one on what it does not.

Evidences:

  • How simple encryption works (AC9TDI8K02 node 4): Describes how a simple algorithm transforms text into an encrypted form; Demonstrates that encryption is reversible — the original message can be recovered
  • Protecting user data in student solutions (AC9TDI10P14 node 3): At least one privacy risk in the student solution is identified and addressed with a technical control; Student can explain what the control protects against and what it would not protect against

Defensive only: students look at their own or a supplied page and fix it, and nothing here tries to get into anyone else's system. A page for them to fix can be as simple as an HTML file with a comment, a hidden input and a base64 line. The main ideas from the course: hiding something on a page does not keep it private, because the browser receives everything; and encoding (base64, hex, binary) has no key, so anyone can undo it, while encryption needs a key. Strong answers fix a leak by not sending the information at all, and are honest about limits, for example that a key-scrambled message still reveals that a message exists, or that removing a field does not remove what was already copied. A simple shift cipher with a key is enough for the demonstration; real encryption is not expected.