Actor(s): Rocket Kitten
There is no description at this point.
rule win_matryoshka_rat_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2024-10-31" version = "1" description = "Detects win.matryoshka_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.matryoshka_rat" malpedia_rule_date = "20241030" malpedia_hash = "26e26953c49c8efafbf72a38076855d578e0a2e4" malpedia_version = "20241030" 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 = { c3 b06f c3 b063 } // n = 4, score = 400 // c3 | ret // b06f | mov al, 0x6f // c3 | ret // b063 | mov al, 0x63 $sequence_1 = { b037 c3 b073 c3 } // n = 4, score = 400 // b037 | mov al, 0x37 // c3 | ret // b073 | mov al, 0x73 // c3 | ret $sequence_2 = { 747d 488d0d6c400500 e8???????? 4533c9 488d4c2438 4533c0 418d5101 } // n = 7, score = 200 // 747d | je 0x7f // 488d0d6c400500 | dec eax // e8???????? | // 4533c9 | lea ecx, [0x5406c] // 488d4c2438 | inc ebp // 4533c0 | xor ecx, ecx // 418d5101 | dec eax $sequence_3 = { 747e 448b82f4000000 4585c0 7472 } // n = 4, score = 200 // 747e | dec ebx // 448b82f4000000 | mov eax, dword ptr [edx + edi*8 + 0x5ed80] // 4585c0 | test byte ptr [eax + edi + 0x38], 0x48 // 7472 | je 0x7f $sequence_4 = { 8b4710 835714ff 0b4714 75c9 } // n = 4, score = 200 // 8b4710 | dec eax // 835714ff | mov edi, eax // 0b4714 | je 0x81 // 75c9 | dec eax $sequence_5 = { 8b4714 85c0 0f8539010000 85db } // n = 4, score = 200 // 8b4714 | mov edi, eax // 85c0 | dec eax // 0f8539010000 | mov dword ptr [esp + 0x58], eax // 85db | dec eax $sequence_6 = { 747e 83f928 773d 7438 } // n = 4, score = 200 // 747e | test eax, eax // 83f928 | je 0x7e // 773d | dec eax // 7438 | mov ebx, eax $sequence_7 = { 8b4718 8945f8 85f6 745b } // n = 4, score = 200 // 8b4718 | mov esi, dword ptr [edi + 8] // 8945f8 | mov eax, esi // 85f6 | mov eax, dword ptr [edi + 0x10] // 745b | adc dword ptr [edi + 0x14], -1 $sequence_8 = { 747e 8bcd e8???????? 488bf8 } // n = 4, score = 200 // 747e | dec ecx // 8bcd | lea edi, [eax - 8] // e8???????? | // 488bf8 | dec eax $sequence_9 = { 8b4720 40 895f14 894710 } // n = 4, score = 200 // 8b4720 | jne 0xfffffed8 // 40 | add ecx, dword ptr [esp + 0x10] // 895f14 | mov eax, dword ptr [edi + 0x14] // 894710 | test eax, eax $sequence_10 = { 747f 488bcd e8???????? 488bf8 } // n = 4, score = 200 // 747f | je 0x3c // 488bcd | je 0x80 // e8???????? | // 488bf8 | cmp ecx, 0x28 $sequence_11 = { 8b4724 0fb611 0fb67101 8b4f18 } // n = 4, score = 200 // 8b4724 | mov eax, dword ptr [edi + 0x14] // 0fb611 | test eax, eax // 0fb67101 | jne 0x6c // 8b4f18 | push dword ptr [esp + 0x38] $sequence_12 = { 8b4714 85c0 7568 ff742438 } // n = 4, score = 200 // 8b4714 | mov al, 0x63 // 85c0 | ret // 7568 | mov al, 0x37 // ff742438 | ret $sequence_13 = { 747d 83bc249000000000 7473 4c8d15d68ffdff } // n = 4, score = 200 // 747d | lea ecx, [esp + 0x38] // 83bc249000000000 | inc ebp // 7473 | xor eax, eax // 4c8d15d68ffdff | inc ecx condition: 7 of them and filesize < 843776 }
rule win_matryoshka_rat_w0 { meta: author = "Florian Roth" description = "Detects Matryoshka RAT used in Operation Wilted Tulip" reference = "http://www.clearskysec.com/tulip" date = "2017-07-23" hash = "6f208473df0d31987a4999eeea04d24b069fdb6a8245150aa91dfdc063cd64ab" hash = "6cc1f4ecd28b833c978c8e21a20a002459b4a6c21a4fbaad637111aa9d5b1a32" malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.matryoshka_rat" malpedia_version = "20170914" malpedia_license = "CC BY-NC-SA 4.0" malpedia_sharing = "TLP:WHITE" strings: $s1 = "%S:\\Users\\public" fullword wide $s2 = "ntuser.dat.swp" fullword wide $s3 = "Job Save / Load Config" fullword wide $s4 = ".?AVPSCL_CLASS_JOB_SAVE_CONFIG@@" fullword ascii $s5 = "winupdate64.com" fullword ascii $s6 = "Job Save KeyLogger" fullword wide condition: filesize < 1000KB and 5 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