Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_KB_ID_Bazarloader

Detects Bazar executables with specific email addresses found in the code signing certificate

Suspicious / huntingBazarloaderditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekShen
Date
2021-01-21
Modified
2024-01-23
Score / Quality
75 / 71

What this rule detects

Detects Bazar executables with specific email addresses found in the code signing certificate

Associated malware family: Bazarloader.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-kb-id-bazarloader.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_KB_ID_Bazarloader : FILE
{
	meta:
		description = "Detects Bazar executables with specific email addresses found in the code signing certificate"
		author = "ditekShen"
		id = "94b814e3-56c2-5cdb-9335-c92eea8ec668"
		date = "2021-01-21"
		modified = "2024-01-23"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_knownbad_id.yar#L11-L21"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "fd47a1d996c78a6efc144f0fe0a28951c34becab3101e7d25acc980bb6b9f8ce"
		score = 75
		quality = 71
		tags = "FILE"

	strings:
		$s1 = "skarabeyllc@gmail.com" ascii wide nocase
		$s2 = "admin@intell-it.ru" ascii wide nocase
		$s3 = "support@pro-kon.ru" ascii wide

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

Strings (3 patterns)

IdentifierTypeValueModifiers
$s1text"skarabeyllc@gmail.com"ascii wide nocase
$s2text"admin@intell-it.ru"ascii wide nocase
$s3text"support@pro-kon.ru"ascii wide

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: ditekShen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

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

Rule id: 94b814e3-56c2-5cdb-9335-c92eea8ec668

Tags:FILE

More Bazarloader rules