CourseModel Context Protocol: The Complete Course · Module 8: Security · part 58 of 77
Part 58 · Module 8: Security

Lesson 4: Defences, measured layer by layer

30 min read·13 Oct 2026
Module 8 · Lesson 4 · About 50 minutes · Needs: Module 6 Lesson 1 (the host, notes_host.py), Module 5 Lesson 1 (the packaged server); Lessons 1 to 3 of this module help

The situation

Wednesday 30 September 2026, week 4, the afternoon of the security review. This morning you found the urgent-todo note, planted on 15 September, and Lessons 1 to 3 stopped one attack at a time. Priya asks: "How do we know the fixes work?" You answer with numbers. One case runs all afternoon: the host reads urgent-todo, then tries to save what it read into a note Nare never asked for. You count how often that write happens with each defence on.

WEDNESDAY 30 SEPTEMBER, THE AFTERNOON RUN Nare's session ask or save host reads urgent-todo copying write "Copied notes" count it per layer did an unrequested note get written?
Today's case: the host (blue) reads the planted note, a copying write follows (red, the attack), and you count how often it lands with each defence on (green).

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.