Actor(s): EMISSARY PANDA, Hurricane Panda, Lazarus Group, Leviathan, Red Menshen, Stone Panda
There is no description at this point.
rule win_ghost_rat_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2022-04-08" version = "1" description = "Detects win.ghost_rat." 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.ghost_rat" malpedia_rule_date = "20220405" malpedia_hash = "ecd38294bd47d5589be5cd5490dc8bb4804afc2a" malpedia_version = "20220411" 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 = { 6a01 56 ff15???????? 5e c20800 } // n = 5, score = 500 // 6a01 | push 1 // 56 | push esi // ff15???????? | // 5e | pop esi // c20800 | ret 8 $sequence_1 = { 8bd9 e8???????? 8b4d08 3bc8 } // n = 4, score = 500 // 8bd9 | mov ebx, ecx // e8???????? | // 8b4d08 | mov ecx, dword ptr [ebp + 8] // 3bc8 | cmp ecx, eax $sequence_2 = { 8b400c 85c0 7505 a1???????? 50 8bce } // n = 6, score = 500 // 8b400c | mov eax, dword ptr [eax + 0xc] // 85c0 | test eax, eax // 7505 | jne 7 // a1???????? | // 50 | push eax // 8bce | mov ecx, esi $sequence_3 = { 894df4 c745f800000000 df6df4 83ec08 } // n = 4, score = 400 // 894df4 | mov dword ptr [ebp - 0xc], ecx // c745f800000000 | mov dword ptr [ebp - 8], 0 // df6df4 | fild qword ptr [ebp - 0xc] // 83ec08 | sub esp, 8 $sequence_4 = { 6a6b 8bce e8???????? 5f 5e } // n = 5, score = 400 // 6a6b | push 0x6b // 8bce | mov ecx, esi // e8???????? | // 5f | pop edi // 5e | pop esi $sequence_5 = { df6df4 83ec08 dc0d???????? dd1c24 ff15???????? } // n = 5, score = 400 // df6df4 | fild qword ptr [ebp - 0xc] // 83ec08 | sub esp, 8 // dc0d???????? | // dd1c24 | fstp qword ptr [esp] // ff15???????? | $sequence_6 = { 5b 8be5 5d c20400 894df4 c745f800000000 } // n = 6, score = 400 // 5b | pop ebx // 8be5 | mov esp, ebp // 5d | pop ebp // c20400 | ret 4 // 894df4 | mov dword ptr [ebp - 0xc], ecx // c745f800000000 | mov dword ptr [ebp - 8], 0 $sequence_7 = { e9???????? 8d45dc 50 681f000200 } // n = 4, score = 300 // e9???????? | // 8d45dc | lea eax, dword ptr [ebp - 0x24] // 50 | push eax // 681f000200 | push 0x2001f $sequence_8 = { 8d85c0feffff 50 57 ff15???????? 8bf8 83ffff } // n = 6, score = 300 // 8d85c0feffff | lea eax, dword ptr [ebp - 0x140] // 50 | push eax // 57 | push edi // ff15???????? | // 8bf8 | mov edi, eax // 83ffff | cmp edi, -1 $sequence_9 = { 50 8bce e8???????? 8b4df4 5f b001 } // n = 6, score = 300 // 50 | push eax // 8bce | mov ecx, esi // e8???????? | // 8b4df4 | mov ecx, dword ptr [ebp - 0xc] // 5f | pop edi // b001 | mov al, 1 $sequence_10 = { 83c40c 8d85b8feffff 50 8d85b4fdffff } // n = 4, score = 300 // 83c40c | add esp, 0xc // 8d85b8feffff | lea eax, dword ptr [ebp - 0x148] // 50 | push eax // 8d85b4fdffff | lea eax, dword ptr [ebp - 0x24c] $sequence_11 = { ff7508 ff15???????? 40 50 ff15???????? } // n = 5, score = 300 // ff7508 | push dword ptr [ebp + 8] // ff15???????? | // 40 | inc eax // 50 | push eax // ff15???????? | $sequence_12 = { 5e 5b 83c454 c20400 8d7901 57 ff15???????? } // n = 7, score = 300 // 5e | pop esi // 5b | pop ebx // 83c454 | add esp, 0x54 // c20400 | ret 4 // 8d7901 | lea edi, dword ptr [ecx + 1] // 57 | push edi // ff15???????? | $sequence_13 = { ff15???????? ffb6a8000000 ff15???????? ffb6ac000000 } // n = 4, score = 300 // ff15???????? | // ffb6a8000000 | push dword ptr [esi + 0xa8] // ff15???????? | // ffb6ac000000 | push dword ptr [esi + 0xac] $sequence_14 = { ff7510 ff75dc ff15???????? 85c0 7507 } // n = 5, score = 300 // ff7510 | push dword ptr [ebp + 0x10] // ff75dc | push dword ptr [ebp - 0x24] // ff15???????? | // 85c0 | test eax, eax // 7507 | jne 9 $sequence_15 = { e8???????? 84c0 7505 83ceff eb32 } // n = 5, score = 300 // e8???????? | // 84c0 | test al, al // 7505 | jne 7 // 83ceff | or esi, 0xffffffff // eb32 | jmp 0x34 $sequence_16 = { 8dbd85feffff f3ab 66ab aa } // n = 4, score = 300 // 8dbd85feffff | lea edi, dword ptr [ebp - 0x17b] // f3ab | rep stosd dword ptr es:[edi], eax // 66ab | stosw word ptr es:[edi], ax // aa | stosb byte ptr es:[edi], al $sequence_17 = { 6a6f 8bce e8???????? 5e } // n = 4, score = 300 // 6a6f | push 0x6f // 8bce | mov ecx, esi // e8???????? | // 5e | pop esi $sequence_18 = { 6a00 6a00 c705????????20010000 e8???????? } // n = 4, score = 300 // 6a00 | push 0 // 6a00 | push 0 // c705????????20010000 | // e8???????? | $sequence_19 = { 68???????? 50 6802000080 e8???????? 83c41c 5f } // n = 6, score = 300 // 68???????? | // 50 | push eax // 6802000080 | push 0x80000002 // e8???????? | // 83c41c | add esp, 0x1c // 5f | pop edi $sequence_20 = { 85c0 7403 50 ffd5 8bcf c7442418ffffffff } // n = 6, score = 300 // 85c0 | test eax, eax // 7403 | je 5 // 50 | push eax // ffd5 | call ebp // 8bcf | mov ecx, edi // c7442418ffffffff | mov dword ptr [esp + 0x18], 0xffffffff $sequence_21 = { 8b96549f0000 83c41c 89849614030000 8b86549f0000 } // n = 4, score = 300 // 8b96549f0000 | mov edx, dword ptr [esi + 0x9f54] // 83c41c | add esp, 0x1c // 89849614030000 | mov dword ptr [esi + edx*4 + 0x314], eax // 8b86549f0000 | mov eax, dword ptr [esi + 0x9f54] $sequence_22 = { 8bf0 83c40c 46 750b 5f } // n = 5, score = 300 // 8bf0 | mov esi, eax // 83c40c | add esp, 0xc // 46 | inc esi // 750b | jne 0xd // 5f | pop edi $sequence_23 = { ff15???????? 6800000002 6a00 6a00 ff15???????? } // n = 5, score = 200 // ff15???????? | // 6800000002 | push 0x2000000 // 6a00 | push 0 // 6a00 | push 0 // ff15???????? | $sequence_24 = { 6a00 6a00 6838040000 6a00 } // n = 4, score = 200 // 6a00 | push 0 // 6a00 | push 0 // 6838040000 | push 0x438 // 6a00 | push 0 $sequence_25 = { 8b7e20 8b36 813f6b006500 7406 813f4b004500 } // n = 5, score = 200 // 8b7e20 | mov edi, dword ptr [esi + 0x20] // 8b36 | mov esi, dword ptr [esi] // 813f6b006500 | cmp dword ptr [edi], 0x65006b // 7406 | je 8 // 813f4b004500 | cmp dword ptr [edi], 0x45004b $sequence_26 = { 83e9fc c7014c696272 83e9fc c70161727941 83e9fc c70100000000 } // n = 6, score = 200 // 83e9fc | sub ecx, -4 // c7014c696272 | mov dword ptr [ecx], 0x7262694c // 83e9fc | sub ecx, -4 // c70161727941 | mov dword ptr [ecx], 0x41797261 // 83e9fc | sub ecx, -4 // c70100000000 | mov dword ptr [ecx], 0 $sequence_27 = { 8b45f0 33c9 668b08 81e100f00000 81f900300000 7528 8b55fc } // n = 7, score = 100 // 8b45f0 | mov eax, dword ptr [ebp - 0x10] // 33c9 | xor ecx, ecx // 668b08 | mov cx, word ptr [eax] // 81e100f00000 | and ecx, 0xf000 // 81f900300000 | cmp ecx, 0x3000 // 7528 | jne 0x2a // 8b55fc | mov edx, dword ptr [ebp - 4] $sequence_28 = { eb9e 8b4df0 894dfc e9???????? 8be5 5d c3 } // n = 7, score = 100 // eb9e | jmp 0xffffffa0 // 8b4df0 | mov ecx, dword ptr [ebp - 0x10] // 894dfc | mov dword ptr [ebp - 4], ecx // e9???????? | // 8be5 | mov esp, ebp // 5d | pop ebp // c3 | ret $sequence_29 = { 898d70ffffff ebe1 8b9570ffffff 2b952cffffff } // n = 4, score = 100 // 898d70ffffff | mov dword ptr [ebp - 0x90], ecx // ebe1 | jmp 0xffffffe3 // 8b9570ffffff | mov edx, dword ptr [ebp - 0x90] // 2b952cffffff | sub edx, dword ptr [ebp - 0xd4] $sequence_30 = { ff5204 8945b8 8b45c8 8b4db8 8908 8b55c8 } // n = 6, score = 100 // ff5204 | call dword ptr [edx + 4] // 8945b8 | mov dword ptr [ebp - 0x48], eax // 8b45c8 | mov eax, dword ptr [ebp - 0x38] // 8b4db8 | mov ecx, dword ptr [ebp - 0x48] // 8908 | mov dword ptr [eax], ecx // 8b55c8 | mov edx, dword ptr [ebp - 0x38] $sequence_31 = { 898d6cffffff 8b956cffffff 3b55d0 7d21 8b8558ffffff 03856cffffff } // n = 6, score = 100 // 898d6cffffff | mov dword ptr [ebp - 0x94], ecx // 8b956cffffff | mov edx, dword ptr [ebp - 0x94] // 3b55d0 | cmp edx, dword ptr [ebp - 0x30] // 7d21 | jge 0x23 // 8b8558ffffff | mov eax, dword ptr [ebp - 0xa8] // 03856cffffff | add eax, dword ptr [ebp - 0x94] $sequence_32 = { 75e8 50 58 817f0472006e00 } // n = 4, score = 100 // 75e8 | jne 0xffffffea // 50 | push eax // 58 | pop eax // 817f0472006e00 | cmp dword ptr [edi + 4], 0x6e0072 condition: 7 of them and filesize < 357376 }
If your designated proposal does not fit in any other category, feel free to write a free-text in the comment field below.
Please propose all changes regarding references on the Malpedia library page
Your suggestion will be reviewed before being published. Thank you for contributing!
YYYY-MM-DD
YYYY-MM
YYYY