Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Support dumping Keys DB #11

Open
hubert3 opened this issue Feb 4, 2016 · 3 comments
Open

Enhancement: Support dumping Keys DB #11

hubert3 opened this issue Feb 4, 2016 · 3 comments

Comments

@hubert3
Copy link

hubert3 commented Feb 4, 2016

Some apps use kSecClassKey to store IDs, passwords and credentials, even though these items are not really private keys. These credentials are currently invisible to keychaineditor.

It would be nice if they could be dumped and edited like passwords. Sogeti's keychain_dump (iphone-dataprotection.keychainviewer/Keychain/keychain_dump.c) supports dumping them.

@NitinJami
Copy link
Owner

Thanks for the suggestion @hubert3. I am fixing couple of bugs by end of this week. I will try to incorporate this as well.

@hubert3
Copy link
Author

hubert3 commented Mar 29, 2016

I implemented basic support for --action dump-keys in my fork here:

hubert3@ca32d8e

It assumes that kSecClassKey items contain strings as their data. It won't work for dumping RSA private keys or similar yet.

Adding --find xxx will only print key items where the Access Group field contains xxx.

kSecClassKey items do not have "Account" and "Service" like genp, instead they are identified by kSecAttrAccessGroup and kSecAttrApplicationTag. Some refactoring would be required to integrate this neatly into the existing keychaineditor commands because the existing code assumes every item has a "Service" and "Account" attribute.

@mailinglists35
Copy link

Feb 4, 2016 - I am fixing couple of bugs by end of this week. I will try to incorporate this as well.

hi, did you eventually incorporate the suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants