SYMBOLCOMMON_NAMEaka. SYNONYMS
win.miya_rat (Back to overview)

MiyaRAT

Actor(s): HAZY TIGER

VTCollection    

According to Proofpoint, MiyaRAT is a remote access trojan (RAT) written in C++ that uses sockets for communications and has standard RAT functionality. It is possibly authored by the same developer(s) as WmRAT.

References
2025-06-04 ⋅ Threatray ⋅ Abdallah Elshinbary, Jonas Wagner, Konstantin Klinger, Nick Attfield
The Bitter End: Unraveling Eight Years of Espionage Antics – Part Two
AlmondRAT AlmondRAT Artra Downloader BDarkRAT Havoc KiwiStealer KugelBlitz MiyaRAT ORPCBackdoor WmRAT ZxxZ
2024-12-17 ⋅ Proofpoint ⋅ David Galazin, Konstantin Klinger, Nick Attfield, Pim Trouerbach
Hidden in Plain Sight: TA397’s New Attack Chain Delivers Espionage RATs
MiyaRAT WmRAT HAZY TIGER
2024-10-12 ⋅ Qianxin ⋅ Qianxin Threat Intelligence Center
Bitter Group Launches New Trojan Miyarat, Domestic Users Become Primary Ttargets
MiyaRAT
Yara Rules
[TLP:WHITE] win_miya_rat_auto (20260917 | Detects win.miya_rat.)
rule win_miya_rat_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.miya_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.miya_rat"
        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 = { 0fbf45fc c9 c3 8bff 55 8bec 83ec18 }
            // n = 7, score = 200
            //   0fbf45fc             | lea                 eax, [ebp - 1]
            //   c9                   | inc                 ecx
            //   c3                   | mov                 eax, dword ptr [esp + eax*4 + 0x73df8]
            //   8bff                 | test                eax, eax
            //   55                   | add                 eax, eax
            //   8bec                 | inc                 esp
            //   83ec18               | sub                 ebp, eax

        $sequence_1 = { 6a00 6a06 6a01 6a02 ff15???????? a3???????? }
            // n = 6, score = 200
            //   6a00                 | je                  0xaa
            //   6a06                 | inc                 ecx
            //   6a01                 | lea                 eax, [ebp - 1]
            //   6a02                 | inc                 ecx
            //   ff15????????         |                     
            //   a3????????           |                     

        $sequence_2 = { 68a00f0000 ff15???????? 6a00 6a00 6a00 6a06 6a01 }
            // n = 7, score = 200
            //   68a00f0000           | inc                 esp
            //   ff15????????         |                     
            //   6a00                 | sub                 ebp, eax
            //   6a00                 | je                  0xaa
            //   6a00                 | inc                 ecx
            //   6a06                 | lea                 eax, [ebp - 1]
            //   6a01                 | inc                 ecx

        $sequence_3 = { 833d????????00 0f84fa0f0000 83ec08 0fae5c2404 }
            // n = 4, score = 200
            //   833d????????00       |                     
            //   0f84fa0f0000         | je                  0xc6
            //   83ec08               | inc                 ecx
            //   0fae5c2404           | lea                 eax, [ebp - 1]

        $sequence_4 = { 750f d93c24 668b0424 6683e07f 6683f87f 8d642408 0f85c90f0000 }
            // n = 7, score = 200
            //   750f                 | push                0
            //   d93c24               | push                0
            //   668b0424             | push                6
            //   6683e07f             | push                1
            //   6683f87f             | pop                 ebp
            //   8d642408             | push                ebp
            //   0f85c90f0000         | mov                 ebp, esp

        $sequence_5 = { 0f85c90f0000 eb00 f30f7e442404 660f2815???????? 660f28c8 660f28f8 660f73d034 }
            // n = 7, score = 200
            //   0f85c90f0000         | mov                 eax, dword ptr [esp + eax*4 + 0x73df8]
            //   eb00                 | test                eax, eax
            //   f30f7e442404         | je                  0xa0
            //   660f2815????????     |                     
            //   660f28c8             | add                 eax, eax
            //   660f28f8             | inc                 esp
            //   660f73d034           | sub                 ebp, eax

        $sequence_6 = { 5d e9???????? 55 8bec 8b4508 8b4d0c 8b5510 }
            // n = 7, score = 200
            //   5d                   | mov                 eax, dword ptr [esp + eax*4 + 0x73df8]
            //   e9????????           |                     
            //   55                   | add                 eax, eax
            //   8bec                 | inc                 esp
            //   8b4508               | sub                 ebp, eax
            //   8b4d0c               | je                  0xaa
            //   8b5510               | inc                 ecx

        $sequence_7 = { 837c240800 75be ddd8 db2d???????? b802000000 833d????????00 0f85e00c0000 }
            // n = 7, score = 200
            //   837c240800           | mov                 edi, edi
            //   75be                 | push                ebp
            //   ddd8                 | mov                 ebp, esp
            //   db2d????????         |                     
            //   b802000000           | sub                 esp, 0x18
            //   833d????????00       |                     
            //   0f85e00c0000         | push                0

        $sequence_8 = { 03c0 2bc8 0f84adfdffff 8d41ff 8b8482f83d0700 }
            // n = 5, score = 100
            //   03c0                 | cmp                 byte ptr [eax + esi*8 + 0x38], 0
            //   2bc8                 | jge                 0xffffffa4
            //   0f84adfdffff         | cmp                 byte ptr [esp + 0xa0], 2
            //   8d41ff               | add                 eax, eax
            //   8b8482f83d0700       | sub                 ecx, eax

        $sequence_9 = { 03c0 442be0 7443 418d4424ff 8b8483f83d0700 }
            // n = 5, score = 100
            //   03c0                 | sub                 ecx, eax
            //   442be0               | je                  0xfffffdb5
            //   7443                 | lea                 eax, [ecx - 1]
            //   418d4424ff           | mov                 eax, dword ptr [edx + eax*4 + 0x73df8]
            //   8b8483f83d0700       | test                eax, eax

        $sequence_10 = { 03c0 2bc8 0f8456f9ffff 8d41ff 418b8480f83d0700 }
            // n = 5, score = 100
            //   03c0                 | add                 edi, dword ptr [esp + 0xb8]
            //   2bc8                 | dec                 eax
            //   0f8456f9ffff         | mov                 edx, dword ptr [esp + 0x40]
            //   8d41ff               | dec                 eax
            //   418b8480f83d0700     | lea                 ebp, [0x3085c]

        $sequence_11 = { 03c0 442bc0 0f8423010000 418d40ff 418b8484f83d0700 }
            // n = 5, score = 100
            //   03c0                 | je                  0xfffff95e
            //   442bc0               | lea                 eax, [ecx - 1]
            //   0f8423010000         | inc                 ecx
            //   418d40ff             | mov                 eax, dword ptr [eax + eax*4 + 0x73df8]
            //   418b8484f83d0700     | test                eax, eax

        $sequence_12 = { 03c0 442be8 0f84a1000000 418d45ff 418b8484f83d0700 }
            // n = 5, score = 100
            //   03c0                 | inc                 ecx
            //   442be8               | lea                 eax, [eax - 1]
            //   0f84a1000000         | inc                 ecx
            //   418d45ff             | mov                 eax, dword ptr [esp + eax*4 + 0x73df8]
            //   418b8484f83d0700     | test                eax, eax

        $sequence_13 = { 03bc24b8000000 488b542440 488d2d5c080300 488b44d500 }
            // n = 4, score = 100
            //   03bc24b8000000       | je                  0x105
            //   488b542440           | dec                 eax
            //   488d2d5c080300       | lea                 ecx, [esp + 0x170]
            //   488b44d500           | dec                 eax

        $sequence_14 = { 0308 3bcf 0f84ff000000 488d8c2470010000 }
            // n = 4, score = 100
            //   0308                 | add                 ecx, dword ptr [eax]
            //   3bcf                 | cmp                 ecx, edi
            //   0f84ff000000         | je                  0x105
            //   488d8c2470010000     | dec                 eax

        $sequence_15 = { 03c0 442be8 0f84bd000000 418d45ff 488d1d6debfaff }
            // n = 5, score = 100
            //   03c0                 | je                  0x48
            //   442be8               | inc                 ecx
            //   0f84bd000000         | lea                 eax, [esp - 1]
            //   418d45ff             | mov                 eax, dword ptr [ebx + eax*4 + 0x73df8]
            //   488d1d6debfaff       | add                 eax, eax

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