3 ms·
...which is a big reason why I find it insane that people aren't more interested in microkernel (or unikernel+hypervisor, which ends up in the same place) desig
by derefr 11y ago
...which is a big reason why I find it insane that people aren't more interested in microkernel (or unikernel+hypervisor, which ends up in the same place) designs.
If you can have a tiny trust-kernel that has been proof-checked, keep everything else outside of it, and the things outside of it can only communicate with (or even observe) their peers via messages sent through it, then you don't need to worry about including untrusted code in your app.
Instead, you just slap any and all untrusted code into microservices (microdaemons?) in their own security domains/sandboxes/VMs/whatever, and speak to them over the kernel's message bus (or in the VM case, a virtual network), and suddenly they can't hurt you any more.
- dmix 11y agoDo you have any examples of this type of approach being used in any projects? I'd be curious to check out how it works code-wise.
- nickpsecurity 11y agoI link to quite a few microkernel-based examples in the recent post below. Skip to my reply to @Thoth with all the links. https://www.schneier.com/blog/archives/2015/05/friday_squid_bl_479.html#c6697743 https://www.schneier.com/blog/archives/2015/05/friday_squid_...
- dlitz 11y agoI'm not sure if this matches the description, but seL4 supposedly has a pretty well-developed proof system: https://sel4.systems/ https://sel4.systems/
- tptacek 11y agoWorth keeping in mind that L4 kernels do much, much less than conventional operating systems. They're more like libraries for building useful OS's on top of.
- jeffreyrogers 11y agoI think the problem is that operating systems aren't that useful until they have applications and a userbase. Some projects (like Mirage[1] and a few others) try to get around this by building on top of Xen, but that creates a lot of friction. [1]: http://openmirage.org/ http://openmirage.org/
- nickpsecurity 11y agoThis is true. It's also why most serious projects are paravirtualizing OS's such as NetBSD or Linux. QNX and Minix 3 leverage code from NetBSD. Most of the L4's do a L4 Linux that runs Linux in user-mode on the tiny kernel. I link to specific examples in another comment here. Even the CHERI secure processor project ported FreeBSD (CheriBSD) to it for the need to keep legacy software. That's a serious issue that's killed a number of past projects. At least many modern ones learned the lesson and are acting accordingly.