YARA · SEKOIA.IO Community
SEKOIA_Hacktool_Mimilite
Detects Mimilite
- 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:
= "Detects Mimilite"
= "Sekoia.io"
= "abb92a9d-0978-4ef2-b2cc-53ce6e83e3e4"
= "2023-12-05"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/hacktool_mimilite.yar#L1-L37"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "504bc58e1c4143cc2322d564b637b0e014a4ead44f56a75fe1202b0d0a2e8bbc"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $chunk | hex | { FF C7 48 63 D7 46 0F B6 04 22 41 03 F0 81 E6 ?? ?? ?? ?? 7D ?? FF CE 81 CE ?? ?? ?? ?? … | |
| $imp1 | text | "CryptGetHashParam" | |
| $imp2 | text | "CryptDestroyHash" | |
| $imp3 | text | "CryptHashData" | |
| $imp4 | text | "CryptReleaseContext" | |
| $imp5 | text | "CryptCreateHash" | |
| $imp6 | text | "CryptAcquireContextA" | |
| $imp7 | text | "VirtualAlloc" |
Condition
uint16be( 0 ) == 0x4d5a and filesize < 200KB and all of ( $imp* ) and $chunkIn 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-12-05
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-09-09