Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Backdoor_Win_Minibike

Detect the MINIBIKE malware

MalwareMinibikeSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X (with warnings)
Author
Sekoia.io
Date
2024-04-08
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect the MINIBIKE malware

Associated malware family: Minibike.

Targets: Windows PE.

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

YARA-X says: warning[deprecated_field]: field `number_of_sections` is deprecated

Summary generated from the rule's metadata and condition.

Rule source

Includes the imports needed to compile it on its own.

backdoor-win-minibike.yarDetection Rule License 1.1
import "pe"
import "hash"

rule SEKOIA_Backdoor_Win_Minibike : FILE
{
	meta:
		description = "Detect the MINIBIKE malware"
		author = "Sekoia.io"
		id = "d758c41a-279c-4706-9cf3-87740e45f71d"
		date = "2024-04-08"
		modified = "2024-12-19"
		reference = "https://www.mandiant.com/resources/blog/suspected-iranian-unc1549-targets-israel-middle-east"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/backdoor_win_minibike.yar#L4-L37"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "985967e245d8fbc722e30371c9ed48c3269ceaa6b9b9b80caf2b95c920c856c2"
		hash = "ab0b602665b609392eacdcbfc6c1981f216c19f21e2156a55cf9998eab02227b"
		hash = "8e2429d70989bbdd2ea8842dce7c3d790ebe148490ee519b47767557f4a4a733"
		hash = "be86b8559a84d97aa1cc9852e60a553f5164477bacfc69b7f3453ad37fb6fd2a"
		hash = "78065411e7e8eb205ddae7215a229b7c93bdca5d628670f89caa982238ac7eb6"
		hash = "73bf3a5877a7fe16544d15670e3ece034e4826323ba555b3527ad4d061f44ec4"
		logic_hash = "d09ab10aff629c6edafa7df640e98bcb6b2523a9bf4e2f2ca87f6694ccfe21bf"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "Mini-Junked.dll"

	condition:
		uint16( 0 ) == 0x5A4D and all of them or pe.imphash ( ) == "75a9ae7d4394abdc30e2a873908fa09d" or hash.md5 ( pe.rich_signature.clear_data ) == "06b2ec5892ac9ad566693b04cf427f3f" or for any i in ( 0 .. pe.number_of_sections -1 ) : ( hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "612006b6f68cd0b8b0d48252dbdef4be" )
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$text"Mini-Junked.dll"

Condition

uint16( 0 ) == 0x5A4D and all of them or pe.imphash ( ) == "75a9ae7d4394abdc30e2a873908fa09d" or hash.md5 ( pe.rich_signature.clear_data ) == "06b2ec5892ac9ad566693b04cf427f3f" or for any i in ( 0 .. pe.number_of_sections -1 ) : ( hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "612006b6f68cd0b8b0d48252dbdef4be" )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in the rule must match.
  • A for-loop checks a property over several matches or items.
  • Uses the pe module.
  • Uses the hash module.
  • Compares a hash of the file or a part of it.
  • Checks the PE import hash (imphash).
  • Checks PE sections (names, count or properties).

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).

  • 985967e245d8fbc722e30371c9ed48c3269ceaa6b9b9b80caf2b95c920c856c2
  • ab0b602665b609392eacdcbfc6c1981f216c19f21e2156a55cf9998eab02227b
  • 8e2429d70989bbdd2ea8842dce7c3d790ebe148490ee519b47767557f4a4a733
  • be86b8559a84d97aa1cc9852e60a553f5164477bacfc69b7f3453ad37fb6fd2a
  • 78065411e7e8eb205ddae7215a229b7c93bdca5d628670f89caa982238ac7eb6
  • 73bf3a5877a7fe16544d15670e3ece034e4826323ba555b3527ad4d061f44ec4

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

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: d758c41a-279c-4706-9cf3-87740e45f71d

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE