There is no description at this point.
rule win_cmstar_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-09-17" version = "1" description = "Detects win.cmstar." info = "autogenerated rule brought to you by yara-signator" tool = "yara-signator v0.6.0" signator_config = "callsandjumps;datarefs;binvalue" malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.cmstar" malpedia_rule_date = "20260916" malpedia_hash = "53a643781c18e08f4a50949af60172d837a0b6f6" malpedia_version = "20260917" malpedia_license = "CC BY-SA 4.0" malpedia_sharing = "TLP:WHITE" /* DISCLAIMER * The strings used in this rule have been automatically selected from the * disassembly of memory dumps and unpacked files, using YARA-Signator. * The code and documentation is published here: * https://github.com/fxb-cocacoding/yara-signator * As Malpedia is used as data source, please note that for a given * number of families, only single samples are documented. * This likely impacts the degree of generalization these rules will offer. * Take the described generation method also into consideration when you * apply the rules in your use cases and assign them confidence levels. */ strings: $sequence_0 = { 8b4dec c1e802 6a04 52 8d0481 50 } // n = 6, score = 800 // 8b4dec | mov ecx, dword ptr [ebp - 0x14] // c1e802 | shr eax, 2 // 6a04 | push 4 // 52 | push edx // 8d0481 | lea eax, [ecx + eax*4] // 50 | push eax $sequence_1 = { 53 56 bb04010000 57 53 } // n = 5, score = 800 // 53 | push ebx // 56 | push esi // bb04010000 | mov ebx, 0x104 // 57 | push edi // 53 | push ebx $sequence_2 = { 8b45d8 836dfc10 ff75fc 8945e0 } // n = 4, score = 800 // 8b45d8 | mov eax, dword ptr [ebp - 0x28] // 836dfc10 | sub dword ptr [ebp - 4], 0x10 // ff75fc | push dword ptr [ebp - 4] // 8945e0 | mov dword ptr [ebp - 0x20], eax $sequence_3 = { ff75e0 ff30 e8???????? 8b4df8 } // n = 4, score = 800 // ff75e0 | push dword ptr [ebp - 0x20] // ff30 | push dword ptr [eax] // e8???????? | // 8b4df8 | mov ecx, dword ptr [ebp - 8] $sequence_4 = { ff75fc 8945e0 8b45dc 83c310 8945e4 } // n = 5, score = 800 // ff75fc | push dword ptr [ebp - 4] // 8945e0 | mov dword ptr [ebp - 0x20], eax // 8b45dc | mov eax, dword ptr [ebp - 0x24] // 83c310 | add ebx, 0x10 // 8945e4 | mov dword ptr [ebp - 0x1c], eax $sequence_5 = { ff15???????? 6a04 e8???????? be00040000 } // n = 4, score = 800 // ff15???????? | // 6a04 | push 4 // e8???????? | // be00040000 | mov esi, 0x400 $sequence_6 = { 85c0 7504 6a03 eb0d 803b4d } // n = 5, score = 800 // 85c0 | test eax, eax // 7504 | jne 6 // 6a03 | push 3 // eb0d | jmp 0xf // 803b4d | cmp byte ptr [ebx], 0x4d $sequence_7 = { ff15???????? 8bc6 e9???????? 6a10 8d45d0 } // n = 5, score = 800 // ff15???????? | // 8bc6 | mov eax, esi // e9???????? | // 6a10 | push 0x10 // 8d45d0 | lea eax, [ebp - 0x30] $sequence_8 = { 33f6 66ab aa 8bdd 8d442414 33c9 2bd8 } // n = 7, score = 100 // 33f6 | xor esi, esi // 66ab | stosw word ptr es:[edi], ax // aa | stosb byte ptr es:[edi], al // 8bdd | mov ebx, ebp // 8d442414 | lea eax, [esp + 0x14] // 33c9 | xor ecx, ecx // 2bd8 | sub ebx, eax $sequence_9 = { 50 6800280000 55 51 ff15???????? } // n = 5, score = 100 // 50 | push eax // 6800280000 | push 0x2800 // 55 | push ebp // 51 | push ecx // ff15???????? | $sequence_10 = { c74424303c000000 c744244400010000 894c2454 8954245c c744246024080000 7505 a1???????? } // n = 7, score = 100 // c74424303c000000 | mov dword ptr [esp + 0x30], 0x3c // c744244400010000 | mov dword ptr [esp + 0x44], 0x100 // 894c2454 | mov dword ptr [esp + 0x54], ecx // 8954245c | mov dword ptr [esp + 0x5c], edx // c744246024080000 | mov dword ptr [esp + 0x60], 0x824 // 7505 | jne 7 // a1???????? | $sequence_11 = { 49 741e 8a441420 bf???????? 888274420010 83c9ff 33c0 } // n = 7, score = 100 // 49 | dec ecx // 741e | je 0x20 // 8a441420 | mov al, byte ptr [esp + edx + 0x20] // bf???????? | // 888274420010 | mov byte ptr [edx + 0x10004274], al // 83c9ff | or ecx, 0xffffffff // 33c0 | xor eax, eax $sequence_12 = { 53 53 53 68???????? ff15???????? 89442414 } // n = 6, score = 100 // 53 | push ebx // 53 | push ebx // 53 | push ebx // 68???????? | // ff15???????? | // 89442414 | mov dword ptr [esp + 0x14], eax $sequence_13 = { 41 3bcb 7cea 03f3 47 81fe???????? } // n = 6, score = 100 // 41 | inc ecx // 3bcb | cmp ecx, ebx // 7cea | jl 0xffffffec // 03f3 | add esi, ebx // 47 | inc edi // 81fe???????? | $sequence_14 = { 83c9ff f2ae f7d1 49 8bfa 8bf2 } // n = 6, score = 100 // 83c9ff | or ecx, 0xffffffff // f2ae | repne scasb al, byte ptr es:[edi] // f7d1 | not ecx // 49 | dec ecx // 8bfa | mov edi, edx // 8bf2 | mov esi, edx $sequence_15 = { 892d???????? 881c28 8d8c24e4120000 8d54246c 51 68???????? 52 } // n = 7, score = 100 // 892d???????? | // 881c28 | mov byte ptr [eax + ebp], bl // 8d8c24e4120000 | lea ecx, [esp + 0x12e4] // 8d54246c | lea edx, [esp + 0x6c] // 51 | push ecx // 68???????? | // 52 | push edx condition: 7 of them and filesize < 4268032 }
import "pe" rule win_cmstar_w0 { meta: description = "Detects CMStar Malware" author = "Florian Roth" reference = "https://goo.gl/pTffPA" date = "2017-10-03" hash = "16697c95db5add6c1c23b2591b9d8eec5ed96074d057b9411f0b57a54af298d5" malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.cmstar" malpedia_version = "20170413" malpedia_license = "CC BY-NC-SA 4.0" malpedia_sharing = "TLP:WHITE" strings: $s1 = "UpdateService.tmp" fullword ascii $s2 = "StateNum:%d,FileSize:%d" fullword ascii condition: uint16(0) == 0x5a4d and filesize < 100KB and (pe.imphash() == "22021985de78a48ea8fb82a2ff9eb693" or pe.exports("WinCred") or all of them) }
If your designated proposal does not fit in any other category, feel free to write a free-text in the comment field below. Changes regarding references should be proposed on the Malpedia library page.
Your suggestion will be reviewed before being published. Thank you for contributing!
YYYY-MM-DD
YYYY-MM
YYYY