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

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-04-08"
        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 = "20220405"
        malpedia_hash = "ecd38294bd47d5589be5cd5490dc8bb4804afc2a"
        malpedia_version = "20220411"
        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 = { e8???????? 488bd8 4883f8ff 7457 }
            // n = 4, score = 100
            //   e8????????           |                     
            //   488bd8               | dec                 eax
            //   4883f8ff             | mov                 ecx, ebx
            //   7457                 | dec                 eax

        $sequence_1 = { ff15???????? 488d15f1d00000 488bcb 488905???????? ff15???????? 488d15cad00000 488bcb }
            // n = 7, score = 100
            //   ff15????????         |                     
            //   488d15f1d00000       | lea                 edx, dword ptr [ebp + 0x4d0]
            //   488bcb               | dec                 ecx
            //   488905????????       |                     
            //   ff15????????         |                     
            //   488d15cad00000       | mov                 ecx, ebp
            //   488bcb               | inc                 ebp

        $sequence_2 = { 4889442478 488d45b8 488945b0 8b442440 }
            // n = 4, score = 100
            //   4889442478           | add                 eax, ebp
            //   488d45b8             | dec                 eax
            //   488945b0             | arpl                cx, cx
            //   8b442440             | dec                 ecx

        $sequence_3 = { 6603c9 4d894d50 4d8d4548 6641894d48 }
            // n = 4, score = 100
            //   6603c9               | and                 ecx, 0x1f
            //   4d894d50             | dec                 eax
            //   4d8d4548             | mov                 ecx, esi
            //   6641894d48           | dec                 ecx

        $sequence_4 = { 488d7d10 418d4b06 410fb7c3 44895d0c 4c895d04 66f3ab 488d3ddedb0000 }
            // n = 7, score = 100
            //   488d7d10             | mov                 eax, dword ptr [edi + 0x50]
            //   418d4b06             | dec                 eax
            //   410fb7c3             | add                 eax, edx
            //   44895d0c             | dec                 eax
            //   4c895d04             | cmp                 ecx, eax
            //   66f3ab               | jae                 0x1c46
            //   488d3ddedb0000       | dec                 eax

        $sequence_5 = { 4863c9 488d14c8 420fbe940a90ef0000 c1fa04 89542460 8bca }
            // n = 6, score = 100
            //   4863c9               | lea                 edx, dword ptr [0xce87]
            //   488d14c8             | dec                 eax
            //   420fbe940a90ef0000     | mov    ecx, ebx
            //   c1fa04               | dec                 eax
            //   89542460             | lea                 edx, dword ptr [0xcfa8]
            //   8bca                 | dec                 eax

        $sequence_6 = { 8bcd 23c8 3bc1 7403 4103cc 85c9 }
            // n = 6, score = 100
            //   8bcd                 | dec                 eax
            //   23c8                 | lea                 ecx, dword ptr [esp + 0x20]
            //   3bc1                 | dec                 esp
            //   7403                 | mov                 ecx, ebx
            //   4103cc               | inc                 esp
            //   85c9                 | mov                 eax, edi

        $sequence_7 = { 898424a0000000 85c0 0f84e7000000 4539b558040000 0f84da000000 488bac24b0000000 4539b78c000000 }
            // n = 7, score = 100
            //   898424a0000000       | dec                 esp
            //   85c0                 | lea                 eax, dword ptr [0xffff7dc9]
            //   0f84e7000000         | dec                 ebx
            //   4539b558040000       | mov                 eax, dword ptr [eax + edi*8 + 0x14ba0]
            //   0f84da000000         | test                byte ptr [eax + esi + 8], 0x48
            //   488bac24b0000000     | je                  0xda
            //   4539b78c000000       | cmp                 byte ptr [ebp + 0x58], 0xa

        $sequence_8 = { 4c8d2d06950000 41b804010000 668935???????? 498bd5 }
            // n = 4, score = 100
            //   4c8d2d06950000       | lea                 edx, dword ptr [0xd6b4]
            //   41b804010000         | dec                 eax
            //   668935????????       |                     
            //   498bd5               | mov                 ecx, ebx

        $sequence_9 = { 48c1fe05 4c8d253a920000 83e31f 486bdb58 498b04f4 }
            // n = 5, score = 100
            //   48c1fe05             | mov                 edx, esi
            //   4c8d253a920000       | nop                 dword ptr [eax]
            //   83e31f               | inc                 ecx
            //   486bdb58             | movzx               eax, byte ptr [eax + 0x100]
            //   498b04f4             | add                 ecx, eax

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