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-05-04" 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 = "20260422" malpedia_hash = "a182e35da64e6d71cb55f125c4d4225196523f14" malpedia_version = "20260504" 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 = { c786900d000054865300 8986940d0000 8986a00d0000 89869c0d0000 8986980d0000 } // n = 5, score = 100 // c786900d000054865300 | mov dword ptr [esi + 0xd90], 0x538654 // 8986940d0000 | mov dword ptr [esi + 0xd94], eax // 8986a00d0000 | mov dword ptr [esi + 0xda0], eax // 89869c0d0000 | mov dword ptr [esi + 0xd9c], eax // 8986980d0000 | mov dword ptr [esi + 0xd98], eax $sequence_1 = { e8???????? 8d4de4 c745e4fc2f5300 e8???????? b805400080 e9???????? 8b8354ffffff } // n = 7, score = 100 // e8???????? | // 8d4de4 | lea ecx, [ebp - 0x1c] // c745e4fc2f5300 | mov dword ptr [ebp - 0x1c], 0x532ffc // e8???????? | // b805400080 | mov eax, 0x80004005 // e9???????? | // 8b8354ffffff | mov eax, dword ptr [ebx - 0xac] $sequence_2 = { 50 83c2f8 52 56 51 ff15???????? } // n = 6, score = 100 // 50 | push eax // 83c2f8 | add edx, -8 // 52 | push edx // 56 | push esi // 51 | push ecx // ff15???????? | $sequence_3 = { 2bfa 0fb715???????? 2bfa 01bdf0d6ffff 0fb6f8 2bbd14d7ffff 2bfb } // n = 7, score = 100 // 2bfa | sub edi, edx // 0fb715???????? | // 2bfa | sub edi, edx // 01bdf0d6ffff | add dword ptr [ebp - 0x2910], edi // 0fb6f8 | movzx edi, al // 2bbd14d7ffff | sub edi, dword ptr [ebp - 0x28ec] // 2bfb | sub edi, ebx $sequence_4 = { 8b0485c0375800 8bfa 83e71f c1e706 8b0407 } // n = 5, score = 100 // 8b0485c0375800 | mov eax, dword ptr [eax*4 + 0x5837c0] // 8bfa | mov edi, edx // 83e71f | and edi, 0x1f // c1e706 | shl edi, 6 // 8b0407 | mov eax, dword ptr [edi + eax] $sequence_5 = { 8d42fe 83f814 776c ff248510da4100 8b4114 eb67 8b4118 } // n = 7, score = 100 // 8d42fe | lea eax, [edx - 2] // 83f814 | cmp eax, 0x14 // 776c | ja 0x6e // ff248510da4100 | jmp dword ptr [eax*4 + 0x41da10] // 8b4114 | mov eax, dword ptr [ecx + 0x14] // eb67 | jmp 0x69 // 8b4118 | mov eax, dword ptr [ecx + 0x18] $sequence_6 = { c705????????68405100 c705????????1c405100 c705????????55405100 c705????????be3f5100 a3???????? c705????????ea485100 c705????????da3f5100 } // n = 7, score = 100 // c705????????68405100 | // c705????????1c405100 | // c705????????55405100 | // c705????????be3f5100 | // a3???????? | // c705????????ea485100 | // c705????????da3f5100 | $sequence_7 = { e8???????? ff75d0 8bcb e8???????? 8d4dc8 c645fc00 c745c868025300 } // n = 7, score = 100 // e8???????? | // ff75d0 | push dword ptr [ebp - 0x30] // 8bcb | mov ecx, ebx // e8???????? | // 8d4dc8 | lea ecx, [ebp - 0x38] // c645fc00 | mov byte ptr [ebp - 4], 0 // c745c868025300 | mov dword ptr [ebp - 0x38], 0x530268 $sequence_8 = { 8bce e8???????? 834dfcff 8d8d3cffffff c7853cffffff74865300 e8???????? } // n = 6, score = 100 // 8bce | mov ecx, esi // e8???????? | // 834dfcff | or dword ptr [ebp - 4], 0xffffffff // 8d8d3cffffff | lea ecx, [ebp - 0xc4] // c7853cffffff74865300 | mov dword ptr [ebp - 0xc4], 0x538674 // e8???????? | $sequence_9 = { 8d8df8fcffff c785f8fcffff90825300 e8???????? 83bd2cfdffff00 } // n = 4, score = 100 // 8d8df8fcffff | lea ecx, [ebp - 0x308] // c785f8fcffff90825300 | mov dword ptr [ebp - 0x308], 0x538290 // e8???????? | // 83bd2cfdffff00 | cmp dword ptr [ebp - 0x2d4], 0 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