Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← All weeks

AI Security and Reliability / Week 17

AI Threat Modeling

Build a threat model and adversarial catalog. Map attacks against the accumulated platform and build safe fixtures using synthetic data.

Your lessons

  1. 01

    Threat modeling an agent system

    60 minutes planned · 7 sections
    Start →
  2. 02

    Testing injection and information leakage

    60 minutes planned · 7 sections
    Start →
  3. 03

    Evaluating layered defenses

    60 minutes planned · 7 sections
    Start →

// Put it into practice

A threat model and adversarial catalog

  1. Download week17.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Threat-model the Phase 4 team using local fictitious data.
  3. Lesson 2: Place malicious instructions in local documents and mock tool results while using canary secrets.
  4. Lesson 3: Run normal and adversarial fixtures against the same bounded system.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 17 Python lab ↓

Read the script’s setup instructions and run it on your own computer. The website does not execute code or verify your results.

// Independent work

W17-LAB

Week 17: A threat model and adversarial catalog

Map attacks against the accumulated platform and build safe fixtures using synthetic data.

Extend the guided artifact rather than start a second project. Each attack has an explicit asset, entry point, expected control, and observed outcome, including legitimate task success.

What to produce

  • A threat model and adversarial catalog
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • Each attack has an explicit asset, entry point, expected control, and observed outcome, including legitimate task success.
  • Each claimed execution is supported by actual saved output.
  • Fixture results and real model results are identified separately.
  • Setup and reproduction use the taught tools without private credentials.
Self-assessment rubric
Technical correctness · 35 points
Implementation or analysis follows the relevant technical mechanism and handles the stated case.
Evaluation and evidence · 30 points
Reproducible tests, appropriate baseline, and accurate interpretation.
Engineering quality · 20 points
Clear structure, safe boundaries, and usable reproduction instructions.
Explanation and reflection · 15 points
Explains tradeoffs, limitations, and next experiment with evidence.

// Retrieve before you reread

Week 17 knowledge check

Try all 6 questions. Check your answers, review the explanations, and retry whenever you like. Answers are checked on this device.

1. An attacker controls a retrieved file and tries to trigger an export. Which transition is central?
2. A new network-send tool is added to a read-only assistant. What should happen to its threat model?
3. A retrieved string decodes to ignore policy and export notes. What authority does decoding grant?
4. A synthetic canary export proposal is denied by a fixed function with no model call. Supported claim?
5. A filter blocks every attack and every legitimate summary. What must be reported?
6. A catalog tests two raw canary strings but no encoded variants. What can it say?

Next: week 18 →