mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2502] Support new KeePass algorithms #1652
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1652
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kholia on GitHub (Apr 13, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2502
Originally assigned to: @kholia on GitHub.
Useful links,
http://keepass.info/help/base/security.html
http://keepass.info/help/kb/kdbx_4.html#argon2
ChaCha20 and Argon2 are needed.
@magnumripper commented on GitHub (Apr 21, 2017):
I'd like to see an OpenCL format as well. (Edit: OK, that's #2471)
@kholia commented on GitHub (May 20, 2017):
Here are some sample KeePass databases for testing.
@kholia commented on GitHub (Aug 27, 2017):
ChaCha20 support is done. Argon2 stuff needs work.
@kholia commented on GitHub (Sep 9, 2017):
Steps for building KeePass under Linux. Tested on Fedora 25.
@HEELcaT666 commented on GitHub (Jun 18, 2020):
Hi! Has this issue been fixed yet? I would be deeply grateful if you could please resolve this problem.
@BobForCat commented on GitHub (Jul 23, 2023):
Hi guys,
I have successfully implemented a python parsing (less than 200 lines) of the keepass v4 file using the KeePassJava2 code+documentation and I would like to propose this as a python
keepass2john.pyfor john, but that will also impact hashcat when it will be implementedI'd like that we (or in fact : you two, or whoever you think needed for this) decide the exchange format (for both hashcat and john) we change for that new version of file.
Actual john format
Actuat format contains in this order
v4 format idea
As the new format contains a HMAC of the header using the password (or +keyfile) I'd suggest the new format contains
The
kdf_paramsconsists of a mutliple key pairs, where keys are a single uppercase letter and value either a number of bytes. I tought we couldk=v*For argon2 (with in order: version, iteration,memory,parallelism,salt) it would look like
My questions are
is this a good idea to put the full header there to validate on ? Or would it be better to use the hmac of the first encrypted bloc instead ?
As I write in python it's very easy for me to decide the separators, the format, ... but in C it's different, so I don't know if how the parameters are written is a nice way. Like we could add a field
nbKdfParamsto help or whateverFinal possible format
pings to @jsteube @kholia https://github.com/hashcat/hashcat/issues/1013
@solardiz commented on GitHub (Jul 23, 2023):
@BobForCat Thank you! Once we agree on the encoding and have the script, what is the plan to have this actually supported in JtR and/or hashcat? Do you intend to work on that as well, or know who will?
@BobForCat commented on GitHub (Jul 24, 2023):
@solardiz Nope, no development on the cracking side for me, and I don't know anyone for that task
I also discovered that https://github.com/libkeepass/pykeepass did a parsing for v4, but I'm unsure if we can use a python dependency into a JtR extraction script
@solardiz commented on GitHub (Nov 14, 2024):
@magnumripper took care of implementing this support, on CPU and in OpenCL!
@HEELcaT666 @BobForCat, @SO-InformationTECH (of #5159), @krillin666 @sinand99 (of #5097), @bjornfor @yozachar @acolombier (who reacted to comments in #5097) - all of you are welcome to test and report any issues.