HomeView может распознавать до шести человек, используя камеру и микрофон для определения лица и голоса зарегистрированного пользователя. Apple рассказала, как отделяет обработку этих данных от остальной системы и сообщает пользователю о передаче полных данных сенсоров основной операционной системе.[1][2][3][4]
Для распознавания окружения, которое компания называет ambient sensing, система обрабатывает сигналы камеры и микрофона. По словам Apple, при этом она не должна записывать аудио или видео либо передавать их остальной операционной системе.[2][5]
Основу защиты составляют Secure Exclaves — изолированные среды, в которых данные камеры и микрофона обрабатываются отдельно от остальной системы. Как утверждает Apple, данные, обработанные внутри такой среды, недоступны основной ОС, приложениям и самой компании.[3][6]
Для камеры и микрофона предусмотрены два режима: ambient и active. В первом сенсор может реагировать на определённые сигналы окружения, но остальной системе передаются только конкретные метаданные. Во втором основной ОС могут передаваться полные данные сенсора, а защищённый индикатор сообщает об этом пользователю.[7][8][4]
Apple объясняет, что постоянно горящий индикатор не позволил бы отличить фоновое распознавание от активной записи аудио и видео. Для HomeView контроллер Exclave Indicator Controller может напрямую включать светодиод и проверять, достаточно ли он ярок. Передача данных разрешается только после того, как индикатор включён и остаётся видимым достаточно долго.[9][10][11]
Компания заложила в Secure Exclaves три требования: данные внутри изолированной среды нельзя извлечь или изменить из основной ОС; из Secure Exclaves в основную ОС может проходить только строго определённая информация; пользователь должен видеть активный сеанс работы сенсора без вмешательства основной ОС.[12]
Secure Exclaves работают в отдельном от основной ОС процессорном контексте. Для защищённой основы операционной системы Apple использовала собственную модификацию микроядра L4.[13][14]
За таблицы страниц и память отвечает Secure Page Table Monitor, или SPTM. По словам Apple, этот компонент работает с более высоким уровнем привилегий, чем ядро основной ОС, и отдельно загружается загрузчиком. Он управляет каждой физической страницей памяти процессора приложений и обеспечивает Secure Exclaves отдельное изолированное представление памяти.[15][16]
Для связи с основной ОС Apple создала Secure IPC на языке Swift. Компания утверждает, что механизм ограничивает обмен разрешённой информацией и не допускает непредусмотренной коммуникации между компонентами.[17][18]
This capability relies on ambient sensing: using the microphone and camera to understand the surrounding environment and recognize an enrolled user’s voice and face.
To accomplish this, we have created Secure Exclaves: protected and compartmentalized runtimes used to process camera and microphone data separately from the rest of the system.
In active mode, full sensor data can be released to the main operating system (OS), and a secure indicator reliably informs the user that it’s happening.
While ambient sensing relies on processing input from the camera or microphone, it must never record audio or video, nor expose it to the rest of the operating system.
To protect ambient sensing, we aimed to build a system that operated in two distinct modes: ambient mode and active mode, for both camera and microphone.
In ambient mode, a sensor can respond to particular triggers in the world around it, but only specific metadata may be shared with the rest of the system.
For products like HomeView that use an LED, just the Exclave Indicator Controller is needed. It can toggle the LED directly and ensure that it is bright enough to be visible.
This would defeat the utility of the indicator, and prevent the user from distinguishing background sensing — such as a device listening for a “Hey Siri” invocation — from active audio and video recording.
- Isolation: data processed in Secure Exclaves must not be extractable or modifiable from the main OS.
- Controlled interface: only a precisely specified set of information can cross the boundary from Secure Exclaves to the main OS.
- Secure indication: the user must be able to see whether an active sensor session is in progress, without interference from the main OS.
For this reason, we utilized an Apple-customized version of the L4 microkernel which we originally built for some of our most security-sensitive deployments, including the Secure Enclave Processor (SEP).
Secure Exclaves run in a different processor execution context from the main OS, which allows us to employ an independent operating system specially designed to handle high-security, high-performance workloads.
We laid the groundwork for isolation in earlier releases, by carving out and rebuilding this subsystem as the Secure Page Table Monitor (SPTM): a standalone component that handles page table and memory logic, and runs at a higher privilege level than the main OS kernel. It doesn’t share data or code with the main OS, and is separately loaded by the boot loader.
It manages every physical page of memory used by the application processor, and enforces that software executing in Secure Exclaves have a separate and isolated view of memory than that seen by the main OS.