According to Volexity, a loader observed to be used with multiple malware families, among them LIGHTSPY.
rule win_bh_a006_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-09-17" version = "1" description = "Detects win.bh_a006." 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.bh_a006" 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 = { 03de eb09 8bde 2bda 2bd8 83eb05 85c9 } // n = 7, score = 100 // 03de | add ebx, esi // eb09 | jmp 0xb // 8bde | mov ebx, esi // 2bda | sub ebx, edx // 2bd8 | sub ebx, eax // 83eb05 | sub ebx, 5 // 85c9 | test ecx, ecx $sequence_1 = { 8d4f01 030e 3b0e 7e72 } // n = 4, score = 100 // 8d4f01 | lea ecx, [edi + 1] // 030e | add ecx, dword ptr [esi] // 3b0e | cmp ecx, dword ptr [esi] // 7e72 | jle 0x74 $sequence_2 = { 8bd8 663938 75de 8b7d08 2bf7 d1fe 8bc6 } // n = 7, score = 100 // 8bd8 | mov ebx, eax // 663938 | cmp word ptr [eax], di // 75de | jne 0xffffffe0 // 8b7d08 | mov edi, dword ptr [ebp + 8] // 2bf7 | sub esi, edi // d1fe | sar esi, 1 // 8bc6 | mov eax, esi $sequence_3 = { 6689b5dcf9ffff 50 8d85def9ffff 680b020000 50 } // n = 5, score = 100 // 6689b5dcf9ffff | mov word ptr [ebp - 0x624], si // 50 | push eax // 8d85def9ffff | lea eax, [ebp - 0x622] // 680b020000 | push 0x20b // 50 | push eax $sequence_4 = { 6a01 68050000c0 ff15???????? 8b7b08 85ff 7417 } // n = 6, score = 100 // 6a01 | push 1 // 68050000c0 | push 0xc0000005 // ff15???????? | // 8b7b08 | mov edi, dword ptr [ebx + 8] // 85ff | test edi, edi // 7417 | je 0x19 $sequence_5 = { 50 ff7514 8b450c ff7510 83c0f2 } // n = 5, score = 100 // 50 | push eax // ff7514 | push dword ptr [ebp + 0x14] // 8b450c | mov eax, dword ptr [ebp + 0xc] // ff7510 | push dword ptr [ebp + 0x10] // 83c0f2 | add eax, -0xe $sequence_6 = { 7d71 8b5514 81ff00000001 7318 3b5d0c } // n = 5, score = 100 // 7d71 | jge 0x73 // 8b5514 | mov edx, dword ptr [ebp + 0x14] // 81ff00000001 | cmp edi, 0x1000000 // 7318 | jae 0x1a // 3b5d0c | cmp ebx, dword ptr [ebp + 0xc] $sequence_7 = { 59 59 85c0 0f859c040000 } // n = 4, score = 100 // 59 | pop ecx // 59 | pop ecx // 85c0 | test eax, eax // 0f859c040000 | jne 0x4a2 condition: 7 of them and filesize < 430080 }
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