Skip to content

Conversation

@MalGamy12
Copy link
Contributor

@MalGamy12 MalGamy12 commented Sep 20, 2025

Add DJB2 variant with seed 5385 and uppercase normalization

This PR introduces a new hashing algorithm to HashDB, based on a DJB2 variant observed in malware samples.

Seed value: 5385

Case handling: lowercase characters are normalized to uppercase before hashing

Type: unsigned_int (32-bit)

Test value: The hash of ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 produces 2671650580 (0x9F3E2714)

hash_sample: d406aef11220947f6fe579a1eb7ef44b57a695b7927c72122a5906704ea0d5c4

This algorithm has been seen in real-world malware for API hashing and string obfuscation. Adding it will allow analysts to more easily resolve hashes generated by this variant.

@herrcore herrcore merged commit a69ca5a into OALabs:main Oct 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants