SYMBOLCOMMON_NAMEaka. SYNONYMS
win.moontag (Back to overview)

MOONTAG

VTCollection    

The malware, potentially named "MOON_TAG" by its developer as indicated by the strings within, is derived from code shared in a Google Group (https://groups.google.com/g/ph4nt0m/c/2J3_1XPeKD8/m/AYPoWudRcTAJ?pli=1). Each variant discovered possesses capabilities to communicate via the Microsoft Graph API. At this moment, it appears to be in development.

References
2024-08-07 ⋅ Symantec ⋅ Threat Hunter Team
Cloud Cover: How Malicious Actors Are Leveraging Cloud Services
GoGra Grager MOONTAG Ondritols TONERJAM
Yara Rules
[TLP:WHITE] win_moontag_auto (20260917 | Detects win.moontag.)
rule win_moontag_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.moontag."
        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.moontag"
        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 = { 3c2a 7506 8079012f 7405 48ffc1 }
            // n = 5, score = 200
            //   3c2a                 | mov                 eax, dword ptr [edx]
            //   7506                 | dec                 ebp
            //   8079012f             | test                eax, eax
            //   7405                 | je                  0x13
            //   48ffc1               | je                  0xc2

        $sequence_1 = { 4c8b4208 488b02 498900 4c8b02 4d85c0 7408 }
            // n = 6, score = 200
            //   4c8b4208             | ja                  0xc
            //   488b02               | dec                 eax
            //   498900               | lea                 ecx, [esp + 0x28]
            //   4c8b02               | dec                 esp
            //   4d85c0               | mov                 eax, dword ptr [edx + 8]
            //   7408                 | dec                 eax

        $sequence_2 = { 48894210 488bda 48894218 4983781810 }
            // n = 4, score = 200
            //   48894210             | dec                 eax
            //   488bda               | lea                 ecx, [esp + 0x30]
            //   48894218             | dec                 eax
            //   4983781810           | mov                 edi, ecx

        $sequence_3 = { 488d15ee000000 48891d???????? 488d4c2430 891d???????? 891d???????? }
            // n = 5, score = 200
            //   488d15ee000000       | dec                 eax
            //   48891d????????       |                     
            //   488d4c2430           | mov                 dword ptr [esp + 0x40], esi
            //   891d????????         |                     
            //   891d????????         |                     

        $sequence_4 = { ebd3 498906 48ffc7 4c897008 4c8bf0 }
            // n = 5, score = 200
            //   ebd3                 | je                  0xb
            //   498906               | dec                 eax
            //   48ffc7               | inc                 ecx
            //   4c897008             | dec                 eax
            //   4c8bf0               | lea                 edx, [0xee]

        $sequence_5 = { 0f84bc000000 4889742440 8d4b40 48897c2448 ff15???????? }
            // n = 5, score = 200
            //   0f84bc000000         | mov                 eax, dword ptr [edx]
            //   4889742440           | dec                 ecx
            //   8d4b40               | mov                 dword ptr [eax], eax
            //   48897c2448           | dec                 esp
            //   ff15????????         |                     

        $sequence_6 = { 488bf9 4885d2 0f8455020000 488b0a 4885c9 0f8449020000 }
            // n = 6, score = 200
            //   488bf9               | lea                 ecx, [ebx + 0x40]
            //   4885d2               | dec                 eax
            //   0f8455020000         | mov                 dword ptr [esp + 0x48], edi
            //   488b0a               | cmp                 al, 0x2a
            //   4885c9               | jne                 0xa
            //   0f8449020000         | cmp                 byte ptr [ecx + 1], 0x2f

        $sequence_7 = { 4803c3 4c3bc1 770a 488d4c2428 }
            // n = 4, score = 200
            //   4803c3               | dec                 eax
            //   4c3bc1               | add                 eax, ebx
            //   770a                 | dec                 esp
            //   488d4c2428           | cmp                 eax, ecx

        $sequence_8 = { 03c1 68???????? 50 ffd3 83c40c 85c0 }
            // n = 6, score = 100
            //   03c1                 | add                 eax, ecx
            //   68????????           |                     
            //   50                   | push                eax
            //   ffd3                 | call                ebx
            //   83c40c               | add                 esp, 0xc
            //   85c0                 | test                eax, eax

        $sequence_9 = { 03c1 8b0d???????? a3???????? 3bc1 }
            // n = 4, score = 100
            //   03c1                 | add                 eax, ecx
            //   8b0d????????         |                     
            //   a3????????           |                     
            //   3bc1                 | cmp                 eax, ecx

        $sequence_10 = { 03c2 3bf8 0f838f010000 8b0d???????? }
            // n = 4, score = 100
            //   03c2                 | add                 eax, edx
            //   3bf8                 | cmp                 edi, eax
            //   0f838f010000         | jae                 0x195
            //   8b0d????????         |                     

        $sequence_11 = { 033d???????? 837d8400 0f4e3d???????? 83c734 }
            // n = 4, score = 100
            //   033d????????         |                     
            //   837d8400             | cmp                 dword ptr [ebp - 0x7c], 0
            //   0f4e3d????????       |                     
            //   83c734               | add                 edi, 0x34

        $sequence_12 = { 014e08 b801000000 5f 5e 5b 8b4c2458 }
            // n = 6, score = 100
            //   014e08               | add                 dword ptr [esi + 8], ecx
            //   b801000000           | mov                 eax, 1
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi
            //   5b                   | pop                 ebx
            //   8b4c2458             | mov                 ecx, dword ptr [esp + 0x58]

        $sequence_13 = { 03421c 03c6 3bc8 760c }
            // n = 4, score = 100
            //   03421c               | add                 eax, dword ptr [edx + 0x1c]
            //   03c6                 | add                 eax, esi
            //   3bc8                 | cmp                 ecx, eax
            //   760c                 | jbe                 0xe

        $sequence_14 = { 03c1 50 898570ecffff 8d8574ecffff }
            // n = 4, score = 100
            //   03c1                 | add                 eax, ecx
            //   50                   | push                eax
            //   898570ecffff         | mov                 dword ptr [ebp - 0x1390], eax
            //   8d8574ecffff         | lea                 eax, [ebp - 0x138c]

        $sequence_15 = { 03c1 3bf8 0f42f8 33c9 8bc7 83c001 56 }
            // n = 7, score = 100
            //   03c1                 | add                 eax, ecx
            //   3bf8                 | cmp                 edi, eax
            //   0f42f8               | cmovb               edi, eax
            //   33c9                 | xor                 ecx, ecx
            //   8bc7                 | mov                 eax, edi
            //   83c001               | add                 eax, 1
            //   56                   | push                esi

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