SYMBOLCOMMON_NAMEaka. SYNONYMS
win.darkdew (Back to overview)

DARKDEW

VTCollection    

Mandiant associates this with UNC4191, this malware spreads to removable drives.

References
2022-11-28MandiantGeoff Ackerman, John Wolfram, Ryan Tomcik, Tommy Dacanay
Always Another Secret: Lifting the Haze on China-nexus Espionage in Southeast Asia
BLUEHAZE DARKDEW MISTCLOAK UNC4191
2022-11-03SophosGabor Szappanos
Family Tree: DLL-Sideloading Cases May Be Related
DARKDEW MISTCLOAK
Yara Rules
[TLP:WHITE] win_darkdew_auto (20260504 | Detects win.darkdew.)
rule win_darkdew_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        version = "1"
        description = "Detects win.darkdew."
        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.darkdew"
        malpedia_rule_date = "20260422"
        malpedia_hash = "a182e35da64e6d71cb55f125c4d4225196523f14"
        malpedia_version = "20260504"
        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 = { 83e801 0f8595010000 c745e4545d0110 e9???????? 894de0 c745e4545d0110 }
            // n = 6, score = 100
            //   83e801               | sub                 eax, 1
            //   0f8595010000         | jne                 0x19b
            //   c745e4545d0110       | mov                 dword ptr [ebp - 0x1c], 0x10015d54
            //   e9????????           |                     
            //   894de0               | mov                 dword ptr [ebp - 0x20], ecx
            //   c745e4545d0110       | mov                 dword ptr [ebp - 0x1c], 0x10015d54

        $sequence_1 = { 8d4d9c 0f43c8 83ff0b 754d ba???????? }
            // n = 5, score = 100
            //   8d4d9c               | lea                 ecx, [ebp - 0x64]
            //   0f43c8               | cmovae              ecx, eax
            //   83ff0b               | cmp                 edi, 0xb
            //   754d                 | jne                 0x4f
            //   ba????????           |                     

        $sequence_2 = { 50 ff15???????? 48 b991000000 f7d8 1bc0 697df844020000 }
            // n = 7, score = 100
            //   50                   | push                eax
            //   ff15????????         |                     
            //   48                   | dec                 eax
            //   b991000000           | mov                 ecx, 0x91
            //   f7d8                 | neg                 eax
            //   1bc0                 | sbb                 eax, eax
            //   697df844020000       | imul                edi, dword ptr [ebp - 8], 0x244

        $sequence_3 = { 50 ff15???????? 837db010 8d459c 6a06 0f43459c 50 }
            // n = 7, score = 100
            //   50                   | push                eax
            //   ff15????????         |                     
            //   837db010             | cmp                 dword ptr [ebp - 0x50], 0x10
            //   8d459c               | lea                 eax, [ebp - 0x64]
            //   6a06                 | push                6
            //   0f43459c             | cmovae              eax, dword ptr [ebp - 0x64]
            //   50                   | push                eax

        $sequence_4 = { 83e13f c1f806 6bc938 8b0485a0f30110 0fb6440828 }
            // n = 5, score = 100
            //   83e13f               | and                 ecx, 0x3f
            //   c1f806               | sar                 eax, 6
            //   6bc938               | imul                ecx, ecx, 0x38
            //   8b0485a0f30110       | mov                 eax, dword ptr [eax*4 + 0x1001f3a0]
            //   0fb6440828           | movzx               eax, byte ptr [eax + ecx + 0x28]

        $sequence_5 = { 2bc1 83f801 7218 8d4101 83fa10 8945c8 8d45b8 }
            // n = 7, score = 100
            //   2bc1                 | sub                 eax, ecx
            //   83f801               | cmp                 eax, 1
            //   7218                 | jb                  0x1a
            //   8d4101               | lea                 eax, [ecx + 1]
            //   83fa10               | cmp                 edx, 0x10
            //   8945c8               | mov                 dword ptr [ebp - 0x38], eax
            //   8d45b8               | lea                 eax, [ebp - 0x48]

        $sequence_6 = { 84c0 75f9 2bca 83fe10 8d55dc 51 }
            // n = 6, score = 100
            //   84c0                 | test                al, al
            //   75f9                 | jne                 0xfffffffb
            //   2bca                 | sub                 ecx, edx
            //   83fe10               | cmp                 esi, 0x10
            //   8d55dc               | lea                 edx, [ebp - 0x24]
            //   51                   | push                ecx

        $sequence_7 = { 0f8723010000 8d040a 8bcb 3bc3 }
            // n = 4, score = 100
            //   0f8723010000         | ja                  0x129
            //   8d040a               | lea                 eax, [edx + ecx]
            //   8bcb                 | mov                 ecx, ebx
            //   3bc3                 | cmp                 eax, ebx

        $sequence_8 = { e8???????? 83c40c 33c0 6689047e 8b7db4 eb18 }
            // n = 6, score = 100
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   33c0                 | xor                 eax, eax
            //   6689047e             | mov                 word ptr [esi + edi*2], ax
            //   8b7db4               | mov                 edi, dword ptr [ebp - 0x4c]
            //   eb18                 | jmp                 0x1a

        $sequence_9 = { 2bf9 8b8d5cffffff 8bc2 2bc1 }
            // n = 4, score = 100
            //   2bf9                 | sub                 edi, ecx
            //   8b8d5cffffff         | mov                 ecx, dword ptr [ebp - 0xa4]
            //   8bc2                 | mov                 eax, edx
            //   2bc1                 | sub                 eax, ecx

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