Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Security of the iPhone Keychain?



Currently the secrets are encrypted with a device specific AES 128 bit key, available within the kernel boundary, derived using a same size hardware key. All secrets use the same key, a different per secret IV and are encrypted concatenated with their SHA-1 hash and PKCS#7 padding. Access is effectively restricted to root in user space.

With regard to the question of similarities between desktop and embedded, the keychain on the phone stores the same data, except for ACLs vs access groups, and is otherwise different. In general, the APIs that appear shared will act the same, but their implementation is different if only because there is no CSSM anything.

Conrad.

On Dec 18, 2008, at 8:20 PM, Logan Browne wrote:

Conrad-

As a follow up to this question, my poking at the backup files for the
iphone show that the keychain is stored in a sqllite db and does
encrypt the secrets stored there for each application based on some
sort of key. So far I have been unable to find descriptions of the
algorithms used, key generation, key storage, or key sizes involved.
My employer has some interest in knowing those kinds details, to help
determine the risk posed by offline attacks. Any hints or references I
should look to for the iphone specifics?

-Logan

On Thu, Dec 18, 2008 at 9:36 AM, Conrad Sauerwald <email@hidden> wrote:
Rather than the bundle ID it's the application identifier and keychain
access group, entitlements protected by the signature, that determine
your access. That signature has to be Apple signed, either directly or
indirectly via a profile, where the profile limits the entitlements
and values they can have.


In the end applications do have access to the keychain on the phone
without having to enter a password. The passcode protects from
unlocking but does not figure into the encryption of keychain secrets.
That is the real difference.


Once you'd enter the password on the desktop you could steal password
the same way as on the phone.

You will have to answer your own question because it is unclear what the
risk/reward is here. I have no problems storing any password or identity in
the keychain that I will actually use on the phone, but you may be alluding
to secrets outside that scope.


Conrad.  (iPhone)

On Dec 18, 2008, at 4:14, "Alexander v. Below" <email@hidden> wrote:

Hello,

how secure is the iPhone keychain? The Documentation says, that an
application only has access to its own keychain items.

But how is that Application determined?

Could someone jailbreak a phone, and install an application with the
same bundle ID as mine, and then read my keychain? Or are other
exploits for the iPhone keychain known?

The basic question is: Is it definitely, positively secure to store
sensitive data in the iPhone keychain?

Thanks

Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/apple-cdsa/conrads %40apple.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Apple-cdsa mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Apple-cdsa mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden
References: 
 >Re: Security of the iPhone Keychain? (From: Conrad Sauerwald <email@hidden>)
 >Re: Security of the iPhone Keychain? (From: "Logan Browne" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.