← Back to context

Comment by yaro330

22 days ago

[flagged]

No, that's completely untrue. We've provided clear, consistent and accurate information about how data is wiped. Factory reset, device admin wipe and duress PIN/password all use the same mechanisms to prevent recovering any data.

Disk encryption headers, hardware keystore keys and secure element data are each securely erased. Each of those mechanisms prevents deriving the key encryption keys which prevents ever recovering the data. Secure element data isn't stored on the SSD and prevents recovering data via an earlier image of the SSD. We implemented doing all 3 of those before reboot to recovery for device admin wipe and we used the same code for duress PIN/password wipe. We filed an Android security bug for device admin wipe and convinced them to add the hardware keystore wipe before reboot to recovery, but we still add the other 2 forms of wiping there ourselves.

  • [flagged]

    • That's not an inconsistency but rather the only way to reliably wipe user data. It would be completely broken to attempt wiping data by zeroing the userdata partition. That wouldn't get rid of all the data from the SSD even with secure erase commands for overwriting it.

      A modern SSD has both static and dynamic wear leveling. An SSD redirects writes to the free blocks with the least wear and also moves around used blocks to free up the least heavily written parts of the storage. An SSD with a proper whole drive secure erase implements it by securely wiping keys.

      You made an inaccurate attack on GrapheneOS and included a personal attack on the founder of the project with no basis too.

      3 replies →

The android system uses encryption to encrypt user data. When a factory reset is performed, the secure element, the TEE, as well as the encryption headers are wiped. As destroying one of them prevents deriving the encryption key, and that secure element can reliably zero its slots, the data is effectively rendered wiped as it cannot be read without the encryption key which can no longer be derived.

  • I get that but you have two sources saying different things which is kinda weird when the point of the OS is extreme security paranoia.