Data Information
Binary analysis and visualisation of binary data
Last updated
Binary analysis and visualisation of binary data
Last updated
The Data Information View gives visual insight into various aspects of the file's binary composition through analysis information, diagrams and tables.
To start the analysis, first select the start and end address that will be analyzed. Afterwards simply click on Analyze page
to start the analysis.
Further analysis options can be specified on a per-analysis basis by clicking on the gear icon of the individual blocks and changing their settings there.
It's also possible to disable certain analysis blocks by unchecking their checkbox next to their name.
This section contains additional information that has been provided by the data provider. The information found here will differ depending on the type of provider that's being used.
For a simple file provider, the table will display the file path, size, creation, access and modification as well as the region that has been analyzed by this view.
This section displays some helpful information about the file format itself and it's MIME type. It uses libmagic
for this which is the same library that's being used by the popular file
command on Linux.
If this section is missing, make sure you installed the relevant Magic database from the Content Store.
The Byte distribution graph is a Histogram which displays the number of occurrences of each byte using a logarithmic scale. In the graph above you can see that most bytes are equally likely to occurr but bytes close to 0x00
and around 100
(the ASCII range) are more abundant.
The byte types graph displays a stacked relative frequency graph which contains information about how often a certain type of byte occurres within a block of data. The X-Axis of this graph represents the block's address and the Y-Axis the percentage of bytes in this block that are of the relevant type.
The byte type is determined using the <cctype>
functions listed in the legend below. To hide certain types, simply click on their legend entry. There's also a drag bar on the graph that can be moved around to jump to the offset of that block in the Hex Editor View.image
Besides just byte types, the graph also highlights regions that have a lot of bytes of the same value in green and regions that most likely contain English plain text in purple.
The entropy graph displays the Shannon Entropy of each block using the following formula:
A higher entropy value corresponds to "more random" data. So big regions of the same value have a low entropy, big regions of completely random values have a high entropy.
The graph also has a drag bar again that can be moved to jump to that block's address.
This table displays information about the entire composition of the data.
Block Size
refers to the number of blocks that have been created and their individual size.
Overall entropy
displays the entropy value of the entire data.
Highest block entropy
and Lowest block entropy
shows the value and address of the block with the highest or lowest entropy value.
Plain text percentage
shows the percentage of the file that consists of plain text ASCII characters.
The block size heavily depends on the kind of data you're interested in. Lowering it will show finer details but also increases the noise level. Increasing it will average out small details but also remove most of the noise.
ImHex tries to figure out potential properties of data based on the parameters it calculated before. These are displayed in Red below the composition information.
The Digram visualizer takes random pairs of two bytes from the data and calculates their relative frequency. The value of the first byte is then used as the Y-Value, the value of the second byte as the X-Value starting from the top left. Pairs of bytes that are less abundant are then displayed in a faint Orange while pairs that appear more frequently are displayed in Blue or White.
The Layered Distribution or Layered Digram plot works the same way as the regular Digram visualizer but takes the position in the file into account as well. To do this, the file is split into a number of equally sized chunks and a byte value density map is generated for each of them. Each chunk then represents a single horizontal line in the diagram. The value 0x00 is all the way at the left, 0xFF all the way at the right of each row. The lighter the color, the more abundant that value is. The first row represents the byte density at the very start of the data, the last row represents the one at the very end.
For more information about both the Digram and Layered Distribution plots, check out this Blog Post by Codisec.
This analysis runs a set of Yara rules on the data to determine things like the Programming language a binary was written in or what kind of compiler was used. More rules can be downloaded from the content store or added manually to the <ImHex Folder>/yara/advanced_analysis
folder.
Example: