Unit 42 observed threat actor Tropical Scorpius using this RAT in operations where also Cuba ransomware was deployed.
rule win_romcom_rat_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-05-04" version = "1" description = "Detects win.romcom_rat." 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.romcom_rat" 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 = { 4c8bf2 4d8903 488907 4d8b13 4d3bd1 0f84ec000000 483b442440 } // n = 7, score = 100 // 4c8bf2 | mov ecx, dword ptr [eax + 0x8be70] // 4d8903 | inc ebx // 488907 | mov ecx, dword ptr [esp + 0x48] // 4d8b13 | dec eax // 4d3bd1 | lea edx, [0x12b01] // 0f84ec000000 | mov eax, esi // 483b442440 | dec eax $sequence_1 = { 83f801 0f8440ffffff 488b8da0020000 4833cc e8???????? 4c8d9c24b0030000 498b5b38 } // n = 7, score = 100 // 83f801 | mov eax, 0x104 // 0f8440ffffff | dec eax // 488b8da0020000 | mov edx, ebx // 4833cc | xor ecx, ecx // e8???????? | // 4c8d9c24b0030000 | dec eax // 498b5b38 | lea ebx, [0x4cadb] $sequence_2 = { 48895c2408 57 4883ec20 488bd9 488d05341b0600 488901 } // n = 6, score = 100 // 48895c2408 | lea ecx, [esp + 0x20] // 57 | jne 0x1d0 // 4883ec20 | dec eax // 488bd9 | lea edx, [eax + 0x30] // 488d05341b0600 | jmp 0x1d0 // 488901 | dec eax $sequence_3 = { 0f100d???????? 0f114810 488d8de0100000 492bcf 4903cf 443821 75f8 } // n = 7, score = 100 // 0f100d???????? | // 0f114810 | dec eax // 488d8de0100000 | mov edi, ecx // 492bcf | dec eax // 4903cf | lea edx, [0x14f5b] // 443821 | dec eax // 75f8 | sub esp, 0xb70 $sequence_4 = { 0fb6b48213d80600 8bd9 48c1e302 33d2 4c8bc3 8d040e 488d8d44030000 } // n = 7, score = 100 // 0fb6b48213d80600 | test eax, eax // 8bd9 | je 0xe86 // 48c1e302 | dec eax // 33d2 | mov ecx, dword ptr [ebp + 0x7f] // 4c8bc3 | dec esp // 8d040e | lea eax, [esi + 0x18] // 488d8d44030000 | dec eax $sequence_5 = { 41b801000000 8bd0 498bce e8???????? 4883f801 7405 418bc4 } // n = 7, score = 100 // 41b801000000 | test eax, eax // 8bd0 | je 0xa6d // 498bce | dec esp // e8???????? | // 4883f801 | mov edi, dword ptr [ebp - 0x51] // 7405 | xor edi, edi // 418bc4 | dec eax $sequence_6 = { 8a4118 c3 4053 55 56 57 } // n = 6, score = 100 // 8a4118 | dec eax // c3 | sub esp, 0x20 // 4053 | dec eax // 55 | mov ebp, dword ptr [ecx + 0x10] // 56 | dec eax // 57 | mov ebx, 0xffffffff $sequence_7 = { 4883ec20 488d05af930500 488bf9 488901 8bda 488b4918 e8???????? } // n = 7, score = 100 // 4883ec20 | lea edx, [esp + 0x20] // 488d05af930500 | movdqu xmmword ptr [esp + 0x20], xmm0 // 488bf9 | dec eax // 488901 | lea eax, [0x66c15] // 8bda | dec eax // 488b4918 | mov dword ptr [ebx], eax // e8???????? | $sequence_8 = { 4c63c0 4c8d0d4ddb0400 4c8d1df6050500 498bd0 418d4802 83f901 761b } // n = 7, score = 100 // 4c63c0 | inc ecx // 4c8d0d4ddb0400 | mov edx, dword ptr [ecx + 0x2c] // 4c8d1df6050500 | test eax, eax // 498bd0 | jne 0x1f30 // 418d4802 | dec eax // 83f901 | mov ecx, dword ptr [esp + 0x20] // 761b | nop $sequence_9 = { 458802 49ffc2 4883ee01 0f8574ffffff 418b7e10 458b8ea8000000 448bc7 } // n = 7, score = 100 // 458802 | dec eax // 49ffc2 | sub esp, 0x20 // 4883ee01 | jmp 0x1156 // 0f8574ffffff | dec eax // 418b7e10 | mov eax, dword ptr [ebx] // 458b8ea8000000 | dec eax // 448bc7 | lea ecx, [0x424bd] condition: 7 of them and filesize < 1211392 }
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