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 (20201023 | autogenerated rule brought to you by yara-signator)
rule win_hotwax_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.hotwax"
        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 = { 488d1561740000 41b808000000 488bcb e8???????? 85c0 }
            // n = 5, score = 100
            //   488d1561740000       | mov                 eax, 0x568
            //   41b808000000         | or                  ebx, 0xffffffff
            //   488bcb               | dec                 esp
            //   e8????????           |                     
            //   85c0                 | mov                 ebp, eax

        $sequence_1 = { ff15???????? 448d5fff 488d442430 4c8d8c2440010000 4c8d058fd00000 4963d3 488bce }
            // n = 7, score = 100
            //   ff15????????         |                     
            //   448d5fff             | dec                 eax
            //   488d442430           | lea                 eax, [esi + 0xa0]
            //   4c8d8c2440010000     | mov                 edx, dword ptr [eax]
            //   4c8d058fd00000       | dec                 eax
            //   4963d3               | mov                 ebp, dword ptr [esp + 0x58]
            //   488bce               | movzx               ecx, word ptr [esi + 4]

        $sequence_2 = { e8???????? 4889442430 4885c0 7473 4863d7 4c8d0514930000 498904d0 }
            // n = 7, score = 100
            //   e8????????           |                     
            //   4889442430           | mov                 ecx, eax
            //   4885c0               | dec                 eax
            //   7473                 | mov                 ebx, eax
            //   4863d7               | dec                 eax
            //   4c8d0514930000       | sub                 esp, 0x20
            //   498904d0             | dec                 eax

        $sequence_3 = { ff15???????? 488d15a8cf0000 488bcb 488905???????? ff15???????? }
            // n = 5, score = 100
            //   ff15????????         |                     
            //   488d15a8cf0000       | sar                 eax, 5
            //   488bcb               | and                 ecx, 0x1f
            //   488905????????       |                     
            //   ff15????????         |                     

        $sequence_4 = { 4c8bf0 ff15???????? 488d4c2468 33d2 41b868050000 }
            // n = 5, score = 100
            //   4c8bf0               | inc                 ebp
            //   ff15????????         |                     
            //   488d4c2468           | test                ch, ch
            //   33d2                 | je                  0x162c
            //   41b868050000         | dec                 ebx

        $sequence_5 = { 488bcb 488905???????? ff15???????? 488d1568d30000 488bcb }
            // n = 5, score = 100
            //   488bcb               | lea                 edx, [ebp + 0x508]
            //   488905????????       |                     
            //   ff15????????         |                     
            //   488d1568d30000       | dec                 ecx
            //   488bcb               | mov                 ecx, ebp

        $sequence_6 = { 8a44191c 42888401f0220100 ffc2 ebe1 897c2420 81ff00010000 7d16 }
            // n = 7, score = 100
            //   8a44191c             | mov                 edi, dword ptr [ebp + 0x5b0]
            //   42888401f0220100     | dec                 eax
            //   ffc2                 | mov                 esi, ecx
            //   ebe1                 | dec                 eax
            //   897c2420             | lea                 ecx, [0xc6b1]
            //   81ff00010000         | dec                 eax
            //   7d16                 | mov                 edi, eax

        $sequence_7 = { 488bcb 488905???????? ff15???????? 488d1578d70000 488bcb }
            // n = 5, score = 100
            //   488bcb               | dec                 esp
            //   488905????????       |                     
            //   ff15????????         |                     
            //   488d1578d70000       | mov                 esp, eax
            //   488bcb               | dec                 eax

        $sequence_8 = { 4883ec20 488bd9 488d0de0b60000 483bd9 723e 488d0564ba0000 }
            // n = 6, score = 100
            //   4883ec20             | lea                 eax, [esi + 0xa0]
            //   488bd9               | mov                 edx, dword ptr [eax]
            //   488d0de0b60000       | dec                 eax
            //   483bd9               | lea                 ecx, [esp + 0x200]
            //   723e                 | dec                 eax
            //   488d0564ba0000       | mov                 ebx, dword ptr [esp + 0x48]

        $sequence_9 = { 4b8b8cf8a04b0100 48ffc3 8844313a 4863c2 482bd8 }
            // n = 5, score = 100
            //   4b8b8cf8a04b0100     | mov                 dword ptr [esp + 0x20], 0
            //   48ffc3               | inc                 ecx
            //   8844313a             | mov                 ecx, 0xf8
            //   4863c2               | dec                 esp
            //   482bd8               | mov                 eax, edi

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