Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Emotetloader

Emotet Loader

MalwareEmotetCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
Author
kevoreilly
Date
2022-05-31
Score / Quality
75 / 70

What this rule detects

Emotet Loader

Associated malware family: Emotet.

Targets: Windows PE.

It defines 1 patterns (0 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

emotetloader.yarGNU General Public License v3.0
rule CAPE_Emotetloader : FILE
{
	meta:
		description = "Emotet Loader"
		author = "kevoreilly"
		id = "aea8ff2e-bdf7-5417-a41c-93566d1dd019"
		date = "2022-05-31"
		modified = "2022-05-31"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/EmotetLoader.yar#L1-L12"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "410872d25ed3a89a2cba108f952d606cd1c3bf9ccc89ae6ab3377b83665c2773"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "EmotetLoader Payload"

	strings:
		$antihook = {8B 15 ?? ?? ?? ?? 03 15 ?? ?? ?? ?? 89 95 28 FF FF FF A1 ?? ?? ?? ?? 2D 4D 01 00 00 A3 ?? ?? ?? ?? 8B 0D ?? ?? ?? ?? 3B 0D ?? ?? ?? ?? 76 26 8B 95 18 FF FF FF 8B 42 38}

	condition:
		uint16( 0 ) == 0x5A4D and any of them
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$antihookhex{8B 15 ?? ?? ?? ?? 03 15 ?? ?? ?? ?? 89 95 28 FF FF FF A1 ?? ?? ?? ?? 2D 4D 01 00 00 A3 ?? ?? ?? ?? 8B 0D ?? ?? ?? ?? 3B 0D ?? ?? ?? ?? 76 26 8B 95 18 FF FF FF …

Condition

uint16( 0 ) == 0x5A4D and any of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least one pattern in the rule must match.

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

Licence & attribution

Author: kevoreilly

Source repository: CAPE Sandbox (CAPEv2) @ 6b15e76f28

Licence: GNU General Public License v3.0 (repository licence)

Copyright notice: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.

Original rule

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

Rule id: aea8ff2e-bdf7-5417-a41c-93566d1dd019

Metadata

cape_typeEmotetLoader Payload

Tags:FILE

More Emotet rules