OALabs / hashdb

Assortment of hashing algorithms used in malware
Apache License 2.0
334 stars 47 forks source link

Hunt hitrate over 100% due to collisions #17

Closed herrcore closed 3 years ago

herrcore commented 3 years ago

Because we have collisions in hash tables a single hash lookup can return multiple hits... this is no good when trying to hunt for a matching algorithm.

Example. The body {"hashes": [1676620]} leads to

{
    "hits": [
        {
            "algorithm": "revil_010F",
            "count": 8,
            "hitrate": 8.0
        }
    ]
}
herrcore commented 3 years ago

Fixed in the API