SYMBOLCOMMON_NAMEaka. SYNONYMS
win.leash (Back to overview)

Leash

Actor(s): Magic Hound

VTCollection    

There is no description at this point.

References
2017-02-15 ⋅ Palo Alto Networks Unit 42 ⋅ Bryan Lee, Robert Falcone
Magic Hound Campaign Attacks Saudi Targets
Leash MPKBot pupy Rocket Kitten
Yara Rules
[TLP:WHITE] win_leash_auto (20260917 | Detects win.leash.)
rule win_leash_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.leash."
        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.leash"
        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 = { 8dbda0feffff 83c9ff 33c0 f2ae f7d1 49 88940da0feffff }
            // n = 7, score = 200
            //   8dbda0feffff         | lea                 edi, [ebp - 0x160]
            //   83c9ff               | or                  ecx, 0xffffffff
            //   33c0                 | xor                 eax, eax
            //   f2ae                 | repne scasb         al, byte ptr es:[edi]
            //   f7d1                 | not                 ecx
            //   49                   | dec                 ecx
            //   88940da0feffff       | mov                 byte ptr [ebp + ecx - 0x160], dl

        $sequence_1 = { 50 64892500000000 51 b850480000 e8???????? }
            // n = 5, score = 200
            //   50                   | push                eax
            //   64892500000000       | mov                 dword ptr fs:[0], esp
            //   51                   | push                ecx
            //   b850480000           | mov                 eax, 0x4850
            //   e8????????           |                     

        $sequence_2 = { 33c0 8d959cfdffff f2ae f7d1 2bf9 8bc1 8bf7 }
            // n = 7, score = 200
            //   33c0                 | xor                 eax, eax
            //   8d959cfdffff         | lea                 edx, [ebp - 0x264]
            //   f2ae                 | repne scasb         al, byte ptr es:[edi]
            //   f7d1                 | not                 ecx
            //   2bf9                 | sub                 edi, ecx
            //   8bc1                 | mov                 eax, ecx
            //   8bf7                 | mov                 esi, edi

        $sequence_3 = { 0f8758040000 ff2485402c4000 68???????? 55 e8???????? 68???????? }
            // n = 6, score = 200
            //   0f8758040000         | ja                  0x45e
            //   ff2485402c4000       | jmp                 dword ptr [eax*4 + 0x402c40]
            //   68????????           |                     
            //   55                   | push                ebp
            //   e8????????           |                     
            //   68????????           |                     

        $sequence_4 = { 83c41c f2ae f7d1 2bf9 8bd1 8bf7 8bfd }
            // n = 7, score = 200
            //   83c41c               | add                 esp, 0x1c
            //   f2ae                 | repne scasb         al, byte ptr es:[edi]
            //   f7d1                 | not                 ecx
            //   2bf9                 | sub                 edi, ecx
            //   8bd1                 | mov                 edx, ecx
            //   8bf7                 | mov                 esi, edi
            //   8bfd                 | mov                 edi, ebp

        $sequence_5 = { c745e0ffffffff e8???????? 8b4d08 56 56 6a01 6a01 }
            // n = 7, score = 200
            //   c745e0ffffffff       | mov                 dword ptr [ebp - 0x20], 0xffffffff
            //   e8????????           |                     
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]
            //   56                   | push                esi
            //   56                   | push                esi
            //   6a01                 | push                1
            //   6a01                 | push                1

        $sequence_6 = { 68???????? 50 c645fc0a e8???????? 83c40c c645fc06 }
            // n = 6, score = 200
            //   68????????           |                     
            //   50                   | push                eax
            //   c645fc0a             | mov                 byte ptr [ebp - 4], 0xa
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   c645fc06             | mov                 byte ptr [ebp - 4], 6

        $sequence_7 = { 68???????? e8???????? 8d842438160000 50 6a10 }
            // n = 5, score = 200
            //   68????????           |                     
            //   e8????????           |                     
            //   8d842438160000       | lea                 eax, [esp + 0x1638]
            //   50                   | push                eax
            //   6a10                 | push                0x10

        $sequence_8 = { 8d4de4 c645fc01 e8???????? eb4a 8b4508 bf???????? 83c9ff }
            // n = 7, score = 200
            //   8d4de4               | lea                 ecx, [ebp - 0x1c]
            //   c645fc01             | mov                 byte ptr [ebp - 4], 1
            //   e8????????           |                     
            //   eb4a                 | jmp                 0x4c
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   bf????????           |                     
            //   83c9ff               | or                  ecx, 0xffffffff

        $sequence_9 = { 885dfc e8???????? 8b0f 8b10 }
            // n = 4, score = 200
            //   885dfc               | mov                 byte ptr [ebp - 4], bl
            //   e8????????           |                     
            //   8b0f                 | mov                 ecx, dword ptr [edi]
            //   8b10                 | mov                 edx, dword ptr [eax]

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