File Content Histograms
cutawaysecurity.com
cutawaysecurity.com
Although developed specifically for mu-law data I found it quite helpful for identifying other file types as well, just as the author here described.
Bill
Hmm, may not get any work done this afternoon.
Also, I am not sure that this sort of diagram would be suitable to tell certain file types apart, there is probably always a better way to do that.
You should notice that the histogram of a zip file, for example, should level out (like the truecrypt histogram does) if the file were as big as the truecrypt file.
The look of these histograms is largely influenced by the file size. So, I think only the peaks are worth to interpret.
Why would that be the case?
- Executables: some opcodes are more common than other, and usually contain text/messages
- Zip files / compressed images / mp3s: compression might have a distinct "signature" that has peaks, for example block headers
- Database files: not all values are equally common in records (probably peaks around zero, because of fixed-size integers and string padding)
And so on...
http://www.cutawaysecurity.com.nyud.net/blog/file-content-hi...
perhaps relative distributions would be close enough to the "general pattern" for a particular file type to be guessed?