Week 7 · slides

Week 7

← all weeks · readme · mock-ctf


marp: true theme: default paginate: true header: "Software Security · Week 7 · Review"


Week 7

Reflection & Review

Pre-Midterm · Weeks 1–6

<!-- Energy up — review week is a GAME, not a lecture. Set the frame: today's job is "zero surprises on exam day." ~5h block = cumulative quiz + Jeopardy + mock CTF + cheat sheet. ~2 min. -->


Goal today

  • Consolidate Weeks 1–6
  • 🎯 Security Jeopardy team quiz-show
  • 🧪 Mock CTF in the midterm format
  • Build your one-page cheat sheet

<!-- Roadmap, 1 min. Start the session with the cumulative review quiz (quiz1.md, 25 pts, 30 min) per the AGENDA, THEN the games. Tell them everything today mirrors the real exam. -->


Map of the half

WkTopicOne-line
1Threat modelingthink like an attacker; STRIDE
2SDLC & toolingSAST/DAST/SCA/fuzzing; shift left
3CryptoKDFs, AEAD; avoid ECB/MD5
4Injectiondata ≠ code; parameterize
5XSSencode per context; CSP
6Auth & accessauthorize every request

<!-- Fast recap — cold-call one student per row to give the one-liner from memory. Don't lecture; it's retrieval practice. ~10 min. -->


🎯 Security Jeopardy

Categories × point values:

Threat ModelingToolingCryptoInjectionXSSAuth

<!-- Run by Houses/teams. Prep the board beforehand (6 categories × 5 values, questions seeded from the exam item bank). Rules: team picks, answers; wrong answer loses the points; end with a Final-Jeopardy wager. Keep it fast and loud. Award points into the CTFd/Houses board. ~60–75 min. -->


🧪 Mock CTF

Same format as Week 9:

  • Injection (SQLi / command)
  • XSS (reflected/stored/DOM)
  • Auth / IDOR / JWT
  • Crypto (crack a hash / ECB oracle)

No surprises on exam day.

<!-- Run the EXACT Week 9 format/timing (see mock-ctf.md) so the real CTF feels familiar. Circulate; offer hints that cost points. The point is calibration: they should leave knowing what they can/can't do. ~90 min. -->


Common mistakes to avoid

  • Confusing encoding vs encryption vs hashing
  • "Validated input" ≠ safe → still parameterize
  • Authentication without authorization
  • Trusting client-side checks

<!-- Spend real time here — these are the top exam point-losers every cohort. Ask the room which they're shaky on and drill those. ~8 min. -->


Deliverable

A one-page cheat sheet (your own) — may be allowed in the exam at instructor's discretion.

<!-- Making the cheat sheet IS the studying (generative learning). Decide + announce now whether it's allowed in the written exam. -->


Midterm next week

Wk 8 = written · Wk 9 = hands-on CTF · covers Weeks 1–6

<!-- Logistics: state exam dates, what to bring, room/VM readiness for W9. Reassure: today's mock = the real thing. -->