SYMBOLCOMMON_NAMEaka. SYNONYMS
win.magala (Back to overview)

Magala

VTCollection    

There is no description at this point.

References
2017-07-12Kaspersky LabsSergey Yunakovsky
The Magala Trojan Clicker: A Hidden Advertising Threat
Magala
Yara Rules
[TLP:WHITE] win_magala_auto (20260504 | Detects win.magala.)
rule win_magala_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        version = "1"
        description = "Detects win.magala."
        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.magala"
        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 = { a1???????? 894108 a1???????? 89410c 33c0 8d8d9cfdffff c745cc00000000 }
            // n = 7, score = 200
            //   a1????????           |                     
            //   894108               | mov                 dword ptr [ecx + 8], eax
            //   a1????????           |                     
            //   89410c               | mov                 dword ptr [ecx + 0xc], eax
            //   33c0                 | xor                 eax, eax
            //   8d8d9cfdffff         | lea                 ecx, [ebp - 0x264]
            //   c745cc00000000       | mov                 dword ptr [ebp - 0x34], 0

        $sequence_1 = { 51 e8???????? 83c404 6a11 33c0 c745e800000000 68???????? }
            // n = 7, score = 200
            //   51                   | push                ecx
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   6a11                 | push                0x11
            //   33c0                 | xor                 eax, eax
            //   c745e800000000       | mov                 dword ptr [ebp - 0x18], 0
            //   68????????           |                     

        $sequence_2 = { 0f84ab000000 0f1f440000 6808020000 8d85f4fdffff 6a00 50 e8???????? }
            // n = 7, score = 200
            //   0f84ab000000         | je                  0xb1
            //   0f1f440000           | nop                 dword ptr [eax + eax]
            //   6808020000           | push                0x208
            //   8d85f4fdffff         | lea                 eax, [ebp - 0x20c]
            //   6a00                 | push                0
            //   50                   | push                eax
            //   e8????????           |                     

        $sequence_3 = { 8b4e08 e8???????? 50 68???????? }
            // n = 4, score = 200
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   e8????????           |                     
            //   50                   | push                eax
            //   68????????           |                     

        $sequence_4 = { 6a00 8d45d4 50 ffd6 85c0 75e2 6aff }
            // n = 7, score = 200
            //   6a00                 | push                0
            //   8d45d4               | lea                 eax, [ebp - 0x2c]
            //   50                   | push                eax
            //   ffd6                 | call                esi
            //   85c0                 | test                eax, eax
            //   75e2                 | jne                 0xffffffe4
            //   6aff                 | push                -1

        $sequence_5 = { 397d9c 0f84ca000000 c645fc07 8b45c4 85c0 7406 8b08 }
            // n = 7, score = 200
            //   397d9c               | cmp                 dword ptr [ebp - 0x64], edi
            //   0f84ca000000         | je                  0xd0
            //   c645fc07             | mov                 byte ptr [ebp - 4], 7
            //   8b45c4               | mov                 eax, dword ptr [ebp - 0x3c]
            //   85c0                 | test                eax, eax
            //   7406                 | je                  8
            //   8b08                 | mov                 ecx, dword ptr [eax]

        $sequence_6 = { 8b4d0c 85c9 0f8409010000 56 33f6 }
            // n = 5, score = 200
            //   8b4d0c               | mov                 ecx, dword ptr [ebp + 0xc]
            //   85c9                 | test                ecx, ecx
            //   0f8409010000         | je                  0x10f
            //   56                   | push                esi
            //   33f6                 | xor                 esi, esi

        $sequence_7 = { e8???????? 6a07 6a1a 8d85ccfbffff 50 8d8d9cfbffff e8???????? }
            // n = 7, score = 200
            //   e8????????           |                     
            //   6a07                 | push                7
            //   6a1a                 | push                0x1a
            //   8d85ccfbffff         | lea                 eax, [ebp - 0x434]
            //   50                   | push                eax
            //   8d8d9cfbffff         | lea                 ecx, [ebp - 0x464]
            //   e8????????           |                     

        $sequence_8 = { c645fc03 50 8d4db0 e8???????? 8d4dd4 c645fc02 }
            // n = 6, score = 200
            //   c645fc03             | mov                 byte ptr [ebp - 4], 3
            //   50                   | push                eax
            //   8d4db0               | lea                 ecx, [ebp - 0x50]
            //   e8????????           |                     
            //   8d4dd4               | lea                 ecx, [ebp - 0x2c]
            //   c645fc02             | mov                 byte ptr [ebp - 4], 2

        $sequence_9 = { 7906 c70700000000 85f6 7406 8b06 }
            // n = 5, score = 200
            //   7906                 | jns                 8
            //   c70700000000         | mov                 dword ptr [edi], 0
            //   85f6                 | test                esi, esi
            //   7406                 | je                  8
            //   8b06                 | mov                 eax, dword ptr [esi]

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