Actor(s): Tonto Team
There is no description at this point.
rule win_korlia_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-09-17" version = "1" description = "Detects win.korlia." 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.korlia" 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 = { f7ef c1fa14 8bc2 c1e81f 03d0 52 68???????? } // n = 7, score = 2300 // f7ef | imul edi // c1fa14 | sar edx, 0x14 // 8bc2 | mov eax, edx // c1e81f | shr eax, 0x1f // 03d0 | add edx, eax // 52 | push edx // 68???????? | $sequence_1 = { 50 51 68???????? 68???????? ffd6 b905000000 be???????? } // n = 7, score = 2300 // 50 | push eax // 51 | push ecx // 68???????? | // 68???????? | // ffd6 | call esi // b905000000 | mov ecx, 5 // be???????? | $sequence_2 = { f2ae f7d1 49 83f90f } // n = 4, score = 2300 // f2ae | repne scasb al, byte ptr es:[edi] // f7d1 | not ecx // 49 | dec ecx // 83f90f | cmp ecx, 0xf $sequence_3 = { 59 5a c745fcffffffff 8a45e4 } // n = 4, score = 2300 // 59 | pop ecx // 5a | pop edx // c745fcffffffff | mov dword ptr [ebp - 4], 0xffffffff // 8a45e4 | mov al, byte ptr [ebp - 0x1c] $sequence_4 = { 6a00 ffd6 68???????? c705????????1c010000 ff15???????? } // n = 5, score = 2300 // 6a00 | push 0 // ffd6 | call esi // 68???????? | // c705????????1c010000 | // ff15???????? | $sequence_5 = { 52 68???????? 51 ffd6 8bc7 b980ee3600 } // n = 6, score = 2300 // 52 | push edx // 68???????? | // 51 | push ecx // ffd6 | call esi // 8bc7 | mov eax, edi // b980ee3600 | mov ecx, 0x36ee80 $sequence_6 = { b980ee3600 99 f7f9 b873b2e745 } // n = 4, score = 2300 // b980ee3600 | mov ecx, 0x36ee80 // 99 | cdq // f7f9 | idiv ecx // b873b2e745 | mov eax, 0x45e7b273 $sequence_7 = { 68???????? 6aff 53 6a00 6a00 ffd6 ff15???????? } // n = 7, score = 2300 // 68???????? | // 6aff | push -1 // 53 | push ebx // 6a00 | push 0 // 6a00 | push 0 // ffd6 | call esi // ff15???????? | $sequence_8 = { 53 6a01 53 53 53 51 } // n = 6, score = 2000 // 53 | push ebx // 6a01 | push 1 // 53 | push ebx // 53 | push ebx // 53 | push ebx // 51 | push ecx $sequence_9 = { 8b442404 56 6a00 6a00 6a01 6a00 6a00 } // n = 7, score = 700 // 8b442404 | mov eax, dword ptr [esp + 4] // 56 | push esi // 6a00 | push 0 // 6a00 | push 0 // 6a01 | push 1 // 6a00 | push 0 // 6a00 | push 0 $sequence_10 = { 6a01 6a00 6a00 6800000040 50 ff15???????? 8bf0 } // n = 7, score = 700 // 6a01 | push 1 // 6a00 | push 0 // 6a00 | push 0 // 6800000040 | push 0x40000000 // 50 | push eax // ff15???????? | // 8bf0 | mov esi, eax $sequence_11 = { ff742410 e8???????? c21000 e8???????? 8a4c2404 6a01 } // n = 6, score = 600 // ff742410 | push dword ptr [esp + 0x10] // e8???????? | // c21000 | ret 0x10 // e8???????? | // 8a4c2404 | mov cl, byte ptr [esp + 4] // 6a01 | push 1 $sequence_12 = { 8b4c240c 898840200000 58 c20800 e9???????? 6800060000 } // n = 6, score = 600 // 8b4c240c | mov ecx, dword ptr [esp + 0xc] // 898840200000 | mov dword ptr [eax + 0x2040], ecx // 58 | pop eax // c20800 | ret 8 // e9???????? | // 6800060000 | push 0x600 $sequence_13 = { 83feff 7423 8b542410 8b44240c } // n = 4, score = 600 // 83feff | cmp esi, -1 // 7423 | je 0x25 // 8b542410 | mov edx, dword ptr [esp + 0x10] // 8b44240c | mov eax, dword ptr [esp + 0xc] $sequence_14 = { 50 56 ff15???????? 56 ff15???????? b001 } // n = 6, score = 600 // 50 | push eax // 56 | push esi // ff15???????? | // 56 | push esi // ff15???????? | // b001 | mov al, 1 $sequence_15 = { f2ae f7d1 2bf9 6810270000 } // n = 4, score = 600 // f2ae | repne scasb al, byte ptr es:[edi] // f7d1 | not ecx // 2bf9 | sub edi, ecx // 6810270000 | push 0x2710 $sequence_16 = { e8???????? 8a4c2404 6a01 884814 8b4c240c 898840200000 58 } // n = 7, score = 600 // e8???????? | // 8a4c2404 | mov cl, byte ptr [esp + 4] // 6a01 | push 1 // 884814 | mov byte ptr [eax + 0x14], cl // 8b4c240c | mov ecx, dword ptr [esp + 0xc] // 898840200000 | mov dword ptr [eax + 0x2040], ecx // 58 | pop eax $sequence_17 = { 59 c3 8b65e8 ff7588 ff15???????? 833d????????ff } // n = 6, score = 600 // 59 | pop ecx // c3 | ret // 8b65e8 | mov esp, dword ptr [ebp - 0x18] // ff7588 | push dword ptr [ebp - 0x78] // ff15???????? | // 833d????????ff | $sequence_18 = { ff7588 ff15???????? 833d????????ff 750c ff742404 ff15???????? } // n = 6, score = 600 // ff7588 | push dword ptr [ebp - 0x78] // ff15???????? | // 833d????????ff | // 750c | jne 0xe // ff742404 | push dword ptr [esp + 4] // ff15???????? | $sequence_19 = { b8447c0000 e8???????? 53 56 57 } // n = 5, score = 500 // b8447c0000 | mov eax, 0x7c44 // e8???????? | // 53 | push ebx // 56 | push esi // 57 | push edi $sequence_20 = { 8bf9 81e7ff000000 03f2 03f7 } // n = 4, score = 500 // 8bf9 | mov edi, ecx // 81e7ff000000 | and edi, 0xff // 03f2 | add esi, edx // 03f7 | add esi, edi $sequence_21 = { 894d00 8b542438 83c504 50 895500 83c504 } // n = 6, score = 500 // 894d00 | mov dword ptr [ebp], ecx // 8b542438 | mov edx, dword ptr [esp + 0x38] // 83c504 | add ebp, 4 // 50 | push eax // 895500 | mov dword ptr [ebp], edx // 83c504 | add ebp, 4 $sequence_22 = { 6880000000 6800000400 8bce e8???????? } // n = 4, score = 500 // 6880000000 | push 0x80 // 6800000400 | push 0x40000 // 8bce | mov ecx, esi // e8???????? | $sequence_23 = { 6a00 680030c800 6a00 6a00 68???????? } // n = 5, score = 500 // 6a00 | push 0 // 680030c800 | push 0xc83000 // 6a00 | push 0 // 6a00 | push 0 // 68???????? | $sequence_24 = { 51 ff15???????? a1???????? b981000000 } // n = 4, score = 400 // 51 | push ecx // ff15???????? | // a1???????? | // b981000000 | mov ecx, 0x81 $sequence_25 = { 81ca80010000 89542428 8d542428 52 6a1f } // n = 5, score = 400 // 81ca80010000 | or edx, 0x180 // 89542428 | mov dword ptr [esp + 0x28], edx // 8d542428 | lea edx, [esp + 0x28] // 52 | push edx // 6a1f | push 0x1f $sequence_26 = { ffd6 8d44240c 6804010000 50 } // n = 4, score = 400 // ffd6 | call esi // 8d44240c | lea eax, [esp + 0xc] // 6804010000 | push 0x104 // 50 | push eax $sequence_27 = { 750c ff15???????? 53 e9???????? } // n = 4, score = 400 // 750c | jne 0xe // ff15???????? | // 53 | push ebx // e9???????? | $sequence_28 = { 6a00 6a00 50 8bce e8???????? 6a00 } // n = 6, score = 400 // 6a00 | push 0 // 6a00 | push 0 // 50 | push eax // 8bce | mov ecx, esi // e8???????? | // 6a00 | push 0 $sequence_29 = { 50 ffd6 eb06 8b35???????? a1???????? } // n = 5, score = 300 // 50 | push eax // ffd6 | call esi // eb06 | jmp 8 // 8b35???????? | // a1???????? | $sequence_30 = { f3ab aa b9f9000000 33c0 } // n = 4, score = 300 // f3ab | rep stosd dword ptr es:[edi], eax // aa | stosb byte ptr es:[edi], al // b9f9000000 | mov ecx, 0xf9 // 33c0 | xor eax, eax $sequence_31 = { 6a00 68???????? 6801000080 ff15???????? 85c0 0f8599000000 } // n = 6, score = 300 // 6a00 | push 0 // 68???????? | // 6801000080 | push 0x80000001 // ff15???????? | // 85c0 | test eax, eax // 0f8599000000 | jne 0x9f $sequence_32 = { 51 aa ff15???????? bf???????? 83c9ff 33c0 8d542410 } // n = 7, score = 300 // 51 | push ecx // aa | stosb byte ptr es:[edi], al // ff15???????? | // bf???????? | // 83c9ff | or ecx, 0xffffffff // 33c0 | xor eax, eax // 8d542410 | lea edx, [esp + 0x10] $sequence_33 = { 56 3bc3 57 740b } // n = 4, score = 300 // 56 | push esi // 3bc3 | cmp eax, ebx // 57 | push edi // 740b | je 0xd $sequence_34 = { f3ab 66ab 8d4c2410 6804010000 51 } // n = 5, score = 300 // f3ab | rep stosd dword ptr es:[edi], eax // 66ab | stosw word ptr es:[edi], ax // 8d4c2410 | lea ecx, [esp + 0x10] // 6804010000 | push 0x104 // 51 | push ecx $sequence_35 = { 33c0 8dbc245e020000 66899c245c020000 f3ab } // n = 4, score = 300 // 33c0 | xor eax, eax // 8dbc245e020000 | lea edi, [esp + 0x25e] // 66899c245c020000 | mov word ptr [esp + 0x25c], bx // f3ab | rep stosd dword ptr es:[edi], eax $sequence_36 = { 68???????? 51 ff15???????? 8b54240c 8bf0 } // n = 5, score = 300 // 68???????? | // 51 | push ecx // ff15???????? | // 8b54240c | mov edx, dword ptr [esp + 0xc] // 8bf0 | mov esi, eax $sequence_37 = { ffd6 a1???????? 3bc3 7403 50 ffd6 b912010000 } // n = 7, score = 300 // ffd6 | call esi // a1???????? | // 3bc3 | cmp eax, ebx // 7403 | je 5 // 50 | push eax // ffd6 | call esi // b912010000 | mov ecx, 0x112 $sequence_38 = { 68ff0f1f00 ff15???????? 85c0 740a } // n = 4, score = 300 // 68ff0f1f00 | push 0x1f0fff // ff15???????? | // 85c0 | test eax, eax // 740a | je 0xc $sequence_39 = { 81ec08010000 8d442400 50 6806000200 6a00 68???????? } // n = 6, score = 300 // 81ec08010000 | sub esp, 0x108 // 8d442400 | lea eax, [esp] // 50 | push eax // 6806000200 | push 0x20006 // 6a00 | push 0 // 68???????? | $sequence_40 = { ff15???????? 50 ff15???????? 68d0070000 ff15???????? } // n = 5, score = 300 // ff15???????? | // 50 | push eax // ff15???????? | // 68d0070000 | push 0x7d0 // ff15???????? | $sequence_41 = { 56 57 b940000000 8d7c2411 88442410 f3ab } // n = 6, score = 300 // 56 | push esi // 57 | push edi // b940000000 | mov ecx, 0x40 // 8d7c2411 | lea edi, [esp + 0x11] // 88442410 | mov byte ptr [esp + 0x10], al // f3ab | rep stosd dword ptr es:[edi], eax $sequence_42 = { c0ec07 8845fa 8a4302 8845ff } // n = 4, score = 100 // c0ec07 | shr ah, 7 // 8845fa | mov byte ptr [ebp - 6], al // 8a4302 | mov al, byte ptr [ebx + 2] // 8845ff | mov byte ptr [ebp - 1], al $sequence_43 = { 8b6c244c 66ab 8d442454 8d8c245c020000 50 51 } // n = 6, score = 100 // 8b6c244c | mov ebp, dword ptr [esp + 0x4c] // 66ab | stosw word ptr es:[edi], ax // 8d442454 | lea eax, [esp + 0x54] // 8d8c245c020000 | lea ecx, [esp + 0x25c] // 50 | push eax // 51 | push ecx $sequence_44 = { 8b4620 53 ffd0 85c0 7433 8b45fc } // n = 6, score = 100 // 8b4620 | mov eax, dword ptr [esi + 0x20] // 53 | push ebx // ffd0 | call eax // 85c0 | test eax, eax // 7433 | je 0x35 // 8b45fc | mov eax, dword ptr [ebp - 4] $sequence_45 = { 683f000f00 57 57 ff15???????? 8bd0 } // n = 5, score = 100 // 683f000f00 | push 0xf003f // 57 | push edi // 57 | push edi // ff15???????? | // 8bd0 | mov edx, eax $sequence_46 = { 56 ff15???????? 8d4c240c 6a00 51 8d942420020000 } // n = 6, score = 100 // 56 | push esi // ff15???????? | // 8d4c240c | lea ecx, [esp + 0xc] // 6a00 | push 0 // 51 | push ecx // 8d942420020000 | lea edx, [esp + 0x220] $sequence_47 = { 0f8444020000 b9???????? 8d85f4f8ffff 0f1f4000 8a10 3a11 } // n = 6, score = 100 // 0f8444020000 | je 0x24a // b9???????? | // 8d85f4f8ffff | lea eax, [ebp - 0x70c] // 0f1f4000 | nop dword ptr [eax] // 8a10 | mov dl, byte ptr [eax] // 3a11 | cmp dl, byte ptr [ecx] $sequence_48 = { 8d442414 83e103 50 f3a4 e8???????? 83c40c } // n = 6, score = 100 // 8d442414 | lea eax, [esp + 0x14] // 83e103 | and ecx, 3 // 50 | push eax // f3a4 | rep movsb byte ptr es:[edi], byte ptr [esi] // e8???????? | // 83c40c | add esp, 0xc $sequence_49 = { 8b0cc57c944100 894de4 85c9 7455 8b4510 } // n = 5, score = 100 // 8b0cc57c944100 | mov ecx, dword ptr [eax*8 + 0x41947c] // 894de4 | mov dword ptr [ebp - 0x1c], ecx // 85c9 | test ecx, ecx // 7455 | je 0x57 // 8b4510 | mov eax, dword ptr [ebp + 0x10] $sequence_50 = { 8b8decefffff 8d85fcefffff 50 e8???????? } // n = 4, score = 100 // 8b8decefffff | mov ecx, dword ptr [ebp - 0x1014] // 8d85fcefffff | lea eax, [ebp - 0x1004] // 50 | push eax // e8???????? | $sequence_51 = { 0f118574ddffff ff15???????? 8d9564ddffff 8bf2 0f1f840000000000 668b02 83c202 } // n = 7, score = 100 // 0f118574ddffff | movups xmmword ptr [ebp - 0x228c], xmm0 // ff15???????? | // 8d9564ddffff | lea edx, [ebp - 0x229c] // 8bf2 | mov esi, edx // 0f1f840000000000 | nop dword ptr [eax + eax] // 668b02 | mov ax, word ptr [edx] // 83c202 | add edx, 2 $sequence_52 = { 8d843c8d280000 56 50 51 ffd5 } // n = 5, score = 100 // 8d843c8d280000 | lea eax, [esp + edi + 0x288d] // 56 | push esi // 50 | push eax // 51 | push ecx // ffd5 | call ebp $sequence_53 = { 68???????? 52 c745c40c714000 e8???????? 8b4dec 8d45e0 50 } // n = 7, score = 100 // 68???????? | // 52 | push edx // c745c40c714000 | mov dword ptr [ebp - 0x3c], 0x40710c // e8???????? | // 8b4dec | mov ecx, dword ptr [ebp - 0x14] // 8d45e0 | lea eax, [ebp - 0x20] // 50 | push eax condition: 7 of them and filesize < 263168 }
rule win_korlia_w0 { meta: author = "Nick Hoffman" company = "CBTS - ACS" information = "korlia malware found in apt dump" malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.korlia" malpedia_version = "20180125" malpedia_license = "CC BY-NC-SA 4.0" malpedia_sharing = "TLP:WHITE" //case a //b2 1f mov dl, 0x1f ; mov key (wildcard) // ----------------- //8A 86 98 40 00 71 mov al, byte ptr url[esi] //BF 98 40 00 71 mov edi, offset url //32 C2 xor al, dl //83 C9 FF or ecx, 0FFFFFFFFh //88 86 98 40 00 71 mov byte ptr url[esi], al //33 C0 xor eax, eax //46 inc esi //F2 AE repne scasb //F7 D1 not ecx //49 dec ecx //3B F1 cmp esi, ecx //72 DE jb short loc_71001DE0 //case b (variant of loop a) //8A 8A 28 50 40 00 mov cl, byte_405028[edx] //BF 28 50 40 00 mov edi, offset byte_405028 //32 CB xor cl, bl //33 C0 xor eax, eax //88 8A 28 50 40 00 mov byte_405028[edx], cl //83 C9 FF or ecx, 0FFFFFFFFh //42 inc edx //F2 AE repne scasb //F7 D1 not ecx //49 dec ecx //3B D1 cmp edx, ecx //72 DE jb short loc_4047F2 //case c (not a variant of the above loop) //8A 0C 28 mov cl, [eax+ebp] //80 F1 28 xor cl, 28h //88 0C 28 mov [eax+ebp], cl //8B 4C 24 14 mov ecx, [esp+0D78h+var_D64] //40 inc eax //3B C1 cmp eax, ecx //7C EE jl short loc_404F1C strings: $a = {b2 ?? 8A 86 98 40 00 71 BF 98 40 00 71 32 c2 83 C9 FF 88 86 98 40 00 71 33 C0 46 F2 AE F7 D1 49 3B F1} $b = {B3 ?? ?? ?? 8A 8A 28 50 40 00 BF 28 50 40 00 32 CB 33 C0 88 8A 28 50 40 00 83 C9 FF 42 F2 AE F7 D1 49 3B D1} $c = {8A 0C 28 80 F1 ?? 88 0C 28 8B 4C 24 14 40 3B C1} $d = {00 62 69 73 6F 6E 61 6C 00} //config marker "\x00bisonal\x00" condition: any of them }
rule win_korlia_w1 { meta: author = "pinksawtooth" source = "https://github.com/nao-sec/yara_rules/blob/master/Malware/bisonal.yar" reference = "https://www.paloaltonetworks.jp/company/in-the-news/2018/unit42-bisonal-malware-used-attacks-russia-south-korea" description = "rule to detect korlia/bisonal" malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.korlia" malpedia_rule_date = "20210204" malpedia_hash = "" malpedia_version = "20210204" malpedia_license = "CC BY-SA 4.0" malpedia_sharing = "TLP:WHITE" strings: $s1 = "akspbu.txt" ascii wide $s2 = "ks8d" ascii wide $s3 = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322" ascii wide /* bisonal_decode_jsac */ $decode = { bb bf 58 00 00 [0-2] 8d 0c 40 c1 e1 04 2b c8 8d 0c 49 8d 0c 89 8d 0c c9 8d 04 48 83 c9 ff } condition: uint16(0) == 0x5A4D and (all of ($s*) or $decode) }
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