Skip to content

idev/threat_hunting_entropy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

threat_hunting_entropy

Python code mirror for various entropy calculation. Visit the blog of Red Canary https://redcanary.com/blog/threat-hunting-entropy/ for details.

The various algorithms are stored in a class dictionary so all supported algorithms can be iterated through. See the calculate function for an example.

self.algorithms = {
    'Hartley': self.hartley_entropy,
    'Metric': self.metric_entropy,
    'Relative': self.relative_entropy,
    'Renyi': self.renyi_entropy,
    'Shannon': self.shannon_entropy,
    'Theil': self.theil_index,
    }

About

Python Example for relative entropy calculation. Based on the work of Red Canary https://redcanary.com/blog/threat-hunting-entropy/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages