Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Hacktool_Mimilite

Detects Mimilite

Hack toolSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-12-05
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects Mimilite

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

hacktool-mimilite.yarDetection Rule License 1.1
rule SEKOIA_Hacktool_Mimilite : FILE
{
	meta:
		description = "Detects Mimilite"
		author = "Sekoia.io"
		id = "abb92a9d-0978-4ef2-b2cc-53ce6e83e3e4"
		date = "2023-12-05"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/hacktool_mimilite.yar#L1-L37"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "504bc58e1c4143cc2322d564b637b0e014a4ead44f56a75fe1202b0d0a2e8bbc"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$chunk = {
        FF C7
        48 63 D7
        46 0F B6 04 22
        41 03 F0
        81 E6 ?? ?? ?? ??
        7D ??
        FF CE
        81 CE ?? ?? ?? ??
        FF C6
        48 63 CE
        42 0F B6 04 21
        42 88 04 22
        46 88 04 21 }
		$imp1 = "CryptGetHashParam"
		$imp2 = "CryptDestroyHash"
		$imp3 = "CryptHashData"
		$imp4 = "CryptReleaseContext"
		$imp5 = "CryptCreateHash"
		$imp6 = "CryptAcquireContextA"
		$imp7 = "VirtualAlloc"

	condition:
		uint16be( 0 ) == 0x4d5a and filesize < 200KB and all of ( $imp* ) and $chunk
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$chunkhex{ FF C7 48 63 D7 46 0F B6 04 22 41 03 F0 81 E6 ?? ?? ?? ?? 7D ?? FF CE 81 CE ?? ?? ?? ?? …
$imp1text"CryptGetHashParam"
$imp2text"CryptDestroyHash"
$imp3text"CryptHashData"
$imp4text"CryptReleaseContext"
$imp5text"CryptCreateHash"
$imp6text"CryptAcquireContextA"
$imp7text"VirtualAlloc"

Condition

uint16be( 0 ) == 0x4d5a and filesize < 200KB and all of ( $imp* ) and $chunk

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).
  • All patterns in ( $imp* ) must match.
  • Pattern $chunk must be present.

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: 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: abb92a9d-0978-4ef2-b2cc-53ce6e83e3e4

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE