News for hackers. Stuff that matters.
Re:Ask HN: What do you use VMs for regularly? by fsflover on Tuesday June 21, 2022 @08:58AM (#31823361)
I'm using VMs for everything. Disposable, self-destructing VMs for untrusted browsing. Network VM solely for connecting to the Internet, Firewal VM for isolating the network from other parts of my system. Work VM for everything connected to work. Archive VM (with no networking) for storing important files. Banking VM for managing bank accounts. Zoom VM for isolating Zoom from the rest of my system. And so on.

All this works with a great, unified interface on Qubes OS (https://qubes-os.org). See also: https://forum.qubes-os.org/t/how-to-pitch-qubes-os/4499/15.

Re:Ask HN: What do you use VMs for regularly? by midenginedcoupe on Tuesday June 21, 2022 @12:50PM (#31826151)
Me too!

It's nearly worth it for avoiding Google's terrible account switching UX alone :)

I've been using QubesOS as my daily dev machine for a couple of years now. No regrets. I really like that I've set up each of my clients' work in their own VMs, so there's no way one can pollute the other.

Switching back to macOS is a relief for some tasks, but it feels dirty smudging all my different types of task into the one OS again.

Re:Ask HN: What do you use VMs for regularly? by omitmyname on Tuesday June 21, 2022 @09:36AM (#31823765)
What about security? I always thought that it's easy to get into vm from host, but it way harder to get to host from vm. I thought about using VM for security things, but the idea that it easy to get inside vm keeps me from doing it
Re:Ask HN: What do you use VMs for regularly? by andrey_utkin on Tuesday June 21, 2022 @10:08AM (#31824131)
> I always thought that it's easy to get into vm from host, but it way harder to get to host from vm

That's right.

> but the idea that it easy to get inside vm keeps me from doing it

No! Of course the host is the ultimate dictator. Just don't do untrusted operations in the host context. Have low-trust, low-connectivity, low resource level VM for untrusted work.

Re:Ask HN: What do you use VMs for regularly? by no-dr-onboard on Tuesday June 21, 2022 @10:12AM (#31824171)
You might have it backwards. Most people typically do untrusted actions inside the VM and keep their host “clean”. You’re correct though that VM escapes are pretty difficult, especially with modern, patched microcode processors.
Re:Ask HN: What do you use VMs for regularly? by a1xndr on Tuesday June 21, 2022 @12:01PM (#31825482)
> VM escapes are pretty difficult, especially with modern, patched microcode processors

Most VM escapes happen through buggy virtual-devices written in C/C++/.. code. Virtual-device bugs that are exploitable by attackers with root access in the VM are found frequently.

Re:Ask HN: What do you use VMs for regularly? by fsflover on Wednesday June 22, 2022 @05:08AM (#31833591)
It's not frequent at all with Qubes hardware virtualization: https://www.qubes-os.org/security/xsa/.
Re:Ask HN: What do you use VMs for regularly? by danuker on Tuesday June 21, 2022 @11:08AM (#31824812)
> modern, patched microcode processors

This makes me wonder how many security holes CPUs have which have been buried into secrecy by the manufacturers.

Re:Ask HN: What do you use VMs for regularly? by fsflover on Tuesday June 21, 2022 @11:37AM (#31825164)
You are right. The host on Qubes OS (dom0) has no networking and never runs any software by default. Also, hardware virtualization which Qubes uses last time was broken in 2006 by its founder: https://en.wikipedia.org/wiki/Blue_Pill_(software).
Re:Ask HN: What do you use VMs for regularly? by jeroenhd on Tuesday June 21, 2022 @02:43PM (#31827491)
The hypervisor problem can be solved (in theory) with secure boot configured with custom keys and full disk encryption. I don't know anyone who actually uses Qubes so I don't know how practical that solution is. Coreboot has something similar to secure boot, so even if you use an open source boot loader, this can be done.

An attacker would need to do some quite invasive hardware tampering to get a third party hypervisor to work on a system secured like that.

Furthermore, preventing hypervisor detection requires constant updates if the OS itself is configured to check for the presence of a hypervisor. There's a constant arms race going on between security researchers and cybercriminals who don't want their malware to trigger on analysts' machines, many of which use virtualization to easily reset the system back to a known, secure state. Every time malware comes up with a new method of detection your evil hypervisor needs to be patched to fake that stuff too or you risk detection next time the OS updates its detection algorithms.

Re:Ask HN: What do you use VMs for regularly? by fsflover on Wednesday June 22, 2022 @05:30AM (#31833710)
Re:Ask HN: What do you use VMs for regularly? by LanternLight83 on Tuesday June 21, 2022 @03:28PM (#31828071)
I just wish Qubes had a simpler architecture, such that dom0 and the Qubes Components could be implemented in eg. Guix or Nix instead of a traditional distro. Love Qubes' desktop integrations.
Re:Ask HN: What do you use VMs for regularly? by fsflover on Tuesday June 21, 2022 @04:51PM (#31828976)
What do you think prevents changing the distro in the Qubes components? AFAIK it's totally possible, see this: https://github.com/QubesOS/qubes-issues/issues/1919.
Re:Ask HN: What do you use VMs for regularly? by LanternLight83 on Wednesday June 22, 2022 @12:39AM (#31832080)
Oh, what an issue! There's plenty of context in there, and it's right up my alley. Thanks!
Re:Ask HN: What do you use VMs for regularly? by slenk on Tuesday June 21, 2022 @03:13PM (#31827889)
Oh man Qubes looks awesome. I am just addicted to a windows game that doesn't have any linux support :(
Re:Ask HN: What do you use VMs for regularly? by fsflover on Tuesday June 21, 2022 @04:47PM (#31828941)
Depending on your hardware, you could try GPU passthrough.
Re:Ask HN: What do you use VMs for regularly? by pvinis on Tuesday June 21, 2022 @08:28PM (#31830681)
is that with virtualbox or something?
Re:Ask HN: What do you use VMs for regularly? by fsflover on Wednesday June 22, 2022 @05:05AM (#31833566)
With Qubes OS, the context of this thread.