News for hackers. Stuff that matters.
Re:Sandboxed Mac apps can record screen any time without you... by CPLX on Saturday February 10, 2018 @08:14PM (#16350599)
As an old person my assumption is that a desktop app can basically do whatever it wants with the screen, mouse, keyboard, or audio while it's actually running.

Isn't that what apps are for? This just seems like expected behavior. If you don't want apps doing stuff don't run them on your desktop computer.

Re:Sandboxed Mac apps can record screen any time without you... by userbinator on Saturday February 10, 2018 @09:54PM (#16350921)
I agree. This feels to me to be more like inducing paranoia to push some hidden agenda. The "open" design is a feature, not a bug, and why mobile apps and their isolated design only encourage silo'd data and horribly wasteful workarounds (upload something from one app into some distant third-party cloud service, and download it again for another app to access it... provided those two apps' developers have explicitly decided to provide such a feature.)

Every binary I run could delete all my data or steal my passwords or whatever else. That's not something to be afraid of --- it's something to cherish and be proud of[1], and it's why you don't run anything you don't trust. This "free-for-all" sharing and access encourages the sort of ad-hoc and unpremeditated interactions which are beneficial to the software ecosystem as a whole.

I usually have a magnifier, color identifier, and clipboard-listening-translator running. None of those would be easily implementable or may not even exist, had computers started out as locked-down systems from the beginning.

[1]https://boingboing.net/2012/08/23/civilwar.html

Re:Sandboxed Mac apps can record screen any time without you... by abecedarius on Saturday February 10, 2018 @10:58PM (#16351100)
There's a difference between locked-down-by-Apple and locked-by-you according to your own choices (e.g. Qubes). Being able to run software from others without being completely vulnerable to them is essential to that open ecosystem we want. A free-for-all OS is like a meatspace without private property -- it can work at a small scale.
Re:Sandboxed Mac apps can record screen any time without you... by kalleboo on Sunday February 11, 2018 @12:26AM (#16351333)
The data siloing on iOS is a UI decision, not a sandboxing decision. They decided most people simply don't understand filesystems (probably based on all the people they've seen who just save their files in the default directory, or the desktop, or the recycle bin(!) and then can't find them)

In the macOS sandbox, an app can access any old file, but only ones the user has implicitly told the app it can access - through the system "open file" dialog, double-clicking, drag & drop, etc.

Re:Sandboxed Mac apps can record screen any time without you... by digi_owl on Sunday February 11, 2018 @12:52PM (#16353745)
iOS was never meant to handle files, imo.

It was meant as a souped up iPod platform, tethered to iTunes.

I just wish we didn't have to way for Windows 8/10 to get "sane" file management on tablets, after Google mangled Android from 3.1 onwards.

Re:Sandboxed Mac apps can record screen any time without you... by wildmusings on Saturday February 10, 2018 @11:45PM (#16351248)
A design that dooms even savvy users to being compromised is simply not acceptable anymore. Most people are not discriminating enough about the software they install. But okay, maybe you actually are and never make mistakes[1]. But is all the software you use signed? By a certificate traceable to a real, accountable person? Can a software update, perhaps released by someone who has hacked the original developer, come along and turn it into malware? Because all of your apps have full-capabilities, it can now do things that you would never grant if explicitly asked.

Now you're completely screwed. All of your emails, pictures, medical information, other embarrassing personal information/media, bank logins, and so forth are compromised. Maybe you have two-factor authentication for all of your accounts (doubtful), but who cares? It can just read the memory of your browser process, quietly wait for you to login to the various services, and then hijack your sessions in the background.

So tell me: how in the world is this an acceptable situation?

[1] I sure hope you never use any of these new-school package managers for various programming languages, text editors, and such. You know, the ones that grab the latest commit from GitHub repositories run by total strangers and then run them with full privileges.

Re:Sandboxed Mac apps can record screen any time without you... by wlesieutre on Sunday February 11, 2018 @12:06AM (#16351291)
Even if it’s signed software, the sandbox is a useful layer in limiting the scope of any vulnerabilities it has. Say a media player has a bug in its decoder that allows a malicious video file to make the player execute arbitrary code. If the program is sandboxed, they shouldn’t be able to pivot from that into stealing your ssh keys or recording your screen.
Re:Sandboxed Mac apps can record screen any time without you... by badsectoracula on Sunday February 11, 2018 @12:08AM (#16351295)
> So tell me: how in the world is this an acceptable situation?

It is benefit vs cost: for me it is acceptable because i want to be able to do whatever i want with my computer using applications that can freely interact with each other without the OS getting in my way. I want the underlying system to provide the functionality for the applications to perform their tasks but not add unnecessary barriers that make features practically impossible.

Also FWIW personally as a developer i highly dislike the idea of signed software. First of all i do not like the idea of having to ask (let alone pay) anyone to have my program be runnable by others and second i do not like the idea of my name being carried alongside my programs unless i explicitly add it.

Re:Sandboxed Mac apps can record screen any time without you... by danieldk on Sunday February 11, 2018 @01:32AM (#16351494)
It is benefit vs cost: for me it is acceptable because i want to be able to do whatever i want with my computer using applications that can freely interact with each other without the OS getting in my way.

It is not the eighties anymore. Software is exploited through malicious files that exploit vulnerabilities in file readers (e.g. malicious PDFs). Software distribution sites get compromised (Handbrake, Transmission, Linux Mint), etc. Signatures and proper sandboxing reduce the attach service considerably.

Also, to address your point: sandboxing does not have to be binary. For instance, on macOS, a sandboxed app can request the user access to the calendar or address book. In that way some random app can't just steal your address book. [1] By default an application cannot open any files from the user's home directory, unless the user e.g. choses it using a file opening dialog (which runs out-of-process). On Flatpak on Linux, you as a user can decide to run an application with more entitlements (AFAIK currently only through the command-line).

We need to go to a world where the power lies with the user and not the developer to decide what an app can access, upload, etc. macOS sandboxing and Flatpaks on Linux are now providing part of that solution.

Also FWIW personally as a developer i highly dislike the idea of signed software. First of all i do not like the idea of having to ask (let alone pay) anyone to have my program be runnable by others

Flatpaks on Linux are normally signed, but they can be signed using GnuPG key. No need to pay or ask permission. Of course, the downside of this model is that it puts the burden on the user to check that the key is owned by a reputable person.

second i do not like the idea of my name being carried alongside my programs unless i explicitly add it

Most users should not want to run a program by a random person.

[1] Don't say that free software is not vulnerable to such problems. A popular free software documentation browser embeds a Google Ad, some open source applications use Google Analytics. I do not want to upload any data to Google. Unfortunately, as a user, I can only avoid that by inspecting all my outgoing connections. Of course, this is out of the reach of a normal user. I would absolutely be in favor of sandboxes where by default an app could not make any network connection.

Re:Sandboxed Mac apps can record screen any time without you... by badsectoracula on Sunday February 11, 2018 @02:43PM (#16354344)
> We need to go to a world where the power lies with the user and not the developer to decide what an app can access, upload, etc. macOS sandboxing and Flatpaks on Linux are now providing part of that solution. [..] Flatpaks on Linux are normally signed, but they can be signed using GnuPG key. No need to pay or ask permission. Of course, the downside of this model is that it puts the burden on the user to check that the key is owned by a reputable person.

I do not see those as placing power in the hands of the user, i see it more as placing power in the hands of the platform holder the developer develops for and the user uses. The user should be able to do whatever he pleases, even at the cost of the developer's wishes and to do this, the platform must allow the user to subvert both the platform's restrictions and the program's requests.

Anything that doesn't put the user in a position of utmost authority and trust is not something that places powers in the hands of the user.

Re:Sandboxed Mac apps can record screen any time without you... by tzahola on Sunday February 11, 2018 @05:55AM (#16352156)
“Most users should not want to run a program by a random person.”

This is demonstrably not true. Most users will go out of their way to run any software if they believe that it will do what they’re looking for.

Re:Sandboxed Mac apps can record screen any time without you... by wildmusings on Sunday February 11, 2018 @10:47AM (#16353135)
I think the emphasis is supposed to be on the ‘should’. That is, it’s not in the user’s rational interests to run such software. Hence the locked down security model all the platforms are moving toward.
Re:Sandboxed Mac apps can record screen any time without you... by danieldk on Sunday February 11, 2018 @01:54PM (#16354116)
As the peer poster commenter points out, I said 'should' (as in: ought), I am not describing the factual situation.
Re:Sandboxed Mac apps can record screen any time without you... by ploxiln on Sunday February 11, 2018 @12:20AM (#16351316)
Everything you install from the core debian stable repositories, is pretty much guaranteed to not have any actively malicious code. Otherwise it would be discovered and removed. All debian packages are signed by the package-upload process. It's not perfect, but it's been good enough so far. This is a world that is now niche, but used to be practical!

It's very depressing to be transitioning into a world where you can't use a small trusted open-source mail client and IM client etc, where you have to install crazy huge untrusted piles of flaky and inefficient code in order to interact with real-world people and institutions, and you can't easily control which version you have installed, and mobile devices become obsolete after just 3 years. (Even iPhones - not because of Apple, but because Instagram and Snapchat got too heavy/shitty for the older models! This does not happen for communication over SMTP or XMPP!)

So I see the "we need super sandboxes around every little thing" as a sort of bandaid on a much bigger problem which is not going to be fixed in the foreseeable future.

Re:Sandboxed Mac apps can record screen any time without you... by wander_homer on Sunday February 11, 2018 @07:25AM (#16352399)
Like the XScreenSaver time bomb that caused a nag screen to pop up on April 1 one or two years ago on peoples screens? Debian distributed this code for years without realizing because no one even glanced at the code. The developer didn't even try to hide the time bomb, he even provided angry comments why he added the code.

The only reason Debian didn't distribute some really bad malicious code (that we know of) yet is because they got lucky and no developer tried to mess with them.

Re:Sandboxed Mac apps can record screen any time without you... by wildmusings on Sunday February 11, 2018 @01:50AM (#16351536)
You’re assuming all Debian packages are secure. Like wlesieutre said in a sibling comment, software from a trusted source can and often does have vulnerabilities.
Re:Sandboxed Mac apps can record screen any time without you... by comex on Saturday February 10, 2018 @08:16PM (#16350609)
The sandbox is designed to make that not expected behavior - even if, as demonstrated here, it has holes…
Re:Sandboxed Mac apps can record screen any time without you... by threeseed on Saturday February 10, 2018 @11:18PM (#16351154)
Since when ? OSX has never outlawed this sort of thing.

The sandbox has always been completely different from iOS e.g. it doesn't ask permission to access photos, microphone, webcam.

Re:Sandboxed Mac apps can record screen any time without you... by igloofoo on Saturday February 10, 2018 @11:30PM (#16351202)
Wrong.

1) Your webcam turns a light on. Not permission, but you know what's going on.

2) "People must grant permission for an app to access personal information, including the current location, calendar, contact information, reminders, and photos."

https://developer.apple.com/macos/human-interface-guidelines...

Re:Sandboxed Mac apps can record screen any time without you... by threeseed on Sunday February 11, 2018 @12:52AM (#16351407)
Those are if you are using the APIs directly.

But you can always go straight to the files themselves for cases like Photos and Calendars and also to the SQLite databases that back a lot of user data.

And current location is easy to get on OSX. You can simply look up the user's IP address and WiFi networks to triangulate the user's location with about the same accuracy as Apple can do.

With webcam you can easily switch the camera on, take the photo and switch it off. Could easily trick people into thinking it was a hardware fault rather than something nefarious with the app.

The fact is that none of what I listed above is possible on iOS.

Re:Sandboxed Mac apps can record screen any time without you... by jakobegger on Sunday February 11, 2018 @01:30AM (#16351488)
That stuff is not possible if you have a sandboxed app from the Mac App Store.

Sure, if you download software from the web, it can do whatever it pleases.

But if you download apps only from the Mac App store, you should be safe.

On iOS, Apple checks all your software. On the Mac, they give you a choice: If you want "safe" software, go to the Mac App Store. If you want any software, go somewhere else.

The sandbox isn't as complete as on iOS, but the stuff you listed requires special permissions and confirmations when you get your software from the Mac App Store.

Re:Sandboxed Mac apps can record screen any time without you... by MaxGabriel on Sunday February 11, 2018 @01:15AM (#16351450)
Aren’t the files outside of your app inaccessible from within the Sandbox, unless you give the app permission to read them? I mostly use non Mac App Store apps but one I use, the Unarchiver, needs permission to open files
Re:Sandboxed Mac apps can record screen any time without you... by kakarot on Sunday February 11, 2018 @01:19AM (#16351455)
If my webcam light ever flickered on and then off, I'm chucking my laptop off the side of a bridge. Willing to be most other people wouldn't attribute it to a hardware fault, either.
Re:Sandboxed Mac apps can record screen any time without you... by CodeWriter23 on Sunday February 11, 2018 @01:45AM (#16351523)
You could just cover it with a post-it instead of chucking it off a bridge.

The thing that bugs me is there’s no indication an app is connected to my microphone.

Re:Sandboxed Mac apps can record screen any time without you... by kakarot on Sunday February 11, 2018 @06:31AM (#16352257)
Thing is, at that point I'd be worried about the mic as well, as you point out.

Better safe than sorry!

Re:Sandboxed Mac apps can record screen any time without you... by CodeWriter23 on Monday February 12, 2018 @03:32AM (#16357324)
Touché
Re:Sandboxed Mac apps can record screen any time without you... by mwfunk on Sunday February 11, 2018 @03:08PM (#16354479)
Sandboxing isn't to prevent people from damaging their own computer (i.e., the "sudo rm -rf /" case), it's to impose a ceiling on how much damage can be done by an exploited process that the user doesn't realize has been exploited. It's not to save you from yourself, it's to save you from stuff that you wouldn't otherwise have any way of knowing was even happening. Sandboxing restrictions are more like using asserts in your code than anything else- they only stop programs from doing things that the programs themselves are stating that they would never attempt to do.

Having said that, plenty of useful apps can't ship in sandboxed form because of limitations in the current sandboxing model. And of course the fact that sandboxing is required for store distribution makes the store less useful. The implementation has much room for improvement, as do the store distribution policies.

Re:Sandboxed Mac apps can record screen any time without you... by cesnja on Sunday February 11, 2018 @08:59AM (#16352690)
Much work is being done on Wayland compositors and window managers to change this. Among other expected results are also the security aspects where the user is able to know which program is reading certain inputs and outputs, and might be able to control this data. As a basic example, a desktop app is only able to read/write the pixels inside the rectangle assigned by compositor, and it only receives keyboard events and mouse clicks that were sent inside this rectangle. I think this is an assumption one could make about a modern desktop. Sadly not enough users care about this type of security, so we stick to the old, X11 style of altruistic desktop computing where every program can see everything.
Re:Sandboxed Mac apps can record screen any time without you... by cududa on Monday February 12, 2018 @12:32AM (#16356754)
Couldn’t you just hook the wayland compositor to detect where focus is and eat up all those inputs?
Re:Sandboxed Mac apps can record screen any time without you... by osteele on Sunday February 11, 2018 @09:53AM (#16352881)
I submit that the macOS interface leads to a reasonable expectation of greater security than an old-school executable running in the 90's or 00's, because macOS requires that the user explicitly grant permission to access so many other sensitive resources, such as location and contacts.

If an app has to ask me permission in order to access my keystrokes, I think it's fair to assume that the same would be true of apps that read (anything outside their window regions) from my screen. The fact that macOS doesn't require this is discoverable by sleuthing (browsing the Privacy pane, or remembering that screenshot apps don't ask for it), but there's reasonable, and probably common, mental models that don't make it obvious.

It would be like renting a house with four locks on the front door and none on the back. Yes, you could audit the house, but it's a weird asymmetry to have to look for.

(P.S. I'm older than you, FWIW :-)

Re:Sandboxed Mac apps can record screen any time without you... by clebio on Sunday February 11, 2018 @10:07AM (#16352938)
Are you talking about High Sierra, or iOS devices? Because this just isn't true about my macbook pro running Sierra. There is no granular permissions model as in, for instance, Android 7. I give my (super) user password to install apps on my mac, and then after that, they run. There's no further permissions I can or can't grant, and there's no way to run install many desktop apps without my (super) user password.

Edit: It seems you a many of the others replying to the GP are talking about apps from the App Store, which I basically never use. And that's sort of the parent's point, I think. I get apps from the internet, install them, and use them, like and old-school desktop/PC computer user. I rarely need to use the app store (except for updates, and it's weird UX that OS updates are in the app store to begin with) and have no compelling reason to do so.

Re:Sandboxed Mac apps can record screen any time without you... by osteele on Sunday February 11, 2018 @11:04AM (#16353204)
I'm talking about High Sierra, and apps loaded from App Store or non-store download links. For example, System Preferences > Security & Privacy > Privacy > Accessibility lists (among others) “Backup & Sync from Google”, BetterTouchTool, Dash, Dropbox, Google Chrome, Google Software Update, Keyboard Maestro, Little Snitch Agent. Many of these aren't even available from the app store. If I keep Accessibility unselected, some of these have degraded functionality. For example, I keep the Google apps and Dropbox unchecked, and then they can't annotate my Finder icons. (I'm okay with that.) I keep Dash unchecked, and keyboard snippets don't work.

You're right that this isn't super fine-grained. This single checkbox seems to govern several unrelated things, such as keystroke logging and insertion (Dash and Keyboard Maestro), mouse recording and control (Keyboard Maestro), and whatever APIs are used to badge Finder icons (Google and Dropbox). My belief is that an app that I haven't checked off there doesn't have access to my keystrokes. (Maybe this is wrong?) In which case I'm surprised there's nothing like this for recording the screen.

Re:Sandboxed Mac apps can record screen any time without you... by krisives on Saturday February 10, 2018 @09:00PM (#16350753)
Even HTML5 web capturing works in a similar way. Once you give an site like Discord access to your microphone or screen it can pretty much access it whenever the page is open - granted it will show a little badge on screen by default.

A lot of users got tired of the on-screen badge being on all the time and probably set it to hidden (very easy to do) so not everyone is actually aware of when an HTML5 application is accessing a microphone/camera/screen.

Re:Sandboxed Mac apps can record screen any time without you... by danieldk on Sunday February 11, 2018 @01:41AM (#16351508)
A small aside: on the Mac, Micro Snitch [1] can let you know about any app that accesses the mic or webcam. It can use overlays, notifications, and/or just the systray to indicate that an app is using the mic/webcam. It also has an activity log that can you show past use.

[1] https://www.obdev.at/products/microsnitch/index.html

Re:Sandboxed Mac apps can record screen any time without you... by fadzlan on Saturday February 10, 2018 @10:55PM (#16351091)
My thought exactly. I was like yes of course!

How does he think that desktop app can do many different things?

Now, sandbox is a different issue. But of course, yes it have access to the screen.

If apps on desktop is going to be as restrictive on mobile, why use desktop at all?