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 (20220808 | Detects win.dadjoke.)
rule win_dadjoke_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-08-05"
        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 = "20220805"
        malpedia_hash = "6ec06c64bcfdbeda64eff021c766b4ce34542b71"
        malpedia_version = "20220808"
        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 = { 8d45e0 50 e8???????? 83c404 0fb6c8 85c9 7507 }
            // n = 7, score = 400
            //   8d45e0               | lea                 eax, [ebp - 0x20]
            //   50                   | push                eax
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   0fb6c8               | movzx               ecx, al
            //   85c9                 | test                ecx, ecx
            //   7507                 | jne                 9

        $sequence_3 = { 837dbc00 7507 32c0 e9???????? c645cb00 6800040000 }
            // n = 6, score = 400
            //   837dbc00             | cmp                 dword ptr [ebp - 0x44], 0
            //   7507                 | jne                 9
            //   32c0                 | xor                 al, al
            //   e9????????           |                     
            //   c645cb00             | mov                 byte ptr [ebp - 0x35], 0
            //   6800040000           | push                0x400

        $sequence_4 = { 83c40c c745bc08020000 8d4dd4 51 8d55c4 52 6a00 }
            // n = 7, score = 400
            //   83c40c               | add                 esp, 0xc
            //   c745bc08020000       | mov                 dword ptr [ebp - 0x44], 0x208
            //   8d4dd4               | lea                 ecx, [ebp - 0x2c]
            //   51                   | push                ecx
            //   8d55c4               | lea                 edx, [ebp - 0x3c]
            //   52                   | push                edx
            //   6a00                 | push                0

        $sequence_5 = { 8d4da4 e8???????? 8b856cffffff eb45 8b45dc }
            // n = 5, score = 400
            //   8d4da4               | lea                 ecx, [ebp - 0x5c]
            //   e8????????           |                     
            //   8b856cffffff         | mov                 eax, dword ptr [ebp - 0x94]
            //   eb45                 | jmp                 0x47
            //   8b45dc               | mov                 eax, dword ptr [ebp - 0x24]

        $sequence_6 = { e9???????? 8b45e8 50 6a00 8b4de4 }
            // n = 5, score = 400
            //   e9????????           |                     
            //   8b45e8               | mov                 eax, dword ptr [ebp - 0x18]
            //   50                   | push                eax
            //   6a00                 | push                0
            //   8b4de4               | mov                 ecx, dword ptr [ebp - 0x1c]

        $sequence_7 = { 50 8d4de4 51 ff15???????? 83c408 6888130000 }
            // n = 6, score = 400
            //   50                   | push                eax
            //   8d4de4               | lea                 ecx, [ebp - 0x1c]
            //   51                   | push                ecx
            //   ff15????????         |                     
            //   83c408               | add                 esp, 8
            //   6888130000           | push                0x1388

        $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 = { 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_10 = { ff15???????? 85c0 7417 b920000000 }
            // n = 4, score = 300
            //   ff15????????         |                     
            //   85c0                 | test                eax, eax
            //   7417                 | je                  0x19
            //   b920000000           | mov                 ecx, 0x20

        $sequence_11 = { 84c0 0f94c1 8bc1 c3 a1???????? c3 }
            // n = 6, score = 300
            //   84c0                 | test                al, al
            //   0f94c1               | sete                cl
            //   8bc1                 | mov                 eax, ecx
            //   c3                   | ret                 
            //   a1????????           |                     
            //   c3                   | ret                 

        $sequence_12 = { 8d458c c7458c80330000 50 6a1f 57 ff15???????? }
            // n = 6, score = 200
            //   8d458c               | lea                 eax, [ebp - 0x74]
            //   c7458c80330000       | mov                 dword ptr [ebp - 0x74], 0x3380
            //   50                   | push                eax
            //   6a1f                 | push                0x1f
            //   57                   | push                edi
            //   ff15????????         |                     

        $sequence_13 = { 8d85e8faffff 50 6aff 8d85f8feffff }
            // n = 4, score = 200
            //   8d85e8faffff         | lea                 eax, [ebp - 0x518]
            //   50                   | push                eax
            //   6aff                 | push                -1
            //   8d85f8feffff         | lea                 eax, [ebp - 0x108]

        $sequence_14 = { ff15???????? 85c0 7524 8b35???????? 57 }
            // n = 5, score = 200
            //   ff15????????         |                     
            // 
            //   7524                 | jne                 0x26
            //   8b35????????         |                     
            //   57                   | push                edi

        $sequence_15 = { ff15???????? 8bf0 8975f4 85f6 7431 6a00 6a00 }
            // n = 7, score = 200
            //   ff15????????         |                     
            //   8bf0                 | mov                 esi, eax
            //   8975f4               | mov                 dword ptr [ebp - 0xc], esi
            //   85f6                 | test                esi, esi
            //   7431                 | je                  0x33
            //   6a00                 | push                0
            //   6a00                 | push                0

        $sequence_16 = { ff15???????? 83c9ff 8bd8 894d88 33f6 }
            // n = 5, score = 200
            //   ff15????????         |                     
            //   83c9ff               | or                  ecx, 0xffffffff
            //   8bd8                 | mov                 ebx, eax
            //   894d88               | mov                 dword ptr [ebp - 0x78], ecx
            //   33f6                 | xor                 esi, esi

        $sequence_17 = { 8b08 ff511c 8b85e4faffff 8d95e0faffff 52 }
            // n = 5, score = 200
            //   8b08                 | mov                 ecx, dword ptr [eax]
            //   ff511c               | call                dword ptr [ecx + 0x1c]
            //   8b85e4faffff         | mov                 eax, dword ptr [ebp - 0x51c]
            //   8d95e0faffff         | lea                 edx, [ebp - 0x520]
            //   52                   | push                edx

        $sequence_18 = { 88440d8f 84c0 75ef b82f000000 8d55f4 66894590 8bf2 }
            // n = 7, score = 200
            //   88440d8f             | mov                 byte ptr [ebp + ecx - 0x71], al
            //   84c0                 | test                al, al
            //   75ef                 | jne                 0xfffffff1
            //   b82f000000           | mov                 eax, 0x2f
            //   8d55f4               | lea                 edx, [ebp - 0xc]
            //   66894590             | mov                 word ptr [ebp - 0x70], ax
            //   8bf2                 | mov                 esi, edx

        $sequence_19 = { 6a64 8d4590 c745f400000000 6a00 50 }
            // n = 5, score = 200
            //   6a64                 | push                0x64
            //   8d4590               | lea                 eax, [ebp - 0x70]
            //   c745f400000000       | mov                 dword ptr [ebp - 0xc], 0
            //   6a00                 | push                0
            //   50                   | push                eax

        $sequence_20 = { 53 56 57 8b4808 85c9 743d }
            // n = 6, score = 100
            //   53                   | push                ebx
            //   56                   | push                esi
            //   57                   | push                edi
            //   8b4808               | mov                 ecx, dword ptr [eax + 8]
            //   85c9                 | test                ecx, ecx
            //   743d                 | je                  0x3f

        $sequence_21 = { 83c408 33f6 8b45dc 83f810 720d 40 8d4dc8 }
            // n = 7, score = 100
            //   83c408               | add                 esp, 8
            //   33f6                 | xor                 esi, esi
            //   8b45dc               | mov                 eax, dword ptr [ebp - 0x24]
            //   83f810               | cmp                 eax, 0x10
            //   720d                 | jb                  0xf
            //   40                   | inc                 eax
            //   8d4dc8               | lea                 ecx, [ebp - 0x38]

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