Lion Cipher Lab

Compare how a virtual machine, a container and a function are isolated, using the same probe in each

Why it matters

Teams choose between virtual machines, containers and serverless functions every day and often talk as if they were equally isolated. They are not. A VM puts a hypervisor between your code and the host. A container puts your code on the same kernel as everything else on the machine and fences it with namespaces and filters. A function is a way of running code, and what isolates it depends on the platform underneath. If you can measure the differences yourself, you can answer the design question that matters: how bad is it if this code is hostile, and is the boundary strong enough?

What you'll learn

Steps in this lab

  1. Three words, three different boundaries
  2. Write the probe
  3. Run it on the host and ask the machine what it thinks it is
  4. Run it inside a virtual machine or WSL 2
  5. Run it inside a container
  6. Loosen the container on purpose and watch the flags move
  7. Build a function-style sandbox from documented options
  8. See where a real function platform puts the boundary
  9. Where the escape surface sits, and what a professional does differently
  10. Clean up

Open the full interactive lab →

Keep learning