Hacker News new | ask | show | jobs
by gbrindisi 12 days ago
Thinking about agents sandboxes... it truly seems like the time is ripe for unikernels
2 comments

Unikernels that run on KVM aren't going to protect against KVM escapes.
As others have stated this is a nested issue. Most unikernel users I know deploy straight to ec2 or gcp. This is going to affect "sandbox" providers more than anything else.
Nested virt on EC2/GCE are vulnerable. Metal instances wouldn’t be, though using nested virt on Nitro Sandbox capable EC2 instances wouldn’t be either.

So this is a tricky one. You can (and should) deploy unikernel workloads on metal and avoid nested virt but this is hard to make economically viable in some cases.

I've always been under the impression that bare metal is cheaper.
No, not really. Metal instances from cloud providers typically cost the same as their virtualized counterparts.

They only come in large sizes, so they’re much more expensive when you aren’t able to fully utilize the capacity on each instance. It’s easier to binpack and saturate a mixed pool of instance types of various sizes than 24xl metal nodes, especially if you care about spreading your workload instances across multiple nodes to prevent single-node instance failure from having impact.

> This is going to affect "sandbox" providers more than anything else.

This is going to affect "sandbox" providers and their customers more than anything else.

FTFY

Maybe the problem...is Linux itself.
Would FreeBSD be better here?
There was a DoS vulnerability in FreeBSD's vmm announced earlier today (letting the guest panic the host on Intel CPUs): https://www.freebsd.org/security/advisories/FreeBSD-SA-26:84...
bhyve escapes just haven't been discovered yet.
This was some of my first thinking when I posted the original link - the importance of hardening VMs for agent isolation, and the risk that bugs like this pose in legacy code - especially C codebases.