by jszymborski · 10y ago · 0 comments
Sure, if you have a rogue application on your computer, it can access the GUI of a program whose security is critical (e.g: a password manager), but even if all the GUI were isolated, you've still got a rogue program on your comp.
All the security posts I've ever read have pretty much told me that once you're running a malicious program, then it's game over, your system is owned by your adversary and the only good way to move on is to wipe the drives, and start fresh. Why then worry about GUI isolation? If the GUI is isolated, a rogue program can presumably uninstall your secure GUI server and replace it with another!
This blog mentions Qubes, which is cool and does mitigate the rogue program from what I understand, but anything short of isolating whole applications from each other at the hypervisor-level, is fussing about the wrong thing IMHO.
Then again, I'm not a security professional, so what I've said is likely all wrong...
There's no reason that can't be true of actual OSes. All programs could be sandboxed by default. But they just were designed under the assumption that all app makers would be good and no one would ever download and run malicious programs. Yeah, right.
read, write, sigreturn and exit
This is used by many browsers and apps to reduce the impact of security flaws and untrusted code (such as js from a website).
QubesOS is in that category. It's technically called a Multiple Single Levels (MSL) of security system. The isolation tries to keep problems in each VM.
But X is the one thing that can't be done well by those because granting access to the unix socket that's needed by X means leaving the barn door wide-open.
I don't think it's that simple, all or nothing. Security is not a boolean. Consider defense in depth [0].
edit: Security is just a price to hack you. You can increase it by adding additional problems to an adversary.
[0] https://en.wikipedia.org/wiki/Defense_in_depth_%28computing%...
That's the default case, because any program that has bugs and takes foreign data has to be considered untrusted.
>All the security posts I've ever read have pretty much told me that once you're running a malicious program, then it's game over
Well, isn't that because of gaping holes like in the X11 design besides any bugs?
> anything short of isolating whole applications from each other at the hypervisor-level, is fussing about the wrong thing IMHO.
Unless it has bugs, too. (And if it doesn't because it is simple enough, it will evolve to send mail and eventually get bugs, or the applications are just monoliths that can't be well hypervised)
It's been almost two decades since unix systems were routinely used in true multi tenancy situations with untrusted tenants. Since then nobody has paid any attention to this aspect of security.
Is there anything wrong about this?
No, X11 won't provide it for you, but browser will.
It is one part of the puzzle of sandboxing software on a machine. But is certainly not the entire solution.
But with the App Store walled garden craze came a much better idea: let's end this "all programs having full run of the filesystem" nonsense and sandbox them, such that it is very hard for a user to compromise his entire machine by installing one bad program. iOS has always been this way, App Store OSX apps are increasingly this way (already has filesystem sandboxing), I believe Windows App Store is pushing this direction, Android has this to an extent, etc.