# iOS

**iOS**是苹果公司为iPhone打造的移动操作系统，构建于[Darwin](https://www.edgepedia.org/zh/darwin-operating-system)操作系统之上，其XNU内核融合了[Mach](https://www.edgepedia.org/zh/mach-kernel)与FreeBSD组件，通过App Store分发，在欧盟则依据《[数字市场法](https://www.edgepedia.org/zh/digital-markets-act)》还可通过替代应用市场分发。<sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup> 它的定义特征是封闭生态系统模式：所有可执行代码都必须使用苹果签发的证书签名，每个第三方应用都在内核层面强制执行的沙盒中运行。<sup>[2](https://support.apple.com/guide/security/app-code-signing-process-sec7c917bf14/web)</sup><sup> • </sup><sup>[3](https://support.apple.com/guide/security/security-of-runtime-process-sec15bfe098e/web)</sup>

| 关键事实 | 详情 |
|---|---|
| 基础 | Darwin与XNU混合内核（Mach加FreeBSD组件）；应用运行环境比macOS应用更为受限<sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup> |
| 沙盒 | 每个第三方应用都被沙盒化，安装时随机分配唯一的家目录；操作系统分区以只读方式挂载<sup>[3](https://support.apple.com/guide/security/security-of-runtime-process-sec15bfe098e/web)</sup> |
| 代码签名 | 所有可执行代码都需要苹果签发的证书；库必须与应用共享同一个10字符团队ID，或属于平台库<sup>[2](https://support.apple.com/guide/security/app-code-signing-process-sec7c917bf14/web)</sup> |
| 安全隔区 | 一个与主处理器隔离的专用子系统，运行苹果定制的L4微内核，即使应用处理器内核被攻破也能保护数据<sup>[4](https://help.apple.com/pdf/security/en_US/apple-platform-security-guide.pdf)</sup> |
| 本文覆盖的最新主要版本 | iOS 18，2024年9月16日发布，带来主屏幕与控制中心自定义以及重新设计的照片应用<sup>[5](https://www.apple.com/newsroom/2024/09/ios-18-is-available-today-making-iphone-more-personal-and-capable-than-ever/)</sup> |
| 生态系统规模 | 2025年，App Store在175个国家拥有超过8.5亿平均周活跃用户；数字商品与服务账单金额达1490亿美元<sup>[6](https://www.apple.com/newsroom/2026/06/app-store-ecosystem-reaches-1-point-4-trillion-usd-as-developers-thrive-globally/)</sup> |
| 欧盟变化 | 2024年1月，苹果宣布为遵守《数字市场法》做出调整，包括600多个新API；替代应用市场随iOS 17.4在欧盟上线<sup>[7](https://www.businesswire.com/news/home/20240125068597/en/Apple-announces-changes-to-iOS-Safari-and-the-App-Store-in-the-European-Union)</sup><sup> • </sup><sup>[8](https://ec.europa.eu/competition/digital_markets_act/cases/202611/DMA_100123_206.pdf)</sup> |

## 架构与核心技术

iOS基于Darwin，其内核XNU（“X is Not Unix”）是融合Mach与FreeBSD组件的混合内核。<sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup> 苹果的安全文档分层描述了运行时架构，而OWASP移动应用安全测试指南将安全架构概括为六大核心特性：硬件安全、安全启动、代码签名、沙盒、加密与数据保护，以及通用漏洞利用缓解。<sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup>

**沙盒。** 所有第三方应用都被沙盒化，以防止它们收集或修改其他应用存储的信息，或更改设备。每个应用在安装时被随机分配一个唯一的家目录，只能通过iOS明确提供的服务访问其他信息。<sup>[3](https://support.apple.com/guide/security/security-of-runtime-process-sec15bfe098e/web)</sup> 沙盒历史上被称为Seatbelt，是一种强制访问控制机制；所有第三方应用都以同一个非特权“mobile”用户身份运行，被类似chroot的限制约束在容器内。<sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup> 大多数系统文件和资源也以mobile用户身份运行，整个操作系统分区以只读方式挂载，API不允许应用提升自身权限。<sup>[3](https://support.apple.com/guide/security/security-of-runtime-process-sec15bfe098e/web)</sup> 对用户信息及iCloud等功能的访问由声明的授权控制，授权是经过数字签名、不可更改的键值对。<sup>[3](https://support.apple.com/guide/security/security-of-runtime-process-sec15bfe098e/web)</sup>

**代码签名。** iOS要求所有可执行代码都使用苹果签发的证书签名：邮件、Safari等第一方应用由苹果签名，第三方应用必须通过苹果开发者计划验证并签名，苹果在签发证书前会核实开发者的真实身份。<sup>[2](https://support.apple.com/guide/security/app-code-signing-process-sec7c917bf14/web)</sup> 启动时，系统使用10字符字母数字团队ID（例如`1A2B3C4D5F`）验证进程所链接的每个动态库的签名；程序只能链接平台库或共享同一团队ID的库。<sup>[2](https://support.apple.com/guide/security/app-code-signing-process-sec7c917bf14/web)</sup> 苹果表示，在未越狱的设备上，未经苹果批准的代码无法运行，且每台iOS设备都具备硬件支持的钥匙串、安全启动和文件系统加密。<sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup>

**漏洞利用缓解。** iOS使用地址空间布局随机化（ASLR）在启动时随机化内存区域，Xcode默认开启ASLR编译第三方程序。<sup>[3](https://support.apple.com/guide/security/security-of-runtime-process-sec15bfe098e/web)</sup> 它还使用ARM的“永不执行”（XN）特性将内存页标记为不可执行；用户态进程的栈和堆被标记为不可执行。<sup>[3](https://support.apple.com/guide/security/security-of-runtime-process-sec15bfe098e/web)</sup><sup> • </sup><sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup> 同时可写且可执行的内存页只能在严格受控的条件下使用：内核检查仅限苹果的动态代码签名授权，将此类内存限制为在随机地址上的一次mmap调用，Safari的JIT编译器即使用此机制。<sup>[3](https://support.apple.com/guide/security/security-of-runtime-process-sec15bfe098e/web)</sup> mmap和mprotect系统调用同样被修改，以防止应用将可写页变为可执行。<sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup> 自2023年起，对于A15和M2及更新的片上系统设计，苹果使用SPTM和TXM组件开始将内核划分为不同特权空间，保护用户和内核的页表。<sup>[9](https://arxiv.org/html/2510.09272v1)</sup>

**后台执行。** iOS应用进入后台后通常会被挂起。有限数量的已声明后台执行模式允许继续运行，例如播放音频、接收位置更新或处理计划任务。<sup>[10](https://developer.apple.com/documentation/xcode/configuring-background-execution-modes.md)</sup>

## 安全架构与硬件信任根

安全隔区是集成在苹果片上系统中的专用安全子系统，与主处理器隔离，旨在即使应用处理器内核被攻破时也能保护敏感用户数据。<sup>[4](https://help.apple.com/pdf/security/en_US/apple-platform-security-guide.pdf)</sup> 它拥有自己的启动ROM作为硬件信任根、用于密码学运算的AES引擎，以及受保护的内存和独立于应用处理器NAND闪存的安全存储。<sup>[4](https://help.apple.com/pdf/security/en_US/apple-platform-security-guide.pdf)</sup> 安全隔区处理器运行苹果定制的L4微内核版本，设计为在较低时钟频率下高效运行，有助于抵御时钟和功耗攻击。<sup>[4](https://help.apple.com/pdf/security/en_US/apple-platform-security-guide.pdf)</sup>

## 实践中的安全：漏洞利用与间谍软件

有记录的在野针对iOS的攻击来自[NSO集团](https://www.edgepedia.org/zh/nso-group)的[Pegasus](https://www.edgepedia.org/zh/pegasus-spyware)间谍软件，由公民实验室和大赦国际安全实验室分析。在分析一名沙特活动人士感染了Pegasus的手机时，公民实验室发现了FORCEDENTRY，这是一个针对iMessage的零日零点击漏洞利用，攻击苹果的图像渲染库，对iOS、macOS和watchOS设备均有效。<sup>[11](https://citizenlab.ca/research/forcedentry-nso-group-imessage-zero-click-exploit-captured-in-the-wild/)</sup> 它利用苹果CoreGraphics库中的整数溢出，公民实验室认为至少自2021年2月起就已被使用。<sup>[11](https://citizenlab.ca/research/forcedentry-nso-group-imessage-zero-click-exploit-captured-in-the-wild/)</sup> 苹果为其分配了CVE-2021-30860，描述为“处理恶意制作的PDF可能导致任意代码执行”，并于2021年9月13日修补，该漏洞影响所有运行iOS 14.8之前版本的iPhone。<sup>[11](https://citizenlab.ca/research/forcedentry-nso-group-imessage-zero-click-exploit-captured-in-the-wild/)</sup> 谷歌Project Zero于2021年12月发布了该漏洞利用链的详细技术分析。<sup>[12](https://projectzero.google/2021/12/a-deep-dive-into-nso-zero-click.html)</sup> 大赦国际的取证工作又在2020年和2021年发现了更多NSO零点击攻击向量，包括针对苹果照片的iOS 13向量、iMessage漏洞利用KISMET，以及iOS 14漏洞利用Megalodon/FORCEDENTRY。<sup>[13](https://securitylab.amnesty.org/latest/2026/07/inside-pegasus-the-evolution-of-the-worlds-most-notorious-spyware/)</sup> 另一份取证历史发现，iOS 14的FORCEDENTRY漏洞利用从2021年1月到11月部署，针对至少四个iOS版本，且每个版本当时都是最新可用版本。<sup>[14](https://archive.orkl.eu/59781a33093ab92e108580f0006aadd07ba58d21.pdf)</sup>

**锁定模式。** 2022年，NSO集团的客户在全球范围内针对民间社会目标广泛部署了至少三个iOS 15和iOS 16零点击漏洞利用链，名为LATENTIMAGE、FINDMYPWN和PWNYOURHOME；其中一些链条被用作针对iOS 15.5、15.6和16.0.3的零日漏洞利用。<sup>[15](https://citizenlab.ca/research/nso-groups-pegasus-spyware-returns-in-2022/)</sup> 在一段短暂时期内，启用了iOS 16锁定模式的目标在PWNYOURHOME利用尝试时收到实时警告，公民实验室尚未见到PWNYOURHOME成功用于启用了锁定模式的设备。<sup>[15](https://citizenlab.ca/research/nso-groups-pegasus-spyware-returns-in-2022/)</sup> 公民实验室于2022年10月和2023年1月与苹果分享了取证痕迹，促使苹果在iOS 16.3.1中发布了[HomeKit](https://www.edgepedia.org/zh/homekit)安全改进。<sup>[15](https://citizenlab.ca/research/nso-groups-pegasus-spyware-returns-in-2022/)</sup>

跨平台数据提供了一种暴露程度的衡量。一项2020至2025年对5,647个公开披露的智能手机漏洞（3,192个Android、2,455个iOS）的研究发现，漏洞集中在内核、系统服务和应用框架层，其中超过一半是跨层漏洞。<sup>[16](https://xlescience.org/index.php/IJASIS/article/view/1197)</sup>

## 功能与用户体验

iOS 18于2024年9月16日发布，带来主屏幕和控制中心的更深层自定义、苹果所称的照片应用史上最大幅度重新设计，以及信息和邮件增强功能。<sup>[5](https://www.apple.com/newsroom/2024/09/ios-18-is-available-today-making-iphone-more-personal-and-capable-than-ever/)</sup> 苹果智能——苹果将生成模型与个人上下文结合的个人智能系统——于次月即2024年10月开始随iOS 18推出。<sup>[5](https://www.apple.com/newsroom/2024/09/ios-18-is-available-today-making-iphone-more-personal-and-capable-than-ever/)</sup> 其系统级写作工具让用户几乎在任何写作场景中重写、校对和摘要文本，包括邮件、备忘录、Pages和第三方应用。<sup>[17](https://www.apple.com/newsroom/2024/06/ios-18-makes-iphone-more-personal-capable-and-intelligent-than-ever/)</sup> 当请求被路由到[私有云计算](https://www.edgepedia.org/zh/private-cloud-compute)——苹果专用的[苹果芯片](https://www.edgepedia.org/zh/apple-silicon)服务器——时，数据不会被存储或供苹果访问，仅用于完成用户请求；苹果表示独立专家可以验证这一隐私属性。<sup>[17](https://www.apple.com/newsroom/2024/06/ios-18-makes-iphone-more-personal-capable-and-intelligent-than-ever/)</sup> iOS 18还增加了辅助功能，包括仅用眼睛导航iPhone的眼动追踪、面向失聪或听障用户的音乐触感、语音快捷指令和车辆运动提示。<sup>[5](https://www.apple.com/newsroom/2024/09/ios-18-is-available-today-making-iphone-more-personal-and-capable-than-ever/)</sup>

## 数据一览

苹果报告称，2025年App Store生态系统促成了1.4万亿美元的账单和销售额，其中1490亿美元是开发者数字商品和服务的账单收入，由游戏、企业应用和视频流媒体驱动。<sup>[6](https://www.apple.com/newsroom/2026/06/app-store-ecosystem-reaches-1-point-4-trillion-usd-as-developers-thrive-globally/)</sup> 该商店在175个国家和地区拥有超过8.5亿平均周活跃用户，对于超过90%的账单和销售额，开发者未向苹果支付佣金。<sup>[6](https://www.apple.com/newsroom/2026/06/app-store-ecosystem-reaches-1-point-4-trillion-usd-as-developers-thrive-globally/)</sup>

**收入与下载量。** 两个平台的盈利方式不同。2025年第二季度，在两大商店的消费者应用内购买支出中，iOS占近280亿美元，接近总额的70%，而Google Play占据了全部下载量的77%；iOS下载量同比增长4.4%，而[Google Play](https://www.edgepedia.org/zh/google-play)略有下降。<sup>[18](https://investgame.net/wp-content/uploads/2025/11/sensor_tower__q2_2025_digital_market_index.pdf)</sup>

**版本采用率。** 以在App Store上进行交易的iPhone衡量，2026年6月iOS 26安装在79%的iPhone上，iOS 18占14%。<sup>[19](https://www.statista.com/statistics/565270/apple-devices-ios-version-share-worldwide/)</sup> Statcounter的网络分析面板给出较低数字：2026年8月，iOS 26.6占全球版本份额的34.29%，iOS 26.5占32.71%，iOS 18.7占10.36%，iOS 16.7占1.84%。<sup>[20](https://gs.statcounter.com/ios-version-market-share/)</sup> 两种测量方法不同，一个是App Store交易，一个是网络流量，二者之间的差距尚未解决。无论如何，采用率集中在近期版本：苹果直接向每台受支持设备推送更新，五年前的iPhone也能获得当前iOS，约95%的活跃iOS设备在发布后几个月内运行近期主要版本。<sup>[21](https://rollingthundersecurity.com/mobile/platform_models.html)</sup> Android的模式更为碎片化：谷歌每月发布AOSP更新，但厂商和运营商控制分发，Pixel设备立即更新，其他厂商延迟数月，一些设备在头一两年后就再也收不到安全更新。<sup>[21](https://rollingthundersecurity.com/mobile/platform_models.html)</sup>

## 与Android及其他苹果操作系统的比较

2023年对[Android 14](https://www.edgepedia.org/zh/android-14)和iOS 17的比较发现，两者都强调安全启动、基于硬件的密钥存储和生物识别认证，但隔离设计不同：Android采用SELinux和唯一用户ID进行进程隔离的分层方法，而iOS的方法更为统一，为每个应用提供独立的隔离环境和严格的访问控制。<sup>[22](https://www.renemayrhofer.com/courses/android-security/selected-paper/2023/Android_and_iOS_Platform_Security-A_Comparison.pdf)</sup> 它们的认证也不同，谷歌持有SOC认证，苹果获得通用标准认证。<sup>[22](https://www.renemayrhofer.com/courses/android-security/selected-paper/2023/Android_and_iOS_Platform_Security-A_Comparison.pdf)</sup>

在苹果自身家族中，iOS应用运行环境比macOS应用更为受限，在文件系统层面隔离，对系统API的访问有限；在欧盟以外，App Store是iOS应用唯一的官方分发平台；在欧盟，依据《数字市场法》可使用替代应用市场，这与Android的多个商店和侧载不同。<sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup> 与Android的Binder相比，iOS提供的进程间通信选项也非常少，从而最小化攻击面。<sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup>

## 监管：《数字市场法》与近期发展

2024年1月25日，苹果宣布在欧盟对iOS、Safari和App Store做出调整以遵守《数字市场法》，包括为开发者提供600多个新API。<sup>[7](https://www.businesswire.com/news/home/20240125068597/en/Apple-announces-changes-to-iOS-Safari-and-the-App-Store-in-the-European-Union)</sup> 根据欧盟委员会的案卷记录，自iOS 17.4和iPadOS 18起，开发者可以在iOS和iPadOS上创建替代应用市场应用，苹果为授权市场开发者提供新框架和API的访问权限，使其能够接收和获取公证应用。<sup>[8](https://ec.europa.eu/competition/digital_markets_act/cases/202611/DMA_100123_206.pdf)</sup> 市场框架还让用户能够通过授权浏览器从开发者网站下载和安装市场应用，与系统功能集成，并备份和恢复用户的应用。<sup>[8](https://ec.europa.eu/competition/digital_markets_act/cases/202611/DMA_100123_206.pdf)</sup>

苹果自己的合规文档主张，在新规则下核心保护仍然存在：基于硬件的设备加密无法禁用，所有应用仍被沙盒化，代码签名仍将第三方应用中的所有代码绑定到在开发者计划注册时已验证真实身份的开发者。<sup>[23](https://developer.apple.com/security/complying-with-the-dma.pdf)</sup> 苹果进一步表示，欧盟的iPhone保留了沙盒、安全隔区、面容ID和触控ID以及安全启动。<sup>[23](https://developer.apple.com/security/complying-with-the-dma.pdf)</sup> 在欧盟以外，侧载长期以来以有限形式存在：自iOS 9起，应用可通过Xcode使用开发者证书安装，企业分发需要苹果签发的全公司证书。<sup>[1](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)</sup>

## 历史里程碑

苹果在iOS 2.0中引入了基于ARM NX位的数据执行保护，在iOS 4.3中引入了地址空间布局随机化。<sup>[24](https://www.usenix.org/system/files/conference/usenixsecurity13/sec13-paper_wang-updated-8-23-13.pdf)</sup> 截至2012年6月底，苹果已售出4亿台iOS设备。<sup>[24](https://www.usenix.org/system/files/conference/usenixsecurity13/sec13-paper_wang-updated-8-23-13.pdf)</sup>

## References

1. [iOS Platform Overview, OWASP Mobile Application Security Testing Guide](https://mas.owasp.org/MASTG/0x06a-Platform-Overview/)
2. [App code signing process in iOS, iPadOS, tvOS, visionOS, and watchOS, Apple Support](https://support.apple.com/guide/security/app-code-signing-process-sec7c917bf14/web)
3. [Security of runtime process in iOS, iPadOS, and visionOS, Apple Support](https://support.apple.com/guide/security/security-of-runtime-process-sec15bfe098e/web)
4. [Apple Platform Security Guide (PDF), Apple](https://help.apple.com/pdf/security/en_US/apple-platform-security-guide.pdf)
5. [iOS 18 is available today, Apple Newsroom (September 2024)](https://www.apple.com/newsroom/2024/09/ios-18-is-available-today-making-iphone-more-personal-and-capable-than-ever/)
6. [App Store ecosystem reaches $1.4 trillion as developers thrive globally, Apple Newsroom (2026)](https://www.apple.com/newsroom/2026/06/app-store-ecosystem-reaches-1-point-4-trillion-usd-as-developers-thrive-globally/)
7. [Apple announces changes to iOS, Safari, and the App Store in the European Union, Business Wire (January 25, 2024)](https://www.businesswire.com/news/home/20240125068597/en/Apple-announces-changes-to-iOS-Safari-and-the-App-Store-in-the-European-Union)
8. [European Commission DMA case document (2026)](https://ec.europa.eu/competition/digital_markets_act/cases/202611/DMA_100123_206.pdf)
9. [Analysis of Apple's SPTM/TXM kernel compartmentalization, arXiv (October 2025)](https://arxiv.org/html/2510.09272v1)
10. [Configuring background execution modes, Apple Developer Documentation](https://developer.apple.com/documentation/xcode/configuring-background-execution-modes.md)
11. [FORCEDENTRY: NSO Group iMessage Zero-Click Exploit Captured in the Wild, Citizen Lab](https://citizenlab.ca/research/forcedentry-nso-group-imessage-zero-click-exploit-captured-in-the-wild/)
12. [A deep dive into an NSO zero-click iMessage exploit: Remote Code Execution, Google Project Zero (December 2021)](https://projectzero.google/2021/12/a-deep-dive-into-nso-zero-click.html)
13. [Inside Pegasus: The evolution of the world's most notorious spyware system, Amnesty International Security Lab (July 2026)](https://securitylab.amnesty.org/latest/2026/07/inside-pegasus-the-evolution-of-the-worlds-most-notorious-spyware/)
14. [Exploit archaeology: a forensic history of in-the-wild NSO Group exploits](https://archive.orkl.eu/59781a33093ab92e108580f0006aadd07ba58d21.pdf)
15. [Triple Threat: NSO Group's Pegasus Spyware Returns in 2022, Citizen Lab](https://citizenlab.ca/research/nso-groups-pegasus-spyware-returns-in-2022/)
16. [Systematic Analysis of Smartphone Architectural Security: Android and iOS (2020–2025), IJASIS](https://xlescience.org/index.php/IJASIS/article/view/1197)
17. [iOS 18 makes iPhone more personal, capable, and intelligent than ever, Apple Newsroom (June 2024)](https://www.apple.com/newsroom/2024/06/ios-18-makes-iphone-more-personal-capable-and-intelligent-than-ever/)
18. [Digital Market Index Q2 2025, Sensor Tower](https://investgame.net/wp-content/uploads/2025/11/sensor_tower__q2_2025_digital_market_index.pdf)
19. [iPhone share by iOS version 2026, Statista](https://www.statista.com/statistics/565270/apple-devices-ios-version-share-worldwide/)
20. [iOS Version Market Share Worldwide, Statcounter Global Stats](https://gs.statcounter.com/ios-version-market-share/)
21. [Platform Security Models: iOS vs Android, Rolling Thunder Security](https://rollingthundersecurity.com/mobile/platform_models.html)
22. [Android and iOS Platform Security: A Comparison (2023), René Mayrhofer](https://www.renemayrhofer.com/courses/android-security/selected-paper/2023/Android_and_iOS_Platform_Security-A_Comparison.pdf)
23. [Complying with the Digital Markets Act, Apple security white paper](https://developer.apple.com/security/complying-with-the-dma.pdf)
24. [Jekyll on iOS: When Benign Apps Become Evil, USENIX Security 2013](https://www.usenix.org/system/files/conference/usenixsecurity13/sec13-paper_wang-updated-8-23-13.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Operating systems › Apple operating systems

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/ios

English original: https://www.edgepedia.org/ios
