Lion Cipher Lab
Compare how a virtual machine, a container and a function are isolated, using the same probe in each
- Cyber / Security Engineer
- Intermediate
- ~50 min
- Free · no account required
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
- running one probe script in a host, a virtual machine and a container and comparing kernel, namespace and process view
- explaining which parts of the system each boundary shares and which it does not
- reading Seccomp, CapEff and NoNewPrivs from /proc/self/status
- building a function-style sandbox from documented docker run options
- naming where the escape surface of each boundary sits
- choosing a boundary for code you trust, code you do not, and code from strangers
Steps in this lab
- Three words, three different boundaries
- Write the probe
- Run it on the host and ask the machine what it thinks it is
- Run it inside a virtual machine or WSL 2
- Run it inside a container
- Loosen the container on purpose and watch the flags move
- Build a function-style sandbox from documented options
- See where a real function platform puts the boundary
- Where the escape surface sits, and what a professional does differently
- Clean up
Open the full interactive lab →