Actor(s): Leviathan
There is no description at this point.
rule win_dadstache_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-05-04" version = "1" description = "Detects win.dadstache." 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.dadstache" 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 = { 0f1145e8 0f85f2feffff 8b7df4 8bc7 c1e818 } // n = 5, score = 500 // 0f1145e8 | movups xmmword ptr [ebp - 0x18], xmm0 // 0f85f2feffff | jne 0xfffffef8 // 8b7df4 | mov edi, dword ptr [ebp - 0xc] // 8bc7 | mov eax, edi // c1e818 | shr eax, 0x18 $sequence_1 = { c6437401 50 53 c7070c000000 c7431400000000 c7431801000000 } // n = 6, score = 500 // c6437401 | mov byte ptr [ebx + 0x74], 1 // 50 | push eax // 53 | push ebx // c7070c000000 | mov dword ptr [edi], 0xc // c7431400000000 | mov dword ptr [ebx + 0x14], 0 // c7431801000000 | mov dword ptr [ebx + 0x18], 1 $sequence_2 = { 75f9 2bf2 7429 90 6a00 } // n = 5, score = 500 // 75f9 | jne 0xfffffffb // 2bf2 | sub esi, edx // 7429 | je 0x2b // 90 | nop // 6a00 | push 0 $sequence_3 = { 41 84c0 75f9 e9???????? 80f902 0f85f8000000 8b830c020000 } // n = 7, score = 500 // 41 | inc ecx // 84c0 | test al, al // 75f9 | jne 0xfffffffb // e9???????? | // 80f902 | cmp cl, 2 // 0f85f8000000 | jne 0xfe // 8b830c020000 | mov eax, dword ptr [ebx + 0x20c] $sequence_4 = { 7454 6a00 ff35???????? ff15???????? 85c0 } // n = 5, score = 500 // 7454 | je 0x56 // 6a00 | push 0 // ff35???????? | // ff15???????? | // 85c0 | test eax, eax $sequence_5 = { ffb01c020000 ff15???????? 85c0 0f8584000000 } // n = 4, score = 500 // ffb01c020000 | push dword ptr [eax + 0x21c] // ff15???????? | // 85c0 | test eax, eax // 0f8584000000 | jne 0x8a $sequence_6 = { bb04000000 c1e108 8bf7 0bc8 c745d801000000 0fb64201 } // n = 6, score = 500 // bb04000000 | mov ebx, 4 // c1e108 | shl ecx, 8 // 8bf7 | mov esi, edi // 0bc8 | or ecx, eax // c745d801000000 | mov dword ptr [ebp - 0x28], 1 // 0fb64201 | movzx eax, byte ptr [edx + 1] $sequence_7 = { 57 8bf9 897df4 85db 7419 } // n = 5, score = 500 // 57 | push edi // 8bf9 | mov edi, ecx // 897df4 | mov dword ptr [ebp - 0xc], edi // 85db | test ebx, ebx // 7419 | je 0x1b $sequence_8 = { 8b0e 33d2 33db 8955f4 8b56f8 c745e400000000 } // n = 6, score = 200 // 8b0e | mov ecx, dword ptr [esi] // 33d2 | xor edx, edx // 33db | xor ebx, ebx // 8955f4 | mov dword ptr [ebp - 0xc], edx // 8b56f8 | mov edx, dword ptr [esi - 8] // c745e400000000 | mov dword ptr [ebp - 0x1c], 0 $sequence_9 = { 660f383ffc 0f28c7 894df8 660f73d808 660f383ff8 } // n = 5, score = 200 // 660f383ffc | pmaxud xmm7, xmm4 // 0f28c7 | movaps xmm0, xmm7 // 894df8 | mov dword ptr [ebp - 8], ecx // 660f73d808 | psrldq xmm0, 8 // 660f383ff8 | pmaxud xmm7, xmm0 $sequence_10 = { 56 ff7034 ffd7 8945f8 } // n = 4, score = 200 // 56 | push esi // ff7034 | push dword ptr [eax + 0x34] // ffd7 | call edi // 8945f8 | mov dword ptr [ebp - 8], eax $sequence_11 = { 0f44d8 c745f8616c4672 8d45e8 66c745fc6565 50 57 c645fe00 } // n = 7, score = 200 // 0f44d8 | cmove ebx, eax // c745f8616c4672 | mov dword ptr [ebp - 8], 0x72466c61 // 8d45e8 | lea eax, [ebp - 0x18] // 66c745fc6565 | mov word ptr [ebp - 4], 0x6565 // 50 | push eax // 57 | push edi // c645fe00 | mov byte ptr [ebp - 2], 0 $sequence_12 = { 7405 0d00020000 8d5de4 53 50 51 } // n = 6, score = 200 // 7405 | je 7 // 0d00020000 | or eax, 0x200 // 8d5de4 | lea ebx, [ebp - 0x1c] // 53 | push ebx // 50 | push eax // 51 | push ecx $sequence_13 = { 8bec 81ec9c000000 56 57 648b3d30000000 33c0 c745806b006500 } // n = 7, score = 200 // 8bec | mov ebp, esp // 81ec9c000000 | sub esp, 0x9c // 56 | push esi // 57 | push edi // 648b3d30000000 | mov edi, dword ptr fs:[0x30] // 33c0 | xor eax, eax // c745806b006500 | mov dword ptr [ebp - 0x80], 0x65006b $sequence_14 = { 57 8d3c16 897df4 85c9 } // n = 4, score = 200 // 57 | push edi // 8d3c16 | lea edi, [esi + edx] // 897df4 | mov dword ptr [ebp - 0xc], edi // 85c9 | test ecx, ecx $sequence_15 = { 894ddc 53 56 57 85c9 0f8415010000 8b410c } // n = 7, score = 200 // 894ddc | mov dword ptr [ebp - 0x24], ecx // 53 | push ebx // 56 | push esi // 57 | push edi // 85c9 | test ecx, ecx // 0f8415010000 | je 0x11b // 8b410c | mov eax, dword ptr [ecx + 0xc] condition: 7 of them and filesize < 580608 }
rule win_dadstache_w0 { meta: author = "Elastic Security" description = "APT40 second stage implant" source = "https://www.elastic.co/blog/advanced-techniques-used-in-malaysian-focused-apt-campaign" malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.dadstache" malpedia_version = "20200626" malpedia_license = "CC BY-NC-SA 4.0" malpedia_sharing = "TLP:WHITE" strings: $a = "/list_direction" fullword wide $b = "/post_document" fullword wide $c = "/postlogin" fullword wide $d = "Download Read Path Failed %s" fullword ascii $e = "Open Pipe Failed %s" fullword ascii $f = "Open Remote File %s Failed For: %s" fullword ascii $g = "Download Read Path Failed %s" fullword ascii $h = "\\cmd.exe" fullword wide condition: all of them }
If your designated proposal does not fit in any other category, feel free to write a free-text in the comment field below. Changes regarding references should be proposed on the Malpedia library page.
Your suggestion will be reviewed before being published. Thank you for contributing!
YYYY-MM-DD
YYYY-MM
YYYY