Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_Emotet_Jan20_1

Detects Emotet malware

MalwareEmotetSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2020-01-29
Modified
2023-12-05
Score / Quality
75 / 85

What this rule detects

Detects Emotet malware

Associated malware family: Emotet.

Targets: Windows PE.

It defines 3 patterns (0 text, 3 hex, 0 regex). YARA modules used: pe.

Summary generated from the rule's metadata and condition.

Rule source

Includes the imports needed to compile it on its own.

mal-emotet-jan20-1.yarDetection Rule License 1.1
import "pe"

rule SIGNATURE_BASE_MAL_Emotet_Jan20_1 : FILE
{
	meta:
		description = "Detects Emotet malware"
		author = "Florian Roth (Nextron Systems)"
		id = "334ae7e5-0a46-5e95-bf53-0f343db4e4de"
		date = "2020-01-29"
		modified = "2023-12-05"
		reference = "https://app.any.run/tasks/5e81638e-df2e-4a5b-9e45-b07c38d53929/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/crime_emotet.yar#L20-L37"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "e7c22ccdb1103ee6bd15c528270f56913bb2f47345b360802b74084563f1b73d"
		logic_hash = "23ffcdde3eae7637e5b47a0f940cbebafccfd4c3f222b882e73d7d02447b83c3"
		score = 75
		quality = 85
		tags = "FILE"

	strings:
		$op0 = { 74 60 8d 34 18 eb 54 03 c3 50 ff 15 18 08 41 00 }
		$op1 = { 03 fe 66 39 07 0f 85 2a ff ff ff 8b 4d f0 6a 20 }
		$op2 = { 8b 7d fc 0f 85 49 ff ff ff 85 db 0f 84 d1 }

	condition:
		uint16( 0 ) == 0x5a4d and filesize <= 200KB and ( pe.imphash ( ) == "009889c73bd2e55113bf6dfa5f395e0d" or 1 of them )
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$op0hex{ 74 60 8d 34 18 eb 54 03 c3 50 ff 15 18 08 41 00 }
$op1hex{ 03 fe 66 39 07 0f 85 2a ff ff ff 8b 4d f0 6a 20 }
$op2hex{ 8b 7d fc 0f 85 49 ff ff ff 85 db 0f 84 d1 }

Condition

uint16( 0 ) == 0x5a4d and filesize <= 200KB and ( pe.imphash ( ) == "009889c73bd2e55113bf6dfa5f395e0d" or 1 of them )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 200KB (a cheap guard that skips large files).
  • At least 1 patterns in the rule must match.
  • Uses the pe module.
  • Checks the PE import hash (imphash).

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • e7c22ccdb1103ee6bd15c528270f56913bb2f47345b360802b74084563f1b73d

Licence & attribution

Author: Florian Roth (Nextron Systems)

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 334ae7e5-0a46-5e95-bf53-0f343db4e4de

Tags:FILE

More Emotet rules