5 ms·
All desktop apps have access to everything. Your download manager can also unlock your browser's saved passwords, read your emails, copy your SSH private key, i
by geofft 11y ago
All desktop apps have access to everything. Your download manager can also unlock your browser's saved passwords, read your emails, copy your SSH private key, intercept your IMs, spoof your bank's website, etc. Some of these attacks are more difficult and leave more of a chance of detection than others, but they're all possible.
This is widely considered a mistake, but it's also an implication of steady backwards-compatibility in app design -- and in many cases, code -- since the late 1980s. No one expected Lotus 1-2-3 to steal your WordStar documents, partially because neither of these were networked. So the OSes told Lotus 1-2-3, WordStar, and anyone else who came along that they had access to the entire drive and they could be designed as if they had that access, even though they didn't need it. Apps could ship their own Open dialogs; the OS trusted that they would only open files they were told to. A quarter-century later, the Windows and Mac App Stores are trying to reverse this, but the app developers are understandably grumpy because they have a quarter-century of code that never had to deal with such a design principle.
And the Windows and Mac App Stores are attempting to reverse this by reference to mobile app stores. Mobile platforms, being an entirely new mental model for both developers and users, could abandon lots of the design principles that make sandboxing hard. There is absolutely a reason why no mobile app has a desktop-style Open dialog: the OS doesn't trust it with that power. There is also a reason that the mobile AV industry is a tiny fraction of the desktop AV industry, despite mobile use having outpaced desktop use.
- TeMPOraL 11y ago> This is widely considered a mistake Is it? I've heard voices, but I didn't realize it's a very popular opinion. Personally, I think it's a feature and what makes desktop useful as a tool, as opposed to mobile devices being mostly toys.
- interpol_p 11y agoSandboxing and App Stores do not prevent powerful software tools being developed. You can have first-class video editors, painting and photo manipulation, and coding environments. You might not be able to do absolutely everything you could with unfettered access, but that hardly leads to "mostly toys." The nature of mobile apps stems far more from the use case of the devices (user attention measured in seconds, rather than minutes) than limitations of the software development platforms.
- karmelapple 11y agoThe sandboxing of mobile apps - at least on iOS - was always sold as a feature that respected this handheld computer was also a phone, and needed the voice chat reliability of a pre-smartphone. If you have any suspicion that installing an app will cause your phone call with your grandmother to be interrupted, you will really scrutinize what you install. Early Android devices tended to have more problems than iOS devices when it came to phone calls getting interrupted, so whether this was marketing making an excuse for something Apple wanted on s technical level, it seems sandboxing was with the use case of "keep the phone working" firmly in mind.
- userbinator 11y agoSandboxing and App Stores do not prevent powerful software tools being developed. You can have first-class video editors, painting and photo manipulation, and coding environments I don't doubt that - but the problem is that everything you do with one app must almost always stay within that one. It's only when you want to exchange data between apps that all the power of the traditional full-access model really shines, and the reason why people have resorted to some horribly inefficient workarounds (e.g. upload to some server on the Internet from one app, then download the data in another) to do this.
- interpol_p 11y agoThat's not an insurmountable problem though, and sandboxed environments are getting better in this regard. E.g., it is now possible in iOS to launch one application from another which edits the source document directly — not a copy. That said, the notion of a file system isn't inherently incompatible with sandboxing. If you allow the user to grant permission on a per-app basis whether those apps can read/write to a common data store, you essentially have the benefits of a local file system in a way that does not break sandboxing. You only want to sandbox apps to keep them from touching the OS and other private app data. If it is user-permitted for them to touch a common data store then that means data does not always have to stay within the app in which it was created.
- 11y ago
- danielheath 11y agoI tend to think of systems which don't sandbox each process effectively as 'toys' since I can't meaningfully trust them to run code I haven't audited.
- TeMPOraL 11y agoYou can't trust sandboxed systems either, and honestly, who ever audits the code they run? "Auditing code" is a smart-sounding phrase that is meaningless to 99% of users. Also, have you audited your sandbox's code yet? I consider mobile apps toys because they're designed to contain and own your data, and that impares both the ergonomy of work and limits your capability for doing things to whatever is available in the MVP some startup released. Most apps don't evolve past the point of MVP.
- reitanqild 11y agoA chainsaw is also dangerous. You have to know how to use it and you should use protective gear. Definitely not a "toy".
- h1282227 11y agoIn other words. Real scissors are toys but plastic scissors are not toys since you can't hurt yourself with them.
- johncolanduoni 11y agoI think the mistake (at least in today's world) is that un-sandboxed is the default. Even as a power user, I would like if most of the GUI programs on my computer (web browser, word processor, etc.) were sandboxed, so I can focus most of my scrutiny on my IDE, toolchains, etc. The other aspect is that programs are traditionally really bad at being conscientious about your system, even when not being malicious. Windows programs have a tendency to put files wherever they feel like, although UAC has helped this to some degree. Plus, every program and its brother has its own update system that absolutely must run in the background constantly, even when I'm not using it.
- TeMPOraL 11y ago> I think the mistake (at least in today's world) is that un-sandboxed is the default. Even as a power user, I would like if most of the GUI programs on my computer (web browser, word processor, etc.) were sandboxed, so I can focus most of my scrutiny on my IDE, toolchains, etc. As a desktop user I need little to none scrtuiny. My web browser, IDE, toolchains, IM, video player and computer games all work together well and while technically any one could own any other, this simply does not happen. It takes some (little) skill to avoid obvious malware, and then generally you're fine. On the other hand, I get to open my video file in my IDE, edit IM's data files in a word processor, and move things around seamlessly with OS; everything is expected to work and no program tries to lock me in. > The other aspect is that programs are traditionally really bad at being conscientious about your system, even when not being malicious. I don't think much has changed here. Phone apps are also not conscientious; they fight for your attention with other apps and with the entire operating system. The changelog of both Android and iOS is full of things done against app developers, because many popular app developers are willing to do anything imaginable to get your attention (and thus ad money). My point is - the problem isn't with sandboxing itself; it's with the web and mobile ecosystem that makes developers work against the interest of users, instead of for it. The sandboxing is just a symptom - something that is being done to mitigate the damage of greedy "entrepreneurs". Desktop environments don't need that much sandboxing because there isn't that much crap going on. I think the fact that desktops originally weren't connected to the Internet is a reason we've started with an open system, but it may be worth preserving this flexibility even in the Internet era.
- Too 11y agoSandboxing doesn't necessarily mean that you can't share files/data between programs. I think it's easy to mix these up because ios hides the file system for you. I would very much like both visual studio and notepad++ to be able to edit the same .cs file but i don't want notepad++ to have internet or GPS access because it has absolutely no reason to.
- TeMPOraL 11y agoSandbox all you want but give me root level access then. Notepad++ may not need the GPS or Internet access[0], but I need it to be able to edit Visual Studio's config files when I ask it to, without having to ask VS for permission. Don't let programs have magic databases that are inaccessible by users. [0] - most desktop software doesn't need Internet access; even most mobile software doesn't need it in principle, it's only because of lazy business models that they have to have it.
- danieldk 11y agoSandbox all you want but give me root level access then. Notepad++ may not need the GPS or Internet access[0], but I need it to be able to edit Visual Studio's config files when I ask it to, without having to ask VS for permission. Don't let programs have magic databases that are inaccessible by users. OS X solves this quite elegantly. If an application is sandboxed, it cannot access files outside the sandbox directly. However, when an Open (or Save) dialog is requested, it is handled by a privileged daemon outside the process (it used to be pboxd). This daemon then makes the file or directory available in the sandbox after selection. You still get app isolation, but it does not impede the user experience. (Of course, it does not apply for every scenario, but sandboxing is not a requirement outside the App store.)
- izacus 11y agoThere are several very useful OS X applications and tools that are not available on MAS BECAUSE Sandboxing doesn't let them do their job. E.g. Finder replacements, tools like Alfred, BootChamp, etc.
- 11y ago
- ploxiln 11y agoThe problem/difference is that mobile apps are like websites. You might want to "visit" any one of them, even if you're not sure you trust it. You want to see what it has to offer. You expect the app to represent some company's interests, not your own. It might have ads! You shouldn't download and run random executables on your Desktop OS though. Ideally, you only install open-source software, from a fairly secure repository, using a package manager which knows exactly which package is responsible for each and every file outside your home dir ... That's a not-quite-attainable ideal, but some people get quite close to it.
- userbinator 11y agoThe problem/difference is that mobile apps are like websites. From what I've heard, a lot of them really are websites, as all they do is wrap the OS's browser control and open it to the specified website. In other words, they're nothing more than enormously bloated browser bookmarks. That is a problem, but I think it's more attributable to the lack of support for adding browser bookmarks to the home screen than anything else since the only reason they exist is so people can go to some company's website more easily. That said, a sandboxing feature for the apps you don't necessarily trust is certainly a good idea; nevertheless, I personally don't see much value in keeping around those which I only somewhat trust, but don't trust with full access. It's either apps I trust completely, or ones I find alternatives to which I can.
- swiley 11y agoThe reason this isn't a mistake is that most desktop apps (unlike mobile apps) are open source and community maintained.
- CamperBob2 11y ago...but the app developers are understandably grumpy because they have a quarter-century of code that never had to deal with such a design principle. The thing we're grumpy about is the lack of respect for the central dogma behind the personal computing revolution: one machine, one owner, one user. Recently, for example, Apple has literally granted themselves higher access privileges than the admin/owner of a machine running the OS X file system. There are files on the hard drive that they can write to and delete that you, the owner, can't, without extraordinary (and nonstandard) efforts. Naturally, it will only be a matter of time until Microsoft notices this innovative feature and copies it, more or less verbatim, into Windows. At that point, it's no longer "My Computer" -- it's theirs. And all of this is accompanied by the sound of thunderous applause. Because, you see, it's For Our Security.
- johncolanduoni 11y agoI assume you are talking about System Integrity Protection. You can turn this off, so do you consider the fact that Ubuntu doesn't have a root user by default (and requires you to run everything through sudo) an imposition on your freedom as well? Or is it only barriers which require a restart to disable? In addition, no Intel Macs have any means of operating system lock-in. You can run Windows, Linux, or anything else that can handle standard x86 hardware. So you seem to have full control over the hardware at least (except maybe the SMC, which is not easily modifiable on standard PC hardware either). And given the fact that the Darwin kernel is open source[1], you are free to patch out SIP entirely and run that instead. [1]: https://github.com/opensource-apple/xnu https://github.com/opensource-apple/xnu
- CamperBob2 11y agoOr is it only barriers which require a restart to disable? Yes, that's what I meant by "nonstandard." Apple has invented a brand-new access control mechanism to keep people from tinkering with files that reside on their own computers. For now you can work around this feature. Once they close that particular gap, I'm guessing we'll still be able to use a debugger to get the job done... and I'm guessing you'll move the goalpost accordingly.
- cm2187 11y agoYeah but I don't have nosey apps like facebook on a desktop. I only have "utility" apps like visual studio, photoshop, vuescan, office, etc. Which is why the change of stance of Microsoft re privacy with Win10 is a big deal.
- Too 11y agoDo you have Spotify installed on your desktop? It's known to phone home meta data about your local collection of mp3s. Is playing music considered "utility" or "nosey" to you? I don't want to go into details about this particular example, the root problem is that you don't know, and that anything, even a utility program, could be nosey.
- cm2187 11y agoCorrect. I don't have such app but I do have skype which I am looking at with increasing defiance. But social network or advertising apps are unwelcome on a desktop, and in fact are usually referred to as malware when outside of a browser. I don't have much software on my desktop which isn't either a license I paid for or open source software.