ransomware
rule win_purelocker_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-09-17" version = "1" description = "Detects win.purelocker." 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.purelocker" 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 = { 83e310 21db 0f84af010000 ff742458 8d157a410110 59 e8???????? } // n = 7, score = 100 // 83e310 | and ebx, 0x10 // 21db | and ebx, ebx // 0f84af010000 | je 0x1b5 // ff742458 | push dword ptr [esp + 0x58] // 8d157a410110 | lea edx, [0x1001417a] // 59 | pop ecx // e8???????? | $sequence_1 = { c20800 31c0 50 e8???????? 833d????????00 7426 ff35???????? } // n = 7, score = 100 // c20800 | ret 8 // 31c0 | xor eax, eax // 50 | push eax // e8???????? | // 833d????????00 | // 7426 | je 0x28 // ff35???????? | $sequence_2 = { ff35???????? 8d051a470110 50 e8???????? 58 8d1540520110 52 } // n = 7, score = 100 // ff35???????? | // 8d051a470110 | lea eax, [0x1001471a] // 50 | push eax // e8???????? | // 58 | pop eax // 8d1540520110 | lea edx, [0x10015240] // 52 | push edx $sequence_3 = { ff74243c e8???????? 680a000000 e8???????? ffb424a8000000 ffb424a8000000 } // n = 6, score = 100 // ff74243c | push dword ptr [esp + 0x3c] // e8???????? | // 680a000000 | push 0xa // e8???????? | // ffb424a8000000 | push dword ptr [esp + 0xa8] // ffb424a8000000 | push dword ptr [esp + 0xa8] $sequence_4 = { 56 57 83f816 0f87c2000000 0fb680a0d10010 ff248594d10010 } // n = 6, score = 100 // 56 | push esi // 57 | push edi // 83f816 | cmp eax, 0x16 // 0f87c2000000 | ja 0xc8 // 0fb680a0d10010 | movzx eax, byte ptr [eax + 0x1000d1a0] // ff248594d10010 | jmp dword ptr [eax*4 + 0x1000d194] $sequence_5 = { 50 ff35???????? ff35???????? e8???????? e8???????? 8b15???????? } // n = 6, score = 100 // 50 | push eax // ff35???????? | // ff35???????? | // e8???????? | // e8???????? | // 8b15???????? | $sequence_6 = { 50 58 894508 c744241c00000000 6821400000 6800000000 } // n = 6, score = 100 // 50 | push eax // 58 | pop eax // 894508 | mov dword ptr [ebp + 8], eax // c744241c00000000 | mov dword ptr [esp + 0x1c], 0 // 6821400000 | push 0x4021 // 6800000000 | push 0 $sequence_7 = { eb22 8d6c2464 c74504ffffffff c74500feffffff 8d4500 c7400400000000 c70000000000 } // n = 7, score = 100 // eb22 | jmp 0x24 // 8d6c2464 | lea ebp, [esp + 0x64] // c74504ffffffff | mov dword ptr [ebp + 4], 0xffffffff // c74500feffffff | mov dword ptr [ebp], 0xfffffffe // 8d4500 | lea eax, [ebp] // c7400400000000 | mov dword ptr [eax + 4], 0 // c70000000000 | mov dword ptr [eax], 0 $sequence_8 = { 8d1546430110 52 e8???????? 8b542428 52 e8???????? 8d151a520110 } // n = 7, score = 100 // 8d1546430110 | lea edx, [0x10014346] // 52 | push edx // e8???????? | // 8b542428 | mov edx, dword ptr [esp + 0x28] // 52 | push edx // e8???????? | // 8d151a520110 | lea edx, [0x1001521a] $sequence_9 = { e8???????? a3???????? 8b1d???????? 21db 7513 681a38d10b ff74242c } // n = 7, score = 100 // e8???????? | // a3???????? | // 8b1d???????? | // 21db | and ebx, ebx // 7513 | jne 0x15 // 681a38d10b | push 0xbd1381a // ff74242c | push dword ptr [esp + 0x2c] condition: 7 of them and filesize < 193536 }
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