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-09ElasticSalim Bitam
BUGHATCH Malware Analysis
BUGHATCH
Yara Rules
[TLP:WHITE] win_bughatch_auto (20260504 | Detects win.bughatch.)
rule win_bughatch_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        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 = "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 = { 83c408 8945f8 b801000000 85c0 0f84e2000000 8d4de8 }
            // n = 6, score = 100
            //   83c408               | add                 esp, 8
            //   8945f8               | mov                 dword ptr [ebp - 8], eax
            //   b801000000           | mov                 eax, 1
            //   85c0                 | test                eax, eax
            //   0f84e2000000         | je                  0xe8
            //   8d4de8               | lea                 ecx, [ebp - 0x18]

        $sequence_1 = { eb20 8b45f4 50 e8???????? }
            // n = 4, score = 100
            //   eb20                 | jmp                 0x22
            //   8b45f4               | mov                 eax, dword ptr [ebp - 0xc]
            //   50                   | push                eax
            //   e8????????           |                     

        $sequence_2 = { e9???????? 837dfc05 740a 837dfc06 0f85db000000 6804010000 }
            // n = 6, score = 100
            //   e9????????           |                     
            //   837dfc05             | cmp                 dword ptr [ebp - 4], 5
            //   740a                 | je                  0xc
            //   837dfc06             | cmp                 dword ptr [ebp - 4], 6
            //   0f85db000000         | jne                 0xe1
            //   6804010000           | push                0x104

        $sequence_3 = { 6bc800 8b550c 0fbe040a 85c0 7423 }
            // n = 5, score = 100
            //   6bc800               | imul                ecx, eax, 0
            //   8b550c               | mov                 edx, dword ptr [ebp + 0xc]
            //   0fbe040a             | movsx               eax, byte ptr [edx + ecx]
            //   85c0                 | test                eax, eax
            //   7423                 | je                  0x25

        $sequence_4 = { 55 8bec 83ec14 c745f0c0010000 8b45f0 50 e8???????? }
            // n = 7, score = 100
            //   55                   | push                ebp
            //   8bec                 | mov                 ebp, esp
            //   83ec14               | sub                 esp, 0x14
            //   c745f0c0010000       | mov                 dword ptr [ebp - 0x10], 0x1c0
            //   8b45f0               | mov                 eax, dword ptr [ebp - 0x10]
            //   50                   | push                eax
            //   e8????????           |                     

        $sequence_5 = { 8b5508 837a1000 7424 8b4508 }
            // n = 4, score = 100
            //   8b5508               | mov                 edx, dword ptr [ebp + 8]
            //   837a1000             | cmp                 dword ptr [edx + 0x10], 0
            //   7424                 | je                  0x26
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]

        $sequence_6 = { 0fb75116 81e200200000 7407 b805000000 eb28 8b45fc 0fb7485c }
            // n = 7, score = 100
            //   0fb75116             | movzx               edx, word ptr [ecx + 0x16]
            //   81e200200000         | and                 edx, 0x2000
            //   7407                 | je                  9
            //   b805000000           | mov                 eax, 5
            //   eb28                 | jmp                 0x2a
            //   8b45fc               | mov                 eax, dword ptr [ebp - 4]
            //   0fb7485c             | movzx               ecx, word ptr [eax + 0x5c]

        $sequence_7 = { 7311 8b55f4 0355f8 0fb602 0345fc 8945fc }
            // n = 6, score = 100
            //   7311                 | jae                 0x13
            //   8b55f4               | mov                 edx, dword ptr [ebp - 0xc]
            //   0355f8               | add                 edx, dword ptr [ebp - 8]
            //   0fb602               | movzx               eax, byte ptr [edx]
            //   0345fc               | add                 eax, dword ptr [ebp - 4]
            //   8945fc               | mov                 dword ptr [ebp - 4], eax

        $sequence_8 = { 7528 6a00 6a00 6a13 6a01 e8???????? 83c410 }
            // n = 7, score = 100
            //   7528                 | jne                 0x2a
            //   6a00                 | push                0
            //   6a00                 | push                0
            //   6a13                 | push                0x13
            //   6a01                 | push                1
            //   e8????????           |                     
            //   83c410               | add                 esp, 0x10

        $sequence_9 = { e9???????? 8d55f0 52 8b45e0 50 8b4de4 }
            // n = 6, score = 100
            //   e9????????           |                     
            //   8d55f0               | lea                 edx, [ebp - 0x10]
            //   52                   | push                edx
            //   8b45e0               | mov                 eax, dword ptr [ebp - 0x20]
            //   50                   | push                eax
            //   8b4de4               | mov                 ecx, dword ptr [ebp - 0x1c]

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