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 = "2023-01-25" 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 = "20230124" malpedia_hash = "2ee0eebba83dce3d019a90519f2f972c0fcf9686" malpedia_version = "20230125" 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 = { c705????????07000000 8935???????? 8935???????? 8935???????? 8935???????? ff15???????? 3bc6 } // n = 7, score = 400 // c705????????07000000 | // 8935???????? | // 8935???????? | // 8935???????? | // 8935???????? | // ff15???????? | // 3bc6 | cmp eax, esi $sequence_1 = { 837df800 0f84bd0d0000 8b45fc ff4df8 8bcf 0fb600 } // n = 6, score = 200 // 837df800 | cmp dword ptr [ebp - 8], 0 // 0f84bd0d0000 | je 0xdc3 // 8b45fc | mov eax, dword ptr [ebp - 4] // ff4df8 | dec dword ptr [ebp - 8] // 8bcf | mov ecx, edi // 0fb600 | movzx eax, byte ptr [eax] $sequence_2 = { 0f8479010000 81fe00200000 732f e9???????? 8d8c2418010000 68???????? 51 } // n = 7, score = 200 // 0f8479010000 | je 0x17f // 81fe00200000 | cmp esi, 0x2000 // 732f | jae 0x31 // e9???????? | // 8d8c2418010000 | lea ecx, [esp + 0x118] // 68???????? | // 51 | push ecx $sequence_3 = { 6a40 ffd5 8b4c2414 8be8 8b442424 } // n = 5, score = 200 // 6a40 | push 0x40 // ffd5 | call ebp // 8b4c2414 | mov ecx, dword ptr [esp + 0x14] // 8be8 | mov ebp, eax // 8b442424 | mov eax, dword ptr [esp + 0x24] $sequence_4 = { 03d8 8b45f0 3b4510 72c3 } // n = 4, score = 200 // 03d8 | add ebx, eax // 8b45f0 | mov eax, dword ptr [ebp - 0x10] // 3b4510 | cmp eax, dword ptr [ebp + 0x10] // 72c3 | jb 0xffffffc5 $sequence_5 = { 0f8cc0000000 837d0801 7e58 837d0803 0f8fb0000000 397d10 } // n = 6, score = 200 // 0f8cc0000000 | jl 0xc6 // 837d0801 | cmp dword ptr [ebp + 8], 1 // 7e58 | jle 0x5a // 837d0803 | cmp dword ptr [ebp + 8], 3 // 0f8fb0000000 | jg 0xb6 // 397d10 | cmp dword ptr [ebp + 0x10], edi $sequence_6 = { 81c428050000 c3 8d542410 81c1401f0000 52 51 } // n = 6, score = 200 // 81c428050000 | add esp, 0x528 // c3 | ret // 8d542410 | lea edx, [esp + 0x10] // 81c1401f0000 | add ecx, 0x1f40 // 52 | push edx // 51 | push ecx $sequence_7 = { 0f86a4000000 8b7d14 8b450c 8b4df0 } // n = 4, score = 200 // 0f86a4000000 | jbe 0xaa // 8b7d14 | mov edi, dword ptr [ebp + 0x14] // 8b450c | mov eax, dword ptr [ebp + 0xc] // 8b4df0 | mov ecx, dword ptr [ebp - 0x10] $sequence_8 = { 397c2444 750d 5f 5e } // n = 4, score = 200 // 397c2444 | cmp dword ptr [esp + 0x44], edi // 750d | jne 0xf // 5f | pop edi // 5e | pop esi $sequence_9 = { c3 56 8bf1 e8???????? 8d8614010000 5e } // n = 6, score = 200 // c3 | ret // 56 | push esi // 8bf1 | mov esi, ecx // e8???????? | // 8d8614010000 | lea eax, [esi + 0x114] // 5e | pop esi $sequence_10 = { 8bf0 8bcf e8???????? 8b4f04 } // n = 4, score = 200 // 8bf0 | mov esi, eax // 8bcf | mov ecx, edi // e8???????? | // 8b4f04 | mov ecx, dword ptr [edi + 4] $sequence_11 = { eb05 e8???????? 0175f0 03d8 } // n = 4, score = 200 // eb05 | jmp 7 // e8???????? | // 0175f0 | add dword ptr [ebp - 0x10], esi // 03d8 | add ebx, eax $sequence_12 = { eb0f 8b4dec 03c7 50 } // n = 4, score = 200 // eb0f | jmp 0x11 // 8b4dec | mov ecx, dword ptr [ebp - 0x14] // 03c7 | add eax, edi // 50 | push eax $sequence_13 = { a1???????? 50 89442440 e8???????? 8b44242c } // n = 5, score = 200 // a1???????? | // 50 | push eax // 89442440 | mov dword ptr [esp + 0x40], eax // e8???????? | // 8b44242c | mov eax, dword ptr [esp + 0x2c] $sequence_14 = { ff15???????? 53 8d842430070000 68???????? } // n = 4, score = 200 // ff15???????? | // 53 | push ebx // 8d842430070000 | lea eax, [esp + 0x730] // 68???????? | 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.
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