GrapheneOS 针对已锁定设备数据提取的保护机制
GrapheneOS protections against data extraction from locked devices

原始链接: https://discuss.grapheneos.org/d/40700-grapheneos-protections-against-data-extraction-from-locked-devices

GrapheneOS 通过利用先进的硬件安全技术并强化安卓原生功能,为防止数据提取提供了强大的防御能力。该操作系统目前仅支持 Pixel 设备,计划于 2027 年扩展至摩托罗拉硬件。 核心安全措施包括: * **加密与身份验证:** GrapheneOS 强制执行安全元件速率限制以防止暴力破解,并提供“防内部攻击”机制以阻止固件篡改。它将密码字符限制扩展至 128 位,支持高熵密码短语,并引入了“指纹+PIN码”双重身份验证,以实现既安全又便捷的访问。 * **物理保护:** 该系统在锁定状态下会屏蔽 USB 数据连接,并具备自动重启计时器,可将设备重置为安全的“首次解锁前”(BFU)状态,并清除内存(RAM)。 * **漏洞利用缓解:** 它采用了加固的内存分配器和硬件内存标记(MTE)技术,以抵御漏洞利用。 * **用户控制:** GrapheneOS 允许用户手动将配置文件切换至 BFU 模式,并包含“胁迫 PIN/密码”功能,可在受到威胁时擦除所有配置文件下的整个设备数据。 综上所述,GrapheneOS 最大限度地减少了对单一故障点的依赖,提供了一种超越标准移动操作系统的综合性多层安全模型。

Hacker News 最新 | 往期 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 GrapheneOS 防御针对已锁定设备的隐私数据提取(grapheneos.org) 17 点 | Cider9986 发布于 2 小时前 | 隐藏 | 往期 | 收藏 | 2 条评论 帮助 robotswantdata 4 分钟前 [–] 相关的 xkcd 漫画:https://xkcd.com/538/ 回复 bigyabai 2 分钟前 | 父评论 [–] 相关新闻报道:https://www.androidauthority.com/grapheneos-duress-pin-us-pr... 据《卫报》报道,美国司法部正在起诉亚特兰大居民 Samuel Tunick。此前,当边境人员试图搜查他的 Google Pixel 手机时,他提供了 GrapheneOS 的胁迫密码。 听起来他确实给了他们密码,但那个密码是用来擦除手机数据的,而不是解锁手机。我很惊讶他们竟然没有先备份设备。 回复 欢迎申请 YC 2026 年秋季批次!申请截止日期为 7 月 27 日。 准则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

GrapheneOS has strong defenses against data extraction. It heavily builds upon the standard security features provided by Android 17 and the most secure hardware available for Android. Currently, only Pixels provide the hardware security features and updates required by GrapheneOS. That's going to change in 2027 thanks to our partnership with Motorola Mobility and progress being made by Qualcomm.

Disk encryption provides strong protection for data. Even the most sophisticated attackers aren't going to be directly breaking it. They either need to exploit the OS while in After First Unlock state or brute force the PIN/password.

Android 16 QPR2 calls for a secure element implementing rate limiting ramping up delays. It's 4 hours after 10 and 41 days after 15. Only 20 attempts are allowed. For usability, It rejects the most recent 5 unique failed attempts early to avoid wasting attempts on repeated errors. GrapheneOS only supports devices implementing the latest generation secure element rate limiting.

https://source.android.com/docs/security/features/authentication/rate-limiting

The secure element on the supported devices also has insider attack resistance. That's implemented by requiring the Owner user to successfully authenticate before the secure element firmware can be updated. A valid signing key and greater version number aren't enough alone. The purpose of this is preventing any government from bypassing the rate limiting by coercing the creation of a firmware update removing the rate limit.

Pixels have used a secure element with an internal timer implementing rate limiting and insider attack resistance since the Pixel 2 launched near the end of 2017. Here's a post about this from back in 2018:

https://android-developers.googleblog.com/2018/05/insider-attack-resistance.html

The secure element and integration into the OS has become far better since then, but it shows this goes back a long way and isn't a new feature.

GrapheneOS also raises the character limit for passwords from 16 to 128. This enables using high entropy diceware passphrases not depending on the secure element rate limiting.

To make a strong passphrase convenient to use without ruining it with biometric unlock, GrapheneOS adds an optional 2nd factor fingerprint PIN. We reduce the allowed fingerprint attempts from 20 to 5 and failure to enter the correct 2nd factor PIN counts towards it. This enables using 6-8 random diceware words as the main unlock method required in Before First Unlock and fingerprint+PIN using a short PIN for convenience. Using a valid fingerprint prompts to enter the 2nd factor PIN which is needed to complete unlocking the screen and hardware keystore.

GrapheneOS greatly improves the exploit protections for the OS with hardened memory allocators and other features. It heavily uses hardware-based security features including hardware memory tagging (MTE) to protect against exploits. A partial overview of those protections is here:

https://grapheneos.org/features#exploit-protection

GrapheneOS adds specialized protection against attacks with physical access too. For example, it blocks new USB connections at a software and hardware level by default while locked and disables USB data as soon as there are no active USB connections.

GrapheneOS shipped a locked device auto-reboot timer back in June 2021. It can be set between 10 minutes and 72 hours. We enabled it by default using 72 hours and then lowered it 18 hours. It automatically returns the device to Before First Unlock state due to our memory zeroing as part of tearing down the OS and booting. We got Pixels to add memory zeroing for booting the firmware fastboot mode in April 2024. Apple and Google added a locked device auto-reboot timer in iOS 18.1 and Android 16. For Android, it can be enabled with the Android Advanced Protection Mode. Our implementation is better for multiple reasons but it's a useful feature regardless.

Android uses separate encryption keys for each secondary user and Private Space. GrapheneOS adds support for putting both back into Before First Unlock state without a reboot via end session for secondary users or toggles for either to do it by default. It's still much better for the device to be rebooted to get the main user back at rest, completely clear leftover data from RAM and block secure element updates.

Our duress PIN/password feature is a minor feature fitting into the bigger picture. It wipes the device when it's entered in any OS prompt for the current profile's PIN or password. It will wipe the device when entered into the authentication prompt for changing a sensitive setting or anything else requiring it, not only the lockscreen. It works across every profile including secondary users and Private Spaces, not only the main user.

There are multiple ways to use the duress PIN/password feature including writing it down on a phone case or a paper kept in a wallet. People should carefully consider how to use it in an actual duress situation where there can be physical or legal consequences for wiping the device. GrapheneOS doesn't require it to protect data from being extracted from the device, but it takes recovering it completely off the table even with the PIN/password for each profile on the device.

GrapheneOS doesn't depend on the duress PIN/password to protect user data. It's one of the tools it provides among the major privacy and security improvements it offers as a whole. Our features page provides an overview of what GrapheneOS offers compared to standard Android 17. It covers most of the major features we provide and many of the minor ones but there's also a lot more beyond it. Our release notes are a lot more exhaustive since we make sure to cover everything when it's added, changed or removed.

https://grapheneos.org/features
https://grapheneos.org/releases#changelog

联系我们 contact @ memedata.com