Chapter 14 of 22Part III: Cybersecurity and Privacy
The Invisible Digital Enemy
Each project below is tailored to a specific algorithm and scientific question from Chapter 14, with concrete inputs, verifiable numerical outputs, boundary cases, and links to the related lab and pioneer.
Project 1 of 3 · v1-c14-p01Intermediate · ~25 min
Network Contagion & Patch-Threshold Model
Lab activity: A. Stop the spread · Related code: block-01.js, block-04.js · Pioneer: View profile
Real-World Problem: System administrators must decide how quickly to patch or isolate computers when a wormable flaw is announced.
Scientific Question: What minimum patch fraction p forces effective spread R_eff = R0 · (1 − p) below 1?
Objective: Simulate a safe, fictional SIR-style network graph and find the critical patching threshold that halts spread.
Hypothesis to Test: For base spread R0 = 4, patching at least 75% of nodes pushes R_eff <= 1 and stops exponential growth.
Hint: Review the worked example and equation in Chapter 14 before testing the boundary case: Small graphs show random variance; average across 10 seeded runs for smooth curves.
Extension Challenge: Compare random patching vs. patching the 10 highest-degree hub nodes first.
Reflection Question: How did John von Neumann's self-reproducing automata theory anticipate modern software dynamics?
Common Mistake to Avoid: Relying solely on signature lists while ignoring software updates and least privilege.
Interpreting Results: Signature detection is a fast first filter, never a complete security boundary.
Show Hint, Extension Challenge & Reflection
Hint: Review the worked example and equation in Chapter 14 before testing the boundary case: Overly broad signatures trigger false positives on legitimate files.
Extension Challenge: Compute precision and recall across 10 fictional test files with 2 false-positive traps.
Reflection Question: Why do security teams run suspicious files inside isolated sandboxes (like our Web Worker runner) instead of on main machines?
Hint: Review the worked example and equation in Chapter 14 before testing the boundary case: Restoring a backup without patching the entry flaw allows immediate re-infection.
Extension Challenge: Write a 5-point post-incident prevention checklist tailored to a school computer lab.
Reflection Question: Why is an offline, tested backup the strongest insurance against ransomware?