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 18

Sandboxing and Governance

Build a restricted execution environment. Run disposable workers with file, network, credential, and policy boundaries.

Your lessons

  1. 01

    Enforcing process and resource restrictions

    60 minutes planned · 7 sections
    Start →
  2. 02

    Binding policy and approval to execution

    60 minutes planned · 7 sections
    Start →
  3. 03

    Keeping usable and private audit records

    60 minutes planned · 7 sections
    Start →

// Put it into practice

A restricted execution environment

  1. Download week18.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Run a disposable restricted worker against allowed files and synthetic forbidden targets.
  3. Lesson 2: Approve a simulated export, then change its destination and retry.
  4. Lesson 3: Trace an allowed and denied export through a redacted audit record.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 18 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

W18-LAB

Week 18: A restricted execution environment

Run disposable workers with file, network, credential, and policy boundaries.

Extend the guided artifact rather than start a second project. Observed denied operations prove enforcement; exact-action approval and redacted audit records are checked.

What to produce

  • A restricted execution environment
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • Observed denied operations prove enforcement; exact-action approval and redacted audit records are checked.
  • 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 18 knowledge check

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

1. A container has read-only root but a writable host-home mount. Which statement is correct?
2. Default fixtures pass but the restricted container cannot start. What isolation claim is valid?
3. Approval allows operation R6 to destination A until time 80. R7 to A arrives at time 81. Decision?
4. Approved payload digest E is checked, then worker swaps bytes to digest F before publication. What failed?
5. An action is denied but its raw secret appears in debug logs. What is accurate?
6. An export is authorized but remote completion is unknown after timeout. Which audit pair is honest?

Next: week 19 →