SYMBOLCOMMON_NAMEaka. SYNONYMS
win.graphite (Back to overview)

Graphite


Trellix describes Graphite as a malware using the Microsoft Graph API and OneDrive for C&C. It was found being deployed in-memory only and served as a downloader for Empire.

References
2022-09-23Cluster25Cluster25
@online{cluster25:20220923:in:ea96772, author = {Cluster25}, title = {{In the footsteps of the Fancy Bear: PowerPoint mouse-over event abused to deliver Graphite implants}}, date = {2022-09-23}, organization = {Cluster25}, url = {https://blog.cluster25.duskrise.com/2022/09/23/in-the-footsteps-of-the-fancy-bear-powerpoint-graphite/}, language = {English}, urldate = {2022-09-26} } In the footsteps of the Fancy Bear: PowerPoint mouse-over event abused to deliver Graphite implants
Graphite
2022-01-25TrellixMarc Elias, Christiaan Beek, Alexandre Mundo, Leandro Velasco, Max Kersten
@online{elias:20220125:prime:20a5b0c, author = {Marc Elias and Christiaan Beek and Alexandre Mundo and Leandro Velasco and Max Kersten}, title = {{Prime Minister’s Office Compromised: Details of Recent Espionage Campaign}}, date = {2022-01-25}, organization = {Trellix}, url = {https://www.trellix.com/en-gb/about/newsroom/stories/threat-labs/prime-ministers-office-compromised.html}, language = {English}, urldate = {2022-01-25} } Prime Minister’s Office Compromised: Details of Recent Espionage Campaign
Graphite
Yara Rules
[TLP:WHITE] win_graphite_auto (20230125 | Detects win.graphite.)
rule win_graphite_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-01-25"
        version = "1"
        description = "Detects win.graphite."
        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.graphite"
        malpedia_rule_date = "20230124"
        malpedia_hash = "2ee0eebba83dce3d019a90519f2f972c0fcf9686"
        malpedia_version = "20230125"
        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???????? 33c0 eb05 b801010000 }
            // n = 4, score = 500
            //   ff15????????         |                     
            //   33c0                 | xor                 eax, eax
            //   eb05                 | jmp                 7
            //   b801010000           | mov                 eax, 0x101

        $sequence_1 = { 81e2ff030000 81e1bf030000 83c940 c1e10a }
            // n = 4, score = 500
            //   81e2ff030000         | and                 edx, 0x3ff
            //   81e1bf030000         | and                 ecx, 0x3bf
            //   83c940               | or                  ecx, 0x40
            //   c1e10a               | shl                 ecx, 0xa

        $sequence_2 = { e8???????? ba0d000000 488905???????? 41b8b1000000 }
            // n = 4, score = 300
            //   e8????????           |                     
            //   ba0d000000           | mov                 edx, 0xd
            //   488905????????       |                     
            //   41b8b1000000         | inc                 ecx

        $sequence_3 = { 488b0d???????? 33db ff15???????? 488b15???????? }
            // n = 4, score = 300
            //   488b0d????????       |                     
            //   33db                 | mov                 eax, 0xb1
            //   ff15????????         |                     
            //   488b15????????       |                     

        $sequence_4 = { c745e770707860 66c745eb1272 e8???????? ba09000000 }
            // n = 4, score = 300
            //   c745e770707860       | mov                 dword ptr [ebp - 0x19], 0x60787070
            //   66c745eb1272         | mov                 word ptr [ebp - 0x15], 0x7212
            //   e8????????           |                     
            //   ba09000000           | mov                 edx, 9

        $sequence_5 = { 4c63c0 e8???????? 488b0d???????? ff15???????? }
            // n = 4, score = 300
            //   4c63c0               | lea                 ecx, [ebp + 2]
            //   e8????????           |                     
            //   488b0d????????       |                     
            //   ff15????????         |                     

        $sequence_6 = { 8bc3 eb09 85c0 7e0c 488b09 }
            // n = 5, score = 300
            //   8bc3                 | mov                 ebx, edx
            //   eb09                 | dec                 eax
            //   85c0                 | mov                 esi, ecx
            //   7e0c                 | jne                 0x17
            //   488b09               | inc                 ecx

        $sequence_7 = { 4d8bf9 44382d???????? 498bf8 488bda 488bf1 7515 418d4d02 }
            // n = 7, score = 300
            //   4d8bf9               | xor                 ebx, ebx
            //   44382d????????       |                     
            //   498bf8               | dec                 ebp
            //   488bda               | mov                 edi, ecx
            //   488bf1               | dec                 ecx
            //   7515                 | mov                 edi, eax
            //   418d4d02             | dec                 eax

        $sequence_8 = { 6a00 50 e8???????? 83c40c 33f6 68???????? ff15???????? }
            // n = 7, score = 200
            //   6a00                 | and                 ecx, 0x3bf
            //   50                   | or                  ecx, 0x40
            //   e8????????           |                     
            //   83c40c               | shl                 ecx, 0xa
            //   33f6                 | or                  ecx, edx
            //   68????????           |                     
            //   ff15????????         |                     

        $sequence_9 = { 83ec0c 53 55 56 8bd9 8d44240c 50 }
            // n = 7, score = 200
            //   83ec0c               | mov                 dword ptr [ebp - 1], 0xaffbafe9
            //   53                   | mov                 dword ptr [ebp + 3], 0xafeeaff8
            //   55                   | and                 edx, 0x3ff
            //   56                   | and                 ecx, 0x3bf
            //   8bd9                 | or                  ecx, 0x40
            //   8d44240c             | shl                 ecx, 0xa
            //   50                   | and                 edx, 0x3ff

        $sequence_10 = { c745f848497f58 c745fc5e45424b e8???????? 689c000000 6a14 5a 8d4dec }
            // n = 7, score = 200
            //   c745f848497f58       | dec                 eax
            //   c745fc5e45424b       | mov                 ecx, dword ptr [ecx]
            //   e8????????           |                     
            //   689c000000           | dec                 esp
            //   6a14                 | arpl                ax, ax
            //   5a                   | mov                 dword ptr [ebp - 9], 0xaff3afca
            //   8d4dec               | mov                 dword ptr [ebp - 5], 0xafe0affc

        $sequence_11 = { 6a18 6a0d 5a 8d4df0 }
            // n = 4, score = 200
            //   6a18                 | sub                 esp, 0xc
            //   6a0d                 | push                ebx
            //   5a                   | push                ebp
            //   8d4df0               | push                esi

        $sequence_12 = { 33c0 50 50 50 89442430 89442434 89442438 }
            // n = 7, score = 200
            //   33c0                 | xor                 eax, eax
            //   50                   | jmp                 7
            //   50                   | mov                 eax, 0x101
            //   50                   | and                 ecx, 0x3bf
            //   89442430             | or                  ecx, 0x40
            //   89442434             | shl                 ecx, 0xa
            //   89442438             | or                  ecx, edx

        $sequence_13 = { c78548ffffff5a767b79 c7854cffffff4b457863 c78550ffffff3b784b42 c78554ffffff36637476 c78558ffffff77582460 c7855cffffff595a4a5a }
            // n = 6, score = 200
            //   c78548ffffff5a767b79     | mov    dword ptr [ebp - 8], 0x587f4948
            //   c7854cffffff4b457863     | mov    dword ptr [ebp - 4], 0x4b42455e
            //   c78550ffffff3b784b42     | push    0x9c
            //   c78554ffffff36637476     | push    0x14
            //   c78558ffffff77582460     | pop    edx
            //   c7855cffffff595a4a5a     | lea    ecx, [ebp - 0x14]

    condition:
        7 of them and filesize < 98304
}
[TLP:WHITE] win_graphite_w0   (20220926 | Detects Fancy Bear Graphite variant through internal strings)
rule win_graphite_w0 {

    meta:
        date = "2022-08-05"
        description = "Detects Fancy Bear Graphite variant through internal strings"
        author = "Cluster25"
        tlp = "white"
        hash1 = "34aca02d3a4665f63fddb354551b5eff5a7e8877032ddda6db4f5c42452885ad"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.graphite"
        malpedia_rule_date = "20220926"
        malpedia_hash = ""
        malpedia_version = "20220926"
        malpedia_license = "CC BY-SA 4.0"
        malpedia_sharing = "TLP:WHITE"

    strings:
        $ = "_LL_x64.dll" fullword ascii
        $ = "qqhqx!iwwU1ptzd1WngCv9BCmVtxgFTJBPR1bJ2Ze17e0N6W3VHZC2FQOOUhu4nQ2Wrj0qLEBowQ$$" ascii
        $ = "62272a08-fe9d-4825-bc65-203842ff92bc" fullword ascii
        $ = "%s %04d sp%1d.%1d %s" fullword ascii
    condition:
        uint16(0) == 0x5a4d and
        filesize < 100KB and
        all of them
}
Download all Yara Rules