SYMBOLCOMMON_NAMEaka. SYNONYMS
win.cookiebag (Back to overview)

CookieBag

Actor(s): Comment Crew


There is no description at this point.

References
2018MandiantMandiant
@techreport{mandiant:2018:apt1:b76cc4d, author = {Mandiant}, title = {{APT1}}, date = {2018}, institution = {Mandiant}, url = {https://github.com/securitykitten/malware_references/blob/master/Appendix%20C%20(Digital)%20-%20The%20Malware%20Arsenal.pdf}, language = {English}, urldate = {2020-01-13} } APT1
Auriga Biscuit Bouncer Combos CookieBag Dairy GetMail GlooxMail Goggles Hacksfase Helauto Kurton ManItsMe MAPIget MiniASP NewsReels SeaSalt StarsyPound Sword TabMsgSQL Tarsip WebC2-AdSpace WebC2-Ausov WebC2-Bolid WebC2-Cson WebC2-DIV WebC2-GreenCat WebC2-Head WebC2-Kt3 WebC2-Qbp WebC2-Rave WebC2-Table WebC2-UGX WebC2-Yahoo
Yara Rules
[TLP:WHITE] win_cookiebag_auto (20220411 | Detects win.cookiebag.)
rule win_cookiebag_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-04-08"
        version = "1"
        description = "Detects win.cookiebag."
        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.cookiebag"
        malpedia_rule_date = "20220405"
        malpedia_hash = "ecd38294bd47d5589be5cd5490dc8bb4804afc2a"
        malpedia_version = "20220411"
        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 = { c644247401 e8???????? 68???????? e8???????? 83c404 8d4c2418 50 }
            // n = 7, score = 100
            //   c644247401           | mov                 byte ptr [esp + 0x74], 1
            //   e8????????           |                     
            //   68????????           |                     
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   8d4c2418             | lea                 ecx, dword ptr [esp + 0x18]
            //   50                   | push                eax

        $sequence_1 = { 7403 50 ffd7 8b466c 83f8ff 7403 50 }
            // n = 7, score = 100
            //   7403                 | je                  5
            //   50                   | push                eax
            //   ffd7                 | call                edi
            //   8b466c               | mov                 eax, dword ptr [esi + 0x6c]
            //   83f8ff               | cmp                 eax, -1
            //   7403                 | je                  5
            //   50                   | push                eax

        $sequence_2 = { b830750000 898630010000 898634010000 c6862401000000 89ae28010000 c7862c01000060ea0000 }
            // n = 6, score = 100
            //   b830750000           | mov                 eax, 0x7530
            //   898630010000         | mov                 dword ptr [esi + 0x130], eax
            //   898634010000         | mov                 dword ptr [esi + 0x134], eax
            //   c6862401000000       | mov                 byte ptr [esi + 0x124], 0
            //   89ae28010000         | mov                 dword ptr [esi + 0x128], ebp
            //   c7862c01000060ea0000     | mov    dword ptr [esi + 0x12c], 0xea60

        $sequence_3 = { 83e103 50 f3a4 8d7c2418 83c9ff f2ae f7d1 }
            // n = 7, score = 100
            //   83e103               | and                 ecx, 3
            //   50                   | push                eax
            //   f3a4                 | rep movsb           byte ptr es:[edi], byte ptr [esi]
            //   8d7c2418             | lea                 edi, dword ptr [esp + 0x18]
            //   83c9ff               | or                  ecx, 0xffffffff
            //   f2ae                 | repne scasb         al, byte ptr es:[edi]
            //   f7d1                 | not                 ecx

        $sequence_4 = { 837d1000 7508 8bb644414200 eb06 8bb678414200 3bce 7e20 }
            // n = 7, score = 100
            //   837d1000             | cmp                 dword ptr [ebp + 0x10], 0
            //   7508                 | jne                 0xa
            //   8bb644414200         | mov                 esi, dword ptr [esi + 0x424144]
            //   eb06                 | jmp                 8
            //   8bb678414200         | mov                 esi, dword ptr [esi + 0x424178]
            //   3bce                 | cmp                 ecx, esi
            //   7e20                 | jle                 0x22

        $sequence_5 = { 668b2a 663b2e 750b 83c202 83c602 4f 742d }
            // n = 7, score = 100
            //   668b2a               | mov                 bp, word ptr [edx]
            //   663b2e               | cmp                 bp, word ptr [esi]
            //   750b                 | jne                 0xd
            //   83c202               | add                 edx, 2
            //   83c602               | add                 esi, 2
            //   4f                   | dec                 edi
            //   742d                 | je                  0x2f

        $sequence_6 = { c644242406 7409 8bc8 e8???????? eb02 33c0 6a68 }
            // n = 7, score = 100
            //   c644242406           | mov                 byte ptr [esp + 0x24], 6
            //   7409                 | je                  0xb
            //   8bc8                 | mov                 ecx, eax
            //   e8????????           |                     
            //   eb02                 | jmp                 4
            //   33c0                 | xor                 eax, eax
            //   6a68                 | push                0x68

        $sequence_7 = { 83e61f 8d3c8500484200 c1e603 8b07 03c6 f6400401 7437 }
            // n = 7, score = 100
            //   83e61f               | and                 esi, 0x1f
            //   8d3c8500484200       | lea                 edi, dword ptr [eax*4 + 0x424800]
            //   c1e603               | shl                 esi, 3
            //   8b07                 | mov                 eax, dword ptr [edi]
            //   03c6                 | add                 eax, esi
            //   f6400401             | test                byte ptr [eax + 4], 1
            //   7437                 | je                  0x39

        $sequence_8 = { eb0c 83c0fe 50 e8???????? 83c404 895e6c 895e70 }
            // n = 7, score = 100
            //   eb0c                 | jmp                 0xe
            //   83c0fe               | add                 eax, -2
            //   50                   | push                eax
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   895e6c               | mov                 dword ptr [esi + 0x6c], ebx
            //   895e70               | mov                 dword ptr [esi + 0x70], ebx

        $sequence_9 = { 8b06 3bc7 7305 e8???????? 8d5ef8 8bcb }
            // n = 6, score = 100
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   3bc7                 | cmp                 eax, edi
            //   7305                 | jae                 7
            //   e8????????           |                     
            //   8d5ef8               | lea                 ebx, dword ptr [esi - 8]
            //   8bcb                 | mov                 ecx, ebx

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