SYMBOLCOMMON_NAMEaka. SYNONYMS
win.maggie (Back to overview)

Maggie

VTCollection    

According to DCSO, this malware is written as a Extended Stored Procedure for a MSSQL server. The backdoor has capabilities to bruteforce logins to other MSSQL servers, adding a special hardcoded backdoor user in the case of successfully bruteforcing admin logins.

References
2022-10-12SentinelOneAmitai Ben Shushan Ehrlich, Joey Chen
WIP19 Espionage | New Chinese APT Targets IT Service Providers and Telcos With Signed Malware
Maggie ScreenCap WIP19
2022-10-11Medium (@DCSO_CyTec)Axel Wauer, Denis Szadkowski, Johann Aydinbas
Tracking down Maggie
Maggie
2022-10-04Medium (@DCSO_CyTec)Axel Wauer, Johann Aydinbas
MSSQL, meet Maggie
Maggie
Yara Rules
[TLP:WHITE] win_maggie_auto (20260504 | Detects win.maggie.)
rule win_maggie_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        version = "1"
        description = "Detects win.maggie."
        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.maggie"
        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 = { ff15???????? 83f8ff 750f ff15???????? 2d33270000 f7d8 1bc0 }
            // n = 7, score = 300
            //   ff15????????         |                     
            //   83f8ff               | mov                 dword ptr [esp + 0xf9], eax
            //   750f                 | dec                 eax
            //   ff15????????         |                     
            //   2d33270000           | mov                 dword ptr [esp + 0xc9], eax
            //   f7d8                 | dec                 eax
            //   1bc0                 | mov                 dword ptr [esp + 0xd1], eax

        $sequence_1 = { ff15???????? 83f8ff 750f ff15???????? 2d33270000 }
            // n = 5, score = 300
            //   ff15????????         |                     
            //   83f8ff               | je                  0x18f9
            //   750f                 | cmp                 dword ptr [ebp + 0xc], 0
            //   ff15????????         |                     
            //   2d33270000           | je                  0x18f9

        $sequence_2 = { 83f8ff 750f ff15???????? 2d33270000 }
            // n = 4, score = 300
            //   83f8ff               | dec                 ecx
            //   750f                 | mov                 dword ptr [ebx - 0x70], edi
            //   ff15????????         |                     
            //   2d33270000           | inc                 esp

        $sequence_3 = { ff15???????? e8???????? 84c0 74ec e8???????? e8???????? }
            // n = 6, score = 300
            //   ff15????????         |                     
            //   e8????????           |                     
            //   84c0                 | dec                 eax
            //   74ec                 | mov                 dword ptr [esp + 0x20], eax
            //   e8????????           |                     
            //   e8????????           |                     

        $sequence_4 = { 7511 ff15???????? 85c0 7407 33c0 }
            // n = 5, score = 300
            //   7511                 | dec                 eax
            //   ff15????????         |                     
            //   85c0                 | mov                 dword ptr [esp + 0x240], eax
            //   7407                 | dec                 eax
            //   33c0                 | mov                 esi, ecx

        $sequence_5 = { ff15???????? e8???????? 84c0 74ec e8???????? }
            // n = 5, score = 300
            //   ff15????????         |                     
            //   e8????????           |                     
            //   84c0                 | test                al, al
            //   74ec                 | je                  0x7e7
            //   e8????????           |                     

        $sequence_6 = { b8ff000000 663b05???????? 7505 e8???????? }
            // n = 4, score = 300
            //   b8ff000000           | add                 esp, 0x20
            //   663b05????????       |                     
            //   7505                 | jb                  0x1e3a
            //   e8????????           |                     

        $sequence_7 = { 663b05???????? 7505 e8???????? e8???????? }
            // n = 4, score = 300
            //   663b05????????       |                     
            //   7505                 | dec                 ebp
            //   e8????????           |                     
            //   e8????????           |                     

        $sequence_8 = { 750f ff15???????? 2d33270000 f7d8 }
            // n = 4, score = 300
            //   750f                 | dec                 eax
            //   ff15????????         |                     
            //   2d33270000           | mov                 ecx, eax
            //   f7d8                 | dec                 ecx

        $sequence_9 = { 663b05???????? 7505 e8???????? e8???????? 84c0 }
            // n = 5, score = 300
            //   663b05????????       |                     
            //   7505                 | cmp                 ecx, 1
            //   e8????????           |                     
            //   e8????????           |                     
            //   84c0                 | dec                 eax

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