Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Security the lesson

The Security Mindset a show in 8 chapters

Goal: find every way in, then keep 100 of them all locked 99 days in 100

1 of 8 Your guess

Before we start

A program is instructions a machine runs one at a time. Two programs sharing one machine can step on each other's memory, unless something stops them.

Someone has to make sure a system does only what it should. Which picture is closest to how they do it?

Pick the closest. You find out which fits at the end.

St. Louis, 1967: one IBM mainframeclassified job:fighter jet workmemory, disks:shared by allclearedstaffUntil then, everyone who touched a computerwas already cleared for everything on it.

2 of 8 The problem

1967: one machine, two users

A defense contractor in St. Louis owns an IBM mainframe, one big computer that many jobs share. It runs classified work for a fighter jet program.

Until now, everyone who touched a computer was already cleared for whatever was on it. Nothing on the machine had to keep one user from another.

Step 1 of 3

the builder asks“how do I let two users use this at once?”the committee asks“how does the classified one leakto the other?”buildercommitteeclassifiedbusinessclassifiedbusinessSame machine, same drawing.The opposite question.Nobody had asked the second one before.

3 of 8 The idea

The opposite question

An engineer building the shared machine asks how to let two users on at once. Ware's committee had to ask the opposite question about the same machine: how does the classified one leak to the other?

Same drawing, opposite question. The first lists what the machine should do. The second hunts for what it should never do.

Step 1 of 2

St. Louis, 1967: one IBM mainframeclassified job:fighter jet workmemory, disks:shared by alltrustboundarya strangerthe businesses' terminals, outsidea door: where something gets inall the rings together: the attack surface

4 of 8 Try it

Count the doors

Draw the dashed line between the stranger's terminals and the shared machine. Every door crosses it. That line is the trust boundary, and the full set of doors is the attack surface.

Ware's answer: assume a boundary exists whether or not anyone built one on purpose.

Step 1 of 5

a fake identityAnareal AnaClaiming to bea user you aren'ta flooda real user,stuckSo many requestsreal users can'tget throughTwo of the ways in. Each gets a letter.

5 of 8 The idea

Six ways in

At each door, what could go wrong? Ware's committee had to invent its own list. Two of the ways in, drawn: someone at a door claiming to be a user they aren't, and someone flooding a door with so many requests that real users can't get through.

Step 1 of 3

one door, one lock, 100 tries99 held, 1 missed: 99 in 100.A good lock. The trouble startswhen there are many doors.

6 of 8 The fix

A hundred doors, then two locks

Say each door has a lock that holds 99 times out of 100. A genuinely good rate. Now give a system 100 such doors, each locking on its own.

On how many days in 100 do all 100 doors hold at once?

50 days

Step 1 of 6

7 of 8 Your guess

Your picture now

Goal met: 8 doors found on one system, 6 checks walked at each, and 100 doors with two locks each held all at once 99 days in 100, up from 37. Which picture is closest now?

Pick one.

The security mindsetThe attacker needs one door. You hold every one, so design it in.Threat modelEvery way in, written down and checked before it ships.Attack surfaceEvery door: anywhere something from outside reaches in.Trust boundaryThe line a door crosses. Count every one, the webhook too.STRIDESix checks at every door, from a fake identity to a flood.Defense in depthTwo independent locks: 1 miss in 100 becomes 1 in 10,000.chalkbrain.com
The security mindsetThe attacker needs one door. Youhold every one, so design it in.Threat modelEvery way in, written down,checked before it ships.Attack surfaceEvery door: anywhere somethingfrom outside reaches in.Trust boundaryThe line a door crosses.Count every one, the webhook too.STRIDESix checks at every door, froma fake identity to a flood.Defense in depthTwo independent locks: 1 missin 100 becomes 1 in 10,000.chalkbrain.com

8 of 8 Keep this

Keep this

Assume a door exists wherever something crosses in. Walk the six checks at every one. Never trust a single lock with everything behind it.

The defender has to hold every door, the attacker needs one. That is why security is designed in before a system ships, not patched on after. The next lesson builds the locks: cryptography.

Read the full lesson