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: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 APT17
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 APT40
2019-09-23MITREMITRE ATT&CK
@online{attck:20190923:apt41:63b9ff7, author = {MITRE ATT&CK}, title = {{APT41}}, date = {2019-09-23}, organization = {MITRE}, url = {https://attack.mitre.org/groups/G0096}, language = {English}, urldate = {2022-08-30} } APT41
Derusbi MESSAGETAP Winnti ASPXSpy BLACKCOFFEE CHINACHOPPER Cobalt Strike Derusbi Empire Downloader Ghost RAT MimiKatz NjRAT PlugX ShadowPad Winnti ZXShell APT41
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 APT40
2017-05-31MITREMITRE ATT&CK
@online{attck:20170531:apt17:ebee596, author = {MITRE ATT&CK}, title = {{APT17}}, date = {2017-05-31}, organization = {MITRE}, url = {https://attack.mitre.org/groups/G0025/}, language = {English}, urldate = {2022-07-05} } APT17
BLACKCOFFEE APT17
2017-05-31MITREMITRE ATT&CK
@online{attck:20170531:axiom:b181fdb, author = {MITRE ATT&CK}, title = {{Axiom}}, date = {2017-05-31}, organization = {MITRE}, url = {https://attack.mitre.org/groups/G0001/}, language = {English}, urldate = {2022-08-30} } Axiom
Derusbi 9002 RAT BLACKCOFFEE Derusbi Ghost RAT HiKit PlugX ZXShell APT17
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
2015-04-14Youtube (Kaspersky)Kris McConkey
@online{mcconkey:20150414:following:02e29b8, author = {Kris McConkey}, title = {{Following APT OpSec failures}}, date = {2015-04-14}, organization = {Youtube (Kaspersky)}, url = {https://www.youtube.com/watch?v=NFJqD-LcpIg}, language = {English}, urldate = {2022-08-30} } Following APT OpSec failures
BLACKCOFFEE Mangzamel APT17
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 (20230125 | Detects win.blackcoffee.)
rule win_blackcoffee_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-01-25"
        version = "1"
        description = "Detects win.blackcoffee."
        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.blackcoffee"
        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 = { 8d5e14 50 6800000100 53 ff35???????? ff15???????? }
            // n = 6, score = 200
            //   8d5e14               | lea                 ebx, [esi + 0x14]
            //   50                   | push                eax
            //   6800000100           | push                0x10000
            //   53                   | push                ebx
            //   ff35????????         |                     
            //   ff15????????         |                     

        $sequence_1 = { e9???????? 6a01 6800000804 68???????? 53 68???????? }
            // n = 6, score = 200
            //   e9????????           |                     
            //   6a01                 | push                1
            //   6800000804           | push                0x4080000
            //   68????????           |                     
            //   53                   | push                ebx
            //   68????????           |                     

        $sequence_2 = { 6a40 57 57 6a00 ff15???????? }
            // n = 5, score = 200
            //   6a40                 | push                0x40
            //   57                   | push                edi
            //   57                   | push                edi
            //   6a00                 | push                0
            //   ff15????????         |                     

        $sequence_3 = { 80661100 80661200 80661300 80661400 56 89460c }
            // n = 6, score = 200
            //   80661100             | and                 byte ptr [esi + 0x11], 0
            //   80661200             | and                 byte ptr [esi + 0x12], 0
            //   80661300             | and                 byte ptr [esi + 0x13], 0
            //   80661400             | and                 byte ptr [esi + 0x14], 0
            //   56                   | push                esi
            //   89460c               | mov                 dword ptr [esi + 0xc], eax

        $sequence_4 = { 85c0 753c 8b45fc ff740308 e8???????? }
            // n = 5, score = 200
            //   85c0                 | test                eax, eax
            //   753c                 | jne                 0x3e
            //   8b45fc               | mov                 eax, dword ptr [ebp - 4]
            //   ff740308             | push                dword ptr [ebx + eax + 8]
            //   e8????????           |                     

        $sequence_5 = { 8d4724 50 e8???????? 85c0 753c 8b45fc ff740308 }
            // n = 7, score = 200
            //   8d4724               | lea                 eax, [edi + 0x24]
            //   50                   | push                eax
            //   e8????????           |                     
            //   85c0                 | test                eax, eax
            //   753c                 | jne                 0x3e
            //   8b45fc               | mov                 eax, dword ptr [ebp - 4]
            //   ff740308             | push                dword ptr [ebx + eax + 8]

        $sequence_6 = { 6800800000 57 53 ff15???????? 8b4610 }
            // n = 5, score = 200
            //   6800800000           | push                0x8000
            //   57                   | push                edi
            //   53                   | push                ebx
            //   ff15????????         |                     
            //   8b4610               | mov                 eax, dword ptr [esi + 0x10]

        $sequence_7 = { 50 6a40 832700 ff15???????? 6a08 }
            // n = 5, score = 200
            //   50                   | push                eax
            //   6a40                 | push                0x40
            //   832700               | and                 dword ptr [edi], 0
            //   ff15????????         |                     
            //   6a08                 | push                8

        $sequence_8 = { ff36 e8???????? ff750c 83c00c 0107 8b37 }
            // n = 6, score = 200
            //   ff36                 | push                dword ptr [esi]
            //   e8????????           |                     
            //   ff750c               | push                dword ptr [ebp + 0xc]
            //   83c00c               | add                 eax, 0xc
            //   0107                 | add                 dword ptr [edi], eax
            //   8b37                 | mov                 esi, dword ptr [edi]

        $sequence_9 = { 8365fc00 83c010 6a04 50 8d45fc 50 }
            // n = 6, score = 200
            //   8365fc00             | and                 dword ptr [ebp - 4], 0
            //   83c010               | add                 eax, 0x10
            //   6a04                 | push                4
            //   50                   | push                eax
            //   8d45fc               | lea                 eax, [ebp - 4]
            //   50                   | push                eax

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