[GH-ISSUE #2895] Add support for MAC verification in BitLocker formats #1836

Open
opened 2026-10-15 04:26:17 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @kholia on GitHub (Nov 17, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2895

Links,

Maybe @e-ago will submit a PR soon? :-)

This MAC check discovery is a solid improvement over existing verification techniques. Great work!

@e-ago How much is the speed difference between the new MAC verification method and the older "strict check" method? Would it be possible to make the MAC verification method the default option?

Originally created by @kholia on GitHub (Nov 17, 2017). Original GitHub issue: https://github.com/openwall/john/issues/2895 Links, * https://github.com/e-ago/bitcracker/commit/5268e0d7c8c609987ef927bb16741e95fcda84c1 * https://github.com/e-ago/bitcracker/commit/b28c8e6fdcc55100f4fa29d554402293c5abbd25 * https://github.com/e-ago/bitcracker/commit/30ee62bb3542528b3016050b0d1a008243cfb8dd Maybe @e-ago will submit a PR soon? :-) This MAC check discovery is a solid improvement over existing verification techniques. Great work! @e-ago How much is the speed difference between the new MAC verification method and the older "strict check" method? Would it be possible to make the MAC verification method the default option?
Author
Owner

@e-ago commented on GitHub (Nov 20, 2017):

Thank you :) Yes I will release the MAC check soon.

The MAC verification is definitely slower than the current fast VMK check. Considering my CUDA implementation, on a GPU Tesla K80 performance decreased from 385 p/s to 340 p/s, therefore is better to use the MAC verification only if the input wordlist is a sequence of false positives.

Is it possible to add an option only for the BitLocker format ( like -m on my repo, https://github.com/e-ago/bitcracker#false-positives ) to enable the MAC verification?

<!-- gh-comment-id:345730512 --> @e-ago commented on GitHub (Nov 20, 2017): Thank you :) Yes I will release the MAC check soon. The MAC verification is definitely slower than the current fast VMK check. Considering my CUDA implementation, on a GPU Tesla K80 performance decreased from 385 p/s to 340 p/s, therefore is better to use the MAC verification only if the input wordlist is a sequence of false positives. Is it possible to add an option only for the BitLocker format ( like -m on my repo, https://github.com/e-ago/bitcracker#false-positives ) to enable the MAC verification?
Author
Owner

@kholia commented on GitHub (Nov 20, 2017):

The BitLocker hashes currently start with string $bitlocker$0$16$. Note the $0$ field. We can increment this field to 1 to tell the format (i.e. the cracking code) that MAC verification needs to be done. If this field is 0, then the old behavior is retained.

The bitlocker2john.c utility can then be extended to generate two kinds of output hashes (ones with $0$ and others with $1$) depending on the user's choice.

I hope that this is clear.

<!-- gh-comment-id:345735171 --> @kholia commented on GitHub (Nov 20, 2017): The BitLocker hashes currently start with string `$bitlocker$0$16$`. Note the `$0$` field. We can increment this field to `1` to tell the format (i.e. the cracking code) that MAC verification needs to be done. If this field is `0`, then the old behavior is retained. The `bitlocker2john.c` utility can then be extended to generate two kinds of output hashes (ones with `$0$` and others with `$1$`) depending on the user's choice. I hope that this is clear.
Author
Owner

@kholia commented on GitHub (Nov 20, 2017):

@e-ago If you can explain to me the process of MAC verification at a high-level (e.g. take SHA1 checksum of decrypted data, and compare with XYZ), then I believe I can make the necessary changes to the bitlocker2john.c utility and the CPU format.

<!-- gh-comment-id:345737425 --> @kholia commented on GitHub (Nov 20, 2017): @e-ago If you can explain to me the process of MAC verification at a high-level (e.g. take SHA1 checksum of decrypted data, and compare with XYZ), then I believe I can make the necessary changes to the `bitlocker2john.c` utility and the CPU format.
Author
Owner

@e-ago commented on GitHub (Nov 30, 2017):

@kholia before opening the pull request about the MAC verification I need to sync with you on the hash format: as you said we can use the 0 field according to the attack mode.
In my BitCracker repository, in a couple of weeks I should be able to release an additional attack mode to the recovery key and I would like to define with you the format numbers, something like:

  • 0 -> User Password, fast attack
  • 1 -> User Password, additional MAC verification
  • 2 -> Recovery key

Is that ok for you?

<!-- gh-comment-id:348270516 --> @e-ago commented on GitHub (Nov 30, 2017): @kholia before opening the pull request about the MAC verification I need to sync with you on the hash format: as you said we can use the $0$ field according to the attack mode. In my BitCracker repository, in a couple of weeks I should be able to release an additional attack mode to the recovery key and I would like to define with you the format numbers, something like: - $0$ -> User Password, fast attack - $1$ -> User Password, additional MAC verification - $2$ -> Recovery key Is that ok for you?
Author
Owner

@kholia commented on GitHub (Nov 30, 2017):

Sure, that sounds great. I am glad that we added this field earlier.

<!-- gh-comment-id:348272343 --> @kholia commented on GitHub (Nov 30, 2017): Sure, that sounds great. I am glad that we added this field earlier.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1836
No description provided.