{"id":20292496,"url":"https://github.com/mauricelambert/entropyanalysis","last_synced_at":"2026-06-04T18:31:05.957Z","repository":{"id":186536062,"uuid":"675340495","full_name":"mauricelambert/EntropyAnalysis","owner":"mauricelambert","description":"This package analyzes file entropy (shannon entropy) for forensic and malware analysis.","archived":false,"fork":false,"pushed_at":"2024-03-10T15:08:08.000Z","size":534,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-15T08:36:36.884Z","etag":null,"topics":["cybersecurity","disk-analysis","entropy","entropy-analysis","file-analysis","forensic","malware-analysis","security"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mauricelambert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-08-06T15:47:29.000Z","updated_at":"2025-07-20T04:38:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"89b47b68-1d1d-435d-bd00-bb8883d1bcaa","html_url":"https://github.com/mauricelambert/EntropyAnalysis","commit_stats":null,"previous_names":["mauricelambert/entropyanalysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mauricelambert/EntropyAnalysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FEntropyAnalysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FEntropyAnalysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FEntropyAnalysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FEntropyAnalysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauricelambert","download_url":"https://codeload.github.com/mauricelambert/EntropyAnalysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FEntropyAnalysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33916320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cybersecurity","disk-analysis","entropy","entropy-analysis","file-analysis","forensic","malware-analysis","security"],"created_at":"2024-11-14T15:17:34.285Z","updated_at":"2026-06-04T18:31:05.905Z","avatar_url":"https://github.com/mauricelambert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![EntropyAnalysis](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.gif \"EntropyAnalysis\")\r\n\r\n# EntropyAnalysis\r\n\r\n## Description\r\n\r\nThis package analyzes file entropy (shannon entropy) for forensic or\r\nmalware analysis\r\n\r\n## Requirements\r\n\r\nThis package require:\r\n - python3\r\n - python3 Standard Library\r\n\r\nOptional:\r\n - matplotlib (matplotlib is not installed by EntropyAnalysis, if you want GUI charts you should install it.)\r\n\r\n## Installation\r\n\r\n```bash\r\npython3 -m pip install EntropyAnalysis\r\n\r\n# The following line is optional (requirements for GUI charts)\r\npython3 -m pip install matplotlib\r\n```\r\n\r\n```bash\r\ngit clone \"https://github.com/mauricelambert/EntropyAnalysis.git\"\r\ncd \"EntropyAnalysis\"\r\npython3 -m pip install .\r\n```\r\n\r\n## Usages\r\n\r\n### Command line\r\n\r\n```bash\r\nEntropyAnalysis              # Using CLI package executable\r\npython3 -m EntropyAnalysis   # Using python module\r\npython3 EntropyAnalysis.pyz  # Using python executable\r\nEntropyAnalysis.exe          # Using python Windows executable\r\n\r\nEntropyAnalysis packed.exe\r\nEntropyAnalysis -c packed.exe\r\nEntropyAnalysis --all-characters packed.exe\r\nEntropyAnalysis -f -C packed.exe\r\nEntropyAnalysis -p 1024 packed.exe\r\nEntropyAnalysis -o -k 4096 packed.exe\r\nEntropyAnalysis -k 4096 -p 1024 packed.exe\r\nEntropyAnalysis -u https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.so\r\n```\r\n\r\n### Python script\r\n\r\n```python\r\nfrom EntropyAnalysis import *\r\nfrom urllib.request import urlopen\r\n\r\nget_full_file_entropy(open('packed.exe', 'rb'))\r\n\r\ncharts_chunks_file_entropy(open('packed.exe', 'rb'))\r\ncharts_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048, part_size=512)\r\n\r\nfor score in get_chunks_file_entropy(open('packed.exe', 'rb')):\r\n    print(score)\r\n\r\nfor score in get_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048):\r\n    print(score)\r\n\r\nprint_chunks_file_entropy(open('packed.exe', 'rb'))\r\nprint_parts_chunks_file_entropy(open('packed.exe', 'rb'))\r\n\r\nprint_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048, colors=True)\r\nprint_parts_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048, part_size=512, colors=True)\r\n```\r\n\r\n## Links\r\n\r\n - [Pypi](https://pypi.org/project/EntropyAnalysis)\r\n - [Github](https://github.com/mauricelambert/EntropyAnalysis)\r\n - [Documentation](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.html)\r\n - [Python executable](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.pyz)\r\n - [Python Windows executable](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.exe)\r\n\r\n## License\r\n\r\nLicensed under the [GPL, version 3](https://www.gnu.org/licenses/).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fentropyanalysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauricelambert%2Fentropyanalysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fentropyanalysis/lists"}