// Glossary

Entropy Analysis

Last updated ·

Entropy analysis measures how random a block of data looks, usually as Shannon entropy in bits per byte, and flags changes that suggest encryption. Well-encrypted output is close to the maximum of 8 bits per byte, while plain text and typical database pages score well below it, so a sudden wave of near-random rewrites is a strong ransomware signal.

Why does entropy matter for ransomware defense?

MITRE ATT&CK technique T1486, Data Encrypted for Impact, describes adversaries who "encrypt data on target systems or on large numbers of systems in a network to interrupt availability to system and network resources." A ransom note arrives after the damage is done. An entropy change is visible while files are still being rewritten, which is when stopping the process and protecting the last clean copy still helps.

The research basis is solid. The UNVEIL system, presented at USENIX Security 2016, computed the entropy of data read from a file and of data written back to the same offset. Its authors found that comparing the two is an excellent indicator of crypto-ransomware behavior, because ransomware typically reads the original, encrypts it and overwrites it.

How does EOXLABS apply entropy analysis?

EOXLABS treats entropy as one signal among several, never as a verdict on its own. The approach has three parts:

  • Compare before and after. The useful measure is the change between what a file was and what is written over it, not the absolute score of a single write.
  • Combine with behavior. MITRE's detection guidance for T1486 looks at high-frequency file writes with uncommon extensions, followed by ransom-note creation or shadow-copy deletion. Rate, breadth and entropy together are far harder to explain away than any one of them.
  • Protect first, investigate second. When the signal fires, retention on the latest snapshots holds, so the immutable backup taken before the attack cannot be overwritten while people investigate, and the recovery point objective stays within reach.

BASTION, the EOXLABS backup product listed on the products page, uses entropy analysis to flag mass-encryption patterns early. Backup design against ransomware is the subject of the engineering note ransomware-resilient backups.

What are the limits of entropy analysis?

  • High entropy is not always an attack. Compressed archives, JPEG images, video and files that are already encrypted are close to random by design. A rule based on absolute entropy alone floods analysts with false alarms.
  • Partial encryption lowers the signal. CISA's advisory on BlackSuit (Royal) ransomware describes a "partial encryption approach that allows the threat actor to choose a specific percentage of data in a file to encrypt", which "helps evade detection". Sampling only the start of a file misses this.
  • Overwrites can look ordinary. The UNVEIL authors note that malware using secure deletion may overwrite originals with low-entropy data, after first writing an encrypted copy elsewhere. Watching new files as well as overwrites closes that gap.
  • Same word, different job. Entropy in key generation measures how unpredictable a random source is. It shares the mathematics, not the purpose.

Teams in the cybersecurity sector can find related terms in the EOXLABS glossary.

→

Related

+

More glossary

Have a system that can’t go dark?

Start a project →