Live data from Hacker News

Hardening macOS

blog.bejarano.io

31–40 of 78 posts

Re: Hardening macOS

#32

Why disable the captive portal detection? Is macOS detecting MITMing for you bad?

> An attacker could trigger the utility and direct a Mac to a site with malware without user interaction, so it's best to disable this feature and log in to captive portals using your regular Web browser, provided you have first disable any custom dns and/or proxy settings. See https://github.com/drduh/macOS-Security-and-Privacy-Guide#ca...

Ah, I suppose if you're using a VPN that makes sense.

Re: Hardening macOS

#33

Very interesting! I’m reading it quite thoroughly so I don’t have any immediate thoughts but this did remind me of another similar guide in the spirit of things if you haven’t seen it: https://github.com/drduh/macOS-Security-and-Privacy-Guide Very good also if you liked this

I was inspired in part by this guide, it's very full-featured, but I wanted to give the community a simplified version of it, it contains too much text/bloat/detail which, don't get me wrong, it's awesome for those who want to learn about macOS security, but the everyday user would rather have a simple checklist.

Thanks for the kind words!

Re: Hardening macOS

#34

I like the title and premise of the article, but a list of tips with no description makes this feel like the standard "Tweak Ur Registry" article. I know OP is the author so I'm not trying to be a jerk, but I think adding details would improve things. To give specific examples, it is totally unclear why the article recommends creating an unprivileged account (the default user account is already unprivileged without e…

To give specific examples, it is totally unclear why the article recommends creating an unprivileged account (the default user account is already unprivileged without entering a password for anything That's not correct. The first account created is an Admin account. It has more privileges than a Standard account. Try the following in macOS High Sierra 10.13.6 as a Standard account then again as an Admin account. Open…

It's true the group on /Applications is "admin", and thus mechanically there exist things that the default user account can do than an unprivileged account can't do. Not to put you on the spot, but, can you think of an example that isn't a toy example and actually reflects a potential harm? Okay, so I can write to Applications. But I can't use that ability to install an application that actually has permissions to do anything real, right?

Re: Hardening macOS

#35

I like the title and premise of the article, but a list of tips with no description makes this feel like the standard "Tweak Ur Registry" article. I know OP is the author so I'm not trying to be a jerk, but I think adding details would improve things. To give specific examples, it is totally unclear why the article recommends creating an unprivileged account (the default user account is already unprivileged without e…

Thanks for the feedback! Standard accounts are recommended by Apple itself as a best practice in lieu of administrator accounts. Also, sudo is not available in standard accounts which protects against any would-be vulnerability. I updated the post regarding application sources. I changed Google DNS with Cloudflare's 1.0.0.1. Others also mentioned the fact that suggesting a VPN provider is risky, so I also removed it.…

I didn't say for the standard account to use sudo; I said for it to use su to switch to an admin account, and then use sudo from the admin account -- as a point of illustration that if you have the admin password, it's game over, whether or not you're currently signed in as an admin or an unprivileged user.

Unless standard accounts don't have access to "su" at all, but I can't see that being the case without locking off access to terminal functions altogether, which would make macOS completely unusable for I would wager most of the people on this site. Looking at /usr/bin/, su is 0755 permissions.

Even if you didn't know the username of the admin account, /etc/passwd is 0644 so you could look it up as an unprivileged user -- again, unless macOS has some system level thing blocking all access to the terminal.

Re: Hardening macOS

#36
Interesting: If I deny System Services location access for 'Setting Time Zone', my iMac 5K changes the color temperature …

(Security & Privacy / Location Services / System Services / Details / Setting Time Zone)

Re: Hardening macOS

#37
post #36

Interesting: If I deny System Services location access for 'Setting Time Zone', my iMac 5K changes the color temperature … (Security & Privacy / Location Services / System Services / Details / Setting Time Zone)

Has to do with Night Shift

Re: Hardening macOS

#38
post #13

Give me a good reason why defaults chosen by a macOS user would be more secure than those chosen by a security team working full time on developing the system. This article isn't even that bad if you are willing to make your system less practical, but even here you are potentially making your system less secure as suggested in some other comments.

Just one example: In Safari, Open 'safe' files after downloaded is enabled by default …

(Yep, 'safe' files, not safe files, it's almost like a long-running joke by some Safari developer.)

Re: Hardening macOS

#39
post #28
post #24

Curious, what are some opinions of those "endpoint security" solutions that companies make engineers install on their laptops? Effective, intrusive? What's your experience.

They can be effective or intrusive, it depends on the implementation. I've used one (Fleetsmith) on MacOS and configured it to be non-intrusive. It was able to enforce some of the items in this blog post (encrypted drives with key escrow, screen saver with password time), and it also was able to require latest updates for some software such as Chrome, Docker, Slack, etc. We don't use this for engineers only, we use e…

Thanks for mentioning Fleetsmith, I have been looking for such a service for some time!

(Jamf Now usually gets mentioned but it's not my thing …)

Re: Hardening macOS

#40
post #36

Interesting: If I deny System Services location access for 'Setting Time Zone', my iMac 5K changes the color temperature … (Security & Privacy / Location Services / System Services / Details / Setting Time Zone)

It's due to Night Shift, set it to a custom schedule (or enable location services but only for time zone settings)
Post reply on HN