275 points · by tambourine_man · 4y ago · 181 comments
It's especially bad with the crap programs on Windows that encoded videos and the like.
Or literally open the iPhoto Library folder and go rescuing your photos. There are all sort of thumbnail versions in there for performance, so you'll have to discover the folder hierarchy to find your originals, but they're there.
Since it is immutable, restarting the VM will clear all files back to a clean slate.
macOS has app sandboxing built-in, but it is not as good as a VM.
I’m curious why this isn’t a more popular setup? Running a browser in an isolated VM seems like it should be a best practice. Does anyone else run a similar setup?
But if you're that careful, what is the VM really doing for you, and why the hell are you even exposing yourself that much? Just use Lynx or something.
The real solution is this: Install Firefox, install noscript to nuke all javascript, install ublock too, and get a password manager. Selectively allow any webpage interactivity, as necessary. The world isn't a Tom Clancy novel so you don't actually need to do anything more than this to be very secure and on top of almost all active threats.
Ultimately to achieve what we all actually want (strong isolation guarantees that would prevent a full browser exploit from both A) your SSH keys from getting stolen and B) also your gmail spool from being attacked, and let's be honest, B is the worst case scenario) requires a rethinking of the fundamental software stack from OS to user-visible applications. No amount of Browsers-in-a-VM are a substitute.
Yes running a VM won’t protect against this threat.
Running a VM will pretty much eliminate that 0-day from infecting the host OS, where it could become a persistent threat and have access to a range of sensitive data.
This is not security theatre. You just have incomplete threat modelling here.
https://www.securityweek.com/chrome-sandbox-escape-vulnerabi...
Web browser sandbox escape just by viewing a HTML page. Not common, but it happens.
Security is about risk management and levels of protection. Saying locking your door is useless because someone might drive a car through is not going to help anything.
[1] https://nakedsecurity.sophos.com/2020/06/12/facebook-paid-fo...
Maybe I'm missing something, but I'd love to know why this doesn't make good sense. Each VM is isolated from the others and also from the host OS.
Obviously I'm not saying 2FA isn't good, and doesn't mitigate some clearly related attacks like raw credential theft (whether or not the browser is exploited, obviously.) My position is just that browsers-in-VMs is a mostly roundabout threat model whose actual benefits (such as some semblance of filesystem isolation) can be achieved other ways. The things these approaches can not fix are otherwise systematic issues that require major redesigns to achieve.
Qubes is super cool. It's just a pity that it also imposes a bit too many constraints (especially related to USB keyboard... For security reasons) and performance penalties to make it a realistic alternative for me
Downloads are a primary usage in the browse for me, and copy/paste is too.
Do you not find that this and the ‘control v’ versus ‘command v’ thing drives you mad?
How do these (relatively minor) things get solved? Key remapping might do the latter.
Downloads -> writable storage, e.g. network directory or local mutable disk.
Same can be down for the browser profile directory, if that doesn't weaken your local security goals.
And one that most people never deal with? At least from a browser exploit…
Take it with a grain of salt though as they ship their own VM now too :) https://www.openbsd.org/faq/faq16.html
TLDR: P(non-root-vm-breakout-not-requiring-app-breakout) < P(app-breakout) and P(non-root-vm-breakout) < P(local-pe | system-service-exploit)
My employer requires a certain unpopular remote access client suite that installs unnecessary background services running as root. The reliance on a certain unstable audio streaming plugin for skype calls makes everything harder to work on a VM.
Performance is acceptable, even for videos and the like. I'm sure it's considerably slower, but it works for me. I also see adding a bit of a speed bump that mentally distances the web from my main computing environment as a benefit.
I do a fair amount of upload/download of docs and images. And some of the "cookie pre-fills stuff for me" is useful. I know you can work around all that, but I'm lazy. I suspect more lazy people like me is the primary reason it's not popular.
At least they run their own servers, instead of using a public cloud provider.
e.g. the most recent iOS 15.3.1 security update for iPhone 6S and later devices, https://support.apple.com/en-us/HT213093
> WebKit: Processing maliciously crafted web content may lead to arbitrary code execution. Apple is aware of a report that this issue may have been actively exploited.
edit: in addition to native virtualization, as noted below
- Hardware accelerated virtualization using Hypervisor.framework and QEMU
- Boot macOS guests with Virtualization.framework on macOS 12+
So, it does use Virtualization.framework for macOS guests.
(macOS 11.3+ Only) Bridged networking and shared networking support.
Fusion and Parallels are expensive (and I personally don’t love the interface anyway), and I’ve found UTM a pain to setup. I’d like to just take an Ubuntu ISO (or macOS image) choose a disk size and be on with it. Preferably with support for snapshots, but not required.
I spent a while searching for projects but most are no more than (not actively maintained) proof of concepts.
Do note that the framework for Linux asks for a kernel+disk rather than an ISO. I don’t support it at the moment (the project is macOS-focused) but it wouldn’t be too hard to add support for.
Why? I've had some issues with booting before, but in general UTM is the simple QEMU front-end for macOS for me, a lot like Boxes for Gnome.
Maybe it's a loss leader product now, get individuals into it so that they will ask for it at work.
https://developer.apple.com/documentation/virtualization/run...
I was watching the github actions launch issue around macOS to see how they would handle the licensing issue[1]. In the end GH/MS didn't comment due to some "NDA" -- would be easy to state if they went the license route so...
[0]: https://github.com/actions/virtual-environments/issues/1814
[1]: https://github.com/actions/virtual-environments/issues/2604
I could imagine them slicing those machines using virtualization, licenses permitting (apparently the 24 hour requirement is from Apple's license agreement.)
I had a version of this working months ago but it was pretty useless without iCloud or my developer account.
I guess I should test it.
Or is my setup not what you’re describing?
A few years back I built the vm infrastructure for a CI/CD platform for iOS and macOS app developers. It wasn’t easy to do this in a technically and legally well supported manner.
Why is Apple supporting this use case?
Interesting -- any more documentation around this to take a look at?
There are also several macOS cloud service providers - including Amazon/AWS, which even has M1 instances.
I expect the secret that makes it easy and license-compliant is running on Apple hardware (presumably Mac mini.)
What about AWS, Macstadium, etc.?
"The OS X EULA does allow for OS X to be virtualized on Apple hardware as both host and guest. This is why (as you note) VMware Workstation does not support OS X virtualization, but Fusion, ESXi, and vSphere do. All versions of VMware's apps check to ensure that you are running on Apple hardware and you are running a supported OS (as not all versions of OS X allow virtualization)."
I am trying to get Snow Leopard+Rosetta virtualized under Mac OS 10.10 Yosemite, as well as get Mac OS 10.8 Lion to run under Snow Leopard ( software requirements, and supporting PowerMac application, Freehand ).
Its a total complete uphill battle, that apple does not want to happen:
"You are completely correct that the EULAs are unclear about the question of running 3+ OS X VMs on a single OS X host. This is a legal question, and not a technical one. For that matter, so is the limitation about which versions of OS X can be virtualized (ex: 10.6 virtualization requires the Server edition, and all VMware applications block you from virtualizing the Standard edition)."
So, it actually is true, and there is proof in VMWare's documentation.
Shall I quote that too?
It’s true that “once upon a time” it wasn’t supported, but those days are long past.
It's required to run iMovie to try to resurrect an old project
VMWare for a long time doesn't support it, but not sure what capabilities Qemu has for GPUs emulation?
Parallels has exceeded my every expectation and seems to be full of “It just works!” Presently running an instance of macOS 10.8 (Mountain Lion) in Parallels 17, but I don’t know if it offers GPU support.
Maybe check using a trial version?
Looking at the examples - quite verbose!
let virtualMachineConfiguration = VZVirtualMachineConfiguration()
virtualMachineConfiguration.platform = createMacPlaform()
virtualMachineConfiguration.bootLoader = MacOSVirtualMachineConfigurationHelper.createBootLoader()
Why not "VMConfigHelper.createBootLoader()" over "MacOSVirtualMachineConfigurationHelper.createBootLoader()" ?I personally quite like it, but it can be jarring for people coming from other languages.
- i or idx is often preferred over index
- fn or fun is often used where function is a reserved word
That said, I’m also cognitively sensitive to column width. I’m not “80 columns or fight”, but I definitely find longer lines of code challenging to follow. As such I prefer to balance verbosity by deferring to the context (lexical scope, imported module name/hierarchy, file name/path, general contextual assumptions that you’d already need to be effective in the codebase).
I find both extremes jarring, and there’s usually an opportunity to optimize for both local understanding and reading without reaching those extremes (of course at the expense of keystrokes/autocomplete pitfalls, but once you’ve embraced verbosity at any level that’s assumed).
I thought Parallels would be using the MacOS virtualization framework? If not, it will be interesting to compare how other systems perform.
Well, the very first time a Mac sees an app, there are special GateKeeper error codes that are never repeated... so if you are unfortunate enough to not know this and test your app on all the Macs you have in your possession, and still can't identify the bug, it was most likely error coded at the very first run time...
To which the solution is make a VM or do all the un-niceties of removing the special security from the Mac, safe boots and all.