441 points · by ploggingdev · 9y ago · 144 comments
[1] https://blog.invisiblethings.org/
[2] https://blog.invisiblethings.org/papers/2015/state_harmful.p...
[3] https://blog.invisiblethings.org/papers/2015/x86_harmful.pdf
I think realistically state is hard to avoid unless you are using disposable read-only memory.
Example, found through Qubes website: http://pete.akeo.ie/2011/06/crafting-bios-from-scratch.html
Seems like she'd have more effect designing hardware.
Qubes' design means hardware and software are all separated so a vulnerability in one doesn't mean exposing another.
I like that in their docs they mention an approach they take and when it isn't secure[0]
That being said the main point of security contention is the admin (dom0).
Between the twilight of Moore's law, and the success of open-source software, I just don't see that much long-term value left in x86+PC.
https://blog.invisiblethings.org/papers/2015/state_harmful.p...
She is working on hardware but that is not as easy to bring into the wider world.
A: Stinkier without, therefore Qubes.
I'd consider betting on one of those things being solid on its own, but not all of them together.
The closest you can get to Qubes on Windows would be to follow Microsoft's Privileged Access Workstation (PAW) guide, but it requires a lot of additional infrastructure[3]. That infrastructure allows you to do remote attestation of the virtual machines, but makes it costly to deploy in a SMB or homelab environment.
I don't expect it'll be very long before PAW and WDAG are usable at the same time, with colored window borders indicating the origin virtual machine. I hope this is on Microsoft's roadmap.
Video on privileged access workstation use, starting at a demo: https://youtu.be/3v8yQz2GWZw?t=41m48s
Video on privileged access workstation setup: https://www.youtube.com/watch?v=aPhfRTLXk_k
[1] https://docs.microsoft.com/en-us/windows/threat-protection/w...
[2] https://clearlinux.org/features/intel®-clear-containers
[3] https://docs.microsoft.com/en-us/windows-server/identity/sec...
It's unmaintained now, but it is basically the same idea as WDAG. Essentially similar to firejail but the container gets its own lightweight kernel and runs in a stripped down VM, so the attack surface is KVM, not all parts of the kernel that aren't firewalled off by SECCOMP.
1) Support anything other than Edge/its own apps
2) Allow the feature to be accessed by users of all Windows editions
I understand for now it's still experimental and whatnot, but I'm not getting my hopes up.
lol. the whole point of an airgap is that you can very easily -at a glace- verify that the system is secure because there's no inputs/outputs to/from it (air gapped). trying to implement it using a hypervisor turns it into a buzzword.
Did you know if you force remove Edge from Windows 10 it will forever after ignore the "always use this" checkbox and prompt you to choose your default browser every time the browser is called from a link in an application?
NixOS has containers that show how this could work, but they're only via systemd-nspawn, so not as jailed as Qube's domUs.
This means you can run Genode on NOVA with VirtualBox 5 fully integrated as the VMM, all with the improved Noux/POSIX interop components in place, and have a decent package management solution (that handles API compatibilities, multiple version installs, src vs binary deps, packages, and more). There's also Xen support with the most recent release (for cloud appliance work with Genode)
What's more, based on the roadmap and challenges, they should be bringing VirtualBox5 support to the seL4 kernel, and they even have a goal for being the virtualization foundation of QubesOS. https://genode.org/about/challenges
With the recent toolchain update and new package management system, its easier than ever to cook up your own Genode-based systems.
a) tweak compilation flags of libraries & apps
b) describe full set of runtime config files of an app
and thus build a single full configuration of a whole system, like in NixOS.
Hm; or can this maybe somehow be solved with the "run scripts" mentioned at the end of the article? I'm even less than a noob with regards to Genode, so I'm not sure about that.
Or does the package manager only provide Nix-like functionality, with no way for NixOS-like features?
I've also been looking at how projects like Hypercontainer and Clear Containers achieve minimal VM overhead to expand the model to a per-application-instance VM.
Another interesting enabling technology is VirtFS, which can be used for filesystem-level storage virtualization to gain the many benefits of COW and shared caching.
The principal question then is how to allow interaction between different application instances without the user having to manually ferry files between them, as it currently happens with AppVMs on Qubes.
Is chromes process per tab model restricted? Forking and piping in general perhaps?
Currently all applications assume they get access to everything by default, so even if one was to be able to implement a confirmation dialog, the user would be victim to a battery of requests.
This is not to mention that isolation excludes discoverability, so users would have to manually make files visible to other applications beforehand.
I have separate vms for media and browsing, for music (spotify), development (python, rust), skype, personal email, work email and password manager.
It needs 16gb of ram to be able to run all of these at once and about 150gb of disk if you actually create separate template vms.
My only real pain was coping and pasting between all of these vms (you need to ctrl+c then ctrl+shift+c for copy and the ctrl+shift+v, ctrl+v for paste [1])
I solved that with a custom solution that automatically distributes the clipboard contents (for text only) to multiple vms (depending on the source of the clipboard change). I know it defeats the purpose of isolation for the clipboard but it's ok for my use case.
I encounter an equal amount of complexity in my KVM workstation as I did in my Qubes workstation, and more problems.
For example, lack of a secure copy/paste mechanism, meaning I must type passwords by hand to avoid every VM being exposed to the clipboard.
Thankfully, better designs such as seL4's VMM do exist, although it might need a little more work [1] until usable for the purpose.
https://groups.google.com/forum/m/#!topic/qubes-devel/jEe4pQ...
> It seems one major residing problem with KVM is the Linux kernel (which is large and vulnerable). A port of KVM to a thinner base layer would obviate those issues.
http://os.inf.tu-dresden.de/papers_ps/liebergeld-diplom.pdf
Complexity was still yoo high. Most in high-assurance security were trying stuff like Nova microhypervisor as a result. KVM on separation kernels might be worth further investigation for these platforms that will stay on KVM regardless.
(disclaimer: working at Google on virtualization security)
I mean, the US government no doubt had influence on the Trusted Computing Group (too bad the EFF totally shunned it), and through the magic of product binning and chip fab costs, we all have trusted platform modules.
ASLR currently seems wimpy.
I'm certain you are in a position to accomplish a great deal, no matter where you are in the hierarchy. Maybe the future is x86 hardware emulation for user mode processes.
I haven't used Xen for a while, but seemed to recall that Amazon forked it way back in the 3.x days and had been doing their own incompatible thing with it since then.
Corrections welcome of course :)
150kLoC is quite a bit for an hypervisor.
https://secure-os.org/pipermail/desktops/2015-November/00000...
Unlike the nitty gritty of how the sandbox works, the IPC changes often with new releases. And quite frankly it isn't as fun, cool, or interesting as VMMs or other sandboxing techniques, so a lot of the time it isn't given the close eye that it should.
I do not think so.
It's a pretty deep rabbit hole if you really want to go down it. You can make a case for not trusting any CPU that you didn't design and fab yourself, and even then you have to watch out for your own mistakes and bugs that can be used against you.
I've been using KVM/Xen/VMware for some time and always enjoyed it. And since Amazon and Google especially are going all in on KVM I'm surprised to hear the Xen is a better choice.
KVM is, like VMware, a Type 2 hypervisor. [1]
Xen is a proper Type 1 hypervisor.
[1] https://microkerneldude.wordpress.com/2010/10/14/much-ado-ab...
I guess it's your use of 'proper' that bugged me.
Sorry for not googling before asking...
Tiny hypervisors like NOVA http://hypervisor.org, seL4-based are the ideal solution, but sadly no one seems to be pushing to make them usable and production-ready :(
This means that, if you use this OS on a laptop, you'll be vulnerable to cold-boot attacks, even after you close your lid, unless you configure it to shutdown on lid close. (I.e., if a highly skilled adversary steals your laptop then, even if your laptop lid is closed, they will be able to read your RAM and therefore decrypt your entire hard drive.)
Despite the major security implications, it doesn't sound like a fix will be implemented any time soon. [1]
To defend hibernation/shutdown: if I lose my laptop or it is stolen, and I realize I will never see it again, then at least I will have peace of mind that no one can ever recover the data, assuming I had a strong password.
An evil maid attack assumes I will have the laptop in my possession again. This is a different problem, and requires different measures to defend against. I'm interested in hearing why you think leaving a laptop in sleep mode protects it from an evil maid attack.
I don't have any bars on my windows to prevent that.
You need to draw the line somewhere.
I do. And, if I have a choice, I'd rather not have to wonder if this data is in the hands of a stranger after my laptop is stolen.
My Linux OS can hibernate, and I've not found it to be noticeably inelegant or inconvenient. I suppose others' opinions may differ.
[1] https://puri.sm/shop/librem-13/ - see the Operating System choice
You can have a separate "qube" that is not connected to the network where you would store your passwords, etc.
I'm still not sure than there's a market for this stuff. It must be free, and it's hard to build a business model around that.
https://www.qubes-os.org/doc/certified-hardware/
Is anyone running this on a laptop? I get the feeling after reading that page that this is really strictly desktop only. Maybe the page has not been updated in a bit?
The certification requirements are higher, but that's basically if people want to stick the Qubes-certified label on their devices, signaling to customers that it measures up to the highest standards of security.
They're not necessary to run Qubes, they're just ideal.
Alternatively, consider not running a full-blown desktop or using Windows, which has grown a lot more secure since the Windows XP pre-SP2 days.
OpenBSD -> Secure & minimal Server
OpenBSD doesn't have the isolation and hardening on the desktop apps, as Qubes has.
For this article's target audience, Qubes OS is the better choice.
Considering the researchers who actually disabled IME require physical access to the machine[1], Purism's claim that they can do it to previously sold devices with only a software update[2] stinks of BS to me.
[1] https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide/Di...
[2] https://puri.sm/posts/purism-librem-laptops-completely-disab...
Also the post you linked to directly gives credit to me_cleaner and Positive Technologies.
The reason the researchers required physical access:
> Although some systems do allow the full contents of the BIOS flash chip to be reprogrammed using software tools only (so called 'internal flashing'), on most PCs this facility is either completely unavailable, or can only write to the unprotected areas of the flash filesystem (excluding the ME area), or will only write vendor-signed images. Accordingly, we will describe the approach of using 'external' flashing in this guide, as that is the most reliable.
Purism being, uhhhh, the vendor, allowed full write access.
God knows, there are several other embedded CPUs in the thing that have who knows what kinds of vulnerabilities... but better is better.
https://www.qubes-os.org/news/2017/10/23/qubes-40-rc2/
Some exciting changes are coming:
https://www.qubes-os.org/news/2017/10/03/core3/
https://www.qubes-os.org/doc/releases/4.0/release-notes/
EDIT: Downvotes for providing relevant sources, really?
Sometimes the downvotes on HN make no sense. Looking through your comment history there are a number of recent comments that were unfairly downvoted. Just a guess, but I wouldn't be surprised if it was the same people doing it.
I only just now downvoted you.
From [0]:
> Please don't comment about the voting on comments. It never does any good, and it makes boring reading.
Wouldn't you want the keys on the computer that's going to use them? And then, wouldn't you want to make it hard to copy the unencrypted private keys?
(I'm assuming we're talking about SSH keys.)
OTOH, it could be neat to run an ssh agent in a key-holding qube and forward that to whatever qubes need to use your SSH keys, using `ssh-add -c` so that key use must be confirmed in the key-holding qube.
If you are victim of such an attack, the encryption of the file is broken as well.