SYMBOLCOMMON_NAMEaka. SYNONYMS
win.hotwax (Back to overview)

HOTWAX

Actor(s): Lazarus Group


HOTWAX is a module that upon starting imports all necessary system API functions, and searches for a .CHM file. HOTWAX decrypts a payload using the Spritz algorithm with a hard-coded key and then searches the target process and attempts to inject the decrypted payload module from the CHM file into the address space of the target process.

References
2018-10-03Virus BulletinPeter Kálnai, Michal Poslušný
@techreport{klnai:20181003:lazarus:bebf0ad, author = {Peter Kálnai and Michal Poslušný}, title = {{LAZARUS GROUP: A MAHJONG GAME PLAYED WITH DIFFERENT SETS OF TILES}}, date = {2018-10-03}, institution = {Virus Bulletin}, url = {https://www.virusbulletin.com/uploads/pdf/magazine/2018/VB2018-Kalnai-Poslusny.pdf}, language = {English}, urldate = {2020-01-06} } LAZARUS GROUP: A MAHJONG GAME PLAYED WITH DIFFERENT SETS OF TILES
HOTWAX
2018-03Kaspersky LabsKaspersky Lab
@techreport{lab:201803:lazarus:3fd5ac4, author = {Kaspersky Lab}, title = {{Lazarus under the Hood}}, date = {2018-03}, institution = {Kaspersky Labs}, url = {https://media.kasperskycontenthub.com/wp-content/uploads/sites/43/2018/03/07180244/Lazarus_Under_The_Hood_PDF_final.pdf}, language = {English}, urldate = {2020-01-07} } Lazarus under the Hood
HOTWAX REDSHAWL WORMHOLE
2018FireEyeFireEye
@online{fireeye:2018:apt38:20161b7, author = {FireEye}, title = {{APT38}}, date = {2018}, organization = {FireEye}, url = {https://content.fireeye.com/apt/rpt-apt38}, language = {English}, urldate = {2020-01-13} } APT38
Bitsran BLINDTOAD BOOTWRECK Contopee DarkComet DYEPACK HOTWAX NESTEGG PowerRatankba REDSHAWL WORMHOLE Lazarus Group
2017-02-16ESET ResearchPeter Kálnai
@online{klnai:20170216:demystifying:7ae8785, author = {Peter Kálnai}, title = {{Demystifying targeted malware used against Polish banks}}, date = {2017-02-16}, organization = {ESET Research}, url = {https://www.welivesecurity.com/2017/02/16/demystifying-targeted-malware-used-polish-banks/}, language = {English}, urldate = {2019-11-14} } Demystifying targeted malware used against Polish banks
HOTWAX NACHOCHEESE
Yara Rules
[TLP:WHITE] win_hotwax_auto (20201014 | autogenerated rule brought to you by yara-signator)
rule win_hotwax_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-10-14"
        version = "1"
        description = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.5.0"
        tool_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.hotwax"
        malpedia_rule_date = "20201014"
        malpedia_hash = "a7e3bd57eaf12bf3ea29a863c041091ba3af9ac9"
        malpedia_version = "20201014"
        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 = { 3b05???????? 0f8398060000 488bf0 4c8bf8 4c8d0d8380ffff }
            // n = 5, score = 100
            //   3b05????????         |                     
            //   0f8398060000         | inc                 ebp
            //   488bf0               | mov                 ah, byte ptr [eax]
            //   4c8bf8               | inc                 ebp
            //   4c8d0d8380ffff       | test                ah, ah

        $sequence_1 = { 488bd7 ff15???????? 418d8770050000 4489bdcc040000 c745a400080000 8945a0 }
            // n = 6, score = 100
            //   488bd7               | mov                 ecx, esi
            //   ff15????????         |                     
            //   418d8770050000       | dec                 esp
            //   4489bdcc040000       | mov                 dword ptr [esp + 0xa8], esi
            //   c745a400080000       | inc                 ecx
            //   8945a0               | mov                 ecx, esi

        $sequence_2 = { 488d054a930000 e9???????? 443be6 0f8591000000 ffc7 e9???????? ba58000000 }
            // n = 7, score = 100
            //   488d054a930000       | mov                 ecx, ebx
            //   e9????????           |                     
            //   443be6               | dec                 eax
            //   0f8591000000         | lea                 edx, [0xd56c]
            //   ffc7                 | dec                 eax
            //   e9????????           |                     
            //   ba58000000           | mov                 ecx, ebx

        $sequence_3 = { 7647 498bcd e8???????? 4c8d0543540000 41b903000000 488d4c45bc 488bc1 }
            // n = 7, score = 100
            //   7647                 | je                  0xae
            //   498bcd               | dec                 eax
            //   e8????????           |                     
            //   4c8d0543540000       | lea                 eax, [0xd5cd]
            //   41b903000000         | je                  0xcc
            //   488d4c45bc           | dec                 eax
            //   488bc1               | mov                 ecx, edi

        $sequence_4 = { e8???????? 4c8d0dac7fffff 4c8bd8 4b8b84f9a04b0100 4c895c3040 4b8b84f9a04b0100 498bd6 }
            // n = 7, score = 100
            //   e8????????           |                     
            //   4c8d0dac7fffff       | test                eax, eax
            //   4c8bd8               | mov                 dl, 0xff
            //   4b8b84f9a04b0100     | dec                 eax
            //   4c895c3040           | mov                 eax, ecx
            //   4b8b84f9a04b0100     | inc                 ecx
            //   498bd6               | mov                 eax, 0x80

        $sequence_5 = { 420fbe940a90ef0000 c1fa04 89542460 8bca 85d2 0f8451070000 ffc9 }
            // n = 7, score = 100
            //   420fbe940a90ef0000     | dec    eax
            //   c1fa04               | mov                 ecx, ebx
            //   89542460             | dec                 eax
            //   8bca                 | lea                 edx, [0xd149]
            //   85d2                 | dec                 eax
            //   0f8451070000         | mov                 ecx, ebx
            //   ffc9                 | dec                 eax

        $sequence_6 = { ff15???????? 488d159bd50000 488bcb 488905???????? }
            // n = 4, score = 100
            //   ff15????????         |                     
            //   488d159bd50000       | mov                 ecx, ebp
            //   488bcb               | dec                 eax
            //   488905????????       |                     

        $sequence_7 = { 4b8b84f9a04b0100 4c895c3040 4b8b84f9a04b0100 498bd6 }
            // n = 4, score = 100
            //   4b8b84f9a04b0100     | dec                 eax
            //   4c895c3040           | lea                 edx, [0xcf04]
            //   4b8b84f9a04b0100     | dec                 eax
            //   498bd6               | mov                 ecx, ebx

        $sequence_8 = { ff15???????? 488d155ecd0000 488bcb 488905???????? ff15???????? 488d1537cd0000 488bcb }
            // n = 7, score = 100
            //   ff15????????         |                     
            //   488d155ecd0000       | dec                 ebx
            //   488bcb               | mov                 eax, dword ptr [ecx + edi*8 + 0x14ba0]
            //   488905????????       |                     
            //   ff15????????         |                     
            //   488d1537cd0000       | dec                 esp
            //   488bcb               | lea                 edx, [0xd4e3]

        $sequence_9 = { 33c9 85c0 0f8514010000 4c8d2d06950000 41b804010000 }
            // n = 5, score = 100
            //   33c9                 | dec                 ebx
            //   85c0                 | mov                 eax, dword ptr [eax + edi*8 + 0x14ba0]
            //   0f8514010000         | test                byte ptr [eax + esi + 8], 0x48
            //   4c8d2d06950000       | je                  0x16b7
            //   41b804010000         | dec                 esp

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