SYMBOLCOMMON_NAMEaka. SYNONYMS
win.dadjoke (Back to overview)

DADJOKE

Actor(s): Leviathan


DADJOKE was discovered as being distributed via email, targeting a South-East Asian Ministry of Defense. It is delivered as an embedded EXE file in a Word document using remote templates and a unique macro using multiple GET requests. The payload is deployed using load-order hijacking with a benign Windows Defender executable. Stage 1 has only beacon+download functionality, made to look like a PNG file. Additional analysis by Kaspersky found 8 campaigns over 2019 and no activity prior to January 2019, DADJOKE is attributed with medium confidence to APT40.

References
2020-02-07Medium SebdravenSébastien Larinier
@online{larinier:20200207:40:9415c5c, author = {Sébastien Larinier}, title = {{APT 40 in Malaysia}}, date = {2020-02-07}, organization = {Medium Sebdraven}, url = {https://medium.com/@Sebdraven/apt-40-in-malaysia-61ed9c9642e9}, language = {English}, urldate = {2020-02-09} } APT 40 in Malaysia
DADJOKE
2020-01-03Youtube (BSides Belfast)Brian Bartholomew
@online{bartholomew:20200103:nice:ddc5c57, author = {Brian Bartholomew}, title = {{Nice One, Dad: Dissecting A Rare Malware Used By Leviathan}}, date = {2020-01-03}, organization = {Youtube (BSides Belfast)}, url = {https://www.youtube.com/watch?v=vx9IB88wXSE}, language = {English}, urldate = {2020-01-13} } Nice One, Dad: Dissecting A Rare Malware Used By Leviathan
DADJOKE
2019-11-05Brian Bartholomew
@online{bartholomew:20191105:dadjoke:81e2a63, author = {Brian Bartholomew}, title = {{DADJOKE}}, date = {2019-11-05}, url = {https://prezi.com/view/jGyAzyy5dTOkDrtwsJi5/}, language = {English}, urldate = {2020-01-07} } DADJOKE
DADJOKE
2019-08-13奇安信威胁情报中心
@online{:20190813::eae3d10, author = {奇安信威胁情报中心}, title = {{洞察人性:一起利用政治人物桃色丑闻的诱饵攻击活动披露}}, date = {2019-08-13}, url = {https://wemp.app/posts/80ab2b2d-4e0e-4960-94b7-4d452a06fd38?utm_source=latest-posts}, language = {Chinese}, urldate = {2020-01-13} } 洞察人性:一起利用政治人物桃色丑闻的诱饵攻击活动披露
DADJOKE
2019-07-26Twitter (@a_tweeter_user)a_tweeter_user
@online{atweeteruser:20190726:malware:dce6863, author = {a_tweeter_user}, title = {{Tweet on Malware}}, date = {2019-07-26}, organization = {Twitter (@a_tweeter_user)}, url = {https://twitter.com/a_tweeter_user/status/1154764787823316993}, language = {English}, urldate = {2020-01-08} } Tweet on Malware
DADJOKE
2019-03-27Twitter (@ClearskySec)ClearSky Cyber Security
@online{security:20190327:timelines:36e1fb0, author = {ClearSky Cyber Security}, title = {{Tweet on "Timelines - ECRL.docx"}}, date = {2019-03-27}, organization = {Twitter (@ClearskySec)}, url = {https://twitter.com/ClearskySec/status/1110941178231484417}, language = {English}, urldate = {2020-01-08} } Tweet on "Timelines - ECRL.docx"
DADJOKE
Yara Rules
[TLP:WHITE] win_dadjoke_auto (20230125 | Detects win.dadjoke.)
rule win_dadjoke_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-01-25"
        version = "1"
        description = "Detects win.dadjoke."
        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.dadjoke"
        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 = { 56 57 6800081000 6a00 }
            // n = 4, score = 500
            //   56                   | push                esi
            //   57                   | push                edi
            //   6800081000           | push                0x100800
            //   6a00                 | push                0

        $sequence_1 = { 6a00 6a00 ff15???????? 6808020000 }
            // n = 4, score = 500
            //   6a00                 | push                0
            //   6a00                 | push                0
            //   ff15????????         |                     
            //   6808020000           | push                0x208

        $sequence_2 = { f3a5 8b45f8 83c040 8945f8 68000000f0 6a18 }
            // n = 6, score = 400
            //   f3a5                 | rep movsd           dword ptr es:[edi], dword ptr [esi]
            //   8b45f8               | mov                 eax, dword ptr [ebp - 8]
            //   83c040               | add                 eax, 0x40
            //   8945f8               | mov                 dword ptr [ebp - 8], eax
            //   68000000f0           | push                0xf0000000
            //   6a18                 | push                0x18

        $sequence_3 = { 83c128 51 ff15???????? 8945e4 ba04000000 6bc200 8b4de4 }
            // n = 7, score = 400
            //   83c128               | add                 ecx, 0x28
            //   51                   | push                ecx
            //   ff15????????         |                     
            //   8945e4               | mov                 dword ptr [ebp - 0x1c], eax
            //   ba04000000           | mov                 edx, 4
            //   6bc200               | imul                eax, edx, 0
            //   8b4de4               | mov                 ecx, dword ptr [ebp - 0x1c]

        $sequence_4 = { 51 894df0 8b4df0 e8???????? 8bc8 }
            // n = 5, score = 400
            //   51                   | push                ecx
            //   894df0               | mov                 dword ptr [ebp - 0x10], ecx
            //   8b4df0               | mov                 ecx, dword ptr [ebp - 0x10]
            //   e8????????           |                     
            //   8bc8                 | mov                 ecx, eax

        $sequence_5 = { 8b4de0 663b01 7533 66837dde00 7423 8b55e4 668b4202 }
            // n = 7, score = 400
            //   8b4de0               | mov                 ecx, dword ptr [ebp - 0x20]
            //   663b01               | cmp                 ax, word ptr [ecx]
            //   7533                 | jne                 0x35
            //   66837dde00           | cmp                 word ptr [ebp - 0x22], 0
            //   7423                 | je                  0x25
            //   8b55e4               | mov                 edx, dword ptr [ebp - 0x1c]
            //   668b4202             | mov                 ax, word ptr [edx + 2]

        $sequence_6 = { 52 8b4508 8b480c 51 ff15???????? 8945f0 837df000 }
            // n = 7, score = 400
            //   52                   | push                edx
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   8b480c               | mov                 ecx, dword ptr [eax + 0xc]
            //   51                   | push                ecx
            //   ff15????????         |                     
            //   8945f0               | mov                 dword ptr [ebp - 0x10], eax
            //   837df000             | cmp                 dword ptr [ebp - 0x10], 0

        $sequence_7 = { ff15???????? 8945f8 837df800 740a ff15???????? }
            // n = 5, score = 400
            //   ff15????????         |                     
            //   8945f8               | mov                 dword ptr [ebp - 8], eax
            //   837df800             | cmp                 dword ptr [ebp - 8], 0
            //   740a                 | je                  0xc
            //   ff15????????         |                     

        $sequence_8 = { 5e c3 8bff 55 8bec 83ec10 33c0 }
            // n = 7, score = 300
            //   5e                   | pop                 esi
            //   c3                   | ret                 
            //   8bff                 | mov                 edi, edi
            //   55                   | push                ebp
            //   8bec                 | mov                 ebp, esp
            //   83ec10               | sub                 esp, 0x10
            //   33c0                 | xor                 eax, eax

        $sequence_9 = { 0f94c1 8bc1 c3 a1???????? c3 }
            // n = 5, score = 300
            //   0f94c1               | sete                cl
            //   8bc1                 | mov                 eax, ecx
            //   c3                   | ret                 
            //   a1????????           |                     
            //   c3                   | ret                 

        $sequence_10 = { e8???????? c3 6a04 e8???????? 59 c3 6a0c }
            // n = 7, score = 300
            //   e8????????           |                     
            //   c3                   | ret                 
            //   6a04                 | push                4
            //   e8????????           |                     
            //   59                   | pop                 ecx
            //   c3                   | ret                 
            //   6a0c                 | push                0xc

        $sequence_11 = { ff15???????? 85c0 7417 b920000000 }
            // n = 4, score = 300
            //   ff15????????         |                     
            //   85c0                 | test                eax, eax
            //   7417                 | je                  0x19
            //   b920000000           | mov                 ecx, 0x20

        $sequence_12 = { 8bf0 83c404 85f6 740d 803e4d }
            // n = 5, score = 200
            //   8bf0                 | mov                 esi, eax
            //   83c404               | add                 esp, 4
            //   85f6                 | test                esi, esi
            //   740d                 | je                  0xf
            //   803e4d               | cmp                 byte ptr [esi], 0x4d

        $sequence_13 = { 8d4901 88440d8f 84c0 75ef }
            // n = 4, score = 200
            //   8d4901               | lea                 ecx, [ecx + 1]
            //   88440d8f             | mov                 byte ptr [ebp + ecx - 0x71], al
            //   84c0                 | test                al, al
            //   75ef                 | jne                 0xfffffff1

        $sequence_14 = { 50 8b08 ff5118 8b85e0faffff 50 }
            // n = 5, score = 200
            //   50                   | push                eax
            //   8b08                 | mov                 ecx, dword ptr [eax]
            //   ff5118               | call                dword ptr [ecx + 0x18]
            //   8b85e0faffff         | mov                 eax, dword ptr [ebp - 0x520]
            //   50                   | push                eax

        $sequence_15 = { 8d642408 0f856d170000 eb00 f30f7e442404 660f2815???????? 660f28c8 }
            // n = 6, score = 200
            //   8d642408             | lea                 esp, [esp + 8]
            //   0f856d170000         | jne                 0x1773
            //   eb00                 | jmp                 2
            //   f30f7e442404         | movq                xmm0, qword ptr [esp + 4]
            //   660f2815????????     |                     
            //   660f28c8             | movapd              xmm1, xmm0

        $sequence_16 = { 8b85e4faffff 8d95f0fcffff 52 50 8b08 ff5150 8b85e4faffff }
            // n = 7, score = 200
            //   8b85e4faffff         | mov                 eax, dword ptr [ebp - 0x51c]
            //   8d95f0fcffff         | lea                 edx, [ebp - 0x310]
            //   52                   | push                edx
            //   50                   | push                eax
            //   8b08                 | mov                 ecx, dword ptr [eax]
            //   ff5150               | call                dword ptr [ecx + 0x50]
            //   8b85e4faffff         | mov                 eax, dword ptr [ebp - 0x51c]

        $sequence_17 = { 0f849e170000 83ec08 0fae5c2404 8b442404 25807f0000 3d801f0000 750f }
            // n = 7, score = 200
            //   0f849e170000         | je                  0x17a4
            //   83ec08               | sub                 esp, 8
            //   0fae5c2404           | stmxcsr             dword ptr [esp + 4]
            //   8b442404             | mov                 eax, dword ptr [esp + 4]
            //   25807f0000           | and                 eax, 0x7f80
            //   3d801f0000           | cmp                 eax, 0x1f80
            //   750f                 | jne                 0x11

        $sequence_18 = { c745f400000000 6a00 50 c645f800 e8???????? 83c40c c7458c00000000 }
            // n = 7, score = 200
            //   c745f400000000       | mov                 dword ptr [ebp - 0xc], 0
            //   6a00                 | push                0
            //   50                   | push                eax
            //   c645f800             | mov                 byte ptr [ebp - 8], 0
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   c7458c00000000       | mov                 dword ptr [ebp - 0x74], 0

        $sequence_19 = { 6a00 6a03 6a00 6a00 68???????? e8???????? }
            // n = 6, score = 200
            //   6a00                 | push                0
            //   6a03                 | push                3
            //   6a00                 | push                0
            //   6a00                 | push                0
            //   68????????           |                     
            //   e8????????           |                     

        $sequence_20 = { 83b8a800000000 7512 8b04bd58047500 807c302900 }
            // n = 4, score = 100
            //   83b8a800000000       | cmp                 dword ptr [eax + 0xa8], 0
            //   7512                 | jne                 0x14
            //   8b04bd58047500       | mov                 eax, dword ptr [edi*4 + 0x750458]
            //   807c302900           | cmp                 byte ptr [eax + esi + 0x29], 0

        $sequence_21 = { c1ff06 e8???????? 83e03f 6bc030 59 59 0304bd58047500 }
            // n = 7, score = 100
            //   c1ff06               | sar                 edi, 6
            //   e8????????           |                     
            //   83e03f               | and                 eax, 0x3f
            //   6bc030               | imul                eax, eax, 0x30
            //   59                   | pop                 ecx
            //   59                   | pop                 ecx
            //   0304bd58047500       | add                 eax, dword ptr [edi*4 + 0x750458]

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