SYMBOLCOMMON_NAMEaka. SYNONYMS
win.bughatch (Back to overview)

BUGHATCH

VTCollection    

According to Elastic, BUGHATCH is an in-memory implant loaded by an obfuscated PowerShell script that decodes and executes an embedded shellcode blob in its allocated memory space using common Windows APIs (VirtualAlloc, CreateThread, WaitForSingleObject).

References
2022-09-09 ⋅ Elastic ⋅ Salim Bitam
BUGHATCH Malware Analysis
BUGHATCH
Yara Rules
[TLP:WHITE] win_bughatch_auto (20260917 | Detects win.bughatch.)
rule win_bughatch_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.bughatch."
        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.bughatch"
        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 = { 8d95ecfaffff 52 ff15???????? 837d1000 7436 b801000000 6bc800 }
            // n = 7, score = 100
            //   8d95ecfaffff         | lea                 edx, [ebp - 0x514]
            //   52                   | push                edx
            //   ff15????????         |                     
            //   837d1000             | cmp                 dword ptr [ebp + 0x10], 0
            //   7436                 | je                  0x38
            //   b801000000           | mov                 eax, 1
            //   6bc800               | imul                ecx, eax, 0

        $sequence_1 = { 85c0 0f84e2000000 8d4de8 51 e8???????? 83c404 8d55dc }
            // n = 7, score = 100
            //   85c0                 | test                eax, eax
            //   0f84e2000000         | je                  0xe8
            //   8d4de8               | lea                 ecx, [ebp - 0x18]
            //   51                   | push                ecx
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   8d55dc               | lea                 edx, [ebp - 0x24]

        $sequence_2 = { 83c408 034508 8945e0 8b55fc 8b4220 50 8b4d08 }
            // n = 7, score = 100
            //   83c408               | add                 esp, 8
            //   034508               | add                 eax, dword ptr [ebp + 8]
            //   8945e0               | mov                 dword ptr [ebp - 0x20], eax
            //   8b55fc               | mov                 edx, dword ptr [ebp - 4]
            //   8b4220               | mov                 eax, dword ptr [edx + 0x20]
            //   50                   | push                eax
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]

        $sequence_3 = { 83c40c c745ac44000000 6804010000 8d8da0fcffff 51 6a00 }
            // n = 6, score = 100
            //   83c40c               | add                 esp, 0xc
            //   c745ac44000000       | mov                 dword ptr [ebp - 0x54], 0x44
            //   6804010000           | push                0x104
            //   8d8da0fcffff         | lea                 ecx, [ebp - 0x360]
            //   51                   | push                ecx
            //   6a00                 | push                0

        $sequence_4 = { 8b4df4 51 e8???????? 85c0 7469 }
            // n = 5, score = 100
            //   8b4df4               | mov                 ecx, dword ptr [ebp - 0xc]
            //   51                   | push                ecx
            //   e8????????           |                     
            //   85c0                 | test                eax, eax
            //   7469                 | je                  0x6b

        $sequence_5 = { 8b4508 8b08 890a 837df800 7409 c745c800000000 }
            // n = 6, score = 100
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   8b08                 | mov                 ecx, dword ptr [eax]
            //   890a                 | mov                 dword ptr [edx], ecx
            //   837df800             | cmp                 dword ptr [ebp - 8], 0
            //   7409                 | je                  0xb
            //   c745c800000000       | mov                 dword ptr [ebp - 0x38], 0

        $sequence_6 = { 50 8d8decfeffff 51 68???????? 8d95e8fdffff 52 ff15???????? }
            // n = 7, score = 100
            //   50                   | push                eax
            //   8d8decfeffff         | lea                 ecx, [ebp - 0x114]
            //   51                   | push                ecx
            //   68????????           |                     
            //   8d95e8fdffff         | lea                 edx, [ebp - 0x218]
            //   52                   | push                edx
            //   ff15????????         |                     

        $sequence_7 = { 8d441008 8b4d08 0fb75104 03c2 8b4d08 }
            // n = 5, score = 100
            //   8d441008             | lea                 eax, [eax + edx + 8]
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]
            //   0fb75104             | movzx               edx, word ptr [ecx + 4]
            //   03c2                 | add                 eax, edx
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]

        $sequence_8 = { 6b45f818 8b4df4 8b540104 52 ff15???????? }
            // n = 5, score = 100
            //   6b45f818             | imul                eax, dword ptr [ebp - 8], 0x18
            //   8b4df4               | mov                 ecx, dword ptr [ebp - 0xc]
            //   8b540104             | mov                 edx, dword ptr [ecx + eax + 4]
            //   52                   | push                edx
            //   ff15????????         |                     

        $sequence_9 = { 8b4d0c 51 68???????? 6a01 e8???????? 83c40c eb56 }
            // n = 7, score = 100
            //   8b4d0c               | mov                 ecx, dword ptr [ebp + 0xc]
            //   51                   | push                ecx
            //   68????????           |                     
            //   6a01                 | push                1
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   eb56                 | jmp                 0x58

    condition:
        7 of them and filesize < 75776
}
Download all Yara Rules