How to disable keychain data recovery from iCloud backup
0x1306a94 opened this issue · 2 comments
0x1306a94 commented
Device A
creates a token write through the following options
kSecAttrAccessible = kSecAttrAccessibleAlwaysThisDeviceOnly
kSecAttrSynchronizable = kSecAttrSynchronizableAny
Device A
creates an iCloud backupDevice B
erases or reflashes the firmwareDevice B
selects the iCloud backup created byDevice A
to restore- After the recovery of
Device B
is completed, the application can read the token written byDevice A
- I want to disable the ability to read tokens created by other devices after restoring from the iCloud backup of other devices, what should I do?
matthiastz commented
Hey, did you try to just disable the iOS cloud sync for your local on Device A
via KeychainSwift
?
let keychain = KeychainSwift()
keychain.synchronizable = false
https://github.com/evgenyneu/keychain-swift#synchronizing-keychain-items-with-other-devices
0x1306a94 commented
Hey, did you try to just disable the iOS cloud sync for your local on
Device A
viaKeychainSwift
?let keychain = KeychainSwift() keychain.synchronizable = false
https://github.com/evgenyneu/keychain-swift#synchronizing-keychain-items-with-other-devices
- still the same
- From the actual results, synchronization should not be equal to backup recovery