Actor(s): Turla
A keylogger used by Turla.
rule win_ksl0t_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-09-17" version = "1" description = "Detects win.ksl0t." 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.ksl0t" 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 = { 66898424d0040000 488dbc24d2040000 33c0 b906020000 f3aa } // n = 5, score = 200 // 66898424d0040000 | add edx, 0x96 // 488dbc24d2040000 | inc ecx // 33c0 | mov eax, 1 // b906020000 | dec eax // f3aa | lea ecx, [0xe6b1] $sequence_1 = { 894dd8 3bce 732b b81f85eb51 f7e3 c1ea05 6bd264 } // n = 7, score = 200 // 894dd8 | mov dword ptr [ebp - 0x28], ecx // 3bce | cmp ecx, esi // 732b | jae 0x2d // b81f85eb51 | mov eax, 0x51eb851f // f7e3 | mul ebx // c1ea05 | shr edx, 5 // 6bd264 | imul edx, edx, 0x64 $sequence_2 = { 49d1e0 488d9424b0100000 488d0d2eec0000 ff15???????? } // n = 4, score = 200 // 49d1e0 | dec eax // 488d9424b0100000 | lea edx, [0xc405] // 488d0d2eec0000 | dec eax // ff15???????? | $sequence_3 = { 55 8dac2494f7ffff 81ec6c080000 6afe } // n = 4, score = 200 // 55 | push ebp // 8dac2494f7ffff | lea ebp, [esp - 0x86c] // 81ec6c080000 | sub esp, 0x86c // 6afe | push -2 $sequence_4 = { 8d8500080000 50 ff15???????? 897dcc 8d4dcc 51 53 } // n = 7, score = 200 // 8d8500080000 | lea eax, [ebp + 0x800] // 50 | push eax // ff15???????? | // 897dcc | mov dword ptr [ebp - 0x34], edi // 8d4dcc | lea ecx, [ebp - 0x34] // 51 | push ecx // 53 | push ebx $sequence_5 = { c684249e02000027 c684249f02000032 c68424a002000023 c68424a102000002 } // n = 4, score = 200 // c684249e02000027 | mov eax, dword ptr [esp + 0x14b4] // c684249f02000032 | dec eax // c68424a002000023 | lea edx, [0xc95a] // c68424a102000002 | dec ecx $sequence_6 = { 68???????? 68???????? ff15???????? 8935???????? 83c40c 393d???????? } // n = 6, score = 200 // 68???????? | // 68???????? | // ff15???????? | // 8935???????? | // 83c40c | add esp, 0xc // 393d???????? | $sequence_7 = { 41b800020000 33d2 488d8c24b0100000 ff15???????? 448b8424b4140000 488d155ac90000 } // n = 6, score = 200 // 41b800020000 | call dword ptr [esp + 0x418] // 33d2 | dec esp // 488d8c24b0100000 | mov ebx, eax // ff15???????? | // 448b8424b4140000 | dec eax // 488d155ac90000 | mov eax, dword ptr [esp + 0x420] $sequence_8 = { 488b842420040000 4c899870010000 488d9424e8010000 488b8c24e0000000 ff942418040000 4c8bd8 488b842420040000 } // n = 7, score = 200 // 488b842420040000 | mov dword ptr [esp + 0x14b4], eax // 4c899870010000 | inc ecx // 488d9424e8010000 | mov eax, 0x200 // 488b8c24e0000000 | dec eax // ff942418040000 | mov eax, dword ptr [esp + 0x420] // 4c8bd8 | dec esp // 488b842420040000 | mov dword ptr [eax + 0x170], ebx $sequence_9 = { c68424e100000027 888424e2000000 c68424e300000034 889c24e4000000 888424e5000000 c68424e600000018 } // n = 6, score = 200 // c68424e100000027 | mov byte ptr [esp + 0xe1], 0x27 // 888424e2000000 | mov byte ptr [esp + 0xe2], al // c68424e300000034 | mov byte ptr [esp + 0xe3], 0x34 // 889c24e4000000 | mov byte ptr [esp + 0xe4], bl // 888424e5000000 | mov byte ptr [esp + 0xe5], al // c68424e600000018 | mov byte ptr [esp + 0xe6], 0x18 $sequence_10 = { 83f819 72f3 33c0 90 308c0400010000 } // n = 5, score = 200 // 83f819 | cmp eax, 0x19 // 72f3 | jb 0xfffffff5 // 33c0 | xor eax, eax // 90 | nop // 308c0400010000 | xor byte ptr [esp + eax + 0x100], cl $sequence_11 = { 2bc1 56 57 89442418 } // n = 4, score = 200 // 2bc1 | sub eax, ecx // 56 | push esi // 57 | push edi // 89442418 | mov dword ptr [esp + 0x18], eax $sequence_12 = { 6a04 68???????? 68???????? ff15???????? 83c40c e9???????? 6a07 } // n = 7, score = 200 // 6a04 | push 4 // 68???????? | // 68???????? | // ff15???????? | // 83c40c | add esp, 0xc // e9???????? | // 6a07 | push 7 $sequence_13 = { 488d1505c40000 4881c296000000 41b801000000 488d0db1e60000 } // n = 4, score = 200 // 488d1505c40000 | dec eax // 4881c296000000 | lea edx, [esp + 0x1e8] // 41b801000000 | dec eax // 488d0db1e60000 | mov ecx, dword ptr [esp + 0xe0] $sequence_14 = { 83c00c 898424f4080000 0fb705???????? 85c0 7475 488d152adc0000 4883c20c } // n = 7, score = 200 // 83c00c | inc ecx // 898424f4080000 | mov eax, 0x200 // 0fb705???????? | // 85c0 | xor edx, edx // 7475 | dec eax // 488d152adc0000 | lea ecx, [esp + 0x10b0] // 4883c20c | inc esp $sequence_15 = { 4889442458 48837c245800 756e ff15???????? 898424b4140000 41b800020000 } // n = 6, score = 200 // 4889442458 | dec eax // 48837c245800 | mov dword ptr [esp + 0x58], eax // 756e | dec eax // ff15???????? | // 898424b4140000 | cmp dword ptr [esp + 0x58], 0 // 41b800020000 | jne 0x70 condition: 7 of them and filesize < 196608 }
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