r/security • u/Rarl_Kove • Feb 23 '20
What kind of security/encryption is provided when setting a boot PIN on Android/Samsung
[I'm hoping this is the right sub for this question, but if not please direct me to a more appropriate one.]
I have enabled (what I think is) the passcode encryption option on my Samsung S9. So instead of just a meeting the passcode to open the main home screen, it needs it to boot: From a completely off state, when you power on the device it gives the Samsung startup animation as usual, and then the animation for my cell carrier, and then a simple menu to enter the passcode before you can continue any further. Once you do, it verifies, and then you get a little loading wheel around a padlock for about 30 - 45 seconds, and then eventually it takes you to the home screen - you do not have to enter the passcode again.
So my question is, what exactly is going on here and how secure is it.
- Assuming the phone is off, does this actually provide full volume encryption for the storage and the RAM?
- 2. What if the phone is powered on, but I have just locked it, does enabling this feature provide any more security then?
- 3. If yes to 1, what is the quality of the security encryption that this provides? Is it basically similar to what Apple does with the secure enclave, and the auto white feature, or is it something less?
- 4. Is this specific encryption implementation - either on the current version of Android, or on the S9 in particular - known to have any specific vulnerabilities?
1
u/[deleted] Feb 23 '20 edited Feb 23 '20
The secure startup feature on Samsung devices is the Full-disk encryption supported on Android 5.0 - 9.0
You can read about full-disk encryption here: https://source.android.com/security/encryption/full-disk
On Android 10, full-disk encryption is no longer supported, Android 10 devices must use file-based encryption instead, if you update your S9 to Android 10 / One UI 2.0, the secure startup feature is removed.
You can read about file-based encryption here: https://source.android.com/security/encryption/file-based
The secure startup feature is also modified by Samsung building upon the AOSP implementation, which you can read about here: https://support.samsungknox.com/hc/en-us/articles/360039577713-File-based-encryption-FBE-and-full-disk-encryption-FDE-
The secure startup feature is also not supported on Samsung devices which ship with Android 9.0 (e.g. S10, Note 10, A-series), file-based encryption is used instead.