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 (20230125 | Detects win.hotwax.)
rule win_hotwax_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-01-25"
        version = "1"
        description = "Detects win.hotwax."
        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.hotwax"
        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 = { 488d1568d30000 488bcb 488905???????? ff15???????? 488d1541d30000 488bcb }
            // n = 6, score = 100
            //   488d1568d30000       | dec                 eax
            //   488bcb               | lea                 ebx, [0x995f]
            //   488905????????       |                     
            //   ff15????????         |                     
            //   488d1541d30000       | dec                 eax
            //   488bcb               | mov                 ecx, dword ptr [ebx - 8]

        $sequence_1 = { 488905???????? ff15???????? 488d159fd70000 488bcb 488905???????? ff15???????? }
            // n = 6, score = 100
            //   488905????????       |                     
            //   ff15????????         |                     
            //   488d159fd70000       | je                  0x545
            //   488bcb               | dec                 ebx
            //   488905????????       |                     
            //   ff15????????         |                     

        $sequence_2 = { 48833d????????00 8bd9 7418 488d0dfbc00000 e8???????? 85c0 }
            // n = 6, score = 100
            //   48833d????????00     |                     
            //   8bd9                 | dec                 eax
            //   7418                 | lea                 edx, [esp + 0xb0]
            //   488d0dfbc00000       | inc                 ecx
            //   e8????????           |                     
            //   85c0                 | mov                 ecx, 4

        $sequence_3 = { 488905???????? ff15???????? 488d1533cf0000 488bcb 488905???????? ff15???????? }
            // n = 6, score = 100
            //   488905????????       |                     
            //   ff15????????         |                     
            //   488d1533cf0000       | dec                 eax
            //   488bcb               | imul                ebx, ebx, 0x58
            //   488905????????       |                     
            //   ff15????????         |                     

        $sequence_4 = { 663955d8 7416 eb0c ba0a000000 4c8d05927affff 66448923 4883c302 }
            // n = 7, score = 100
            //   663955d8             | cmp                 byte ptr [eax], bl
            //   7416                 | dec                 esp
            //   eb0c                 | lea                 ebx, [0xb16a]
            //   ba0a000000           | inc                 ecx
            //   4c8d05927affff       | mov                 al, byte ptr [ebx + 8]
            //   66448923             | and                 al, 0x82
            //   4883c302             | cmp                 al, 0x82

        $sequence_5 = { 0f8d87000000 488d3d5fd40000 ba58000000 488bcd e8???????? 4885c0 }
            // n = 6, score = 100
            //   0f8d87000000         | dec                 esp
            //   488d3d5fd40000       | mov                 eax, edi
            //   ba58000000           | dec                 ecx
            //   488bcd               | mov                 edx, esp
            //   e8????????           |                     
            //   4885c0               | dec                 eax

        $sequence_6 = { 8bcd 23c8 3bc1 7403 4103cc }
            // n = 5, score = 100
            //   8bcd                 | mov                 dword ptr [esp + 0x28], eax
            //   23c8                 | inc                 ecx
            //   3bc1                 | mov                 ecx, 1
            //   7403                 | dec                 eax
            //   4103cc               | mov                 edx, ebx

        $sequence_7 = { 488d1510d60000 488bcb 488905???????? ff15???????? 488d15e9d50000 }
            // n = 5, score = 100
            //   488d1510d60000       | call                dword ptr [esp + 0x58]
            //   488bcb               | xor                 edx, edx
            //   488905????????       |                     
            //   ff15????????         |                     
            //   488d15e9d50000       | dec                 eax

        $sequence_8 = { 488bcb 488905???????? ff15???????? 488d15e7d40000 488bcb 488905???????? ff15???????? }
            // n = 7, score = 100
            //   488bcb               | je                  0xe78
            //   488905????????       |                     
            //   ff15????????         |                     
            //   488d15e7d40000       | dec                 eax
            //   488bcb               | lea                 ecx, [0xd883]
            //   488905????????       |                     
            //   ff15????????         |                     

        $sequence_9 = { 498bf8 e8???????? 488bd8 4885c0 7467 33d2 488bc8 }
            // n = 7, score = 100
            //   498bf8               | dec                 eax
            //   e8????????           |                     
            //   488bd8               | dec                 ebx
            //   4885c0               | jne                 0x1326
            //   7467                 | dec                 ecx
            //   33d2                 | mov                 ecx, ebx
            //   488bc8               | dec                 ecx

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