8000 Attack of specific deflate file types · Issue #163 · kimci86/bkcrack · GitHub
[go: up one dir, main page]

Skip to content

Attack of specific deflate file types #163

Open

Description

@VujkePG

I have at least 15 zip archives, each encrypted with ZipCrypto and a strong password; each containing only "deflate" files (not a single "store" file), compressed with 7zip - compression level 5.

Archives typically contain multiple .xlsx files, sized 5 - 20 kb, and one large .zip file, sized 100 Mb - 4 Gb. I don't have decrypted versions of any of the files in the archives, nor can they be obtained, but I do have .xlsx and .zip files with similar content (.xlsx with identical formatting, column names, etc; .zip files compressed with identical process).

Is there an attack vector that has any realistic chance of success for such situation? Is there a chance that same compression algorithm of similar file would yield usable bytes for attack (is there a predictable result of deflate compression when applied to the large .zip files, or .xlsx files with repetitive elements)?

Activity

  1. kimci86 commented on Jul 19, 2026

    @kimci86
    Owner

    I cannot guarantee this will work, but with a bit of luck, it could be possible.
    Here is what I would try:

    1. Compress your similar known .xslx and .zip files with 7zip compression level 5.
    2. Dump deflate stream contained in the created archive.
      This can be done using a combination of zipdetails to get offset/length of deflate stream in archive and dd to dump a slice of data, or an hexadecimal editor. (or bkcrack eventually, see Extracting deflated file from unencrypted zip #93)
    3. Look for patterns among the deflate streams, in particular near beginning or end of compressed data.
      You can use an hexadecimal editor and/or infgen for that.

    If you need more help and don't mind sharing your files with the internet, you can upload them here so I and others could have a look.
    You can also email them to me if you want a little more privacy.
    I hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0