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

fixes #2457: added -m 23100 = Apple Keychain #2472

Merged
merged 3 commits into from
Jul 1, 2020

Conversation

philsmd
Copy link
Member

@philsmd philsmd commented Jun 25, 2020

This PR adds a new hash type: -m 23100 = Apple Keychain.

The format details are explained here: #2457 (comment)

An example hash is this (password "hashcat" without quotes):

$keychain$*74cd1efd49e54a8fdc8750288801e09fa26a33b1*66001ad4e0498dc7*5a084b7314971b728cb551ac40b2e50b7b5bd8b8496b902efe7af07538863a45394ead8399ec581681f7416003c49cc7

It basically uses PBKDF2-HMAC-SHA1 with 1000 iterations and a digest output length of 24 bytes, it decrypts a data buffer with 3DES to check for a specific padding.

The only problem here is that the fixed-size padding is only 4 bytes long (\x04\x04\x04\x04) and this is the only way to verify the correctness of the password (the remaining bytes of the decrypted data are random key bytes, the file encryption key).

I suggest (as mentioned in #2457 ) to use this format with --keep-guessing , otherwise you might risk to see a lot of false positives (collisions).

Thank you

@jsteube jsteube merged commit 97a3cda into hashcat:master Jul 1, 2020
@philsmd philsmd deleted the m23100_apple_keychain branch July 2, 2020 15:24
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

Successfully merging this pull request may close these issues.

2 participants