Actor(s): Mythic Likho
According to BI.ZONE, Loki is an implant compatible with the Mythic and Havoc post‑exploitation frameworks.
rule win_loki_mythic_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-09-17" version = "1" description = "Detects win.loki_mythic." 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.loki_mythic" 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 = { 4829f0 8d4801 4889c3 488b05???????? 4885c0 7432 } // n = 6, score = 100 // 4829f0 | dec ecx // 8d4801 | mov ecx, dword ptr [esp + 0x300] // 4889c3 | dec eax // 488b05???????? | // 4885c0 | test eax, eax // 7432 | je 0x9c2 $sequence_1 = { 44880c08 4883c101 4939c8 75ee 488b03 448b4308 4ac7040000000000 } // n = 7, score = 100 // 44880c08 | nop // 4883c101 | mov edx, ebx // 4939c8 | dec eax // 75ee | mov ecx, edi // 488b03 | add ebx, 1 // 448b4308 | dec eax // 4ac7040000000000 | test esi, esi $sequence_2 = { 56 53 4883ec78 c744246400000000 c744246000000000 c744245c00000000 } // n = 6, score = 100 // 56 | dec eax // 53 | mov ecx, esi // 4883ec78 | dec eax // c744246400000000 | add esi, 0x10 // c744246000000000 | dec eax // c744245c00000000 | mov ecx, ebx $sequence_3 = { 448b4c2448 4c8b442440 4889ca 0f1f840000000000 4883c201 803a00 75f7 } // n = 7, score = 100 // 448b4c2448 | dec eax // 4c8b442440 | mov ecx, edi // 4889ca | dec ecx // 0f1f840000000000 | mov dword ptr [ebp + 0x28], eax // 4883c201 | dec eax // 803a00 | mov dword ptr [esp + 0x30], eax // 75f7 | dec eax $sequence_4 = { 4939c0 75ee e9???????? 4c89b42480000000 41be01000000 e9???????? } // n = 6, score = 100 // 4939c0 | jne 0x3ad // 75ee | dec ebp // e9???????? | // 4c89b42480000000 | test eax, eax // 41be01000000 | mov byte ptr [edx - 1], cl // e9???????? | $sequence_5 = { 4889f8 0f1f8000000000 4883c001 803800 75f7 29f8 894630 } // n = 7, score = 100 // 4889f8 | dec eax // 0f1f8000000000 | mov eax, dword ptr [ebx + 0x358] // 4883c001 | mov dword ptr [esp + 0x38], ecx // 803800 | dec eax // 75f7 | test eax, eax // 29f8 | je 0xca2 // 894630 | call eax $sequence_6 = { 4889442470 e8???????? 4c89f2 4889d9 4c8d742440 e8???????? 488b4c2428 } // n = 7, score = 100 // 4889442470 | dec eax // e8???????? | // 4c89f2 | lea edx, [ebp + 4] // 4889d9 | dec ecx // 4c8d742440 | mov esi, ebp // e8???????? | // 488b4c2428 | dec eax $sequence_7 = { 4d89e8 4889f2 4889f9 e8???????? 488b0b 4889fa e8???????? } // n = 7, score = 100 // 4d89e8 | dec eax // 4889f2 | mov ecx, esi // 4889f9 | dec ebp // e8???????? | // 488b0b | mov ecx, edi // 4889fa | test eax, eax // e8???????? | $sequence_8 = { 83c102 4885c0 0f8468020000 ffd0 4889442470 4885c0 0f8461020000 } // n = 7, score = 100 // 83c102 | mov edx, edi // 4885c0 | dec eax // 0f8468020000 | mov ecx, esi // ffd0 | test eax, eax // 4889442470 | je 0x651 // 4885c0 | je 0x662 // 0f8461020000 | call eax $sequence_9 = { 660fefc0 0f1103 0f114310 488d65d8 5b 5e 5f } // n = 7, score = 100 // 660fefc0 | dec eax // 0f1103 | mov esi, edx // 0f114310 | push ebx // 488d65d8 | dec eax // 5b | mov ebx, ecx // 5e | dec eax // 5f | sub esp, 0x88 condition: 7 of them and filesize < 263168 }
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