Log inStart free
LESSON 24.06 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Isolation layers: process vs container vs VM

Watch 7 attacks from one RL episode meet a process, a container and a VM.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 24.06 · SANDBOX BAY8 ACTIONS · 7 ATTACKS
01
Stage 1 of 6 · Threat model
An RL episode runs code that no one checked. It tries 7 attacks and 1 package install.
Explain it simply

Three things here are untrusted: the commands the agent runs, the code it writes, and the packages it installs. A threat model lists them and what they could harm. Seven rows aim at something the grader must keep safe, like the hidden tests. The last row is the task's own install.

Left: a box of untrusted code with 8 actions. Right: the host assets each action aims at.

untrusted actionsthe boundaryreached the hostblockedthe task's install
trusted hostcommandscodepackagescat hidden_tests.pyhidden_tests.pyedit grade.pygrade.pykill 412grader pid 412mount /dev/sda1host diskcurl :8080/scoregrader API :8080upload tests.tardrop.examplepip install numpypypi.orgkernel bughost kerneluntrusted codetrusted hostcommandscodepackagescat hidden_tests.pyhidden_tests.pyedit grade.pygrade.pykill 412grader pid 412mount /dev/sda1host diskcurl :8080/scoregrader API :8080upload tests.tardrop.examplepip install numpypypi.orgkernel bughost kerneluntrusted code
Toy: one episode host, 8 actions, 3 layers
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
E=∑areach(a)\sy{E}{grad}{E} = \sum_{a} \text{reach}(\sy{a}{data}{a})
actions=8, attacks=7\text{actions} = 8,\ \text{attacks} = 7

Count the actions that reach a host asset.

Common mix-ups

MYTHA VM keeps every host file safe.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01In the process layer, does curl reach the grader API on port 8080?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.