SYMBOLCOMMON_NAMEaka. SYNONYMS
win.dadstache (Back to overview)

DADSTACHE

Actor(s): Leviathan


There is no description at this point.

References
2020-07-10ByteAtlasDaniel Plohmann
@online{plohmann:20200710:knowledge:358aef1, author = {Daniel Plohmann}, title = {{Knowledge Fragment: Casting Sandbox Necromancy on DADSTACHE}}, date = {2020-07-10}, organization = {ByteAtlas}, url = {https://danielplohmann.github.io/blog/2020/07/10/kf-sandbox-necromancy.html}, language = {English}, urldate = {2020-07-11} } Knowledge Fragment: Casting Sandbox Necromancy on DADSTACHE
DADSTACHE
2020-06-25ElasticSamir Bousseaden, Daniel Stepanic
@online{bousseaden:20200625:close:be8a8b2, author = {Samir Bousseaden and Daniel Stepanic}, title = {{A close look at the advanced techniques used in a Malaysian-focused APT campaign}}, date = {2020-06-25}, organization = {Elastic}, url = {https://www.elastic.co/blog/advanced-techniques-used-in-malaysian-focused-apt-campaign}, language = {English}, urldate = {2020-06-25} } A close look at the advanced techniques used in a Malaysian-focused APT campaign
DADSTACHE Leviathan
2020-03-15insomniacs(Medium)Asuna Amawaka
@online{amawaka:20200315:dad:5cad035, author = {Asuna Amawaka}, title = {{Dad! There’s A Rat In Here!}}, date = {2020-03-15}, organization = {insomniacs(Medium)}, url = {https://medium.com/insomniacs/dad-theres-a-rat-in-here-e3729b65bf7a}, language = {English}, urldate = {2020-04-16} } Dad! There’s A Rat In Here!
DADSTACHE
2020-03-10insomniacs(Medium)Asuna Amawaka
@online{amawaka:20200310:apt40:2199052, author = {Asuna Amawaka}, title = {{APT40 goes from Template Injections to OLE-Linkings for payload delivery}}, date = {2020-03-10}, organization = {insomniacs(Medium)}, url = {https://medium.com/insomniacs/apt40-goes-from-template-injections-to-ole-linkings-for-payload-delivery-99eb43170a97}, language = {English}, urldate = {2020-04-16} } APT40 goes from Template Injections to OLE-Linkings for payload delivery
DADSTACHE
2019-11-28Twitter (@cyb3rops)Florian Roth
@online{roth:20191128:signature:1d30657, author = {Florian Roth}, title = {{Tweet on Signature Writing for DADJOKE}}, date = {2019-11-28}, organization = {Twitter (@cyb3rops)}, url = {https://twitter.com/cyb3rops/status/1199978327697694720}, language = {English}, urldate = {2020-01-09} } Tweet on Signature Writing for DADJOKE
DADSTACHE
2019-04-22Twitter (@killamjr)Suspicious Link
@online{link:20190422:dadstache:5444490, author = {Suspicious Link}, title = {{Tweet on DADSTACHE payload}}, date = {2019-04-22}, organization = {Twitter (@killamjr)}, url = {https://twitter.com/killamjr/status/1204584085395517440}, language = {English}, urldate = {2020-01-06} } Tweet on DADSTACHE payload
DADSTACHE
Yara Rules
[TLP:WHITE] win_dadstache_auto (20201014 | autogenerated rule brought to you by yara-signator)
rule win_dadstache_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-10-14"
        version = "1"
        description = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.5.0"
        tool_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.dadstache"
        malpedia_rule_date = "20201014"
        malpedia_hash = "a7e3bd57eaf12bf3ea29a863c041091ba3af9ac9"
        malpedia_version = "20201014"
        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 = { 8bf1 8b4d0c 8b7b10 3bf9 0f82ae000000 }
            // n = 5, score = 500
            //   8bf1                 | mov                 esi, ecx
            //   8b4d0c               | mov                 ecx, dword ptr [ebp + 0xc]
            //   8b7b10               | mov                 edi, dword ptr [ebx + 0x10]
            //   3bf9                 | cmp                 edi, ecx
            //   0f82ae000000         | jb                  0xb4

        $sequence_1 = { 03c1 50 51 e8???????? 83c40c 897e10 837e1410 }
            // n = 7, score = 500
            //   03c1                 | add                 eax, ecx
            //   50                   | push                eax
            //   51                   | push                ecx
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   897e10               | mov                 dword ptr [esi + 0x10], edi
            //   837e1410             | cmp                 dword ptr [esi + 0x14], 0x10

        $sequence_2 = { 7545 8d040f 394610 0f829f000000 894610 }
            // n = 5, score = 500
            //   7545                 | jne                 0x47
            //   8d040f               | lea                 eax, [edi + ecx]
            //   394610               | cmp                 dword ptr [esi + 0x10], eax
            //   0f829f000000         | jb                  0xa5
            //   894610               | mov                 dword ptr [esi + 0x10], eax

        $sequence_3 = { 394610 0f829f000000 894610 837e1410 7218 8b16 }
            // n = 6, score = 500
            //   394610               | cmp                 dword ptr [esi + 0x10], eax
            //   0f829f000000         | jb                  0xa5
            //   894610               | mov                 dword ptr [esi + 0x10], eax
            //   837e1410             | cmp                 dword ptr [esi + 0x14], 0x10
            //   7218                 | jb                  0x1a
            //   8b16                 | mov                 edx, dword ptr [esi]

        $sequence_4 = { 51 57 8bce e8???????? 84c0 7446 837b1410 }
            // n = 7, score = 500
            //   51                   | push                ecx
            //   57                   | push                edi
            //   8bce                 | mov                 ecx, esi
            //   e8????????           |                     
            //   84c0                 | test                al, al
            //   7446                 | je                  0x48
            //   837b1410             | cmp                 dword ptr [ebx + 0x14], 0x10

        $sequence_5 = { 3bf9 0f82ae000000 2bf9 397d10 0f427d10 3bf3 }
            // n = 6, score = 500
            //   3bf9                 | cmp                 edi, ecx
            //   0f82ae000000         | jb                  0xb4
            //   2bf9                 | sub                 edi, ecx
            //   397d10               | cmp                 dword ptr [ebp + 0x10], edi
            //   0f427d10             | cmovb               edi, dword ptr [ebp + 0x10]
            //   3bf3                 | cmp                 esi, ebx

        $sequence_6 = { 56 57 8bf1 8b4d0c 8b7b10 3bf9 0f82ae000000 }
            // n = 7, score = 500
            //   56                   | push                esi
            //   57                   | push                edi
            //   8bf1                 | mov                 esi, ecx
            //   8b4d0c               | mov                 ecx, dword ptr [ebp + 0xc]
            //   8b7b10               | mov                 edi, dword ptr [ebx + 0x10]
            //   3bf9                 | cmp                 edi, ecx
            //   0f82ae000000         | jb                  0xb4

        $sequence_7 = { 7545 8d040f 394610 0f829f000000 }
            // n = 4, score = 500
            //   7545                 | jne                 0x47
            //   8d040f               | lea                 eax, [edi + ecx]
            //   394610               | cmp                 dword ptr [esi + 0x10], eax
            //   0f829f000000         | jb                  0xa5

        $sequence_8 = { 3bf3 7545 8d040f 394610 0f829f000000 894610 }
            // n = 6, score = 500
            //   3bf3                 | cmp                 esi, ebx
            //   7545                 | jne                 0x47
            //   8d040f               | lea                 eax, [edi + ecx]
            //   394610               | cmp                 dword ptr [esi + 0x10], eax
            //   0f829f000000         | jb                  0xa5
            //   894610               | mov                 dword ptr [esi + 0x10], eax

        $sequence_9 = { 8d040f 394610 0f829f000000 894610 }
            // n = 4, score = 500
            //   8d040f               | lea                 eax, [edi + ecx]
            //   394610               | cmp                 dword ptr [esi + 0x10], eax
            //   0f829f000000         | jb                  0xa5
            //   894610               | mov                 dword ptr [esi + 0x10], eax

    condition:
        7 of them and filesize < 319552
}
[TLP:WHITE] win_dadstache_w0   (20200626 | APT40 second stage implant)
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
}
Download all Yara Rules