Entropy
A randomness score that flags packed or encrypted data.
What it is
In file analysis, entropy measures the randomness of a file's bytes on a 0-8 scale. Compressed or encrypted data pushes toward the high end.
Why it matters
High entropy in a section of an executable is a strong hint of packing or encryption, helping triage which samples warrant deeper reverse engineering.
In practice
A PE section measuring ~7.9 entropy, signaling a packed payload that must be unpacked before static analysis.
What to look for
- Sections with entropy close to 8 bits per byte.
- A small import table paired with high-entropy sections.
- High entropy in file types that are normally plain text.
Common mistake
Calling high entropy malicious. Compressed archives, images and encrypted backups are high too; it is a lead, not a verdict.
Use it in CyberKit
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
Ghidra Open source
A disassembler and decompiler for reading what a sample's code actually does. Our notes.
-
YARA Open source
Writes rules that match a family's code or strings across many files. Our notes.
-
VirusTotal Commercial
Shows how many engines flag a file, plus its relations to domains and other samples.
-
ANY.RUN Commercial
An interactive sandbox where you watch a sample run and click through what it asks for.
ATT&CK techniques
- T1027: Obfuscated Files or Information
Read next
- Packing: Compressing or encrypting a binary to hide its real code.
- Sandboxing: Detonating a sample in an isolated environment to watch its behavior.
- YARA: A pattern-matching rule language to classify malware.