自动拦截 macOS 本地网络弹窗
推荐指数 44.0 NO. 021 · 2026.10.30
发布2026/10/29Score65Comments54
简介
一个 Swift 单文件工具,在 macOS Sequoia 弹窗出现的瞬间自动点击"不允许"。解决 Chromium 系浏览器因随机临时目录导致权限决策无法被系统记住、每次启动都弹窗的顽疾。
编辑判断
这个工具的痛点抓得很准,但实现方式暴露了 macOS 隐私架构的一个深层设计缺陷:Local Network 权限绑定的是应用路径而非团队标识符或签名哈希。Chromium 的更新机制把 app bundle 复制到随机目录,本质上是在利用这个缺陷"合法绕过"权限持久化。
对普通用户这是救星,但对安全工程师这是警示信号。苹果如果修补这个绑定逻辑(比如改用 Team ID + Bundle ID),这个工具就会失效,而 Chromium 的弹窗问题也会一并根治。目前更干净的替代方案是用配置描述文件(Configuration Profile)全局禁用特定应用的本地网络权限,但门槛较高。
如果你在做 macOS 企业部署或 MDM 方案,这个随机路径问题可能也影响了你的其他权限策略,建议审计一下。
社区反馈
意见分歧 49 条评论
核心争论:AI 辅助代码审查能否替代人工安全审计
Yes. Thank you. This is such a simple thing that should be a part of the operating system, and in the ideal world it would be. This is the perfect problem for the LLM to solve, because the reason it does't exist in the system is a decision by some stupid PM at Apple, and not an actual system constra
It’s just a choice of which key to use. I don’t think it was some decision made with this intent, I think it is just the unexpected result of a decision.
I maintain that Steve Jobs would have taken the engineers to task over this poor UX.