Ransomware with ransomnote in Russian and encryption extension .scarab.
rule win_scarabey_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-09-17" version = "1" description = "Detects win.scarabey." 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.scarabey" 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 = { 7421 8d45cc 50 897dcc c745f0b8185300 c745e810000000 e8???????? } // n = 7, score = 100 // 7421 | je 0x23 // 8d45cc | lea eax, [ebp - 0x34] // 50 | push eax // 897dcc | mov dword ptr [ebp - 0x34], edi // c745f0b8185300 | mov dword ptr [ebp - 0x10], 0x5318b8 // c745e810000000 | mov dword ptr [ebp - 0x18], 0x10 // e8???????? | $sequence_1 = { 03048dc0375800 eb02 8bc2 f6402480 0f8571ffffff 33f6 3bde } // n = 7, score = 100 // 03048dc0375800 | add eax, dword ptr [ecx*4 + 0x5837c0] // eb02 | jmp 4 // 8bc2 | mov eax, edx // f6402480 | test byte ptr [eax + 0x24], 0x80 // 0f8571ffffff | jne 0xffffff77 // 33f6 | xor esi, esi // 3bde | cmp ebx, esi $sequence_2 = { ff15???????? 6a01 03f3 e9???????? 8d9508d7ffff 52 8d8d78d5ffff } // n = 7, score = 100 // ff15???????? | // 6a01 | push 1 // 03f3 | add esi, ebx // e9???????? | // 8d9508d7ffff | lea edx, [ebp - 0x28f8] // 52 | push edx // 8d8d78d5ffff | lea ecx, [ebp - 0x2a88] $sequence_3 = { 8b542404 85d2 750a 6805400080 e8???????? 8b01 52 } // n = 7, score = 100 // 8b542404 | mov edx, dword ptr [esp + 4] // 85d2 | test edx, edx // 750a | jne 0xc // 6805400080 | push 0x80004005 // e8???????? | // 8b01 | mov eax, dword ptr [ecx] // 52 | push edx $sequence_4 = { eb4b db8540d6ffff e8???????? 8b8d08d7ffff 8d95dcfbffff 0fb7c2 } // n = 6, score = 100 // eb4b | jmp 0x4d // db8540d6ffff | fild dword ptr [ebp - 0x29c0] // e8???????? | // 8b8d08d7ffff | mov ecx, dword ptr [ebp - 0x28f8] // 8d95dcfbffff | lea edx, [ebp - 0x424] // 0fb7c2 | movzx eax, dx $sequence_5 = { f6452440 740c c78634030000949b5700 eb10 f6452420 740a } // n = 6, score = 100 // f6452440 | test byte ptr [ebp + 0x24], 0x40 // 740c | je 0xe // c78634030000949b5700 | mov dword ptr [esi + 0x334], 0x579b94 // eb10 | jmp 0x12 // f6452420 | test byte ptr [ebp + 0x24], 0x20 // 740a | je 0xc $sequence_6 = { 894708 8b45c8 89470c eb60 d945c4 d95f08 eb58 } // n = 7, score = 100 // 894708 | mov dword ptr [edi + 8], eax // 8b45c8 | mov eax, dword ptr [ebp - 0x38] // 89470c | mov dword ptr [edi + 0xc], eax // eb60 | jmp 0x62 // d945c4 | fld dword ptr [ebp - 0x3c] // d95f08 | fstp dword ptr [edi + 8] // eb58 | jmp 0x5a $sequence_7 = { e8???????? 6a0f ff15???????? 50 8d4c247c e8???????? } // n = 6, score = 100 // e8???????? | // 6a0f | push 0xf // ff15???????? | // 50 | push eax // 8d4c247c | lea ecx, [esp + 0x7c] // e8???????? | $sequence_8 = { 33f6 56 40 52 89b524d3ffff 89b528d3ffff a3???????? } // n = 7, score = 100 // 33f6 | xor esi, esi // 56 | push esi // 40 | inc eax // 52 | push edx // 89b524d3ffff | mov dword ptr [ebp - 0x2cdc], esi // 89b528d3ffff | mov dword ptr [ebp - 0x2cd8], esi // a3???????? | $sequence_9 = { 6a00 6a00 6a01 8d9554d2ffff 52 ff15???????? a1???????? } // n = 7, score = 100 // 6a00 | push 0 // 6a00 | push 0 // 6a01 | push 1 // 8d9554d2ffff | lea edx, [ebp - 0x2dac] // 52 | push edx // ff15???????? | // a1???????? | condition: 7 of them and filesize < 3580928 }
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