SYMBOLCOMMON_NAMEaka. SYNONYMS
win.maggie (Back to overview)

Maggie


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-12SentinelOneJoey Chen, Amitai Ben Shushan Ehrlich
@online{chen:20221012:wip19:672e865, author = {Joey Chen and Amitai Ben Shushan Ehrlich}, title = {{WIP19 Espionage | New Chinese APT Targets IT Service Providers and Telcos With Signed Malware}}, date = {2022-10-12}, organization = {SentinelOne}, url = {https://www.sentinelone.com/labs/wip19-espionage-new-chinese-apt-targets-it-service-providers-and-telcos-with-signed-malware/}, language = {English}, urldate = {2022-10-24} } WIP19 Espionage | New Chinese APT Targets IT Service Providers and Telcos With Signed Malware
Maggie ScreenCap
2022-10-11Medium (@DCSO_CyTec)Axel Wauer, Johann Aydinbas, Denis Szadkowski
@online{wauer:20221011:tracking:7c6c193, author = {Axel Wauer and Johann Aydinbas and Denis Szadkowski}, title = {{Tracking down Maggie}}, date = {2022-10-11}, organization = {Medium (@DCSO_CyTec)}, url = {https://medium.com/@DCSO_CyTec/tracking-down-maggie-4d889872513d}, language = {English}, urldate = {2022-10-30} } Tracking down Maggie
Maggie
2022-10-04Medium (@DCSO_CyTec)Johann Aydinbas, Axel Wauer
@online{aydinbas:20221004:mssql:df4869a, author = {Johann Aydinbas and Axel Wauer}, title = {{MSSQL, meet Maggie}}, date = {2022-10-04}, organization = {Medium (@DCSO_CyTec)}, url = {https://medium.com/@DCSO_CyTec/mssql-meet-maggie-898773df3b01}, language = {English}, urldate = {2022-10-05} } MSSQL, meet Maggie
Maggie
Yara Rules
[TLP:WHITE] win_maggie_auto (20230715 | Detects win.maggie.)
rule win_maggie_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-07-11"
        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 = "20230705"
        malpedia_hash = "42d0574f4405bd7d2b154d321d345acb18834a41"
        malpedia_version = "20230715"
        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 = { 83f8ff 750f ff15???????? 2d33270000 f7d8 }
            // n = 5, score = 300
            //   83f8ff               | dec                 eax
            //   750f                 | lea                 edx, [0x2dc34]
            //   ff15????????         |                     
            //   2d33270000           | mov                 bl, 1
            //   f7d8                 | dec                 eax

        $sequence_1 = { 83f8ff 750f ff15???????? 2d33270000 }
            // n = 4, score = 300
            //   83f8ff               | sub                 esp, 0x20
            //   750f                 | dec                 eax
            //   ff15????????         |                     
            //   2d33270000           | arpl                cx, si

        $sequence_2 = { 750a b857000000 e9???????? ff15???????? 3905???????? 740a b8dd100000 }
            // n = 7, score = 300
            //   750a                 | cmp                 dword ptr [eax + 0x14], ebx
            //   b857000000           | jne                 0x164
            //   e9????????           |                     
            //   ff15????????         |                     
            //   3905????????         |                     
            //   740a                 | mov                 dword ptr [esi + 0x14], ebx
            //   b8dd100000           | mov                 dword ptr [eax + 0x14], esi

        $sequence_3 = { ff15???????? 83f8ff 750f ff15???????? 2d33270000 f7d8 }
            // n = 6, score = 300
            //   ff15????????         |                     
            //   83f8ff               | test                eax, eax
            //   750f                 | jle                 0xceb
            //   ff15????????         |                     
            //   2d33270000           | dec                 eax
            //   f7d8                 | mov                 dword ptr [esp + 0x10], ebx

        $sequence_4 = { 750a b857000000 e9???????? ff15???????? 3905???????? 740a }
            // n = 6, score = 300
            //   750a                 | dec                 eax
            //   b857000000           | test                ecx, ecx
            //   e9????????           |                     
            //   ff15????????         |                     
            //   3905????????         |                     
            //   740a                 | je                  0x773

        $sequence_5 = { 750a b857000000 e9???????? ff15???????? 3905???????? }
            // n = 5, score = 300
            //   750a                 | lea                 edx, [0x1fc75]
            //   b857000000           | inc                 ecx
            //   e9????????           |                     
            //   ff15????????         |                     
            //   3905????????         |                     

        $sequence_6 = { b8ff000000 663b05???????? 7505 e8???????? }
            // n = 4, score = 300
            //   b8ff000000           | lea                 ecx, [0x256c6]
            //   663b05????????       |                     
            //   7505                 | mov                 eax, 1
            //   e8????????           |                     

        $sequence_7 = { 663b05???????? 7505 e8???????? e8???????? 84c0 }
            // n = 5, score = 300
            //   663b05????????       |                     
            //   7505                 | mov                 dword ptr [esp + 0x940], ebp
            //   e8????????           |                     
            //   e8????????           |                     
            //   84c0                 | dec                 eax

        $sequence_8 = { 750f ff15???????? 2d33270000 f7d8 1bc0 }
            // n = 5, score = 300
            //   750f                 | mov                 edx, ebx
            //   ff15????????         |                     
            //   2d33270000           | xor                 ecx, ecx
            //   f7d8                 | mov                 dword ptr [esp + 0x28], 0x80000000
            //   1bc0                 | mov                 dword ptr [esp + 0x20], 0x80000000

        $sequence_9 = { 750a b857000000 e9???????? ff15???????? }
            // n = 4, score = 300
            //   750a                 | dec                 esp
            //   b857000000           | lea                 ecx, [esp + 0x30]
            //   e9????????           |                     
            //   ff15????????         |                     

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