Re:New Mac ransomware spreading through piracy
by jldugger on Tuesday June 30, 2020 @10:41PM
(#23697173)
[ Parent
| on HN ]
Re:New Mac ransomware spreading through piracy
by saagarjha on Wednesday July 01, 2020 @04:45AM
(#23699311)
All of sandboxing (including sandbox-exec, which is like 10 lines of code to just call the sandboxing functions) is considered deprecated/Apple private. As it’s the way to do such things on macOS, however, some very popular software depends on it in addition to Apple’s: Chrome, Firefox, MacPorts, Homebrew, …
Re:New Mac ransomware spreading through piracy
by Wowfunhappy on Tuesday June 30, 2020 @11:55PM
(#23697603)
Does it work though?
Re:New Mac ransomware spreading through piracy
by comex on Wednesday July 01, 2020 @12:57AM
(#23697879)
It works, but you have to supply your own sandbox profile (list of allowed/denied operations) and it won’t create a virtual home directory for you like App Sandbox does. I’m not sure whether there’s an easy way to forcibly enable App Sandbox, but one possibility is to compile your own sandboxed app that simply execs the untrusted one. (Sandboxes are inherited by child processes, as they must be for security.)
Re:New Mac ransomware spreading through piracy
by oefrha on Wednesday July 01, 2020 @01:11AM
(#23697961)
It works, and Homebrew is a high profile example of software that uses sandbox-exec extensively (bottling CI and brew install from source build formulae in sandboxes so that build scripts can’t read/write whatever they feel like; so do tests).