SYMBOLCOMMON_NAMEaka. SYNONYMS
win.blackcoffee (Back to overview)

BLACKCOFFEE

aka: PNGRAT, gresim, ZoxPNG

Actor(s): APT41, Aurora Panda, Leviathan


a backdoor that obfuscates its communications as normal traffic to legitimate websites such as Github and Microsoft's Technet portal.

References
2020-01-29nao_sec blognao_sec
@online{naosec:20200129:overhead:ec0aeb5, author = {nao_sec}, title = {{An Overhead View of the Royal Road}}, date = {2020-01-29}, organization = {nao_sec blog}, url = {https://nao-sec.org/2020/01/an-overhead-view-of-the-royal-road.html}, language = {English}, urldate = {2020-02-03} } An Overhead View of the Royal Road
BLACKCOFFEE Cotx RAT Datper DDKONG Derusbi Icefog Korlia NewCore RAT PLAINTEE Poison Ivy Sisfader
2020SecureworksSecureWorks
@online{secureworks:2020:bronze:e8ad4fb, author = {SecureWorks}, title = {{BRONZE MOHAWK}}, date = {2020}, organization = {Secureworks}, url = {https://www.secureworks.com/research/threat-profiles/bronze-mohawk}, language = {English}, urldate = {2020-05-23} } BRONZE MOHAWK
AIRBREAK scanbox BLACKCOFFEE CHINACHOPPER Cobalt Strike Derusbi homefry murkytop SeDll Leviathan
2020SecureworksSecureWorks
@online{secureworks:2020:bronze:65ecf8a, author = {SecureWorks}, title = {{BRONZE KEYSTONE}}, date = {2020}, organization = {Secureworks}, url = {https://www.secureworks.com/research/threat-profiles/bronze-keystone}, language = {English}, urldate = {2020-05-23} } BRONZE KEYSTONE
9002 RAT BLACKCOFFEE DeputyDog Derusbi HiKit PlugX Poison Ivy ZXShell Aurora Panda
2019-07-24IntrusiontruthIntrusiontruth
@online{intrusiontruth:20190724:apt17:6b9a666, author = {Intrusiontruth}, title = {{APT17 is run by the Jinan bureau of the Chinese Ministry of State Security}}, date = {2019-07-24}, organization = {Intrusiontruth}, url = {https://intrusiontruth.wordpress.com/2019/07/24/apt17-is-run-by-the-jinan-bureau-of-the-chinese-ministry-of-state-security/}, language = {English}, urldate = {2020-04-21} } APT17 is run by the Jinan bureau of the Chinese Ministry of State Security
BLACKCOFFEE
2019MITREMITRE ATT&CK
@online{attck:2019:tool:ebc79ce, author = {MITRE ATT&CK}, title = {{Tool description: BLACKCOFFEE}}, date = {2019}, organization = {MITRE}, url = {https://attack.mitre.org/software/S0069/}, language = {English}, urldate = {2019-12-20} } Tool description: BLACKCOFFEE
BLACKCOFFEE
2018-03-16FireEyeFireEye
@online{fireeye:20180316:suspected:2a77316, author = {FireEye}, title = {{Suspected Chinese Cyber Espionage Group (TEMP.Periscope) Targeting U.S. Engineering and Maritime Industries}}, date = {2018-03-16}, organization = {FireEye}, url = {https://www.fireeye.com/blog/threat-research/2018/03/suspected-chinese-espionage-group-targeting-maritime-and-engineering-industries.html}, language = {English}, urldate = {2019-12-20} } Suspected Chinese Cyber Espionage Group (TEMP.Periscope) Targeting U.S. Engineering and Maritime Industries
badflick BLACKCOFFEE CHINACHOPPER homefry murkytop SeDll Leviathan
2015-05-18Tetsuji Tanigawa
@online{tanigawa:20150518:tt:4cb29ea, author = {Tetsuji Tanigawa}, title = {{TT Malware Log}}, date = {2015-05-18}, url = {http://malware-log.hatenablog.com/entry/2015/05/18/000000_1}, language = {Japanese}, urldate = {2020-01-08} } TT Malware Log
BLACKCOFFEE
2015-05FireEyeFireEye
@techreport{fireeye:201505:hiding:8695fc2, author = {FireEye}, title = {{HIDING IN PLAIN SIGHT: FIREEYE AND MICROSOFT EXPOSE OBFUSCATION TACTIC}}, date = {2015-05}, institution = {FireEye}, url = {https://www2.fireeye.com/rs/fireye/images/APT17_Report.pdf}, language = {English}, urldate = {2019-12-19} } HIDING IN PLAIN SIGHT: FIREEYE AND MICROSOFT EXPOSE OBFUSCATION TACTIC
BLACKCOFFEE
2014-11NovettaNovetta
@techreport{novetta:201411:zoxpng:91e81c6, author = {Novetta}, title = {{ZoxPNG Analysis}}, date = {2014-11}, institution = {Novetta}, url = {http://www.novetta.com/wp-content/uploads/2014/11/ZoxPNG.pdf}, language = {English}, urldate = {2020-05-07} } ZoxPNG Analysis
BLACKCOFFEE
Yara Rules
[TLP:WHITE] win_blackcoffee_auto (20201023 | autogenerated rule brought to you by yara-signator)
rule win_blackcoffee_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-12-22"
        version = "1"
        description = "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.blackcoffee"
        malpedia_rule_date = "20201222"
        malpedia_hash = "30354d830a29f0fbd3714d93d94dea941d77a130"
        malpedia_version = "20201023"
        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 = { 8d4704 50 e8???????? ff77f8 8d4724 }
            // n = 5, score = 200
            //   8d4704               | lea                 eax, [edi + 4]
            //   50                   | push                eax
            //   e8????????           |                     
            //   ff77f8               | push                dword ptr [edi - 8]
            //   8d4724               | lea                 eax, [edi + 0x24]

        $sequence_1 = { 56 33f6 57 8b3d???????? 3bc6 7416 }
            // n = 6, score = 200
            //   56                   | push                esi
            //   33f6                 | xor                 esi, esi
            //   57                   | push                edi
            //   8b3d????????         |                     
            //   3bc6                 | cmp                 eax, esi
            //   7416                 | je                  0x18

        $sequence_2 = { c20800 55 8bec 81ec4c010000 83a5b4feffff00 53 }
            // n = 6, score = 200
            //   c20800               | ret                 8
            //   55                   | push                ebp
            //   8bec                 | mov                 ebp, esp
            //   81ec4c010000         | sub                 esp, 0x14c
            //   83a5b4feffff00       | and                 dword ptr [ebp - 0x14c], 0
            //   53                   | push                ebx

        $sequence_3 = { eb03 83cfff 8bc7 5f 5e c9 c20400 }
            // n = 7, score = 200
            //   eb03                 | jmp                 5
            //   83cfff               | or                  edi, 0xffffffff
            //   8bc7                 | mov                 eax, edi
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi
            //   c9                   | leave               
            //   c20400               | ret                 4

        $sequence_4 = { 83c704 837d081e 894608 72d9 8b4608 bf40420f00 33d2 }
            // n = 7, score = 200
            //   83c704               | add                 edi, 4
            //   837d081e             | cmp                 dword ptr [ebp + 8], 0x1e
            //   894608               | mov                 dword ptr [esi + 8], eax
            //   72d9                 | jb                  0xffffffdb
            //   8b4608               | mov                 eax, dword ptr [esi + 8]
            //   bf40420f00           | mov                 edi, 0xf4240
            //   33d2                 | xor                 edx, edx

        $sequence_5 = { 7620 0fb6543904 8bd8 81e3ff000000 33d3 c1e808 }
            // n = 6, score = 200
            //   7620                 | jbe                 0x22
            //   0fb6543904           | movzx               edx, byte ptr [ecx + edi + 4]
            //   8bd8                 | mov                 ebx, eax
            //   81e3ff000000         | and                 ebx, 0xff
            //   33d3                 | xor                 edx, ebx
            //   c1e808               | shr                 eax, 8

        $sequence_6 = { c20800 55 8bec 81ec98000000 56 57 }
            // n = 6, score = 200
            //   c20800               | ret                 8
            //   55                   | push                ebp
            //   8bec                 | mov                 ebp, esp
            //   81ec98000000         | sub                 esp, 0x98
            //   56                   | push                esi
            //   57                   | push                edi

        $sequence_7 = { 83661000 c7460407100680 8b45fc 89460c }
            // n = 4, score = 200
            //   83661000             | and                 dword ptr [esi + 0x10], 0
            //   c7460407100680       | mov                 dword ptr [esi + 4], 0x80061007
            //   8b45fc               | mov                 eax, dword ptr [ebp - 4]
            //   89460c               | mov                 dword ptr [esi + 0xc], eax

        $sequence_8 = { e8???????? 83c424 83c612 57 }
            // n = 4, score = 200
            //   e8????????           |                     
            //   83c424               | add                 esp, 0x24
            //   83c612               | add                 esi, 0x12
            //   57                   | push                edi

        $sequence_9 = { 6a04 8d443012 50 8d45f8 50 e8???????? 8b45f4 }
            // n = 7, score = 200
            //   6a04                 | push                4
            //   8d443012             | lea                 eax, [eax + esi + 0x12]
            //   50                   | push                eax
            //   8d45f8               | lea                 eax, [ebp - 8]
            //   50                   | push                eax
            //   e8????????           |                     
            //   8b45f4               | mov                 eax, dword ptr [ebp - 0xc]

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