推荐matthewfcarlson · 2026-03
“Apple hasn't publicly talked about it much but here are two sources that aren't terrible.”
推荐它作为 Apple 少有公开说明下相对靠谱的资料来源
剖析 Apple 的 SPTM、TXM 与 Exclaves 内核隔离机制
XNU 内核虽称混合内核,实际上以单一特权信任域的方式运行,内核一旦被攻破影响整个系统。论文首次对 SPTM 及相关安全机制做综合分析:SPTM 是内存重类型(retyping)的唯一权威,通过基于页帧重类型和内存映射规则的信任域把不同功能隔开,被隔离的功能包括负责代码签名与 entitlement 校验的 TXM,并为 Exclaves 打下基础。作者还分析了 Exclaves 的通信机制,发现多种通信途径,其中主要是作为安全世界请求处理器的 xnuproxy 和 Tightbeam IPC 框架,结论是这些改动提升了系统安全性,内核被攻破不再等于最高信任级别失守。
Apple 很少公开谈这些机制,评论者把它当作了解 SPTM、TXM 以及内核分权与页表保护的少数可靠资料。
“Apple hasn't publicly talked about it much but here are two sources that aren't terrible.”
“From our knowing how it works [0] it’s just a mechanism for the kernel to give up some privileges and add extra security checks when modifying page tables.”