YARA-X 1.11.0 Release: Hash Function Warnings

Date:

Share post:

YARA-X’s 1.11.0 release brings a new feature: hash function warnings.

When you write a YARA rule to match a cryptographic hash (either the full file content or a part of it), what’s actually going on are string comparisons:

Function hash.sha256 returns a string (the hexadecimal SHA256 hash it calculated) and that is compared to a literal string that is the hash you want to find.

If you make a mistake in your literal string hash (for example: unintentionally add an extra space), then the match will fail.

But YARA-X will now show a warning like this:

Another example is where you mixup hashes: you provide a SHA1 literal string hash, and it should be a SHA256.

 

Didier Stevens

Senior handler

blog.DidierStevens.com

Source link

spot_img

Related articles

Cloud Storage vs Network Storage Device

In today’s world, where data holds immense value, the real question isn’t whether you need to back up...

My favorite musical discoveries of 2025

I listen to a lot of music, it's a constant accompaniment to my work and ...

Countries Block Grok Amid Backlash Over AI-Altered ‘Undressed’ Images

The backlash against Grok is growing as two countries became the first to block the AI chatbot developed by Elon Musk's artificial...