Actor(s): Lazarus Group
There is no description at this point.
rule win_sierras_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2024-10-31" version = "1" description = "Detects win.sierras." 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.sierras" 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 = { 8b8698010000 5e c3 56 8bf1 } // n = 5, score = 200 // 8b8698010000 | mov eax, dword ptr [esi + 0x198] // 5e | pop esi // c3 | ret // 56 | push esi // 8bf1 | mov esi, ecx $sequence_1 = { f3ab 8bce aa e8???????? } // n = 4, score = 200 // f3ab | rep stosd dword ptr es:[edi], eax // 8bce | mov ecx, esi // aa | stosb byte ptr es:[edi], al // e8???????? | $sequence_2 = { 33d2 eb19 8b0d???????? 2bc8 } // n = 4, score = 200 // 33d2 | xor edx, edx // eb19 | jmp 0x1b // 8b0d???????? | // 2bc8 | sub ecx, eax $sequence_3 = { 56 8bf1 e8???????? 8d8614010000 5e c3 } // n = 6, score = 200 // 56 | push esi // 8bf1 | mov esi, ecx // e8???????? | // 8d8614010000 | lea eax, [esi + 0x114] // 5e | pop esi // c3 | ret $sequence_4 = { c705????????01000000 a3???????? a3???????? ff15???????? 85c0 } // n = 5, score = 200 // c705????????01000000 | // a3???????? | // a3???????? | // ff15???????? | // 85c0 | test eax, eax $sequence_5 = { 33c0 5b 81c474010000 c21000 56 68???????? } // n = 6, score = 200 // 33c0 | xor eax, eax // 5b | pop ebx // 81c474010000 | add esp, 0x174 // c21000 | ret 0x10 // 56 | push esi // 68???????? | $sequence_6 = { 397d08 897dfc 0f8cc0000000 837d0801 7e58 837d0803 0f8fb0000000 } // n = 7, score = 200 // 397d08 | cmp dword ptr [ebp + 8], edi // 897dfc | mov dword ptr [ebp - 4], edi // 0f8cc0000000 | jl 0xc6 // 837d0801 | cmp dword ptr [ebp + 8], 1 // 7e58 | jle 0x5a // 837d0803 | cmp dword ptr [ebp + 8], 3 // 0f8fb0000000 | jg 0xb6 $sequence_7 = { 8bfa 83c9ff 33c0 8d9c2498000000 } // n = 4, score = 200 // 8bfa | mov edi, edx // 83c9ff | or ecx, 0xffffffff // 33c0 | xor eax, eax // 8d9c2498000000 | lea ebx, [esp + 0x98] $sequence_8 = { 83c302 f3a5 8bc8 83e103 f3a4 8bbc2410040000 } // n = 6, score = 200 // 83c302 | add ebx, 2 // f3a5 | rep movsd dword ptr es:[edi], dword ptr [esi] // 8bc8 | mov ecx, eax // 83e103 | and ecx, 3 // f3a4 | rep movsb byte ptr es:[edi], byte ptr [esi] // 8bbc2410040000 | mov edi, dword ptr [esp + 0x410] $sequence_9 = { 51 e8???????? 83c40c 8d542400 6a01 6a00 52 } // n = 7, score = 200 // 51 | push ecx // e8???????? | // 83c40c | add esp, 0xc // 8d542400 | lea edx, [esp] // 6a01 | push 1 // 6a00 | push 0 // 52 | push edx $sequence_10 = { f3a4 8b0d???????? 8b15???????? 2bd1 b8abaaaa2a } // n = 5, score = 200 // f3a4 | rep movsb byte ptr es:[edi], byte ptr [esi] // 8b0d???????? | // 8b15???????? | // 2bd1 | sub edx, ecx // b8abaaaa2a | mov eax, 0x2aaaaaab $sequence_11 = { e8???????? 6a00 56 ff7514 8d4de0 e8???????? 0175f0 } // n = 7, score = 200 // e8???????? | // 6a00 | push 0 // 56 | push esi // ff7514 | push dword ptr [ebp + 0x14] // 8d4de0 | lea ecx, [ebp - 0x20] // e8???????? | // 0175f0 | add dword ptr [ebp - 0x10], esi $sequence_12 = { 8d1440 a1???????? c1e205 03d6 } // n = 4, score = 200 // 8d1440 | lea edx, [eax + eax*2] // a1???????? | // c1e205 | shl edx, 5 // 03d6 | add edx, esi $sequence_13 = { 8b450c 7511 8b4dec 03c7 } // n = 4, score = 200 // 8b450c | mov eax, dword ptr [ebp + 0xc] // 7511 | jne 0x13 // 8b4dec | mov ecx, dword ptr [ebp - 0x14] // 03c7 | add eax, edi $sequence_14 = { 83e103 f3a4 ffd3 50 68???????? } // n = 5, score = 200 // 83e103 | and ecx, 3 // f3a4 | rep movsb byte ptr es:[edi], byte ptr [esi] // ffd3 | call ebx // 50 | push eax // 68???????? | $sequence_15 = { 837d0803 0f8fb0000000 397d10 897df0 0f86a4000000 8b7d14 } // n = 6, score = 200 // 837d0803 | cmp dword ptr [ebp + 8], 3 // 0f8fb0000000 | jg 0xb6 // 397d10 | cmp dword ptr [ebp + 0x10], edi // 897df0 | mov dword ptr [ebp - 0x10], edi // 0f86a4000000 | jbe 0xaa // 8b7d14 | mov edi, dword ptr [ebp + 0x14] condition: 7 of them and filesize < 131072 }
import "pe" rule win_sierras_w0 { meta: copyright = "2015 Novetta Solutions" author = "Novetta Threat Research & Interdiction Group - trig@novetta.com" info = "charlie component" hash = "f4750e1d82b08318bdc1eb6d3399dee52750250f7959a5e4f83245449f399698" source = "https://github.com/mattulm/sfiles_yara/blob/master/malware/SierraCharlie.yar" malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.sierras" malpedia_version = "20170517" malpedia_license = "CC BY-NC-SA 4.0" malpedia_sharing = "TLP:WHITE" strings: /* 8B 0D 50 A7 56 00 mov ecx, DnsFree 81 F6 8C 3F 7C 5E xor esi, 5E7C3F8Ch 6A 01 push 1 ; _DWORD 50 push eax ; _DWORD 85 C9 test ecx, ecx 74 3A jz short loc_40580B FF D1 call ecx ; DnsFree */ $dnsResolve = { 8B 0D 50 A7 56 00 81 F6 8C 3F 7C 5E 6A 01 50 85 C9 74 3A FF D1 } $file1 = "wmplog21t.sqm" $file2 = "wmplog15r.sqm" $file3 = "wmplog09c.sqm" condition: $dnsResolve in ((pe.sections[pe.section_index(".text")].raw_data_offset)..(pe.sections[pe.section_index(".text")].raw_data_offset + pe.sections[pe.section_index(".text")].raw_data_size)) or 2 of ($file*) }
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