TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What is the desktop security model?

7 pointsby fitznabout 5 years ago
For some reason I have been thinking a lot about the &quot;desktop security model&quot; lately in comparison to the browser security model.<p>What stops spotify, or chrome, or any other desktop app that I install from reading my .ssh directory? I assume nothing, by default, since it&#x27;s under the same user. Is there a long history or book about this subject that I don&#x27;t know of? Is there a way to restrict disk access of an application by directory? Obviously, I understand how things have evolved from the early days of assuming installed software was benign. I&#x27;m not complaining, or shaming, or whatever, that developers didn&#x27;t think of the threat model for desktop apps back then as we might if the concept of desktop apps came out today.<p>I am mostly just wondering if this problem has already been discussed and if there is a canonical approach to it. To give you a sense of why I think this is interesting, compare google search results for &quot;desktop app security model&quot; to &quot;browser security model&quot;. The latter is formally (or &quot;officially&quot;) defined.

2 comments

lglabout 5 years ago
Most operating systems these days show you a &quot;Do you want to open&#x2F;give access to this app to make changes on your computer?&quot; prompt or popup. We then click &quot;yes&quot; while rolling our eyes for the inconvenience. The end. :)
green-bottleabout 5 years ago
I don&#x27;t have much of an idea about Windows or OSX. Regarding Desktop Linux, I think I wouldn&#x27;t be far off if I said it has no desktop security model. The permission system on *nixes (and Linux by inheritance) were formulated in the context of it being a multi-user system with multiple people logging in via a terminal. Your data had to be protected from access by unauthorized users. I don&#x27;t know if security aspects of running untrusted or unverified programs was even considered which are significantly more important in the current context.<p>I think Flatpak is trying to improve Linux application security but still has a really long way to go compared to the likes of Android and iOS.