Forensics 101: Getting Information out of Corrupted Compressed Files

in #technology7 years ago

In my last post: Forensics 101: Basic Approach to File Analysis, we've discussed about the basic approach on how to find informations on generic files by going through all readable plain-texts in the file and making sense out of it. In a perfect world, that would probably be enough, however in the real world it is far from over.

Imagine if we are to analyze a damaged zipped file. (If you don't know, encryption is applied to files that are being zipped, so don't expect readable texts) and to make matters worse, we can't unzipped the file seeing as it's corrupted.

Take this Example taken from angstromCTFs 2017 Forensics challenge: We were provided with an "essay.docx" file. The problem is we can't open it.

Since ."docx" is basically just a zip file that contains all the XML files pertaining to the document, we should expect that the file is compressed and is then encrypted. Checking it on Hiew(Hacker's View):

Now, how do we proceed from this?

Logically, repairing the file is the best answer. If we can repair the file we will be able to view the contents inside the *.docx" file. The problem is, it would probably take too much time and we don't know how to repair corrupted files. Since all we wanna do is to see the contents inside the file, we can try this.

As I've said before ".docx is basically just a zip file". If we are to treat it like one, we could use the following command to force fix it:

zip -FF [input] --out [output]

We can now check the contents inside the file. Since it's in XML format, it will look like this. Anddd there's our flag.

Sort:  

I don't understand (is it hacking file???).... cool article btw.....

Depends on how you use it. This is mostly a tutorial and/or writeup for CTF (WTF is CTF?) focusing on Forensics and on compressed files.

thanks... I'll check wtf is ctf.......hehehe

maybe there might be a technical problem......
it can be seen again and again.... @jlordc dear
maybe the solution...

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by jlordc from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

This post has received a 1.04 % upvote from @drotto thanks to: @jlordc.

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.030
BTC 68161.91
ETH 2649.30
USDT 1.00
SBD 2.68