5 ms·
The 'malicious firewall bypass' is "lemme add a rule to bypass firewall, o gee, now I can bypass the firewall". You can do this with any existing software fire
by coldtea 6y ago
The 'malicious firewall bypass' is "lemme add a rule to bypass firewall, o gee, now I can bypass the firewall".
You can do this with any existing software firewall on any OS, here it just happens on a secondary whitelist (as opposed to the firewall configuration).
- saagarjha 6y agoUh, isn’t the concern that Apple’s services cannot be firewalled?
- coldtea 6y agoYes. And that's a valid concern. The "malicious firewall bypass" (that you can use the same system to add exception for another app) as in the twitter example, though, is not.
- saagarjha 6y agoRight, but isn’t the issue then “I can trick a system service to do the malicious thing for me”? Apple’s apps are absolutely not secured against being convinced to make arbitrary outbound connections.
- coldtea 6y ago>Apple’s apps are absolutely not secured against being convinced to make arbitrary outbound connections. Aren't they? They're signed, notarized, sandboxed, have ASLR, and other protections, in Big Sur they even recide on a read-only partition iirc...
- sneak 6y agoThere are a million other ways to “convince” them when they are operating normally, which presumably these apps are not explicitly hardened/audited against.
- saagarjha 6y agoI am very familiar with macOS's security features. Preventing an application from having something maliciously command them into sending things on the network is not one of the threat models Apple considers (or at least, they have no specific mitigations against this). As a simple (but conspicuous) example, consider an app simply opening a customized HTTP link if Safari was exempt from the firewall to exfiltrate information. There are hundreds of ways to do effectively the same thing more surreptitiously.
- Someone 6y ago“I can trick a system service to do the malicious thing for me if I have root”, and that’s as designed, and something at least people on HN want (“I want control over what my hardware runs”) If you have root, you can also remove Apple’s exceptions from that list. I haven’t checked, but that should fix the issue of Apple’s services bypassing firewalls.
- sneak 6y agoIf you can do it (without a trip to a recovery boot), then malware or spyware can do it. That’s the point.
- coldtea 6y agoIf you have root on a system you can do anything, so it's hardly a point...
- sneak 6y agoThat is false on current macOS. There have been many additional protections (rootless, SIP, SSV, eradicating kexts) against uid=0 malware added to the macOS over the last 5-6 years, and rightfully so. Even unprivileged user apps can’t read and write to every file their POSIX permissions say they should be able to, due to things like ransomware. When apps want to read or write certain directories, an additional permission dialog is displayed. I am not aware of any other desktop OS that implements these sorts of protections. How you describe it is definitely how it works on Linux and Windows.