Part 9 of 9 · 2 min read
Exercises
Easy
Easy 1: TLS three (20 minutes)
For each of encryption, authentication and integrity, write one attack it stops.
Done when: a three-row table.
Hint
Think eavesdropper, impostor and editor.
Easy 2: Which one failed (20 minutes)
Classify as authentication or authorisation failure: a user sees another's order, a stolen password logs in, a staff member issues too large a refund.
Done when: three classifications with a reason.
Hint
Ask whether the identity was wrong or the permission was wrong.
Easy 3: Spot the secret (20 minutes)
List five places where a secret should never appear and where it should live instead.
Done when: five items with the replacement.
Hint
Code, images, logs, chat and shared documents.
Medium
Medium 1: Certificate watch (30 minutes)
Design monitoring for certificate expiry: what to measure, when to alert and who acts. Use the burn-rate idea from module 2 if it fits.
Done when: a short design with thresholds.
Hint
Alert early, since renewal can take days.
Medium 2: Pick an option (30 minutes)
Choose a service-to-service method for each: an internal metrics call, a payments call across the Internet, a call to a partner. Justify using the table in section 3.
Done when: three choices with reasons.
Hint
Match the strength to the sensitivity and the network.
Medium 3: Role design (30 minutes)
Design coarse roles for a helpdesk and place five rules either in the gateway or in the service.
Done when: a role list and a five-row placement table.
Hint
Coarse checks at the gateway, amounts and fields in the service.
Hard
Hard 1: Threat walk (45 minutes)
Draw a system with a browser, gateway, two services and a database. Mark where each attack in section 7 could land and the defence at that point.
Done when: a labelled diagram with at least six marks.
Hint
Start at the browser and follow a request.
Hard 2: Key lifecycle (45 minutes)
Write a policy for creating, storing, rotating and revoking the keys of a payment database and its backups.
Done when: a policy with schedules and an emergency procedure.
Hint
Say who may read the key and how rotation avoids downtime.
Hard 3: Breach drill (50 minutes)
An attacker has a copy of a backup. Using this module and module 5, state what they get, what they do not, and the first six actions of the response.
Done when: an assessment and an ordered action list.
Hint
Mitigate first, then rotate keys and learn.