eous
eous is a fuzzy hashing tool for PE and ELF binaries. It reads the mnemonics/opcodes of an x86 or x86-64 executable and turns them into a 512-bit hash. Comparing two hashes gives a similarity score from 0 to 100%. Builds of the same program score high even when their bytes differ.
$ eous hash rg-14.0.0.exe
EO1:pe32:7160:0b3513e7d37451457b891713b0b2082822736fabf3074e5dc1993f0368c520d6c5...
Install
pip install eous
Python 3.12 or later, on Linux, Windows or macOS.
Usage
hash prints a digest for each file. A directory is walked recursively.
$ eous hash samples/
samples/fd-10.2.0.exe EO1:pe32:5230:f8e49feddbf691757b84371b737e1862e23363aabb07cc...
samples/rg-13.0.0.exe EO1:pe32:6503:0b271dd5c3785149fb82c71363f20828207b9fabb36740...
samples/rg-14.0.0.exe EO1:pe32:7160:0b3513e7d37451457b891713b0b2082822736fabf3074e...
samples/rg-14.1.0.exe EO1:pe32:7102:3b05d3c7d37411757b8b172370b20828227363abf3074e...
compare scores two files or two digests. Containment says how much of one file's code is
found in the other.
$ eous compare rg-14.0.0.exe rg-14.1.0.exe
similarity: 82.3% +/- 3.0
containment: rg-14.0.0.exe in rg-14.1.0.exe 89.9%
rg-14.1.0.exe in rg-14.0.0.exe 90.7%
match ranks a list of digests against one file, closest first.
$ eous hash samples/ > known.txt
$ eous match suspect.exe known.txt
70.8% +/- 3.6 samples/rg-14.1.0.exe
67.7% +/- 3.7 samples/rg-14.0.0.exe
54.2% +/- 4.0 samples/rg-13.0.0.exe
44.3% +/- 4.1 samples/fd-10.2.0.exe
cross scores every pair in a list of digests. Pairs print in scan order, so memory stays
flat on a large list. Pipe through sort -rn to read them best first.
$ eous cross known.txt --min 55 | sort -rn
Every command takes --json. match takes --top N and --min PERCENT. cross takes
--min PERCENT.
Use scores to rank files, not as a yes or no. Programs written in the same language share library code, so unrelated programs never score near zero. In the example, fd scores 44% against ripgrep although it is a different program. Every ripgrep version scores higher.
Exit codes: 0 when every file got a digest, 1 when a file or directory was refused, 2 for a usage error, 3 for an internal error.
How it works
eous disassembles the code of the file. It replaces each instruction with its general kind,
so add and adc count as the same thing. It then collects every sequence of three
instructions in a row and keeps a compact summary of that collection, a MinHash sketch. The
more sequences two files share, the higher their score.
Recompiling a program moves its code and changes its addresses. The sequences of instructions mostly stay the same, so the score stays high.
How well it works
eous was tested on about 116,000 program files and 2,900 malware samples, beside the tools people already use for this:
- tlsh and ssdeep compare the raw bytes of two files.
- imports compares the lists of system functions two files call. imphash is a hash of that list.
- File size alone is the baseline every tool must beat.
Each cell gives two numbers. The first is AUC: the chance that a related pair scores higher than an unrelated one, where 0.5 is a coin flip and 1.0 is perfect. The second is how often the closest match to a file is related to it.
Ordinary programs
The programs come from Assemblage, a public dataset of GitHub projects built with many compilers and settings. Two files count as related when they are the same program. eous was tuned on this dataset.
| tool | Windows, 56,145 files | Linux, 59,990 files |
|---|---|---|
| imports | 0.977 / 79% | 0.981 / 84% |
| eous | 0.807 / 48% | 0.898 / 66% |
| tlsh | 0.794 / 47% | 0.947 / 70% |
| imphash | 0.597 / 48% | |
| ssdeep | 0.592 / 32% | 0.650 / 54% |
| file size | 0.794 / 6% | 0.916 / 18% |
eous does best when the same code is built a different way. Matching a Debug build to the Release build of the same Windows program, eous scores 0.726 and tlsh 0.570.
Malware
Two samples count as related when they belong to the same malware family. Identical copies count once.
| tool | MalwareBazaar Windows, 768 | MalwareBazaar Linux, 278 | MOTIF Windows, 1,828 |
|---|---|---|---|
| eous | 0.786 / 67% | 0.735 / 80% | 0.635 / 60% |
| imports | 0.781 / 48% | 0.709 / 62% | |
| tlsh | 0.734 / 63% | 0.728 / 79% | 0.708 / 54% |
| imphash | 0.593 / 31% | 0.509 / 21% | |
| ssdeep | 0.506 / 20% | 0.506 / 42% | 0.512 / 21% |
| file size | 0.705 / 32% | 0.722 / 63% | 0.678 / 19% |
On malware, eous, tlsh and imports are close, and none of them clearly wins. imphash works on Windows files only. imports finds almost nothing in Linux malware, so it is left out there.
Speed
eous hashes a file in 14.8 ms on one core. tlsh takes 18.1 ms and ssdeep 21.0 ms.
Limits
- If a file still has its list of imported functions, comparing that list works better than any fuzzy hash. eous is for files where that list is missing or useless: static builds, stripped binaries and malware.
- On Linux programs, eous scores below tlsh and below file size.
- eous only reads native code. It refuses .NET bytecode (
managed), packed files (packed), files that are not PE or ELF (unsupported_format), other processors (unsupported_arch) and files with no code (no_code). Of 2,250 MalwareBazaar samples it refused 577, mostly .NET and packed files. - eous spots packed files by how random their code looks. A packer that avoids that gets through, and eous then hashes the packer instead of the program.
- eous cannot match malware samples that share no code, even when they carry the same family name. This is why eous scores lower than tlsh on MOTIF. One family there, IcedID, has 142 samples whose code barely overlaps. Without IcedID, eous and tlsh score the same.
- Digests only compare within one target: pe32, pe64, elf32 or elf64.
Digest format
EO1:pe32:7160:0b3513e7...
| | | the sketch, 128 hex characters
| | how many distinct instruction sequences were found
| target: pe32, pe64, elf32 or elf64
format version
Licence
MIT.
Metadata
Release files for eous 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eous-0.3.0.tar.gz | 34.0 kB | With provenance | Details for eous-0.3.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| eous-0.3.0-cp312-abi3-win_amd64.whl | CPython 3.12 | abi3 | Windows x86-64 | Details for eous-0.3.0-cp312-abi3-win_amd64.whl |
| eous-0.3.0-cp312-abi3-manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64 | Details for eous-0.3.0-cp312-abi3-manylinux_2_28_x86_64.whl |
| eous-0.3.0-cp312-abi3-manylinux_2_28_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ ARM64 | Details for eous-0.3.0-cp312-abi3-manylinux_2_28_aarch64.whl |
| eous-0.3.0-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details for eous-0.3.0-cp312-abi3-macosx_11_0_arm64.whl |
| eous-0.3.0-cp312-abi3-macosx_10_12_x86_64.whl | CPython 3.12 | abi3 | macOS 10.12+ x86-64 | Details for eous-0.3.0-cp312-abi3-macosx_10_12_x86_64.whl |
Total release size: 1.8 MB
Release files / eous-0.3.0.tar.gz
| Download URL | eous-0.3.0.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
085f1c55f10fedaa9e3455975cf08b49c475f89eea12b1593af6fc47f69f8255
|
|
BLAKE2b-256 checksum How to use checksums |
e088c68503f251d18de23835ff57ebfd1205b64e868ad118ede66adec7fc3d83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / eous-0.3.0-cp312-abi3-win_amd64.whl
| Download URL | eous-0.3.0-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 257.4 kB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
39ae20a6e8028d7c52f64a1936d5e006e2235ecdfd774e65107345d40604bf1c
|
|
BLAKE2b-256 checksum How to use checksums |
816e48f03d5defd2d6fe00c4bbe718f55014f22a30d488e9c47b903609238ad3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / eous-0.3.0-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | eous-0.3.0-cp312-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 385.0 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4aafbad6f9f1f9dc6c5b246759698a15f6be6c58f89aaf4d4a30920bdadf2b8d
|
|
BLAKE2b-256 checksum How to use checksums |
4dd381aa2f9d15ba9ff2d6d7ef90bad3e642b8e5431c56a25b76df17d00f7336
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / eous-0.3.0-cp312-abi3-manylinux_2_28_aarch64.whl
| Download URL | eous-0.3.0-cp312-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 391.7 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
0d5a851f843d93b09ab98a55067056f5535a21af84e5fa49dbeb9f6e3cae9014
|
|
BLAKE2b-256 checksum How to use checksums |
06389c450c495ed84ee76ff1e1b7838fcb95dde051459fda4bbfdc03a5cd3926
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / eous-0.3.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | eous-0.3.0-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 354.4 kB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
94037f55cddef6c60948a56be675b8778d0c17327cee1dd4a00aa072aaddf6be
|
|
BLAKE2b-256 checksum How to use checksums |
0f891e926d63a6bc8c8229b1c8b5b1110dafbd881642f64e64e3ad7c1c5856e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / eous-0.3.0-cp312-abi3-macosx_10_12_x86_64.whl
| Download URL | eous-0.3.0-cp312-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 363.9 kB |
| Tags | CPython 3.12 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
55be96ab7d8114f8580062a389090fae0c56889bd831658b59af307e9e6f6196
|
|
BLAKE2b-256 checksum How to use checksums |
91d12c8e370d4d4880412b5562d37f997bf27475467082b7bafb576947f66c15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logSecurity for eous 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for eous-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.